[03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49: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:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]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:53]accept exits with 9 [04:08:53]New connection [04:08:53]New thread 3066776932 created [04:08:53]Thread 3066920292 joined [04:08:53]Waiting for new connection... [04:08:53] Sock 9.Parse request [04:08:53]Sock 9.Check first char [04:08:53]Sock 9.First char is OK [04:08:53]request: POST /json_proto HTTP/1.0 [04:08:53]Method: POST [04:08:53]URL: /json_proto [04:08:53]Method is POST - this is cgi request [04:08:53]url: /json_proto [04:08:53]query_string will be loaded in cgi processing [04:08:53]execute_cgi json_proto POST (null) [04:08:53]execute_cgi path=json_proto method=POST [04:08:53]POST find Content-Length [04:08:53]Host: 172.17.53.195:8080 [04:08:53]Content-Length: 679 [04:08:53]Content-Type: application/json [04:08:53] [04:08:53]POST finish read [04:08:53]Found Content-Length = 679 [04:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220087", "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" : 76.20, "quantity" : 50.860, "sum" : 3875.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3875.00, "total" : 3875.00, "payments": [ { "type": 0, "sum" : 3875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:08:53]execute_script... [04:08: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)220087", "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" : 76.20, "quantity" : 50.860, "sum" : 3875.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3875.00, "total" : 3875.00, "payments": [ { "type": 0, "sum" : 3875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:08:53]POST & json_proto [04:08:53]process_json_proto [04:08:53]json parsed OK: [04:08:53]protocol is kg_v1.0 [04:08:53]action value=close_receipt [04:08:53]process_action close_receipt [04:08:53]cmd_close_receipt [04:08:53]MH_GetDate [04:08:53]Write to MH i2c: F0 00 00 5F BE 0C [04:08:53]Write i2c OK [04:08:53]MH_I2C_Read... [04:08:53]Read from MH i2c: F0 [04:08:53]MH_I2C_Read... [04:08:53]Read from MH i2c: F0 09 00 [04:08:53]MH_I2C_Read... [04:08:53]Read from MH i2c: F0 09 00 5F BE 00 5F 82 14 67 21 48 4A 65 89 [04:08:53]GetLastDocTimeStamp 1729391063 [04:08:53]current date 1729397343 [04:08:53]FM_GetShiftState [04:08:53]SAM_PROTO_GetShiftState [04:08:53]wFMCommunicate request_size=4 [04:08:53]MH_SAM_APDU [04:08:53]CAPDU: 80 13 01 00 [04:08:53]Write to MH i2c: E2 08 00 60 BE 80 13 01 00 00 00 00 00 9B [04:08:53]Write i2c OK [04:08:53]MH_I2C_Read... [04:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:53]Read from MH i2c: E2 [04:08:53]MH_I2C_Read... [04:08:53]Read from MH i2c: E2 0E 00 [04:08:53]MH_I2C_Read... [04:08:53]Read from MH i2c: E2 0E 00 60 BE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E3 [04:08:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [04:08:53]wFMCommunicate OK [04:08:53]SAM_PROTO_GetShiftState done [04:08:53]FM_GetShiftState done [04:08:53]opened in 1729384561 [04:08:53]opened+sec_in_day 1729470961 [04:08:53]quantity*price = 387553 [04:08:53]sum+1 = 387554 [04:08:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 3875.00 Внесено: 3875.00 СДАЧА: 0.00 НСП 1% : 34.30 НДС 12% : 411.56 Наличными: 3875.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 10 20.10.2024 04:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165528 ФПД: 246258856329180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T040903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165528&fm=246258856329180&tin=02508201610067®Number=0000000000091764&sum=387500 [04:08:54]StoreToDocumentArchive [04:08:54]shift 534 fd 165528 [04:08:54]save to /storage/0534/doc_00165528 [04:08:54]save last doc name /storage/0534/doc_00165528 to /storage/kkm_last_doc_name [04:08:54]save OK [04:08:54]Clear old archive folders... [04:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:08:54]tlvbuf is 01482E20 [04:08:54]SAM_PROTO_ClearQueue [04:08:54]wFMCommunicate request_size=4 [04:08:54]MH_SAM_APDU [04:08:54]CAPDU: 80 09 00 00 [04:08:54]Write to MH i2c: E2 08 00 6D BE 80 09 00 00 00 00 00 00 9D [04:08:54]Write i2c OK [04:08:54]MH_I2C_Read... [04:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:08:54]Read from MH i2c: E2 [04:08:54]MH_I2C_Read... [04:08:54]Read from MH i2c: E2 03 00 [04:08:54]MH_I2C_Read... [04:08:54]Read from MH i2c: E2 03 00 6D BE 00 90 00 9F [04:08:54]RAPDU: 90 00 [04:08:54]wFMCommunicate OK [04:08:54]SAM_PROTO_ClearQueue done [04:08:54]KKMCreateOFDPacket [04:08:54]OFDProtocolAddRootSTLVToBuf [04:08:54]FM_MakeSignedData [04:08:54]FM_MakeSignedData [04:08:54]SAM_PROTO_SignData [04:08:54]wFMCommunicate request_size=4 [04:08:54]MH_SAM_APDU [04:08:54]CAPDU: 80 0D 01 02 [04:08:54]Write to MH i2c: E2 08 00 6E BE 80 0D 01 02 00 00 00 00 A5 [04:08:54]Write i2c OK [04:08:54]MH_I2C_Read... [04:08:54]Read from MH i2c: E2 [04:08:54]MH_I2C_Read... [04:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:08:54]Read from MH i2c: E2 03 00 [04:08:54]MH_I2C_Read... [04:08:54]Read from MH i2c: E2 03 00 6E BE 00 90 00 A0 [04:08:54]RAPDU: 90 00 [04:08:54]wFMCommunicate OK [04:08:54]wFMCommunicate request_size=255 [04:08:54]MH_SAM_APDU [04:08: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 AC C6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 E9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC E9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 A0 00 00 00 00 07 04 06 00 AC E9 05 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 5F 82 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 86 02 00 35 04 06 00 DF F8 9B A7 [04:08:54]Write to MH i2c: E2 02 01 6F BE 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 C6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 E9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC E9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 A0 00 00 00 00 07 04 06 00 AC E9 05 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 5F 82 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 86 02 00 35 04 06 00 DF F8 9B A7 00 00 ED [04:08:54]Write i2c OK [04:08:54]MH_I2C_Read... [04:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:55]Read from MH i2c: E2 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: E2 03 00 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: E2 03 00 6F BE 00 90 00 A1 [04:08:55]RAPDU: 90 00 [04:08:55]wFMCommunicate OK [04:08:55]wFMCommunicate request_size=7 [04:08:55]MH_SAM_APDU [04:08:55]CAPDU: 80 0D 02 02 02 7F DC [04:08:55]Write to MH i2c: E2 0A 00 70 BE 80 0D 02 02 02 00 7F DC 00 00 07 [04:08:55]Write i2c OK [04:08:55]MH_I2C_Read... [04:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:55]Read from MH i2c: E2 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: E2 03 00 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: E2 03 00 70 BE 00 90 00 A2 [04:08:55]RAPDU: 90 00 [04:08:55]wFMCommunicate OK [04:08:55]wFMCommunicate request_size=4 [04:08:55]MH_SAM_APDU [04:08:55]CAPDU: 80 0D 03 02 [04:08:55]Write to MH i2c: E2 08 00 71 BE 80 0D 03 02 00 00 00 00 AA [04:08:55]Write i2c OK [04:08:55]MH_I2C_Read... [04:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:08:55]Read from MH i2c: E2 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: E2 0B 00 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: E2 0B 00 71 BE 00 40 F0 C2 54 17 0C FA 97 90 00 A5 [04:08:55]RAPDU: 40 F0 C2 54 17 0C FA 97 90 00 [04:08:55]wFMCommunicate OK [04:08:55]SAM_PROTO_SignData done [04:08:55]FM_MakeSignedData done [04:08:55]CreateOFDProtocolMessage [04:08:55]wFMCommunicate request_size=4 [04:08:55]MH_SAM_APDU [04:08:55]CAPDU: 80 11 00 00 [04:08:55]Write to MH i2c: E2 08 00 72 BE 80 11 00 00 00 00 00 00 AA [04:08:55]Write i2c OK [04:08:55]MH_I2C_Read... [04:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:55]Read from MH i2c: E2 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: E2 17 00 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: E2 17 00 72 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [04:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:08:55]wFMCommunicate OK [04:08:55]CreateOFDProtocolMessage done [04:08:55]OFDSenderStorePacket 165528 [04:08:55]StoreOFDPacket docnum=165528 [04:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 57 75 04 01 AB 4E 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 C6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 E9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC E9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 A0 00 00 00 00 07 04 06 00 AC E9 05 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 5F 82 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 86 02 00 35 04 06 00 DF F8 9B A7 7F DC 40 F0 C2 54 17 0C FA 97 [04:08:55]CheckFolder [04:08:55]dirname=/storage/ofd_packets [04:08:55]CheckFolder done [04:08:55]ProducePacketName [04:08:55]name=ofd_packets/00165528 [04:08:55]NVStorageSaveData ofd_packets/00165528 [04:08:55]File name is /storage/ofd_packets/00165528 [04:08:55]Write 298 bytes [04:08:55]NVStorageSaveData done [04:08:55]OFDSenderStorePacket done [04:08:55]KKMCreateOFDPacket done [04:08:55]NVStorageSaveData kkm_last_timestamp [04:08:55]File name is /storage/kkm_last_timestamp [04:08:55]Write 4 bytes [04:08:55]NVStorageSaveData done [04:08:55]OFD Sender: Processing packet 165528 [packets to send 48, broken 47] [04:08:55]ProducePacketName [04:08:55]name=ofd_packets/00165528 [04:08:55]OFD Sender: To server: pG, [04:08:55]CommunicateWithHost lk.salyk.kg:30040 [04:08:55]ConnectInit lk.salyk.kg [04:08:55]ExternCall_PrintAddStr [04:08:55]wPrintStart [04:08:55]Write to MH i2c: 01 00 00 73 BE 31 [04:08:55]Write i2c OK [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: 01 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: 01 07 00 [04:08:55]MH_I2C_Read... [04:08:55]Read from MH i2c: 01 07 00 73 BE 00 00 00 00 00 FF 0F 46 [04:08:55]RasterBufferAndPrint [04:08:55]line Счет N : (1)220087 [04:08:55]line ИНН: 02508201610067 [04:08:55]line Контрольно-Кассовый Чек [04:08:55]line ПРОДАЖА [04:08:55]line ТРК (МРК, ГНК) : 11 [04:08:55]line Товар: 2710194210 [04:08:55]line ДТ-К-5 [04:08:55]line 50.860 * 76.20 [04:08:55]line = 3875.53 [04:08:55]line НДС 12% НСП 1% [04:08:55]line > о реализуемом товаре [04:08:55]line ОКРУГЛЕНИЕ: -0.53 [04:08:55]line ИТОГО: 3875.00 [04:08:55]line Внесено: 3875.00 [04:08:55]line СДАЧА: 0.00 [04:08:55]line НСП 1% : 34.30 [04:08:55]line НДС 12% : 411.56 [04:08:55]line Наличными: 3875.00 [04:08:55]line Безнал.: 0.00 [04:08:55]line Место: АЗС № 161 "Партнер Нефть" [04:08:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [04:08:55]line СНО: Общий режим [04:08:55]line Чек 10 20.10.2024 04:09 [04:08:55]line Смена: 534 ФФД: 1.0 [04:08:55]line ЗНМ: 0300000104 [04:08:55]line РНМ: 0000000000091764 [04:08:55]line Версия ККМ: 001 [04:08:55]line ФМ: 0000000000871759 [04:08:55]line ФД: 165528 [04:08:55]line ФПД: 246258856329180 [04:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T040903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165528&fm=246258856329180&tin=02508201610067®Number=0000000000091764&sum=387500 [04:08:55]Connected sock=11 [04:08:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 57 75 04 01 AB 4E 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 C6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 E9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC E9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 A0 00 00 00 00 07 04 06 00 AC E9 05 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 5F 82 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 86 02 00 35 04 06 00 DF F8 9B A7 7F DC 40 F0 C2 54 17 0C FA 97 [04:08:55]written 0, free lines is 4095 [04:08:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C3 39 47 00 C0 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 86 02 00 F4 03 04 00 D2 28 14 67 B6 04 01 00 00 55 D3 41 55 46 A4 4E 09 [04:08:55]CommunicateWithHost err = 0 [04:08:55]CheckOFDResponse [04:08:55]1017 (14) - 77093643461234 [04:08:55]1041 (16) - 0000000000871759 [04:08:55]1040 (4) - 165528 [04:08:55]1012 (4) - 19.10.2024 21:46 [04:08:55]1206 (1) - 0 [04:08:55]OFD Sender: Remove packet 165528 [04:08:55]ProducePacketName [04:08:55]name=ofd_packets/00165528 [04:08:55]NVStorageDeleteData [04:08:56]Write to MH i2c: 01 00 00 9E BE 5C [04:08:56]Write i2c OK [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: 01 [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: 01 07 00 [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: 01 07 00 9E BE 00 00 00 00 00 B0 0C 1F [04:08:56]RasterBufferAndPrint [04:08:56]line [04:08:56]line [04:08:56]line [04:08:56]line [04:08:56]line [04:08:56]written 0, free lines is 3254 [04:08:56]MH_Cut [04:08:56]Write to MH i2c: D1 01 00 A5 BE 01 35 [04:08:56]Write i2c OK [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: D1 [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: D1 01 00 [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: D1 01 00 A5 BE 00 34 [04:08:56]Write to MH i2c: 01 00 00 A6 BE 64 [04:08:56]Write i2c OK [04:08:56]MH_I2C_Read... [04:08:56]OFD Sender: No OFD packet to send [04:08:56]*** Cut start [04:08:56]*** Partial cut [04:08:56]*** CUTSNS_PIN = 1 [04:08:57]*** CUTSNS_PIN = 0 [04:08:57]*** Brake cut motor [04:08:57]Read from MH i2c: 01 [04:08:57]MH_I2C_Read... [04:08:57]*** Stop cut motor [04:08:57]*** Cut end [04:08:57]Read from MH i2c: 01 07 00 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: 01 07 00 A6 BE 00 00 00 00 00 FF 0F 79 [04:08:57]process_action close_receipt done [04:08:57]requested_data is exist [04:08:57]produce_requested_data [04:08:57]requested_item fm.sn is exist - process it [04:08:57]wFMCommunicate request_size=4 [04:08:57]MH_SAM_APDU [04:08:57]CAPDU: 80 11 00 00 [04:08:57]Write to MH i2c: E2 08 00 A7 BE 80 11 00 00 00 00 00 00 DF [04:08:57]Write i2c OK [04:08:57]MH_I2C_Read... [04:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:57]Read from MH i2c: E2 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 17 00 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 17 00 A7 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [04:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:08:57]wFMCommunicate OK [04:08:57]requested_item fd.num is exist - process it [04:08:57]SAM_PROTO_GetFieldsCounters [04:08:57]wFMCommunicate request_size=4 [04:08:57]MH_SAM_APDU [04:08:57]CAPDU: 80 13 00 00 [04:08:57]Write to MH i2c: E2 08 00 A8 BE 80 13 00 00 00 00 00 00 E2 [04:08:57]Write i2c OK [04:08:57]MH_I2C_Read... [04:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:08:57]Read from MH i2c: E2 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 62 00 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 62 00 A8 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [04: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:08:57]wFMCommunicate OK [04:08:57]SAM_PROTO_GetFieldsCounters done [04:08:57]requested_item shift.num is exist - process it [04:08:57]requested_item shift.opened is exist - process it [04:08:57]req_shift_opened [04:08:57]FM_GetShiftState [04:08:57]SAM_PROTO_GetShiftState [04:08:57]wFMCommunicate request_size=4 [04:08:57]MH_SAM_APDU [04:08:57]CAPDU: 80 13 01 00 [04:08:57]Write to MH i2c: E2 08 00 A9 BE 80 13 01 00 00 00 00 00 E4 [04:08:57]Write i2c OK [04:08:57]MH_I2C_Read... [04:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:57]Read from MH i2c: E2 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 0E 00 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 0E 00 A9 BE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2C [04:08:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [04:08:57]wFMCommunicate OK [04:08:57]SAM_PROTO_GetShiftState done [04:08:57]FM_GetShiftState done [04:08:57]req_shift_opened done [04:08:57]requested_item shift.open_date is exist - process it [04:08:57]req_shift_open_date [04:08:57]req_shift_open_date done [04:08:57]produce_requested_data done [04:08:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165528,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [04:08:57]process_action_free close_receipt [04:08:57]json_value_free [04:08:57]json_value_free done [04:08:57]process_json_proto returns [04:08:57]Send response to host [04:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165528,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [04:08:57]free response buf [04:08:57]execute_script done [04:08:57]execute_script returns [04:08:57]free content buf [04:08:57]Sock 9.Close socket [04:08:57]Sock 9.Thread stoped [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:38]accept exits with 7 [05:09:38]New connection [05:09:38]New thread 3066920292 created [05:09:38]Thread 3066776932 joined [05:09:38]Waiting for new connection... [05:09:38] Sock 7.Parse request [05:09:38]Sock 7.Check first char [05:09:38]Sock 7.First char is OK [05:09:38]request: POST /json_proto HTTP/1.0 [05:09:38]Method: POST [05:09:38]URL: /json_proto [05:09:38]Method is POST - this is cgi request [05:09:38]url: /json_proto [05:09:38]query_string will be loaded in cgi processing [05:09:38]execute_cgi json_proto POST (null) [05:09:38]execute_cgi path=json_proto method=POST [05:09:38]POST find Content-Length [05:09:38]Host: 172.17.53.195:8080 [05:09:38]Content-Length: 679 [05:09:38]Content-Type: application/json [05:09:38] [05:09:38]POST finish read [05:09:38]Found Content-Length = 679 [05:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220089", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:09:38]execute_script... [05:09: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)220089", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:09:38]POST & json_proto [05:09:38]process_json_proto [05:09:38]json parsed OK: [05:09:38]protocol is kg_v1.0 [05:09:38]action value=close_receipt [05:09:38]process_action close_receipt [05:09:38]cmd_close_receipt [05:09:38]MH_GetDate [05:09:38]Write to MH i2c: F0 00 00 AA BE 57 [05:09:38]Write i2c OK [05:09:38]MH_I2C_Read... [05:09:38]Read from MH i2c: F0 [05:09:38]MH_I2C_Read... [05:09:38]Read from MH i2c: F0 09 00 [05:09:38]MH_I2C_Read... [05:09:38]Read from MH i2c: F0 09 00 AA BE 00 9D 90 14 67 21 48 4A 65 20 [05:09:38]GetLastDocTimeStamp 1729397343 [05:09:38]current date 1729400989 [05:09:38]FM_GetShiftState [05:09:38]SAM_PROTO_GetShiftState [05:09:38]wFMCommunicate request_size=4 [05:09:38]MH_SAM_APDU [05:09:38]CAPDU: 80 13 01 00 [05:09:38]Write to MH i2c: E2 08 00 AB BE 80 13 01 00 00 00 00 00 E6 [05:09:38]Write i2c OK [05:09:38]MH_I2C_Read... [05:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:38]Read from MH i2c: E2 [05:09:38]MH_I2C_Read... [05:09:38]Read from MH i2c: E2 0E 00 [05:09:38]MH_I2C_Read... [05:09:38]Read from MH i2c: E2 0E 00 AB BE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2E [05:09:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [05:09:38]wFMCommunicate OK [05:09:38]SAM_PROTO_GetShiftState done [05:09:38]FM_GetShiftState done [05:09:38]opened in 1729384561 [05:09:38]opened+sec_in_day 1729470961 [05:09:38]quantity*price = 100050 [05:09:38]sum+1 = 100052 [05:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 11 20.10.2024 05:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165529 ФПД: 254435505204565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T050949&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165529&fm=254435505204565&tin=02508201610067®Number=0000000000091764&sum=100000 [05:09:39]StoreToDocumentArchive [05:09:39]shift 534 fd 165529 [05:09:39]save to /storage/0534/doc_00165529 [05:09:39]save last doc name /storage/0534/doc_00165529 to /storage/kkm_last_doc_name [05:09:39]save OK [05:09:39]Clear old archive folders... [05:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:09:39]tlvbuf is 01484C80 [05:09:39]SAM_PROTO_ClearQueue [05:09:39]wFMCommunicate request_size=4 [05:09:39]MH_SAM_APDU [05:09:39]CAPDU: 80 09 00 00 [05:09:39]Write to MH i2c: E2 08 00 B8 BE 80 09 00 00 00 00 00 00 E8 [05:09:39]Write i2c OK [05:09:39]MH_I2C_Read... [05:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:09:39]Read from MH i2c: E2 [05:09:39]MH_I2C_Read... [05:09:39]Read from MH i2c: E2 03 00 [05:09:39]MH_I2C_Read... [05:09:39]Read from MH i2c: E2 03 00 B8 BE 00 90 00 EA [05:09:39]RAPDU: 90 00 [05:09:39]wFMCommunicate OK [05:09:39]SAM_PROTO_ClearQueue done [05:09:39]KKMCreateOFDPacket [05:09:39]OFDProtocolAddRootSTLVToBuf [05:09:39]FM_MakeSignedData [05:09:39]FM_MakeSignedData [05:09:39]SAM_PROTO_SignData [05:09:39]wFMCommunicate request_size=4 [05:09:39]MH_SAM_APDU [05:09:39]CAPDU: 80 0D 01 02 [05:09:39]Write to MH i2c: E2 08 00 B9 BE 80 0D 01 02 00 00 00 00 F0 [05:09:39]Write i2c OK [05:09:39]MH_I2C_Read... [05:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:09:39]Read from MH i2c: E2 [05:09:39]MH_I2C_Read... [05:09:39]Read from MH i2c: E2 03 00 [05:09:39]MH_I2C_Read... [05:09:39]Read from MH i2c: E2 03 00 B9 BE 00 90 00 EB [05:09:39]RAPDU: 90 00 [05:09:39]wFMCommunicate OK [05:09:39]wFMCommunicate request_size=255 [05:09:39]MH_SAM_APDU [05:09: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 9D 90 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 86 02 00 35 04 06 00 E7 68 61 E7 [05:09:39]Write to MH i2c: E2 02 01 BA BE 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 9D 90 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 86 02 00 35 04 06 00 E7 68 61 E7 00 00 FF [05:09:39]Write i2c OK [05:09:39]MH_I2C_Read... [05:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:40]Read from MH i2c: E2 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 03 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 03 00 BA BE 00 90 00 EC [05:09:40]RAPDU: 90 00 [05:09:40]wFMCommunicate OK [05:09:40]wFMCommunicate request_size=7 [05:09:40]MH_SAM_APDU [05:09:40]CAPDU: 80 0D 02 02 02 ED 55 [05:09:40]Write to MH i2c: E2 0A 00 BB BE 80 0D 02 02 02 00 ED 55 00 00 39 [05:09:40]Write i2c OK [05:09:40]MH_I2C_Read... [05:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:40]Read from MH i2c: E2 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 03 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 03 00 BB BE 00 90 00 ED [05:09:40]RAPDU: 90 00 [05:09:40]wFMCommunicate OK [05:09:40]wFMCommunicate request_size=4 [05:09:40]MH_SAM_APDU [05:09:40]CAPDU: 80 0D 03 02 [05:09:40]Write to MH i2c: E2 08 00 BC BE 80 0D 03 02 00 00 00 00 F5 [05:09:40]Write i2c OK [05:09:40]MH_I2C_Read... [05:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:09:40]Read from MH i2c: E2 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 0B 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 0B 00 BC BE 00 C0 52 71 CE 7F 16 B5 02 90 00 93 [05:09:40]RAPDU: C0 52 71 CE 7F 16 B5 02 90 00 [05:09:40]wFMCommunicate OK [05:09:40]SAM_PROTO_SignData done [05:09:40]FM_MakeSignedData done [05:09:40]CreateOFDProtocolMessage [05:09:40]wFMCommunicate request_size=4 [05:09:40]MH_SAM_APDU [05:09:40]CAPDU: 80 11 00 00 [05:09:40]Write to MH i2c: E2 08 00 BD BE 80 11 00 00 00 00 00 00 F5 [05:09:40]Write i2c OK [05:09:40]MH_I2C_Read... [05:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:40]Read from MH i2c: E2 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 17 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 17 00 BD BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4D [05:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:09:40]wFMCommunicate OK [05:09:40]CreateOFDProtocolMessage done [05:09:40]OFDSenderStorePacket 165529 [05:09:40]StoreOFDPacket docnum=165529 [05:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8F 51 04 01 1A 90 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 9D 90 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 86 02 00 35 04 06 00 E7 68 61 E7 ED 55 C0 52 71 CE 7F 16 B5 02 [05:09:40]CheckFolder [05:09:40]dirname=/storage/ofd_packets [05:09:40]CheckFolder done [05:09:40]ProducePacketName [05:09:40]name=ofd_packets/00165529 [05:09:40]NVStorageSaveData ofd_packets/00165529 [05:09:40]File name is /storage/ofd_packets/00165529 [05:09:40]Write 298 bytes [05:09:40]NVStorageSaveData done [05:09:40]OFDSenderStorePacket done [05:09:40]KKMCreateOFDPacket done [05:09:40]NVStorageSaveData kkm_last_timestamp [05:09:40]File name is /storage/kkm_last_timestamp [05:09:40]Write 4 bytes [05:09:40]NVStorageSaveData done [05:09:40]ExternCall_PrintAddStr [05:09:40]wPrintStart [05:09:40]Write to MH i2c: 01 00 00 BE BE 7C [05:09:40]Write i2c OK [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: 01 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: 01 07 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: 01 07 00 BE BE 00 00 00 00 00 FF 0F 91 [05:09:40]RasterBufferAndPrint [05:09:40]line Счет N : (1)220089 [05:09:40]line ИНН: 02508201610067 [05:09:40]line Контрольно-Кассовый Чек [05:09:40]line ПРОДАЖА [05:09:40]line ТРК (МРК, ГНК) : 21 [05:09:40]line Товар: 2710194210 [05:09:40]line ДТ-К-5 [05:09:40]line 13.130 * 76.20 [05:09:40]line = 1000.51 [05:09:40]line НДС 12% НСП 1% [05:09:40]line > о реализуемом товаре [05:09:40]line ОКРУГЛЕНИЕ: -0.51 [05:09:40]line ИТОГО: 1000.00 [05:09:40]line Внесено: 1000.00 [05:09:40]line СДАЧА: 0.00 [05:09:40]line НСП 1% : 8.85 [05:09:40]line НДС 12% : 106.25 [05:09:40]line Наличными: 1000.00 [05:09:40]line Безнал.: 0.00 [05:09:40]line Место: АЗС № 161 "Партнер Нефть" [05:09:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:09:40]line СНО: Общий режим [05:09:40]line Чек 11 20.10.2024 05:09 [05:09:40]line Смена: 534 ФФД: 1.0 [05:09:40]line ЗНМ: 0300000104 [05:09:40]line РНМ: 0000000000091764 [05:09:40]line Версия ККМ: 001 [05:09:40]line ФМ: 0000000000871759 [05:09:40]line ФД: 165529 [05:09:40]line ФПД: 254435505204565 [05:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T050949&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165529&fm=254435505204565&tin=02508201610067®Number=0000000000091764&sum=100000 [05:09:40]OFD Sender: Processing packet 165529 [packets to send 48, broken 47] [05:09:40]ProducePacketName [05:09:40]name=ofd_packets/00165529 [05:09:40]OFD Sender: To server: pG, [05:09:40]CommunicateWithHost lk.salyk.kg:30040 [05:09:40]ConnectInit lk.salyk.kg [05:09:40]written 0, free lines is 4095 [05:09:40]Connected sock=10 [05:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8F 51 04 01 1A 90 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 9D 90 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 86 02 00 35 04 06 00 E7 68 61 E7 ED 55 C0 52 71 CE 7F 16 B5 02 [05:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 23 02 47 00 BB 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 31 37 35 39 10 04 04 00 99 86 02 00 F4 03 04 00 10 37 14 67 B6 04 01 00 00 7D 31 45 F0 88 8A 44 6A [05:09:40]CommunicateWithHost err = 0 [05:09:40]CheckOFDResponse [05:09:40]1017 (14) - 77093643461234 [05:09:40]1041 (16) - 0000000000871759 [05:09:40]1040 (4) - 165529 [05:09:40]1012 (4) - 19.10.2024 22:47 [05:09:40]1206 (1) - 0 [05:09:40]OFD Sender: Remove packet 165529 [05:09:40]ProducePacketName [05:09:40]name=ofd_packets/00165529 [05:09:40]NVStorageDeleteData [05:09:41]Write to MH i2c: 01 00 00 E9 BE A7 [05:09:41]Write i2c OK [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: 01 [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: 01 07 00 [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: 01 07 00 E9 BE 00 00 00 00 00 97 0C 51 [05:09:41]RasterBufferAndPrint [05:09:41]line [05:09:41]line [05:09:41]line [05:09:41]line [05:09:41]line [05:09:41]written 0, free lines is 3229 [05:09:41]MH_Cut [05:09:41]Write to MH i2c: D1 01 00 F0 BE 01 80 [05:09:41]Write i2c OK [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: D1 [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: D1 01 00 [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: D1 01 00 F0 BE 00 7F [05:09:41]Write to MH i2c: 01 00 00 F1 BE AF [05:09:41]Write i2c OK [05:09:41]MH_I2C_Read... [05:09:41]OFD Sender: No OFD packet to send [05:09:41]*** Cut start [05:09:41]*** Partial cut [05:09:41]*** CUTSNS_PIN = 1 [05:09:42]*** CUTSNS_PIN = 0 [05:09:42]*** Brake cut motor [05:09:42]Read from MH i2c: 01 [05:09:42]MH_I2C_Read... [05:09:42]*** Stop cut motor [05:09:42]*** Cut end [05:09:42]Read from MH i2c: 01 07 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: 01 07 00 F1 BE 00 00 00 00 00 FF 0F C4 [05:09:42]process_action close_receipt done [05:09:42]requested_data is exist [05:09:42]produce_requested_data [05:09:42]requested_item fm.sn is exist - process it [05:09:42]wFMCommunicate request_size=4 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 11 00 00 [05:09:42]Write to MH i2c: E2 08 00 F2 BE 80 11 00 00 00 00 00 00 2A [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 17 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 17 00 F2 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [05:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:09:42]wFMCommunicate OK [05:09:42]requested_item fd.num is exist - process it [05:09:42]SAM_PROTO_GetFieldsCounters [05:09:42]wFMCommunicate request_size=4 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 13 00 00 [05:09:42]Write to MH i2c: E2 08 00 F3 BE 80 13 00 00 00 00 00 00 2D [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 62 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 62 00 F3 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [05:09: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:09:42]wFMCommunicate OK [05:09:42]SAM_PROTO_GetFieldsCounters done [05:09:42]requested_item shift.num is exist - process it [05:09:42]requested_item shift.opened is exist - process it [05:09:42]req_shift_opened [05:09:42]FM_GetShiftState [05:09:42]SAM_PROTO_GetShiftState [05:09:42]wFMCommunicate request_size=4 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 13 01 00 [05:09:42]Write to MH i2c: E2 08 00 F4 BE 80 13 01 00 00 00 00 00 2F [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 0E 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 0E 00 F4 BE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 77 [05:09:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [05:09:42]wFMCommunicate OK [05:09:42]SAM_PROTO_GetShiftState done [05:09:42]FM_GetShiftState done [05:09:42]req_shift_opened done [05:09:42]requested_item shift.open_date is exist - process it [05:09:42]req_shift_open_date [05:09:42]req_shift_open_date done [05:09:42]produce_requested_data done [05:09:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165529,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [05:09:42]process_action_free close_receipt [05:09:42]json_value_free [05:09:42]json_value_free done [05:09:42]process_json_proto returns [05:09:42]Send response to host [05:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165529,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [05:09:42]free response buf [05:09:42]execute_script done [05:09:42]execute_script returns [05:09:42]free content buf [05:09:42]Sock 7.Close socket [05:09:42]Sock 7.Thread stoped [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:03]accept exits with 9 [05:21:03]New connection [05:21:03]New thread 3066776932 created [05:21:03]Thread 3066920292 joined [05:21:03]Waiting for new connection... [05:21:03] Sock 9.Parse request [05:21:03]Sock 9.Check first char [05:21:03]Sock 9.First char is OK [05:21:03]request: POST /json_proto HTTP/1.0 [05:21:03]Method: POST [05:21:03]URL: /json_proto [05:21:03]Method is POST - this is cgi request [05:21:03]url: /json_proto [05:21:03]query_string will be loaded in cgi processing [05:21:03]execute_cgi json_proto POST (null) [05:21:03]execute_cgi path=json_proto method=POST [05:21:03]POST find Content-Length [05:21:03]Host: 172.17.53.195:8080 [05:21:03]Content-Length: 682 [05:21:03]Content-Type: application/json [05:21:03] [05:21:03]POST finish read [05:21:03]Found Content-Length = 682 [05:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:21:03]execute_script... [05:21: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)220090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:21:03]POST & json_proto [05:21:03]process_json_proto [05:21:03]json parsed OK: [05:21:03]protocol is kg_v1.0 [05:21:03]action value=close_receipt [05:21:03]process_action close_receipt [05:21:03]cmd_close_receipt [05:21:03]MH_GetDate [05:21:03]Write to MH i2c: F0 00 00 F5 BE A2 [05:21:03]Write i2c OK [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: F0 [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: F0 09 00 [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: F0 09 00 F5 BE 00 4A 93 14 67 21 48 4A 65 1B [05:21:03]GetLastDocTimeStamp 1729400989 [05:21:03]current date 1729401674 [05:21:03]FM_GetShiftState [05:21:03]SAM_PROTO_GetShiftState [05:21:03]wFMCommunicate request_size=4 [05:21:03]MH_SAM_APDU [05:21:03]CAPDU: 80 13 01 00 [05:21:03]Write to MH i2c: E2 08 00 F6 BE 80 13 01 00 00 00 00 00 31 [05:21:03]Write i2c OK [05:21:03]MH_I2C_Read... [05:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:03]Read from MH i2c: E2 [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: E2 0E 00 [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: E2 0E 00 F6 BE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 79 [05:21:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [05:21:03]wFMCommunicate OK [05:21:03]SAM_PROTO_GetShiftState done [05:21:03]FM_GetShiftState done [05:21:03]opened in 1729384561 [05:21:03]opened+sec_in_day 1729470961 [05:21:03]quantity*price = 100015 [05:21:03]sum+1 = 100017 [05:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 12 20.10.2024 05:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165530 ФПД: 252164354672506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T052114&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165530&fm=252164354672506&tin=02508201610067®Number=0000000000091764&sum=100000 [05:21:04]StoreToDocumentArchive [05:21:04]shift 534 fd 165530 [05:21:04]save to /storage/0534/doc_00165530 [05:21:04]save last doc name /storage/0534/doc_00165530 to /storage/kkm_last_doc_name [05:21:04]save OK [05:21:04]Clear old archive folders... [05:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:21:04]tlvbuf is 014CB190 [05:21:04]SAM_PROTO_ClearQueue [05:21:04]wFMCommunicate request_size=4 [05:21:04]MH_SAM_APDU [05:21:04]CAPDU: 80 09 00 00 [05:21:04]Write to MH i2c: E2 08 00 03 BF 80 09 00 00 00 00 00 00 34 [05:21:04]Write i2c OK [05:21:04]MH_I2C_Read... [05:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:21:04]Read from MH i2c: E2 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: E2 03 00 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: E2 03 00 03 BF 00 90 00 36 [05:21:04]RAPDU: 90 00 [05:21:04]wFMCommunicate OK [05:21:04]SAM_PROTO_ClearQueue done [05:21:04]KKMCreateOFDPacket [05:21:04]OFDProtocolAddRootSTLVToBuf [05:21:04]FM_MakeSignedData [05:21:04]FM_MakeSignedData [05:21:04]SAM_PROTO_SignData [05:21:04]wFMCommunicate request_size=4 [05:21:04]MH_SAM_APDU [05:21:04]CAPDU: 80 0D 01 02 [05:21:04]Write to MH i2c: E2 08 00 04 BF 80 0D 01 02 00 00 00 00 3C [05:21:04]Write i2c OK [05:21:04]MH_I2C_Read... [05:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:21:05]Read from MH i2c: E2 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 03 00 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 03 00 04 BF 00 90 00 37 [05:21:05]RAPDU: 90 00 [05:21:05]wFMCommunicate OK [05:21:05]wFMCommunicate request_size=255 [05:21:05]MH_SAM_APDU [05:21: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4A 93 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 86 02 00 35 04 06 00 E5 [05:21:05]Write to MH i2c: E2 02 01 05 BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4A 93 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 86 02 00 35 04 06 00 E5 00 00 4F [05:21:05]Write i2c OK [05:21:05]MH_I2C_Read... [05:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:05]Read from MH i2c: E2 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 03 00 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 03 00 05 BF 00 90 00 38 [05:21:05]RAPDU: 90 00 [05:21:05]wFMCommunicate OK [05:21:05]wFMCommunicate request_size=10 [05:21:05]MH_SAM_APDU [05:21:05]CAPDU: 80 0D 02 02 05 57 96 C9 07 7A [05:21:05]Write to MH i2c: E2 0D 00 06 BF 80 0D 02 02 05 00 57 96 C9 07 7A 00 00 80 [05:21:05]Write i2c OK [05:21:05]MH_I2C_Read... [05:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:05]Read from MH i2c: E2 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 03 00 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 03 00 06 BF 00 90 00 39 [05:21:05]RAPDU: 90 00 [05:21:05]wFMCommunicate OK [05:21:05]wFMCommunicate request_size=4 [05:21:05]MH_SAM_APDU [05:21:05]CAPDU: 80 0D 03 02 [05:21:05]Write to MH i2c: E2 08 00 07 BF 80 0D 03 02 00 00 00 00 41 [05:21:05]Write i2c OK [05:21:05]MH_I2C_Read... [05:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:21:05]Read from MH i2c: E2 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 0B 00 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 0B 00 07 BF 00 66 F0 C5 37 1F 3A C1 82 90 00 30 [05:21:05]RAPDU: 66 F0 C5 37 1F 3A C1 82 90 00 [05:21:05]wFMCommunicate OK [05:21:05]SAM_PROTO_SignData done [05:21:05]FM_MakeSignedData done [05:21:05]CreateOFDProtocolMessage [05:21:05]wFMCommunicate request_size=4 [05:21:05]MH_SAM_APDU [05:21:05]CAPDU: 80 11 00 00 [05:21:05]Write to MH i2c: E2 08 00 08 BF 80 11 00 00 00 00 00 00 41 [05:21:05]Write i2c OK [05:21:05]MH_I2C_Read... [05:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:05]Read from MH i2c: E2 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 17 00 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 17 00 08 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [05:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:21:05]wFMCommunicate OK [05:21:05]CreateOFDProtocolMessage done [05:21:05]OFDSenderStorePacket 165530 [05:21:05]StoreOFDPacket docnum=165530 [05:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 E7 07 01 68 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4A 93 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 86 02 00 35 04 06 00 E5 57 96 C9 07 7A 66 F0 C5 37 1F 3A C1 82 [05:21:05]CheckFolder [05:21:05]dirname=/storage/ofd_packets [05:21:05]CheckFolder done [05:21:05]ProducePacketName [05:21:05]name=ofd_packets/00165530 [05:21:05]NVStorageSaveData ofd_packets/00165530 [05:21:05]File name is /storage/ofd_packets/00165530 [05:21:05]Write 301 bytes [05:21:05]NVStorageSaveData done [05:21:05]OFDSenderStorePacket done [05:21:05]KKMCreateOFDPacket done [05:21:05]NVStorageSaveData kkm_last_timestamp [05:21:05]File name is /storage/kkm_last_timestamp [05:21:05]Write 4 bytes [05:21:05]NVStorageSaveData done [05:21:05]ExternCall_PrintAddStr [05:21:05]wPrintStart [05:21:05]Write to MH i2c: 01 00 00 09 BF C8 [05:21:05]Write i2c OK [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: 01 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: 01 07 00 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: 01 07 00 09 BF 00 00 00 00 00 FF 0F DD [05:21:05]RasterBufferAndPrint [05:21:05]line Счет N : (1)220090 [05:21:05]line ИНН: 02508201610067 [05:21:05]line Контрольно-Кассовый Чек [05:21:05]line ПРОДАЖА [05:21:05]line ТРК (МРК, ГНК) : 23 [05:21:05]line Товар: 2710124130 [05:21:05]line Аи-92-К-5 [05:21:05]line 14.950 * 66.90 [05:21:05]line = 1000.16 [05:21:05]line НДС 12% НСП 1% [05:21:05]line > о реализуемом товаре [05:21:05]line ОКРУГЛЕНИЕ: -0.16 [05:21:05]line ИТОГО: 1000.00 [05:21:05]line Внесено: 1000.00 [05:21:05]line СДАЧА: 0.00 [05:21:05]line НСП 1% : 8.85 [05:21:05]line НДС 12% : 106.21 [05:21:05]line Наличными: 1000.00 [05:21:05]line Безнал.: 0.00 [05:21:05]line Место: АЗС № 161 "Партнер Нефть" [05:21:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:21:05]line СНО: Общий режим [05:21:05]line Чек 12 20.10.2024 05:21 [05:21:05]line Смена: 534 ФФД: 1.0 [05:21:05]line ЗНМ: 0300000104 [05:21:05]line РНМ: 0000000000091764 [05:21:05]line Версия ККМ: 001 [05:21:05]line ФМ: 0000000000871759 [05:21:05]line ФД: 165530 [05:21:05]line ФПД: 252164354672506 [05:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T052114&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165530&fm=252164354672506&tin=02508201610067®Number=0000000000091764&sum=100000 [05:21:05]OFD Sender: Processing packet 165530 [packets to send 48, broken 47] [05:21:05]ProducePacketName [05:21:05]name=ofd_packets/00165530 [05:21:05]OFD Sender: To server: pG, [05:21:05]CommunicateWithHost lk.salyk.kg:30040 [05:21:05]ConnectInit lk.salyk.kg [05:21:05]written 0, free lines is 4095 [05:21:06]Write to MH i2c: 01 00 00 34 BF F3 [05:21:06]Write i2c OK [05:21:06]MH_I2C_Read... [05:21:06]Read from MH i2c: 01 [05:21:06]MH_I2C_Read... [05:21:06]Read from MH i2c: 01 07 00 [05:21:06]MH_I2C_Read... [05:21:06]Read from MH i2c: 01 07 00 34 BF 00 00 00 00 00 9B 0C A1 [05:21:06]RasterBufferAndPrint [05:21:06]line [05:21:06]line [05:21:06]line [05:21:06]line [05:21:06]line [05:21:06]written 0, free lines is 3233 [05:21:06]MH_Cut [05:21:06]Write to MH i2c: D1 01 00 3B BF 01 CC [05:21:06]Write i2c OK [05:21:06]MH_I2C_Read... [05:21:06]Read from MH i2c: D1 [05:21:06]MH_I2C_Read... [05:21:06]Read from MH i2c: D1 01 00 [05:21:06]MH_I2C_Read... [05:21:06]Read from MH i2c: D1 01 00 3B BF 00 CB [05:21:06]Write to MH i2c: 01 00 00 3C BF FB [05:21:06]Write i2c OK [05:21:06]MH_I2C_Read... [05:21:07]*** Cut start [05:21:07]*** Partial cut [05:21:07]*** CUTSNS_PIN = 1 [05:21:07]*** CUTSNS_PIN = 0 [05:21:07]*** Brake cut motor [05:21:07]Read from MH i2c: 01 [05:21:07]MH_I2C_Read... [05:21:07]*** Stop cut motor [05:21:07]*** Cut end [05:21:07]Read from MH i2c: 01 07 00 [05:21:07]MH_I2C_Read... [05:21:07]Read from MH i2c: 01 07 00 3C BF 00 00 00 00 00 FF 0F 10 [05:21:07]process_action close_receipt done [05:21:07]requested_data is exist [05:21:07]produce_requested_data [05:21:07]requested_item fm.sn is exist - process it [05:21:07]wFMCommunicate request_size=4 [05:21:07]MH_SAM_APDU [05:21:07]CAPDU: 80 11 00 00 [05:21:07]Write to MH i2c: E2 08 00 3D BF 80 11 00 00 00 00 00 00 76 [05:21:07]Write i2c OK [05:21:07]MH_I2C_Read... [05:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:07]Read from MH i2c: E2 [05:21:07]MH_I2C_Read... [05:21:07]Read from MH i2c: E2 17 00 [05:21:07]MH_I2C_Read... [05:21:07]Read from MH i2c: E2 17 00 3D BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [05:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:21:07]wFMCommunicate OK [05:21:07]requested_item fd.num is exist - process it [05:21:07]SAM_PROTO_GetFieldsCounters [05:21:07]wFMCommunicate request_size=4 [05:21:07]MH_SAM_APDU [05:21:07]CAPDU: 80 13 00 00 [05:21:07]Write to MH i2c: E2 08 00 3E BF 80 13 00 00 00 00 00 00 79 [05:21:07]Write i2c OK [05:21:07]MH_I2C_Read... [05:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:21:07]Read from MH i2c: E2 [05:21:07]MH_I2C_Read... [05:21:07]Read from MH i2c: E2 62 00 [05:21:07]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 62 00 3E BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [05:21: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:21:08]wFMCommunicate OK [05:21:08]SAM_PROTO_GetFieldsCounters done [05:21:08]requested_item shift.num is exist - process it [05:21:08]requested_item shift.opened is exist - process it [05:21:08]req_shift_opened [05:21:08]FM_GetShiftState [05:21:08]SAM_PROTO_GetShiftState [05:21:08]wFMCommunicate request_size=4 [05:21:08]MH_SAM_APDU [05:21:08]CAPDU: 80 13 01 00 [05:21:08]Write to MH i2c: E2 08 00 3F BF 80 13 01 00 00 00 00 00 7B [05:21:08]Write i2c OK [05:21:08]MH_I2C_Read... [05:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:08]Read from MH i2c: E2 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 0E 00 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 0E 00 3F BF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C3 [05:21:08]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [05:21:08]wFMCommunicate OK [05:21:08]SAM_PROTO_GetShiftState done [05:21:08]FM_GetShiftState done [05:21:08]req_shift_opened done [05:21:08]requested_item shift.open_date is exist - process it [05:21:08]req_shift_open_date [05:21:08]req_shift_open_date done [05:21:08]produce_requested_data done [05:21:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165530,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [05:21:08]process_action_free close_receipt [05:21:08]json_value_free [05:21:08]json_value_free done [05:21:08]process_json_proto returns [05:21:08]Send response to host [05:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165530,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [05:21:08]free response buf [05:21:08]execute_script done [05:21:08]execute_script returns [05:21:08]free content buf [05:21:08]Sock 9.Close socket [05:21:08]Sock 9.Thread stoped [05:23:18]ConnectInit Can't connect to host [05:23:18]CommunicateWithHost connect error [05:23:18]CommunicateWithHost err = -1 [05:23:18]OFD Sender: Server communicate error [05:23:23]OFD Sender: Processing packet 165530 [packets to send 48, broken 47] [05:23:23]ProducePacketName [05:23:23]name=ofd_packets/00165530 [05:23:23]OFD Sender: To server: pG, [05:23:23]CommunicateWithHost lk.salyk.kg:30040 [05:23:23]ConnectInit lk.salyk.kg [05:23:23]Connected sock=9 [05:23:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 E7 07 01 68 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4A 93 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 86 02 00 35 04 06 00 E5 57 96 C9 07 7A 66 F0 C5 37 1F 3A C1 82 [05:23:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8A 38 47 00 9F F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 86 02 00 F4 03 04 00 46 3A 14 67 B6 04 01 00 00 2F A5 A5 56 49 69 6A C5 [05:23:23]CommunicateWithHost err = 0 [05:23:23]CheckOFDResponse [05:23:23]1017 (14) - 77093643461234 [05:23:23]1041 (16) - 0000000000871759 [05:23:23]1040 (4) - 165530 [05:23:23]1012 (4) - 19.10.2024 23:01 [05:23:23]1206 (1) - 0 [05:23:23]OFD Sender: Remove packet 165530 [05:23:23]ProducePacketName [05:23:23]name=ofd_packets/00165530 [05:23:23]NVStorageDeleteData [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:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:39]accept exits with 7 [05:49:39]New connection [05:49:39]New thread 3066920292 created [05:49:39]Thread 3066776932 joined [05:49:39]Waiting for new connection... [05:49:39] Sock 7.Parse request [05:49:39]Sock 7.Check first char [05:49:39]Sock 7.First char is OK [05:49:39]request: POST /json_proto HTTP/1.0 [05:49:39]Method: POST [05:49:39]URL: /json_proto [05:49:39]Method is POST - this is cgi request [05:49:39]url: /json_proto [05:49:39]query_string will be loaded in cgi processing [05:49:39]execute_cgi json_proto POST (null) [05:49:39]execute_cgi path=json_proto method=POST [05:49:39]POST find Content-Length [05:49:39]Host: 172.17.53.195:8080 [05:49:39]Content-Length: 675 [05:49:39]Content-Type: application/json [05:49:39] [05:49:39]POST finish read [05:49:39]Found Content-Length = 675 [05:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220091", "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" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [05:49:39]execute_script... [05:49: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)220091", "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" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [05:49:39]POST & json_proto [05:49:39]process_json_proto [05:49:39]json parsed OK: [05:49:39]protocol is kg_v1.0 [05:49:39]action value=close_receipt [05:49:39]process_action close_receipt [05:49:39]cmd_close_receipt [05:49:39]MH_GetDate [05:49:39]Write to MH i2c: F0 00 00 40 BF EE [05:49:39]Write i2c OK [05:49:39]MH_I2C_Read... [05:49:39]Read from MH i2c: F0 [05:49:39]MH_I2C_Read... [05:49:39]Read from MH i2c: F0 09 00 [05:49:39]MH_I2C_Read... [05:49:39]Read from MH i2c: F0 09 00 40 BF 00 FE 99 14 67 21 48 4A 65 21 [05:49:39]GetLastDocTimeStamp 1729401674 [05:49:39]current date 1729403390 [05:49:39]FM_GetShiftState [05:49:39]SAM_PROTO_GetShiftState [05:49:39]wFMCommunicate request_size=4 [05:49:39]MH_SAM_APDU [05:49:39]CAPDU: 80 13 01 00 [05:49:39]Write to MH i2c: E2 08 00 41 BF 80 13 01 00 00 00 00 00 7D [05:49:39]Write i2c OK [05:49:39]MH_I2C_Read... [05:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:39]Read from MH i2c: E2 [05:49:39]MH_I2C_Read... [05:49:39]Read from MH i2c: E2 0E 00 [05:49:39]MH_I2C_Read... [05:49:39]Read from MH i2c: E2 0E 00 41 BF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C5 [05:49:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [05:49:39]wFMCommunicate OK [05:49:39]SAM_PROTO_GetShiftState done [05:49:39]FM_GetShiftState done [05:49:39]opened in 1729384561 [05:49:39]opened+sec_in_day 1729470961 [05:49:39]quantity*price = 80010 [05:49:39]sum+1 = 80011 [05:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 13 20.10.2024 05:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165531 ФПД: 116826861620997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T054950&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165531&fm=116826861620997&tin=02508201610067®Number=0000000000091764&sum=80000 [05:49:40]StoreToDocumentArchive [05:49:40]shift 534 fd 165531 [05:49:40]save to /storage/0534/doc_00165531 [05:49:40]save last doc name /storage/0534/doc_00165531 to /storage/kkm_last_doc_name [05:49:40]save OK [05:49:40]Clear old archive folders... [05:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:49:40]tlvbuf is 015E97F0 [05:49:40]SAM_PROTO_ClearQueue [05:49:40]wFMCommunicate request_size=4 [05:49:40]MH_SAM_APDU [05:49:40]CAPDU: 80 09 00 00 [05:49:40]Write to MH i2c: E2 08 00 4E BF 80 09 00 00 00 00 00 00 7F [05:49:40]Write i2c OK [05:49:40]MH_I2C_Read... [05:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:40]Read from MH i2c: E2 [05:49:40]MH_I2C_Read... [05:49:40]Read from MH i2c: E2 03 00 [05:49:40]MH_I2C_Read... [05:49:40]Read from MH i2c: E2 03 00 4E BF 00 90 00 81 [05:49:40]RAPDU: 90 00 [05:49:40]wFMCommunicate OK [05:49:40]SAM_PROTO_ClearQueue done [05:49:40]KKMCreateOFDPacket [05:49:40]OFDProtocolAddRootSTLVToBuf [05:49:40]FM_MakeSignedData [05:49:40]FM_MakeSignedData [05:49:40]SAM_PROTO_SignData [05:49:40]wFMCommunicate request_size=4 [05:49:40]MH_SAM_APDU [05:49:40]CAPDU: 80 0D 01 02 [05:49:40]Write to MH i2c: E2 08 00 4F BF 80 0D 01 02 00 00 00 00 87 [05:49:40]Write i2c OK [05:49:40]MH_I2C_Read... [05:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:40]Read from MH i2c: E2 [05:49:40]MH_I2C_Read... [05:49:40]Read from MH i2c: E2 03 00 [05:49:40]MH_I2C_Read... [05:49:40]Read from MH i2c: E2 03 00 4F BF 00 90 00 82 [05:49:40]RAPDU: 90 00 [05:49:40]wFMCommunicate OK [05:49:40]wFMCommunicate request_size=255 [05:49:40]MH_SAM_APDU [05:49:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 0D 00 00 00 F4 03 04 00 FE 99 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 86 02 00 35 04 06 00 6A 40 DF 96 [05:49:40]Write to MH i2c: E2 02 01 50 BF 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 0D 00 00 00 F4 03 04 00 FE 99 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 86 02 00 35 04 06 00 6A 40 DF 96 00 00 BF [05:49:40]Write i2c OK [05:49:40]MH_I2C_Read... [05:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:41]Read from MH i2c: E2 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: E2 03 00 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: E2 03 00 50 BF 00 90 00 83 [05:49:41]RAPDU: 90 00 [05:49:41]wFMCommunicate OK [05:49:41]wFMCommunicate request_size=7 [05:49:41]MH_SAM_APDU [05:49:41]CAPDU: 80 0D 02 02 02 4F 05 [05:49:41]Write to MH i2c: E2 0A 00 51 BF 80 0D 02 02 02 00 4F 05 00 00 E2 [05:49:41]Write i2c OK [05:49:41]MH_I2C_Read... [05:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:41]Read from MH i2c: E2 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: E2 03 00 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: E2 03 00 51 BF 00 90 00 84 [05:49:41]RAPDU: 90 00 [05:49:41]wFMCommunicate OK [05:49:41]wFMCommunicate request_size=4 [05:49:41]MH_SAM_APDU [05:49:41]CAPDU: 80 0D 03 02 [05:49:41]Write to MH i2c: E2 08 00 52 BF 80 0D 03 02 00 00 00 00 8C [05:49:41]Write i2c OK [05:49:41]MH_I2C_Read... [05:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:41]Read from MH i2c: E2 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: E2 0B 00 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: E2 0B 00 52 BF 00 61 47 0E 9E B1 28 CC 53 90 00 D9 [05:49:41]RAPDU: 61 47 0E 9E B1 28 CC 53 90 00 [05:49:41]wFMCommunicate OK [05:49:41]SAM_PROTO_SignData done [05:49:41]FM_MakeSignedData done [05:49:41]CreateOFDProtocolMessage [05:49:41]wFMCommunicate request_size=4 [05:49:41]MH_SAM_APDU [05:49:41]CAPDU: 80 11 00 00 [05:49:41]Write to MH i2c: E2 08 00 53 BF 80 11 00 00 00 00 00 00 8C [05:49:41]Write i2c OK [05:49:41]MH_I2C_Read... [05:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:41]Read from MH i2c: E2 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: E2 17 00 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: E2 17 00 53 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [05:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:49:41]wFMCommunicate OK [05:49:41]CreateOFDProtocolMessage done [05:49:41]OFDSenderStorePacket 165531 [05:49:41]StoreOFDPacket docnum=165531 [05:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 17 59 04 01 6E 02 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 0D 00 00 00 F4 03 04 00 FE 99 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 86 02 00 35 04 06 00 6A 40 DF 96 4F 05 61 47 0E 9E B1 28 CC 53 [05:49:41]CheckFolder [05:49:41]dirname=/storage/ofd_packets [05:49:41]CheckFolder done [05:49:41]ProducePacketName [05:49:41]name=ofd_packets/00165531 [05:49:41]NVStorageSaveData ofd_packets/00165531 [05:49:41]File name is /storage/ofd_packets/00165531 [05:49:41]Write 298 bytes [05:49:41]NVStorageSaveData done [05:49:41]OFDSenderStorePacket done [05:49:41]KKMCreateOFDPacket done [05:49:41]NVStorageSaveData kkm_last_timestamp [05:49:41]File name is /storage/kkm_last_timestamp [05:49:41]Write 4 bytes [05:49:41]NVStorageSaveData done [05:49:41]ExternCall_PrintAddStr [05:49:41]wPrintStart [05:49:41]Write to MH i2c: 01 00 00 54 BF 13 [05:49:41]Write i2c OK [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: 01 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: 01 07 00 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: 01 07 00 54 BF 00 00 00 00 00 FF 0F 28 [05:49:41]RasterBufferAndPrint [05:49:41]line Счет N : (1)220091 [05:49:41]line ИНН: 02508201610067 [05:49:41]line Контрольно-Кассовый Чек [05:49:41]line ПРОДАЖА [05:49:41]line ТРК (МРК, ГНК) : 11 [05:49:41]line Товар: 2710194210 [05:49:41]line ДТ-К-5 [05:49:41]line 10.500 * 76.20 [05:49:41]line = 800.10 [05:49:41]line НДС 12% НСП 1% [05:49:41]line > о реализуемом товаре [05:49:41]line ОКРУГЛЕНИЕ: -0.10 [05:49:41]line ИТОГО: 800.00 [05:49:41]line Внесено: 800.00 [05:49:41]line СДАЧА: 0.00 [05:49:41]line НСП 1% : 7.08 [05:49:41]line НДС 12% : 84.97 [05:49:41]line Наличными: 800.00 [05:49:41]line Безнал.: 0.00 [05:49:41]line Место: АЗС № 161 "Партнер Нефть" [05:49:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:49:41]line СНО: Общий режим [05:49:41]line Чек 13 20.10.2024 05:49 [05:49:41]line Смена: 534 ФФД: 1.0 [05:49:41]line ЗНМ: 0300000104 [05:49:41]line РНМ: 0000000000091764 [05:49:41]line Версия ККМ: 001 [05:49:41]line ФМ: 0000000000871759 [05:49:41]line ФД: 165531 [05:49:41]line ФПД: 116826861620997 [05:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T054950&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165531&fm=116826861620997&tin=02508201610067®Number=0000000000091764&sum=80000 [05:49:41]written 0, free lines is 4095 [05:49:41]OFD Sender: Processing packet 165531 [packets to send 48, broken 47] [05:49:41]ProducePacketName [05:49:41]name=ofd_packets/00165531 [05:49:41]OFD Sender: To server: pG, [05:49:41]CommunicateWithHost lk.salyk.kg:30040 [05:49:41]ConnectInit lk.salyk.kg [05:49:41]Connected sock=10 [05:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 17 59 04 01 6E 02 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 0D 00 00 00 F4 03 04 00 FE 99 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 86 02 00 35 04 06 00 6A 40 DF 96 4F 05 61 47 0E 9E B1 28 CC 53 [05:49:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C1 FE 47 00 0C 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 31 37 35 39 10 04 04 00 9B 86 02 00 F4 03 04 00 70 40 14 67 B6 04 01 00 00 8C 2E EB 40 AC F9 CA 36 [05:49:41]CommunicateWithHost err = 0 [05:49:41]CheckOFDResponse [05:49:41]1017 (14) - 77093643461234 [05:49:41]1041 (16) - 0000000000871759 [05:49:41]1040 (4) - 165531 [05:49:41]1012 (4) - 19.10.2024 23:27 [05:49:41]1206 (1) - 0 [05:49:41]OFD Sender: Remove packet 165531 [05:49:41]ProducePacketName [05:49:41]name=ofd_packets/00165531 [05:49:41]NVStorageDeleteData [05:49:41]Write to MH i2c: 01 00 00 7F BF 3E [05:49:41]Write i2c OK [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: 01 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: 01 07 00 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: 01 07 00 7F BF 00 00 00 00 00 A5 0C F6 [05:49:41]RasterBufferAndPrint [05:49:41]line [05:49:41]line [05:49:41]line [05:49:41]line [05:49:41]line [05:49:41]written 0, free lines is 3242 [05:49:41]MH_Cut [05:49:41]Write to MH i2c: D1 01 00 86 BF 01 17 [05:49:41]Write i2c OK [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: D1 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: D1 01 00 [05:49:41]MH_I2C_Read... [05:49:41]Read from MH i2c: D1 01 00 86 BF 00 16 [05:49:41]Write to MH i2c: 01 00 00 87 BF 46 [05:49:41]Write i2c OK [05:49:41]MH_I2C_Read... [05:49:42]OFD Sender: No OFD packet to send [05:49:42]*** Cut start [05:49:42]*** Partial cut [05:49:42]*** CUTSNS_PIN = 1 [05:49:42]*** CUTSNS_PIN = 0 [05:49:42]*** Brake cut motor [05:49:43]Read from MH i2c: 01 [05:49:43]MH_I2C_Read... [05:49:43]*** Stop cut motor [05:49:43]*** Cut end [05:49:43]Read from MH i2c: 01 07 00 [05:49:43]MH_I2C_Read... [05:49:43]Read from MH i2c: 01 07 00 87 BF 00 00 00 00 00 FF 0F 5B [05:49:43]process_action close_receipt done [05:49:43]requested_data is exist [05:49:43]produce_requested_data [05:49:43]requested_item fm.sn is exist - process it [05:49:43]wFMCommunicate request_size=4 [05:49:43]MH_SAM_APDU [05:49:43]CAPDU: 80 11 00 00 [05:49:43]Write to MH i2c: E2 08 00 88 BF 80 11 00 00 00 00 00 00 C1 [05:49:43]Write i2c OK [05:49:43]MH_I2C_Read... [05:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:43]Read from MH i2c: E2 [05:49:43]MH_I2C_Read... [05:49:43]Read from MH i2c: E2 17 00 [05:49:43]MH_I2C_Read... [05:49:43]Read from MH i2c: E2 17 00 88 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 19 [05:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:49:43]wFMCommunicate OK [05:49:43]requested_item fd.num is exist - process it [05:49:43]SAM_PROTO_GetFieldsCounters [05:49:43]wFMCommunicate request_size=4 [05:49:43]MH_SAM_APDU [05:49:43]CAPDU: 80 13 00 00 [05:49:43]Write to MH i2c: E2 08 00 89 BF 80 13 00 00 00 00 00 00 C4 [05:49:43]Write i2c OK [05:49:43]MH_I2C_Read... [05:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:43]Read from MH i2c: E2 [05:49:43]MH_I2C_Read... [05:49:43]Read from MH i2c: E2 62 00 [05:49:43]MH_I2C_Read... [05:49:43]Read from MH i2c: E2 62 00 89 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [05:49:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:49:43]wFMCommunicate OK [05:49:43]SAM_PROTO_GetFieldsCounters done [05:49:43]requested_item shift.num is exist - process it [05:49:43]requested_item shift.opened is exist - process it [05:49:43]req_shift_opened [05:49:43]FM_GetShiftState [05:49:43]SAM_PROTO_GetShiftState [05:49:43]wFMCommunicate request_size=4 [05:49:43]MH_SAM_APDU [05:49:43]CAPDU: 80 13 01 00 [05:49:43]Write to MH i2c: E2 08 00 8A BF 80 13 01 00 00 00 00 00 C6 [05:49:43]Write i2c OK [05:49:43]MH_I2C_Read... [05:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:43]Read from MH i2c: E2 [05:49:43]MH_I2C_Read... [05:49:43]Read from MH i2c: E2 0E 00 [05:49:43]MH_I2C_Read... [05:49:43]Read from MH i2c: E2 0E 00 8A BF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0E [05:49:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [05:49:43]wFMCommunicate OK [05:49:43]SAM_PROTO_GetShiftState done [05:49:43]FM_GetShiftState done [05:49:43]req_shift_opened done [05:49:43]requested_item shift.open_date is exist - process it [05:49:43]req_shift_open_date [05:49:43]req_shift_open_date done [05:49:43]produce_requested_data done [05:49:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165531,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [05:49:43]process_action_free close_receipt [05:49:43]json_value_free [05:49:43]json_value_free done [05:49:43]process_json_proto returns [05:49:43]Send response to host [05:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165531,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [05:49:43]free response buf [05:49:43]execute_script done [05:49:43]execute_script returns [05:49:43]free content buf [05:49:43]Sock 7.Close socket [05:49:43]Sock 7.Thread stoped [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:14]accept exits with 9 [06:02:14]New connection [06:02:14]New thread 3066776932 created [06:02:14]Thread 3066920292 joined [06:02:14]Waiting for new connection... [06:02:14] Sock 9.Parse request [06:02:14]Sock 9.Check first char [06:02:14]Sock 9.First char is OK [06:02:14]request: POST /json_proto HTTP/1.0 [06:02:14]Method: POST [06:02:14]URL: /json_proto [06:02:14]Method is POST - this is cgi request [06:02:14]url: /json_proto [06:02:14]query_string will be loaded in cgi processing [06:02:14]execute_cgi json_proto POST (null) [06:02:14]execute_cgi path=json_proto method=POST [06:02:14]POST find Content-Length [06:02:14]Host: 172.17.53.195:8080 [06:02:14]Content-Length: 764 [06:02:14]Content-Type: application/json [06:02:14] [06:02:14]POST finish read [06:02:14]Found Content-Length = 764 [06:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.350, "sum" : 90.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 90.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:02:14]execute_script... [06:02: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)220088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.350, "sum" : 90.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 90.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:02:14]POST & json_proto [06:02:14]process_json_proto [06:02:14]json parsed OK: [06:02:14]protocol is kg_v1.0 [06:02:14]action value=close_receipt [06:02:14]process_action close_receipt [06:02:14]cmd_close_receipt [06:02:14]MH_GetDate [06:02:14]Write to MH i2c: F0 00 00 8B BF 39 [06:02:14]Write i2c OK [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: F0 [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: F0 09 00 [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: F0 09 00 8B BF 00 F0 9C 14 67 21 48 4A 65 61 [06:02:14]GetLastDocTimeStamp 1729403390 [06:02:14]current date 1729404144 [06:02:14]FM_GetShiftState [06:02:14]SAM_PROTO_GetShiftState [06:02:14]wFMCommunicate request_size=4 [06:02:14]MH_SAM_APDU [06:02:14]CAPDU: 80 13 01 00 [06:02:14]Write to MH i2c: E2 08 00 8C BF 80 13 01 00 00 00 00 00 C8 [06:02:14]Write i2c OK [06:02:14]MH_I2C_Read... [06:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:14]Read from MH i2c: E2 [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: E2 0E 00 [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: E2 0E 00 8C BF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 10 [06:02:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:02:14]wFMCommunicate OK [06:02:14]SAM_PROTO_GetShiftState done [06:02:14]FM_GetShiftState done [06:02:14]opened in 1729384561 [06:02:14]opened+sec_in_day 1729470961 [06:02:14]quantity*price = 9031 [06:02:14]sum+1 = 9033 [06:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.32 НСП 1% : 0.80 НДС 12% : 9.59 Наличными: 0.00 Безнал.: 90.32 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 14 20.10.2024 06:02 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165532 ФПД: 25392412582531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060224&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165532&fm=25392412582531&tin=02508201610067®Number=0000000000091764&sum=9032 [06:02:15]StoreToDocumentArchive [06:02:15]shift 534 fd 165532 [06:02:15]save to /storage/0534/doc_00165532 [06:02:15]save last doc name /storage/0534/doc_00165532 to /storage/kkm_last_doc_name [06:02:15]save OK [06:02:15]Clear old archive folders... [06:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:02:15]tlvbuf is 0177A340 [06:02:15]SAM_PROTO_ClearQueue [06:02:15]wFMCommunicate request_size=4 [06:02:15]MH_SAM_APDU [06:02:15]CAPDU: 80 09 00 00 [06:02:15]Write to MH i2c: E2 08 00 99 BF 80 09 00 00 00 00 00 00 CA [06:02:15]Write i2c OK [06:02:15]MH_I2C_Read... [06:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:02:15]Read from MH i2c: E2 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 03 00 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 03 00 99 BF 00 90 00 CC [06:02:15]RAPDU: 90 00 [06:02:15]wFMCommunicate OK [06:02:15]SAM_PROTO_ClearQueue done [06:02:15]KKMCreateOFDPacket [06:02:15]OFDProtocolAddRootSTLVToBuf [06:02:15]FM_MakeSignedData [06:02:15]FM_MakeSignedData [06:02:15]SAM_PROTO_SignData [06:02:15]wFMCommunicate request_size=4 [06:02:15]MH_SAM_APDU [06:02:15]CAPDU: 80 0D 01 02 [06:02:15]Write to MH i2c: E2 08 00 9A BF 80 0D 01 02 00 00 00 00 D2 [06:02:15]Write i2c OK [06:02:15]MH_I2C_Read... [06:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:02:15]Read from MH i2c: E2 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 03 00 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 03 00 9A BF 00 90 00 CD [06:02:15]RAPDU: 90 00 [06:02:15]wFMCommunicate OK [06:02:15]wFMCommunicate request_size=255 [06:02:15]MH_SAM_APDU [06:02:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 F0 9C 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 86 02 00 35 04 06 00 17 [06:02:15]Write to MH i2c: E2 02 01 9B BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 F0 9C 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 86 02 00 35 04 06 00 17 00 00 25 [06:02:15]Write i2c OK [06:02:15]MH_I2C_Read... [06:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:15]Read from MH i2c: E2 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 03 00 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 03 00 9B BF 00 90 00 CE [06:02:15]RAPDU: 90 00 [06:02:15]wFMCommunicate OK [06:02:15]wFMCommunicate request_size=10 [06:02:15]MH_SAM_APDU [06:02:15]CAPDU: 80 0D 02 02 05 18 21 BB 62 83 [06:02:15]Write to MH i2c: E2 0D 00 9C BF 80 0D 02 02 05 00 18 21 BB 62 83 00 00 B8 [06:02:15]Write i2c OK [06:02:15]MH_I2C_Read... [06:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:15]Read from MH i2c: E2 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 03 00 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 03 00 9C BF 00 90 00 CF [06:02:15]RAPDU: 90 00 [06:02:15]wFMCommunicate OK [06:02:15]wFMCommunicate request_size=4 [06:02:15]MH_SAM_APDU [06:02:15]CAPDU: 80 0D 03 02 [06:02:15]Write to MH i2c: E2 08 00 9D BF 80 0D 03 02 00 00 00 00 D7 [06:02:15]Write i2c OK [06:02:15]MH_I2C_Read... [06:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:02:15]Read from MH i2c: E2 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 0B 00 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 0B 00 9D BF 00 98 F9 4C 8B 68 19 94 15 90 00 6A [06:02:15]RAPDU: 98 F9 4C 8B 68 19 94 15 90 00 [06:02:15]wFMCommunicate OK [06:02:15]SAM_PROTO_SignData done [06:02:15]FM_MakeSignedData done [06:02:15]CreateOFDProtocolMessage [06:02:15]wFMCommunicate request_size=4 [06:02:15]MH_SAM_APDU [06:02:15]CAPDU: 80 11 00 00 [06:02:15]Write to MH i2c: E2 08 00 9E BF 80 11 00 00 00 00 00 00 D7 [06:02:15]Write i2c OK [06:02:15]MH_I2C_Read... [06:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:15]Read from MH i2c: E2 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 17 00 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: E2 17 00 9E BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2F [06:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:02:15]wFMCommunicate OK [06:02:15]CreateOFDProtocolMessage done [06:02:15]OFDSenderStorePacket 165532 [06:02:15]StoreOFDPacket docnum=165532 [06:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 89 58 07 01 A6 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 46 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 F0 9C 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 86 02 00 35 04 06 00 17 18 21 BB 62 83 98 F9 4C 8B 68 19 94 15 [06:02:15]CheckFolder [06:02:15]dirname=/storage/ofd_packets [06:02:15]CheckFolder done [06:02:15]ProducePacketName [06:02:15]name=ofd_packets/00165532 [06:02:15]NVStorageSaveData ofd_packets/00165532 [06:02:15]File name is /storage/ofd_packets/00165532 [06:02:15]Write 301 bytes [06:02:15]NVStorageSaveData done [06:02:15]OFDSenderStorePacket done [06:02:15]KKMCreateOFDPacket done [06:02:15]NVStorageSaveData kkm_last_timestamp [06:02:15]File name is /storage/kkm_last_timestamp [06:02:15]Write 4 bytes [06:02:15]NVStorageSaveData done [06:02:15]ExternCall_PrintAddStr [06:02:15]wPrintStart [06:02:15]Write to MH i2c: 01 00 00 9F BF 5E [06:02:15]Write i2c OK [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: 01 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: 01 07 00 [06:02:15]MH_I2C_Read... [06:02:15]Read from MH i2c: 01 07 00 9F BF 00 00 00 00 00 FF 0F 73 [06:02:15]RasterBufferAndPrint [06:02:15]line Счет N : (1)220088 [06:02:15]line ИНН: 02508201610067 [06:02:15]line Контрольно-Кассовый Чек [06:02:15]line ПРОДАЖА [06:02:15]line ТРК (МРК, ГНК) : 33 [06:02:15]line Товар: 2710124130 [06:02:15]line Аи-92-К-5 [06:02:15]line 1.350 * 66.90 [06:02:15]line = 90.32 [06:02:15]line НДС 12% НСП 1% [06:02:15]line > о реализуемом товаре [06:02:15]line ИТОГО: 90.32 [06:02:15]line НСП 1% : 0.80 [06:02:15]line НДС 12% : 9.59 [06:02:15]line Наличными: 0.00 [06:02:15]line Безнал.: 90.32 [06:02:15]line Место: АЗС № 161 "Партнер Нефть" [06:02:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:02:15]line СНО: Общий режим [06:02:15]line Чек 14 20.10.2024 06:02 [06:02:15]line Смена: 534 ФФД: 1.0 [06:02:15]line ЗНМ: 0300000104 [06:02:15]line РНМ: 0000000000091764 [06:02:15]line Версия ККМ: 001 [06:02:15]line Платежная система: Mbank [06:02:15]line ФМ: 0000000000871759 [06:02:15]line ФД: 165532 [06:02:15]line ФПД: 25392412582531 [06:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060224&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165532&fm=25392412582531&tin=02508201610067®Number=0000000000091764&sum=9032 [06:02:16]OFD Sender: Processing packet 165532 [packets to send 48, broken 47] [06:02:16]ProducePacketName [06:02:16]name=ofd_packets/00165532 [06:02:16]OFD Sender: To server: pG, [06:02:16]CommunicateWithHost lk.salyk.kg:30040 [06:02:16]ConnectInit lk.salyk.kg [06:02:16]written 0, free lines is 4095 [06:02:16]Connected sock=10 [06:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 89 58 07 01 A6 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 46 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 F0 9C 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 86 02 00 35 04 06 00 17 18 21 BB 62 83 98 F9 4C 8B 68 19 94 15 [06:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7C 9E 47 00 17 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 86 02 00 F4 03 04 00 63 43 14 67 B6 04 01 00 00 E2 93 90 90 3B 15 2C BF [06:02:16]CommunicateWithHost err = 0 [06:02:16]CheckOFDResponse [06:02:16]1017 (14) - 77093643461234 [06:02:16]1041 (16) - 0000000000871759 [06:02:16]1040 (4) - 165532 [06:02:16]1012 (4) - 19.10.2024 23:40 [06:02:16]1206 (1) - 0 [06:02:16]OFD Sender: Remove packet 165532 [06:02:16]ProducePacketName [06:02:16]name=ofd_packets/00165532 [06:02:16]NVStorageDeleteData [06:02:16]Write to MH i2c: 01 00 00 C8 BF 87 [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: 01 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: 01 07 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: 01 07 00 C8 BF 00 00 00 00 00 D3 0C 6D [06:02:16]RasterBufferAndPrint [06:02:16]line [06:02:16]line [06:02:16]line [06:02:16]line [06:02:16]line [06:02:16]written 0, free lines is 3288 [06:02:16]MH_Cut [06:02:16]Write to MH i2c: D1 01 00 CF BF 01 60 [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: D1 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: D1 01 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: D1 01 00 CF BF 00 5F [06:02:16]Write to MH i2c: 01 00 00 D0 BF 8F [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:17]OFD Sender: No OFD packet to send [06:02:17]*** Cut start [06:02:17]*** Partial cut [06:02:17]*** CUTSNS_PIN = 1 [06:02:17]*** CUTSNS_PIN = 0 [06:02:17]*** Brake cut motor [06:02:18]Read from MH i2c: 01 [06:02:18]MH_I2C_Read... [06:02:18]*** Stop cut motor [06:02:18]*** Cut end [06:02:18]Read from MH i2c: 01 07 00 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: 01 07 00 D0 BF 00 00 00 00 00 FF 0F A4 [06:02:18]process_action close_receipt done [06:02:18]requested_data is exist [06:02:18]produce_requested_data [06:02:18]requested_item fm.sn is exist - process it [06:02:18]wFMCommunicate request_size=4 [06:02:18]MH_SAM_APDU [06:02:18]CAPDU: 80 11 00 00 [06:02:18]Write to MH i2c: E2 08 00 D1 BF 80 11 00 00 00 00 00 00 0A [06:02:18]Write i2c OK [06:02:18]MH_I2C_Read... [06:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:18]Read from MH i2c: E2 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 17 00 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 17 00 D1 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [06:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:02:18]wFMCommunicate OK [06:02:18]requested_item fd.num is exist - process it [06:02:18]SAM_PROTO_GetFieldsCounters [06:02:18]wFMCommunicate request_size=4 [06:02:18]MH_SAM_APDU [06:02:18]CAPDU: 80 13 00 00 [06:02:18]Write to MH i2c: E2 08 00 D2 BF 80 13 00 00 00 00 00 00 0D [06:02:18]Write i2c OK [06:02:18]MH_I2C_Read... [06:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:02:18]Read from MH i2c: E2 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 62 00 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 62 00 D2 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [06:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:02:18]wFMCommunicate OK [06:02:18]SAM_PROTO_GetFieldsCounters done [06:02:18]requested_item shift.num is exist - process it [06:02:18]requested_item shift.opened is exist - process it [06:02:18]req_shift_opened [06:02:18]FM_GetShiftState [06:02:18]SAM_PROTO_GetShiftState [06:02:18]wFMCommunicate request_size=4 [06:02:18]MH_SAM_APDU [06:02:18]CAPDU: 80 13 01 00 [06:02:18]Write to MH i2c: E2 08 00 D3 BF 80 13 01 00 00 00 00 00 0F [06:02:18]Write i2c OK [06:02:18]MH_I2C_Read... [06:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:18]Read from MH i2c: E2 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 0E 00 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 0E 00 D3 BF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 57 [06:02:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:02:18]wFMCommunicate OK [06:02:18]SAM_PROTO_GetShiftState done [06:02:18]FM_GetShiftState done [06:02:18]req_shift_opened done [06:02:18]requested_item shift.open_date is exist - process it [06:02:18]req_shift_open_date [06:02:18]req_shift_open_date done [06:02:18]produce_requested_data done [06:02:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165532,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:02:18]process_action_free close_receipt [06:02:18]json_value_free [06:02:18]json_value_free done [06:02:18]process_json_proto returns [06:02:18]Send response to host [06:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165532,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:02:18]free response buf [06:02:18]execute_script done [06:02:18]execute_script returns [06:02:18]free content buf [06:02:18]Sock 9.Close socket [06:02:18]Sock 9.Thread stoped [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]accept exits with 7 [06:03:02]New connection [06:03:02]New thread 3066920292 created [06:03:02]Thread 3066776932 joined [06:03:02]Waiting for new connection... [06:03:02] Sock 7.Parse request [06:03:02]Sock 7.Check first char [06:03:02]Sock 7.First char is OK [06:03:02]request: POST /json_proto HTTP/1.0 [06:03:02]Method: POST [06:03:02]URL: /json_proto [06:03:02]Method is POST - this is cgi request [06:03:02]url: /json_proto [06:03:02]query_string will be loaded in cgi processing [06:03:02]execute_cgi json_proto POST (null) [06:03:02]execute_cgi path=json_proto method=POST [06:03:02]POST find Content-Length [06:03:02]Host: 172.17.53.195:8080 [06:03:02]Content-Length: 682 [06:03:02]Content-Type: application/json [06:03:02] [06:03:02]POST finish read [06:03:02]Found Content-Length = 682 [06:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:02]execute_script... [06:03: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)220092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:02]POST & json_proto [06:03:02]process_json_proto [06:03:02]json parsed OK: [06:03:02]protocol is kg_v1.0 [06:03:02]action value=close_receipt [06:03:02]process_action close_receipt [06:03:02]cmd_close_receipt [06:03:02]MH_GetDate [06:03:02]Write to MH i2c: F0 00 00 D4 BF 82 [06:03:02]Write i2c OK [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: F0 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: F0 09 00 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: F0 09 00 D4 BF 00 20 9D 14 67 21 48 4A 65 DB [06:03:02]GetLastDocTimeStamp 1729404144 [06:03:02]current date 1729404192 [06:03:02]FM_GetShiftState [06:03:02]SAM_PROTO_GetShiftState [06:03:02]wFMCommunicate request_size=4 [06:03:02]MH_SAM_APDU [06:03:02]CAPDU: 80 13 01 00 [06:03:02]Write to MH i2c: E2 08 00 D5 BF 80 13 01 00 00 00 00 00 11 [06:03:02]Write i2c OK [06:03:02]MH_I2C_Read... [06:03:02]OFD Sender: No OFD packet to send [06:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:02]Read from MH i2c: E2 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: E2 0E 00 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: E2 0E 00 D5 BF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 59 [06:03:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:03:02]wFMCommunicate OK [06:03:02]SAM_PROTO_GetShiftState done [06:03:02]FM_GetShiftState done [06:03:02]opened in 1729384561 [06:03:02]opened+sec_in_day 1729470961 [06:03:02]quantity*price = 100015 [06:03:02]sum+1 = 100017 [06:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 15 20.10.2024 06:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165533 ФПД: 152169194512918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060312&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165533&fm=152169194512918&tin=02508201610067®Number=0000000000091764&sum=100000 [06:03:03]StoreToDocumentArchive [06:03:03]shift 534 fd 165533 [06:03:03]save to /storage/0534/doc_00165533 [06:03:03]save last doc name /storage/0534/doc_00165533 to /storage/kkm_last_doc_name [06:03:03]save OK [06:03:03]Clear old archive folders... [06:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:03:03]tlvbuf is 014DA530 [06:03:03]SAM_PROTO_ClearQueue [06:03:03]wFMCommunicate request_size=4 [06:03:03]MH_SAM_APDU [06:03:03]CAPDU: 80 09 00 00 [06:03:03]Write to MH i2c: E2 08 00 E2 BF 80 09 00 00 00 00 00 00 13 [06:03:03]Write i2c OK [06:03:03]MH_I2C_Read... [06:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:03]Read from MH i2c: E2 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 03 00 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 03 00 E2 BF 00 90 00 15 [06:03:03]RAPDU: 90 00 [06:03:03]wFMCommunicate OK [06:03:03]SAM_PROTO_ClearQueue done [06:03:03]KKMCreateOFDPacket [06:03:03]OFDProtocolAddRootSTLVToBuf [06:03:03]FM_MakeSignedData [06:03:03]FM_MakeSignedData [06:03:03]SAM_PROTO_SignData [06:03:03]wFMCommunicate request_size=4 [06:03:03]MH_SAM_APDU [06:03:03]CAPDU: 80 0D 01 02 [06:03:03]Write to MH i2c: E2 08 00 E3 BF 80 0D 01 02 00 00 00 00 1B [06:03:03]Write i2c OK [06:03:03]MH_I2C_Read... [06:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:03]Read from MH i2c: E2 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 03 00 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 03 00 E3 BF 00 90 00 16 [06:03:03]RAPDU: 90 00 [06:03:03]wFMCommunicate OK [06:03:03]wFMCommunicate request_size=255 [06:03:03]MH_SAM_APDU [06:03: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 20 9D 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 86 02 00 35 04 06 00 8A [06:03:03]Write to MH i2c: E2 02 01 E4 BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 20 9D 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 86 02 00 35 04 06 00 8A 00 00 B9 [06:03:03]Write i2c OK [06:03:03]MH_I2C_Read... [06:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:03]Read from MH i2c: E2 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 03 00 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 03 00 E4 BF 00 90 00 17 [06:03:03]RAPDU: 90 00 [06:03:03]wFMCommunicate OK [06:03:03]wFMCommunicate request_size=10 [06:03:03]MH_SAM_APDU [06:03:03]CAPDU: 80 0D 02 02 05 65 A6 C8 E2 16 [06:03:03]Write to MH i2c: E2 0D 00 E5 BF 80 0D 02 02 05 00 65 A6 C8 E2 16 00 00 F3 [06:03:03]Write i2c OK [06:03:03]MH_I2C_Read... [06:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:03]Read from MH i2c: E2 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 03 00 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 03 00 E5 BF 00 90 00 18 [06:03:03]RAPDU: 90 00 [06:03:03]wFMCommunicate OK [06:03:03]wFMCommunicate request_size=4 [06:03:03]MH_SAM_APDU [06:03:03]CAPDU: 80 0D 03 02 [06:03:03]Write to MH i2c: E2 08 00 E6 BF 80 0D 03 02 00 00 00 00 20 [06:03:03]Write i2c OK [06:03:03]MH_I2C_Read... [06:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:03]Read from MH i2c: E2 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 0B 00 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 0B 00 E6 BF 00 8D 2C FA C6 BF 32 71 81 90 00 7D [06:03:03]RAPDU: 8D 2C FA C6 BF 32 71 81 90 00 [06:03:03]wFMCommunicate OK [06:03:03]SAM_PROTO_SignData done [06:03:03]FM_MakeSignedData done [06:03:03]CreateOFDProtocolMessage [06:03:03]wFMCommunicate request_size=4 [06:03:03]MH_SAM_APDU [06:03:03]CAPDU: 80 11 00 00 [06:03:03]Write to MH i2c: E2 08 00 E7 BF 80 11 00 00 00 00 00 00 20 [06:03:03]Write i2c OK [06:03:03]MH_I2C_Read... [06:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:03]Read from MH i2c: E2 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 17 00 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: E2 17 00 E7 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [06:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:03:03]wFMCommunicate OK [06:03:03]CreateOFDProtocolMessage done [06:03:03]OFDSenderStorePacket 165533 [06:03:03]StoreOFDPacket docnum=165533 [06:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 28 07 01 10 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 20 9D 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 86 02 00 35 04 06 00 8A 65 A6 C8 E2 16 8D 2C FA C6 BF 32 71 81 [06:03:03]CheckFolder [06:03:03]dirname=/storage/ofd_packets [06:03:03]CheckFolder done [06:03:03]ProducePacketName [06:03:03]name=ofd_packets/00165533 [06:03:03]NVStorageSaveData ofd_packets/00165533 [06:03:03]File name is /storage/ofd_packets/00165533 [06:03:03]Write 301 bytes [06:03:03]NVStorageSaveData done [06:03:03]OFDSenderStorePacket done [06:03:03]KKMCreateOFDPacket done [06:03:03]NVStorageSaveData kkm_last_timestamp [06:03:03]File name is /storage/kkm_last_timestamp [06:03:03]Write 4 bytes [06:03:03]NVStorageSaveData done [06:03:03]ExternCall_PrintAddStr [06:03:03]wPrintStart [06:03:03]Write to MH i2c: 01 00 00 E8 BF A7 [06:03:03]Write i2c OK [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: 01 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: 01 07 00 [06:03:03]MH_I2C_Read... [06:03:03]Read from MH i2c: 01 07 00 E8 BF 00 00 00 00 00 FF 0F BC [06:03:03]RasterBufferAndPrint [06:03:03]line Счет N : (1)220092 [06:03:03]line ИНН: 02508201610067 [06:03:03]line Контрольно-Кассовый Чек [06:03:03]line ПРОДАЖА [06:03:03]line ТРК (МРК, ГНК) : 33 [06:03:03]line Товар: 2710124130 [06:03:03]line Аи-92-К-5 [06:03:03]line 14.950 * 66.90 [06:03:03]line = 1000.16 [06:03:03]line НДС 12% НСП 1% [06:03:03]line > о реализуемом товаре [06:03:03]line ОКРУГЛЕНИЕ: -0.16 [06:03:03]line ИТОГО: 1000.00 [06:03:03]line Внесено: 1000.00 [06:03:03]line СДАЧА: 0.00 [06:03:03]line НСП 1% : 8.85 [06:03:03]line НДС 12% : 106.21 [06:03:03]line Наличными: 1000.00 [06:03:03]line Безнал.: 0.00 [06:03:03]line Место: АЗС № 161 "Партнер Нефть" [06:03:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:03:03]line СНО: Общий режим [06:03:03]line Чек 15 20.10.2024 06:03 [06:03:03]line Смена: 534 ФФД: 1.0 [06:03:03]line ЗНМ: 0300000104 [06:03:03]line РНМ: 0000000000091764 [06:03:03]line Версия ККМ: 001 [06:03:03]line ФМ: 0000000000871759 [06:03:03]line ФД: 165533 [06:03:03]line ФПД: 152169194512918 [06:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060312&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165533&fm=152169194512918&tin=02508201610067®Number=0000000000091764&sum=100000 [06:03:04]OFD Sender: Processing packet 165533 [packets to send 48, broken 47] [06:03:04]ProducePacketName [06:03:04]name=ofd_packets/00165533 [06:03:04]OFD Sender: To server: pG, [06:03:04]CommunicateWithHost lk.salyk.kg:30040 [06:03:04]ConnectInit lk.salyk.kg [06:03:04]written 0, free lines is 4095 [06:03:04]Connected sock=11 [06:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 28 07 01 10 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 20 9D 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 86 02 00 35 04 06 00 8A 65 A6 C8 E2 16 8D 2C FA C6 BF 32 71 81 [06:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 11 9F 47 00 28 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 86 02 00 F4 03 04 00 93 43 14 67 B6 04 01 00 00 D5 29 1B 0F B2 EF 3A 71 [06:03:04]CommunicateWithHost err = 0 [06:03:04]CheckOFDResponse [06:03:04]1017 (14) - 77093643461234 [06:03:04]1041 (16) - 0000000000871759 [06:03:04]1040 (4) - 165533 [06:03:04]1012 (4) - 19.10.2024 23:41 [06:03:04]1206 (1) - 0 [06:03:04]OFD Sender: Remove packet 165533 [06:03:04]ProducePacketName [06:03:04]name=ofd_packets/00165533 [06:03:04]NVStorageDeleteData [06:03:04]Write to MH i2c: 01 00 00 13 C0 D3 [06:03:04]Write i2c OK [06:03:04]MH_I2C_Read... [06:03:04]Read from MH i2c: 01 [06:03:04]MH_I2C_Read... [06:03:04]Read from MH i2c: 01 07 00 [06:03:04]MH_I2C_Read... [06:03:04]Read from MH i2c: 01 07 00 13 C0 00 00 00 00 00 B6 0C 9C [06:03:04]RasterBufferAndPrint [06:03:04]line [06:03:04]line [06:03:04]line [06:03:04]line [06:03:04]line [06:03:04]written 0, free lines is 3259 [06:03:04]MH_Cut [06:03:04]Write to MH i2c: D1 01 00 1A C0 01 AC [06:03:04]Write i2c OK [06:03:04]MH_I2C_Read... [06:03:04]Read from MH i2c: D1 [06:03:04]MH_I2C_Read... [06:03:04]Read from MH i2c: D1 01 00 [06:03:04]MH_I2C_Read... [06:03:04]Read from MH i2c: D1 01 00 1A C0 00 AB [06:03:04]Write to MH i2c: 01 00 00 1B C0 DB [06:03:04]Write i2c OK [06:03:04]MH_I2C_Read... [06:03:04]OFD Sender: No OFD packet to send [06:03:05]*** Cut start [06:03:05]*** Partial cut [06:03:05]*** CUTSNS_PIN = 1 [06:03:05]*** CUTSNS_PIN = 0 [06:03:05]*** Brake cut motor [06:03:06]Read from MH i2c: 01 [06:03:06]MH_I2C_Read... [06:03:06]*** Stop cut motor [06:03:06]*** Cut end [06:03:06]Read from MH i2c: 01 07 00 [06:03:06]MH_I2C_Read... [06:03:06]Read from MH i2c: 01 07 00 1B C0 00 00 00 00 00 FF 0F F0 [06:03:06]process_action close_receipt done [06:03:06]requested_data is exist [06:03:06]produce_requested_data [06:03:06]requested_item fm.sn is exist - process it [06:03:06]wFMCommunicate request_size=4 [06:03:06]MH_SAM_APDU [06:03:06]CAPDU: 80 11 00 00 [06:03:06]Write to MH i2c: E2 08 00 1C C0 80 11 00 00 00 00 00 00 56 [06:03:06]Write i2c OK [06:03:06]MH_I2C_Read... [06:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:06]Read from MH i2c: E2 [06:03:06]MH_I2C_Read... [06:03:06]Read from MH i2c: E2 17 00 [06:03:06]MH_I2C_Read... [06:03:06]Read from MH i2c: E2 17 00 1C C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [06:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:03:06]wFMCommunicate OK [06:03:06]requested_item fd.num is exist - process it [06:03:06]SAM_PROTO_GetFieldsCounters [06:03:06]wFMCommunicate request_size=4 [06:03:06]MH_SAM_APDU [06:03:06]CAPDU: 80 13 00 00 [06:03:06]Write to MH i2c: E2 08 00 1D C0 80 13 00 00 00 00 00 00 59 [06:03:06]Write i2c OK [06:03:06]MH_I2C_Read... [06:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:06]Read from MH i2c: E2 [06:03:06]MH_I2C_Read... [06:03:06]Read from MH i2c: E2 62 00 [06:03:06]MH_I2C_Read... [06:03:06]Read from MH i2c: E2 62 00 1D C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [06:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:06]wFMCommunicate OK [06:03:06]SAM_PROTO_GetFieldsCounters done [06:03:06]requested_item shift.num is exist - process it [06:03:06]requested_item shift.opened is exist - process it [06:03:06]req_shift_opened [06:03:06]FM_GetShiftState [06:03:06]SAM_PROTO_GetShiftState [06:03:06]wFMCommunicate request_size=4 [06:03:06]MH_SAM_APDU [06:03:06]CAPDU: 80 13 01 00 [06:03:06]Write to MH i2c: E2 08 00 1E C0 80 13 01 00 00 00 00 00 5B [06:03:06]Write i2c OK [06:03:06]MH_I2C_Read... [06:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:06]Read from MH i2c: E2 [06:03:06]MH_I2C_Read... [06:03:06]Read from MH i2c: E2 0E 00 [06:03:06]MH_I2C_Read... [06:03:06]Read from MH i2c: E2 0E 00 1E C0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A3 [06:03:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:03:06]wFMCommunicate OK [06:03:06]SAM_PROTO_GetShiftState done [06:03:06]FM_GetShiftState done [06:03:06]req_shift_opened done [06:03:06]requested_item shift.open_date is exist - process it [06:03:06]req_shift_open_date [06:03:06]req_shift_open_date done [06:03:06]produce_requested_data done [06:03:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165533,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:03:06]process_action_free close_receipt [06:03:06]json_value_free [06:03:06]json_value_free done [06:03:06]process_json_proto returns [06:03:06]Send response to host [06:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165533,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:03:06]free response buf [06:03:06]execute_script done [06:03:06]execute_script returns [06:03:06]free content buf [06:03:06]Sock 7.Close socket [06:03:06]Sock 7.Thread stoped [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]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:22]accept exits with 9 [06:06:22]New connection [06:06:22]New thread 3066776932 created [06:06:22]Thread 3066920292 joined [06:06:22]Waiting for new connection... [06:06:22] Sock 9.Parse request [06:06:22]Sock 9.Check first char [06:06:22]Sock 9.First char is OK [06:06:22]request: POST /json_proto HTTP/1.0 [06:06:22]Method: POST [06:06:22]URL: /json_proto [06:06:22]Method is POST - this is cgi request [06:06:22]url: /json_proto [06:06:22]query_string will be loaded in cgi processing [06:06:22]execute_cgi json_proto POST (null) [06:06:22]execute_cgi path=json_proto method=POST [06:06:22]POST find Content-Length [06:06:22]Host: 172.17.53.195:8080 [06:06:22]Content-Length: 677 [06:06:22]Content-Type: application/json [06:06:22] [06:06:22]POST finish read [06:06:22]Found Content-Length = 677 [06:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:22]execute_script... [06:06: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)220093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:22]POST & json_proto [06:06:22]process_json_proto [06:06:22]json parsed OK: [06:06:22]protocol is kg_v1.0 [06:06:22]action value=close_receipt [06:06:22]process_action close_receipt [06:06:22]cmd_close_receipt [06:06:22]MH_GetDate [06:06:22]Write to MH i2c: F0 00 00 1F C0 CE [06:06:22]Write i2c OK [06:06:22]MH_I2C_Read... [06:06:22]Read from MH i2c: F0 [06:06:22]MH_I2C_Read... [06:06:22]Read from MH i2c: F0 09 00 [06:06:22]MH_I2C_Read... [06:06:22]Read from MH i2c: F0 09 00 1F C0 00 E9 9D 14 67 21 48 4A 65 F0 [06:06:22]GetLastDocTimeStamp 1729404192 [06:06:22]current date 1729404393 [06:06:22]FM_GetShiftState [06:06:22]SAM_PROTO_GetShiftState [06:06:22]wFMCommunicate request_size=4 [06:06:22]MH_SAM_APDU [06:06:22]CAPDU: 80 13 01 00 [06:06:22]Write to MH i2c: E2 08 00 20 C0 80 13 01 00 00 00 00 00 5D [06:06:22]Write i2c OK [06:06:22]MH_I2C_Read... [06:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:22]Read from MH i2c: E2 [06:06:22]MH_I2C_Read... [06:06:22]Read from MH i2c: E2 0E 00 [06:06:22]MH_I2C_Read... [06:06:22]Read from MH i2c: E2 0E 00 20 C0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A5 [06:06:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:06:22]wFMCommunicate OK [06:06:22]SAM_PROTO_GetShiftState done [06:06:22]FM_GetShiftState done [06:06:22]opened in 1729384561 [06:06:22]opened+sec_in_day 1729470961 [06:06:22]quantity*price = 20003 [06:06:22]sum+1 = 20004 [06:06: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 16 20.10.2024 06:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165534 ФПД: 36425772223035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060633&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165534&fm=36425772223035&tin=02508201610067®Number=0000000000091764&sum=20000 [06:06:23]StoreToDocumentArchive [06:06:23]shift 534 fd 165534 [06:06:23]save to /storage/0534/doc_00165534 [06:06:23]save last doc name /storage/0534/doc_00165534 to /storage/kkm_last_doc_name [06:06:23]save OK [06:06:23]Clear old archive folders... [06:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:06:23]tlvbuf is 015BCF60 [06:06:23]SAM_PROTO_ClearQueue [06:06:23]wFMCommunicate request_size=4 [06:06:23]MH_SAM_APDU [06:06:23]CAPDU: 80 09 00 00 [06:06:23]Write to MH i2c: E2 08 00 2D C0 80 09 00 00 00 00 00 00 5F [06:06:23]Write i2c OK [06:06:23]MH_I2C_Read... [06:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:06:23]Read from MH i2c: E2 [06:06:23]MH_I2C_Read... [06:06:23]Read from MH i2c: E2 03 00 [06:06:23]MH_I2C_Read... [06:06:23]Read from MH i2c: E2 03 00 2D C0 00 90 00 61 [06:06:23]RAPDU: 90 00 [06:06:23]wFMCommunicate OK [06:06:23]SAM_PROTO_ClearQueue done [06:06:23]KKMCreateOFDPacket [06:06:23]OFDProtocolAddRootSTLVToBuf [06:06:23]FM_MakeSignedData [06:06:23]FM_MakeSignedData [06:06:23]SAM_PROTO_SignData [06:06:23]wFMCommunicate request_size=4 [06:06:23]MH_SAM_APDU [06:06:23]CAPDU: 80 0D 01 02 [06:06:23]Write to MH i2c: E2 08 00 2E C0 80 0D 01 02 00 00 00 00 67 [06:06:23]Write i2c OK [06:06:23]MH_I2C_Read... [06:06:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:06:24]Read from MH i2c: E2 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 03 00 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 03 00 2E C0 00 90 00 62 [06:06:24]RAPDU: 90 00 [06:06:24]wFMCommunicate OK [06:06:24]wFMCommunicate request_size=255 [06:06:24]MH_SAM_APDU [06:06: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E9 9D 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 86 02 00 35 04 06 00 21 [06:06:24]Write to MH i2c: E2 02 01 2F C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E9 9D 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 86 02 00 35 04 06 00 21 00 00 2F [06:06:24]Write i2c OK [06:06:24]MH_I2C_Read... [06:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:24]Read from MH i2c: E2 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 03 00 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 03 00 2F C0 00 90 00 63 [06:06:24]RAPDU: 90 00 [06:06:24]wFMCommunicate OK [06:06:24]wFMCommunicate request_size=10 [06:06:24]MH_SAM_APDU [06:06:24]CAPDU: 80 0D 02 02 05 21 09 36 CA 3B [06:06:24]Write to MH i2c: E2 0D 00 30 C0 80 0D 02 02 05 00 21 09 36 CA 3B 00 00 D9 [06:06:24]Write i2c OK [06:06:24]MH_I2C_Read... [06:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:24]Read from MH i2c: E2 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 03 00 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 03 00 30 C0 00 90 00 64 [06:06:24]RAPDU: 90 00 [06:06:24]wFMCommunicate OK [06:06:24]wFMCommunicate request_size=4 [06:06:24]MH_SAM_APDU [06:06:24]CAPDU: 80 0D 03 02 [06:06:24]Write to MH i2c: E2 08 00 31 C0 80 0D 03 02 00 00 00 00 6C [06:06:24]Write i2c OK [06:06:24]MH_I2C_Read... [06:06:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:06:24]Read from MH i2c: E2 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 0B 00 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 0B 00 31 C0 00 63 E7 72 ED AC AB FF F6 90 00 62 [06:06:24]RAPDU: 63 E7 72 ED AC AB FF F6 90 00 [06:06:24]wFMCommunicate OK [06:06:24]SAM_PROTO_SignData done [06:06:24]FM_MakeSignedData done [06:06:24]CreateOFDProtocolMessage [06:06:24]wFMCommunicate request_size=4 [06:06:24]MH_SAM_APDU [06:06:24]CAPDU: 80 11 00 00 [06:06:24]Write to MH i2c: E2 08 00 32 C0 80 11 00 00 00 00 00 00 6C [06:06:24]Write i2c OK [06:06:24]MH_I2C_Read... [06:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:24]Read from MH i2c: E2 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 17 00 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 17 00 32 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [06:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:06:24]wFMCommunicate OK [06:06:24]CreateOFDProtocolMessage done [06:06:24]OFDSenderStorePacket 165534 [06:06:24]StoreOFDPacket docnum=165534 [06:06:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 79 07 01 A4 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E9 9D 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 86 02 00 35 04 06 00 21 21 09 36 CA 3B 63 E7 72 ED AC AB FF F6 [06:06:24]CheckFolder [06:06:24]dirname=/storage/ofd_packets [06:06:24]CheckFolder done [06:06:24]ProducePacketName [06:06:24]name=ofd_packets/00165534 [06:06:24]NVStorageSaveData ofd_packets/00165534 [06:06:24]File name is /storage/ofd_packets/00165534 [06:06:24]Write 301 bytes [06:06:24]NVStorageSaveData done [06:06:24]OFDSenderStorePacket done [06:06:24]KKMCreateOFDPacket done [06:06:24]NVStorageSaveData kkm_last_timestamp [06:06:24]File name is /storage/kkm_last_timestamp [06:06:24]Write 4 bytes [06:06:24]NVStorageSaveData done [06:06:24]ExternCall_PrintAddStr [06:06:24]wPrintStart [06:06:24]Write to MH i2c: 01 00 00 33 C0 F3 [06:06:24]Write i2c OK [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: 01 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: 01 07 00 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: 01 07 00 33 C0 00 00 00 00 00 FF 0F 08 [06:06:24]RasterBufferAndPrint [06:06:24]line Счет N : (1)220093 [06:06:24]line ИНН: 02508201610067 [06:06:24]line Контрольно-Кассовый Чек [06:06:24]line ПРОДАЖА [06:06:24]line ТРК (МРК, ГНК) : 23 [06:06:24]line Товар: 2710124130 [06:06:24]line Аи-92-К-5 [06:06:24]line 2.990 * 66.90 [06:06:24]line = 200.03 [06:06:24]line НДС 12% НСП 1% [06:06:24]line > о реализуемом товаре [06:06:24]line ОКРУГЛЕНИЕ: -0.03 [06:06:24]line ИТОГО: 200.00 [06:06:24]line Внесено: 200.00 [06:06:24]line СДАЧА: 0.00 [06:06:24]line НСП 1% : 1.77 [06:06:24]line НДС 12% : 21.24 [06:06:24]line Наличными: 200.00 [06:06:24]line Безнал.: 0.00 [06:06:24]line Место: АЗС № 161 "Партнер Нефть" [06:06:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:06:24]line СНО: Общий режим [06:06:24]line Чек 16 20.10.2024 06:06 [06:06:24]line Смена: 534 ФФД: 1.0 [06:06:24]line ЗНМ: 0300000104 [06:06:24]line РНМ: 0000000000091764 [06:06:24]line Версия ККМ: 001 [06:06:24]line ФМ: 0000000000871759 [06:06:24]line ФД: 165534 [06:06:24]line ФПД: 36425772223035 [06:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060633&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165534&fm=36425772223035&tin=02508201610067®Number=0000000000091764&sum=20000 [06:06:24]OFD Sender: Processing packet 165534 [packets to send 48, broken 47] [06:06:24]ProducePacketName [06:06:24]name=ofd_packets/00165534 [06:06:24]OFD Sender: To server: pG, [06:06:24]CommunicateWithHost lk.salyk.kg:30040 [06:06:24]ConnectInit lk.salyk.kg [06:06:24]written 0, free lines is 4095 [06:06:24]Connected sock=10 [06:06:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 79 07 01 A4 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E9 9D 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 86 02 00 35 04 06 00 21 21 09 36 CA 3B 63 E7 72 ED AC AB FF F6 [06:06:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E6 20 47 00 A6 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 31 37 35 39 10 04 04 00 9E 86 02 00 F4 03 04 00 5C 44 14 67 B6 04 01 00 00 4D 69 D2 D9 8C D1 A2 6C [06:06:25]CommunicateWithHost err = 0 [06:06:25]CheckOFDResponse [06:06:25]1017 (14) - 77093643461234 [06:06:25]1041 (16) - 0000000000871759 [06:06:25]1040 (4) - 165534 [06:06:25]1012 (4) - 19.10.2024 23:44 [06:06:25]1206 (1) - 0 [06:06:25]OFD Sender: Remove packet 165534 [06:06:25]ProducePacketName [06:06:25]name=ofd_packets/00165534 [06:06:25]NVStorageDeleteData [06:06:25]Write to MH i2c: 01 00 00 5E C0 1E [06:06:25]Write i2c OK [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: 01 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: 01 07 00 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: 01 07 00 5E C0 00 00 00 00 00 BC 0C ED [06:06:25]RasterBufferAndPrint [06:06:25]line [06:06:25]line [06:06:25]line [06:06:25]line [06:06:25]line [06:06:25]written 0, free lines is 3267 [06:06:25]MH_Cut [06:06:25]Write to MH i2c: D1 01 00 65 C0 01 F7 [06:06:25]Write i2c OK [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: D1 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: D1 01 00 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: D1 01 00 65 C0 00 F6 [06:06:25]Write to MH i2c: 01 00 00 66 C0 26 [06:06:25]Write i2c OK [06:06:25]MH_I2C_Read... [06:06:25]OFD Sender: No OFD packet to send [06:06:26]*** Cut start [06:06:26]*** Partial cut [06:06:26]*** CUTSNS_PIN = 1 [06:06:26]*** CUTSNS_PIN = 0 [06:06:26]*** Brake cut motor [06:06:26]Read from MH i2c: 01 [06:06:26]MH_I2C_Read... [06:06:26]*** Stop cut motor [06:06:26]*** Cut end [06:06:26]Read from MH i2c: 01 07 00 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: 01 07 00 66 C0 00 00 00 00 00 FF 0F 3B [06:06:26]process_action close_receipt done [06:06:26]requested_data is exist [06:06:26]produce_requested_data [06:06:26]requested_item fm.sn is exist - process it [06:06:26]wFMCommunicate request_size=4 [06:06:26]MH_SAM_APDU [06:06:26]CAPDU: 80 11 00 00 [06:06:26]Write to MH i2c: E2 08 00 67 C0 80 11 00 00 00 00 00 00 A1 [06:06:26]Write i2c OK [06:06:26]MH_I2C_Read... [06:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:26]Read from MH i2c: E2 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: E2 17 00 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: E2 17 00 67 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [06:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:06:26]wFMCommunicate OK [06:06:26]requested_item fd.num is exist - process it [06:06:26]SAM_PROTO_GetFieldsCounters [06:06:26]wFMCommunicate request_size=4 [06:06:26]MH_SAM_APDU [06:06:26]CAPDU: 80 13 00 00 [06:06:26]Write to MH i2c: E2 08 00 68 C0 80 13 00 00 00 00 00 00 A4 [06:06:26]Write i2c OK [06:06:26]MH_I2C_Read... [06:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:06:26]Read from MH i2c: E2 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: E2 62 00 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: E2 62 00 68 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [06:06:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:06:26]wFMCommunicate OK [06:06:26]SAM_PROTO_GetFieldsCounters done [06:06:26]requested_item shift.num is exist - process it [06:06:26]requested_item shift.opened is exist - process it [06:06:26]req_shift_opened [06:06:26]FM_GetShiftState [06:06:26]SAM_PROTO_GetShiftState [06:06:26]wFMCommunicate request_size=4 [06:06:26]MH_SAM_APDU [06:06:26]CAPDU: 80 13 01 00 [06:06:26]Write to MH i2c: E2 08 00 69 C0 80 13 01 00 00 00 00 00 A6 [06:06:26]Write i2c OK [06:06:26]MH_I2C_Read... [06:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:27]Read from MH i2c: E2 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: E2 0E 00 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: E2 0E 00 69 C0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EE [06:06:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:06:27]wFMCommunicate OK [06:06:27]SAM_PROTO_GetShiftState done [06:06:27]FM_GetShiftState done [06:06:27]req_shift_opened done [06:06:27]requested_item shift.open_date is exist - process it [06:06:27]req_shift_open_date [06:06:27]req_shift_open_date done [06:06:27]produce_requested_data done [06:06:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165534,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:06:27]process_action_free close_receipt [06:06:27]json_value_free [06:06:27]json_value_free done [06:06:27]process_json_proto returns [06:06:27]Send response to host [06:06:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165534,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:06:27]free response buf [06:06:27]execute_script done [06:06:27]execute_script returns [06:06:27]free content buf [06:06:27]Sock 9.Close socket [06:06:27]Sock 9.Thread stoped [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]accept exits with 7 [06:07:15]New connection [06:07:15]New thread 3066920292 created [06:07:15]Thread 3066776932 joined [06:07:15]Waiting for new connection... [06:07:15] Sock 7.Parse request [06:07:15]Sock 7.Check first char [06:07:15]Sock 7.First char is OK [06:07:15]request: POST /json_proto HTTP/1.0 [06:07:15]Method: POST [06:07:15]URL: /json_proto [06:07:15]Method is POST - this is cgi request [06:07:15]url: /json_proto [06:07:15]query_string will be loaded in cgi processing [06:07:15]execute_cgi json_proto POST (null) [06:07:15]execute_cgi path=json_proto method=POST [06:07:15]POST find Content-Length [06:07:15]Host: 172.17.53.195:8080 [06:07:15]Content-Length: 677 [06:07:15]Content-Type: application/json [06:07:15] [06:07:15]POST finish read [06:07:15]Found Content-Length = 677 [06:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:15]execute_script... [06:07: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)220094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:15]POST & json_proto [06:07:15]process_json_proto [06:07:15]json parsed OK: [06:07:15]protocol is kg_v1.0 [06:07:15]action value=close_receipt [06:07:15]process_action close_receipt [06:07:15]cmd_close_receipt [06:07:15]MH_GetDate [06:07:15]Write to MH i2c: F0 00 00 6A C0 19 [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: F0 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: F0 09 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: F0 09 00 6A C0 00 1E 9E 14 67 21 48 4A 65 71 [06:07:15]GetLastDocTimeStamp 1729404393 [06:07:15]current date 1729404446 [06:07:15]FM_GetShiftState [06:07:15]SAM_PROTO_GetShiftState [06:07:15]wFMCommunicate request_size=4 [06:07:15]MH_SAM_APDU [06:07:15]CAPDU: 80 13 01 00 [06:07:15]Write to MH i2c: E2 08 00 6B C0 80 13 01 00 00 00 00 00 A8 [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]OFD Sender: No OFD packet to send [06:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:15]Read from MH i2c: E2 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 0E 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 0E 00 6B C0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F0 [06:07:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:07:15]wFMCommunicate OK [06:07:15]SAM_PROTO_GetShiftState done [06:07:15]FM_GetShiftState done [06:07:15]opened in 1729384561 [06:07:15]opened+sec_in_day 1729470961 [06:07:15]quantity*price = 40006 [06:07:15]sum+1 = 40007 [06:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 17 20.10.2024 06:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165535 ФПД: 16085022022549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165535&fm=16085022022549&tin=02508201610067®Number=0000000000091764&sum=40000 [06:07:16]StoreToDocumentArchive [06:07:16]shift 534 fd 165535 [06:07:16]save to /storage/0534/doc_00165535 [06:07:16]save last doc name /storage/0534/doc_00165535 to /storage/kkm_last_doc_name [06:07:16]save OK [06:07:16]Clear old archive folders... [06:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:07:16]tlvbuf is 01484CB0 [06:07:16]SAM_PROTO_ClearQueue [06:07:16]wFMCommunicate request_size=4 [06:07:16]MH_SAM_APDU [06:07:16]CAPDU: 80 09 00 00 [06:07:16]Write to MH i2c: E2 08 00 78 C0 80 09 00 00 00 00 00 00 AA [06:07:16]Write i2c OK [06:07:16]MH_I2C_Read... [06:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:16]Read from MH i2c: E2 [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: E2 03 00 [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: E2 03 00 78 C0 00 90 00 AC [06:07:16]RAPDU: 90 00 [06:07:16]wFMCommunicate OK [06:07:16]SAM_PROTO_ClearQueue done [06:07:16]KKMCreateOFDPacket [06:07:16]OFDProtocolAddRootSTLVToBuf [06:07:16]FM_MakeSignedData [06:07:16]FM_MakeSignedData [06:07:16]SAM_PROTO_SignData [06:07:16]wFMCommunicate request_size=4 [06:07:16]MH_SAM_APDU [06:07:16]CAPDU: 80 0D 01 02 [06:07:16]Write to MH i2c: E2 08 00 79 C0 80 0D 01 02 00 00 00 00 B2 [06:07:16]Write i2c OK [06:07:16]MH_I2C_Read... [06:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:16]Read from MH i2c: E2 [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: E2 03 00 [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: E2 03 00 79 C0 00 90 00 AD [06:07:16]RAPDU: 90 00 [06:07:16]wFMCommunicate OK [06:07:16]wFMCommunicate request_size=255 [06:07:16]MH_SAM_APDU [06:07: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1E 9E 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 86 02 00 35 04 06 00 0E [06:07:16]Write to MH i2c: E2 02 01 7A C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1E 9E 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 86 02 00 35 04 06 00 0E 00 00 AC [06:07:16]Write i2c OK [06:07:16]MH_I2C_Read... [06:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:17]Read from MH i2c: E2 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: E2 03 00 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: E2 03 00 7A C0 00 90 00 AE [06:07:17]RAPDU: 90 00 [06:07:17]wFMCommunicate OK [06:07:17]wFMCommunicate request_size=10 [06:07:17]MH_SAM_APDU [06:07:17]CAPDU: 80 0D 02 02 05 A1 16 06 1B 95 [06:07:17]Write to MH i2c: E2 0D 00 7B C0 80 0D 02 02 05 00 A1 16 06 1B 95 00 00 2C [06:07:17]Write i2c OK [06:07:17]MH_I2C_Read... [06:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:17]Read from MH i2c: E2 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: E2 03 00 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: E2 03 00 7B C0 00 90 00 AF [06:07:17]RAPDU: 90 00 [06:07:17]wFMCommunicate OK [06:07:17]wFMCommunicate request_size=4 [06:07:17]MH_SAM_APDU [06:07:17]CAPDU: 80 0D 03 02 [06:07:17]Write to MH i2c: E2 08 00 7C C0 80 0D 03 02 00 00 00 00 B7 [06:07:17]Write i2c OK [06:07:17]MH_I2C_Read... [06:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:17]Read from MH i2c: E2 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: E2 0B 00 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: E2 0B 00 7C C0 00 81 A1 1A 7A D3 C6 6B 19 90 00 8B [06:07:17]RAPDU: 81 A1 1A 7A D3 C6 6B 19 90 00 [06:07:17]wFMCommunicate OK [06:07:17]SAM_PROTO_SignData done [06:07:17]FM_MakeSignedData done [06:07:17]CreateOFDProtocolMessage [06:07:17]wFMCommunicate request_size=4 [06:07:17]MH_SAM_APDU [06:07:17]CAPDU: 80 11 00 00 [06:07:17]Write to MH i2c: E2 08 00 7D C0 80 11 00 00 00 00 00 00 B7 [06:07:17]Write i2c OK [06:07:17]MH_I2C_Read... [06:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:17]Read from MH i2c: E2 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: E2 17 00 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: E2 17 00 7D C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [06:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:07:17]wFMCommunicate OK [06:07:17]CreateOFDProtocolMessage done [06:07:17]OFDSenderStorePacket 165535 [06:07:17]StoreOFDPacket docnum=165535 [06:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC E8 07 01 5C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1E 9E 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 86 02 00 35 04 06 00 0E A1 16 06 1B 95 81 A1 1A 7A D3 C6 6B 19 [06:07:17]CheckFolder [06:07:17]dirname=/storage/ofd_packets [06:07:17]CheckFolder done [06:07:17]ProducePacketName [06:07:17]name=ofd_packets/00165535 [06:07:17]NVStorageSaveData ofd_packets/00165535 [06:07:17]File name is /storage/ofd_packets/00165535 [06:07:17]Write 301 bytes [06:07:17]NVStorageSaveData done [06:07:17]OFDSenderStorePacket done [06:07:17]KKMCreateOFDPacket done [06:07:17]NVStorageSaveData kkm_last_timestamp [06:07:17]File name is /storage/kkm_last_timestamp [06:07:17]Write 4 bytes [06:07:17]NVStorageSaveData done [06:07:17]ExternCall_PrintAddStr [06:07:17]wPrintStart [06:07:17]Write to MH i2c: 01 00 00 7E C0 3E [06:07:17]Write i2c OK [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: 01 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: 01 07 00 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: 01 07 00 7E C0 00 00 00 00 00 FF 0F 53 [06:07:17]RasterBufferAndPrint [06:07:17]line Счет N : (1)220094 [06:07:17]line ИНН: 02508201610067 [06:07:17]line Контрольно-Кассовый Чек [06:07:17]line ПРОДАЖА [06:07:17]line ТРК (МРК, ГНК) : 43 [06:07:17]line Товар: 2710124130 [06:07:17]line Аи-92-К-5 [06:07:17]line 5.980 * 66.90 [06:07:17]line = 400.06 [06:07:17]line НДС 12% НСП 1% [06:07:17]line > о реализуемом товаре [06:07:17]line ОКРУГЛЕНИЕ: -0.06 [06:07:17]line ИТОГО: 400.00 [06:07:17]line Внесено: 400.00 [06:07:17]line СДАЧА: 0.00 [06:07:17]line НСП 1% : 3.54 [06:07:17]line НДС 12% : 42.48 [06:07:17]line Наличными: 400.00 [06:07:17]line Безнал.: 0.00 [06:07:17]line Место: АЗС № 161 "Партнер Нефть" [06:07:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:07:17]line СНО: Общий режим [06:07:17]line Чек 17 20.10.2024 06:07 [06:07:17]line Смена: 534 ФФД: 1.0 [06:07:17]line ЗНМ: 0300000104 [06:07:17]line РНМ: 0000000000091764 [06:07:17]line Версия ККМ: 001 [06:07:17]line ФМ: 0000000000871759 [06:07:17]line ФД: 165535 [06:07:17]line ФПД: 16085022022549 [06:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165535&fm=16085022022549&tin=02508201610067®Number=0000000000091764&sum=40000 [06:07:17]OFD Sender: Processing packet 165535 [packets to send 48, broken 47] [06:07:17]ProducePacketName [06:07:17]name=ofd_packets/00165535 [06:07:17]OFD Sender: To server: pG, [06:07:17]CommunicateWithHost lk.salyk.kg:30040 [06:07:17]ConnectInit lk.salyk.kg [06:07:17]written 0, free lines is 4095 [06:07:17]Connected sock=10 [06:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC E8 07 01 5C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1E 9E 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 86 02 00 35 04 06 00 0E A1 16 06 1B 95 81 A1 1A 7A D3 C6 6B 19 [06:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7F 1F 47 00 E3 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 31 37 35 39 10 04 04 00 9F 86 02 00 F4 03 04 00 91 44 14 67 B6 04 01 00 00 58 25 C4 A0 30 B2 CE 22 [06:07:18]CommunicateWithHost err = 0 [06:07:18]CheckOFDResponse [06:07:18]1017 (14) - 77093643461234 [06:07:18]1041 (16) - 0000000000871759 [06:07:18]1040 (4) - 165535 [06:07:18]1012 (4) - 19.10.2024 23:45 [06:07:18]1206 (1) - 0 [06:07:18]OFD Sender: Remove packet 165535 [06:07:18]ProducePacketName [06:07:18]name=ofd_packets/00165535 [06:07:18]NVStorageDeleteData [06:07:18]Write to MH i2c: 01 00 00 A9 C0 69 [06:07:18]Write i2c OK [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: 01 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: 01 07 00 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: 01 07 00 A9 C0 00 00 00 00 00 BE 0C 3A [06:07:18]RasterBufferAndPrint [06:07:18]line [06:07:18]line [06:07:18]line [06:07:18]line [06:07:18]line [06:07:18]written 0, free lines is 3269 [06:07:18]MH_Cut [06:07:18]Write to MH i2c: D1 01 00 B0 C0 01 42 [06:07:18]Write i2c OK [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: D1 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: D1 01 00 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: D1 01 00 B0 C0 00 41 [06:07:18]Write to MH i2c: 01 00 00 B1 C0 71 [06:07:18]Write i2c OK [06:07:18]MH_I2C_Read... [06:07:18]OFD Sender: No OFD packet to send [06:07:19]*** Cut start [06:07:19]*** Partial cut [06:07:19]*** CUTSNS_PIN = 1 [06:07:19]*** CUTSNS_PIN = 0 [06:07:19]*** Brake cut motor [06:07:19]Read from MH i2c: 01 [06:07:19]MH_I2C_Read... [06:07:19]*** Stop cut motor [06:07:19]*** Cut end [06:07:19]Read from MH i2c: 01 07 00 [06:07:19]MH_I2C_Read... [06:07:19]Read from MH i2c: 01 07 00 B1 C0 00 00 00 00 00 FF 0F 86 [06:07:19]process_action close_receipt done [06:07:19]requested_data is exist [06:07:19]produce_requested_data [06:07:19]requested_item fm.sn is exist - process it [06:07:19]wFMCommunicate request_size=4 [06:07:19]MH_SAM_APDU [06:07:19]CAPDU: 80 11 00 00 [06:07:19]Write to MH i2c: E2 08 00 B2 C0 80 11 00 00 00 00 00 00 EC [06:07:19]Write i2c OK [06:07:19]MH_I2C_Read... [06:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:19]Read from MH i2c: E2 [06:07:19]MH_I2C_Read... [06:07:19]Read from MH i2c: E2 17 00 [06:07:19]MH_I2C_Read... [06:07:19]Read from MH i2c: E2 17 00 B2 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [06:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:07:19]wFMCommunicate OK [06:07:19]requested_item fd.num is exist - process it [06:07:19]SAM_PROTO_GetFieldsCounters [06:07:19]wFMCommunicate request_size=4 [06:07:19]MH_SAM_APDU [06:07:19]CAPDU: 80 13 00 00 [06:07:19]Write to MH i2c: E2 08 00 B3 C0 80 13 00 00 00 00 00 00 EF [06:07:19]Write i2c OK [06:07:19]MH_I2C_Read... [06:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:19]Read from MH i2c: E2 [06:07:19]MH_I2C_Read... [06:07:19]Read from MH i2c: E2 62 00 [06:07:19]MH_I2C_Read... [06:07:19]Read from MH i2c: E2 62 00 B3 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [06:07:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:07:19]wFMCommunicate OK [06:07:19]SAM_PROTO_GetFieldsCounters done [06:07:19]requested_item shift.num is exist - process it [06:07:19]requested_item shift.opened is exist - process it [06:07:19]req_shift_opened [06:07:19]FM_GetShiftState [06:07:19]SAM_PROTO_GetShiftState [06:07:19]wFMCommunicate request_size=4 [06:07:19]MH_SAM_APDU [06:07:19]CAPDU: 80 13 01 00 [06:07:19]Write to MH i2c: E2 08 00 B4 C0 80 13 01 00 00 00 00 00 F1 [06:07:19]Write i2c OK [06:07:19]MH_I2C_Read... [06:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:19]Read from MH i2c: E2 [06:07:19]MH_I2C_Read... [06:07:19]Read from MH i2c: E2 0E 00 [06:07:19]MH_I2C_Read... [06:07:19]Read from MH i2c: E2 0E 00 B4 C0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 39 [06:07:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:07:19]wFMCommunicate OK [06:07:19]SAM_PROTO_GetShiftState done [06:07:19]FM_GetShiftState done [06:07:19]req_shift_opened done [06:07:19]requested_item shift.open_date is exist - process it [06:07:19]req_shift_open_date [06:07:19]req_shift_open_date done [06:07:19]produce_requested_data done [06:07:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165535,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:07:19]process_action_free close_receipt [06:07:19]json_value_free [06:07:19]json_value_free done [06:07:19]process_json_proto returns [06:07:19]Send response to host [06:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165535,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:07:19]free response buf [06:07:19]execute_script done [06:07:19]execute_script returns [06:07:19]free content buf [06:07:19]Sock 7.Close socket [06:07:19]Sock 7.Thread stoped [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]accept exits with 9 [06:08:28]New connection [06:08:28]New thread 3066776932 created [06:08:28]Thread 3066920292 joined [06:08:28]Waiting for new connection... [06:08:28] Sock 9.Parse request [06:08:28]Sock 9.Check first char [06:08:28]Sock 9.First char is OK [06:08:28]request: POST /json_proto HTTP/1.0 [06:08:28]Method: POST [06:08:28]URL: /json_proto [06:08:28]Method is POST - this is cgi request [06:08:28]url: /json_proto [06:08:28]query_string will be loaded in cgi processing [06:08:28]execute_cgi json_proto POST (null) [06:08:28]execute_cgi path=json_proto method=POST [06:08:28]POST find Content-Length [06:08:28]Host: 172.17.53.195:8080 [06:08:28]Content-Length: 676 [06:08:28]Content-Type: application/json [06:08:28] [06:08:28]POST finish read [06:08:28]Found Content-Length = 676 [06:08:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220095", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:28]execute_script... [06:08: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)220095", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:28]POST & json_proto [06:08:28]process_json_proto [06:08:28]json parsed OK: [06:08:28]protocol is kg_v1.0 [06:08:28]action value=close_receipt [06:08:28]process_action close_receipt [06:08:28]cmd_close_receipt [06:08:28]MH_GetDate [06:08:28]Write to MH i2c: F0 00 00 B5 C0 64 [06:08:28]Write i2c OK [06:08:28]MH_I2C_Read... [06:08:28]Read from MH i2c: F0 [06:08:28]MH_I2C_Read... [06:08:28]Read from MH i2c: F0 09 00 [06:08:28]MH_I2C_Read... [06:08:28]Read from MH i2c: F0 09 00 B5 C0 00 67 9E 14 67 21 48 4A 65 05 [06:08:28]GetLastDocTimeStamp 1729404446 [06:08:28]current date 1729404519 [06:08:28]FM_GetShiftState [06:08:28]SAM_PROTO_GetShiftState [06:08:28]wFMCommunicate request_size=4 [06:08:28]MH_SAM_APDU [06:08:28]CAPDU: 80 13 01 00 [06:08:28]Write to MH i2c: E2 08 00 B6 C0 80 13 01 00 00 00 00 00 F3 [06:08:28]Write i2c OK [06:08:28]MH_I2C_Read... [06:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:28]Read from MH i2c: E2 [06:08:28]MH_I2C_Read... [06:08:28]Read from MH i2c: E2 0E 00 [06:08:28]MH_I2C_Read... [06:08:28]Read from MH i2c: E2 0E 00 B6 C0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3B [06:08:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:08:28]wFMCommunicate OK [06:08:28]SAM_PROTO_GetShiftState done [06:08:28]FM_GetShiftState done [06:08:28]opened in 1729384561 [06:08:28]opened+sec_in_day 1729470961 [06:08:28]quantity*price = 99974 [06:08:28]sum+1 = 99975 [06:08:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 18 20.10.2024 06:08 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165536 ФПД: 250266669507181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165536&fm=250266669507181&tin=02508201610067®Number=0000000000091764&sum=99900 [06:08:29]StoreToDocumentArchive [06:08:29]shift 534 fd 165536 [06:08:29]save to /storage/0534/doc_00165536 [06:08:29]save last doc name /storage/0534/doc_00165536 to /storage/kkm_last_doc_name [06:08:29]save OK [06:08:29]Clear old archive folders... [06:08:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:08:29]tlvbuf is 0177A880 [06:08:29]SAM_PROTO_ClearQueue [06:08:29]wFMCommunicate request_size=4 [06:08:29]MH_SAM_APDU [06:08:29]CAPDU: 80 09 00 00 [06:08:29]Write to MH i2c: E2 08 00 C3 C0 80 09 00 00 00 00 00 00 F5 [06:08:29]Write i2c OK [06:08:29]MH_I2C_Read... [06:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:29]Read from MH i2c: E2 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 03 00 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 03 00 C3 C0 00 90 00 F7 [06:08:29]RAPDU: 90 00 [06:08:29]wFMCommunicate OK [06:08:29]SAM_PROTO_ClearQueue done [06:08:29]KKMCreateOFDPacket [06:08:29]OFDProtocolAddRootSTLVToBuf [06:08:29]FM_MakeSignedData [06:08:29]FM_MakeSignedData [06:08:29]SAM_PROTO_SignData [06:08:29]wFMCommunicate request_size=4 [06:08:29]MH_SAM_APDU [06:08:29]CAPDU: 80 0D 01 02 [06:08:29]Write to MH i2c: E2 08 00 C4 C0 80 0D 01 02 00 00 00 00 FD [06:08:29]Write i2c OK [06:08:29]MH_I2C_Read... [06:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:29]Read from MH i2c: E2 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 03 00 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 03 00 C4 C0 00 90 00 F8 [06:08:29]RAPDU: 90 00 [06:08:29]wFMCommunicate OK [06:08:29]wFMCommunicate request_size=255 [06:08:29]MH_SAM_APDU [06:08: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 12 00 00 00 F4 03 04 00 67 9E 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 86 02 00 35 04 06 00 E3 9D BF EF [06:08:29]Write to MH i2c: E2 02 01 C5 C0 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 12 00 00 00 F4 03 04 00 67 9E 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 86 02 00 35 04 06 00 E3 9D BF EF 00 00 62 [06:08:29]Write i2c OK [06:08:29]MH_I2C_Read... [06:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:29]Read from MH i2c: E2 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 03 00 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 03 00 C5 C0 00 90 00 F9 [06:08:29]RAPDU: 90 00 [06:08:29]wFMCommunicate OK [06:08:29]wFMCommunicate request_size=7 [06:08:29]MH_SAM_APDU [06:08:29]CAPDU: 80 0D 02 02 02 62 6D [06:08:29]Write to MH i2c: E2 0A 00 C6 C0 80 0D 02 02 02 00 62 6D 00 00 D3 [06:08:29]Write i2c OK [06:08:29]MH_I2C_Read... [06:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:29]Read from MH i2c: E2 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 03 00 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 03 00 C6 C0 00 90 00 FA [06:08:29]RAPDU: 90 00 [06:08:29]wFMCommunicate OK [06:08:29]wFMCommunicate request_size=4 [06:08:29]MH_SAM_APDU [06:08:29]CAPDU: 80 0D 03 02 [06:08:29]Write to MH i2c: E2 08 00 C7 C0 80 0D 03 02 00 00 00 00 02 [06:08:29]Write i2c OK [06:08:29]MH_I2C_Read... [06:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:29]Read from MH i2c: E2 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 0B 00 [06:08:29]MH_I2C_Read... [06:08:29]Read from MH i2c: E2 0B 00 C7 C0 00 E4 7E 3F BC 67 31 B2 26 90 00 D0 [06:08:29]RAPDU: E4 7E 3F BC 67 31 B2 26 90 00 [06:08:29]wFMCommunicate OK [06:08:29]SAM_PROTO_SignData done [06:08:29]FM_MakeSignedData done [06:08:29]CreateOFDProtocolMessage [06:08:29]wFMCommunicate request_size=4 [06:08:29]MH_SAM_APDU [06:08:29]CAPDU: 80 11 00 00 [06:08:29]Write to MH i2c: E2 08 00 C8 C0 80 11 00 00 00 00 00 00 02 [06:08:29]Write i2c OK [06:08:29]MH_I2C_Read... [06:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:30]Read from MH i2c: E2 [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: E2 17 00 [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: E2 17 00 C8 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [06:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:08:30]wFMCommunicate OK [06:08:30]CreateOFDProtocolMessage done [06:08:30]OFDSenderStorePacket 165536 [06:08:30]StoreOFDPacket docnum=165536 [06:08:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 89 97 04 01 14 DE 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 12 00 00 00 F4 03 04 00 67 9E 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 86 02 00 35 04 06 00 E3 9D BF EF 62 6D E4 7E 3F BC 67 31 B2 26 [06:08:30]CheckFolder [06:08:30]dirname=/storage/ofd_packets [06:08:30]CheckFolder done [06:08:30]ProducePacketName [06:08:30]name=ofd_packets/00165536 [06:08:30]NVStorageSaveData ofd_packets/00165536 [06:08:30]File name is /storage/ofd_packets/00165536 [06:08:30]Write 298 bytes [06:08:30]NVStorageSaveData done [06:08:30]OFDSenderStorePacket done [06:08:30]KKMCreateOFDPacket done [06:08:30]NVStorageSaveData kkm_last_timestamp [06:08:30]File name is /storage/kkm_last_timestamp [06:08:30]Write 4 bytes [06:08:30]NVStorageSaveData done [06:08:30]ExternCall_PrintAddStr [06:08:30]wPrintStart [06:08:30]Write to MH i2c: 01 00 00 C9 C0 89 [06:08:30]Write i2c OK [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: 01 [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: 01 07 00 [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: 01 07 00 C9 C0 00 00 00 00 00 FF 0F 9E [06:08:30]RasterBufferAndPrint [06:08:30]line Счет N : (1)220095 [06:08:30]line ИНН: 02508201610067 [06:08:30]line Контрольно-Кассовый Чек [06:08:30]line ПРОДАЖА [06:08:30]line ТРК (МРК, ГНК) : 11 [06:08:30]line Товар: 2710194210 [06:08:30]line ДТ-К-5 [06:08:30]line 13.120 * 76.20 [06:08:30]line = 999.74 [06:08:30]line НДС 12% НСП 1% [06:08:30]line > о реализуемом товаре [06:08:30]line ОКРУГЛЕНИЕ: -0.74 [06:08:30]line ИТОГО: 999.00 [06:08:30]line Внесено: 1000.00 [06:08:30]line СДАЧА: 1.00 [06:08:30]line НСП 1% : 8.85 [06:08:30]line НДС 12% : 106.17 [06:08:30]line Наличными: 999.00 [06:08:30]line Безнал.: 0.00 [06:08:30]line Место: АЗС № 161 "Партнер Нефть" [06:08:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:08:30]line СНО: Общий режим [06:08:30]line Чек 18 20.10.2024 06:08 [06:08:30]line Смена: 534 ФФД: 1.0 [06:08:30]line ЗНМ: 0300000104 [06:08:30]line РНМ: 0000000000091764 [06:08:30]line Версия ККМ: 001 [06:08:30]line ФМ: 0000000000871759 [06:08:30]line ФД: 165536 [06:08:30]line ФПД: 250266669507181 [06:08:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165536&fm=250266669507181&tin=02508201610067®Number=0000000000091764&sum=99900 [06:08:30]OFD Sender: Processing packet 165536 [packets to send 48, broken 47] [06:08:30]ProducePacketName [06:08:30]name=ofd_packets/00165536 [06:08:30]OFD Sender: To server: pG, [06:08:30]CommunicateWithHost lk.salyk.kg:30040 [06:08:30]ConnectInit lk.salyk.kg [06:08:30]written 0, free lines is 4095 [06:08:30]Connected sock=10 [06:08:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 89 97 04 01 14 DE 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 12 00 00 00 F4 03 04 00 67 9E 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 86 02 00 35 04 06 00 E3 9D BF EF 62 6D E4 7E 3F BC 67 31 B2 26 [06:08:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3F 4E 47 00 75 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 31 37 35 39 10 04 04 00 A0 86 02 00 F4 03 04 00 D9 44 14 67 B6 04 01 00 00 FC E3 3E E1 51 F1 DE B1 [06:08:30]CommunicateWithHost err = 0 [06:08:30]CheckOFDResponse [06:08:30]1017 (14) - 77093643461234 [06:08:30]1041 (16) - 0000000000871759 [06:08:30]1040 (4) - 165536 [06:08:30]1012 (4) - 19.10.2024 23:46 [06:08:30]1206 (1) - 0 [06:08:30]OFD Sender: Remove packet 165536 [06:08:30]ProducePacketName [06:08:30]name=ofd_packets/00165536 [06:08:30]NVStorageDeleteData [06:08:30]Write to MH i2c: 01 00 00 F4 C0 B4 [06:08:30]Write i2c OK [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: 01 [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: 01 07 00 [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: 01 07 00 F4 C0 00 00 00 00 00 D6 0C 9D [06:08:30]RasterBufferAndPrint [06:08:30]line [06:08:30]line [06:08:30]line [06:08:30]line [06:08:30]line [06:08:30]written 0, free lines is 3292 [06:08:30]MH_Cut [06:08:30]Write to MH i2c: D1 01 00 FB C0 01 8D [06:08:30]Write i2c OK [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: D1 [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: D1 01 00 [06:08:30]MH_I2C_Read... [06:08:30]Read from MH i2c: D1 01 00 FB C0 00 8C [06:08:30]Write to MH i2c: 01 00 00 FC C0 BC [06:08:30]Write i2c OK [06:08:30]MH_I2C_Read... [06:08:31]OFD Sender: No OFD packet to send [06:08:31]*** Cut start [06:08:31]*** Partial cut [06:08:31]*** CUTSNS_PIN = 1 [06:08:31]*** CUTSNS_PIN = 0 [06:08:31]*** Brake cut motor [06:08:32]Read from MH i2c: 01 [06:08:32]MH_I2C_Read... [06:08:32]*** Stop cut motor [06:08:32]*** Cut end [06:08:32]Read from MH i2c: 01 07 00 [06:08:32]MH_I2C_Read... [06:08:32]Read from MH i2c: 01 07 00 FC C0 00 00 00 00 00 FF 0F D1 [06:08:32]process_action close_receipt done [06:08:32]requested_data is exist [06:08:32]produce_requested_data [06:08:32]requested_item fm.sn is exist - process it [06:08:32]wFMCommunicate request_size=4 [06:08:32]MH_SAM_APDU [06:08:32]CAPDU: 80 11 00 00 [06:08:32]Write to MH i2c: E2 08 00 FD C0 80 11 00 00 00 00 00 00 37 [06:08:32]Write i2c OK [06:08:32]MH_I2C_Read... [06:08:32]Read from MH i2c: E2 [06:08:32]MH_I2C_Read... [06:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:32]Read from MH i2c: E2 17 00 [06:08:32]MH_I2C_Read... [06:08:32]Read from MH i2c: E2 17 00 FD C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [06:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:08:32]wFMCommunicate OK [06:08:32]requested_item fd.num is exist - process it [06:08:32]SAM_PROTO_GetFieldsCounters [06:08:32]wFMCommunicate request_size=4 [06:08:32]MH_SAM_APDU [06:08:32]CAPDU: 80 13 00 00 [06:08:32]Write to MH i2c: E2 08 00 FE C0 80 13 00 00 00 00 00 00 3A [06:08:32]Write i2c OK [06:08:32]MH_I2C_Read... [06:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:32]Read from MH i2c: E2 [06:08:32]MH_I2C_Read... [06:08:32]Read from MH i2c: E2 62 00 [06:08:32]MH_I2C_Read... [06:08:32]Read from MH i2c: E2 62 00 FE C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [06:08:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:08:32]wFMCommunicate OK [06:08:32]SAM_PROTO_GetFieldsCounters done [06:08:32]requested_item shift.num is exist - process it [06:08:32]requested_item shift.opened is exist - process it [06:08:32]req_shift_opened [06:08:32]FM_GetShiftState [06:08:32]SAM_PROTO_GetShiftState [06:08:32]wFMCommunicate request_size=4 [06:08:32]MH_SAM_APDU [06:08:32]CAPDU: 80 13 01 00 [06:08:32]Write to MH i2c: E2 08 00 FF C0 80 13 01 00 00 00 00 00 3C [06:08:32]Write i2c OK [06:08:32]MH_I2C_Read... [06:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:32]Read from MH i2c: E2 [06:08:32]MH_I2C_Read... [06:08:32]Read from MH i2c: E2 0E 00 [06:08:32]MH_I2C_Read... [06:08:32]Read from MH i2c: E2 0E 00 FF C0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 84 [06:08:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:08:32]wFMCommunicate OK [06:08:32]SAM_PROTO_GetShiftState done [06:08:32]FM_GetShiftState done [06:08:32]req_shift_opened done [06:08:32]requested_item shift.open_date is exist - process it [06:08:32]req_shift_open_date [06:08:32]req_shift_open_date done [06:08:32]produce_requested_data done [06:08:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165536,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:08:32]process_action_free close_receipt [06:08:32]json_value_free [06:08:32]json_value_free done [06:08:32]process_json_proto returns [06:08:32]Send response to host [06:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165536,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:08:32]free response buf [06:08:32]execute_script done [06:08:32]execute_script returns [06:08:32]free content buf [06:08:32]Sock 9.Close socket [06:08:32]Sock 9.Thread stoped [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]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:14:59]accept exits with 7 [06:14:59]New connection [06:14:59]New thread 3066920292 created [06:14:59]Thread 3066776932 joined [06:14:59]Waiting for new connection... [06:14:59] Sock 7.Parse request [06:14:59]Sock 7.Check first char [06:14:59]Sock 7.First char is OK [06:14:59]request: POST /json_proto HTTP/1.0 [06:14:59]Method: POST [06:14:59]URL: /json_proto [06:14:59]Method is POST - this is cgi request [06:14:59]url: /json_proto [06:14:59]query_string will be loaded in cgi processing [06:14:59]execute_cgi json_proto POST (null) [06:14:59]execute_cgi path=json_proto method=POST [06:14:59]POST find Content-Length [06:14:59]Host: 172.17.53.195:8080 [06:14:59]Content-Length: 682 [06:14:59]Content-Type: application/json [06:14:59] [06:14:59]POST finish read [06:14:59]Found Content-Length = 682 [06:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [06:14:59]execute_script... [06:14: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)220096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [06:14:59]POST & json_proto [06:14:59]process_json_proto [06:14:59]json parsed OK: [06:14:59]protocol is kg_v1.0 [06:14:59]action value=close_receipt [06:14:59]process_action close_receipt [06:14:59]cmd_close_receipt [06:14:59]MH_GetDate [06:14:59]Write to MH i2c: F0 00 00 00 C1 B0 [06:14:59]Write i2c OK [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: F0 [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: F0 09 00 [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: F0 09 00 00 C1 00 EE 9F 14 67 21 48 4A 65 D9 [06:14:59]GetLastDocTimeStamp 1729404519 [06:14:59]current date 1729404910 [06:14:59]FM_GetShiftState [06:14:59]SAM_PROTO_GetShiftState [06:14:59]wFMCommunicate request_size=4 [06:14:59]MH_SAM_APDU [06:14:59]CAPDU: 80 13 01 00 [06:14:59]Write to MH i2c: E2 08 00 01 C1 80 13 01 00 00 00 00 00 3F [06:14:59]Write i2c OK [06:14:59]MH_I2C_Read... [06:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:59]Read from MH i2c: E2 [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: E2 0E 00 [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: E2 0E 00 01 C1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 87 [06:14:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:14:59]wFMCommunicate OK [06:14:59]SAM_PROTO_GetShiftState done [06:14:59]FM_GetShiftState done [06:14:59]opened in 1729384561 [06:14:59]opened+sec_in_day 1729470961 [06:14:59]quantity*price = 120055 [06:14:59]sum+1 = 120057 [06:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 19 20.10.2024 06:15 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165537 ФПД: 202965643644036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165537&fm=202965643644036&tin=02508201610067®Number=0000000000091764&sum=120000 [06:15:00]StoreToDocumentArchive [06:15:00]shift 534 fd 165537 [06:15:00]save to /storage/0534/doc_00165537 [06:15:00]save last doc name /storage/0534/doc_00165537 to /storage/kkm_last_doc_name [06:15:00]save OK [06:15:00]Clear old archive folders... [06:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:15:00]tlvbuf is 01456A10 [06:15:00]SAM_PROTO_ClearQueue [06:15:00]wFMCommunicate request_size=4 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 09 00 00 [06:15:00]Write to MH i2c: E2 08 00 0E C1 80 09 00 00 00 00 00 00 41 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 0E C1 00 90 00 43 [06:15:00]RAPDU: 90 00 [06:15:00]wFMCommunicate OK [06:15:00]SAM_PROTO_ClearQueue done [06:15:00]KKMCreateOFDPacket [06:15:00]OFDProtocolAddRootSTLVToBuf [06:15:00]FM_MakeSignedData [06:15:00]FM_MakeSignedData [06:15:00]SAM_PROTO_SignData [06:15:00]wFMCommunicate request_size=4 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 0D 01 02 [06:15:00]Write to MH i2c: E2 08 00 0F C1 80 0D 01 02 00 00 00 00 49 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 0F C1 00 90 00 44 [06:15:00]RAPDU: 90 00 [06:15:00]wFMCommunicate OK [06:15:00]wFMCommunicate request_size=255 [06:15:00]MH_SAM_APDU [06:15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CD 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 13 00 00 00 F4 03 04 00 EE 9F 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 86 02 00 35 04 06 00 B8 [06:15:00]Write to MH i2c: E2 02 01 10 C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CD 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 13 00 00 00 F4 03 04 00 EE 9F 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 86 02 00 35 04 06 00 B8 00 00 1C [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 10 C1 00 90 00 45 [06:15:00]RAPDU: 90 00 [06:15:00]wFMCommunicate OK [06:15:00]wFMCommunicate request_size=10 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 0D 02 02 05 98 9F 17 4C 84 [06:15:00]Write to MH i2c: E2 0D 00 11 C1 80 0D 02 02 05 00 98 9F 17 4C 84 00 00 74 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 11 C1 00 90 00 46 [06:15:00]RAPDU: 90 00 [06:15:00]wFMCommunicate OK [06:15:00]wFMCommunicate request_size=4 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 0D 03 02 [06:15:00]Write to MH i2c: E2 08 00 12 C1 80 0D 03 02 00 00 00 00 4E [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 0B 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 0B 00 12 C1 00 CE 97 FA F7 F6 28 2F 90 90 00 82 [06:15:00]RAPDU: CE 97 FA F7 F6 28 2F 90 90 00 [06:15:00]wFMCommunicate OK [06:15:00]SAM_PROTO_SignData done [06:15:00]FM_MakeSignedData done [06:15:00]CreateOFDProtocolMessage [06:15:00]wFMCommunicate request_size=4 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 11 00 00 [06:15:00]Write to MH i2c: E2 08 00 13 C1 80 11 00 00 00 00 00 00 4E [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:01]Read from MH i2c: E2 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: E2 17 00 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: E2 17 00 13 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [06:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:15:01]wFMCommunicate OK [06:15:01]CreateOFDProtocolMessage done [06:15:01]OFDSenderStorePacket 165537 [06:15:01]StoreOFDPacket docnum=165537 [06:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D4 9F 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CD 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 13 00 00 00 F4 03 04 00 EE 9F 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 86 02 00 35 04 06 00 B8 98 9F 17 4C 84 CE 97 FA F7 F6 28 2F 90 [06:15:01]CheckFolder [06:15:01]dirname=/storage/ofd_packets [06:15:01]CheckFolder done [06:15:01]ProducePacketName [06:15:01]name=ofd_packets/00165537 [06:15:01]NVStorageSaveData ofd_packets/00165537 [06:15:01]File name is /storage/ofd_packets/00165537 [06:15:01]Write 301 bytes [06:15:01]NVStorageSaveData done [06:15:01]OFDSenderStorePacket done [06:15:01]KKMCreateOFDPacket done [06:15:01]NVStorageSaveData kkm_last_timestamp [06:15:01]File name is /storage/kkm_last_timestamp [06:15:01]Write 4 bytes [06:15:01]NVStorageSaveData done [06:15:01]ExternCall_PrintAddStr [06:15:01]wPrintStart [06:15:01]Write to MH i2c: 01 00 00 14 C1 D5 [06:15:01]Write i2c OK [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 07 00 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 07 00 14 C1 00 00 00 00 00 FF 0F EA [06:15:01]RasterBufferAndPrint [06:15:01]line Счет N : (1)220096 [06:15:01]line ИНН: 02508201610067 [06:15:01]line Контрольно-Кассовый Чек [06:15:01]line ПРОДАЖА [06:15:01]line ТРК (МРК, ГНК) : 14 [06:15:01]line Товар: 2710124500 [06:15:01]line Аи-95-К-5 [06:15:01]line 16.180 * 74.20 [06:15:01]line = 1200.56 [06:15:01]line НДС 12% НСП 1% [06:15:01]line > о реализуемом товаре [06:15:01]line ОКРУГЛЕНИЕ: -0.56 [06:15:01]line ИТОГО: 1200.00 [06:15:01]line Внесено: 1200.00 [06:15:01]line СДАЧА: 0.00 [06:15:01]line НСП 1% : 10.62 [06:15:01]line НДС 12% : 127.49 [06:15:01]line Наличными: 1200.00 [06:15:01]line Безнал.: 0.00 [06:15:01]line Место: АЗС № 161 "Партнер Нефть" [06:15:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:15:01]line СНО: Общий режим [06:15:01]line Чек 19 20.10.2024 06:15 [06:15:01]line Смена: 534 ФФД: 1.0 [06:15:01]line ЗНМ: 0300000104 [06:15:01]line РНМ: 0000000000091764 [06:15:01]line Версия ККМ: 001 [06:15:01]line ФМ: 0000000000871759 [06:15:01]line ФД: 165537 [06:15:01]line ФПД: 202965643644036 [06:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165537&fm=202965643644036&tin=02508201610067®Number=0000000000091764&sum=120000 [06:15:01]OFD Sender: Processing packet 165537 [packets to send 48, broken 47] [06:15:01]ProducePacketName [06:15:01]name=ofd_packets/00165537 [06:15:01]OFD Sender: To server: pG, [06:15:01]CommunicateWithHost lk.salyk.kg:30040 [06:15:01]ConnectInit lk.salyk.kg [06:15:01]written 0, free lines is 4095 [06:15:01]Connected sock=10 [06:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D4 9F 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CD 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 13 00 00 00 F4 03 04 00 EE 9F 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 86 02 00 35 04 06 00 B8 98 9F 17 4C 84 CE 97 FA F7 F6 28 2F 90 [06:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CF 63 47 00 73 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 86 02 00 F4 03 04 00 60 46 14 67 B6 04 01 00 00 C6 E2 13 CA 78 D2 08 DA [06:15:01]CommunicateWithHost err = 0 [06:15:01]CheckOFDResponse [06:15:01]1017 (14) - 77093643461234 [06:15:01]1041 (16) - 0000000000871759 [06:15:01]1040 (4) - 165537 [06:15:01]1012 (4) - 19.10.2024 23:53 [06:15:01]1206 (1) - 0 [06:15:01]OFD Sender: Remove packet 165537 [06:15:01]ProducePacketName [06:15:01]name=ofd_packets/00165537 [06:15:01]NVStorageDeleteData [06:15:01]Write to MH i2c: 01 00 00 3F C1 00 [06:15:01]Write i2c OK [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 07 00 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 07 00 3F C1 00 00 00 00 00 C2 0C D5 [06:15:01]RasterBufferAndPrint [06:15:01]line [06:15:01]line [06:15:01]line [06:15:01]line [06:15:01]line [06:15:01]written 0, free lines is 3273 [06:15:01]MH_Cut [06:15:01]Write to MH i2c: D1 01 00 46 C1 01 D9 [06:15:01]Write i2c OK [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: D1 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: D1 01 00 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: D1 01 00 46 C1 00 D8 [06:15:01]Write to MH i2c: 01 00 00 47 C1 08 [06:15:01]Write i2c OK [06:15:01]MH_I2C_Read... [06:15:02]OFD Sender: No OFD packet to send [06:15:02]*** Cut start [06:15:02]*** Partial cut [06:15:02]*** CUTSNS_PIN = 1 [06:15:02]*** CUTSNS_PIN = 0 [06:15:02]*** Brake cut motor [06:15:03]Read from MH i2c: 01 [06:15:03]MH_I2C_Read... [06:15:03]*** Stop cut motor [06:15:03]*** Cut end [06:15:03]Read from MH i2c: 01 07 00 [06:15:03]MH_I2C_Read... [06:15:03]Read from MH i2c: 01 07 00 47 C1 00 00 00 00 00 FF 0F 1D [06:15:03]process_action close_receipt done [06:15:03]requested_data is exist [06:15:03]produce_requested_data [06:15:03]requested_item fm.sn is exist - process it [06:15:03]wFMCommunicate request_size=4 [06:15:03]MH_SAM_APDU [06:15:03]CAPDU: 80 11 00 00 [06:15:03]Write to MH i2c: E2 08 00 48 C1 80 11 00 00 00 00 00 00 83 [06:15:03]Write i2c OK [06:15:03]MH_I2C_Read... [06:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:03]Read from MH i2c: E2 [06:15:03]MH_I2C_Read... [06:15:03]Read from MH i2c: E2 17 00 [06:15:03]MH_I2C_Read... [06:15:03]Read from MH i2c: E2 17 00 48 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [06:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:15:03]wFMCommunicate OK [06:15:03]requested_item fd.num is exist - process it [06:15:03]SAM_PROTO_GetFieldsCounters [06:15:03]wFMCommunicate request_size=4 [06:15:03]MH_SAM_APDU [06:15:03]CAPDU: 80 13 00 00 [06:15:03]Write to MH i2c: E2 08 00 49 C1 80 13 00 00 00 00 00 00 86 [06:15:03]Write i2c OK [06:15:03]MH_I2C_Read... [06:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:03]Read from MH i2c: E2 [06:15:03]MH_I2C_Read... [06:15:03]Read from MH i2c: E2 62 00 [06:15:03]MH_I2C_Read... [06:15:03]Read from MH i2c: E2 62 00 49 C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [06:15: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:15:03]wFMCommunicate OK [06:15:03]SAM_PROTO_GetFieldsCounters done [06:15:03]requested_item shift.num is exist - process it [06:15:03]requested_item shift.opened is exist - process it [06:15:03]req_shift_opened [06:15:03]FM_GetShiftState [06:15:03]SAM_PROTO_GetShiftState [06:15:03]wFMCommunicate request_size=4 [06:15:03]MH_SAM_APDU [06:15:03]CAPDU: 80 13 01 00 [06:15:03]Write to MH i2c: E2 08 00 4A C1 80 13 01 00 00 00 00 00 88 [06:15:03]Write i2c OK [06:15:03]MH_I2C_Read... [06:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:03]Read from MH i2c: E2 [06:15:03]MH_I2C_Read... [06:15:03]Read from MH i2c: E2 0E 00 [06:15:03]MH_I2C_Read... [06:15:03]Read from MH i2c: E2 0E 00 4A C1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D0 [06:15:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:15:03]wFMCommunicate OK [06:15:03]SAM_PROTO_GetShiftState done [06:15:03]FM_GetShiftState done [06:15:03]req_shift_opened done [06:15:03]requested_item shift.open_date is exist - process it [06:15:03]req_shift_open_date [06:15:03]req_shift_open_date done [06:15:03]produce_requested_data done [06:15:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165537,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:15:03]process_action_free close_receipt [06:15:03]json_value_free [06:15:03]json_value_free done [06:15:03]process_json_proto returns [06:15:03]Send response to host [06:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165537,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:15:03]free response buf [06:15:03]execute_script done [06:15:03]execute_script returns [06:15:03]free content buf [06:15:03]Sock 7.Close socket [06:15:03]Sock 7.Thread stoped [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:24]accept exits with 9 [06:22:24]New connection [06:22:24]New thread 3066776932 created [06:22:24]Thread 3066920292 joined [06:22:24]Waiting for new connection... [06:22:24] Sock 9.Parse request [06:22:24]Sock 9.Check first char [06:22:24]Sock 9.First char is OK [06:22:24]request: POST /json_proto HTTP/1.0 [06:22:24]Method: POST [06:22:24]URL: /json_proto [06:22:24]Method is POST - this is cgi request [06:22:24]url: /json_proto [06:22:24]query_string will be loaded in cgi processing [06:22:24]execute_cgi json_proto POST (null) [06:22:24]execute_cgi path=json_proto method=POST [06:22:24]POST find Content-Length [06:22:24]Host: 172.17.53.195:8080 [06:22:24]Content-Length: 676 [06:22:24]Content-Type: application/json [06:22:24] [06:22:24]POST finish read [06:22:24]Found Content-Length = 676 [06:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220097", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:24]execute_script... [06:22: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)220097", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:24]POST & json_proto [06:22:24]process_json_proto [06:22:24]json parsed OK: [06:22:24]protocol is kg_v1.0 [06:22:24]action value=close_receipt [06:22:24]process_action close_receipt [06:22:24]cmd_close_receipt [06:22:24]MH_GetDate [06:22:24]Write to MH i2c: F0 00 00 4B C1 FB [06:22:24]Write i2c OK [06:22:24]MH_I2C_Read... [06:22:24]Read from MH i2c: F0 [06:22:24]MH_I2C_Read... [06:22:24]Read from MH i2c: F0 09 00 [06:22:24]MH_I2C_Read... [06:22:24]Read from MH i2c: F0 09 00 4B C1 00 AA A1 14 67 21 48 4A 65 E2 [06:22:24]GetLastDocTimeStamp 1729404910 [06:22:24]current date 1729405354 [06:22:24]FM_GetShiftState [06:22:24]SAM_PROTO_GetShiftState [06:22:24]wFMCommunicate request_size=4 [06:22:24]MH_SAM_APDU [06:22:24]CAPDU: 80 13 01 00 [06:22:24]Write to MH i2c: E2 08 00 4C C1 80 13 01 00 00 00 00 00 8A [06:22:24]Write i2c OK [06:22:24]MH_I2C_Read... [06:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:24]Read from MH i2c: E2 [06:22:24]MH_I2C_Read... [06:22:24]Read from MH i2c: E2 0E 00 [06:22:24]MH_I2C_Read... [06:22:24]Read from MH i2c: E2 0E 00 4C C1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D2 [06:22:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:22:24]wFMCommunicate OK [06:22:24]SAM_PROTO_GetShiftState done [06:22:24]FM_GetShiftState done [06:22:24]opened in 1729384561 [06:22:24]opened+sec_in_day 1729470961 [06:22:24]quantity*price = 99974 [06:22:24]sum+1 = 99975 [06:22:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 20 20.10.2024 06:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165538 ФПД: 17428086206665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062234&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165538&fm=17428086206665&tin=02508201610067®Number=0000000000091764&sum=99900 [06:22:25]StoreToDocumentArchive [06:22:25]shift 534 fd 165538 [06:22:25]save to /storage/0534/doc_00165538 [06:22:25]save last doc name /storage/0534/doc_00165538 to /storage/kkm_last_doc_name [06:22:25]save OK [06:22:25]Clear old archive folders... [06:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:22:25]tlvbuf is 0161BB90 [06:22:25]SAM_PROTO_ClearQueue [06:22:25]wFMCommunicate request_size=4 [06:22:25]MH_SAM_APDU [06:22:25]CAPDU: 80 09 00 00 [06:22:25]Write to MH i2c: E2 08 00 59 C1 80 09 00 00 00 00 00 00 8C [06:22:25]Write i2c OK [06:22:25]MH_I2C_Read... [06:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:22:25]Read from MH i2c: E2 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 03 00 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 03 00 59 C1 00 90 00 8E [06:22:25]RAPDU: 90 00 [06:22:25]wFMCommunicate OK [06:22:25]SAM_PROTO_ClearQueue done [06:22:25]KKMCreateOFDPacket [06:22:25]OFDProtocolAddRootSTLVToBuf [06:22:25]FM_MakeSignedData [06:22:25]FM_MakeSignedData [06:22:25]SAM_PROTO_SignData [06:22:25]wFMCommunicate request_size=4 [06:22:25]MH_SAM_APDU [06:22:25]CAPDU: 80 0D 01 02 [06:22:25]Write to MH i2c: E2 08 00 5A C1 80 0D 01 02 00 00 00 00 94 [06:22:25]Write i2c OK [06:22:25]MH_I2C_Read... [06:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:22:25]Read from MH i2c: E2 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 03 00 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 03 00 5A C1 00 90 00 8F [06:22:25]RAPDU: 90 00 [06:22:25]wFMCommunicate OK [06:22:25]wFMCommunicate request_size=255 [06:22:25]MH_SAM_APDU [06:22: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 AA A1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 86 02 00 35 04 06 00 0F D9 CA E3 [06:22:25]Write to MH i2c: E2 02 01 5B C1 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 AA A1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 86 02 00 35 04 06 00 0F D9 CA E3 00 00 AA [06:22:25]Write i2c OK [06:22:25]MH_I2C_Read... [06:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:25]Read from MH i2c: E2 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 03 00 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 03 00 5B C1 00 90 00 90 [06:22:25]RAPDU: 90 00 [06:22:25]wFMCommunicate OK [06:22:25]wFMCommunicate request_size=7 [06:22:25]MH_SAM_APDU [06:22:25]CAPDU: 80 0D 02 02 02 30 C9 [06:22:25]Write to MH i2c: E2 0A 00 5C C1 80 0D 02 02 02 00 30 C9 00 00 94 [06:22:25]Write i2c OK [06:22:25]MH_I2C_Read... [06:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:25]Read from MH i2c: E2 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 03 00 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 03 00 5C C1 00 90 00 91 [06:22:25]RAPDU: 90 00 [06:22:25]wFMCommunicate OK [06:22:25]wFMCommunicate request_size=4 [06:22:25]MH_SAM_APDU [06:22:25]CAPDU: 80 0D 03 02 [06:22:25]Write to MH i2c: E2 08 00 5D C1 80 0D 03 02 00 00 00 00 99 [06:22:25]Write i2c OK [06:22:25]MH_I2C_Read... [06:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:22:25]Read from MH i2c: E2 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 0B 00 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 0B 00 5D C1 00 54 78 25 16 1C 93 BC 2E 90 00 3A [06:22:25]RAPDU: 54 78 25 16 1C 93 BC 2E 90 00 [06:22:25]wFMCommunicate OK [06:22:25]SAM_PROTO_SignData done [06:22:25]FM_MakeSignedData done [06:22:25]CreateOFDProtocolMessage [06:22:25]wFMCommunicate request_size=4 [06:22:25]MH_SAM_APDU [06:22:25]CAPDU: 80 11 00 00 [06:22:25]Write to MH i2c: E2 08 00 5E C1 80 11 00 00 00 00 00 00 99 [06:22:25]Write i2c OK [06:22:25]MH_I2C_Read... [06:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:25]Read from MH i2c: E2 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 17 00 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: E2 17 00 5E C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [06:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:22:25]wFMCommunicate OK [06:22:25]CreateOFDProtocolMessage done [06:22:25]OFDSenderStorePacket 165538 [06:22:25]StoreOFDPacket docnum=165538 [06:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3B BC 04 01 CC 61 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 AA A1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 86 02 00 35 04 06 00 0F D9 CA E3 30 C9 54 78 25 16 1C 93 BC 2E [06:22:25]CheckFolder [06:22:25]dirname=/storage/ofd_packets [06:22:25]CheckFolder done [06:22:25]ProducePacketName [06:22:25]name=ofd_packets/00165538 [06:22:25]NVStorageSaveData ofd_packets/00165538 [06:22:25]File name is /storage/ofd_packets/00165538 [06:22:25]Write 298 bytes [06:22:25]NVStorageSaveData done [06:22:25]OFDSenderStorePacket done [06:22:25]KKMCreateOFDPacket done [06:22:25]NVStorageSaveData kkm_last_timestamp [06:22:25]File name is /storage/kkm_last_timestamp [06:22:25]Write 4 bytes [06:22:25]NVStorageSaveData done [06:22:25]ExternCall_PrintAddStr [06:22:25]wPrintStart [06:22:25]Write to MH i2c: 01 00 00 5F C1 20 [06:22:25]Write i2c OK [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: 01 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: 01 07 00 [06:22:25]MH_I2C_Read... [06:22:25]Read from MH i2c: 01 07 00 5F C1 00 00 00 00 00 FF 0F 35 [06:22:25]RasterBufferAndPrint [06:22:25]line Счет N : (1)220097 [06:22:25]line ИНН: 02508201610067 [06:22:25]line Контрольно-Кассовый Чек [06:22:25]line ПРОДАЖА [06:22:25]line ТРК (МРК, ГНК) : 11 [06:22:25]line Товар: 2710194210 [06:22:25]line ДТ-К-5 [06:22:25]line 13.120 * 76.20 [06:22:25]line = 999.74 [06:22:25]line НДС 12% НСП 1% [06:22:25]line > о реализуемом товаре [06:22:25]line ОКРУГЛЕНИЕ: -0.74 [06:22:25]line ИТОГО: 999.00 [06:22:25]line Внесено: 1000.00 [06:22:25]line СДАЧА: 1.00 [06:22:25]line НСП 1% : 8.85 [06:22:25]line НДС 12% : 106.17 [06:22:25]line Наличными: 999.00 [06:22:25]line Безнал.: 0.00 [06:22:25]line Место: АЗС № 161 "Партнер Нефть" [06:22:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:22:25]line СНО: Общий режим [06:22:25]line Чек 20 20.10.2024 06:22 [06:22:25]line Смена: 534 ФФД: 1.0 [06:22:25]line ЗНМ: 0300000104 [06:22:25]line РНМ: 0000000000091764 [06:22:25]line Версия ККМ: 001 [06:22:25]line ФМ: 0000000000871759 [06:22:25]line ФД: 165538 [06:22:25]line ФПД: 17428086206665 [06:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062234&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165538&fm=17428086206665&tin=02508201610067®Number=0000000000091764&sum=99900 [06:22:26]written 0, free lines is 4095 [06:22:26]OFD Sender: Processing packet 165538 [packets to send 48, broken 47] [06:22:26]ProducePacketName [06:22:26]name=ofd_packets/00165538 [06:22:26]OFD Sender: To server: pG, [06:22:26]CommunicateWithHost lk.salyk.kg:30040 [06:22:26]ConnectInit lk.salyk.kg [06:22:26]Connected sock=10 [06:22:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3B BC 04 01 CC 61 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 AA A1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 86 02 00 35 04 06 00 0F D9 CA E3 30 C9 54 78 25 16 1C 93 BC 2E [06:22:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 99 42 47 00 A6 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 31 37 35 39 10 04 04 00 A2 86 02 00 F4 03 04 00 1D 48 14 67 B6 04 01 00 00 45 49 9D 58 82 DB E2 85 [06:22:26]CommunicateWithHost err = 0 [06:22:26]CheckOFDResponse [06:22:26]1017 (14) - 77093643461234 [06:22:26]1041 (16) - 0000000000871759 [06:22:26]1040 (4) - 165538 [06:22:26]1012 (4) - 20.10.2024 00:00 [06:22:26]1206 (1) - 0 [06:22:26]OFD Sender: Remove packet 165538 [06:22:26]ProducePacketName [06:22:26]name=ofd_packets/00165538 [06:22:26]NVStorageDeleteData [06:22:26]Write to MH i2c: 01 00 00 8A C1 4B [06:22:26]Write i2c OK [06:22:26]MH_I2C_Read... [06:22:26]Read from MH i2c: 01 [06:22:26]MH_I2C_Read... [06:22:26]Read from MH i2c: 01 07 00 [06:22:26]MH_I2C_Read... [06:22:26]Read from MH i2c: 01 07 00 8A C1 00 00 00 00 00 A8 0C 06 [06:22:26]RasterBufferAndPrint [06:22:26]line [06:22:26]line [06:22:26]line [06:22:26]line [06:22:26]line [06:22:26]written 0, free lines is 3245 [06:22:26]MH_Cut [06:22:26]Write to MH i2c: D1 01 00 91 C1 01 24 [06:22:26]Write i2c OK [06:22:26]MH_I2C_Read... [06:22:26]Read from MH i2c: D1 [06:22:26]MH_I2C_Read... [06:22:26]Read from MH i2c: D1 01 00 [06:22:26]MH_I2C_Read... [06:22:26]Read from MH i2c: D1 01 00 91 C1 00 23 [06:22:26]Write to MH i2c: 01 00 00 92 C1 53 [06:22:26]Write i2c OK [06:22:26]MH_I2C_Read... [06:22:26]OFD Sender: No OFD packet to send [06:22:27]*** Cut start [06:22:27]*** Partial cut [06:22:27]*** CUTSNS_PIN = 1 [06:22:27]*** CUTSNS_PIN = 0 [06:22:27]*** Brake cut motor [06:22:28]Read from MH i2c: 01 [06:22:28]MH_I2C_Read... [06:22:28]*** Stop cut motor [06:22:28]*** Cut end [06:22:28]Read from MH i2c: 01 07 00 [06:22:28]MH_I2C_Read... [06:22:28]Read from MH i2c: 01 07 00 92 C1 00 00 00 00 00 FF 0F 68 [06:22:28]process_action close_receipt done [06:22:28]requested_data is exist [06:22:28]produce_requested_data [06:22:28]requested_item fm.sn is exist - process it [06:22:28]wFMCommunicate request_size=4 [06:22:28]MH_SAM_APDU [06:22:28]CAPDU: 80 11 00 00 [06:22:28]Write to MH i2c: E2 08 00 93 C1 80 11 00 00 00 00 00 00 CE [06:22:28]Write i2c OK [06:22:28]MH_I2C_Read... [06:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:28]Read from MH i2c: E2 [06:22:28]MH_I2C_Read... [06:22:28]Read from MH i2c: E2 17 00 [06:22:28]MH_I2C_Read... [06:22:28]Read from MH i2c: E2 17 00 93 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [06:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:22:28]wFMCommunicate OK [06:22:28]requested_item fd.num is exist - process it [06:22:28]SAM_PROTO_GetFieldsCounters [06:22:28]wFMCommunicate request_size=4 [06:22:28]MH_SAM_APDU [06:22:28]CAPDU: 80 13 00 00 [06:22:28]Write to MH i2c: E2 08 00 94 C1 80 13 00 00 00 00 00 00 D1 [06:22:28]Write i2c OK [06:22:28]MH_I2C_Read... [06:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:22:28]Read from MH i2c: E2 [06:22:28]MH_I2C_Read... [06:22:28]Read from MH i2c: E2 62 00 [06:22:28]MH_I2C_Read... [06:22:28]Read from MH i2c: E2 62 00 94 C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [06:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:22:28]wFMCommunicate OK [06:22:28]SAM_PROTO_GetFieldsCounters done [06:22:28]requested_item shift.num is exist - process it [06:22:28]requested_item shift.opened is exist - process it [06:22:28]req_shift_opened [06:22:28]FM_GetShiftState [06:22:28]SAM_PROTO_GetShiftState [06:22:28]wFMCommunicate request_size=4 [06:22:28]MH_SAM_APDU [06:22:28]CAPDU: 80 13 01 00 [06:22:28]Write to MH i2c: E2 08 00 95 C1 80 13 01 00 00 00 00 00 D3 [06:22:28]Write i2c OK [06:22:28]MH_I2C_Read... [06:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:28]Read from MH i2c: E2 [06:22:28]MH_I2C_Read... [06:22:28]Read from MH i2c: E2 0E 00 [06:22:28]MH_I2C_Read... [06:22:28]Read from MH i2c: E2 0E 00 95 C1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1B [06:22:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:22:28]wFMCommunicate OK [06:22:28]SAM_PROTO_GetShiftState done [06:22:28]FM_GetShiftState done [06:22:28]req_shift_opened done [06:22:28]requested_item shift.open_date is exist - process it [06:22:28]req_shift_open_date [06:22:28]req_shift_open_date done [06:22:28]produce_requested_data done [06:22:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165538,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:22:28]process_action_free close_receipt [06:22:28]json_value_free [06:22:28]json_value_free done [06:22:28]process_json_proto returns [06:22:28]Send response to host [06:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165538,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:22:28]free response buf [06:22:28]execute_script done [06:22:28]execute_script returns [06:22:28]free content buf [06:22:28]Sock 9.Close socket [06:22:28]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:25]accept exits with 7 [06:29:25]New connection [06:29:25]New thread 3066920292 created [06:29:25]Thread 3066776932 joined [06:29:25]Waiting for new connection... [06:29:25] Sock 7.Parse request [06:29:25]Sock 7.Check first char [06:29:25]Sock 7.First char is OK [06:29:25]request: POST /json_proto HTTP/1.0 [06:29:25]Method: POST [06:29:25]URL: /json_proto [06:29:25]Method is POST - this is cgi request [06:29:25]url: /json_proto [06:29:25]query_string will be loaded in cgi processing [06:29:25]execute_cgi json_proto POST (null) [06:29:25]execute_cgi path=json_proto method=POST [06:29:25]POST find Content-Length [06:29:25]Host: 172.17.53.195:8080 [06:29:25]Content-Length: 674 [06:29:25]Content-Type: application/json [06:29:25] [06:29:25]POST finish read [06:29:25]Found Content-Length = 674 [06:29:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220098", "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" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [06:29:25]execute_script... [06:29: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)220098", "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" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [06:29:25]POST & json_proto [06:29:25]process_json_proto [06:29:25]json parsed OK: [06:29:25]protocol is kg_v1.0 [06:29:25]action value=close_receipt [06:29:25]process_action close_receipt [06:29:25]cmd_close_receipt [06:29:25]MH_GetDate [06:29:25]Write to MH i2c: F0 00 00 96 C1 46 [06:29:25]Write i2c OK [06:29:25]MH_I2C_Read... [06:29:25]Read from MH i2c: F0 [06:29:25]MH_I2C_Read... [06:29:25]Read from MH i2c: F0 09 00 [06:29:25]MH_I2C_Read... [06:29:25]Read from MH i2c: F0 09 00 96 C1 00 50 A3 14 67 21 48 4A 65 D5 [06:29:25]GetLastDocTimeStamp 1729405354 [06:29:25]current date 1729405776 [06:29:25]FM_GetShiftState [06:29:25]SAM_PROTO_GetShiftState [06:29:25]wFMCommunicate request_size=4 [06:29:25]MH_SAM_APDU [06:29:25]CAPDU: 80 13 01 00 [06:29:25]Write to MH i2c: E2 08 00 97 C1 80 13 01 00 00 00 00 00 D5 [06:29:25]Write i2c OK [06:29:25]MH_I2C_Read... [06:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:25]Read from MH i2c: E2 [06:29:25]MH_I2C_Read... [06:29:25]Read from MH i2c: E2 0E 00 [06:29:25]MH_I2C_Read... [06:29:25]Read from MH i2c: E2 0E 00 97 C1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1D [06:29:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:29:25]wFMCommunicate OK [06:29:25]SAM_PROTO_GetShiftState done [06:29:25]FM_GetShiftState done [06:29:25]opened in 1729384561 [06:29:25]opened+sec_in_day 1729470961 [06:29:25]quantity*price = 70027 [06:29:25]sum+1 = 70029 [06:29:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 21 20.10.2024 06:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165539 ФПД: 111156932038231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062936&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165539&fm=111156932038231&tin=02508201610067®Number=0000000000091764&sum=70000 [06:29:26]StoreToDocumentArchive [06:29:26]shift 534 fd 165539 [06:29:26]save to /storage/0534/doc_00165539 [06:29:26]save last doc name /storage/0534/doc_00165539 to /storage/kkm_last_doc_name [06:29:26]save OK [06:29:26]Clear old archive folders... [06:29:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:29:26]tlvbuf is 01451660 [06:29:26]SAM_PROTO_ClearQueue [06:29:26]wFMCommunicate request_size=4 [06:29:26]MH_SAM_APDU [06:29:26]CAPDU: 80 09 00 00 [06:29:26]Write to MH i2c: E2 08 00 A4 C1 80 09 00 00 00 00 00 00 D7 [06:29:26]Write i2c OK [06:29:26]MH_I2C_Read... [06:29:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:29:26]Read from MH i2c: E2 [06:29:26]MH_I2C_Read... [06:29:26]Read from MH i2c: E2 03 00 [06:29:26]MH_I2C_Read... [06:29:26]Read from MH i2c: E2 03 00 A4 C1 00 90 00 D9 [06:29:26]RAPDU: 90 00 [06:29:26]wFMCommunicate OK [06:29:26]SAM_PROTO_ClearQueue done [06:29:26]KKMCreateOFDPacket [06:29:26]OFDProtocolAddRootSTLVToBuf [06:29:26]FM_MakeSignedData [06:29:26]FM_MakeSignedData [06:29:26]SAM_PROTO_SignData [06:29:26]wFMCommunicate request_size=4 [06:29:26]MH_SAM_APDU [06:29:26]CAPDU: 80 0D 01 02 [06:29:26]Write to MH i2c: E2 08 00 A5 C1 80 0D 01 02 00 00 00 00 DF [06:29:26]Write i2c OK [06:29:26]MH_I2C_Read... [06:29:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:29:26]Read from MH i2c: E2 [06:29:26]MH_I2C_Read... [06:29:26]Read from MH i2c: E2 03 00 [06:29:26]MH_I2C_Read... [06:29:26]Read from MH i2c: E2 03 00 A5 C1 00 90 00 DA [06:29:26]RAPDU: 90 00 [06:29:26]wFMCommunicate OK [06:29:26]wFMCommunicate request_size=255 [06:29:26]MH_SAM_APDU [06:29: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 15 00 00 00 F4 03 04 00 50 A3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 86 02 00 35 04 06 00 65 18 BD 72 [06:29:26]Write to MH i2c: E2 02 01 A6 C1 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 15 00 00 00 F4 03 04 00 50 A3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 86 02 00 35 04 06 00 65 18 BD 72 00 00 D9 [06:29:26]Write i2c OK [06:29:26]MH_I2C_Read... [06:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:27]Read from MH i2c: E2 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: E2 03 00 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: E2 03 00 A6 C1 00 90 00 DB [06:29:27]RAPDU: 90 00 [06:29:27]wFMCommunicate OK [06:29:27]wFMCommunicate request_size=7 [06:29:27]MH_SAM_APDU [06:29:27]CAPDU: 80 0D 02 02 02 CE 57 [06:29:27]Write to MH i2c: E2 0A 00 A7 C1 80 0D 02 02 02 00 CE 57 00 00 0B [06:29:27]Write i2c OK [06:29:27]MH_I2C_Read... [06:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:27]Read from MH i2c: E2 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: E2 03 00 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: E2 03 00 A7 C1 00 90 00 DC [06:29:27]RAPDU: 90 00 [06:29:27]wFMCommunicate OK [06:29:27]wFMCommunicate request_size=4 [06:29:27]MH_SAM_APDU [06:29:27]CAPDU: 80 0D 03 02 [06:29:27]Write to MH i2c: E2 08 00 A8 C1 80 0D 03 02 00 00 00 00 E4 [06:29:27]Write i2c OK [06:29:27]MH_I2C_Read... [06:29:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:29:27]Read from MH i2c: E2 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: E2 0B 00 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: E2 0B 00 A8 C1 00 74 84 78 B6 09 79 09 CD 90 00 63 [06:29:27]RAPDU: 74 84 78 B6 09 79 09 CD 90 00 [06:29:27]wFMCommunicate OK [06:29:27]SAM_PROTO_SignData done [06:29:27]FM_MakeSignedData done [06:29:27]CreateOFDProtocolMessage [06:29:27]wFMCommunicate request_size=4 [06:29:27]MH_SAM_APDU [06:29:27]CAPDU: 80 11 00 00 [06:29:27]Write to MH i2c: E2 08 00 A9 C1 80 11 00 00 00 00 00 00 E4 [06:29:27]Write i2c OK [06:29:27]MH_I2C_Read... [06:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:27]OFD Sender: No OFD packet to send [06:29:27]Read from MH i2c: E2 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: E2 17 00 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: E2 17 00 A9 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3C [06:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:29:27]wFMCommunicate OK [06:29:27]CreateOFDProtocolMessage done [06:29:27]OFDSenderStorePacket 165539 [06:29:27]StoreOFDPacket docnum=165539 [06:29:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A4 8A 04 01 E9 47 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 15 00 00 00 F4 03 04 00 50 A3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 86 02 00 35 04 06 00 65 18 BD 72 CE 57 74 84 78 B6 09 79 09 CD [06:29:27]CheckFolder [06:29:27]dirname=/storage/ofd_packets [06:29:27]CheckFolder done [06:29:27]ProducePacketName [06:29:27]name=ofd_packets/00165539 [06:29:27]NVStorageSaveData ofd_packets/00165539 [06:29:27]File name is /storage/ofd_packets/00165539 [06:29:27]Write 298 bytes [06:29:27]NVStorageSaveData done [06:29:27]OFDSenderStorePacket done [06:29:27]KKMCreateOFDPacket done [06:29:27]NVStorageSaveData kkm_last_timestamp [06:29:27]File name is /storage/kkm_last_timestamp [06:29:27]Write 4 bytes [06:29:27]NVStorageSaveData done [06:29:27]ExternCall_PrintAddStr [06:29:27]wPrintStart [06:29:27]Write to MH i2c: 01 00 00 AA C1 6B [06:29:27]Write i2c OK [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: 01 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: 01 07 00 [06:29:27]MH_I2C_Read... [06:29:27]Read from MH i2c: 01 07 00 AA C1 00 00 00 00 00 FF 0F 80 [06:29:27]RasterBufferAndPrint [06:29:27]line Счет N : (1)220098 [06:29:27]line ИНН: 02508201610067 [06:29:27]line Контрольно-Кассовый Чек [06:29:27]line ПРОДАЖА [06:29:27]line ТРК (МРК, ГНК) : 11 [06:29:27]line Товар: 2710194210 [06:29:27]line ДТ-К-5 [06:29:27]line 9.190 * 76.20 [06:29:27]line = 700.28 [06:29:27]line НДС 12% НСП 1% [06:29:27]line > о реализуемом товаре [06:29:27]line ОКРУГЛЕНИЕ: -0.28 [06:29:27]line ИТОГО: 700.00 [06:29:27]line Внесено: 700.00 [06:29:27]line СДАЧА: 0.00 [06:29:27]line НСП 1% : 6.20 [06:29:27]line НДС 12% : 74.37 [06:29:27]line Наличными: 700.00 [06:29:27]line Безнал.: 0.00 [06:29:27]line Место: АЗС № 161 "Партнер Нефть" [06:29:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:29:27]line СНО: Общий режим [06:29:27]line Чек 21 20.10.2024 06:29 [06:29:27]line Смена: 534 ФФД: 1.0 [06:29:27]line ЗНМ: 0300000104 [06:29:27]line РНМ: 0000000000091764 [06:29:27]line Версия ККМ: 001 [06:29:27]line ФМ: 0000000000871759 [06:29:27]line ФД: 165539 [06:29:27]line ФПД: 111156932038231 [06:29:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062936&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165539&fm=111156932038231&tin=02508201610067®Number=0000000000091764&sum=70000 [06:29:27]OFD Sender: Processing packet 165539 [packets to send 48, broken 47] [06:29:27]ProducePacketName [06:29:27]name=ofd_packets/00165539 [06:29:27]OFD Sender: To server: pG, [06:29:27]CommunicateWithHost lk.salyk.kg:30040 [06:29:27]ConnectInit lk.salyk.kg [06:29:27]written 0, free lines is 4095 [06:29:27]Connected sock=10 [06:29:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A4 8A 04 01 E9 47 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 15 00 00 00 F4 03 04 00 50 A3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 86 02 00 35 04 06 00 65 18 BD 72 CE 57 74 84 78 B6 09 79 09 CD [06:29:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4E FA 47 00 7C 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 86 02 00 F4 03 04 00 C3 49 14 67 B6 04 01 00 00 8A E1 75 95 95 DF F2 42 [06:29:28]CommunicateWithHost err = 0 [06:29:28]CheckOFDResponse [06:29:28]1017 (14) - 77093643461234 [06:29:28]1041 (16) - 0000000000871759 [06:29:28]1040 (4) - 165539 [06:29:28]1012 (4) - 20.10.2024 00:07 [06:29:28]1206 (1) - 0 [06:29:28]OFD Sender: Remove packet 165539 [06:29:28]ProducePacketName [06:29:28]name=ofd_packets/00165539 [06:29:28]NVStorageDeleteData [06:29:28]Write to MH i2c: 01 00 00 D5 C1 96 [06:29:28]Write i2c OK [06:29:28]MH_I2C_Read... [06:29:28]Read from MH i2c: 01 [06:29:28]MH_I2C_Read... [06:29:28]Read from MH i2c: 01 07 00 [06:29:28]MH_I2C_Read... [06:29:28]Read from MH i2c: 01 07 00 D5 C1 00 00 00 00 00 B5 0C 5E [06:29:28]RasterBufferAndPrint [06:29:28]line [06:29:28]line [06:29:28]line [06:29:28]line [06:29:28]line [06:29:28]written 0, free lines is 3260 [06:29:28]MH_Cut [06:29:28]Write to MH i2c: D1 01 00 DC C1 01 6F [06:29:28]Write i2c OK [06:29:28]MH_I2C_Read... [06:29:28]Read from MH i2c: D1 [06:29:28]MH_I2C_Read... [06:29:28]Read from MH i2c: D1 01 00 [06:29:28]MH_I2C_Read... [06:29:28]Read from MH i2c: D1 01 00 DC C1 00 6E [06:29:28]Write to MH i2c: 01 00 00 DD C1 9E [06:29:28]Write i2c OK [06:29:28]MH_I2C_Read... [06:29:28]OFD Sender: No OFD packet to send [06:29:28]*** Cut start [06:29:28]*** Partial cut [06:29:28]*** CUTSNS_PIN = 1 [06:29:29]*** CUTSNS_PIN = 0 [06:29:29]*** Brake cut motor [06:29:29]Read from MH i2c: 01 [06:29:29]MH_I2C_Read... [06:29:29]*** Stop cut motor [06:29:29]*** Cut end [06:29:29]Read from MH i2c: 01 07 00 [06:29:29]MH_I2C_Read... [06:29:29]Read from MH i2c: 01 07 00 DD C1 00 00 00 00 00 FF 0F B3 [06:29:29]process_action close_receipt done [06:29:29]requested_data is exist [06:29:29]produce_requested_data [06:29:29]requested_item fm.sn is exist - process it [06:29:29]wFMCommunicate request_size=4 [06:29:29]MH_SAM_APDU [06:29:29]CAPDU: 80 11 00 00 [06:29:29]Write to MH i2c: E2 08 00 DE C1 80 11 00 00 00 00 00 00 19 [06:29:29]Write i2c OK [06:29:29]MH_I2C_Read... [06:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:29]Read from MH i2c: E2 [06:29:29]MH_I2C_Read... [06:29:29]Read from MH i2c: E2 17 00 [06:29:29]MH_I2C_Read... [06:29:29]Read from MH i2c: E2 17 00 DE C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [06:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:29:29]wFMCommunicate OK [06:29:29]requested_item fd.num is exist - process it [06:29:29]SAM_PROTO_GetFieldsCounters [06:29:29]wFMCommunicate request_size=4 [06:29:29]MH_SAM_APDU [06:29:29]CAPDU: 80 13 00 00 [06:29:29]Write to MH i2c: E2 08 00 DF C1 80 13 00 00 00 00 00 00 1C [06:29:29]Write i2c OK [06:29:29]MH_I2C_Read... [06:29:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:29:29]Read from MH i2c: E2 [06:29:29]MH_I2C_Read... [06:29:29]Read from MH i2c: E2 62 00 [06:29:29]MH_I2C_Read... [06:29:29]Read from MH i2c: E2 62 00 DF C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [06:29:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:29:29]wFMCommunicate OK [06:29:29]SAM_PROTO_GetFieldsCounters done [06:29:29]requested_item shift.num is exist - process it [06:29:29]requested_item shift.opened is exist - process it [06:29:29]req_shift_opened [06:29:29]FM_GetShiftState [06:29:29]SAM_PROTO_GetShiftState [06:29:29]wFMCommunicate request_size=4 [06:29:29]MH_SAM_APDU [06:29:29]CAPDU: 80 13 01 00 [06:29:29]Write to MH i2c: E2 08 00 E0 C1 80 13 01 00 00 00 00 00 1E [06:29:29]Write i2c OK [06:29:29]MH_I2C_Read... [06:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:29]Read from MH i2c: E2 [06:29:29]MH_I2C_Read... [06:29:29]Read from MH i2c: E2 0E 00 [06:29:29]MH_I2C_Read... [06:29:29]Read from MH i2c: E2 0E 00 E0 C1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 66 [06:29:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:29:29]wFMCommunicate OK [06:29:29]SAM_PROTO_GetShiftState done [06:29:29]FM_GetShiftState done [06:29:29]req_shift_opened done [06:29:29]requested_item shift.open_date is exist - process it [06:29:29]req_shift_open_date [06:29:29]req_shift_open_date done [06:29:29]produce_requested_data done [06:29:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165539,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:29:29]process_action_free close_receipt [06:29:29]json_value_free [06:29:29]json_value_free done [06:29:29]process_json_proto returns [06:29:29]Send response to host [06:29:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165539,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:29:29]free response buf [06:29:29]execute_script done [06:29:29]execute_script returns [06:29:29]free content buf [06:29:29]Sock 7.Close socket [06:29:29]Sock 7.Thread stoped [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:10]accept exits with 9 [06:46:10]New connection [06:46:10]New thread 3066776932 created [06:46:10]Thread 3066920292 joined [06:46:10]Waiting for new connection... [06:46:10] Sock 9.Parse request [06:46:10]Sock 9.Check first char [06:46:10]Sock 9.First char is OK [06:46:10]request: POST /json_proto HTTP/1.0 [06:46:10]Method: POST [06:46:10]URL: /json_proto [06:46:10]Method is POST - this is cgi request [06:46:10]url: /json_proto [06:46:10]query_string will be loaded in cgi processing [06:46:10]execute_cgi json_proto POST (null) [06:46:10]execute_cgi path=json_proto method=POST [06:46:10]POST find Content-Length [06:46:10]Host: 172.17.53.195:8080 [06:46:10]Content-Length: 682 [06:46:10]Content-Type: application/json [06:46:10] [06:46:10]POST finish read [06:46:10]Found Content-Length = 682 [06:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:10]execute_script... [06:46: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)220099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:10]POST & json_proto [06:46:10]process_json_proto [06:46:10]json parsed OK: [06:46:10]protocol is kg_v1.0 [06:46:10]action value=close_receipt [06:46:10]process_action close_receipt [06:46:10]cmd_close_receipt [06:46:10]MH_GetDate [06:46:10]Write to MH i2c: F0 00 00 E1 C1 91 [06:46:10]Write i2c OK [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: F0 [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: F0 09 00 [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: F0 09 00 E1 C1 00 3D A7 14 67 21 48 4A 65 11 [06:46:10]GetLastDocTimeStamp 1729405776 [06:46:10]current date 1729406781 [06:46:10]FM_GetShiftState [06:46:10]SAM_PROTO_GetShiftState [06:46:10]wFMCommunicate request_size=4 [06:46:10]MH_SAM_APDU [06:46:10]CAPDU: 80 13 01 00 [06:46:10]Write to MH i2c: E2 08 00 E2 C1 80 13 01 00 00 00 00 00 20 [06:46:10]Write i2c OK [06:46:10]MH_I2C_Read... [06:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:10]Read from MH i2c: E2 [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: E2 0E 00 [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: E2 0E 00 E2 C1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 68 [06:46:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:46:10]wFMCommunicate OK [06:46:10]SAM_PROTO_GetShiftState done [06:46:10]FM_GetShiftState done [06:46:10]opened in 1729384561 [06:46:10]opened+sec_in_day 1729470961 [06:46:10]quantity*price = 100015 [06:46:10]sum+1 = 100017 [06:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 22 20.10.2024 06:46 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165540 ФПД: 137464676784657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T064621&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165540&fm=137464676784657&tin=02508201610067®Number=0000000000091764&sum=100000 [06:46:11]StoreToDocumentArchive [06:46:11]shift 534 fd 165540 [06:46:11]save to /storage/0534/doc_00165540 [06:46:11]save last doc name /storage/0534/doc_00165540 to /storage/kkm_last_doc_name [06:46:11]save OK [06:46:11]Clear old archive folders... [06:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:46:11]tlvbuf is 01465290 [06:46:11]SAM_PROTO_ClearQueue [06:46:11]wFMCommunicate request_size=4 [06:46:11]MH_SAM_APDU [06:46:11]CAPDU: 80 09 00 00 [06:46:11]Write to MH i2c: E2 08 00 EF C1 80 09 00 00 00 00 00 00 22 [06:46:11]Write i2c OK [06:46:11]MH_I2C_Read... [06:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:11]Read from MH i2c: E2 [06:46:11]MH_I2C_Read... [06:46:11]Read from MH i2c: E2 03 00 [06:46:11]MH_I2C_Read... [06:46:11]Read from MH i2c: E2 03 00 EF C1 00 90 00 24 [06:46:11]RAPDU: 90 00 [06:46:11]wFMCommunicate OK [06:46:11]SAM_PROTO_ClearQueue done [06:46:11]KKMCreateOFDPacket [06:46:11]OFDProtocolAddRootSTLVToBuf [06:46:11]FM_MakeSignedData [06:46:11]FM_MakeSignedData [06:46:11]SAM_PROTO_SignData [06:46:11]wFMCommunicate request_size=4 [06:46:11]MH_SAM_APDU [06:46:11]CAPDU: 80 0D 01 02 [06:46:11]Write to MH i2c: E2 08 00 F0 C1 80 0D 01 02 00 00 00 00 2A [06:46:11]Write i2c OK [06:46:11]MH_I2C_Read... [06:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:11]Read from MH i2c: E2 [06:46:11]MH_I2C_Read... [06:46:11]Read from MH i2c: E2 03 00 [06:46:11]MH_I2C_Read... [06:46:11]Read from MH i2c: E2 03 00 F0 C1 00 90 00 25 [06:46:11]RAPDU: 90 00 [06:46:11]wFMCommunicate OK [06:46:11]wFMCommunicate request_size=255 [06:46:11]MH_SAM_APDU [06:46: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3D A7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 86 02 00 35 04 06 00 7D [06:46:11]Write to MH i2c: E2 02 01 F1 C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3D A7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 86 02 00 35 04 06 00 7D 00 00 F0 [06:46:11]Write i2c OK [06:46:11]MH_I2C_Read... [06:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:12]Read from MH i2c: E2 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: E2 03 00 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: E2 03 00 F1 C1 00 90 00 26 [06:46:12]RAPDU: 90 00 [06:46:12]wFMCommunicate OK [06:46:12]wFMCommunicate request_size=10 [06:46:12]MH_SAM_APDU [06:46:12]CAPDU: 80 0D 02 02 05 05 FD 3A 9A 11 [06:46:12]Write to MH i2c: E2 0D 00 F2 C1 80 0D 02 02 05 00 05 FD 3A 9A 11 00 00 1E [06:46:12]Write i2c OK [06:46:12]MH_I2C_Read... [06:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:12]Read from MH i2c: E2 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: E2 03 00 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: E2 03 00 F2 C1 00 90 00 27 [06:46:12]RAPDU: 90 00 [06:46:12]wFMCommunicate OK [06:46:12]wFMCommunicate request_size=4 [06:46:12]MH_SAM_APDU [06:46:12]CAPDU: 80 0D 03 02 [06:46:12]Write to MH i2c: E2 08 00 F3 C1 80 0D 03 02 00 00 00 00 2F [06:46:12]Write i2c OK [06:46:12]MH_I2C_Read... [06:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:12]Read from MH i2c: E2 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: E2 0B 00 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: E2 0B 00 F3 C1 00 08 44 01 63 B4 4A AA 1D 90 00 A5 [06:46:12]RAPDU: 08 44 01 63 B4 4A AA 1D 90 00 [06:46:12]wFMCommunicate OK [06:46:12]SAM_PROTO_SignData done [06:46:12]FM_MakeSignedData done [06:46:12]CreateOFDProtocolMessage [06:46:12]wFMCommunicate request_size=4 [06:46:12]MH_SAM_APDU [06:46:12]CAPDU: 80 11 00 00 [06:46:12]Write to MH i2c: E2 08 00 F4 C1 80 11 00 00 00 00 00 00 2F [06:46:12]Write i2c OK [06:46:12]MH_I2C_Read... [06:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:12]Read from MH i2c: E2 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: E2 17 00 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: E2 17 00 F4 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 87 [06:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:46:12]wFMCommunicate OK [06:46:12]CreateOFDProtocolMessage done [06:46:12]OFDSenderStorePacket 165540 [06:46:12]StoreOFDPacket docnum=165540 [06:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 BF 07 01 9D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3D A7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 86 02 00 35 04 06 00 7D 05 FD 3A 9A 11 08 44 01 63 B4 4A AA 1D [06:46:12]CheckFolder [06:46:12]dirname=/storage/ofd_packets [06:46:12]CheckFolder done [06:46:12]ProducePacketName [06:46:12]name=ofd_packets/00165540 [06:46:12]NVStorageSaveData ofd_packets/00165540 [06:46:12]File name is /storage/ofd_packets/00165540 [06:46:12]Write 301 bytes [06:46:12]NVStorageSaveData done [06:46:12]OFDSenderStorePacket done [06:46:12]KKMCreateOFDPacket done [06:46:12]NVStorageSaveData kkm_last_timestamp [06:46:12]File name is /storage/kkm_last_timestamp [06:46:12]Write 4 bytes [06:46:12]NVStorageSaveData done [06:46:12]ExternCall_PrintAddStr [06:46:12]wPrintStart [06:46:12]Write to MH i2c: 01 00 00 F5 C1 B6 [06:46:12]Write i2c OK [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: 01 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: 01 07 00 [06:46:12]MH_I2C_Read... [06:46:12]Read from MH i2c: 01 07 00 F5 C1 00 00 00 00 00 FF 0F CB [06:46:12]RasterBufferAndPrint [06:46:12]line Счет N : (1)220099 [06:46:12]line ИНН: 02508201610067 [06:46:12]line Контрольно-Кассовый Чек [06:46:12]line ПРОДАЖА [06:46:12]line ТРК (МРК, ГНК) : 23 [06:46:12]line Товар: 2710124130 [06:46:12]line Аи-92-К-5 [06:46:12]line 14.950 * 66.90 [06:46:12]line = 1000.16 [06:46:12]line НДС 12% НСП 1% [06:46:12]line > о реализуемом товаре [06:46:12]line ОКРУГЛЕНИЕ: -0.16 [06:46:12]line ИТОГО: 1000.00 [06:46:12]line Внесено: 1000.00 [06:46:12]line СДАЧА: 0.00 [06:46:12]line НСП 1% : 8.85 [06:46:12]line НДС 12% : 106.21 [06:46:12]line Наличными: 1000.00 [06:46:12]line Безнал.: 0.00 [06:46:12]line Место: АЗС № 161 "Партнер Нефть" [06:46:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:46:12]line СНО: Общий режим [06:46:12]line Чек 22 20.10.2024 06:46 [06:46:12]line Смена: 534 ФФД: 1.0 [06:46:12]line ЗНМ: 0300000104 [06:46:12]line РНМ: 0000000000091764 [06:46:12]line Версия ККМ: 001 [06:46:12]line ФМ: 0000000000871759 [06:46:12]line ФД: 165540 [06:46:12]line ФПД: 137464676784657 [06:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T064621&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165540&fm=137464676784657&tin=02508201610067®Number=0000000000091764&sum=100000 [06:46:12]OFD Sender: Processing packet 165540 [packets to send 48, broken 47] [06:46:12]ProducePacketName [06:46:12]name=ofd_packets/00165540 [06:46:12]OFD Sender: To server: pG, [06:46:12]CommunicateWithHost lk.salyk.kg:30040 [06:46:12]ConnectInit lk.salyk.kg [06:46:12]written 0, free lines is 4095 [06:46:12]Connected sock=11 [06:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 BF 07 01 9D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3D A7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 86 02 00 35 04 06 00 7D 05 FD 3A 9A 11 08 44 01 63 B4 4A AA 1D [06:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 79 0E 47 00 DC 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 31 37 35 39 10 04 04 00 A4 86 02 00 F4 03 04 00 B0 4D 14 67 B6 04 01 00 00 A6 33 71 03 F1 F7 94 48 [06:46:13]CommunicateWithHost err = 0 [06:46:13]CheckOFDResponse [06:46:13]1017 (14) - 77093643461234 [06:46:13]1041 (16) - 0000000000871759 [06:46:13]1040 (4) - 165540 [06:46:13]1012 (4) - 20.10.2024 00:24 [06:46:13]1206 (1) - 0 [06:46:13]OFD Sender: Remove packet 165540 [06:46:13]ProducePacketName [06:46:13]name=ofd_packets/00165540 [06:46:13]NVStorageDeleteData [06:46:13]Write to MH i2c: 01 00 00 20 C2 E2 [06:46:13]Write i2c OK [06:46:13]MH_I2C_Read... [06:46:13]Read from MH i2c: 01 [06:46:13]MH_I2C_Read... [06:46:13]Read from MH i2c: 01 07 00 [06:46:13]MH_I2C_Read... [06:46:13]Read from MH i2c: 01 07 00 20 C2 00 00 00 00 00 B8 0C AD [06:46:13]RasterBufferAndPrint [06:46:13]line [06:46:13]line [06:46:13]line [06:46:13]line [06:46:13]line [06:46:13]written 0, free lines is 3262 [06:46:13]MH_Cut [06:46:13]Write to MH i2c: D1 01 00 27 C2 01 BB [06:46:13]Write i2c OK [06:46:13]MH_I2C_Read... [06:46:13]Read from MH i2c: D1 [06:46:13]MH_I2C_Read... [06:46:13]Read from MH i2c: D1 01 00 [06:46:13]MH_I2C_Read... [06:46:13]Read from MH i2c: D1 01 00 27 C2 00 BA [06:46:13]Write to MH i2c: 01 00 00 28 C2 EA [06:46:13]Write i2c OK [06:46:13]MH_I2C_Read... [06:46:13]OFD Sender: No OFD packet to send [06:46:13]*** Cut start [06:46:13]*** Partial cut [06:46:13]*** CUTSNS_PIN = 1 [06:46:14]*** CUTSNS_PIN = 0 [06:46:14]*** Brake cut motor [06:46:14]Read from MH i2c: 01 [06:46:14]MH_I2C_Read... [06:46:14]*** Stop cut motor [06:46:14]*** Cut end [06:46:14]Read from MH i2c: 01 07 00 [06:46:14]MH_I2C_Read... [06:46:14]Read from MH i2c: 01 07 00 28 C2 00 00 00 00 00 FF 0F FF [06:46:14]process_action close_receipt done [06:46:14]requested_data is exist [06:46:14]produce_requested_data [06:46:14]requested_item fm.sn is exist - process it [06:46:14]wFMCommunicate request_size=4 [06:46:14]MH_SAM_APDU [06:46:14]CAPDU: 80 11 00 00 [06:46:14]Write to MH i2c: E2 08 00 29 C2 80 11 00 00 00 00 00 00 65 [06:46:14]Write i2c OK [06:46:14]MH_I2C_Read... [06:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:14]Read from MH i2c: E2 [06:46:14]MH_I2C_Read... [06:46:14]Read from MH i2c: E2 17 00 [06:46:14]MH_I2C_Read... [06:46:14]Read from MH i2c: E2 17 00 29 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [06:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:46:14]wFMCommunicate OK [06:46:14]requested_item fd.num is exist - process it [06:46:14]SAM_PROTO_GetFieldsCounters [06:46:14]wFMCommunicate request_size=4 [06:46:14]MH_SAM_APDU [06:46:14]CAPDU: 80 13 00 00 [06:46:14]Write to MH i2c: E2 08 00 2A C2 80 13 00 00 00 00 00 00 68 [06:46:14]Write i2c OK [06:46:14]MH_I2C_Read... [06:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:14]Read from MH i2c: E2 [06:46:14]MH_I2C_Read... [06:46:14]Read from MH i2c: E2 62 00 [06:46:14]MH_I2C_Read... [06:46:14]Read from MH i2c: E2 62 00 2A C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [06:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:14]wFMCommunicate OK [06:46:14]SAM_PROTO_GetFieldsCounters done [06:46:14]requested_item shift.num is exist - process it [06:46:14]requested_item shift.opened is exist - process it [06:46:14]req_shift_opened [06:46:14]FM_GetShiftState [06:46:14]SAM_PROTO_GetShiftState [06:46:14]wFMCommunicate request_size=4 [06:46:14]MH_SAM_APDU [06:46:14]CAPDU: 80 13 01 00 [06:46:14]Write to MH i2c: E2 08 00 2B C2 80 13 01 00 00 00 00 00 6A [06:46:14]Write i2c OK [06:46:14]MH_I2C_Read... [06:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:14]Read from MH i2c: E2 [06:46:14]MH_I2C_Read... [06:46:14]Read from MH i2c: E2 0E 00 [06:46:14]MH_I2C_Read... [06:46:14]Read from MH i2c: E2 0E 00 2B C2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B2 [06:46:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:46:14]wFMCommunicate OK [06:46:14]SAM_PROTO_GetShiftState done [06:46:14]FM_GetShiftState done [06:46:14]req_shift_opened done [06:46:14]requested_item shift.open_date is exist - process it [06:46:14]req_shift_open_date [06:46:14]req_shift_open_date done [06:46:14]produce_requested_data done [06:46:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165540,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:46:14]process_action_free close_receipt [06:46:14]json_value_free [06:46:14]json_value_free done [06:46:14]process_json_proto returns [06:46:14]Send response to host [06:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165540,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:46:14]free response buf [06:46:14]execute_script done [06:46:14]execute_script returns [06:46:14]free content buf [06:46:14]Sock 9.Close socket [06:46:14]Sock 9.Thread stoped [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:05]accept exits with 7 [06:48:05]New connection [06:48:05]New thread 3066920292 created [06:48:05]Thread 3066776932 joined [06:48:05]Waiting for new connection... [06:48:05] Sock 7.Parse request [06:48:05]Sock 7.Check first char [06:48:05]Sock 7.First char is OK [06:48:05]request: POST /json_proto HTTP/1.0 [06:48:05]Method: POST [06:48:05]URL: /json_proto [06:48:05]Method is POST - this is cgi request [06:48:05]url: /json_proto [06:48:05]query_string will be loaded in cgi processing [06:48:05]execute_cgi json_proto POST (null) [06:48:05]execute_cgi path=json_proto method=POST [06:48:05]POST find Content-Length [06:48:05]Host: 172.17.53.195:8080 [06:48:05]Content-Length: 682 [06:48:05]Content-Type: application/json [06:48:05] [06:48:05]POST finish read [06:48:05]Found Content-Length = 682 [06:48:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:05]execute_script... [06:48: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)220100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:05]POST & json_proto [06:48:05]process_json_proto [06:48:05]json parsed OK: [06:48:05]protocol is kg_v1.0 [06:48:05]action value=close_receipt [06:48:05]process_action close_receipt [06:48:05]cmd_close_receipt [06:48:05]MH_GetDate [06:48:05]Write to MH i2c: F0 00 00 2C C2 DD [06:48:05]Write i2c OK [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: F0 [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: F0 09 00 [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: F0 09 00 2C C2 00 B0 A7 14 67 21 48 4A 65 D0 [06:48:05]GetLastDocTimeStamp 1729406781 [06:48:05]current date 1729406896 [06:48:05]FM_GetShiftState [06:48:05]SAM_PROTO_GetShiftState [06:48:05]wFMCommunicate request_size=4 [06:48:05]MH_SAM_APDU [06:48:05]CAPDU: 80 13 01 00 [06:48:05]Write to MH i2c: E2 08 00 2D C2 80 13 01 00 00 00 00 00 6C [06:48:05]Write i2c OK [06:48:05]MH_I2C_Read... [06:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:05]Read from MH i2c: E2 [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: E2 0E 00 [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: E2 0E 00 2D C2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B4 [06:48:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:48:05]wFMCommunicate OK [06:48:05]SAM_PROTO_GetShiftState done [06:48:05]FM_GetShiftState done [06:48:05]opened in 1729384561 [06:48:05]opened+sec_in_day 1729470961 [06:48:05]quantity*price = 100015 [06:48:05]sum+1 = 100017 [06:48: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 23 20.10.2024 06:48 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165541 ФПД: 134468022388852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T064816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165541&fm=134468022388852&tin=02508201610067®Number=0000000000091764&sum=100000 [06:48:06]StoreToDocumentArchive [06:48:06]shift 534 fd 165541 [06:48:06]save to /storage/0534/doc_00165541 [06:48:06]save last doc name /storage/0534/doc_00165541 to /storage/kkm_last_doc_name [06:48:06]save OK [06:48:06]Clear old archive folders... [06:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:06]tlvbuf is 016AB4C0 [06:48:06]SAM_PROTO_ClearQueue [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 09 00 00 [06:48:06]Write to MH i2c: E2 08 00 3A C2 80 09 00 00 00 00 00 00 6E [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 3A C2 00 90 00 70 [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]SAM_PROTO_ClearQueue done [06:48:06]KKMCreateOFDPacket [06:48:06]OFDProtocolAddRootSTLVToBuf [06:48:06]FM_MakeSignedData [06:48:06]FM_MakeSignedData [06:48:06]SAM_PROTO_SignData [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 01 02 [06:48:06]Write to MH i2c: E2 08 00 3B C2 80 0D 01 02 00 00 00 00 76 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 3B C2 00 90 00 71 [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]wFMCommunicate request_size=255 [06:48:06]MH_SAM_APDU [06:48: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 B0 A7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 86 02 00 35 04 06 00 7A [06:48:06]Write to MH i2c: E2 02 01 3C C2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 B0 A7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 86 02 00 35 04 06 00 7A 00 00 AE [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:07]Read from MH i2c: E2 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 03 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 03 00 3C C2 00 90 00 72 [06:48:07]RAPDU: 90 00 [06:48:07]wFMCommunicate OK [06:48:07]wFMCommunicate request_size=10 [06:48:07]MH_SAM_APDU [06:48:07]CAPDU: 80 0D 02 02 05 4C 46 B5 48 74 [06:48:07]Write to MH i2c: E2 0D 00 3D C2 80 0D 02 02 05 00 4C 46 B5 48 74 00 00 86 [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:07]Read from MH i2c: E2 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 03 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 03 00 3D C2 00 90 00 73 [06:48:07]RAPDU: 90 00 [06:48:07]wFMCommunicate OK [06:48:07]wFMCommunicate request_size=4 [06:48:07]MH_SAM_APDU [06:48:07]CAPDU: 80 0D 03 02 [06:48:07]Write to MH i2c: E2 08 00 3E C2 80 0D 03 02 00 00 00 00 7B [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:07]Read from MH i2c: E2 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 0B 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 0B 00 3E C2 00 CE D0 D0 16 A9 27 88 1A 90 00 72 [06:48:07]RAPDU: CE D0 D0 16 A9 27 88 1A 90 00 [06:48:07]wFMCommunicate OK [06:48:07]SAM_PROTO_SignData done [06:48:07]FM_MakeSignedData done [06:48:07]CreateOFDProtocolMessage [06:48:07]wFMCommunicate request_size=4 [06:48:07]MH_SAM_APDU [06:48:07]CAPDU: 80 11 00 00 [06:48:07]Write to MH i2c: E2 08 00 3F C2 80 11 00 00 00 00 00 00 7B [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:07]Read from MH i2c: E2 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 17 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 17 00 3F C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [06:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:48:07]wFMCommunicate OK [06:48:07]CreateOFDProtocolMessage done [06:48:07]OFDSenderStorePacket 165541 [06:48:07]StoreOFDPacket docnum=165541 [06:48:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 77 07 01 C2 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 B0 A7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 86 02 00 35 04 06 00 7A 4C 46 B5 48 74 CE D0 D0 16 A9 27 88 1A [06:48:07]CheckFolder [06:48:07]dirname=/storage/ofd_packets [06:48:07]CheckFolder done [06:48:07]ProducePacketName [06:48:07]name=ofd_packets/00165541 [06:48:07]NVStorageSaveData ofd_packets/00165541 [06:48:07]File name is /storage/ofd_packets/00165541 [06:48:07]Write 301 bytes [06:48:07]NVStorageSaveData done [06:48:07]OFDSenderStorePacket done [06:48:07]KKMCreateOFDPacket done [06:48:07]NVStorageSaveData kkm_last_timestamp [06:48:07]File name is /storage/kkm_last_timestamp [06:48:07]Write 4 bytes [06:48:07]NVStorageSaveData done [06:48:07]ExternCall_PrintAddStr [06:48:07]wPrintStart [06:48:07]Write to MH i2c: 01 00 00 40 C2 02 [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 07 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 07 00 40 C2 00 00 00 00 00 FF 0F 17 [06:48:07]RasterBufferAndPrint [06:48:07]line Счет N : (1)220100 [06:48:07]line ИНН: 02508201610067 [06:48:07]line Контрольно-Кассовый Чек [06:48:07]line ПРОДАЖА [06:48:07]line ТРК (МРК, ГНК) : 13 [06:48:07]line Товар: 2710124130 [06:48:07]line Аи-92-К-5 [06:48:07]line 14.950 * 66.90 [06:48:07]line = 1000.16 [06:48:07]line НДС 12% НСП 1% [06:48:07]line > о реализуемом товаре [06:48:07]line ОКРУГЛЕНИЕ: -0.16 [06:48:07]line ИТОГО: 1000.00 [06:48:07]line Внесено: 1000.00 [06:48:07]line СДАЧА: 0.00 [06:48:07]line НСП 1% : 8.85 [06:48:07]line НДС 12% : 106.21 [06:48:07]line Наличными: 1000.00 [06:48:07]line Безнал.: 0.00 [06:48:07]line Место: АЗС № 161 "Партнер Нефть" [06:48:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:48:07]line СНО: Общий режим [06:48:07]line Чек 23 20.10.2024 06:48 [06:48:07]line Смена: 534 ФФД: 1.0 [06:48:07]line ЗНМ: 0300000104 [06:48:07]line РНМ: 0000000000091764 [06:48:07]line Версия ККМ: 001 [06:48:07]line ФМ: 0000000000871759 [06:48:07]line ФД: 165541 [06:48:07]line ФПД: 134468022388852 [06:48:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T064816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165541&fm=134468022388852&tin=02508201610067®Number=0000000000091764&sum=100000 [06:48:07]OFD Sender: Processing packet 165541 [packets to send 48, broken 47] [06:48:07]ProducePacketName [06:48:07]name=ofd_packets/00165541 [06:48:07]OFD Sender: To server: pG, [06:48:07]CommunicateWithHost lk.salyk.kg:30040 [06:48:07]ConnectInit lk.salyk.kg [06:48:07]written 0, free lines is 4095 [06:48:07]Connected sock=10 [06:48:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 77 07 01 C2 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 B0 A7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 86 02 00 35 04 06 00 7A 4C 46 B5 48 74 CE D0 D0 16 A9 27 88 1A [06:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9E 9B 47 00 7B 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 31 37 35 39 10 04 04 00 A5 86 02 00 F4 03 04 00 23 4E 14 67 B6 04 01 00 00 0A 6F 39 7C 03 13 D8 AD [06:48:08]CommunicateWithHost err = 0 [06:48:08]CheckOFDResponse [06:48:08]1017 (14) - 77093643461234 [06:48:08]1041 (16) - 0000000000871759 [06:48:08]1040 (4) - 165541 [06:48:08]1012 (4) - 20.10.2024 00:26 [06:48:08]1206 (1) - 0 [06:48:08]OFD Sender: Remove packet 165541 [06:48:08]ProducePacketName [06:48:08]name=ofd_packets/00165541 [06:48:08]NVStorageDeleteData [06:48:08]Write to MH i2c: 01 00 00 6B C2 2D [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: 01 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: 01 07 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: 01 07 00 6B C2 00 00 00 00 00 BB 0C FB [06:48:08]RasterBufferAndPrint [06:48:08]line [06:48:08]line [06:48:08]line [06:48:08]line [06:48:08]line [06:48:08]written 0, free lines is 3267 [06:48:08]MH_Cut [06:48:08]Write to MH i2c: D1 01 00 72 C2 01 06 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: D1 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: D1 01 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: D1 01 00 72 C2 00 05 [06:48:08]Write to MH i2c: 01 00 00 73 C2 35 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]OFD Sender: No OFD packet to send [06:48:09]*** Cut start [06:48:09]*** Partial cut [06:48:09]*** CUTSNS_PIN = 1 [06:48:09]*** CUTSNS_PIN = 0 [06:48:09]*** Brake cut motor [06:48:09]Read from MH i2c: 01 [06:48:09]MH_I2C_Read... [06:48:09]*** Stop cut motor [06:48:09]*** Cut end [06:48:09]Read from MH i2c: 01 07 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: 01 07 00 73 C2 00 00 00 00 00 FF 0F 4A [06:48:09]process_action close_receipt done [06:48:09]requested_data is exist [06:48:09]produce_requested_data [06:48:09]requested_item fm.sn is exist - process it [06:48:09]wFMCommunicate request_size=4 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 11 00 00 [06:48:09]Write to MH i2c: E2 08 00 74 C2 80 11 00 00 00 00 00 00 B0 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 17 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 17 00 74 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [06:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:48:09]wFMCommunicate OK [06:48:09]requested_item fd.num is exist - process it [06:48:09]SAM_PROTO_GetFieldsCounters [06:48:09]wFMCommunicate request_size=4 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 13 00 00 [06:48:09]Write to MH i2c: E2 08 00 75 C2 80 13 00 00 00 00 00 00 B3 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 62 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 62 00 75 C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [06:48:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:48:09]wFMCommunicate OK [06:48:09]SAM_PROTO_GetFieldsCounters done [06:48:09]requested_item shift.num is exist - process it [06:48:09]requested_item shift.opened is exist - process it [06:48:09]req_shift_opened [06:48:09]FM_GetShiftState [06:48:09]SAM_PROTO_GetShiftState [06:48:09]wFMCommunicate request_size=4 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 13 01 00 [06:48:09]Write to MH i2c: E2 08 00 76 C2 80 13 01 00 00 00 00 00 B5 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 0E 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 0E 00 76 C2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FD [06:48:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [06:48:09]wFMCommunicate OK [06:48:09]SAM_PROTO_GetShiftState done [06:48:09]FM_GetShiftState done [06:48:09]req_shift_opened done [06:48:09]requested_item shift.open_date is exist - process it [06:48:09]req_shift_open_date [06:48:09]req_shift_open_date done [06:48:09]produce_requested_data done [06:48:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165541,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [06:48:09]process_action_free close_receipt [06:48:09]json_value_free [06:48:09]json_value_free done [06:48:09]process_json_proto returns [06:48:09]Send response to host [06:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165541,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [06:48:09]free response buf [06:48:09]execute_script done [06:48:09]execute_script returns [06:48:09]free content buf [06:48:09]Sock 7.Close socket [06:48:09]Sock 7.Thread stoped [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:02]accept exits with 9 [07:01:02]New connection [07:01:02]New thread 3066776932 created [07:01:02]Thread 3066920292 joined [07:01:02]Waiting for new connection... [07:01:02] Sock 9.Parse request [07:01:02]Sock 9.Check first char [07:01:02]Sock 9.First char is OK [07:01:02]request: POST /json_proto HTTP/1.0 [07:01:02]Method: POST [07:01:02]URL: /json_proto [07:01:02]Method is POST - this is cgi request [07:01:02]url: /json_proto [07:01:02]query_string will be loaded in cgi processing [07:01:02]execute_cgi json_proto POST (null) [07:01:02]execute_cgi path=json_proto method=POST [07:01:02]POST find Content-Length [07:01:02]Host: 172.17.53.195:8080 [07:01:02]Content-Length: 674 [07:01:02]Content-Type: application/json [07:01:02] [07:01:02]POST finish read [07:01:02]Found Content-Length = 674 [07:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220101", "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" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:02]execute_script... [07:01: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)220101", "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" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:02]POST & json_proto [07:01:02]process_json_proto [07:01:02]json parsed OK: [07:01:02]protocol is kg_v1.0 [07:01:02]action value=close_receipt [07:01:02]process_action close_receipt [07:01:02]cmd_close_receipt [07:01:02]MH_GetDate [07:01:02]Write to MH i2c: F0 00 00 77 C2 28 [07:01:02]Write i2c OK [07:01:02]MH_I2C_Read... [07:01:02]Read from MH i2c: F0 [07:01:02]MH_I2C_Read... [07:01:02]Read from MH i2c: F0 09 00 [07:01:02]MH_I2C_Read... [07:01:02]Read from MH i2c: F0 09 00 77 C2 00 B9 AA 14 67 21 48 4A 65 27 [07:01:02]GetLastDocTimeStamp 1729406896 [07:01:02]current date 1729407673 [07:01:02]FM_GetShiftState [07:01:02]SAM_PROTO_GetShiftState [07:01:02]wFMCommunicate request_size=4 [07:01:02]MH_SAM_APDU [07:01:02]CAPDU: 80 13 01 00 [07:01:02]Write to MH i2c: E2 08 00 78 C2 80 13 01 00 00 00 00 00 B7 [07:01:02]Write i2c OK [07:01:02]MH_I2C_Read... [07:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:02]Read from MH i2c: E2 [07:01:02]MH_I2C_Read... [07:01:02]Read from MH i2c: E2 0E 00 [07:01:02]MH_I2C_Read... [07:01:02]Read from MH i2c: E2 0E 00 78 C2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FF [07:01:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:01:02]wFMCommunicate OK [07:01:02]SAM_PROTO_GetShiftState done [07:01:02]FM_GetShiftState done [07:01:02]opened in 1729384561 [07:01:02]opened+sec_in_day 1729470961 [07:01:02]quantity*price = 49987 [07:01:02]sum+1 = 49988 [07:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 24 20.10.2024 07:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165542 ФПД: 273316978029243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070113&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165542&fm=273316978029243&tin=02508201610067®Number=0000000000091764&sum=49900 [07:01:03]StoreToDocumentArchive [07:01:03]shift 534 fd 165542 [07:01:03]save to /storage/0534/doc_00165542 [07:01:03]save last doc name /storage/0534/doc_00165542 to /storage/kkm_last_doc_name [07:01:03]save OK [07:01:03]Clear old archive folders... [07:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:01:03]tlvbuf is 01599EF0 [07:01:03]SAM_PROTO_ClearQueue [07:01:03]wFMCommunicate request_size=4 [07:01:03]MH_SAM_APDU [07:01:03]CAPDU: 80 09 00 00 [07:01:03]Write to MH i2c: E2 08 00 85 C2 80 09 00 00 00 00 00 00 B9 [07:01:03]Write i2c OK [07:01:03]MH_I2C_Read... [07:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:03]Read from MH i2c: E2 [07:01:03]MH_I2C_Read... [07:01:03]Read from MH i2c: E2 03 00 [07:01:03]MH_I2C_Read... [07:01:03]Read from MH i2c: E2 03 00 85 C2 00 90 00 BB [07:01:03]RAPDU: 90 00 [07:01:03]wFMCommunicate OK [07:01:03]SAM_PROTO_ClearQueue done [07:01:03]KKMCreateOFDPacket [07:01:03]OFDProtocolAddRootSTLVToBuf [07:01:03]FM_MakeSignedData [07:01:03]FM_MakeSignedData [07:01:03]SAM_PROTO_SignData [07:01:03]wFMCommunicate request_size=4 [07:01:03]MH_SAM_APDU [07:01:03]CAPDU: 80 0D 01 02 [07:01:03]Write to MH i2c: E2 08 00 86 C2 80 0D 01 02 00 00 00 00 C1 [07:01:03]Write i2c OK [07:01:03]MH_I2C_Read... [07:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:03]Read from MH i2c: E2 [07:01:03]MH_I2C_Read... [07:01:03]Read from MH i2c: E2 03 00 [07:01:03]MH_I2C_Read... [07:01:03]Read from MH i2c: E2 03 00 86 C2 00 90 00 BC [07:01:03]RAPDU: 90 00 [07:01:03]wFMCommunicate OK [07:01:03]wFMCommunicate request_size=255 [07:01:03]MH_SAM_APDU [07:01: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 B9 AA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 86 02 00 35 04 06 00 F8 94 91 62 [07:01:03]Write to MH i2c: E2 02 01 87 C2 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 B9 AA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 86 02 00 35 04 06 00 F8 94 91 62 00 00 67 [07:01:03]Write i2c OK [07:01:03]MH_I2C_Read... [07:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:03]Read from MH i2c: E2 [07:01:03]MH_I2C_Read... [07:01:03]Read from MH i2c: E2 03 00 [07:01:03]MH_I2C_Read... [07:01:03]Read from MH i2c: E2 03 00 87 C2 00 90 00 BD [07:01:03]RAPDU: 90 00 [07:01:03]wFMCommunicate OK [07:01:03]wFMCommunicate request_size=7 [07:01:03]MH_SAM_APDU [07:01:03]CAPDU: 80 0D 02 02 02 F2 BB [07:01:03]Write to MH i2c: E2 0A 00 88 C2 80 0D 02 02 02 00 F2 BB 00 00 75 [07:01:03]Write i2c OK [07:01:03]MH_I2C_Read... [07:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:03]Read from MH i2c: E2 [07:01:03]MH_I2C_Read... [07:01:03]Read from MH i2c: E2 03 00 [07:01:03]MH_I2C_Read... [07:01:03]Read from MH i2c: E2 03 00 88 C2 00 90 00 BE [07:01:03]RAPDU: 90 00 [07:01:03]wFMCommunicate OK [07:01:03]wFMCommunicate request_size=4 [07:01:03]MH_SAM_APDU [07:01:03]CAPDU: 80 0D 03 02 [07:01:03]Write to MH i2c: E2 08 00 89 C2 80 0D 03 02 00 00 00 00 C6 [07:01:03]Write i2c OK [07:01:03]MH_I2C_Read... [07:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:04]Read from MH i2c: E2 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: E2 0B 00 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: E2 0B 00 89 C2 00 00 55 91 78 D6 18 9F 47 90 00 F9 [07:01:04]RAPDU: 00 55 91 78 D6 18 9F 47 90 00 [07:01:04]wFMCommunicate OK [07:01:04]SAM_PROTO_SignData done [07:01:04]FM_MakeSignedData done [07:01:04]CreateOFDProtocolMessage [07:01:04]wFMCommunicate request_size=4 [07:01:04]MH_SAM_APDU [07:01:04]CAPDU: 80 11 00 00 [07:01:04]Write to MH i2c: E2 08 00 8A C2 80 11 00 00 00 00 00 00 C6 [07:01:04]Write i2c OK [07:01:04]MH_I2C_Read... [07:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:04]Read from MH i2c: E2 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: E2 17 00 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: E2 17 00 8A C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [07:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:01:04]wFMCommunicate OK [07:01:04]CreateOFDProtocolMessage done [07:01:04]OFDSenderStorePacket 165542 [07:01:04]StoreOFDPacket docnum=165542 [07:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B3 1F 04 01 CB B9 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 B9 AA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 86 02 00 35 04 06 00 F8 94 91 62 F2 BB 00 55 91 78 D6 18 9F 47 [07:01:04]CheckFolder [07:01:04]dirname=/storage/ofd_packets [07:01:04]CheckFolder done [07:01:04]ProducePacketName [07:01:04]name=ofd_packets/00165542 [07:01:04]NVStorageSaveData ofd_packets/00165542 [07:01:04]File name is /storage/ofd_packets/00165542 [07:01:04]Write 298 bytes [07:01:04]NVStorageSaveData done [07:01:04]OFDSenderStorePacket done [07:01:04]KKMCreateOFDPacket done [07:01:04]NVStorageSaveData kkm_last_timestamp [07:01:04]File name is /storage/kkm_last_timestamp [07:01:04]Write 4 bytes [07:01:04]NVStorageSaveData done [07:01:04]ExternCall_PrintAddStr [07:01:04]wPrintStart [07:01:04]Write to MH i2c: 01 00 00 8B C2 4D [07:01:04]Write i2c OK [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: 01 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: 01 07 00 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: 01 07 00 8B C2 00 00 00 00 00 FF 0F 62 [07:01:04]RasterBufferAndPrint [07:01:04]line Счет N : (1)220101 [07:01:04]line ИНН: 02508201610067 [07:01:04]line Контрольно-Кассовый Чек [07:01:04]line ПРОДАЖА [07:01:04]line ТРК (МРК, ГНК) : 11 [07:01:04]line Товар: 2710194210 [07:01:04]line ДТ-К-5 [07:01:04]line 6.560 * 76.20 [07:01:04]line = 499.87 [07:01:04]line НДС 12% НСП 1% [07:01:04]line > о реализуемом товаре [07:01:04]line ОКРУГЛЕНИЕ: -0.87 [07:01:04]line ИТОГО: 499.00 [07:01:04]line Внесено: 500.00 [07:01:04]line СДАЧА: 1.00 [07:01:04]line НСП 1% : 4.42 [07:01:04]line НДС 12% : 53.08 [07:01:04]line Наличными: 499.00 [07:01:04]line Безнал.: 0.00 [07:01:04]line Место: АЗС № 161 "Партнер Нефть" [07:01:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:01:04]line СНО: Общий режим [07:01:04]line Чек 24 20.10.2024 07:01 [07:01:04]line Смена: 534 ФФД: 1.0 [07:01:04]line ЗНМ: 0300000104 [07:01:04]line РНМ: 0000000000091764 [07:01:04]line Версия ККМ: 001 [07:01:04]line ФМ: 0000000000871759 [07:01:04]line ФД: 165542 [07:01:04]line ФПД: 273316978029243 [07:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T070113&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165542&fm=273316978029243&tin=02508201610067®Number=0000000000091764&sum=49900 [07:01:04]OFD Sender: Processing packet 165542 [packets to send 48, broken 47] [07:01:04]ProducePacketName [07:01:04]name=ofd_packets/00165542 [07:01:04]OFD Sender: To server: pG, [07:01:04]CommunicateWithHost lk.salyk.kg:30040 [07:01:04]ConnectInit lk.salyk.kg [07:01:04]written 0, free lines is 4095 [07:01:04]Connected sock=10 [07:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B3 1F 04 01 CB B9 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 B9 AA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 86 02 00 35 04 06 00 F8 94 91 62 F2 BB 00 55 91 78 D6 18 9F 47 [07:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C0 A3 47 00 D5 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 86 02 00 F4 03 04 00 2C 51 14 67 B6 04 01 00 00 3D CA 8A 6A 59 9F AA 73 [07:01:04]CommunicateWithHost err = 0 [07:01:04]CheckOFDResponse [07:01:04]1017 (14) - 77093643461234 [07:01:04]1041 (16) - 0000000000871759 [07:01:04]1040 (4) - 165542 [07:01:04]1012 (4) - 20.10.2024 00:39 [07:01:04]1206 (1) - 0 [07:01:04]OFD Sender: Remove packet 165542 [07:01:04]ProducePacketName [07:01:04]name=ofd_packets/00165542 [07:01:04]NVStorageDeleteData [07:01:04]Write to MH i2c: 01 00 00 B6 C2 78 [07:01:04]Write i2c OK [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: 01 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: 01 07 00 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: 01 07 00 B6 C2 00 00 00 00 00 B6 0C 41 [07:01:04]RasterBufferAndPrint [07:01:04]line [07:01:04]line [07:01:04]line [07:01:04]line [07:01:04]line [07:01:04]written 0, free lines is 3262 [07:01:04]MH_Cut [07:01:04]Write to MH i2c: D1 01 00 BD C2 01 51 [07:01:04]Write i2c OK [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: D1 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: D1 01 00 [07:01:04]MH_I2C_Read... [07:01:04]Read from MH i2c: D1 01 00 BD C2 00 50 [07:01:04]Write to MH i2c: 01 00 00 BE C2 80 [07:01:04]Write i2c OK [07:01:04]MH_I2C_Read... [07:01:05]OFD Sender: No OFD packet to send [07:01:05]*** Cut start [07:01:05]*** Partial cut [07:01:05]*** CUTSNS_PIN = 1 [07:01:05]*** CUTSNS_PIN = 0 [07:01:06]*** Brake cut motor [07:01:06]Read from MH i2c: 01 [07:01:06]MH_I2C_Read... [07:01:06]*** Stop cut motor [07:01:06]*** Cut end [07:01:06]Read from MH i2c: 01 07 00 [07:01:06]MH_I2C_Read... [07:01:06]Read from MH i2c: 01 07 00 BE C2 00 00 00 00 00 FF 0F 95 [07:01:06]process_action close_receipt done [07:01:06]requested_data is exist [07:01:06]produce_requested_data [07:01:06]requested_item fm.sn is exist - process it [07:01:06]wFMCommunicate request_size=4 [07:01:06]MH_SAM_APDU [07:01:06]CAPDU: 80 11 00 00 [07:01:06]Write to MH i2c: E2 08 00 BF C2 80 11 00 00 00 00 00 00 FB [07:01:06]Write i2c OK [07:01:06]MH_I2C_Read... [07:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:06]Read from MH i2c: E2 [07:01:06]MH_I2C_Read... [07:01:06]Read from MH i2c: E2 17 00 [07:01:06]MH_I2C_Read... [07:01:06]Read from MH i2c: E2 17 00 BF C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [07:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:01:06]wFMCommunicate OK [07:01:06]requested_item fd.num is exist - process it [07:01:06]SAM_PROTO_GetFieldsCounters [07:01:06]wFMCommunicate request_size=4 [07:01:06]MH_SAM_APDU [07:01:06]CAPDU: 80 13 00 00 [07:01:06]Write to MH i2c: E2 08 00 C0 C2 80 13 00 00 00 00 00 00 FE [07:01:06]Write i2c OK [07:01:06]MH_I2C_Read... [07:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:06]Read from MH i2c: E2 [07:01:06]MH_I2C_Read... [07:01:06]Read from MH i2c: E2 62 00 [07:01:06]MH_I2C_Read... [07:01:06]Read from MH i2c: E2 62 00 C0 C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 86 02 00 0E 04 04 00 16 02 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 B4 [07:01:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 86 02 00 0E 04 04 00 16 02 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 [07:01:06]wFMCommunicate OK [07:01:06]SAM_PROTO_GetFieldsCounters done [07:01:06]requested_item shift.num is exist - process it [07:01:06]requested_item shift.opened is exist - process it [07:01:06]req_shift_opened [07:01:06]FM_GetShiftState [07:01:06]SAM_PROTO_GetShiftState [07:01:06]wFMCommunicate request_size=4 [07:01:06]MH_SAM_APDU [07:01:06]CAPDU: 80 13 01 00 [07:01:06]Write to MH i2c: E2 08 00 C1 C2 80 13 01 00 00 00 00 00 00 [07:01:06]Write i2c OK [07:01:06]MH_I2C_Read... [07:01:06]Read from MH i2c: E2 [07:01:06]MH_I2C_Read... [07:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:06]Read from MH i2c: E2 0E 00 [07:01:06]MH_I2C_Read... [07:01:06]Read from MH i2c: E2 0E 00 C1 C2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 48 [07:01:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:01:06]wFMCommunicate OK [07:01:06]SAM_PROTO_GetShiftState done [07:01:06]FM_GetShiftState done [07:01:06]req_shift_opened done [07:01:06]requested_item shift.open_date is exist - process it [07:01:06]req_shift_open_date [07:01:06]req_shift_open_date done [07:01:06]produce_requested_data done [07:01:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165542,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:01:06]process_action_free close_receipt [07:01:06]json_value_free [07:01:06]json_value_free done [07:01:06]process_json_proto returns [07:01:06]Send response to host [07:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165542,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:01:06]free response buf [07:01:06]execute_script done [07:01:06]execute_script returns [07:01:06]free content buf [07:01:06]Sock 9.Close socket [07:01:06]Sock 9.Thread stoped [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:11:58]accept exits with 7 [07:11:58]New connection [07:11:58]New thread 3066920292 created [07:11:58]Thread 3066776932 joined [07:11:58]Waiting for new connection... [07:11:58] Sock 7.Parse request [07:11:58]Sock 7.Check first char [07:11:58]Sock 7.First char is OK [07:11:58]request: POST /json_proto HTTP/1.0 [07:11:58]Method: POST [07:11:58]URL: /json_proto [07:11:58]Method is POST - this is cgi request [07:11:58]url: /json_proto [07:11:58]query_string will be loaded in cgi processing [07:11:58]execute_cgi json_proto POST (null) [07:11:58]execute_cgi path=json_proto method=POST [07:11:58]POST find Content-Length [07:11:58]Host: 172.17.53.195:8080 [07:11:58]Content-Length: 679 [07:11:58]Content-Type: application/json [07:11:58] [07:11:58]POST finish read [07:11:58]Found Content-Length = 679 [07:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220102", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [07:11:58]execute_script... [07:11: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)220102", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [07:11:58]POST & json_proto [07:11:58]process_json_proto [07:11:58]json parsed OK: [07:11:58]protocol is kg_v1.0 [07:11:58]action value=close_receipt [07:11:58]process_action close_receipt [07:11:58]cmd_close_receipt [07:11:58]MH_GetDate [07:11:58]Write to MH i2c: F0 00 00 C2 C2 73 [07:11:58]Write i2c OK [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: F0 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: F0 09 00 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: F0 09 00 C2 C2 00 49 AD 14 67 21 48 4A 65 05 [07:11:58]GetLastDocTimeStamp 1729407673 [07:11:58]current date 1729408329 [07:11:58]FM_GetShiftState [07:11:58]SAM_PROTO_GetShiftState [07:11:58]wFMCommunicate request_size=4 [07:11:58]MH_SAM_APDU [07:11:58]CAPDU: 80 13 01 00 [07:11:58]Write to MH i2c: E2 08 00 C3 C2 80 13 01 00 00 00 00 00 02 [07:11:58]Write i2c OK [07:11:58]MH_I2C_Read... [07:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:58]Read from MH i2c: E2 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: E2 0E 00 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: E2 0E 00 C3 C2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4A [07:11:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:11:58]wFMCommunicate OK [07:11:58]SAM_PROTO_GetShiftState done [07:11:58]FM_GetShiftState done [07:11:58]opened in 1729384561 [07:11:58]opened+sec_in_day 1729470961 [07:11:58]quantity*price = 200025 [07:11:58]sum+1 = 200026 [07:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 25 20.10.2024 07:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165543 ФПД: 275110089356948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165543&fm=275110089356948&tin=02508201610067®Number=0000000000091764&sum=200000 [07:11:59]StoreToDocumentArchive [07:11:59]shift 534 fd 165543 [07:11:59]save to /storage/0534/doc_00165543 [07:11:59]save last doc name /storage/0534/doc_00165543 to /storage/kkm_last_doc_name [07:11:59]save OK [07:11:59]Clear old archive folders... [07:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:11:59]tlvbuf is 015128C0 [07:11:59]SAM_PROTO_ClearQueue [07:11:59]wFMCommunicate request_size=4 [07:11:59]MH_SAM_APDU [07:11:59]CAPDU: 80 09 00 00 [07:11:59]Write to MH i2c: E2 08 00 D0 C2 80 09 00 00 00 00 00 00 04 [07:11:59]Write i2c OK [07:11:59]MH_I2C_Read... [07:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:00]Read from MH i2c: E2 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 03 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 03 00 D0 C2 00 90 00 06 [07:12:00]RAPDU: 90 00 [07:12:00]wFMCommunicate OK [07:12:00]SAM_PROTO_ClearQueue done [07:12:00]KKMCreateOFDPacket [07:12:00]OFDProtocolAddRootSTLVToBuf [07:12:00]FM_MakeSignedData [07:12:00]FM_MakeSignedData [07:12:00]SAM_PROTO_SignData [07:12:00]wFMCommunicate request_size=4 [07:12:00]MH_SAM_APDU [07:12:00]CAPDU: 80 0D 01 02 [07:12:00]Write to MH i2c: E2 08 00 D1 C2 80 0D 01 02 00 00 00 00 0C [07:12:00]Write i2c OK [07:12:00]MH_I2C_Read... [07:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:00]Read from MH i2c: E2 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 03 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 03 00 D1 C2 00 90 00 07 [07:12:00]RAPDU: 90 00 [07:12:00]wFMCommunicate OK [07:12:00]wFMCommunicate request_size=255 [07:12:00]MH_SAM_APDU [07:12: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 19 00 00 00 F4 03 04 00 49 AD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 86 02 00 35 04 06 00 FA 36 0F 26 [07:12:00]Write to MH i2c: E2 02 01 D2 C2 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 19 00 00 00 F4 03 04 00 49 AD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 86 02 00 35 04 06 00 FA 36 0F 26 00 00 BC [07:12:00]Write i2c OK [07:12:00]MH_I2C_Read... [07:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:00]Read from MH i2c: E2 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 03 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 03 00 D2 C2 00 90 00 08 [07:12:00]RAPDU: 90 00 [07:12:00]wFMCommunicate OK [07:12:00]wFMCommunicate request_size=7 [07:12:00]MH_SAM_APDU [07:12:00]CAPDU: 80 0D 02 02 02 76 94 [07:12:00]Write to MH i2c: E2 0A 00 D3 C2 80 0D 02 02 02 00 76 94 00 00 1D [07:12:00]Write i2c OK [07:12:00]MH_I2C_Read... [07:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:00]Read from MH i2c: E2 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 03 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 03 00 D3 C2 00 90 00 09 [07:12:00]RAPDU: 90 00 [07:12:00]wFMCommunicate OK [07:12:00]wFMCommunicate request_size=4 [07:12:00]MH_SAM_APDU [07:12:00]CAPDU: 80 0D 03 02 [07:12:00]Write to MH i2c: E2 08 00 D4 C2 80 0D 03 02 00 00 00 00 11 [07:12:00]Write i2c OK [07:12:00]MH_I2C_Read... [07:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:00]Read from MH i2c: E2 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 0B 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 0B 00 D4 C2 00 92 D7 CD 68 F3 4A 23 25 90 00 35 [07:12:00]RAPDU: 92 D7 CD 68 F3 4A 23 25 90 00 [07:12:00]wFMCommunicate OK [07:12:00]SAM_PROTO_SignData done [07:12:00]FM_MakeSignedData done [07:12:00]CreateOFDProtocolMessage [07:12:00]wFMCommunicate request_size=4 [07:12:00]MH_SAM_APDU [07:12:00]CAPDU: 80 11 00 00 [07:12:00]Write to MH i2c: E2 08 00 D5 C2 80 11 00 00 00 00 00 00 11 [07:12:00]Write i2c OK [07:12:00]MH_I2C_Read... [07:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:00]Read from MH i2c: E2 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 17 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 17 00 D5 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 69 [07:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:12:00]wFMCommunicate OK [07:12:00]CreateOFDProtocolMessage done [07:12:00]OFDSenderStorePacket 165543 [07:12:00]StoreOFDPacket docnum=165543 [07:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 78 1D 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 19 00 00 00 F4 03 04 00 49 AD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 86 02 00 35 04 06 00 FA 36 0F 26 76 94 92 D7 CD 68 F3 4A 23 25 [07:12:00]CheckFolder [07:12:00]dirname=/storage/ofd_packets [07:12:00]CheckFolder done [07:12:00]ProducePacketName [07:12:00]name=ofd_packets/00165543 [07:12:00]NVStorageSaveData ofd_packets/00165543 [07:12:00]File name is /storage/ofd_packets/00165543 [07:12:00]Write 298 bytes [07:12:00]NVStorageSaveData done [07:12:00]OFDSenderStorePacket done [07:12:00]KKMCreateOFDPacket done [07:12:00]NVStorageSaveData kkm_last_timestamp [07:12:00]File name is /storage/kkm_last_timestamp [07:12:00]Write 4 bytes [07:12:00]NVStorageSaveData done [07:12:00]ExternCall_PrintAddStr [07:12:00]wPrintStart [07:12:00]Write to MH i2c: 01 00 00 D6 C2 98 [07:12:00]Write i2c OK [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: 01 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: 01 07 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: 01 07 00 D6 C2 00 00 00 00 00 FF 0F AD [07:12:00]RasterBufferAndPrint [07:12:00]line Счет N : (1)220102 [07:12:00]line ИНН: 02508201610067 [07:12:00]line Контрольно-Кассовый Чек [07:12:00]line ПРОДАЖА [07:12:00]line ТРК (МРК, ГНК) : 11 [07:12:00]line Товар: 2710194210 [07:12:00]line ДТ-К-5 [07:12:00]line 26.250 * 76.20 [07:12:00]line = 2000.25 [07:12:00]line НДС 12% НСП 1% [07:12:00]line > о реализуемом товаре [07:12:00]line ОКРУГЛЕНИЕ: -0.25 [07:12:00]line ИТОГО: 2000.00 [07:12:00]line Внесено: 2000.00 [07:12:00]line СДАЧА: 0.00 [07:12:00]line НСП 1% : 17.70 [07:12:00]line НДС 12% : 212.42 [07:12:00]line Наличными: 2000.00 [07:12:00]line Безнал.: 0.00 [07:12:00]line Место: АЗС № 161 "Партнер Нефть" [07:12:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:12:00]line СНО: Общий режим [07:12:00]line Чек 25 20.10.2024 07:12 [07:12:00]line Смена: 534 ФФД: 1.0 [07:12:00]line ЗНМ: 0300000104 [07:12:00]line РНМ: 0000000000091764 [07:12:00]line Версия ККМ: 001 [07:12:00]line ФМ: 0000000000871759 [07:12:00]line ФД: 165543 [07:12:00]line ФПД: 275110089356948 [07:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165543&fm=275110089356948&tin=02508201610067®Number=0000000000091764&sum=200000 [07:12:00]OFD Sender: Processing packet 165543 [packets to send 48, broken 47] [07:12:00]ProducePacketName [07:12:00]name=ofd_packets/00165543 [07:12:00]OFD Sender: To server: pG, [07:12:00]CommunicateWithHost lk.salyk.kg:30040 [07:12:00]ConnectInit lk.salyk.kg [07:12:00]written 0, free lines is 4095 [07:12:00]Connected sock=10 [07:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 78 1D 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 19 00 00 00 F4 03 04 00 49 AD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 86 02 00 35 04 06 00 FA 36 0F 26 76 94 92 D7 CD 68 F3 4A 23 25 [07:12:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 39 1B 47 00 F0 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 31 37 35 39 10 04 04 00 A7 86 02 00 F4 03 04 00 BC 53 14 67 B6 04 01 00 00 03 D6 93 C3 99 06 A6 25 [07:12:01]CommunicateWithHost err = 0 [07:12:01]CheckOFDResponse [07:12:01]1017 (14) - 77093643461234 [07:12:01]1041 (16) - 0000000000871759 [07:12:01]1040 (4) - 165543 [07:12:01]1012 (4) - 20.10.2024 00:50 [07:12:01]1206 (1) - 0 [07:12:01]OFD Sender: Remove packet 165543 [07:12:01]ProducePacketName [07:12:01]name=ofd_packets/00165543 [07:12:01]NVStorageDeleteData [07:12:01]Write to MH i2c: 01 00 00 01 C3 C4 [07:12:01]Write i2c OK [07:12:01]MH_I2C_Read... [07:12:01]Read from MH i2c: 01 [07:12:01]MH_I2C_Read... [07:12:01]Read from MH i2c: 01 07 00 [07:12:01]MH_I2C_Read... [07:12:01]Read from MH i2c: 01 07 00 01 C3 00 00 00 00 00 B9 0C 90 [07:12:01]RasterBufferAndPrint [07:12:01]line [07:12:01]line [07:12:01]line [07:12:01]line [07:12:01]line [07:12:01]written 0, free lines is 3263 [07:12:01]MH_Cut [07:12:01]Write to MH i2c: D1 01 00 08 C3 01 9D [07:12:01]Write i2c OK [07:12:01]MH_I2C_Read... [07:12:01]Read from MH i2c: D1 [07:12:01]MH_I2C_Read... [07:12:01]Read from MH i2c: D1 01 00 [07:12:01]MH_I2C_Read... [07:12:01]Read from MH i2c: D1 01 00 08 C3 00 9C [07:12:01]Write to MH i2c: 01 00 00 09 C3 CC [07:12:01]Write i2c OK [07:12:01]MH_I2C_Read... [07:12:01]OFD Sender: No OFD packet to send [07:12:02]*** Cut start [07:12:02]*** Partial cut [07:12:02]*** CUTSNS_PIN = 1 [07:12:02]*** CUTSNS_PIN = 0 [07:12:02]*** Brake cut motor [07:12:02]Read from MH i2c: 01 [07:12:02]MH_I2C_Read... [07:12:02]*** Stop cut motor [07:12:02]*** Cut end [07:12:02]Read from MH i2c: 01 07 00 [07:12:02]MH_I2C_Read... [07:12:02]Read from MH i2c: 01 07 00 09 C3 00 00 00 00 00 FF 0F E1 [07:12:02]process_action close_receipt done [07:12:02]requested_data is exist [07:12:02]produce_requested_data [07:12:02]requested_item fm.sn is exist - process it [07:12:02]wFMCommunicate request_size=4 [07:12:02]MH_SAM_APDU [07:12:02]CAPDU: 80 11 00 00 [07:12:02]Write to MH i2c: E2 08 00 0A C3 80 11 00 00 00 00 00 00 47 [07:12:02]Write i2c OK [07:12:02]MH_I2C_Read... [07:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:02]Read from MH i2c: E2 [07:12:02]MH_I2C_Read... [07:12:02]Read from MH i2c: E2 17 00 [07:12:02]MH_I2C_Read... [07:12:02]Read from MH i2c: E2 17 00 0A C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [07:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:12:02]wFMCommunicate OK [07:12:02]requested_item fd.num is exist - process it [07:12:02]SAM_PROTO_GetFieldsCounters [07:12:02]wFMCommunicate request_size=4 [07:12:02]MH_SAM_APDU [07:12:02]CAPDU: 80 13 00 00 [07:12:02]Write to MH i2c: E2 08 00 0B C3 80 13 00 00 00 00 00 00 4A [07:12:02]Write i2c OK [07:12:02]MH_I2C_Read... [07:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:02]Read from MH i2c: E2 [07:12:02]MH_I2C_Read... [07:12:02]Read from MH i2c: E2 62 00 [07:12:02]MH_I2C_Read... [07:12:02]Read from MH i2c: E2 62 00 0B C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [07:12:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:02]wFMCommunicate OK [07:12:02]SAM_PROTO_GetFieldsCounters done [07:12:02]requested_item shift.num is exist - process it [07:12:02]requested_item shift.opened is exist - process it [07:12:02]req_shift_opened [07:12:02]FM_GetShiftState [07:12:02]SAM_PROTO_GetShiftState [07:12:02]wFMCommunicate request_size=4 [07:12:02]MH_SAM_APDU [07:12:02]CAPDU: 80 13 01 00 [07:12:02]Write to MH i2c: E2 08 00 0C C3 80 13 01 00 00 00 00 00 4C [07:12:02]Write i2c OK [07:12:02]MH_I2C_Read... [07:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:03]Read from MH i2c: E2 [07:12:03]MH_I2C_Read... [07:12:03]Read from MH i2c: E2 0E 00 [07:12:03]MH_I2C_Read... [07:12:03]Read from MH i2c: E2 0E 00 0C C3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 94 [07:12:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:12:03]wFMCommunicate OK [07:12:03]SAM_PROTO_GetShiftState done [07:12:03]FM_GetShiftState done [07:12:03]req_shift_opened done [07:12:03]requested_item shift.open_date is exist - process it [07:12:03]req_shift_open_date [07:12:03]req_shift_open_date done [07:12:03]produce_requested_data done [07:12:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165543,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:12:03]process_action_free close_receipt [07:12:03]json_value_free [07:12:03]json_value_free done [07:12:03]process_json_proto returns [07:12:03]Send response to host [07:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165543,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:12:03]free response buf [07:12:03]execute_script done [07:12:03]execute_script returns [07:12:03]free content buf [07:12:03]Sock 7.Close socket [07:12:03]Sock 7.Thread stoped [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]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:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:23]accept exits with 9 [07:26:23]New connection [07:26:23]New thread 3066776932 created [07:26:23]Thread 3066920292 joined [07:26:23]Waiting for new connection... [07:26:23] Sock 9.Parse request [07:26:23]Sock 9.Check first char [07:26:23]Sock 9.First char is OK [07:26:23]request: POST /json_proto HTTP/1.0 [07:26:23]Method: POST [07:26:23]URL: /json_proto [07:26:23]Method is POST - this is cgi request [07:26:23]url: /json_proto [07:26:23]query_string will be loaded in cgi processing [07:26:23]execute_cgi json_proto POST (null) [07:26:23]execute_cgi path=json_proto method=POST [07:26:23]POST find Content-Length [07:26:23]Host: 172.17.53.195:8080 [07:26:23]Content-Length: 682 [07:26:23]Content-Type: application/json [07:26:23] [07:26:23]POST finish read [07:26:23]Found Content-Length = 682 [07:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:23]execute_script... [07:26: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)220103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:23]POST & json_proto [07:26:23]process_json_proto [07:26:23]json parsed OK: [07:26:23]protocol is kg_v1.0 [07:26:23]action value=close_receipt [07:26:23]process_action close_receipt [07:26:23]cmd_close_receipt [07:26:23]MH_GetDate [07:26:23]Write to MH i2c: F0 00 00 0D C3 BF [07:26:23]Write i2c OK [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: F0 [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: F0 09 00 [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: F0 09 00 0D C3 00 AA B0 14 67 21 48 4A 65 B5 [07:26:23]GetLastDocTimeStamp 1729408329 [07:26:23]current date 1729409194 [07:26:23]FM_GetShiftState [07:26:23]SAM_PROTO_GetShiftState [07:26:23]wFMCommunicate request_size=4 [07:26:23]MH_SAM_APDU [07:26:23]CAPDU: 80 13 01 00 [07:26:23]Write to MH i2c: E2 08 00 0E C3 80 13 01 00 00 00 00 00 4E [07:26:23]Write i2c OK [07:26:23]MH_I2C_Read... [07:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:23]Read from MH i2c: E2 [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: E2 0E 00 [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: E2 0E 00 0E C3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 96 [07:26:23]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:26:23]wFMCommunicate OK [07:26:23]SAM_PROTO_GetShiftState done [07:26:23]FM_GetShiftState done [07:26:23]opened in 1729384561 [07:26:23]opened+sec_in_day 1729470961 [07:26:23]quantity*price = 100015 [07:26:23]sum+1 = 100017 [07:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 26 20.10.2024 07:26 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165544 ФПД: 62425009304139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T072634&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165544&fm=62425009304139&tin=02508201610067®Number=0000000000091764&sum=100000 [07:26:24]StoreToDocumentArchive [07:26:24]shift 534 fd 165544 [07:26:24]save to /storage/0534/doc_00165544 [07:26:24]save last doc name /storage/0534/doc_00165544 to /storage/kkm_last_doc_name [07:26:24]save OK [07:26:24]Clear old archive folders... [07:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:26:24]tlvbuf is 015DD590 [07:26:24]SAM_PROTO_ClearQueue [07:26:24]wFMCommunicate request_size=4 [07:26:24]MH_SAM_APDU [07:26:24]CAPDU: 80 09 00 00 [07:26:24]Write to MH i2c: E2 08 00 1B C3 80 09 00 00 00 00 00 00 50 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 1B C3 00 90 00 52 [07:26:24]RAPDU: 90 00 [07:26:24]wFMCommunicate OK [07:26:24]SAM_PROTO_ClearQueue done [07:26:24]KKMCreateOFDPacket [07:26:24]OFDProtocolAddRootSTLVToBuf [07:26:24]FM_MakeSignedData [07:26:24]FM_MakeSignedData [07:26:24]SAM_PROTO_SignData [07:26:24]wFMCommunicate request_size=4 [07:26:24]MH_SAM_APDU [07:26:24]CAPDU: 80 0D 01 02 [07:26:24]Write to MH i2c: E2 08 00 1C C3 80 0D 01 02 00 00 00 00 58 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 1C C3 00 90 00 53 [07:26:24]RAPDU: 90 00 [07:26:24]wFMCommunicate OK [07:26:24]wFMCommunicate request_size=255 [07:26:24]MH_SAM_APDU [07:26: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AA B0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 86 02 00 35 04 06 00 38 [07:26:24]Write to MH i2c: E2 02 01 1D C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AA B0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 86 02 00 35 04 06 00 38 00 00 57 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 1D C3 00 90 00 54 [07:26:24]RAPDU: 90 00 [07:26:24]wFMCommunicate OK [07:26:24]wFMCommunicate request_size=10 [07:26:24]MH_SAM_APDU [07:26:24]CAPDU: 80 0D 02 02 05 C6 74 81 32 4B [07:26:24]Write to MH i2c: E2 0D 00 1E C3 80 0D 02 02 05 00 C6 74 81 32 4B 00 00 9D [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 1E C3 00 90 00 55 [07:26:24]RAPDU: 90 00 [07:26:24]wFMCommunicate OK [07:26:24]wFMCommunicate request_size=4 [07:26:24]MH_SAM_APDU [07:26:24]CAPDU: 80 0D 03 02 [07:26:24]Write to MH i2c: E2 08 00 1F C3 80 0D 03 02 00 00 00 00 5D [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 0B 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 0B 00 1F C3 00 62 F7 70 D9 7E A5 B6 DD 90 00 B6 [07:26:24]RAPDU: 62 F7 70 D9 7E A5 B6 DD 90 00 [07:26:24]wFMCommunicate OK [07:26:24]SAM_PROTO_SignData done [07:26:24]FM_MakeSignedData done [07:26:24]CreateOFDProtocolMessage [07:26:24]wFMCommunicate request_size=4 [07:26:24]MH_SAM_APDU [07:26:24]CAPDU: 80 11 00 00 [07:26:24]Write to MH i2c: E2 08 00 20 C3 80 11 00 00 00 00 00 00 5D [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 17 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 17 00 20 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [07:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:26:24]wFMCommunicate OK [07:26:24]CreateOFDProtocolMessage done [07:26:24]OFDSenderStorePacket 165544 [07:26:24]StoreOFDPacket docnum=165544 [07:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1B 22 07 01 23 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AA B0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 86 02 00 35 04 06 00 38 C6 74 81 32 4B 62 F7 70 D9 7E A5 B6 DD [07:26:24]CheckFolder [07:26:24]dirname=/storage/ofd_packets [07:26:24]CheckFolder done [07:26:24]ProducePacketName [07:26:24]name=ofd_packets/00165544 [07:26:24]NVStorageSaveData ofd_packets/00165544 [07:26:24]File name is /storage/ofd_packets/00165544 [07:26:24]Write 301 bytes [07:26:24]NVStorageSaveData done [07:26:24]OFDSenderStorePacket done [07:26:24]KKMCreateOFDPacket done [07:26:24]NVStorageSaveData kkm_last_timestamp [07:26:24]File name is /storage/kkm_last_timestamp [07:26:24]Write 4 bytes [07:26:24]NVStorageSaveData done [07:26:24]ExternCall_PrintAddStr [07:26:24]wPrintStart [07:26:24]Write to MH i2c: 01 00 00 21 C3 E4 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 07 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 07 00 21 C3 00 00 00 00 00 FF 0F F9 [07:26:24]RasterBufferAndPrint [07:26:24]line Счет N : (1)220103 [07:26:24]line ИНН: 02508201610067 [07:26:24]line Контрольно-Кассовый Чек [07:26:24]line ПРОДАЖА [07:26:24]line ТРК (МРК, ГНК) : 23 [07:26:24]line Товар: 2710124130 [07:26:24]line Аи-92-К-5 [07:26:24]line 14.950 * 66.90 [07:26:24]line = 1000.16 [07:26:24]line НДС 12% НСП 1% [07:26:24]line > о реализуемом товаре [07:26:24]line ОКРУГЛЕНИЕ: -0.16 [07:26:24]line ИТОГО: 1000.00 [07:26:24]line Внесено: 1000.00 [07:26:24]line СДАЧА: 0.00 [07:26:24]line НСП 1% : 8.85 [07:26:24]line НДС 12% : 106.21 [07:26:24]line Наличными: 1000.00 [07:26:24]line Безнал.: 0.00 [07:26:24]line Место: АЗС № 161 "Партнер Нефть" [07:26:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:26:24]line СНО: Общий режим [07:26:24]line Чек 26 20.10.2024 07:26 [07:26:24]line Смена: 534 ФФД: 1.0 [07:26:24]line ЗНМ: 0300000104 [07:26:24]line РНМ: 0000000000091764 [07:26:24]line Версия ККМ: 001 [07:26:24]line ФМ: 0000000000871759 [07:26:24]line ФД: 165544 [07:26:24]line ФПД: 62425009304139 [07:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T072634&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165544&fm=62425009304139&tin=02508201610067®Number=0000000000091764&sum=100000 [07:26:24]written 0, free lines is 4095 [07:26:24]OFD Sender: Processing packet 165544 [packets to send 48, broken 47] [07:26:24]ProducePacketName [07:26:24]name=ofd_packets/00165544 [07:26:24]OFD Sender: To server: pG, [07:26:24]CommunicateWithHost lk.salyk.kg:30040 [07:26:24]ConnectInit lk.salyk.kg [07:26:24]Connected sock=10 [07:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1B 22 07 01 23 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AA B0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 86 02 00 35 04 06 00 38 C6 74 81 32 4B 62 F7 70 D9 7E A5 B6 DD [07:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 97 B0 47 00 EE 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 31 37 35 39 10 04 04 00 A8 86 02 00 F4 03 04 00 1C 57 14 67 B6 04 01 00 00 B4 0C 79 B3 B0 64 EE 44 [07:26:25]CommunicateWithHost err = 0 [07:26:25]CheckOFDResponse [07:26:25]1017 (14) - 77093643461234 [07:26:25]1041 (16) - 0000000000871759 [07:26:25]1040 (4) - 165544 [07:26:25]1012 (4) - 20.10.2024 01:04 [07:26:25]1206 (1) - 0 [07:26:25]OFD Sender: Remove packet 165544 [07:26:25]ProducePacketName [07:26:25]name=ofd_packets/00165544 [07:26:25]NVStorageDeleteData [07:26:25]Write to MH i2c: 01 00 00 4C C3 0F [07:26:25]Write i2c OK [07:26:25]MH_I2C_Read... [07:26:25]Read from MH i2c: 01 [07:26:25]MH_I2C_Read... [07:26:25]Read from MH i2c: 01 07 00 [07:26:25]MH_I2C_Read... [07:26:25]Read from MH i2c: 01 07 00 4C C3 00 00 00 00 00 B8 0C DA [07:26:25]RasterBufferAndPrint [07:26:25]line [07:26:25]line [07:26:25]line [07:26:25]line [07:26:25]line [07:26:25]written 0, free lines is 3264 [07:26:25]MH_Cut [07:26:25]Write to MH i2c: D1 01 00 53 C3 01 E8 [07:26:25]Write i2c OK [07:26:25]MH_I2C_Read... [07:26:25]Read from MH i2c: D1 [07:26:25]MH_I2C_Read... [07:26:25]Read from MH i2c: D1 01 00 [07:26:25]MH_I2C_Read... [07:26:25]Read from MH i2c: D1 01 00 53 C3 00 E7 [07:26:25]Write to MH i2c: 01 00 00 54 C3 17 [07:26:25]Write i2c OK [07:26:25]MH_I2C_Read... [07:26:25]OFD Sender: No OFD packet to send [07:26:26]*** Cut start [07:26:26]*** Partial cut [07:26:26]*** CUTSNS_PIN = 1 [07:26:26]*** CUTSNS_PIN = 0 [07:26:26]*** Brake cut motor [07:26:26]Read from MH i2c: 01 [07:26:26]MH_I2C_Read... [07:26:26]*** Stop cut motor [07:26:26]*** Cut end [07:26:26]Read from MH i2c: 01 07 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: 01 07 00 54 C3 00 00 00 00 00 FF 0F 2C [07:26:26]process_action close_receipt done [07:26:26]requested_data is exist [07:26:26]produce_requested_data [07:26:26]requested_item fm.sn is exist - process it [07:26:26]wFMCommunicate request_size=4 [07:26:26]MH_SAM_APDU [07:26:26]CAPDU: 80 11 00 00 [07:26:26]Write to MH i2c: E2 08 00 55 C3 80 11 00 00 00 00 00 00 92 [07:26:26]Write i2c OK [07:26:26]MH_I2C_Read... [07:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:26]Read from MH i2c: E2 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 17 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 17 00 55 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [07:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:26:26]wFMCommunicate OK [07:26:26]requested_item fd.num is exist - process it [07:26:26]SAM_PROTO_GetFieldsCounters [07:26:26]wFMCommunicate request_size=4 [07:26:26]MH_SAM_APDU [07:26:26]CAPDU: 80 13 00 00 [07:26:26]Write to MH i2c: E2 08 00 56 C3 80 13 00 00 00 00 00 00 95 [07:26:26]Write i2c OK [07:26:26]MH_I2C_Read... [07:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:26]Read from MH i2c: E2 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 62 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 62 00 56 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [07:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:26:26]wFMCommunicate OK [07:26:26]SAM_PROTO_GetFieldsCounters done [07:26:26]requested_item shift.num is exist - process it [07:26:26]requested_item shift.opened is exist - process it [07:26:26]req_shift_opened [07:26:26]FM_GetShiftState [07:26:26]SAM_PROTO_GetShiftState [07:26:26]wFMCommunicate request_size=4 [07:26:26]MH_SAM_APDU [07:26:26]CAPDU: 80 13 01 00 [07:26:26]Write to MH i2c: E2 08 00 57 C3 80 13 01 00 00 00 00 00 97 [07:26:26]Write i2c OK [07:26:26]MH_I2C_Read... [07:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:27]Read from MH i2c: E2 [07:26:27]MH_I2C_Read... [07:26:27]Read from MH i2c: E2 0E 00 [07:26:27]MH_I2C_Read... [07:26:27]Read from MH i2c: E2 0E 00 57 C3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DF [07:26:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:26:27]wFMCommunicate OK [07:26:27]SAM_PROTO_GetShiftState done [07:26:27]FM_GetShiftState done [07:26:27]req_shift_opened done [07:26:27]requested_item shift.open_date is exist - process it [07:26:27]req_shift_open_date [07:26:27]req_shift_open_date done [07:26:27]produce_requested_data done [07:26:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165544,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:26:27]process_action_free close_receipt [07:26:27]json_value_free [07:26:27]json_value_free done [07:26:27]process_json_proto returns [07:26:27]Send response to host [07:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165544,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:26:27]free response buf [07:26:27]execute_script done [07:26:27]execute_script returns [07:26:27]free content buf [07:26:27]Sock 9.Close socket [07:26:27]Sock 9.Thread stoped [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:33]accept exits with 7 [07:32:33]New connection [07:32:33]New thread 3066920292 created [07:32:33]Thread 3066776932 joined [07:32:33]Waiting for new connection... [07:32:33] Sock 7.Parse request [07:32:33]Sock 7.Check first char [07:32:33]Sock 7.First char is OK [07:32:33]request: POST /json_proto HTTP/1.0 [07:32:33]Method: POST [07:32:33]URL: /json_proto [07:32:33]Method is POST - this is cgi request [07:32:33]url: /json_proto [07:32:33]query_string will be loaded in cgi processing [07:32:33]execute_cgi json_proto POST (null) [07:32:33]execute_cgi path=json_proto method=POST [07:32:33]POST find Content-Length [07:32:33]Host: 172.17.53.195:8080 [07:32:33]Content-Length: 674 [07:32:33]Content-Type: application/json [07:32:33] [07:32:33]POST finish read [07:32:33]Found Content-Length = 674 [07:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:33]execute_script... [07:32: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)220104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:33]POST & json_proto [07:32:33]process_json_proto [07:32:33]json parsed OK: [07:32:33]protocol is kg_v1.0 [07:32:33]action value=close_receipt [07:32:33]process_action close_receipt [07:32:33]cmd_close_receipt [07:32:33]MH_GetDate [07:32:33]Write to MH i2c: F0 00 00 58 C3 0A [07:32:33]Write i2c OK [07:32:33]MH_I2C_Read... [07:32:33]Read from MH i2c: F0 [07:32:33]MH_I2C_Read... [07:32:33]Read from MH i2c: F0 09 00 [07:32:33]MH_I2C_Read... [07:32:33]Read from MH i2c: F0 09 00 58 C3 00 1C B2 14 67 21 48 4A 65 74 [07:32:33]GetLastDocTimeStamp 1729409194 [07:32:33]current date 1729409564 [07:32:33]FM_GetShiftState [07:32:33]SAM_PROTO_GetShiftState [07:32:33]wFMCommunicate request_size=4 [07:32:33]MH_SAM_APDU [07:32:33]CAPDU: 80 13 01 00 [07:32:33]Write to MH i2c: E2 08 00 59 C3 80 13 01 00 00 00 00 00 99 [07:32:33]Write i2c OK [07:32:33]MH_I2C_Read... [07:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:33]Read from MH i2c: E2 [07:32:33]MH_I2C_Read... [07:32:33]Read from MH i2c: E2 0E 00 [07:32:33]MH_I2C_Read... [07:32:33]Read from MH i2c: E2 0E 00 59 C3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E1 [07:32:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:32:33]wFMCommunicate OK [07:32:33]SAM_PROTO_GetShiftState done [07:32:33]FM_GetShiftState done [07:32:33]opened in 1729384561 [07:32:33]opened+sec_in_day 1729470961 [07:32:33]quantity*price = 50063 [07:32:33]sum+1 = 50064 [07:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 27 20.10.2024 07:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165545 ФПД: 145995103549065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073244&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165545&fm=145995103549065&tin=02508201610067®Number=0000000000091764&sum=50000 [07:32:34]StoreToDocumentArchive [07:32:34]shift 534 fd 165545 [07:32:34]save to /storage/0534/doc_00165545 [07:32:34]save last doc name /storage/0534/doc_00165545 to /storage/kkm_last_doc_name [07:32:34]save OK [07:32:34]Clear old archive folders... [07:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:32:34]tlvbuf is 015BCDB0 [07:32:34]SAM_PROTO_ClearQueue [07:32:34]wFMCommunicate request_size=4 [07:32:34]MH_SAM_APDU [07:32:34]CAPDU: 80 09 00 00 [07:32:34]Write to MH i2c: E2 08 00 66 C3 80 09 00 00 00 00 00 00 9B [07:32:34]Write i2c OK [07:32:34]MH_I2C_Read... [07:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:34]Read from MH i2c: E2 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 03 00 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 03 00 66 C3 00 90 00 9D [07:32:34]RAPDU: 90 00 [07:32:34]wFMCommunicate OK [07:32:34]SAM_PROTO_ClearQueue done [07:32:34]KKMCreateOFDPacket [07:32:34]OFDProtocolAddRootSTLVToBuf [07:32:34]FM_MakeSignedData [07:32:34]FM_MakeSignedData [07:32:34]SAM_PROTO_SignData [07:32:34]wFMCommunicate request_size=4 [07:32:34]MH_SAM_APDU [07:32:34]CAPDU: 80 0D 01 02 [07:32:34]Write to MH i2c: E2 08 00 67 C3 80 0D 01 02 00 00 00 00 A3 [07:32:34]Write i2c OK [07:32:34]MH_I2C_Read... [07:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:34]Read from MH i2c: E2 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 03 00 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 03 00 67 C3 00 90 00 9E [07:32:34]RAPDU: 90 00 [07:32:34]wFMCommunicate OK [07:32:34]wFMCommunicate request_size=255 [07:32:34]MH_SAM_APDU [07:32: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 1B 00 00 00 F4 03 04 00 1C B2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 86 02 00 35 04 06 00 84 C8 22 49 [07:32:34]Write to MH i2c: E2 02 01 68 C3 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 1B 00 00 00 F4 03 04 00 1C B2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 86 02 00 35 04 06 00 84 C8 22 49 00 00 1B [07:32:34]Write i2c OK [07:32:34]MH_I2C_Read... [07:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:34]Read from MH i2c: E2 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 03 00 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 03 00 68 C3 00 90 00 9F [07:32:34]RAPDU: 90 00 [07:32:34]wFMCommunicate OK [07:32:34]wFMCommunicate request_size=7 [07:32:34]MH_SAM_APDU [07:32:34]CAPDU: 80 0D 02 02 02 36 89 [07:32:34]Write to MH i2c: E2 0A 00 69 C3 80 0D 02 02 02 00 36 89 00 00 69 [07:32:34]Write i2c OK [07:32:34]MH_I2C_Read... [07:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:34]Read from MH i2c: E2 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 03 00 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 03 00 69 C3 00 90 00 A0 [07:32:34]RAPDU: 90 00 [07:32:34]wFMCommunicate OK [07:32:34]wFMCommunicate request_size=4 [07:32:34]MH_SAM_APDU [07:32:34]CAPDU: 80 0D 03 02 [07:32:34]Write to MH i2c: E2 08 00 6A C3 80 0D 03 02 00 00 00 00 A8 [07:32:34]Write i2c OK [07:32:34]MH_I2C_Read... [07:32:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:34]Read from MH i2c: E2 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 0B 00 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 0B 00 6A C3 00 CB CA 7B 3E D5 EC 45 AF 90 00 AC [07:32:34]RAPDU: CB CA 7B 3E D5 EC 45 AF 90 00 [07:32:34]wFMCommunicate OK [07:32:34]SAM_PROTO_SignData done [07:32:34]FM_MakeSignedData done [07:32:34]CreateOFDProtocolMessage [07:32:34]wFMCommunicate request_size=4 [07:32:34]MH_SAM_APDU [07:32:34]CAPDU: 80 11 00 00 [07:32:34]Write to MH i2c: E2 08 00 6B C3 80 11 00 00 00 00 00 00 A8 [07:32:34]Write i2c OK [07:32:34]MH_I2C_Read... [07:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:34]Read from MH i2c: E2 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 17 00 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: E2 17 00 6B C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [07:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:32:34]wFMCommunicate OK [07:32:34]CreateOFDProtocolMessage done [07:32:34]OFDSenderStorePacket 165545 [07:32:34]StoreOFDPacket docnum=165545 [07:32:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AD 91 04 01 E0 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 1B 00 00 00 F4 03 04 00 1C B2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 86 02 00 35 04 06 00 84 C8 22 49 36 89 CB CA 7B 3E D5 EC 45 AF [07:32:34]CheckFolder [07:32:34]dirname=/storage/ofd_packets [07:32:34]CheckFolder done [07:32:34]ProducePacketName [07:32:34]name=ofd_packets/00165545 [07:32:34]NVStorageSaveData ofd_packets/00165545 [07:32:34]File name is /storage/ofd_packets/00165545 [07:32:34]Write 298 bytes [07:32:34]NVStorageSaveData done [07:32:34]OFDSenderStorePacket done [07:32:34]KKMCreateOFDPacket done [07:32:34]NVStorageSaveData kkm_last_timestamp [07:32:34]File name is /storage/kkm_last_timestamp [07:32:34]Write 4 bytes [07:32:34]NVStorageSaveData done [07:32:34]ExternCall_PrintAddStr [07:32:34]wPrintStart [07:32:34]Write to MH i2c: 01 00 00 6C C3 2F [07:32:34]Write i2c OK [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: 01 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: 01 07 00 [07:32:34]MH_I2C_Read... [07:32:34]Read from MH i2c: 01 07 00 6C C3 00 00 00 00 00 FF 0F 44 [07:32:34]RasterBufferAndPrint [07:32:34]line Счет N : (1)220104 [07:32:34]line ИНН: 02508201610067 [07:32:34]line Контрольно-Кассовый Чек [07:32:34]line ПРОДАЖА [07:32:34]line ТРК (МРК, ГНК) : 31 [07:32:34]line Товар: 2710194210 [07:32:34]line ДТ-К-5 [07:32:34]line 6.570 * 76.20 [07:32:34]line = 500.63 [07:32:34]line НДС 12% НСП 1% [07:32:34]line > о реализуемом товаре [07:32:34]line ОКРУГЛЕНИЕ: -0.63 [07:32:34]line ИТОГО: 500.00 [07:32:34]line Внесено: 500.00 [07:32:34]line СДАЧА: 0.00 [07:32:34]line НСП 1% : 4.43 [07:32:34]line НДС 12% : 53.16 [07:32:34]line Наличными: 500.00 [07:32:34]line Безнал.: 0.00 [07:32:34]line Место: АЗС № 161 "Партнер Нефть" [07:32:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:32:34]line СНО: Общий режим [07:32:34]line Чек 27 20.10.2024 07:32 [07:32:34]line Смена: 534 ФФД: 1.0 [07:32:34]line ЗНМ: 0300000104 [07:32:34]line РНМ: 0000000000091764 [07:32:34]line Версия ККМ: 001 [07:32:34]line ФМ: 0000000000871759 [07:32:34]line ФД: 165545 [07:32:34]line ФПД: 145995103549065 [07:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073244&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165545&fm=145995103549065&tin=02508201610067®Number=0000000000091764&sum=50000 [07:32:35]OFD Sender: Processing packet 165545 [packets to send 48, broken 47] [07:32:35]ProducePacketName [07:32:35]name=ofd_packets/00165545 [07:32:35]OFD Sender: To server: pG, [07:32:35]CommunicateWithHost lk.salyk.kg:30040 [07:32:35]ConnectInit lk.salyk.kg [07:32:35]written 0, free lines is 4095 [07:32:35]Connected sock=10 [07:32:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AD 91 04 01 E0 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 1B 00 00 00 F4 03 04 00 1C B2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 86 02 00 35 04 06 00 84 C8 22 49 36 89 CB CA 7B 3E D5 EC 45 AF [07:32:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0E B3 47 00 FF 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 86 02 00 F4 03 04 00 8E 58 14 67 B6 04 01 00 00 3D 28 8C 8A B6 79 0E 3F [07:32:35]CommunicateWithHost err = 0 [07:32:35]CheckOFDResponse [07:32:35]1017 (14) - 77093643461234 [07:32:35]1041 (16) - 0000000000871759 [07:32:35]1040 (4) - 165545 [07:32:35]1012 (4) - 20.10.2024 01:10 [07:32:35]1206 (1) - 0 [07:32:35]OFD Sender: Remove packet 165545 [07:32:35]ProducePacketName [07:32:35]name=ofd_packets/00165545 [07:32:35]NVStorageDeleteData [07:32:35]Write to MH i2c: 01 00 00 97 C3 5A [07:32:35]Write i2c OK [07:32:35]MH_I2C_Read... [07:32:35]Read from MH i2c: 01 [07:32:35]MH_I2C_Read... [07:32:35]Read from MH i2c: 01 07 00 [07:32:35]MH_I2C_Read... [07:32:35]Read from MH i2c: 01 07 00 97 C3 00 00 00 00 00 AA 0C 17 [07:32:35]RasterBufferAndPrint [07:32:35]line [07:32:35]line [07:32:35]line [07:32:35]line [07:32:35]line [07:32:35]written 0, free lines is 3248 [07:32:35]MH_Cut [07:32:35]Write to MH i2c: D1 01 00 9E C3 01 33 [07:32:35]Write i2c OK [07:32:35]MH_I2C_Read... [07:32:35]Read from MH i2c: D1 [07:32:35]MH_I2C_Read... [07:32:35]Read from MH i2c: D1 01 00 [07:32:35]MH_I2C_Read... [07:32:35]Read from MH i2c: D1 01 00 9E C3 00 32 [07:32:35]Write to MH i2c: 01 00 00 9F C3 62 [07:32:35]Write i2c OK [07:32:35]MH_I2C_Read... [07:32:35]OFD Sender: No OFD packet to send [07:32:36]*** Cut start [07:32:36]*** Partial cut [07:32:36]*** CUTSNS_PIN = 1 [07:32:36]*** CUTSNS_PIN = 0 [07:32:36]*** Brake cut motor [07:32:36]Read from MH i2c: 01 [07:32:37]MH_I2C_Read... [07:32:37]*** Stop cut motor [07:32:37]*** Cut end [07:32:37]Read from MH i2c: 01 07 00 [07:32:37]MH_I2C_Read... [07:32:37]Read from MH i2c: 01 07 00 9F C3 00 00 00 00 00 FF 0F 77 [07:32:37]process_action close_receipt done [07:32:37]requested_data is exist [07:32:37]produce_requested_data [07:32:37]requested_item fm.sn is exist - process it [07:32:37]wFMCommunicate request_size=4 [07:32:37]MH_SAM_APDU [07:32:37]CAPDU: 80 11 00 00 [07:32:37]Write to MH i2c: E2 08 00 A0 C3 80 11 00 00 00 00 00 00 DD [07:32:37]Write i2c OK [07:32:37]MH_I2C_Read... [07:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:37]Read from MH i2c: E2 [07:32:37]MH_I2C_Read... [07:32:37]Read from MH i2c: E2 17 00 [07:32:37]MH_I2C_Read... [07:32:37]Read from MH i2c: E2 17 00 A0 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [07:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:32:37]wFMCommunicate OK [07:32:37]requested_item fd.num is exist - process it [07:32:37]SAM_PROTO_GetFieldsCounters [07:32:37]wFMCommunicate request_size=4 [07:32:37]MH_SAM_APDU [07:32:37]CAPDU: 80 13 00 00 [07:32:37]Write to MH i2c: E2 08 00 A1 C3 80 13 00 00 00 00 00 00 E0 [07:32:37]Write i2c OK [07:32:37]MH_I2C_Read... [07:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:37]Read from MH i2c: E2 [07:32:37]MH_I2C_Read... [07:32:37]Read from MH i2c: E2 62 00 [07:32:37]MH_I2C_Read... [07:32:37]Read from MH i2c: E2 62 00 A1 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [07:32:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:37]wFMCommunicate OK [07:32:37]SAM_PROTO_GetFieldsCounters done [07:32:37]requested_item shift.num is exist - process it [07:32:37]requested_item shift.opened is exist - process it [07:32:37]req_shift_opened [07:32:37]FM_GetShiftState [07:32:37]SAM_PROTO_GetShiftState [07:32:37]wFMCommunicate request_size=4 [07:32:37]MH_SAM_APDU [07:32:37]CAPDU: 80 13 01 00 [07:32:37]Write to MH i2c: E2 08 00 A2 C3 80 13 01 00 00 00 00 00 E2 [07:32:37]Write i2c OK [07:32:37]MH_I2C_Read... [07:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:37]Read from MH i2c: E2 [07:32:37]MH_I2C_Read... [07:32:37]Read from MH i2c: E2 0E 00 [07:32:37]MH_I2C_Read... [07:32:37]Read from MH i2c: E2 0E 00 A2 C3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2A [07:32:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:32:37]wFMCommunicate OK [07:32:37]SAM_PROTO_GetShiftState done [07:32:37]FM_GetShiftState done [07:32:37]req_shift_opened done [07:32:37]requested_item shift.open_date is exist - process it [07:32:37]req_shift_open_date [07:32:37]req_shift_open_date done [07:32:37]produce_requested_data done [07:32:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165545,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:32:37]process_action_free close_receipt [07:32:37]json_value_free [07:32:37]json_value_free done [07:32:37]process_json_proto returns [07:32:37]Send response to host [07:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165545,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:32:37]free response buf [07:32:37]execute_script done [07:32:37]execute_script returns [07:32:37]free content buf [07:32:37]Sock 7.Close socket [07:32:37]Sock 7.Thread stoped [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:34:56]accept exits with 9 [07:34:56]New connection [07:34:56]New thread 3066776932 created [07:34:56]Thread 3066920292 joined [07:34:56]Waiting for new connection... [07:34:56] Sock 9.Parse request [07:34:56]Sock 9.Check first char [07:34:56]Sock 9.First char is OK [07:34:56]request: POST /json_proto HTTP/1.0 [07:34:56]Method: POST [07:34:56]URL: /json_proto [07:34:56]Method is POST - this is cgi request [07:34:56]url: /json_proto [07:34:56]query_string will be loaded in cgi processing [07:34:56]execute_cgi json_proto POST (null) [07:34:56]execute_cgi path=json_proto method=POST [07:34:56]POST find Content-Length [07:34:56]Host: 172.17.53.195:8080 [07:34:56]Content-Length: 674 [07:34:56]Content-Type: application/json [07:34:56] [07:34:56]POST finish read [07:34:56]Found Content-Length = 674 [07:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220105", "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" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:56]execute_script... [07: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)220105", "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" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:56]POST & json_proto [07:34:56]process_json_proto [07:34:56]json parsed OK: [07:34:56]protocol is kg_v1.0 [07:34:56]action value=close_receipt [07:34:56]process_action close_receipt [07:34:56]cmd_close_receipt [07:34:56]MH_GetDate [07:34:56]Write to MH i2c: F0 00 00 A3 C3 55 [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: F0 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: F0 09 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: F0 09 00 A3 C3 00 AB B2 14 67 21 48 4A 65 4E [07:34:56]GetLastDocTimeStamp 1729409564 [07:34:56]current date 1729409707 [07:34:56]FM_GetShiftState [07:34:56]SAM_PROTO_GetShiftState [07:34:56]wFMCommunicate request_size=4 [07:34:56]MH_SAM_APDU [07:34:56]CAPDU: 80 13 01 00 [07:34:56]Write to MH i2c: E2 08 00 A4 C3 80 13 01 00 00 00 00 00 E4 [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:56]Read from MH i2c: E2 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 0E 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 0E 00 A4 C3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2C [07:34:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:34:56]wFMCommunicate OK [07:34:56]SAM_PROTO_GetShiftState done [07:34:56]FM_GetShiftState done [07:34:56]opened in 1729384561 [07:34:56]opened+sec_in_day 1729470961 [07:34:56]quantity*price = 40005 [07:34:56]sum+1 = 40006 [07:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 28 20.10.2024 07:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165546 ФПД: 118618587818272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165546&fm=118618587818272&tin=02508201610067®Number=0000000000091764&sum=40000 [07:34:57]StoreToDocumentArchive [07:34:57]shift 534 fd 165546 [07:34:57]save to /storage/0534/doc_00165546 [07:34:57]save last doc name /storage/0534/doc_00165546 to /storage/kkm_last_doc_name [07:34:57]save OK [07:34:57]Clear old archive folders... [07:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:34:57]tlvbuf is 0166B050 [07:34:57]SAM_PROTO_ClearQueue [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 09 00 00 [07:34:57]Write to MH i2c: E2 08 00 B1 C3 80 09 00 00 00 00 00 00 E6 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 B1 C3 00 90 00 E8 [07:34:57]RAPDU: 90 00 [07:34:57]wFMCommunicate OK [07:34:57]SAM_PROTO_ClearQueue done [07:34:57]KKMCreateOFDPacket [07:34:57]OFDProtocolAddRootSTLVToBuf [07:34:57]FM_MakeSignedData [07:34:57]FM_MakeSignedData [07:34:57]SAM_PROTO_SignData [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 0D 01 02 [07:34:57]Write to MH i2c: E2 08 00 B2 C3 80 0D 01 02 00 00 00 00 EE [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 B2 C3 00 90 00 E9 [07:34:57]RAPDU: 90 00 [07:34:57]wFMCommunicate OK [07:34:57]wFMCommunicate request_size=255 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AB B2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 86 02 00 35 04 06 00 6B E2 0A CA [07:34:57]Write to MH i2c: E2 02 01 B3 C3 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AB B2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 86 02 00 35 04 06 00 6B E2 0A CA 00 00 CC [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 B3 C3 00 90 00 EA [07:34:57]RAPDU: 90 00 [07:34:57]wFMCommunicate OK [07:34:57]wFMCommunicate request_size=7 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 0D 02 02 02 69 20 [07:34:57]Write to MH i2c: E2 0A 00 B4 C3 80 0D 02 02 02 00 69 20 00 00 7E [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 03 00 B4 C3 00 90 00 EB [07:34:57]RAPDU: 90 00 [07:34:57]wFMCommunicate OK [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 0D 03 02 [07:34:57]Write to MH i2c: E2 08 00 B5 C3 80 0D 03 02 00 00 00 00 F3 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 0B 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 0B 00 B5 C3 00 88 2D 42 6B 35 D9 06 19 90 00 83 [07:34:57]RAPDU: 88 2D 42 6B 35 D9 06 19 90 00 [07:34:57]wFMCommunicate OK [07:34:57]SAM_PROTO_SignData done [07:34:57]FM_MakeSignedData done [07:34:57]CreateOFDProtocolMessage [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 11 00 00 [07:34:57]Write to MH i2c: E2 08 00 B6 C3 80 11 00 00 00 00 00 00 F3 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 17 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 17 00 B6 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [07:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:34:57]wFMCommunicate OK [07:34:57]CreateOFDProtocolMessage done [07:34:57]OFDSenderStorePacket 165546 [07:34:57]StoreOFDPacket docnum=165546 [07:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 D2 04 01 F0 AE 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AB B2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 86 02 00 35 04 06 00 6B E2 0A CA 69 20 88 2D 42 6B 35 D9 06 19 [07:34:57]CheckFolder [07:34:57]dirname=/storage/ofd_packets [07:34:57]CheckFolder done [07:34:57]ProducePacketName [07:34:57]name=ofd_packets/00165546 [07:34:57]NVStorageSaveData ofd_packets/00165546 [07:34:57]File name is /storage/ofd_packets/00165546 [07:34:57]Write 298 bytes [07:34:57]NVStorageSaveData done [07:34:57]OFDSenderStorePacket done [07:34:57]KKMCreateOFDPacket done [07:34:57]NVStorageSaveData kkm_last_timestamp [07:34:57]File name is /storage/kkm_last_timestamp [07:34:57]Write 4 bytes [07:34:57]NVStorageSaveData done [07:34:57]ExternCall_PrintAddStr [07:34:57]wPrintStart [07:34:57]Write to MH i2c: 01 00 00 B7 C3 7A [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: 01 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: 01 07 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: 01 07 00 B7 C3 00 00 00 00 00 FF 0F 8F [07:34:57]RasterBufferAndPrint [07:34:57]line Счет N : (1)220105 [07:34:57]line ИНН: 02508201610067 [07:34:57]line Контрольно-Кассовый Чек [07:34:57]line ПРОДАЖА [07:34:57]line ТРК (МРК, ГНК) : 11 [07:34:57]line Товар: 2710194210 [07:34:57]line ДТ-К-5 [07:34:57]line 5.250 * 76.20 [07:34:57]line = 400.05 [07:34:57]line НДС 12% НСП 1% [07:34:57]line > о реализуемом товаре [07:34:57]line ОКРУГЛЕНИЕ: -0.05 [07:34:57]line ИТОГО: 400.00 [07:34:57]line Внесено: 400.00 [07:34:57]line СДАЧА: 0.00 [07:34:57]line НСП 1% : 3.54 [07:34:57]line НДС 12% : 42.48 [07:34:57]line Наличными: 400.00 [07:34:57]line Безнал.: 0.00 [07:34:57]line Место: АЗС № 161 "Партнер Нефть" [07:34:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:34:57]line СНО: Общий режим [07:34:57]line Чек 28 20.10.2024 07:35 [07:34:57]line Смена: 534 ФФД: 1.0 [07:34:57]line ЗНМ: 0300000104 [07:34:57]line РНМ: 0000000000091764 [07:34:57]line Версия ККМ: 001 [07:34:57]line ФМ: 0000000000871759 [07:34:57]line ФД: 165546 [07:34:57]line ФПД: 118618587818272 [07:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165546&fm=118618587818272&tin=02508201610067®Number=0000000000091764&sum=40000 [07:34:58]OFD Sender: Processing packet 165546 [packets to send 48, broken 47] [07:34:58]ProducePacketName [07:34:58]name=ofd_packets/00165546 [07:34:58]OFD Sender: To server: pG, [07:34:58]CommunicateWithHost lk.salyk.kg:30040 [07:34:58]ConnectInit lk.salyk.kg [07:34:58]written 0, free lines is 4095 [07:34:58]Connected sock=10 [07:34:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 D2 04 01 F0 AE 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AB B2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 86 02 00 35 04 06 00 6B E2 0A CA 69 20 88 2D 42 6B 35 D9 06 19 [07:34:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CE 3E 47 00 CF 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 31 37 35 39 10 04 04 00 AA 86 02 00 F4 03 04 00 1E 59 14 67 B6 04 01 00 00 FF C8 31 4D BA A6 EA 6D [07:34:58]CommunicateWithHost err = 0 [07:34:58]CheckOFDResponse [07:34:58]1017 (14) - 77093643461234 [07:34:58]1041 (16) - 0000000000871759 [07:34:58]1040 (4) - 165546 [07:34:58]1012 (4) - 20.10.2024 01:13 [07:34:58]1206 (1) - 0 [07:34:58]OFD Sender: Remove packet 165546 [07:34:58]ProducePacketName [07:34:58]name=ofd_packets/00165546 [07:34:58]NVStorageDeleteData [07:34:58]Write to MH i2c: 01 00 00 E2 C3 A5 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 07 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 07 00 E2 C3 00 00 00 00 00 A9 0C 61 [07:34:58]RasterBufferAndPrint [07:34:58]line [07:34:58]line [07:34:58]line [07:34:58]line [07:34:58]line [07:34:58]written 0, free lines is 3249 [07:34:58]MH_Cut [07:34:58]Write to MH i2c: D1 01 00 E9 C3 01 7E [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: D1 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: D1 01 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: D1 01 00 E9 C3 00 7D [07:34:58]Write to MH i2c: 01 00 00 EA C3 AD [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:59]OFD Sender: No OFD packet to send [07:34:59]*** Cut start [07:34:59]*** Partial cut [07:34:59]*** CUTSNS_PIN = 1 [07:34:59]*** CUTSNS_PIN = 0 [07:34:59]*** Brake cut motor [07:35:00]Read from MH i2c: 01 [07:35:00]MH_I2C_Read... [07:35:00]*** Stop cut motor [07:35:00]*** Cut end [07:35:00]Read from MH i2c: 01 07 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: 01 07 00 EA C3 00 00 00 00 00 FF 0F C2 [07:35:00]process_action close_receipt done [07:35:00]requested_data is exist [07:35:00]produce_requested_data [07:35:00]requested_item fm.sn is exist - process it [07:35:00]wFMCommunicate request_size=4 [07:35:00]MH_SAM_APDU [07:35:00]CAPDU: 80 11 00 00 [07:35:00]Write to MH i2c: E2 08 00 EB C3 80 11 00 00 00 00 00 00 28 [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:00]Read from MH i2c: E2 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 17 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 17 00 EB C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [07:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:35:00]wFMCommunicate OK [07:35:00]requested_item fd.num is exist - process it [07:35:00]SAM_PROTO_GetFieldsCounters [07:35:00]wFMCommunicate request_size=4 [07:35:00]MH_SAM_APDU [07:35:00]CAPDU: 80 13 00 00 [07:35:00]Write to MH i2c: E2 08 00 EC C3 80 13 00 00 00 00 00 00 2B [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:00]Read from MH i2c: E2 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 62 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 62 00 EC C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [07: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:00]wFMCommunicate OK [07:35:00]SAM_PROTO_GetFieldsCounters done [07:35:00]requested_item shift.num is exist - process it [07:35:00]requested_item shift.opened is exist - process it [07:35:00]req_shift_opened [07:35:00]FM_GetShiftState [07:35:00]SAM_PROTO_GetShiftState [07:35:00]wFMCommunicate request_size=4 [07:35:00]MH_SAM_APDU [07:35:00]CAPDU: 80 13 01 00 [07:35:00]Write to MH i2c: E2 08 00 ED C3 80 13 01 00 00 00 00 00 2D [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:00]Read from MH i2c: E2 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 0E 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 0E 00 ED C3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 75 [07:35:00]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:35:00]wFMCommunicate OK [07:35:00]SAM_PROTO_GetShiftState done [07:35:00]FM_GetShiftState done [07:35:00]req_shift_opened done [07:35:00]requested_item shift.open_date is exist - process it [07:35:00]req_shift_open_date [07:35:00]req_shift_open_date done [07:35:00]produce_requested_data done [07:35:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165546,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:35:00]process_action_free close_receipt [07:35:00]json_value_free [07:35:00]json_value_free done [07:35:00]process_json_proto returns [07:35:00]Send response to host [07:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165546,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:35:00]free response buf [07:35:00]execute_script done [07:35:00]execute_script returns [07:35:00]free content buf [07:35:00]Sock 9.Close socket [07:35:00]Sock 9.Thread stoped [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:41]accept exits with 7 [07:36:41]New connection [07:36:41]New thread 3066920292 created [07:36:41]Thread 3066776932 joined [07:36:41]Waiting for new connection... [07:36:41] Sock 7.Parse request [07:36:41]Sock 7.Check first char [07:36:41]Sock 7.First char is OK [07:36:41]request: POST /json_proto HTTP/1.0 [07:36:41]Method: POST [07:36:41]URL: /json_proto [07:36:41]Method is POST - this is cgi request [07:36:41]url: /json_proto [07:36:41]query_string will be loaded in cgi processing [07:36:41]execute_cgi json_proto POST (null) [07:36:41]execute_cgi path=json_proto method=POST [07:36:41]POST find Content-Length [07:36:41]Host: 172.17.53.195:8080 [07:36:41]Content-Length: 766 [07:36:41]Content-Type: application/json [07:36:41] [07:36:41]POST finish read [07:36:41]Found Content-Length = 766 [07:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:41]execute_script... [07:36: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)220106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:41]POST & json_proto [07:36:41]process_json_proto [07:36:41]json parsed OK: [07:36:41]protocol is kg_v1.0 [07:36:41]action value=close_receipt [07:36:41]process_action close_receipt [07:36:41]cmd_close_receipt [07:36:41]MH_GetDate [07:36:41]Write to MH i2c: F0 00 00 EE C3 A0 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: F0 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: F0 09 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: F0 09 00 EE C3 00 14 B3 14 67 21 48 4A 65 03 [07:36:41]GetLastDocTimeStamp 1729409707 [07:36:41]current date 1729409812 [07:36:41]FM_GetShiftState [07:36:41]SAM_PROTO_GetShiftState [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 13 01 00 [07:36:41]Write to MH i2c: E2 08 00 EF C3 80 13 01 00 00 00 00 00 2F [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 0E 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 0E 00 EF C3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 77 [07:36:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:36:41]wFMCommunicate OK [07:36:41]SAM_PROTO_GetShiftState done [07:36:41]FM_GetShiftState done [07:36:41]opened in 1729384561 [07:36:41]opened+sec_in_day 1729470961 [07:36:41]quantity*price = 350062 [07:36:41]sum+1 = 350064 [07:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.63 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 29 20.10.2024 07:36 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165547 ФПД: 111167308786906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073652&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165547&fm=111167308786906&tin=02508201610067®Number=0000000000091764&sum=350063 [07:36:42]StoreToDocumentArchive [07:36:42]shift 534 fd 165547 [07:36:42]save to /storage/0534/doc_00165547 [07:36:42]save last doc name /storage/0534/doc_00165547 to /storage/kkm_last_doc_name [07:36:42]save OK [07:36:42]Clear old archive folders... [07:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:36:42]tlvbuf is 016AB4A0 [07:36:42]SAM_PROTO_ClearQueue [07:36:42]wFMCommunicate request_size=4 [07:36:42]MH_SAM_APDU [07:36:42]CAPDU: 80 09 00 00 [07:36:42]Write to MH i2c: E2 08 00 FC C3 80 09 00 00 00 00 00 00 31 [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:42]Read from MH i2c: E2 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 03 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 03 00 FC C3 00 90 00 33 [07:36:42]RAPDU: 90 00 [07:36:42]wFMCommunicate OK [07:36:42]SAM_PROTO_ClearQueue done [07:36:42]KKMCreateOFDPacket [07:36:42]OFDProtocolAddRootSTLVToBuf [07:36:42]FM_MakeSignedData [07:36:42]FM_MakeSignedData [07:36:42]SAM_PROTO_SignData [07:36:42]wFMCommunicate request_size=4 [07:36:42]MH_SAM_APDU [07:36:42]CAPDU: 80 0D 01 02 [07:36:42]Write to MH i2c: E2 08 00 FD C3 80 0D 01 02 00 00 00 00 39 [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:42]Read from MH i2c: E2 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 03 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 03 00 FD C3 00 90 00 34 [07:36:42]RAPDU: 90 00 [07:36:42]wFMCommunicate OK [07:36:42]wFMCommunicate request_size=255 [07:36:42]MH_SAM_APDU [07:36:42]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 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 14 B3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 86 02 00 35 04 06 00 65 1B 27 F3 [07:36:42]Write to MH i2c: E2 02 01 FE C3 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 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 14 B3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 86 02 00 35 04 06 00 65 1B 27 F3 00 00 38 [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 [07:36:42]MH_I2C_Read... [07:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:42]Read from MH i2c: E2 03 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 03 00 FE C3 00 90 00 35 [07:36:42]RAPDU: 90 00 [07:36:42]wFMCommunicate OK [07:36:42]wFMCommunicate request_size=7 [07:36:42]MH_SAM_APDU [07:36:42]CAPDU: 80 0D 02 02 02 6C DA [07:36:42]Write to MH i2c: E2 0A 00 FF C3 80 0D 02 02 02 00 6C DA 00 00 86 [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:42]Read from MH i2c: E2 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 03 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 03 00 FF C3 00 90 00 36 [07:36:42]RAPDU: 90 00 [07:36:42]wFMCommunicate OK [07:36:42]wFMCommunicate request_size=4 [07:36:42]MH_SAM_APDU [07:36:42]CAPDU: 80 0D 03 02 [07:36:42]Write to MH i2c: E2 08 00 00 C4 80 0D 03 02 00 00 00 00 3F [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:42]Read from MH i2c: E2 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 0B 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 0B 00 00 C4 00 37 AC 2E 82 42 D8 B1 6B 90 00 09 [07:36:42]RAPDU: 37 AC 2E 82 42 D8 B1 6B 90 00 [07:36:42]wFMCommunicate OK [07:36:42]SAM_PROTO_SignData done [07:36:42]FM_MakeSignedData done [07:36:42]CreateOFDProtocolMessage [07:36:42]wFMCommunicate request_size=4 [07:36:42]MH_SAM_APDU [07:36:42]CAPDU: 80 11 00 00 [07:36:42]Write to MH i2c: E2 08 00 01 C4 80 11 00 00 00 00 00 00 3F [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:42]Read from MH i2c: E2 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 17 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: E2 17 00 01 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [07:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:36:42]wFMCommunicate OK [07:36:42]CreateOFDProtocolMessage done [07:36:42]OFDSenderStorePacket 165547 [07:36:42]StoreOFDPacket docnum=165547 [07:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 58 E9 04 01 81 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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 14 B3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 86 02 00 35 04 06 00 65 1B 27 F3 6C DA 37 AC 2E 82 42 D8 B1 6B [07:36:42]CheckFolder [07:36:42]dirname=/storage/ofd_packets [07:36:42]CheckFolder done [07:36:42]ProducePacketName [07:36:42]name=ofd_packets/00165547 [07:36:42]NVStorageSaveData ofd_packets/00165547 [07:36:42]File name is /storage/ofd_packets/00165547 [07:36:42]Write 298 bytes [07:36:42]NVStorageSaveData done [07:36:42]OFDSenderStorePacket done [07:36:42]KKMCreateOFDPacket done [07:36:42]NVStorageSaveData kkm_last_timestamp [07:36:42]File name is /storage/kkm_last_timestamp [07:36:42]Write 4 bytes [07:36:42]NVStorageSaveData done [07:36:42]ExternCall_PrintAddStr [07:36:42]wPrintStart [07:36:42]Write to MH i2c: 01 00 00 02 C4 C6 [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: 01 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: 01 07 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: 01 07 00 02 C4 00 00 00 00 00 FF 0F DB [07:36:42]RasterBufferAndPrint [07:36:42]line Счет N : (1)220106 [07:36:42]line ИНН: 02508201610067 [07:36:42]line Контрольно-Кассовый Чек [07:36:42]line ПРОДАЖА [07:36:42]line ТРК (МРК, ГНК) : 31 [07:36:42]line Товар: 2710194210 [07:36:42]line ДТ-К-5 [07:36:42]line 45.940 * 76.20 [07:36:42]line = 3500.63 [07:36:42]line НДС 12% НСП 1% [07:36:42]line > о реализуемом товаре [07:36:42]line ИТОГО: 3500.63 [07:36:42]line НСП 1% : 30.98 [07:36:42]line НДС 12% : 371.75 [07:36:42]line Наличными: 0.00 [07:36:42]line Безнал.: 3500.63 [07:36:42]line Место: АЗС № 161 "Партнер Нефть" [07:36:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:36:42]line СНО: Общий режим [07:36:42]line Чек 29 20.10.2024 07:36 [07:36:42]line Смена: 534 ФФД: 1.0 [07:36:42]line ЗНМ: 0300000104 [07:36:42]line РНМ: 0000000000091764 [07:36:42]line Версия ККМ: 001 [07:36:42]line Платежная система: Mbank [07:36:42]line ФМ: 0000000000871759 [07:36:42]line ФД: 165547 [07:36:42]line ФПД: 111167308786906 [07:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073652&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165547&fm=111167308786906&tin=02508201610067®Number=0000000000091764&sum=350063 [07:36:43]OFD Sender: Processing packet 165547 [packets to send 48, broken 47] [07:36:43]ProducePacketName [07:36:43]name=ofd_packets/00165547 [07:36:43]OFD Sender: To server: pG, [07:36:43]CommunicateWithHost lk.salyk.kg:30040 [07:36:43]ConnectInit lk.salyk.kg [07:36:43]written 0, free lines is 4095 [07:36:43]Connected sock=10 [07:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 58 E9 04 01 81 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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 14 B3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 86 02 00 35 04 06 00 65 1B 27 F3 6C DA 37 AC 2E 82 42 D8 B1 6B [07:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3B 97 47 00 2F 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 31 37 35 39 10 04 04 00 AB 86 02 00 F4 03 04 00 86 59 14 67 B6 04 01 00 00 5A 42 DE 61 33 0C 54 57 [07:36:43]CommunicateWithHost err = 0 [07:36:43]CheckOFDResponse [07:36:43]1017 (14) - 77093643461234 [07:36:43]1041 (16) - 0000000000871759 [07:36:43]1040 (4) - 165547 [07:36:43]1012 (4) - 20.10.2024 01:14 [07:36:43]1206 (1) - 0 [07:36:43]OFD Sender: Remove packet 165547 [07:36:43]ProducePacketName [07:36:43]name=ofd_packets/00165547 [07:36:43]NVStorageDeleteData [07:36:43]Write to MH i2c: 01 00 00 2B C4 EF [07:36:43]Write i2c OK [07:36:43]MH_I2C_Read... [07:36:43]Read from MH i2c: 01 [07:36:43]MH_I2C_Read... [07:36:43]Read from MH i2c: 01 07 00 [07:36:43]MH_I2C_Read... [07:36:43]Read from MH i2c: 01 07 00 2B C4 00 00 00 00 00 D2 0C D4 [07:36:43]RasterBufferAndPrint [07:36:43]line [07:36:43]line [07:36:43]line [07:36:43]line [07:36:43]line [07:36:43]written 0, free lines is 3287 [07:36:43]MH_Cut [07:36:43]Write to MH i2c: D1 01 00 32 C4 01 C8 [07:36:43]Write i2c OK [07:36:43]MH_I2C_Read... [07:36:43]Read from MH i2c: D1 [07:36:43]MH_I2C_Read... [07:36:43]Read from MH i2c: D1 01 00 [07:36:43]MH_I2C_Read... [07:36:43]Read from MH i2c: D1 01 00 32 C4 00 C7 [07:36:43]Write to MH i2c: 01 00 00 33 C4 F7 [07:36:43]Write i2c OK [07:36:43]MH_I2C_Read... [07:36:44]OFD Sender: No OFD packet to send [07:36:44]*** Cut start [07:36:44]*** Partial cut [07:36:44]*** CUTSNS_PIN = 1 [07:36:44]*** CUTSNS_PIN = 0 [07:36:44]*** Brake cut motor [07:36:45]Read from MH i2c: 01 [07:36:45]MH_I2C_Read... [07:36:45]*** Stop cut motor [07:36:45]*** Cut end [07:36:45]Read from MH i2c: 01 07 00 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: 01 07 00 33 C4 00 00 00 00 00 FF 0F 0C [07:36:45]process_action close_receipt done [07:36:45]requested_data is exist [07:36:45]produce_requested_data [07:36:45]requested_item fm.sn is exist - process it [07:36:45]wFMCommunicate request_size=4 [07:36:45]MH_SAM_APDU [07:36:45]CAPDU: 80 11 00 00 [07:36:45]Write to MH i2c: E2 08 00 34 C4 80 11 00 00 00 00 00 00 72 [07:36:45]Write i2c OK [07:36:45]MH_I2C_Read... [07:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:45]Read from MH i2c: E2 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 17 00 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 17 00 34 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [07:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:36:45]wFMCommunicate OK [07:36:45]requested_item fd.num is exist - process it [07:36:45]SAM_PROTO_GetFieldsCounters [07:36:45]wFMCommunicate request_size=4 [07:36:45]MH_SAM_APDU [07:36:45]CAPDU: 80 13 00 00 [07:36:45]Write to MH i2c: E2 08 00 35 C4 80 13 00 00 00 00 00 00 75 [07:36:45]Write i2c OK [07:36:45]MH_I2C_Read... [07:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:45]Read from MH i2c: E2 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 62 00 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 62 00 35 C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [07:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:45]wFMCommunicate OK [07:36:45]SAM_PROTO_GetFieldsCounters done [07:36:45]requested_item shift.num is exist - process it [07:36:45]requested_item shift.opened is exist - process it [07:36:45]req_shift_opened [07:36:45]FM_GetShiftState [07:36:45]SAM_PROTO_GetShiftState [07:36:45]wFMCommunicate request_size=4 [07:36:45]MH_SAM_APDU [07:36:45]CAPDU: 80 13 01 00 [07:36:45]Write to MH i2c: E2 08 00 36 C4 80 13 01 00 00 00 00 00 77 [07:36:45]Write i2c OK [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 [07:36:45]MH_I2C_Read... [07:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:45]Read from MH i2c: E2 0E 00 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 0E 00 36 C4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BF [07:36:45]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:36:45]wFMCommunicate OK [07:36:45]SAM_PROTO_GetShiftState done [07:36:45]FM_GetShiftState done [07:36:45]req_shift_opened done [07:36:45]requested_item shift.open_date is exist - process it [07:36:45]req_shift_open_date [07:36:45]req_shift_open_date done [07:36:45]produce_requested_data done [07:36:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165547,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:36:45]process_action_free close_receipt [07:36:45]json_value_free [07:36:45]json_value_free done [07:36:45]process_json_proto returns [07:36:45]Send response to host [07:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165547,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:36:45]free response buf [07:36:45]execute_script done [07:36:45]execute_script returns [07:36:45]free content buf [07:36:45]Sock 7.Close socket [07:36:45]Sock 7.Thread stoped [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:37:59]accept exits with 9 [07:37:59]New connection [07:37:59]New thread 3066776932 created [07:37:59]Thread 3066920292 joined [07:37:59]Waiting for new connection... [07:37:59] Sock 9.Parse request [07:37:59]Sock 9.Check first char [07:37:59]Sock 9.First char is OK [07:37:59]request: POST /json_proto HTTP/1.0 [07:37:59]Method: POST [07:37:59]URL: /json_proto [07:37:59]Method is POST - this is cgi request [07:37:59]url: /json_proto [07:37:59]query_string will be loaded in cgi processing [07:37:59]execute_cgi json_proto POST (null) [07:37:59]execute_cgi path=json_proto method=POST [07:37:59]POST find Content-Length [07:37:59]Host: 172.17.53.195:8080 [07:37:59]Content-Length: 675 [07:37:59]Content-Type: application/json [07:37:59] [07:37:59]POST finish read [07:37:59]Found Content-Length = 675 [07:37:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220107", "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" : 76.20, "quantity" : 11.810, "sum" : 899.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 899.00, "payments": [ { "type": 0, "sum" : 899.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:59]execute_script... [07:37: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)220107", "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" : 76.20, "quantity" : 11.810, "sum" : 899.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 899.00, "payments": [ { "type": 0, "sum" : 899.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:59]POST & json_proto [07:37:59]process_json_proto [07:37:59]json parsed OK: [07:37:59]protocol is kg_v1.0 [07:37:59]action value=close_receipt [07:37:59]process_action close_receipt [07:37:59]cmd_close_receipt [07:37:59]MH_GetDate [07:37:59]Write to MH i2c: F0 00 00 37 C4 EA [07:37:59]Write i2c OK [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: F0 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: F0 09 00 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: F0 09 00 37 C4 00 62 B3 14 67 21 48 4A 65 9B [07:37:59]GetLastDocTimeStamp 1729409812 [07:37:59]current date 1729409890 [07:37:59]FM_GetShiftState [07:37:59]SAM_PROTO_GetShiftState [07:37:59]wFMCommunicate request_size=4 [07:37:59]MH_SAM_APDU [07:37:59]CAPDU: 80 13 01 00 [07:37:59]Write to MH i2c: E2 08 00 38 C4 80 13 01 00 00 00 00 00 79 [07:37:59]Write i2c OK [07:37:59]MH_I2C_Read... [07:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:59]Read from MH i2c: E2 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: E2 0E 00 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: E2 0E 00 38 C4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C1 [07:37:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:37:59]wFMCommunicate OK [07:37:59]SAM_PROTO_GetShiftState done [07:37:59]FM_GetShiftState done [07:37:59]opened in 1729384561 [07:37:59]opened+sec_in_day 1729470961 [07:37:59]quantity*price = 89992 [07:37:59]sum+1 = 89993 [07:37:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 899.00 Внесено: 900.00 СДАЧА: 1.00 НСП 1% : 7.96 НДС 12% : 95.57 Наличными: 899.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 30 20.10.2024 07:38 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165548 ФПД: 13577184395466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073810&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165548&fm=13577184395466&tin=02508201610067®Number=0000000000091764&sum=89900 [07:38:00]StoreToDocumentArchive [07:38:00]shift 534 fd 165548 [07:38:00]save to /storage/0534/doc_00165548 [07:38:00]save last doc name /storage/0534/doc_00165548 to /storage/kkm_last_doc_name [07:38:00]save OK [07:38:00]Clear old archive folders... [07:38:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:38:00]tlvbuf is 0166AF00 [07:38:00]SAM_PROTO_ClearQueue [07:38:00]wFMCommunicate request_size=4 [07:38:00]MH_SAM_APDU [07:38:00]CAPDU: 80 09 00 00 [07:38:00]Write to MH i2c: E2 08 00 45 C4 80 09 00 00 00 00 00 00 7B [07:38:00]Write i2c OK [07:38:00]MH_I2C_Read... [07:38:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:00]Read from MH i2c: E2 [07:38:00]MH_I2C_Read... [07:38:00]Read from MH i2c: E2 03 00 [07:38:00]MH_I2C_Read... [07:38:00]Read from MH i2c: E2 03 00 45 C4 00 90 00 7D [07:38:00]RAPDU: 90 00 [07:38:00]wFMCommunicate OK [07:38:00]SAM_PROTO_ClearQueue done [07:38:00]KKMCreateOFDPacket [07:38:00]OFDProtocolAddRootSTLVToBuf [07:38:00]FM_MakeSignedData [07:38:00]FM_MakeSignedData [07:38:00]SAM_PROTO_SignData [07:38:00]wFMCommunicate request_size=4 [07:38:00]MH_SAM_APDU [07:38:00]CAPDU: 80 0D 01 02 [07:38:00]Write to MH i2c: E2 08 00 46 C4 80 0D 01 02 00 00 00 00 83 [07:38:00]Write i2c OK [07:38:00]MH_I2C_Read... [07:38:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:00]Read from MH i2c: E2 [07:38:00]MH_I2C_Read... [07:38:00]Read from MH i2c: E2 03 00 [07:38:00]MH_I2C_Read... [07:38:00]Read from MH i2c: E2 03 00 46 C4 00 90 00 7E [07:38:00]RAPDU: 90 00 [07:38:00]wFMCommunicate OK [07:38:00]wFMCommunicate request_size=255 [07:38:00]MH_SAM_APDU [07:38: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 22 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 1E 00 00 00 F4 03 04 00 62 B3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 86 02 00 35 04 06 00 0C 59 2F 40 [07:38:00]Write to MH i2c: E2 02 01 47 C4 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 22 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 1E 00 00 00 F4 03 04 00 62 B3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 86 02 00 35 04 06 00 0C 59 2F 40 00 00 7F [07:38:00]Write i2c OK [07:38:00]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 03 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 03 00 47 C4 00 90 00 7F [07:38:01]RAPDU: 90 00 [07:38:01]wFMCommunicate OK [07:38:01]wFMCommunicate request_size=7 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 0D 02 02 02 C0 CA [07:38:01]Write to MH i2c: E2 0A 00 48 C4 80 0D 02 02 02 00 C0 CA 00 00 14 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 03 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 03 00 48 C4 00 90 00 80 [07:38:01]RAPDU: 90 00 [07:38:01]wFMCommunicate OK [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 0D 03 02 [07:38:01]Write to MH i2c: E2 08 00 49 C4 80 0D 03 02 00 00 00 00 88 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 0B 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 0B 00 49 C4 00 0B 37 99 AF 1C 15 AF D1 90 00 C4 [07:38:01]RAPDU: 0B 37 99 AF 1C 15 AF D1 90 00 [07:38:01]wFMCommunicate OK [07:38:01]SAM_PROTO_SignData done [07:38:01]FM_MakeSignedData done [07:38:01]CreateOFDProtocolMessage [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 11 00 00 [07:38:01]Write to MH i2c: E2 08 00 4A C4 80 11 00 00 00 00 00 00 88 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 17 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 17 00 4A C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [07:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:38:01]wFMCommunicate OK [07:38:01]CreateOFDProtocolMessage done [07:38:01]OFDSenderStorePacket 165548 [07:38:01]StoreOFDPacket docnum=165548 [07:38:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5C A0 04 01 B7 A6 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 22 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 1E 00 00 00 F4 03 04 00 62 B3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 86 02 00 35 04 06 00 0C 59 2F 40 C0 CA 0B 37 99 AF 1C 15 AF D1 [07:38:01]CheckFolder [07:38:01]dirname=/storage/ofd_packets [07:38:01]CheckFolder done [07:38:01]ProducePacketName [07:38:01]name=ofd_packets/00165548 [07:38:01]NVStorageSaveData ofd_packets/00165548 [07:38:01]File name is /storage/ofd_packets/00165548 [07:38:01]Write 298 bytes [07:38:01]NVStorageSaveData done [07:38:01]OFDSenderStorePacket done [07:38:01]KKMCreateOFDPacket done [07:38:01]NVStorageSaveData kkm_last_timestamp [07:38:01]File name is /storage/kkm_last_timestamp [07:38:01]Write 4 bytes [07:38:01]NVStorageSaveData done [07:38:01]ExternCall_PrintAddStr [07:38:01]wPrintStart [07:38:01]Write to MH i2c: 01 00 00 4B C4 0F [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: 01 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: 01 07 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: 01 07 00 4B C4 00 00 00 00 00 FF 0F 24 [07:38:01]RasterBufferAndPrint [07:38:01]line Счет N : (1)220107 [07:38:01]line ИНН: 02508201610067 [07:38:01]line Контрольно-Кассовый Чек [07:38:01]line ПРОДАЖА [07:38:01]line ТРК (МРК, ГНК) : 11 [07:38:01]line Товар: 2710194210 [07:38:01]line ДТ-К-5 [07:38:01]line 11.810 * 76.20 [07:38:01]line = 899.92 [07:38:01]line НДС 12% НСП 1% [07:38:01]line > о реализуемом товаре [07:38:01]line ОКРУГЛЕНИЕ: -0.92 [07:38:01]line ИТОГО: 899.00 [07:38:01]line Внесено: 900.00 [07:38:01]line СДАЧА: 1.00 [07:38:01]line НСП 1% : 7.96 [07:38:01]line НДС 12% : 95.57 [07:38:01]line Наличными: 899.00 [07:38:01]line Безнал.: 0.00 [07:38:01]line Место: АЗС № 161 "Партнер Нефть" [07:38:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:38:01]line СНО: Общий режим [07:38:01]line Чек 30 20.10.2024 07:38 [07:38:01]line Смена: 534 ФФД: 1.0 [07:38:01]line ЗНМ: 0300000104 [07:38:01]line РНМ: 0000000000091764 [07:38:01]line Версия ККМ: 001 [07:38:01]line ФМ: 0000000000871759 [07:38:01]line ФД: 165548 [07:38:01]line ФПД: 13577184395466 [07:38:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073810&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165548&fm=13577184395466&tin=02508201610067®Number=0000000000091764&sum=89900 [07:38:01]OFD Sender: Processing packet 165548 [packets to send 48, broken 47] [07:38:01]ProducePacketName [07:38:01]name=ofd_packets/00165548 [07:38:01]OFD Sender: To server: pG, [07:38:01]CommunicateWithHost lk.salyk.kg:30040 [07:38:01]ConnectInit lk.salyk.kg [07:38:01]written 0, free lines is 4095 [07:38:01]Connected sock=10 [07:38:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5C A0 04 01 B7 A6 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 22 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 1E 00 00 00 F4 03 04 00 62 B3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 86 02 00 35 04 06 00 0C 59 2F 40 C0 CA 0B 37 99 AF 1C 15 AF D1 [07:38:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E4 84 47 00 46 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 86 02 00 F4 03 04 00 D5 59 14 67 B6 04 01 00 00 1E F3 BB C4 03 08 64 29 [07:38:01]CommunicateWithHost err = 0 [07:38:01]CheckOFDResponse [07:38:01]1017 (14) - 77093643461234 [07:38:01]1041 (16) - 0000000000871759 [07:38:01]1040 (4) - 165548 [07:38:01]1012 (4) - 20.10.2024 01:16 [07:38:01]1206 (1) - 0 [07:38:01]OFD Sender: Remove packet 165548 [07:38:01]ProducePacketName [07:38:01]name=ofd_packets/00165548 [07:38:01]NVStorageDeleteData [07:38:02]Write to MH i2c: 01 00 00 76 C4 3A [07:38:02]Write i2c OK [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: 01 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: 01 07 00 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: 01 07 00 76 C4 00 00 00 00 00 A1 0C EE [07:38:02]RasterBufferAndPrint [07:38:02]line [07:38:02]line [07:38:02]line [07:38:02]line [07:38:02]line [07:38:02]written 0, free lines is 3239 [07:38:02]MH_Cut [07:38:02]Write to MH i2c: D1 01 00 7D C4 01 13 [07:38:02]Write i2c OK [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: D1 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: D1 01 00 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: D1 01 00 7D C4 00 12 [07:38:02]Write to MH i2c: 01 00 00 7E C4 42 [07:38:02]Write i2c OK [07:38:02]MH_I2C_Read... [07:38:02]OFD Sender: No OFD packet to send [07:38:02]*** Cut start [07:38:02]*** Partial cut [07:38:02]*** CUTSNS_PIN = 1 [07:38:02]*** CUTSNS_PIN = 0 [07:38:03]*** Brake cut motor [07:38:03]Read from MH i2c: 01 [07:38:03]MH_I2C_Read... [07:38:03]*** Stop cut motor [07:38:03]*** Cut end [07:38:03]Read from MH i2c: 01 07 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: 01 07 00 7E C4 00 00 00 00 00 FF 0F 57 [07:38:03]process_action close_receipt done [07:38:03]requested_data is exist [07:38:03]produce_requested_data [07:38:03]requested_item fm.sn is exist - process it [07:38:03]wFMCommunicate request_size=4 [07:38:03]MH_SAM_APDU [07:38:03]CAPDU: 80 11 00 00 [07:38:03]Write to MH i2c: E2 08 00 7F C4 80 11 00 00 00 00 00 00 BD [07:38:03]Write i2c OK [07:38:03]MH_I2C_Read... [07:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:03]Read from MH i2c: E2 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 17 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 17 00 7F C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [07:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:38:03]wFMCommunicate OK [07:38:03]requested_item fd.num is exist - process it [07:38:03]SAM_PROTO_GetFieldsCounters [07:38:03]wFMCommunicate request_size=4 [07:38:03]MH_SAM_APDU [07:38:03]CAPDU: 80 13 00 00 [07:38:03]Write to MH i2c: E2 08 00 80 C4 80 13 00 00 00 00 00 00 C0 [07:38:03]Write i2c OK [07:38:03]MH_I2C_Read... [07:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:03]Read from MH i2c: E2 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 62 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 62 00 80 C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 86 02 00 0E 04 04 00 16 02 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 8E [07:38: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 86 02 00 0E 04 04 00 16 02 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 [07:38:03]wFMCommunicate OK [07:38:03]SAM_PROTO_GetFieldsCounters done [07:38:03]requested_item shift.num is exist - process it [07:38:03]requested_item shift.opened is exist - process it [07:38:03]req_shift_opened [07:38:03]FM_GetShiftState [07:38:03]SAM_PROTO_GetShiftState [07:38:03]wFMCommunicate request_size=4 [07:38:03]MH_SAM_APDU [07:38:03]CAPDU: 80 13 01 00 [07:38:03]Write to MH i2c: E2 08 00 81 C4 80 13 01 00 00 00 00 00 C2 [07:38:03]Write i2c OK [07:38:03]MH_I2C_Read... [07:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:03]Read from MH i2c: E2 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 0E 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 0E 00 81 C4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0A [07:38:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:38:03]wFMCommunicate OK [07:38:03]SAM_PROTO_GetShiftState done [07:38:03]FM_GetShiftState done [07:38:03]req_shift_opened done [07:38:03]requested_item shift.open_date is exist - process it [07:38:03]req_shift_open_date [07:38:03]req_shift_open_date done [07:38:03]produce_requested_data done [07:38:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165548,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:38:03]process_action_free close_receipt [07:38:03]json_value_free [07:38:03]json_value_free done [07:38:03]process_json_proto returns [07:38:03]Send response to host [07:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165548,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:38:03]free response buf [07:38:03]execute_script done [07:38:03]execute_script returns [07:38:03]free content buf [07:38:03]Sock 9.Close socket [07:38:03]Sock 9.Thread stoped [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:06]accept exits with 7 [07:42:06]New connection [07:42:06]New thread 3066920292 created [07:42:06]Thread 3066776932 joined [07:42:06]Waiting for new connection... [07:42:06] Sock 7.Parse request [07:42:06]Sock 7.Check first char [07:42:06]Sock 7.First char is OK [07:42:06]request: POST /json_proto HTTP/1.0 [07:42:06]Method: POST [07:42:06]URL: /json_proto [07:42:06]Method is POST - this is cgi request [07:42:06]url: /json_proto [07:42:06]query_string will be loaded in cgi processing [07:42:06]execute_cgi json_proto POST (null) [07:42:06]execute_cgi path=json_proto method=POST [07:42:06]POST find Content-Length [07:42:06]Host: 172.17.53.195:8080 [07:42:06]Content-Length: 682 [07:42:06]Content-Type: application/json [07:42:06] [07:42:06]POST finish read [07:42:06]Found Content-Length = 682 [07:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:06]execute_script... [07:42: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)220108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:06]POST & json_proto [07:42:06]process_json_proto [07:42:06]json parsed OK: [07:42:06]protocol is kg_v1.0 [07:42:06]action value=close_receipt [07:42:06]process_action close_receipt [07:42:06]cmd_close_receipt [07:42:06]MH_GetDate [07:42:06]Write to MH i2c: F0 00 00 82 C4 35 [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: F0 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: F0 09 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: F0 09 00 82 C4 00 59 B4 14 67 21 48 4A 65 DE [07:42:06]GetLastDocTimeStamp 1729409890 [07:42:06]current date 1729410137 [07:42:06]FM_GetShiftState [07:42:06]SAM_PROTO_GetShiftState [07:42:06]wFMCommunicate request_size=4 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 13 01 00 [07:42:06]Write to MH i2c: E2 08 00 83 C4 80 13 01 00 00 00 00 00 C4 [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:06]Read from MH i2c: E2 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 0E 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 0E 00 83 C4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0C [07:42:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:42:06]wFMCommunicate OK [07:42:06]SAM_PROTO_GetShiftState done [07:42:06]FM_GetShiftState done [07:42:06]opened in 1729384561 [07:42:06]opened+sec_in_day 1729470961 [07:42:06]quantity*price = 100015 [07:42:06]sum+1 = 100017 [07:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 31 20.10.2024 07:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165549 ФПД: 137316795154401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074217&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165549&fm=137316795154401&tin=02508201610067®Number=0000000000091764&sum=100000 [07:42:07]StoreToDocumentArchive [07:42:07]shift 534 fd 165549 [07:42:07]save to /storage/0534/doc_00165549 [07:42:07]save last doc name /storage/0534/doc_00165549 to /storage/kkm_last_doc_name [07:42:07]save OK [07:42:07]Clear old archive folders... [07:42:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:07]tlvbuf is 014DA630 [07:42:07]SAM_PROTO_ClearQueue [07:42:07]wFMCommunicate request_size=4 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 09 00 00 [07:42:07]Write to MH i2c: E2 08 00 90 C4 80 09 00 00 00 00 00 00 C6 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 90 C4 00 90 00 C8 [07:42:07]RAPDU: 90 00 [07:42:07]wFMCommunicate OK [07:42:07]SAM_PROTO_ClearQueue done [07:42:07]KKMCreateOFDPacket [07:42:07]OFDProtocolAddRootSTLVToBuf [07:42:07]FM_MakeSignedData [07:42:07]FM_MakeSignedData [07:42:07]SAM_PROTO_SignData [07:42:07]wFMCommunicate request_size=4 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 0D 01 02 [07:42:07]Write to MH i2c: E2 08 00 91 C4 80 0D 01 02 00 00 00 00 CE [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 91 C4 00 90 00 C9 [07:42:07]RAPDU: 90 00 [07:42:07]wFMCommunicate OK [07:42:07]wFMCommunicate request_size=255 [07:42:07]MH_SAM_APDU [07:42: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 59 B4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 86 02 00 35 04 06 00 7C [07:42:07]Write to MH i2c: E2 02 01 92 C4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 59 B4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 86 02 00 35 04 06 00 7C 00 00 CE [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]OFD Sender: No OFD packet to send [07:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 92 C4 00 90 00 CA [07:42:07]RAPDU: 90 00 [07:42:07]wFMCommunicate OK [07:42:07]wFMCommunicate request_size=10 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 0D 02 02 05 E3 8E CB FF E1 [07:42:07]Write to MH i2c: E2 0D 00 93 C4 80 0D 02 02 05 00 E3 8E CB FF E1 00 00 F7 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 93 C4 00 90 00 CB [07:42:07]RAPDU: 90 00 [07:42:07]wFMCommunicate OK [07:42:07]wFMCommunicate request_size=4 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 0D 03 02 [07:42:07]Write to MH i2c: E2 08 00 94 C4 80 0D 03 02 00 00 00 00 D3 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 0B 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 0B 00 94 C4 00 74 F3 A7 F8 74 DF 78 A4 90 00 49 [07:42:07]RAPDU: 74 F3 A7 F8 74 DF 78 A4 90 00 [07:42:07]wFMCommunicate OK [07:42:07]SAM_PROTO_SignData done [07:42:07]FM_MakeSignedData done [07:42:07]CreateOFDProtocolMessage [07:42:07]wFMCommunicate request_size=4 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 11 00 00 [07:42:07]Write to MH i2c: E2 08 00 95 C4 80 11 00 00 00 00 00 00 D3 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 17 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 17 00 95 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [07:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:42:07]wFMCommunicate OK [07:42:07]CreateOFDProtocolMessage done [07:42:07]OFDSenderStorePacket 165549 [07:42:07]StoreOFDPacket docnum=165549 [07:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 CA 07 01 7B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 59 B4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 86 02 00 35 04 06 00 7C E3 8E CB FF E1 74 F3 A7 F8 74 DF 78 A4 [07:42:07]CheckFolder [07:42:07]dirname=/storage/ofd_packets [07:42:07]CheckFolder done [07:42:07]ProducePacketName [07:42:07]name=ofd_packets/00165549 [07:42:07]NVStorageSaveData ofd_packets/00165549 [07:42:07]File name is /storage/ofd_packets/00165549 [07:42:07]Write 301 bytes [07:42:07]NVStorageSaveData done [07:42:07]OFDSenderStorePacket done [07:42:07]KKMCreateOFDPacket done [07:42:07]NVStorageSaveData kkm_last_timestamp [07:42:07]File name is /storage/kkm_last_timestamp [07:42:07]Write 4 bytes [07:42:07]NVStorageSaveData done [07:42:07]ExternCall_PrintAddStr [07:42:07]wPrintStart [07:42:07]Write to MH i2c: 01 00 00 96 C4 5A [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 07 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 07 00 96 C4 00 00 00 00 00 FF 0F 6F [07:42:07]RasterBufferAndPrint [07:42:07]line Счет N : (1)220108 [07:42:07]line ИНН: 02508201610067 [07:42:07]line Контрольно-Кассовый Чек [07:42:07]line ПРОДАЖА [07:42:07]line ТРК (МРК, ГНК) : 33 [07:42:07]line Товар: 2710124130 [07:42:07]line Аи-92-К-5 [07:42:07]line 14.950 * 66.90 [07:42:07]line = 1000.16 [07:42:07]line НДС 12% НСП 1% [07:42:07]line > о реализуемом товаре [07:42:07]line ОКРУГЛЕНИЕ: -0.16 [07:42:07]line ИТОГО: 1000.00 [07:42:07]line Внесено: 1000.00 [07:42:07]line СДАЧА: 0.00 [07:42:07]line НСП 1% : 8.85 [07:42:07]line НДС 12% : 106.21 [07:42:07]line Наличными: 1000.00 [07:42:07]line Безнал.: 0.00 [07:42:07]line Место: АЗС № 161 "Партнер Нефть" [07:42:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:42:07]line СНО: Общий режим [07:42:07]line Чек 31 20.10.2024 07:42 [07:42:07]line Смена: 534 ФФД: 1.0 [07:42:07]line ЗНМ: 0300000104 [07:42:07]line РНМ: 0000000000091764 [07:42:07]line Версия ККМ: 001 [07:42:07]line ФМ: 0000000000871759 [07:42:07]line ФД: 165549 [07:42:07]line ФПД: 137316795154401 [07:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074217&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165549&fm=137316795154401&tin=02508201610067®Number=0000000000091764&sum=100000 [07:42:08]OFD Sender: Processing packet 165549 [packets to send 48, broken 47] [07:42:08]ProducePacketName [07:42:08]name=ofd_packets/00165549 [07:42:08]OFD Sender: To server: pG, [07:42:08]CommunicateWithHost lk.salyk.kg:30040 [07:42:08]ConnectInit lk.salyk.kg [07:42:08]written 0, free lines is 4095 [07:42:08]Connected sock=10 [07:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 CA 07 01 7B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 59 B4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 86 02 00 35 04 06 00 7C E3 8E CB FF E1 74 F3 A7 F8 74 DF 78 A4 [07:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 3C 47 00 30 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 31 37 35 39 10 04 04 00 AD 86 02 00 F4 03 04 00 CC 5A 14 67 B6 04 01 00 00 0A D1 92 56 49 56 D4 49 [07:42:08]CommunicateWithHost err = 0 [07:42:08]CheckOFDResponse [07:42:08]1017 (14) - 77093643461234 [07:42:08]1041 (16) - 0000000000871759 [07:42:08]1040 (4) - 165549 [07:42:08]1012 (4) - 20.10.2024 01:20 [07:42:08]1206 (1) - 0 [07:42:08]OFD Sender: Remove packet 165549 [07:42:08]ProducePacketName [07:42:08]name=ofd_packets/00165549 [07:42:08]NVStorageDeleteData [07:42:08]Write to MH i2c: 01 00 00 C1 C4 85 [07:42:08]Write i2c OK [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: 01 [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: 01 07 00 [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: 01 07 00 C1 C4 00 00 00 00 00 B5 0C 4D [07:42:08]RasterBufferAndPrint [07:42:08]line [07:42:08]line [07:42:08]line [07:42:08]line [07:42:08]line [07:42:08]written 0, free lines is 3262 [07:42:08]MH_Cut [07:42:08]Write to MH i2c: D1 01 00 C8 C4 01 5E [07:42:08]Write i2c OK [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: D1 [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: D1 01 00 [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: D1 01 00 C8 C4 00 5D [07:42:08]Write to MH i2c: 01 00 00 C9 C4 8D [07:42:08]Write i2c OK [07:42:08]MH_I2C_Read... [07:42:09]OFD Sender: No OFD packet to send [07:42:09]*** Cut start [07:42:09]*** Partial cut [07:42:09]*** CUTSNS_PIN = 1 [07:42:09]*** CUTSNS_PIN = 0 [07:42:09]*** Brake cut motor [07:42:10]Read from MH i2c: 01 [07:42:10]MH_I2C_Read... [07:42:10]*** Stop cut motor [07:42:10]*** Cut end [07:42:10]Read from MH i2c: 01 07 00 [07:42:10]MH_I2C_Read... [07:42:10]Read from MH i2c: 01 07 00 C9 C4 00 00 00 00 00 FF 0F A2 [07:42:10]process_action close_receipt done [07:42:10]requested_data is exist [07:42:10]produce_requested_data [07:42:10]requested_item fm.sn is exist - process it [07:42:10]wFMCommunicate request_size=4 [07:42:10]MH_SAM_APDU [07:42:10]CAPDU: 80 11 00 00 [07:42:10]Write to MH i2c: E2 08 00 CA C4 80 11 00 00 00 00 00 00 08 [07:42:10]Write i2c OK [07:42:10]MH_I2C_Read... [07:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:10]Read from MH i2c: E2 [07:42:10]MH_I2C_Read... [07:42:10]Read from MH i2c: E2 17 00 [07:42:10]MH_I2C_Read... [07:42:10]Read from MH i2c: E2 17 00 CA C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [07:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:42:10]wFMCommunicate OK [07:42:10]requested_item fd.num is exist - process it [07:42:10]SAM_PROTO_GetFieldsCounters [07:42:10]wFMCommunicate request_size=4 [07:42:10]MH_SAM_APDU [07:42:10]CAPDU: 80 13 00 00 [07:42:10]Write to MH i2c: E2 08 00 CB C4 80 13 00 00 00 00 00 00 0B [07:42:10]Write i2c OK [07:42:10]MH_I2C_Read... [07:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:10]Read from MH i2c: E2 [07:42:10]MH_I2C_Read... [07:42:10]Read from MH i2c: E2 62 00 [07:42:10]MH_I2C_Read... [07:42:10]Read from MH i2c: E2 62 00 CB C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [07:42:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:10]wFMCommunicate OK [07:42:10]SAM_PROTO_GetFieldsCounters done [07:42:10]requested_item shift.num is exist - process it [07:42:10]requested_item shift.opened is exist - process it [07:42:10]req_shift_opened [07:42:10]FM_GetShiftState [07:42:10]SAM_PROTO_GetShiftState [07:42:10]wFMCommunicate request_size=4 [07:42:10]MH_SAM_APDU [07:42:10]CAPDU: 80 13 01 00 [07:42:10]Write to MH i2c: E2 08 00 CC C4 80 13 01 00 00 00 00 00 0D [07:42:10]Write i2c OK [07:42:10]MH_I2C_Read... [07:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:10]Read from MH i2c: E2 [07:42:10]MH_I2C_Read... [07:42:10]Read from MH i2c: E2 0E 00 [07:42:10]MH_I2C_Read... [07:42:10]Read from MH i2c: E2 0E 00 CC C4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 55 [07:42:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:42:10]wFMCommunicate OK [07:42:10]SAM_PROTO_GetShiftState done [07:42:10]FM_GetShiftState done [07:42:10]req_shift_opened done [07:42:10]requested_item shift.open_date is exist - process it [07:42:10]req_shift_open_date [07:42:10]req_shift_open_date done [07:42:10]produce_requested_data done [07:42:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165549,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:42:10]process_action_free close_receipt [07:42:10]json_value_free [07:42:10]json_value_free done [07:42:10]process_json_proto returns [07:42:10]Send response to host [07:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165549,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:42:10]free response buf [07:42:10]execute_script done [07:42:10]execute_script returns [07:42:10]free content buf [07:42:10]Sock 7.Close socket [07:42:10]Sock 7.Thread stoped [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:58]accept exits with 9 [07:43:58]New connection [07:43:58]New thread 3066776932 created [07:43:58]Thread 3066920292 joined [07:43:58]Waiting for new connection... [07:43:58] Sock 9.Parse request [07:43:58]Sock 9.Check first char [07:43:58]Sock 9.First char is OK [07:43:58]request: POST /json_proto HTTP/1.0 [07:43:58]Method: POST [07:43:58]URL: /json_proto [07:43:58]Method is POST - this is cgi request [07:43:58]url: /json_proto [07:43:58]query_string will be loaded in cgi processing [07:43:58]execute_cgi json_proto POST (null) [07:43:58]execute_cgi path=json_proto method=POST [07:43:58]POST find Content-Length [07:43:58]Host: 172.17.53.195:8080 [07:43:58]Content-Length: 677 [07:43:58]Content-Type: application/json [07:43:58] [07:43:58]POST finish read [07:43:58]Found Content-Length = 677 [07:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:58]execute_script... [07:43: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)220109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:58]POST & json_proto [07:43:58]process_json_proto [07:43:58]json parsed OK: [07:43:58]protocol is kg_v1.0 [07:43:58]action value=close_receipt [07:43:58]process_action close_receipt [07:43:58]cmd_close_receipt [07:43:58]MH_GetDate [07:43:58]Write to MH i2c: F0 00 00 CD C4 80 [07:43:58]Write i2c OK [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: F0 [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: F0 09 00 [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: F0 09 00 CD C4 00 C9 B4 14 67 21 48 4A 65 99 [07:43:58]GetLastDocTimeStamp 1729410137 [07:43:58]current date 1729410249 [07:43:58]FM_GetShiftState [07:43:58]SAM_PROTO_GetShiftState [07:43:58]wFMCommunicate request_size=4 [07:43:58]MH_SAM_APDU [07:43:58]CAPDU: 80 13 01 00 [07:43:58]Write to MH i2c: E2 08 00 CE C4 80 13 01 00 00 00 00 00 0F [07:43:58]Write i2c OK [07:43:58]MH_I2C_Read... [07:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:58]Read from MH i2c: E2 [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: E2 0E 00 [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: E2 0E 00 CE C4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 57 [07:43:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:43:58]wFMCommunicate OK [07:43:58]SAM_PROTO_GetShiftState done [07:43:58]FM_GetShiftState done [07:43:58]opened in 1729384561 [07:43:58]opened+sec_in_day 1729470961 [07:43:58]quantity*price = 20003 [07:43:58]sum+1 = 20004 [07:43: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 32 20.10.2024 07:44 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165550 ФПД: 105947148258977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074410&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165550&fm=105947148258977&tin=02508201610067®Number=0000000000091764&sum=20000 [07:43:59]StoreToDocumentArchive [07:43:59]shift 534 fd 165550 [07:43:59]save to /storage/0534/doc_00165550 [07:43:59]save last doc name /storage/0534/doc_00165550 to /storage/kkm_last_doc_name [07:43:59]save OK [07:43:59]Clear old archive folders... [07:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:59]tlvbuf is 016163D0 [07:43:59]SAM_PROTO_ClearQueue [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 09 00 00 [07:43:59]Write to MH i2c: E2 08 00 DB C4 80 09 00 00 00 00 00 00 11 [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 DB C4 00 90 00 13 [07:44:00]RAPDU: 90 00 [07:44:00]wFMCommunicate OK [07:44:00]SAM_PROTO_ClearQueue done [07:44:00]KKMCreateOFDPacket [07:44:00]OFDProtocolAddRootSTLVToBuf [07:44:00]FM_MakeSignedData [07:44:00]FM_MakeSignedData [07:44:00]SAM_PROTO_SignData [07:44:00]wFMCommunicate request_size=4 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 0D 01 02 [07:44:00]Write to MH i2c: E2 08 00 DC C4 80 0D 01 02 00 00 00 00 19 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 DC C4 00 90 00 14 [07:44:00]RAPDU: 90 00 [07:44:00]wFMCommunicate OK [07:44:00]wFMCommunicate request_size=255 [07:44:00]MH_SAM_APDU [07:44: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 CA B4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 86 02 00 35 04 06 00 60 [07:44:00]Write to MH i2c: E2 02 01 DD C4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 CA B4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 86 02 00 35 04 06 00 60 00 00 38 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 DD C4 00 90 00 15 [07:44:00]RAPDU: 90 00 [07:44:00]wFMCommunicate OK [07:44:00]wFMCommunicate request_size=10 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 0D 02 02 05 5B BE 23 0E A1 [07:44:00]Write to MH i2c: E2 0D 00 DE C4 80 0D 02 02 05 00 5B BE 23 0E A1 00 00 11 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 DE C4 00 90 00 16 [07:44:00]RAPDU: 90 00 [07:44:00]wFMCommunicate OK [07:44:00]wFMCommunicate request_size=4 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 0D 03 02 [07:44:00]Write to MH i2c: E2 08 00 DF C4 80 0D 03 02 00 00 00 00 1E [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 0B 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 0B 00 DF C4 00 12 36 07 D4 61 2F F3 DB 90 00 A0 [07:44:00]RAPDU: 12 36 07 D4 61 2F F3 DB 90 00 [07:44:00]wFMCommunicate OK [07:44:00]SAM_PROTO_SignData done [07:44:00]FM_MakeSignedData done [07:44:00]CreateOFDProtocolMessage [07:44:00]wFMCommunicate request_size=4 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 11 00 00 [07:44:00]Write to MH i2c: E2 08 00 E0 C4 80 11 00 00 00 00 00 00 1E [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 17 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 17 00 E0 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [07:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:44:00]wFMCommunicate OK [07:44:00]CreateOFDProtocolMessage done [07:44:00]OFDSenderStorePacket 165550 [07:44:00]StoreOFDPacket docnum=165550 [07:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 93 30 07 01 2B 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 CA B4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 86 02 00 35 04 06 00 60 5B BE 23 0E A1 12 36 07 D4 61 2F F3 DB [07:44:00]CheckFolder [07:44:00]dirname=/storage/ofd_packets [07:44:00]CheckFolder done [07:44:00]ProducePacketName [07:44:00]name=ofd_packets/00165550 [07:44:00]NVStorageSaveData ofd_packets/00165550 [07:44:00]File name is /storage/ofd_packets/00165550 [07:44:00]Write 301 bytes [07:44:00]NVStorageSaveData done [07:44:00]OFDSenderStorePacket done [07:44:00]KKMCreateOFDPacket done [07:44:00]NVStorageSaveData kkm_last_timestamp [07:44:00]File name is /storage/kkm_last_timestamp [07:44:00]Write 4 bytes [07:44:00]NVStorageSaveData done [07:44:00]ExternCall_PrintAddStr [07:44:00]wPrintStart [07:44:00]Write to MH i2c: 01 00 00 E1 C4 A5 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 07 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 07 00 E1 C4 00 00 00 00 00 FF 0F BA [07:44:00]RasterBufferAndPrint [07:44:00]line Счет N : (1)220109 [07:44:00]line ИНН: 02508201610067 [07:44:00]line Контрольно-Кассовый Чек [07:44:00]line ПРОДАЖА [07:44:00]line ТРК (МРК, ГНК) : 23 [07:44:00]line Товар: 2710124130 [07:44:00]line Аи-92-К-5 [07:44:00]line 2.990 * 66.90 [07:44:00]line = 200.03 [07:44:00]line НДС 12% НСП 1% [07:44:00]line > о реализуемом товаре [07:44:00]line ОКРУГЛЕНИЕ: -0.03 [07:44:00]line ИТОГО: 200.00 [07:44:00]line Внесено: 200.00 [07:44:00]line СДАЧА: 0.00 [07:44:00]line НСП 1% : 1.77 [07:44:00]line НДС 12% : 21.24 [07:44:00]line Наличными: 200.00 [07:44:00]line Безнал.: 0.00 [07:44:00]line Место: АЗС № 161 "Партнер Нефть" [07:44:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:44:00]line СНО: Общий режим [07:44:00]line Чек 32 20.10.2024 07:44 [07:44:00]line Смена: 534 ФФД: 1.0 [07:44:00]line ЗНМ: 0300000104 [07:44:00]line РНМ: 0000000000091764 [07:44:00]line Версия ККМ: 001 [07:44:00]line ФМ: 0000000000871759 [07:44:00]line ФД: 165550 [07:44:00]line ФПД: 105947148258977 [07:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074410&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165550&fm=105947148258977&tin=02508201610067®Number=0000000000091764&sum=20000 [07:44:00]OFD Sender: Processing packet 165550 [packets to send 48, broken 47] [07:44:00]ProducePacketName [07:44:00]name=ofd_packets/00165550 [07:44:00]OFD Sender: To server: pG, [07:44:00]CommunicateWithHost lk.salyk.kg:30040 [07:44:00]ConnectInit lk.salyk.kg [07:44:00]written 0, free lines is 4095 [07:44:01]Connected sock=11 [07:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 93 30 07 01 2B 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 CA B4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 86 02 00 35 04 06 00 60 5B BE 23 0E A1 12 36 07 D4 61 2F F3 DB [07:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A9 2B 47 00 61 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 86 02 00 F4 03 04 00 3C 5B 14 67 B6 04 01 00 00 D3 7A 92 EE 1E FF AE B6 [07:44:01]CommunicateWithHost err = 0 [07:44:01]CheckOFDResponse [07:44:01]1017 (14) - 77093643461234 [07:44:01]1041 (16) - 0000000000871759 [07:44:01]1040 (4) - 165550 [07:44:01]1012 (4) - 20.10.2024 01:22 [07:44:01]1206 (1) - 0 [07:44:01]OFD Sender: Remove packet 165550 [07:44:01]ProducePacketName [07:44:01]name=ofd_packets/00165550 [07:44:01]NVStorageDeleteData [07:44:01]Write to MH i2c: 01 00 00 0C C5 D1 [07:44:01]Write i2c OK [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: 01 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: 01 07 00 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: 01 07 00 0C C5 00 00 00 00 00 A8 0C 8C [07:44:01]RasterBufferAndPrint [07:44:01]line [07:44:01]line [07:44:01]line [07:44:01]line [07:44:01]line [07:44:01]written 0, free lines is 3245 [07:44:01]MH_Cut [07:44:01]Write to MH i2c: D1 01 00 13 C5 01 AA [07:44:01]Write i2c OK [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: D1 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: D1 01 00 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: D1 01 00 13 C5 00 A9 [07:44:01]Write to MH i2c: 01 00 00 14 C5 D9 [07:44:01]Write i2c OK [07:44:01]MH_I2C_Read... [07:44:01]OFD Sender: No OFD packet to send [07:44:02]*** Cut start [07:44:02]*** Partial cut [07:44:02]*** CUTSNS_PIN = 1 [07:44:02]*** CUTSNS_PIN = 0 [07:44:02]*** Brake cut motor [07:44:02]Read from MH i2c: 01 [07:44:02]MH_I2C_Read... [07:44:02]*** Stop cut motor [07:44:02]*** Cut end [07:44:02]Read from MH i2c: 01 07 00 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: 01 07 00 14 C5 00 00 00 00 00 FF 0F EE [07:44:02]process_action close_receipt done [07:44:02]requested_data is exist [07:44:02]produce_requested_data [07:44:02]requested_item fm.sn is exist - process it [07:44:02]wFMCommunicate request_size=4 [07:44:02]MH_SAM_APDU [07:44:02]CAPDU: 80 11 00 00 [07:44:02]Write to MH i2c: E2 08 00 15 C5 80 11 00 00 00 00 00 00 54 [07:44:02]Write i2c OK [07:44:02]MH_I2C_Read... [07:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:02]Read from MH i2c: E2 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: E2 17 00 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: E2 17 00 15 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [07:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:44:02]wFMCommunicate OK [07:44:02]requested_item fd.num is exist - process it [07:44:02]SAM_PROTO_GetFieldsCounters [07:44:02]wFMCommunicate request_size=4 [07:44:02]MH_SAM_APDU [07:44:02]CAPDU: 80 13 00 00 [07:44:02]Write to MH i2c: E2 08 00 16 C5 80 13 00 00 00 00 00 00 57 [07:44:02]Write i2c OK [07:44:02]MH_I2C_Read... [07:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:02]Read from MH i2c: E2 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: E2 62 00 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: E2 62 00 16 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [07:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:02]wFMCommunicate OK [07:44:02]SAM_PROTO_GetFieldsCounters done [07:44:02]requested_item shift.num is exist - process it [07:44:02]requested_item shift.opened is exist - process it [07:44:02]req_shift_opened [07:44:02]FM_GetShiftState [07:44:02]SAM_PROTO_GetShiftState [07:44:02]wFMCommunicate request_size=4 [07:44:02]MH_SAM_APDU [07:44:02]CAPDU: 80 13 01 00 [07:44:02]Write to MH i2c: E2 08 00 17 C5 80 13 01 00 00 00 00 00 59 [07:44:02]Write i2c OK [07:44:02]MH_I2C_Read... [07:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:03]Read from MH i2c: E2 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 0E 00 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 0E 00 17 C5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A1 [07:44:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:44:03]wFMCommunicate OK [07:44:03]SAM_PROTO_GetShiftState done [07:44:03]FM_GetShiftState done [07:44:03]req_shift_opened done [07:44:03]requested_item shift.open_date is exist - process it [07:44:03]req_shift_open_date [07:44:03]req_shift_open_date done [07:44:03]produce_requested_data done [07:44:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165550,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:44:03]process_action_free close_receipt [07:44:03]json_value_free [07:44:03]json_value_free done [07:44:03]process_json_proto returns [07:44:03]Send response to host [07:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165550,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:44:03]free response buf [07:44:03]execute_script done [07:44:03]execute_script returns [07:44:03]free content buf [07:44:03]Sock 9.Close socket [07:44:03]Sock 9.Thread stoped [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:24]accept exits with 7 [07:46:24]New connection [07:46:24]New thread 3066920292 created [07:46:24]Thread 3066776932 joined [07:46:24]Waiting for new connection... [07:46:24] Sock 7.Parse request [07:46:24]Sock 7.Check first char [07:46:24]Sock 7.First char is OK [07:46:24]request: POST /json_proto HTTP/1.0 [07:46:24]Method: POST [07:46:24]URL: /json_proto [07:46:24]Method is POST - this is cgi request [07:46:24]url: /json_proto [07:46:24]query_string will be loaded in cgi processing [07:46:24]execute_cgi json_proto POST (null) [07:46:24]execute_cgi path=json_proto method=POST [07:46:24]POST find Content-Length [07:46:24]Host: 172.17.53.195:8080 [07:46:24]Content-Length: 677 [07:46:24]Content-Type: application/json [07:46:24] [07:46:24]POST finish read [07:46:24]Found Content-Length = 677 [07:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:24]execute_script... [07: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)220110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:24]POST & json_proto [07:46:24]process_json_proto [07:46:24]json parsed OK: [07:46:24]protocol is kg_v1.0 [07:46:24]action value=close_receipt [07:46:24]process_action close_receipt [07:46:24]cmd_close_receipt [07:46:24]MH_GetDate [07:46:24]Write to MH i2c: F0 00 00 18 C5 CC [07:46:24]Write i2c OK [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: F0 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: F0 09 00 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: F0 09 00 18 C5 00 5B B5 14 67 21 48 4A 65 78 [07:46:24]GetLastDocTimeStamp 1729410250 [07:46:24]current date 1729410395 [07:46:24]FM_GetShiftState [07:46:24]SAM_PROTO_GetShiftState [07:46:24]wFMCommunicate request_size=4 [07:46:24]MH_SAM_APDU [07:46:24]CAPDU: 80 13 01 00 [07:46:24]Write to MH i2c: E2 08 00 19 C5 80 13 01 00 00 00 00 00 5B [07:46:24]Write i2c OK [07:46:24]MH_I2C_Read... [07:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:24]Read from MH i2c: E2 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 0E 00 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 0E 00 19 C5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A3 [07:46:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:46:24]wFMCommunicate OK [07:46:24]SAM_PROTO_GetShiftState done [07:46:24]FM_GetShiftState done [07:46:24]opened in 1729384561 [07:46:24]opened+sec_in_day 1729470961 [07:46:24]quantity*price = 40006 [07:46:24]sum+1 = 40007 [07:46: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 33 20.10.2024 07:46 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165551 ФПД: 86619998105317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074635&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165551&fm=86619998105317&tin=02508201610067®Number=0000000000091764&sum=40000 [07:46:25]StoreToDocumentArchive [07:46:25]shift 534 fd 165551 [07:46:25]save to /storage/0534/doc_00165551 [07:46:25]save last doc name /storage/0534/doc_00165551 to /storage/kkm_last_doc_name [07:46:25]save OK [07:46:25]Clear old archive folders... [07:46:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:25]tlvbuf is 0184BE30 [07:46:25]SAM_PROTO_ClearQueue [07:46:25]wFMCommunicate request_size=4 [07:46:25]MH_SAM_APDU [07:46:25]CAPDU: 80 09 00 00 [07:46:25]Write to MH i2c: E2 08 00 26 C5 80 09 00 00 00 00 00 00 5D [07:46:25]Write i2c OK [07:46:25]MH_I2C_Read... [07:46:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:25]Read from MH i2c: E2 [07:46:25]MH_I2C_Read... [07:46:25]Read from MH i2c: E2 03 00 [07:46:25]MH_I2C_Read... [07:46:25]Read from MH i2c: E2 03 00 26 C5 00 90 00 5F [07:46:25]RAPDU: 90 00 [07:46:25]wFMCommunicate OK [07:46:25]SAM_PROTO_ClearQueue done [07:46:25]KKMCreateOFDPacket [07:46:25]OFDProtocolAddRootSTLVToBuf [07:46:25]FM_MakeSignedData [07:46:25]FM_MakeSignedData [07:46:25]SAM_PROTO_SignData [07:46:25]wFMCommunicate request_size=4 [07:46:25]MH_SAM_APDU [07:46:25]CAPDU: 80 0D 01 02 [07:46:25]Write to MH i2c: E2 08 00 27 C5 80 0D 01 02 00 00 00 00 65 [07:46:25]Write i2c OK [07:46:25]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 27 C5 00 90 00 60 [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]wFMCommunicate request_size=255 [07:46:26]MH_SAM_APDU [07:46: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5B B5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 86 02 00 35 04 06 00 4E [07:46:26]Write to MH i2c: E2 02 01 28 C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5B B5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 86 02 00 35 04 06 00 4E 00 00 13 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 28 C5 00 90 00 61 [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]wFMCommunicate request_size=10 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 02 02 05 C7 CA 37 AE E5 [07:46:26]Write to MH i2c: E2 0D 00 29 C5 80 0D 02 02 05 00 C7 CA 37 AE E5 00 00 CD [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 29 C5 00 90 00 62 [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 03 02 [07:46:26]Write to MH i2c: E2 08 00 2A C5 80 0D 03 02 00 00 00 00 6A [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0B 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0B 00 2A C5 00 6A 93 7D 83 FA 2E F7 4D 90 00 D4 [07:46:26]RAPDU: 6A 93 7D 83 FA 2E F7 4D 90 00 [07:46:26]wFMCommunicate OK [07:46:26]SAM_PROTO_SignData done [07:46:26]FM_MakeSignedData done [07:46:26]CreateOFDProtocolMessage [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 11 00 00 [07:46:26]Write to MH i2c: E2 08 00 2B C5 80 11 00 00 00 00 00 00 6A [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 17 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 17 00 2B C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [07:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:46:26]wFMCommunicate OK [07:46:26]CreateOFDProtocolMessage done [07:46:26]OFDSenderStorePacket 165551 [07:46:26]StoreOFDPacket docnum=165551 [07:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 11 22 07 01 A2 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5B B5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 86 02 00 35 04 06 00 4E C7 CA 37 AE E5 6A 93 7D 83 FA 2E F7 4D [07:46:26]CheckFolder [07:46:26]dirname=/storage/ofd_packets [07:46:26]CheckFolder done [07:46:26]ProducePacketName [07:46:26]name=ofd_packets/00165551 [07:46:26]NVStorageSaveData ofd_packets/00165551 [07:46:26]File name is /storage/ofd_packets/00165551 [07:46:26]Write 301 bytes [07:46:26]NVStorageSaveData done [07:46:26]OFDSenderStorePacket done [07:46:26]KKMCreateOFDPacket done [07:46:26]NVStorageSaveData kkm_last_timestamp [07:46:26]File name is /storage/kkm_last_timestamp [07:46:26]Write 4 bytes [07:46:26]NVStorageSaveData done [07:46:26]ExternCall_PrintAddStr [07:46:26]wPrintStart [07:46:26]Write to MH i2c: 01 00 00 2C C5 F1 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 07 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 07 00 2C C5 00 00 00 00 00 FF 0F 06 [07:46:26]RasterBufferAndPrint [07:46:26]line Счет N : (1)220110 [07:46:26]line ИНН: 02508201610067 [07:46:26]line Контрольно-Кассовый Чек [07:46:26]line ПРОДАЖА [07:46:26]line ТРК (МРК, ГНК) : 13 [07:46:26]line Товар: 2710124130 [07:46:26]line Аи-92-К-5 [07:46:26]line 5.980 * 66.90 [07:46:26]line = 400.06 [07:46:26]line НДС 12% НСП 1% [07:46:26]line > о реализуемом товаре [07:46:26]line ОКРУГЛЕНИЕ: -0.06 [07:46:26]line ИТОГО: 400.00 [07:46:26]line Внесено: 400.00 [07:46:26]line СДАЧА: 0.00 [07:46:26]line НСП 1% : 3.54 [07:46:26]line НДС 12% : 42.48 [07:46:26]line Наличными: 400.00 [07:46:26]line Безнал.: 0.00 [07:46:26]line Место: АЗС № 161 "Партнер Нефть" [07:46:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:46:26]line СНО: Общий режим [07:46:26]line Чек 33 20.10.2024 07:46 [07:46:26]line Смена: 534 ФФД: 1.0 [07:46:26]line ЗНМ: 0300000104 [07:46:26]line РНМ: 0000000000091764 [07:46:26]line Версия ККМ: 001 [07:46:26]line ФМ: 0000000000871759 [07:46:26]line ФД: 165551 [07:46:26]line ФПД: 86619998105317 [07:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074635&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165551&fm=86619998105317&tin=02508201610067®Number=0000000000091764&sum=40000 [07:46:26]OFD Sender: Processing packet 165551 [packets to send 48, broken 47] [07:46:26]ProducePacketName [07:46:26]name=ofd_packets/00165551 [07:46:26]OFD Sender: To server: pG, [07:46:26]CommunicateWithHost lk.salyk.kg:30040 [07:46:26]ConnectInit lk.salyk.kg [07:46:26]written 0, free lines is 4095 [07:46:26]Connected sock=10 [07: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 31 37 35 39 0F 01 00 00 11 22 07 01 A2 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5B B5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 86 02 00 35 04 06 00 4E C7 CA 37 AE E5 6A 93 7D 83 FA 2E F7 4D [07:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B3 83 47 00 50 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 86 02 00 F4 03 04 00 CE 5B 14 67 B6 04 01 00 00 9E 6F BF 0C 85 A7 01 55 [07:46:27]CommunicateWithHost err = 0 [07:46:27]CheckOFDResponse [07:46:27]1017 (14) - 77093643461234 [07:46:27]1041 (16) - 0000000000871759 [07:46:27]1040 (4) - 165551 [07:46:27]1012 (4) - 20.10.2024 01:24 [07:46:27]1206 (1) - 0 [07:46:27]OFD Sender: Remove packet 165551 [07:46:27]ProducePacketName [07:46:27]name=ofd_packets/00165551 [07:46:27]NVStorageDeleteData [07:46:27]Write to MH i2c: 01 00 00 57 C5 1C [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 07 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 07 00 57 C5 00 00 00 00 00 C2 0C F1 [07:46:27]RasterBufferAndPrint [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]written 0, free lines is 3274 [07:46:27]MH_Cut [07:46:27]Write to MH i2c: D1 01 00 5E C5 01 F5 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: D1 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: D1 01 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: D1 01 00 5E C5 00 F4 [07:46:27]Write to MH i2c: 01 00 00 5F C5 24 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]OFD Sender: No OFD packet to send [07:46:28]*** Cut start [07:46:28]*** Partial cut [07:46:28]*** CUTSNS_PIN = 1 [07:46:28]*** CUTSNS_PIN = 0 [07:46:28]*** Brake cut motor [07:46:28]Read from MH i2c: 01 [07:46:28]MH_I2C_Read... [07:46:28]*** Stop cut motor [07:46:28]*** Cut end [07:46:28]Read from MH i2c: 01 07 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 5F C5 00 00 00 00 00 FF 0F 39 [07:46:28]process_action close_receipt done [07:46:28]requested_data is exist [07:46:28]produce_requested_data [07:46:28]requested_item fm.sn is exist - process it [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 11 00 00 [07:46:28]Write to MH i2c: E2 08 00 60 C5 80 11 00 00 00 00 00 00 9F [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 17 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 17 00 60 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [07:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:46:28]wFMCommunicate OK [07:46:28]requested_item fd.num is exist - process it [07:46:28]SAM_PROTO_GetFieldsCounters [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 13 00 00 [07:46:28]Write to MH i2c: E2 08 00 61 C5 80 13 00 00 00 00 00 00 A2 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 62 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 62 00 61 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [07: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:28]wFMCommunicate OK [07:46:28]SAM_PROTO_GetFieldsCounters done [07:46:28]requested_item shift.num is exist - process it [07:46:28]requested_item shift.opened is exist - process it [07:46:28]req_shift_opened [07:46:28]FM_GetShiftState [07:46:28]SAM_PROTO_GetShiftState [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 13 01 00 [07:46:28]Write to MH i2c: E2 08 00 62 C5 80 13 01 00 00 00 00 00 A4 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:29]Read from MH i2c: E2 [07:46:29]MH_I2C_Read... [07:46:29]Read from MH i2c: E2 0E 00 [07:46:29]MH_I2C_Read... [07:46:29]Read from MH i2c: E2 0E 00 62 C5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EC [07:46:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:46:29]wFMCommunicate OK [07:46:29]SAM_PROTO_GetShiftState done [07:46:29]FM_GetShiftState done [07:46:29]req_shift_opened done [07:46:29]requested_item shift.open_date is exist - process it [07:46:29]req_shift_open_date [07:46:29]req_shift_open_date done [07:46:29]produce_requested_data done [07:46:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165551,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:46:29]process_action_free close_receipt [07:46:29]json_value_free [07:46:29]json_value_free done [07:46:29]process_json_proto returns [07:46:29]Send response to host [07:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165551,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:46:29]free response buf [07:46:29]execute_script done [07:46:29]execute_script returns [07:46:29]free content buf [07:46:29]Sock 7.Close socket [07:46:29]Sock 7.Thread stoped [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:27]accept exits with 9 [07:56:27]New connection [07:56:27]New thread 3066776932 created [07:56:27]Thread 3066920292 joined [07:56:27]Waiting for new connection... [07:56:27] Sock 9.Parse request [07:56:27]Sock 9.Check first char [07:56:27]Sock 9.First char is OK [07:56:27]request: POST /json_proto HTTP/1.0 [07:56:27]Method: POST [07:56:27]URL: /json_proto [07:56:27]Method is POST - this is cgi request [07:56:27]url: /json_proto [07:56:27]query_string will be loaded in cgi processing [07:56:27]execute_cgi json_proto POST (null) [07:56:27]execute_cgi path=json_proto method=POST [07:56:27]POST find Content-Length [07:56:27]Host: 172.17.53.195:8080 [07:56:27]Content-Length: 677 [07:56:27]Content-Type: application/json [07:56:27] [07:56:27]POST finish read [07:56:27]Found Content-Length = 677 [07:56:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:27]execute_script... [07:56: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)220111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:27]POST & json_proto [07:56:27]process_json_proto [07:56:27]json parsed OK: [07:56:27]protocol is kg_v1.0 [07:56:27]action value=close_receipt [07:56:27]process_action close_receipt [07:56:27]cmd_close_receipt [07:56:27]MH_GetDate [07:56:27]Write to MH i2c: F0 00 00 63 C5 17 [07:56:27]Write i2c OK [07:56:27]MH_I2C_Read... [07:56:27]Read from MH i2c: F0 [07:56:27]MH_I2C_Read... [07:56:27]Read from MH i2c: F0 09 00 [07:56:27]MH_I2C_Read... [07:56:27]Read from MH i2c: F0 09 00 63 C5 00 B6 B7 14 67 21 48 4A 65 20 [07:56:27]GetLastDocTimeStamp 1729410395 [07:56:27]current date 1729410998 [07:56:27]FM_GetShiftState [07:56:27]SAM_PROTO_GetShiftState [07:56:27]wFMCommunicate request_size=4 [07:56:27]MH_SAM_APDU [07:56:27]CAPDU: 80 13 01 00 [07:56:27]Write to MH i2c: E2 08 00 64 C5 80 13 01 00 00 00 00 00 A6 [07:56:27]Write i2c OK [07:56:27]MH_I2C_Read... [07:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:27]Read from MH i2c: E2 [07:56:27]MH_I2C_Read... [07:56:27]Read from MH i2c: E2 0E 00 [07:56:27]MH_I2C_Read... [07:56:27]Read from MH i2c: E2 0E 00 64 C5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EE [07:56:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:56:27]wFMCommunicate OK [07:56:27]SAM_PROTO_GetShiftState done [07:56:27]FM_GetShiftState done [07:56:27]opened in 1729384561 [07:56:27]opened+sec_in_day 1729470961 [07:56:27]quantity*price = 60009 [07:56:27]sum+1 = 60010 [07:56:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 34 20.10.2024 07:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165552 ФПД: 80029690038016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075638&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165552&fm=80029690038016&tin=02508201610067®Number=0000000000091764&sum=60000 [07:56:28]StoreToDocumentArchive [07:56:28]shift 534 fd 165552 [07:56:28]save to /storage/0534/doc_00165552 [07:56:28]save last doc name /storage/0534/doc_00165552 to /storage/kkm_last_doc_name [07:56:28]save OK [07:56:28]Clear old archive folders... [07:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:28]tlvbuf is 016E4CF0 [07:56:28]SAM_PROTO_ClearQueue [07:56:28]wFMCommunicate request_size=4 [07:56:28]MH_SAM_APDU [07:56:28]CAPDU: 80 09 00 00 [07:56:28]Write to MH i2c: E2 08 00 71 C5 80 09 00 00 00 00 00 00 A8 [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:28]Read from MH i2c: E2 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 71 C5 00 90 00 AA [07:56:28]RAPDU: 90 00 [07:56:28]wFMCommunicate OK [07:56:28]SAM_PROTO_ClearQueue done [07:56:28]KKMCreateOFDPacket [07:56:28]OFDProtocolAddRootSTLVToBuf [07:56:28]FM_MakeSignedData [07:56:28]FM_MakeSignedData [07:56:28]SAM_PROTO_SignData [07:56:28]wFMCommunicate request_size=4 [07:56:28]MH_SAM_APDU [07:56:28]CAPDU: 80 0D 01 02 [07:56:28]Write to MH i2c: E2 08 00 72 C5 80 0D 01 02 00 00 00 00 B0 [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:28]Read from MH i2c: E2 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 72 C5 00 90 00 AB [07:56:28]RAPDU: 90 00 [07:56:28]wFMCommunicate OK [07:56:28]wFMCommunicate request_size=255 [07:56:28]MH_SAM_APDU [07:56: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B6 B7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 86 02 00 35 04 06 00 48 [07:56:28]Write to MH i2c: E2 02 01 73 C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B6 B7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 86 02 00 35 04 06 00 48 00 00 C5 [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:29]Read from MH i2c: E2 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: E2 03 00 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: E2 03 00 73 C5 00 90 00 AC [07:56:29]RAPDU: 90 00 [07:56:29]wFMCommunicate OK [07:56:29]wFMCommunicate request_size=10 [07:56:29]MH_SAM_APDU [07:56:29]CAPDU: 80 0D 02 02 05 C9 5D 3F 07 00 [07:56:29]Write to MH i2c: E2 0D 00 74 C5 80 0D 02 02 05 00 C9 5D 3F 07 00 00 00 29 [07:56:29]Write i2c OK [07:56:29]MH_I2C_Read... [07:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:29]Read from MH i2c: E2 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: E2 03 00 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: E2 03 00 74 C5 00 90 00 AD [07:56:29]RAPDU: 90 00 [07:56:29]wFMCommunicate OK [07:56:29]wFMCommunicate request_size=4 [07:56:29]MH_SAM_APDU [07:56:29]CAPDU: 80 0D 03 02 [07:56:29]Write to MH i2c: E2 08 00 75 C5 80 0D 03 02 00 00 00 00 B5 [07:56:29]Write i2c OK [07:56:29]MH_I2C_Read... [07:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:29]Read from MH i2c: E2 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: E2 0B 00 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: E2 0B 00 75 C5 00 92 53 F5 D4 A9 F3 46 B4 90 00 FA [07:56:29]RAPDU: 92 53 F5 D4 A9 F3 46 B4 90 00 [07:56:29]wFMCommunicate OK [07:56:29]SAM_PROTO_SignData done [07:56:29]FM_MakeSignedData done [07:56:29]CreateOFDProtocolMessage [07:56:29]wFMCommunicate request_size=4 [07:56:29]MH_SAM_APDU [07:56:29]CAPDU: 80 11 00 00 [07:56:29]Write to MH i2c: E2 08 00 76 C5 80 11 00 00 00 00 00 00 B5 [07:56:29]Write i2c OK [07:56:29]MH_I2C_Read... [07:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:29]Read from MH i2c: E2 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: E2 17 00 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: E2 17 00 76 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [07:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:56:29]wFMCommunicate OK [07:56:29]CreateOFDProtocolMessage done [07:56:29]OFDSenderStorePacket 165552 [07:56:29]StoreOFDPacket docnum=165552 [07:56:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 91 07 01 8B 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B6 B7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 86 02 00 35 04 06 00 48 C9 5D 3F 07 00 92 53 F5 D4 A9 F3 46 B4 [07:56:29]CheckFolder [07:56:29]dirname=/storage/ofd_packets [07:56:29]CheckFolder done [07:56:29]ProducePacketName [07:56:29]name=ofd_packets/00165552 [07:56:29]NVStorageSaveData ofd_packets/00165552 [07:56:29]File name is /storage/ofd_packets/00165552 [07:56:29]Write 301 bytes [07:56:29]NVStorageSaveData done [07:56:29]OFDSenderStorePacket done [07:56:29]KKMCreateOFDPacket done [07:56:29]NVStorageSaveData kkm_last_timestamp [07:56:29]File name is /storage/kkm_last_timestamp [07:56:29]Write 4 bytes [07:56:29]NVStorageSaveData done [07:56:29]ExternCall_PrintAddStr [07:56:29]wPrintStart [07:56:29]Write to MH i2c: 01 00 00 77 C5 3C [07:56:29]Write i2c OK [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: 01 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: 01 07 00 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: 01 07 00 77 C5 00 00 00 00 00 FF 0F 51 [07:56:29]RasterBufferAndPrint [07:56:29]line Счет N : (1)220111 [07:56:29]line ИНН: 02508201610067 [07:56:29]line Контрольно-Кассовый Чек [07:56:29]line ПРОДАЖА [07:56:29]line ТРК (МРК, ГНК) : 33 [07:56:29]line Товар: 2710124130 [07:56:29]line Аи-92-К-5 [07:56:29]line 8.970 * 66.90 [07:56:29]line = 600.09 [07:56:29]line НДС 12% НСП 1% [07:56:29]line > о реализуемом товаре [07:56:29]line ОКРУГЛЕНИЕ: -0.09 [07:56:29]line ИТОГО: 600.00 [07:56:29]line Внесено: 600.00 [07:56:29]line СДАЧА: 0.00 [07:56:29]line НСП 1% : 5.31 [07:56:29]line НДС 12% : 63.73 [07:56:29]line Наличными: 600.00 [07:56:29]line Безнал.: 0.00 [07:56:29]line Место: АЗС № 161 "Партнер Нефть" [07:56:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:56:29]line СНО: Общий режим [07:56:29]line Чек 34 20.10.2024 07:56 [07:56:29]line Смена: 534 ФФД: 1.0 [07:56:29]line ЗНМ: 0300000104 [07:56:29]line РНМ: 0000000000091764 [07:56:29]line Версия ККМ: 001 [07:56:29]line ФМ: 0000000000871759 [07:56:29]line ФД: 165552 [07:56:29]line ФПД: 80029690038016 [07:56:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075638&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165552&fm=80029690038016&tin=02508201610067®Number=0000000000091764&sum=60000 [07:56:29]OFD Sender: Processing packet 165552 [packets to send 48, broken 47] [07:56:29]ProducePacketName [07:56:29]name=ofd_packets/00165552 [07:56:29]OFD Sender: To server: pG, [07:56:29]CommunicateWithHost lk.salyk.kg:30040 [07:56:29]ConnectInit lk.salyk.kg [07:56:29]written 0, free lines is 4095 [07:56:29]Connected sock=10 [07:56:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 91 07 01 8B 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B6 B7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 86 02 00 35 04 06 00 48 C9 5D 3F 07 00 92 53 F5 D4 A9 F3 46 B4 [07:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 96 DE 47 00 CA 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 31 37 35 39 10 04 04 00 B0 86 02 00 F4 03 04 00 29 5E 14 67 B6 04 01 00 00 1B 77 C7 9E B0 98 CD A2 [07:56:29]CommunicateWithHost err = 0 [07:56:29]CheckOFDResponse [07:56:29]1017 (14) - 77093643461234 [07:56:29]1041 (16) - 0000000000871759 [07:56:29]1040 (4) - 165552 [07:56:29]1012 (4) - 20.10.2024 01:34 [07:56:29]1206 (1) - 0 [07:56:29]OFD Sender: Remove packet 165552 [07:56:29]ProducePacketName [07:56:29]name=ofd_packets/00165552 [07:56:29]NVStorageDeleteData [07:56:30]Write to MH i2c: 01 00 00 A2 C5 67 [07:56:30]Write i2c OK [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: 01 [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: 01 07 00 [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: 01 07 00 A2 C5 00 00 00 00 00 B6 0C 30 [07:56:30]RasterBufferAndPrint [07:56:30]line [07:56:30]line [07:56:30]line [07:56:30]line [07:56:30]line [07:56:30]written 0, free lines is 3262 [07:56:30]MH_Cut [07:56:30]Write to MH i2c: D1 01 00 A9 C5 01 40 [07:56:30]Write i2c OK [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: D1 [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: D1 01 00 [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: D1 01 00 A9 C5 00 3F [07:56:30]Write to MH i2c: 01 00 00 AA C5 6F [07:56:30]Write i2c OK [07:56:30]MH_I2C_Read... [07:56:30]OFD Sender: No OFD packet to send [07:56:30]*** Cut start [07:56:30]*** Partial cut [07:56:30]*** CUTSNS_PIN = 1 [07:56:31]*** CUTSNS_PIN = 0 [07:56:31]*** Brake cut motor [07:56:31]Read from MH i2c: 01 [07:56:31]MH_I2C_Read... [07:56:31]*** Stop cut motor [07:56:31]*** Cut end [07:56:31]Read from MH i2c: 01 07 00 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: 01 07 00 AA C5 00 00 00 00 00 FF 0F 84 [07:56:31]process_action close_receipt done [07:56:31]requested_data is exist [07:56:31]produce_requested_data [07:56:31]requested_item fm.sn is exist - process it [07:56:31]wFMCommunicate request_size=4 [07:56:31]MH_SAM_APDU [07:56:31]CAPDU: 80 11 00 00 [07:56:31]Write to MH i2c: E2 08 00 AB C5 80 11 00 00 00 00 00 00 EA [07:56:31]Write i2c OK [07:56:31]MH_I2C_Read... [07:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:31]Read from MH i2c: E2 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 17 00 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 17 00 AB C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [07:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:56:31]wFMCommunicate OK [07:56:31]requested_item fd.num is exist - process it [07:56:31]SAM_PROTO_GetFieldsCounters [07:56:31]wFMCommunicate request_size=4 [07:56:31]MH_SAM_APDU [07:56:31]CAPDU: 80 13 00 00 [07:56:31]Write to MH i2c: E2 08 00 AC C5 80 13 00 00 00 00 00 00 ED [07:56:31]Write i2c OK [07:56:31]MH_I2C_Read... [07:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:31]Read from MH i2c: E2 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 62 00 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 62 00 AC C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [07:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:31]wFMCommunicate OK [07:56:31]SAM_PROTO_GetFieldsCounters done [07:56:31]requested_item shift.num is exist - process it [07:56:31]requested_item shift.opened is exist - process it [07:56:31]req_shift_opened [07:56:31]FM_GetShiftState [07:56:31]SAM_PROTO_GetShiftState [07:56:31]wFMCommunicate request_size=4 [07:56:31]MH_SAM_APDU [07:56:31]CAPDU: 80 13 01 00 [07:56:31]Write to MH i2c: E2 08 00 AD C5 80 13 01 00 00 00 00 00 EF [07:56:31]Write i2c OK [07:56:31]MH_I2C_Read... [07:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:31]Read from MH i2c: E2 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 0E 00 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 0E 00 AD C5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 37 [07:56:31]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:56:31]wFMCommunicate OK [07:56:31]SAM_PROTO_GetShiftState done [07:56:31]FM_GetShiftState done [07:56:31]req_shift_opened done [07:56:31]requested_item shift.open_date is exist - process it [07:56:31]req_shift_open_date [07:56:31]req_shift_open_date done [07:56:31]produce_requested_data done [07:56:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165552,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:56:31]process_action_free close_receipt [07:56:31]json_value_free [07:56:31]json_value_free done [07:56:31]process_json_proto returns [07:56:31]Send response to host [07:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165552,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:56:31]free response buf [07:56:31]execute_script done [07:56:31]execute_script returns [07:56:31]free content buf [07:56:31]Sock 9.Close socket [07:56:31]Sock 9.Thread stoped [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:01]accept exits with 7 [07:57:01]New connection [07:57:01]New thread 3066920292 created [07:57:01]Thread 3066776932 joined [07:57:01]Waiting for new connection... [07:57:01] Sock 7.Parse request [07:57:01]Sock 7.Check first char [07:57:01]Sock 7.First char is OK [07:57:01]request: POST /json_proto HTTP/1.0 [07:57:01]Method: POST [07:57:01]URL: /json_proto [07:57:01]Method is POST - this is cgi request [07:57:01]url: /json_proto [07:57:01]query_string will be loaded in cgi processing [07:57:01]execute_cgi json_proto POST (null) [07:57:01]execute_cgi path=json_proto method=POST [07:57:01]POST find Content-Length [07:57:01]Host: 172.17.53.195:8080 [07:57:01]Content-Length: 682 [07:57:01]Content-Type: application/json [07:57:01] [07:57:01]POST finish read [07:57:01]Found Content-Length = 682 [07:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.690, "sum" : 2499.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2499.00, "payments": [ { "type": 0, "sum" : 2499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:01]execute_script... [07:57:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.690, "sum" : 2499.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2499.00, "payments": [ { "type": 0, "sum" : 2499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:01]POST & json_proto [07:57:01]process_json_proto [07:57:01]json parsed OK: [07:57:01]protocol is kg_v1.0 [07:57:01]action value=close_receipt [07:57:01]process_action close_receipt [07:57:01]cmd_close_receipt [07:57:01]MH_GetDate [07:57:01]Write to MH i2c: F0 00 00 AE C5 62 [07:57:01]Write i2c OK [07:57:01]MH_I2C_Read... [07:57:01]Read from MH i2c: F0 [07:57:01]MH_I2C_Read... [07:57:01]Read from MH i2c: F0 09 00 [07:57:01]MH_I2C_Read... [07:57:01]Read from MH i2c: F0 09 00 AE C5 00 D8 B7 14 67 21 48 4A 65 8D [07:57:01]GetLastDocTimeStamp 1729410998 [07:57:01]current date 1729411032 [07:57:01]FM_GetShiftState [07:57:01]SAM_PROTO_GetShiftState [07:57:01]wFMCommunicate request_size=4 [07:57:01]MH_SAM_APDU [07:57:01]CAPDU: 80 13 01 00 [07:57:01]Write to MH i2c: E2 08 00 AF C5 80 13 01 00 00 00 00 00 F1 [07:57:01]Write i2c OK [07:57:01]MH_I2C_Read... [07:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:01]Read from MH i2c: E2 [07:57:01]MH_I2C_Read... [07:57:01]Read from MH i2c: E2 0E 00 [07:57:01]MH_I2C_Read... [07:57:01]Read from MH i2c: E2 0E 00 AF C5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 39 [07:57:01]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:57:01]wFMCommunicate OK [07:57:01]SAM_PROTO_GetShiftState done [07:57:01]FM_GetShiftState done [07:57:01]opened in 1729384561 [07:57:01]opened+sec_in_day 1729470961 [07:57:01]quantity*price = 249979 [07:57:01]sum+1 = 249981 [07:57:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 2499.00 Внесено: 2500.00 СДАЧА: 1.00 НСП 1% : 22.12 НДС 12% : 265.46 Наличными: 2499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 35 20.10.2024 07:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165553 ФПД: 223620628249719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075712&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165553&fm=223620628249719&tin=02508201610067®Number=0000000000091764&sum=249900 [07:57:02]StoreToDocumentArchive [07:57:02]shift 534 fd 165553 [07:57:02]save to /storage/0534/doc_00165553 [07:57:02]save last doc name /storage/0534/doc_00165553 to /storage/kkm_last_doc_name [07:57:02]save OK [07:57:02]Clear old archive folders... [07:57:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:02]tlvbuf is 0162F1D0 [07:57:02]SAM_PROTO_ClearQueue [07:57:02]wFMCommunicate request_size=4 [07:57:02]MH_SAM_APDU [07:57:02]CAPDU: 80 09 00 00 [07:57:02]Write to MH i2c: E2 08 00 BC C5 80 09 00 00 00 00 00 00 F3 [07:57:02]Write i2c OK [07:57:02]MH_I2C_Read... [07:57:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:02]Read from MH i2c: E2 [07:57:02]MH_I2C_Read... [07:57:02]Read from MH i2c: E2 03 00 [07:57:02]MH_I2C_Read... [07:57:02]Read from MH i2c: E2 03 00 BC C5 00 90 00 F5 [07:57:02]RAPDU: 90 00 [07:57:02]wFMCommunicate OK [07:57:02]SAM_PROTO_ClearQueue done [07:57:02]KKMCreateOFDPacket [07:57:02]OFDProtocolAddRootSTLVToBuf [07:57:02]FM_MakeSignedData [07:57:02]FM_MakeSignedData [07:57:02]SAM_PROTO_SignData [07:57:02]wFMCommunicate request_size=4 [07:57:02]MH_SAM_APDU [07:57:02]CAPDU: 80 0D 01 02 [07:57:02]Write to MH i2c: E2 08 00 BD C5 80 0D 01 02 00 00 00 00 FB [07:57:02]Write i2c OK [07:57:02]MH_I2C_Read... [07:57:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:02]Read from MH i2c: E2 [07:57:02]MH_I2C_Read... [07:57:02]Read from MH i2c: E2 03 00 [07:57:02]MH_I2C_Read... [07:57:02]Read from MH i2c: E2 03 00 BD C5 00 90 00 F6 [07:57:02]RAPDU: 90 00 [07:57:02]wFMCommunicate OK [07:57:02]wFMCommunicate request_size=255 [07:57:02]MH_SAM_APDU [07:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 67 00 00 00 00 07 04 06 00 2C 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 23 00 00 00 F4 03 04 00 D8 B7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 86 02 00 35 04 06 00 CB [07:57:02]Write to MH i2c: E2 02 01 BE C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 67 00 00 00 00 07 04 06 00 2C 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 23 00 00 00 F4 03 04 00 D8 B7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 86 02 00 35 04 06 00 CB 00 00 A0 [07:57:02]Write i2c OK [07:57:02]MH_I2C_Read... [07:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:03]Read from MH i2c: E2 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: E2 03 00 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: E2 03 00 BE C5 00 90 00 F7 [07:57:03]RAPDU: 90 00 [07:57:03]wFMCommunicate OK [07:57:03]wFMCommunicate request_size=10 [07:57:03]MH_SAM_APDU [07:57:03]CAPDU: 80 0D 02 02 05 61 BC 1C 7C 77 [07:57:03]Write to MH i2c: E2 0D 00 BF C5 80 0D 02 02 05 00 61 BC 1C 7C 77 00 00 34 [07:57:03]Write i2c OK [07:57:03]MH_I2C_Read... [07:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:03]Read from MH i2c: E2 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: E2 03 00 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: E2 03 00 BF C5 00 90 00 F8 [07:57:03]RAPDU: 90 00 [07:57:03]wFMCommunicate OK [07:57:03]wFMCommunicate request_size=4 [07:57:03]MH_SAM_APDU [07:57:03]CAPDU: 80 0D 03 02 [07:57:03]Write to MH i2c: E2 08 00 C0 C5 80 0D 03 02 00 00 00 00 00 [07:57:03]Write i2c OK [07:57:03]MH_I2C_Read... [07:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:03]Read from MH i2c: E2 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: E2 0B 00 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: E2 0B 00 C0 C5 00 8B 59 BE AB 1C 52 16 A8 90 00 7A [07:57:03]RAPDU: 8B 59 BE AB 1C 52 16 A8 90 00 [07:57:03]wFMCommunicate OK [07:57:03]SAM_PROTO_SignData done [07:57:03]FM_MakeSignedData done [07:57:03]CreateOFDProtocolMessage [07:57:03]wFMCommunicate request_size=4 [07:57:03]MH_SAM_APDU [07:57:03]CAPDU: 80 11 00 00 [07:57:03]Write to MH i2c: E2 08 00 C1 C5 80 11 00 00 00 00 00 00 00 [07:57:03]Write i2c OK [07:57:03]MH_I2C_Read... [07:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:03]Read from MH i2c: E2 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: E2 17 00 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: E2 17 00 C1 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [07:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:57:03]wFMCommunicate OK [07:57:03]CreateOFDProtocolMessage done [07:57:03]OFDSenderStorePacket 165553 [07:57:03]StoreOFDPacket docnum=165553 [07:57:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 60 F0 07 01 F6 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 67 00 00 00 00 07 04 06 00 2C 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 23 00 00 00 F4 03 04 00 D8 B7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 86 02 00 35 04 06 00 CB 61 BC 1C 7C 77 8B 59 BE AB 1C 52 16 A8 [07:57:03]CheckFolder [07:57:03]dirname=/storage/ofd_packets [07:57:03]CheckFolder done [07:57:03]ProducePacketName [07:57:03]name=ofd_packets/00165553 [07:57:03]NVStorageSaveData ofd_packets/00165553 [07:57:03]File name is /storage/ofd_packets/00165553 [07:57:03]Write 301 bytes [07:57:03]NVStorageSaveData done [07:57:03]OFDSenderStorePacket done [07:57:03]KKMCreateOFDPacket done [07:57:03]NVStorageSaveData kkm_last_timestamp [07:57:03]File name is /storage/kkm_last_timestamp [07:57:03]Write 4 bytes [07:57:03]NVStorageSaveData done [07:57:03]ExternCall_PrintAddStr [07:57:03]wPrintStart [07:57:03]Write to MH i2c: 01 00 00 C2 C5 87 [07:57:03]Write i2c OK [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: 01 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: 01 07 00 [07:57:03]MH_I2C_Read... [07:57:03]Read from MH i2c: 01 07 00 C2 C5 00 00 00 00 00 FF 0F 9C [07:57:03]RasterBufferAndPrint [07:57:03]line Счет N : (1)220112 [07:57:03]line ИНН: 02508201610067 [07:57:03]line Контрольно-Кассовый Чек [07:57:03]line ПРОДАЖА [07:57:03]line ТРК (МРК, ГНК) : 14 [07:57:03]line Товар: 2710124500 [07:57:03]line Аи-95-К-5 [07:57:03]line 33.690 * 74.20 [07:57:03]line = 2499.80 [07:57:03]line НДС 12% НСП 1% [07:57:03]line > о реализуемом товаре [07:57:03]line ОКРУГЛЕНИЕ: -0.80 [07:57:03]line ИТОГО: 2499.00 [07:57:03]line Внесено: 2500.00 [07:57:03]line СДАЧА: 1.00 [07:57:03]line НСП 1% : 22.12 [07:57:03]line НДС 12% : 265.46 [07:57:03]line Наличными: 2499.00 [07:57:03]line Безнал.: 0.00 [07:57:03]line Место: АЗС № 161 "Партнер Нефть" [07:57:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:57:03]line СНО: Общий режим [07:57:03]line Чек 35 20.10.2024 07:57 [07:57:03]line Смена: 534 ФФД: 1.0 [07:57:03]line ЗНМ: 0300000104 [07:57:03]line РНМ: 0000000000091764 [07:57:03]line Версия ККМ: 001 [07:57:03]line ФМ: 0000000000871759 [07:57:03]line ФД: 165553 [07:57:03]line ФПД: 223620628249719 [07:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075712&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165553&fm=223620628249719&tin=02508201610067®Number=0000000000091764&sum=249900 [07:57:03]OFD Sender: Processing packet 165553 [packets to send 48, broken 47] [07:57:03]ProducePacketName [07:57:03]name=ofd_packets/00165553 [07:57:03]OFD Sender: To server: pG, [07:57:03]CommunicateWithHost lk.salyk.kg:30040 [07:57:03]ConnectInit lk.salyk.kg [07:57:03]written 0, free lines is 4095 [07:57:03]Connected sock=10 [07:57:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 60 F0 07 01 F6 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 67 00 00 00 00 07 04 06 00 2C 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 23 00 00 00 F4 03 04 00 D8 B7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 86 02 00 35 04 06 00 CB 61 BC 1C 7C 77 8B 59 BE AB 1C 52 16 A8 [07:57:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 C8 47 00 E7 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 86 02 00 F4 03 04 00 4B 5E 14 67 B6 04 01 00 00 42 2A CF 9D 59 B4 A8 BD [07:57:03]CommunicateWithHost err = 0 [07:57:03]CheckOFDResponse [07:57:03]1017 (14) - 77093643461234 [07:57:03]1041 (16) - 0000000000871759 [07:57:03]1040 (4) - 165553 [07:57:03]1012 (4) - 20.10.2024 01:35 [07:57:03]1206 (1) - 0 [07:57:03]OFD Sender: Remove packet 165553 [07:57:03]ProducePacketName [07:57:03]name=ofd_packets/00165553 [07:57:03]NVStorageDeleteData [07:57:04]Write to MH i2c: 01 00 00 ED C5 B2 [07:57:04]Write i2c OK [07:57:04]MH_I2C_Read... [07:57:04]Read from MH i2c: 01 [07:57:04]MH_I2C_Read... [07:57:04]Read from MH i2c: 01 07 00 [07:57:04]MH_I2C_Read... [07:57:04]Read from MH i2c: 01 07 00 ED C5 00 00 00 00 00 D8 0C 9D [07:57:04]RasterBufferAndPrint [07:57:04]line [07:57:04]line [07:57:04]line [07:57:04]line [07:57:04]line [07:57:04]written 0, free lines is 3294 [07:57:04]MH_Cut [07:57:04]Write to MH i2c: D1 01 00 F4 C5 01 8B [07:57:04]Write i2c OK [07:57:04]MH_I2C_Read... [07:57:04]Read from MH i2c: D1 [07:57:04]MH_I2C_Read... [07:57:04]Read from MH i2c: D1 01 00 [07:57:04]MH_I2C_Read... [07:57:04]Read from MH i2c: D1 01 00 F4 C5 00 8A [07:57:04]Write to MH i2c: 01 00 00 F5 C5 BA [07:57:04]Write i2c OK [07:57:04]MH_I2C_Read... [07:57:04]OFD Sender: No OFD packet to send [07:57:04]*** Cut start [07:57:04]*** Partial cut [07:57:04]*** CUTSNS_PIN = 1 [07:57:05]*** CUTSNS_PIN = 0 [07:57:05]*** Brake cut motor [07:57:05]Read from MH i2c: 01 [07:57:05]MH_I2C_Read... [07:57:05]*** Stop cut motor [07:57:05]*** Cut end [07:57:05]Read from MH i2c: 01 07 00 [07:57:05]MH_I2C_Read... [07:57:05]Read from MH i2c: 01 07 00 F5 C5 00 00 00 00 00 FF 0F CF [07:57:05]process_action close_receipt done [07:57:05]requested_data is exist [07:57:05]produce_requested_data [07:57:05]requested_item fm.sn is exist - process it [07:57:05]wFMCommunicate request_size=4 [07:57:05]MH_SAM_APDU [07:57:05]CAPDU: 80 11 00 00 [07:57:05]Write to MH i2c: E2 08 00 F6 C5 80 11 00 00 00 00 00 00 35 [07:57:05]Write i2c OK [07:57:05]MH_I2C_Read... [07:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:05]Read from MH i2c: E2 [07:57:05]MH_I2C_Read... [07:57:05]Read from MH i2c: E2 17 00 [07:57:05]MH_I2C_Read... [07:57:05]Read from MH i2c: E2 17 00 F6 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [07:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:57:05]wFMCommunicate OK [07:57:05]requested_item fd.num is exist - process it [07:57:05]SAM_PROTO_GetFieldsCounters [07:57:05]wFMCommunicate request_size=4 [07:57:05]MH_SAM_APDU [07:57:05]CAPDU: 80 13 00 00 [07:57:05]Write to MH i2c: E2 08 00 F7 C5 80 13 00 00 00 00 00 00 38 [07:57:05]Write i2c OK [07:57:05]MH_I2C_Read... [07:57:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:05]Read from MH i2c: E2 [07:57:05]MH_I2C_Read... [07:57:05]Read from MH i2c: E2 62 00 [07:57:05]MH_I2C_Read... [07:57:05]Read from MH i2c: E2 62 00 F7 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [07:57:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:57:05]wFMCommunicate OK [07:57:05]SAM_PROTO_GetFieldsCounters done [07:57:05]requested_item shift.num is exist - process it [07:57:05]requested_item shift.opened is exist - process it [07:57:05]req_shift_opened [07:57:05]FM_GetShiftState [07:57:05]SAM_PROTO_GetShiftState [07:57:05]wFMCommunicate request_size=4 [07:57:05]MH_SAM_APDU [07:57:05]CAPDU: 80 13 01 00 [07:57:05]Write to MH i2c: E2 08 00 F8 C5 80 13 01 00 00 00 00 00 3A [07:57:05]Write i2c OK [07:57:05]MH_I2C_Read... [07:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:05]Read from MH i2c: E2 [07:57:05]MH_I2C_Read... [07:57:05]Read from MH i2c: E2 0E 00 [07:57:05]MH_I2C_Read... [07:57:05]Read from MH i2c: E2 0E 00 F8 C5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 82 [07:57:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [07:57:05]wFMCommunicate OK [07:57:05]SAM_PROTO_GetShiftState done [07:57:05]FM_GetShiftState done [07:57:05]req_shift_opened done [07:57:05]requested_item shift.open_date is exist - process it [07:57:05]req_shift_open_date [07:57:05]req_shift_open_date done [07:57:05]produce_requested_data done [07:57:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165553,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [07:57:05]process_action_free close_receipt [07:57:05]json_value_free [07:57:05]json_value_free done [07:57:05]process_json_proto returns [07:57:05]Send response to host [07:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165553,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [07:57:05]free response buf [07:57:05]execute_script done [07:57:05]execute_script returns [07:57:05]free content buf [07:57:05]Sock 7.Close socket [07:57:05]Sock 7.Thread stoped [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]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:07]accept exits with 9 [08:03:07]New connection [08:03:07]New thread 3066776932 created [08:03:07]Thread 3066920292 joined [08:03:07]Waiting for new connection... [08:03:07] Sock 9.Parse request [08:03:07]Sock 9.Check first char [08:03:07]Sock 9.First char is OK [08:03:07]request: POST /json_proto HTTP/1.0 [08:03:07]Method: POST [08:03:07]URL: /json_proto [08:03:07]Method is POST - this is cgi request [08:03:07]url: /json_proto [08:03:07]query_string will be loaded in cgi processing [08:03:07]execute_cgi json_proto POST (null) [08:03:07]execute_cgi path=json_proto method=POST [08:03:07]POST find Content-Length [08:03:07]Host: 172.17.53.195:8080 [08:03:07]Content-Length: 766 [08:03:07]Content-Type: application/json [08:03:07] [08:03:07]POST finish read [08:03:07]Found Content-Length = 766 [08:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220113", "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" : 76.20, "quantity" : 22.310, "sum" : 1700.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: Mbank", "payments": [ { "type": 1, "sum" : 1700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:07]execute_script... [08:03: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)220113", "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" : 76.20, "quantity" : 22.310, "sum" : 1700.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: Mbank", "payments": [ { "type": 1, "sum" : 1700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:07]POST & json_proto [08:03:07]process_json_proto [08:03:07]json parsed OK: [08:03:07]protocol is kg_v1.0 [08:03:07]action value=close_receipt [08:03:07]process_action close_receipt [08:03:07]cmd_close_receipt [08:03:07]MH_GetDate [08:03:07]Write to MH i2c: F0 00 00 F9 C5 AD [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: F0 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: F0 09 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: F0 09 00 F9 C5 00 46 B9 14 67 21 48 4A 65 48 [08:03:07]GetLastDocTimeStamp 1729411032 [08:03:07]current date 1729411398 [08:03:07]FM_GetShiftState [08:03:07]SAM_PROTO_GetShiftState [08:03:07]wFMCommunicate request_size=4 [08:03:07]MH_SAM_APDU [08:03:07]CAPDU: 80 13 01 00 [08:03:07]Write to MH i2c: E2 08 00 FA C5 80 13 01 00 00 00 00 00 3C [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:07]Read from MH i2c: E2 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 0E 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 0E 00 FA C5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 84 [08:03:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:03:07]wFMCommunicate OK [08:03:07]SAM_PROTO_GetShiftState done [08:03:07]FM_GetShiftState done [08:03:07]opened in 1729384561 [08:03:07]opened+sec_in_day 1729470961 [08:03:07]quantity*price = 170002 [08:03:07]sum+1 = 170003 [08:03:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.02 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 0.00 Безнал.: 1700.02 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 36 20.10.2024 08:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165554 ФПД: 263727275919895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080318&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165554&fm=263727275919895&tin=02508201610067®Number=0000000000091764&sum=170002 [08:03:08]StoreToDocumentArchive [08:03:08]shift 534 fd 165554 [08:03:08]save to /storage/0534/doc_00165554 [08:03:08]save last doc name /storage/0534/doc_00165554 to /storage/kkm_last_doc_name [08:03:08]save OK [08:03:08]Clear old archive folders... [08:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:03:08]tlvbuf is 016C7360 [08:03:08]SAM_PROTO_ClearQueue [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 09 00 00 [08:03:08]Write to MH i2c: E2 08 00 07 C6 80 09 00 00 00 00 00 00 3F [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 07 C6 00 90 00 41 [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]SAM_PROTO_ClearQueue done [08:03:08]KKMCreateOFDPacket [08:03:08]OFDProtocolAddRootSTLVToBuf [08:03:08]FM_MakeSignedData [08:03:08]FM_MakeSignedData [08:03:08]SAM_PROTO_SignData [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 0D 01 02 [08:03:08]Write to MH i2c: E2 08 00 08 C6 80 0D 01 02 00 00 00 00 47 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 08 C6 00 90 00 42 [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]wFMCommunicate request_size=255 [08:03:08]MH_SAM_APDU [08:03:08]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 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 46 B9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 86 02 00 35 04 06 00 EF DB CA 99 [08:03:08]Write to MH i2c: E2 02 01 09 C6 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 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 46 B9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 86 02 00 35 04 06 00 EF DB CA 99 00 00 DA [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 09 C6 00 90 00 43 [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]wFMCommunicate request_size=7 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 0D 02 02 02 4A 17 [08:03:08]Write to MH i2c: E2 0A 00 0A C6 80 0D 02 02 02 00 4A 17 00 00 AF [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 0A C6 00 90 00 44 [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 0D 03 02 [08:03:08]Write to MH i2c: E2 08 00 0B C6 80 0D 03 02 00 00 00 00 4C [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 0B 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 0B 00 0B C6 00 E4 E3 CA 45 C9 55 11 3B 90 00 8D [08:03:08]RAPDU: E4 E3 CA 45 C9 55 11 3B 90 00 [08:03:08]wFMCommunicate OK [08:03:08]SAM_PROTO_SignData done [08:03:08]FM_MakeSignedData done [08:03:08]CreateOFDProtocolMessage [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 11 00 00 [08:03:08]Write to MH i2c: E2 08 00 0C C6 80 11 00 00 00 00 00 00 4C [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 17 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 17 00 0C C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [08:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:03:08]wFMCommunicate OK [08:03:08]CreateOFDProtocolMessage done [08:03:08]OFDSenderStorePacket 165554 [08:03:08]StoreOFDPacket docnum=165554 [08:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 74 A0 04 01 C3 AB 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 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 46 B9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 86 02 00 35 04 06 00 EF DB CA 99 4A 17 E4 E3 CA 45 C9 55 11 3B [08:03:08]CheckFolder [08:03:08]dirname=/storage/ofd_packets [08:03:08]CheckFolder done [08:03:08]ProducePacketName [08:03:08]name=ofd_packets/00165554 [08:03:08]NVStorageSaveData ofd_packets/00165554 [08:03:08]File name is /storage/ofd_packets/00165554 [08:03:08]Write 298 bytes [08:03:08]NVStorageSaveData done [08:03:08]OFDSenderStorePacket done [08:03:08]KKMCreateOFDPacket done [08:03:08]NVStorageSaveData kkm_last_timestamp [08:03:08]File name is /storage/kkm_last_timestamp [08:03:08]Write 4 bytes [08:03:08]NVStorageSaveData done [08:03:08]ExternCall_PrintAddStr [08:03:08]wPrintStart [08:03:08]Write to MH i2c: 01 00 00 0D C6 D3 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 07 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 07 00 0D C6 00 00 00 00 00 FF 0F E8 [08:03:08]RasterBufferAndPrint [08:03:08]line Счет N : (1)220113 [08:03:08]line ИНН: 02508201610067 [08:03:08]line Контрольно-Кассовый Чек [08:03:08]line ПРОДАЖА [08:03:08]line ТРК (МРК, ГНК) : 21 [08:03:08]line Товар: 2710194210 [08:03:08]line ДТ-К-5 [08:03:08]line 22.310 * 76.20 [08:03:08]line = 1700.02 [08:03:08]line НДС 12% НСП 1% [08:03:08]line > о реализуемом товаре [08:03:08]line ИТОГО: 1700.02 [08:03:08]line НСП 1% : 15.04 [08:03:08]line НДС 12% : 180.53 [08:03:08]line Наличными: 0.00 [08:03:08]line Безнал.: 1700.02 [08:03:08]line Место: АЗС № 161 "Партнер Нефть" [08:03:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:03:08]line СНО: Общий режим [08:03:08]line Чек 36 20.10.2024 08:03 [08:03:08]line Смена: 534 ФФД: 1.0 [08:03:08]line ЗНМ: 0300000104 [08:03:08]line РНМ: 0000000000091764 [08:03:08]line Версия ККМ: 001 [08:03:08]line Платежная система: Mbank [08:03:08]line ФМ: 0000000000871759 [08:03:08]line ФД: 165554 [08:03:08]line ФПД: 263727275919895 [08:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080318&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165554&fm=263727275919895&tin=02508201610067®Number=0000000000091764&sum=170002 [08:03:09]OFD Sender: Processing packet 165554 [packets to send 48, broken 47] [08:03:09]ProducePacketName [08:03:09]name=ofd_packets/00165554 [08:03:09]OFD Sender: To server: pG, [08:03:09]CommunicateWithHost lk.salyk.kg:30040 [08:03:09]ConnectInit lk.salyk.kg [08:03:09]written 0, free lines is 4095 [08:03:09]Connected sock=10 [08:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 74 A0 04 01 C3 AB 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 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 46 B9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 86 02 00 35 04 06 00 EF DB CA 99 4A 17 E4 E3 CA 45 C9 55 11 3B [08:03:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 66 E4 47 00 36 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 86 02 00 F4 03 04 00 B8 5F 14 67 B6 04 01 00 00 99 EB 86 BC 1A 0F 48 CF [08:03:09]CommunicateWithHost err = 0 [08:03:09]CheckOFDResponse [08:03:09]1017 (14) - 77093643461234 [08:03:09]1041 (16) - 0000000000871759 [08:03:09]1040 (4) - 165554 [08:03:09]1012 (4) - 20.10.2024 01:41 [08:03:09]1206 (1) - 0 [08:03:09]OFD Sender: Remove packet 165554 [08:03:09]ProducePacketName [08:03:09]name=ofd_packets/00165554 [08:03:09]NVStorageDeleteData [08:03:09]Write to MH i2c: 01 00 00 36 C6 FC [08:03:09]Write i2c OK [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 07 00 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 07 00 36 C6 00 00 00 00 00 E0 0C EF [08:03:09]RasterBufferAndPrint [08:03:09]line [08:03:09]line [08:03:09]line [08:03:09]line [08:03:09]line [08:03:09]written 0, free lines is 3301 [08:03:09]MH_Cut [08:03:09]Write to MH i2c: D1 01 00 3D C6 01 D5 [08:03:09]Write i2c OK [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: D1 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: D1 01 00 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: D1 01 00 3D C6 00 D4 [08:03:09]Write to MH i2c: 01 00 00 3E C6 04 [08:03:09]Write i2c OK [08:03:09]MH_I2C_Read... [08:03:10]OFD Sender: No OFD packet to send [08:03:10]*** Cut start [08:03:10]*** Partial cut [08:03:10]*** CUTSNS_PIN = 1 [08:03:10]*** CUTSNS_PIN = 0 [08:03:10]*** Brake cut motor [08:03:11]Read from MH i2c: 01 [08:03:11]MH_I2C_Read... [08:03:11]*** Stop cut motor [08:03:11]*** Cut end [08:03:11]Read from MH i2c: 01 07 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: 01 07 00 3E C6 00 00 00 00 00 FF 0F 19 [08:03:11]process_action close_receipt done [08:03:11]requested_data is exist [08:03:11]produce_requested_data [08:03:11]requested_item fm.sn is exist - process it [08:03:11]wFMCommunicate request_size=4 [08:03:11]MH_SAM_APDU [08:03:11]CAPDU: 80 11 00 00 [08:03:11]Write to MH i2c: E2 08 00 3F C6 80 11 00 00 00 00 00 00 7F [08:03:11]Write i2c OK [08:03:11]MH_I2C_Read... [08:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:11]Read from MH i2c: E2 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 17 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 17 00 3F C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [08:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:03:11]wFMCommunicate OK [08:03:11]requested_item fd.num is exist - process it [08:03:11]SAM_PROTO_GetFieldsCounters [08:03:11]wFMCommunicate request_size=4 [08:03:11]MH_SAM_APDU [08:03:11]CAPDU: 80 13 00 00 [08:03:11]Write to MH i2c: E2 08 00 40 C6 80 13 00 00 00 00 00 00 82 [08:03:11]Write i2c OK [08:03:11]MH_I2C_Read... [08:03:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:11]Read from MH i2c: E2 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 62 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 62 00 40 C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [08:03:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:11]wFMCommunicate OK [08:03:11]SAM_PROTO_GetFieldsCounters done [08:03:11]requested_item shift.num is exist - process it [08:03:11]requested_item shift.opened is exist - process it [08:03:11]req_shift_opened [08:03:11]FM_GetShiftState [08:03:11]SAM_PROTO_GetShiftState [08:03:11]wFMCommunicate request_size=4 [08:03:11]MH_SAM_APDU [08:03:11]CAPDU: 80 13 01 00 [08:03:11]Write to MH i2c: E2 08 00 41 C6 80 13 01 00 00 00 00 00 84 [08:03:11]Write i2c OK [08:03:11]MH_I2C_Read... [08:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:11]Read from MH i2c: E2 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 0E 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 0E 00 41 C6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CC [08:03:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:03:11]wFMCommunicate OK [08:03:11]SAM_PROTO_GetShiftState done [08:03:11]FM_GetShiftState done [08:03:11]req_shift_opened done [08:03:11]requested_item shift.open_date is exist - process it [08:03:11]req_shift_open_date [08:03:11]req_shift_open_date done [08:03:11]produce_requested_data done [08:03:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165554,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:03:11]process_action_free close_receipt [08:03:11]json_value_free [08:03:11]json_value_free done [08:03:11]process_json_proto returns [08:03:11]Send response to host [08:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165554,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:03:11]free response buf [08:03:11]execute_script done [08:03:11]execute_script returns [08:03:11]free content buf [08:03:11]Sock 9.Close socket [08:03:11]Sock 9.Thread stoped [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:19]accept exits with 7 [08:05:19]New connection [08:05:19]New thread 3066920292 created [08:05:19]Thread 3066776932 joined [08:05:19]Waiting for new connection... [08:05:19] Sock 7.Parse request [08:05:19]Sock 7.Check first char [08:05:19]Sock 7.First char is OK [08:05:19]request: POST /json_proto HTTP/1.0 [08:05:19]Method: POST [08:05:19]URL: /json_proto [08:05:19]Method is POST - this is cgi request [08:05:19]url: /json_proto [08:05:19]query_string will be loaded in cgi processing [08:05:19]execute_cgi json_proto POST (null) [08:05:19]execute_cgi path=json_proto method=POST [08:05:19]POST find Content-Length [08:05:19]Host: 172.17.53.195:8080 [08:05:19]Content-Length: 682 [08:05:19]Content-Type: application/json [08:05:19] [08:05:19]POST finish read [08:05:19]Found Content-Length = 682 [08:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:19]execute_script... [08:05: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)220114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:19]POST & json_proto [08:05:19]process_json_proto [08:05:19]json parsed OK: [08:05:19]protocol is kg_v1.0 [08:05:19]action value=close_receipt [08:05:19]process_action close_receipt [08:05:19]cmd_close_receipt [08:05:19]MH_GetDate [08:05:19]Write to MH i2c: F0 00 00 42 C6 F7 [08:05:19]Write i2c OK [08:05:19]MH_I2C_Read... [08:05:19]Read from MH i2c: F0 [08:05:19]MH_I2C_Read... [08:05:19]Read from MH i2c: F0 09 00 [08:05:19]MH_I2C_Read... [08:05:19]Read from MH i2c: F0 09 00 42 C6 00 CA B9 14 67 21 48 4A 65 16 [08:05:19]GetLastDocTimeStamp 1729411398 [08:05:19]current date 1729411530 [08:05:19]FM_GetShiftState [08:05:19]SAM_PROTO_GetShiftState [08:05:19]wFMCommunicate request_size=4 [08:05:19]MH_SAM_APDU [08:05:19]CAPDU: 80 13 01 00 [08:05:19]Write to MH i2c: E2 08 00 43 C6 80 13 01 00 00 00 00 00 86 [08:05:19]Write i2c OK [08:05:19]MH_I2C_Read... [08:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:19]Read from MH i2c: E2 [08:05:19]MH_I2C_Read... [08:05:19]Read from MH i2c: E2 0E 00 [08:05:19]MH_I2C_Read... [08:05:19]Read from MH i2c: E2 0E 00 43 C6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CE [08:05:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:05:19]wFMCommunicate OK [08:05:19]SAM_PROTO_GetShiftState done [08:05:19]FM_GetShiftState done [08:05:19]opened in 1729384561 [08:05:19]opened+sec_in_day 1729470961 [08:05:19]quantity*price = 100021 [08:05:19]sum+1 = 100023 [08:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 37 20.10.2024 08:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165555 ФПД: 278421182947947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080530&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165555&fm=278421182947947&tin=02508201610067®Number=0000000000091764&sum=100000 [08:05:20]StoreToDocumentArchive [08:05:20]shift 534 fd 165555 [08:05:20]save to /storage/0534/doc_00165555 [08:05:20]save last doc name /storage/0534/doc_00165555 to /storage/kkm_last_doc_name [08:05:20]save OK [08:05:20]Clear old archive folders... [08:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:20]tlvbuf is 014DA460 [08:05:20]SAM_PROTO_ClearQueue [08:05:20]wFMCommunicate request_size=4 [08:05:20]MH_SAM_APDU [08:05:20]CAPDU: 80 09 00 00 [08:05:20]Write to MH i2c: E2 08 00 50 C6 80 09 00 00 00 00 00 00 88 [08:05:20]Write i2c OK [08:05:20]MH_I2C_Read... [08:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:20]Read from MH i2c: E2 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 03 00 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 03 00 50 C6 00 90 00 8A [08:05:20]RAPDU: 90 00 [08:05:20]wFMCommunicate OK [08:05:20]SAM_PROTO_ClearQueue done [08:05:20]KKMCreateOFDPacket [08:05:20]OFDProtocolAddRootSTLVToBuf [08:05:20]FM_MakeSignedData [08:05:20]FM_MakeSignedData [08:05:20]SAM_PROTO_SignData [08:05:20]wFMCommunicate request_size=4 [08:05:20]MH_SAM_APDU [08:05:20]CAPDU: 80 0D 01 02 [08:05:20]Write to MH i2c: E2 08 00 51 C6 80 0D 01 02 00 00 00 00 90 [08:05:20]Write i2c OK [08:05:20]MH_I2C_Read... [08:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:20]Read from MH i2c: E2 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 03 00 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 03 00 51 C6 00 90 00 8B [08:05:20]RAPDU: 90 00 [08:05:20]wFMCommunicate OK [08:05:20]wFMCommunicate request_size=255 [08:05:20]MH_SAM_APDU [08: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CA B9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 86 02 00 35 04 06 00 FD [08:05:20]Write to MH i2c: E2 02 01 52 C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CA B9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 86 02 00 35 04 06 00 FD 00 00 B6 [08:05:20]Write i2c OK [08:05:20]MH_I2C_Read... [08:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:20]Read from MH i2c: E2 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 03 00 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 03 00 52 C6 00 90 00 8C [08:05:20]RAPDU: 90 00 [08:05:20]wFMCommunicate OK [08:05:20]wFMCommunicate request_size=10 [08:05:20]MH_SAM_APDU [08:05:20]CAPDU: 80 0D 02 02 05 38 FB B5 22 6B [08:05:20]Write to MH i2c: E2 0D 00 53 C6 80 0D 02 02 05 00 38 FB B5 22 6B 00 00 12 [08:05:20]Write i2c OK [08:05:20]MH_I2C_Read... [08:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:20]Read from MH i2c: E2 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 03 00 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 03 00 53 C6 00 90 00 8D [08:05:20]RAPDU: 90 00 [08:05:20]wFMCommunicate OK [08:05:20]wFMCommunicate request_size=4 [08:05:20]MH_SAM_APDU [08:05:20]CAPDU: 80 0D 03 02 [08:05:20]Write to MH i2c: E2 08 00 54 C6 80 0D 03 02 00 00 00 00 95 [08:05:20]Write i2c OK [08:05:20]MH_I2C_Read... [08:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:20]Read from MH i2c: E2 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 0B 00 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 0B 00 54 C6 00 0E C2 A4 1F FB 92 84 DE 90 00 18 [08:05:20]RAPDU: 0E C2 A4 1F FB 92 84 DE 90 00 [08:05:20]wFMCommunicate OK [08:05:20]SAM_PROTO_SignData done [08:05:20]FM_MakeSignedData done [08:05:20]CreateOFDProtocolMessage [08:05:20]wFMCommunicate request_size=4 [08:05:20]MH_SAM_APDU [08:05:20]CAPDU: 80 11 00 00 [08:05:20]Write to MH i2c: E2 08 00 55 C6 80 11 00 00 00 00 00 00 95 [08:05:20]Write i2c OK [08:05:20]MH_I2C_Read... [08:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:20]Read from MH i2c: E2 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 17 00 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 17 00 55 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [08:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:05:20]wFMCommunicate OK [08:05:20]CreateOFDProtocolMessage done [08:05:20]OFDSenderStorePacket 165555 [08:05:20]StoreOFDPacket docnum=165555 [08:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 22 DE 07 01 0B 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CA B9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 86 02 00 35 04 06 00 FD 38 FB B5 22 6B 0E C2 A4 1F FB 92 84 DE [08:05:20]CheckFolder [08:05:20]dirname=/storage/ofd_packets [08:05:20]CheckFolder done [08:05:20]ProducePacketName [08:05:20]name=ofd_packets/00165555 [08:05:20]NVStorageSaveData ofd_packets/00165555 [08:05:20]File name is /storage/ofd_packets/00165555 [08:05:20]Write 301 bytes [08:05:20]NVStorageSaveData done [08:05:20]OFDSenderStorePacket done [08:05:20]KKMCreateOFDPacket done [08:05:20]NVStorageSaveData kkm_last_timestamp [08:05:20]File name is /storage/kkm_last_timestamp [08:05:20]Write 4 bytes [08:05:20]NVStorageSaveData done [08:05:20]ExternCall_PrintAddStr [08:05:20]wPrintStart [08:05:20]Write to MH i2c: 01 00 00 56 C6 1C [08:05:20]Write i2c OK [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: 01 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: 01 07 00 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: 01 07 00 56 C6 00 00 00 00 00 FF 0F 31 [08:05:20]RasterBufferAndPrint [08:05:20]line Счет N : (1)220114 [08:05:20]line ИНН: 02508201610067 [08:05:20]line Контрольно-Кассовый Чек [08:05:20]line ПРОДАЖА [08:05:20]line ТРК (МРК, ГНК) : 24 [08:05:20]line Товар: 2710124500 [08:05:20]line Аи-95-К-5 [08:05:20]line 13.480 * 74.20 [08:05:20]line = 1000.22 [08:05:20]line НДС 12% НСП 1% [08:05:20]line > о реализуемом товаре [08:05:20]line ОКРУГЛЕНИЕ: -0.22 [08:05:20]line ИТОГО: 1000.00 [08:05:20]line Внесено: 1000.00 [08:05:20]line СДАЧА: 0.00 [08:05:20]line НСП 1% : 8.85 [08:05:20]line НДС 12% : 106.22 [08:05:20]line Наличными: 1000.00 [08:05:20]line Безнал.: 0.00 [08:05:20]line Место: АЗС № 161 "Партнер Нефть" [08:05:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:05:20]line СНО: Общий режим [08:05:20]line Чек 37 20.10.2024 08:05 [08:05:20]line Смена: 534 ФФД: 1.0 [08:05:20]line ЗНМ: 0300000104 [08:05:20]line РНМ: 0000000000091764 [08:05:20]line Версия ККМ: 001 [08:05:20]line ФМ: 0000000000871759 [08:05:20]line ФД: 165555 [08:05:20]line ФПД: 278421182947947 [08:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080530&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165555&fm=278421182947947&tin=02508201610067®Number=0000000000091764&sum=100000 [08:05:21]OFD Sender: Processing packet 165555 [packets to send 48, broken 47] [08:05:21]ProducePacketName [08:05:21]name=ofd_packets/00165555 [08:05:21]OFD Sender: To server: pG, [08:05:21]CommunicateWithHost lk.salyk.kg:30040 [08:05:21]ConnectInit lk.salyk.kg [08:05:21]written 0, free lines is 4095 [08:05:21]Connected sock=10 [08:05:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 22 DE 07 01 0B 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CA B9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 86 02 00 35 04 06 00 FD 38 FB B5 22 6B 0E C2 A4 1F FB 92 84 DE [08:05:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8E 95 47 00 55 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 31 37 35 39 10 04 04 00 B3 86 02 00 F4 03 04 00 3C 60 14 67 B6 04 01 00 00 D8 16 4E FF 12 6C 96 5C [08:05:21]CommunicateWithHost err = 0 [08:05:21]CheckOFDResponse [08:05:21]1017 (14) - 77093643461234 [08:05:21]1041 (16) - 0000000000871759 [08:05:21]1040 (4) - 165555 [08:05:21]1012 (4) - 20.10.2024 01:43 [08:05:21]1206 (1) - 0 [08:05:21]OFD Sender: Remove packet 165555 [08:05:21]ProducePacketName [08:05:21]name=ofd_packets/00165555 [08:05:21]NVStorageDeleteData [08:05:21]Write to MH i2c: 01 00 00 81 C6 47 [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: 01 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: 01 07 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: 01 07 00 81 C6 00 00 00 00 00 B2 0C 0C [08:05:21]RasterBufferAndPrint [08:05:21]line [08:05:21]line [08:05:21]line [08:05:21]line [08:05:21]line [08:05:21]written 0, free lines is 3256 [08:05:21]MH_Cut [08:05:21]Write to MH i2c: D1 01 00 88 C6 01 20 [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: D1 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: D1 01 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: D1 01 00 88 C6 00 1F [08:05:21]Write to MH i2c: 01 00 00 89 C6 4F [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]OFD Sender: No OFD packet to send [08:05:22]*** Cut start [08:05:22]*** Partial cut [08:05:22]*** CUTSNS_PIN = 1 [08:05:22]*** CUTSNS_PIN = 0 [08:05:22]*** Brake cut motor [08:05:23]Read from MH i2c: 01 [08:05:23]MH_I2C_Read... [08:05:23]*** Stop cut motor [08:05:23]*** Cut end [08:05:23]Read from MH i2c: 01 07 00 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: 01 07 00 89 C6 00 00 00 00 00 FF 0F 64 [08:05:23]process_action close_receipt done [08:05:23]requested_data is exist [08:05:23]produce_requested_data [08:05:23]requested_item fm.sn is exist - process it [08:05:23]wFMCommunicate request_size=4 [08:05:23]MH_SAM_APDU [08:05:23]CAPDU: 80 11 00 00 [08:05:23]Write to MH i2c: E2 08 00 8A C6 80 11 00 00 00 00 00 00 CA [08:05:23]Write i2c OK [08:05:23]MH_I2C_Read... [08:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:23]Read from MH i2c: E2 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 17 00 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 17 00 8A C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [08:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:05:23]wFMCommunicate OK [08:05:23]requested_item fd.num is exist - process it [08:05:23]SAM_PROTO_GetFieldsCounters [08:05:23]wFMCommunicate request_size=4 [08:05:23]MH_SAM_APDU [08:05:23]CAPDU: 80 13 00 00 [08:05:23]Write to MH i2c: E2 08 00 8B C6 80 13 00 00 00 00 00 00 CD [08:05:23]Write i2c OK [08:05:23]MH_I2C_Read... [08:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:23]Read from MH i2c: E2 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 62 00 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 62 00 8B C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [08:05:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:23]wFMCommunicate OK [08:05:23]SAM_PROTO_GetFieldsCounters done [08:05:23]requested_item shift.num is exist - process it [08:05:23]requested_item shift.opened is exist - process it [08:05:23]req_shift_opened [08:05:23]FM_GetShiftState [08:05:23]SAM_PROTO_GetShiftState [08:05:23]wFMCommunicate request_size=4 [08:05:23]MH_SAM_APDU [08:05:23]CAPDU: 80 13 01 00 [08:05:23]Write to MH i2c: E2 08 00 8C C6 80 13 01 00 00 00 00 00 CF [08:05:23]Write i2c OK [08:05:23]MH_I2C_Read... [08:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:23]Read from MH i2c: E2 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 0E 00 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 0E 00 8C C6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 17 [08:05:23]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:05:23]wFMCommunicate OK [08:05:23]SAM_PROTO_GetShiftState done [08:05:23]FM_GetShiftState done [08:05:23]req_shift_opened done [08:05:23]requested_item shift.open_date is exist - process it [08:05:23]req_shift_open_date [08:05:23]req_shift_open_date done [08:05:23]produce_requested_data done [08:05:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165555,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:05:23]process_action_free close_receipt [08:05:23]json_value_free [08:05:23]json_value_free done [08:05:23]process_json_proto returns [08:05:23]Send response to host [08:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165555,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:05:23]free response buf [08:05:23]execute_script done [08:05:23]execute_script returns [08:05:23]free content buf [08:05:23]Sock 7.Close socket [08:05:23]Sock 7.Thread stoped [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:27]ConnectInit Can't connect to host [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]accept exits with 9 [08:18:27]New connection [08:18:27]New thread 3066776932 created [08:18:27]Thread 3066920292 joined [08:18:27]Waiting for new connection... [08:18:27] Sock 9.Parse request [08:18:27]Sock 9.Check first char [08:18:27]Sock 9.First char is OK [08:18:27]request: POST /json_proto HTTP/1.0 [08:18:27]Method: POST [08:18:27]URL: /json_proto [08:18:27]Method is POST - this is cgi request [08:18:27]url: /json_proto [08:18:27]query_string will be loaded in cgi processing [08:18:27]execute_cgi json_proto POST (null) [08:18:27]execute_cgi path=json_proto method=POST [08:18:27]POST find Content-Length [08:18:27]Host: 172.17.53.195:8080 [08:18:27]Content-Length: 215 [08:18:27]Content-Type: application/json [08:18:27] [08:18:27]POST finish read [08:18:27]Found Content-Length = 215 [08:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:27]execute_script... [08:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:27]POST & json_proto [08:18:27]process_json_proto [08:18:27]json parsed OK: [08:18:27]protocol is kg_v1.0 [08:18:27]action value=get_value [08:18:27]process_action get_value [08:18:27]cmd_get_value [08:18:27]process_action get_value done [08:18:27]requested_data is exist [08:18:27]produce_requested_data [08:18:27]requested_item kkm.sn is exist - process it [08:18:27]requested_item kkm.ver is exist - process it [08:18:27]requested_item fm.sn is exist - process it [08:18:27]wFMCommunicate request_size=4 [08:18:27]MH_SAM_APDU [08:18:27]CAPDU: 80 11 00 00 [08:18:27]Write to MH i2c: E2 08 00 8D C6 80 11 00 00 00 00 00 00 CD [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:27]Read from MH i2c: E2 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 17 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 17 00 8D C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 25 [08:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:18:27]wFMCommunicate OK [08:18:27]requested_item fd.num is exist - process it [08:18:27]SAM_PROTO_GetFieldsCounters [08:18:27]wFMCommunicate request_size=4 [08:18:27]MH_SAM_APDU [08:18:27]CAPDU: 80 13 00 00 [08:18:27]Write to MH i2c: E2 08 00 8E C6 80 13 00 00 00 00 00 00 D0 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:27]Read from MH i2c: E2 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 62 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 62 00 8E C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [08:18:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:27]wFMCommunicate OK [08:18:27]SAM_PROTO_GetFieldsCounters done [08:18:27]requested_item shift.num is exist - process it [08:18:27]requested_item shift.opened is exist - process it [08:18:27]req_shift_opened [08:18:27]FM_GetShiftState [08:18:27]SAM_PROTO_GetShiftState [08:18:27]wFMCommunicate request_size=4 [08:18:27]MH_SAM_APDU [08:18:27]CAPDU: 80 13 01 00 [08:18:27]Write to MH i2c: E2 08 00 8F C6 80 13 01 00 00 00 00 00 D2 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:27]Read from MH i2c: E2 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 0E 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 0E 00 8F C6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1A [08:18:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:18:27]wFMCommunicate OK [08:18:27]SAM_PROTO_GetShiftState done [08:18:27]FM_GetShiftState done [08:18:27]req_shift_opened done [08:18:27]requested_item shift.open_date is exist - process it [08:18:27]req_shift_open_date [08:18:27]req_shift_open_date done [08:18:27]produce_requested_data done [08:18:27]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165555,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:18:27]process_action_free get_value [08:18:27]json_value_free [08:18:27]json_value_free done [08:18:27]process_json_proto returns [08:18:27]Send response to host [08:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165555,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:18:27]free response buf [08:18:27]execute_script done [08:18:27]execute_script returns [08:18:27]free content buf [08:18:27]Sock 9.Close socket [08:18:27]Sock 9.Thread stoped [08:18:27]accept exits with 7 [08:18:27]New connection [08:18:27]New thread 3066920292 created [08:18:27]Thread 3066776932 joined [08:18:27]Waiting for new connection... [08:18:27] Sock 7.Parse request [08:18:27]Sock 7.Check first char [08:18:27]Sock 7.First char is OK [08:18:27]request: POST /json_proto HTTP/1.0 [08:18:27]Method: POST [08:18:27]URL: /json_proto [08:18:27]Method is POST - this is cgi request [08:18:27]url: /json_proto [08:18:27]query_string will be loaded in cgi processing [08:18:27]execute_cgi json_proto POST (null) [08:18:27]execute_cgi path=json_proto method=POST [08:18:27]POST find Content-Length [08:18:27]Host: 172.17.53.195:8080 [08:18:27]Content-Length: 331 [08:18:27]Content-Type: application/json [08:18:27] [08:18:27]POST finish read [08:18:27]Found Content-Length = 331 [08:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:18:27]execute_script... [08:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:18:27]POST & json_proto [08:18:27]process_json_proto [08:18:27]json parsed OK: [08:18:27]protocol is kg_v1.0 [08:18:27]action value=get_value [08:18:27]process_action get_value [08:18:27]cmd_get_value [08:18:27]process_action get_value done [08:18:27]requested_data is exist [08:18:27]produce_requested_data [08:18:27]requested_item fm.sale.total is exist - process it [08:18:27]SAM_PROTO_GetFMData [08:18:27]wFMCommunicate request_size=4 [08:18:27]MH_SAM_APDU [08:18:27]CAPDU: 80 13 03 00 [08:18:27]Write to MH i2c: E2 08 00 90 C6 80 13 03 00 00 00 00 00 D5 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]OFD Sender: No OFD packet to send [08:18:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:18:27]Read from MH i2c: E2 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 FD 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 FD 00 90 C6 00 C5 04 85 04 C1 04 6E 04 04 00 87 82 02 00 69 04 A3 00 6F 04 04 00 88 81 02 00 B1 04 05 00 D6 64 8C AE 03 70 04 05 00 D4 DC D0 25 03 72 04 04 00 02 88 BB 88 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 C1 D2 22 64 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 B9 23 58 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 CA [08:18:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 82 02 00 69 04 A3 00 6F 04 04 00 88 81 02 00 B1 04 05 00 D6 64 8C AE 03 70 04 05 00 D4 DC D0 25 03 72 04 04 00 02 88 BB 88 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 C1 D2 22 64 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 B9 23 58 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [08:18:27]wFMCommunicate OK [08:18:27]wFMCommunicate request_size=4 [08:18:27]MH_SAM_APDU [08:18:27]CAPDU: 80 17 00 00 [08:18:27]Write to MH i2c: E2 08 00 91 C6 80 17 00 00 00 00 00 00 D7 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:18:28]Read from MH i2c: E2 [08:18:28]MH_I2C_Read... [08:18:28]Read from MH i2c: E2 FD 00 [08:18:28]MH_I2C_Read... [08:18:28]Read from MH i2c: E2 FD 00 91 C6 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [08:18:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:18:28]wFMCommunicate OK [08:18:28]wFMCommunicate request_size=4 [08:18:28]MH_SAM_APDU [08:18:28]CAPDU: 80 17 00 00 [08:18:28]Write to MH i2c: E2 08 00 92 C6 80 17 00 00 00 00 00 00 D8 [08:18:28]Write i2c OK [08:18:28]MH_I2C_Read... [08:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:18:28]Read from MH i2c: E2 [08:18:28]MH_I2C_Read... [08:18:28]Read from MH i2c: E2 FD 00 [08:18:28]MH_I2C_Read... [08:18:28]Read from MH i2c: E2 FD 00 92 C6 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 90 00 EA [08:18:28]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:18:28]wFMCommunicate OK [08:18:28]wFMCommunicate request_size=4 [08:18:28]MH_SAM_APDU [08:18:28]CAPDU: 80 17 00 00 [08:18:28]Write to MH i2c: E2 08 00 93 C6 80 17 00 00 00 00 00 00 D9 [08:18:28]Write i2c OK [08:18:28]MH_I2C_Read... [08:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:18:28]Read from MH i2c: E2 [08:18:28]MH_I2C_Read... [08:18:28]Read from MH i2c: E2 FD 00 [08:18:28]MH_I2C_Read... [08:18:28]Read from MH i2c: E2 FD 00 93 C6 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [08:18:28]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:18:28]wFMCommunicate OK [08:18:28]wFMCommunicate request_size=4 [08:18:28]MH_SAM_APDU [08:18:28]CAPDU: 80 17 00 00 [08:18:28]Write to MH i2c: E2 08 00 94 C6 80 17 00 00 00 00 00 00 DA [08:18:28]Write i2c OK [08:18:28]MH_I2C_Read... [08:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:18:29]Read from MH i2c: E2 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 E2 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 E2 00 94 C6 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:18:29]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:18:29]wFMCommunicate OK [08:18:29]SAM_PROTO_GetFMData done [08:18:29]requested_item fm.sale_refund.total is exist - process it [08:18:29]requested_item fm.buy.total is exist - process it [08:18:29]requested_item shift.sale.total is exist - process it [08:18:29]SAM_PROTO_GetShiftData [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 13 02 00 [08:18:29]Write to MH i2c: E2 08 00 95 C6 80 13 02 00 00 00 00 00 D9 [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:18:29]Read from MH i2c: E2 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 FD 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 FD 00 95 C6 00 AE 04 AA 04 AA 04 6E 04 04 00 25 00 00 00 69 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 23 EE 51 70 04 03 00 B8 AD 30 72 04 03 00 6B 40 21 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 D0 B3 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [08:18:29]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 25 00 00 00 69 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 23 EE 51 70 04 03 00 B8 AD 30 72 04 03 00 6B 40 21 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 D0 B3 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:18:29]wFMCommunicate OK [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 17 00 00 [08:18:29]Write to MH i2c: E2 08 00 96 C6 80 17 00 00 00 00 00 00 DC [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:18:29]Read from MH i2c: E2 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 FD 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 FD 00 96 C6 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 FE [08:18: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 [08:18:29]wFMCommunicate OK [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 17 00 00 [08:18:29]Write to MH i2c: E2 08 00 97 C6 80 17 00 00 00 00 00 00 DD [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 FD 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 FD 00 97 C6 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [08:18:30]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:18:30]wFMCommunicate OK [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 17 00 00 [08:18:30]Write to MH i2c: E2 08 00 98 C6 80 17 00 00 00 00 00 00 DE [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 FD 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 FD 00 98 C6 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 50 [08:18:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:18:30]wFMCommunicate OK [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 17 00 00 [08:18:30]Write to MH i2c: E2 08 00 99 C6 80 17 00 00 00 00 00 00 DF [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 CB 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 CB 00 99 C6 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 C8 [08:18:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:18:30]wFMCommunicate OK [08:18:30]SAM_PROTO_GetShiftData done [08:18:30]requested_item shift.sale.total_cash is exist - process it [08:18:30]requested_item shift.sale_refund.total is exist - process it [08:18:30]requested_item shift.sale_refund.total_cash is exist - process it [08:18:30]requested_item shift.buy.total is exist - process it [08:18:30]requested_item shift.buy.total_cash is exist - process it [08:18:30]produce_requested_data done [08:18:30]produce_requested_data return {"fm.sale.total":158133383.26,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":53693.79,"shift.sale.total_cash":31902.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:18:30]process_action_free get_value [08:18:30]json_value_free [08:18:30]json_value_free done [08:18:30]process_json_proto returns [08:18:30]Send response to host [08:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158133383.26,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":53693.79,"shift.sale.total_cash":31902.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:18:30]free response buf [08:18:30]execute_script done [08:18:30]execute_script returns [08:18:30]free content buf [08:18:30]Sock 7.Close socket [08:18:30]Sock 7.Thread stoped [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:05]accept exits with 9 [08:19:05]New connection [08:19:05]New thread 3066776932 created [08:19:05]Thread 3066920292 joined [08:19:05]Waiting for new connection... [08:19:05] Sock 9.Parse request [08:19:05]Sock 9.Check first char [08:19:05]Sock 9.First char is OK [08:19:05]request: POST /json_proto HTTP/1.0 [08:19:05]Method: POST [08:19:05]URL: /json_proto [08:19:05]Method is POST - this is cgi request [08:19:05]url: /json_proto [08:19:05]query_string will be loaded in cgi processing [08:19:05]execute_cgi json_proto POST (null) [08:19:05]execute_cgi path=json_proto method=POST [08:19:05]POST find Content-Length [08:19:05]Host: 172.17.53.195:8080 [08:19:05]Content-Length: 674 [08:19:05]Content-Type: application/json [08:19:05] [08:19:05]POST finish read [08:19:05]Found Content-Length = 674 [08:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220115", "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" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:05]execute_script... [08:19: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)220115", "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" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:05]POST & json_proto [08:19:05]process_json_proto [08:19:05]json parsed OK: [08:19:05]protocol is kg_v1.0 [08:19:05]action value=close_receipt [08:19:05]process_action close_receipt [08:19:05]cmd_close_receipt [08:19:05]MH_GetDate [08:19:05]Write to MH i2c: F0 00 00 9A C6 4F [08:19:05]Write i2c OK [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: F0 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: F0 09 00 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: F0 09 00 9A C6 00 05 BD 14 67 21 48 4A 65 AD [08:19:05]GetLastDocTimeStamp 1729411530 [08:19:05]current date 1729412357 [08:19:05]FM_GetShiftState [08:19:05]SAM_PROTO_GetShiftState [08:19:05]wFMCommunicate request_size=4 [08:19:05]MH_SAM_APDU [08:19:05]CAPDU: 80 13 01 00 [08:19:05]Write to MH i2c: E2 08 00 9B C6 80 13 01 00 00 00 00 00 DE [08:19:05]Write i2c OK [08:19:05]MH_I2C_Read... [08:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:05]Read from MH i2c: E2 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: E2 0E 00 [08:19:05]MH_I2C_Read... [08:19:05]Read from MH i2c: E2 0E 00 9B C6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 26 [08:19:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:19:05]wFMCommunicate OK [08:19:05]SAM_PROTO_GetShiftState done [08:19:05]FM_GetShiftState done [08:19:05]opened in 1729384561 [08:19:05]opened+sec_in_day 1729470961 [08:19:05]quantity*price = 49987 [08:19:05]sum+1 = 49988 [08:19:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 38 20.10.2024 08:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165556 ФПД: 24013111699195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081917&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165556&fm=24013111699195&tin=02508201610067®Number=0000000000091764&sum=49900 [08:19:06]StoreToDocumentArchive [08:19:06]shift 534 fd 165556 [08:19:06]save to /storage/0534/doc_00165556 [08:19:06]save last doc name /storage/0534/doc_00165556 to /storage/kkm_last_doc_name [08:19:06]save OK [08:19:06]Clear old archive folders... [08:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:19:07]tlvbuf is 01469D80 [08:19:07]SAM_PROTO_ClearQueue [08:19:07]wFMCommunicate request_size=4 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 09 00 00 [08:19:07]Write to MH i2c: E2 08 00 A8 C6 80 09 00 00 00 00 00 00 E0 [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 03 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 03 00 A8 C6 00 90 00 E2 [08:19:07]RAPDU: 90 00 [08:19:07]wFMCommunicate OK [08:19:07]SAM_PROTO_ClearQueue done [08:19:07]KKMCreateOFDPacket [08:19:07]OFDProtocolAddRootSTLVToBuf [08:19:07]FM_MakeSignedData [08:19:07]FM_MakeSignedData [08:19:07]SAM_PROTO_SignData [08:19:07]wFMCommunicate request_size=4 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 0D 01 02 [08:19:07]Write to MH i2c: E2 08 00 A9 C6 80 0D 01 02 00 00 00 00 E8 [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 03 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 03 00 A9 C6 00 90 00 E3 [08:19:07]RAPDU: 90 00 [08:19:07]wFMCommunicate OK [08:19:07]wFMCommunicate request_size=255 [08:19:07]MH_SAM_APDU [08:19: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 05 BD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 86 02 00 35 04 06 00 15 D6 FC FE [08:19:07]Write to MH i2c: E2 02 01 AA C6 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 05 BD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 86 02 00 35 04 06 00 15 D6 FC FE 00 00 6F [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 03 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 03 00 AA C6 00 90 00 E4 [08:19:07]RAPDU: 90 00 [08:19:07]wFMCommunicate OK [08:19:07]wFMCommunicate request_size=7 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 0D 02 02 02 26 FB [08:19:07]Write to MH i2c: E2 0A 00 AB C6 80 0D 02 02 02 00 26 FB 00 00 10 [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 03 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 03 00 AB C6 00 90 00 E5 [08:19:07]RAPDU: 90 00 [08:19:07]wFMCommunicate OK [08:19:07]wFMCommunicate request_size=4 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 0D 03 02 [08:19:07]Write to MH i2c: E2 08 00 AC C6 80 0D 03 02 00 00 00 00 ED [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 0B 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 0B 00 AC C6 00 A3 A4 D5 8B A7 4A 94 7A 90 00 94 [08:19:07]RAPDU: A3 A4 D5 8B A7 4A 94 7A 90 00 [08:19:07]wFMCommunicate OK [08:19:07]SAM_PROTO_SignData done [08:19:07]FM_MakeSignedData done [08:19:07]CreateOFDProtocolMessage [08:19:07]wFMCommunicate request_size=4 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 11 00 00 [08:19:07]Write to MH i2c: E2 08 00 AD C6 80 11 00 00 00 00 00 00 ED [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 17 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 17 00 AD C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [08:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:19:07]wFMCommunicate OK [08:19:07]CreateOFDProtocolMessage done [08:19:07]OFDSenderStorePacket 165556 [08:19:07]StoreOFDPacket docnum=165556 [08:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 ED 50 04 01 2D 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 05 BD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 86 02 00 35 04 06 00 15 D6 FC FE 26 FB A3 A4 D5 8B A7 4A 94 7A [08:19:07]CheckFolder [08:19:07]dirname=/storage/ofd_packets [08:19:07]CheckFolder done [08:19:07]ProducePacketName [08:19:07]name=ofd_packets/00165556 [08:19:07]NVStorageSaveData ofd_packets/00165556 [08:19:07]File name is /storage/ofd_packets/00165556 [08:19:07]Write 298 bytes [08:19:07]NVStorageSaveData done [08:19:07]OFDSenderStorePacket done [08:19:07]KKMCreateOFDPacket done [08:19:07]NVStorageSaveData kkm_last_timestamp [08:19:07]File name is /storage/kkm_last_timestamp [08:19:07]Write 4 bytes [08:19:07]NVStorageSaveData done [08:19:07]ExternCall_PrintAddStr [08:19:07]wPrintStart [08:19:07]Write to MH i2c: 01 00 00 AE C6 74 [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: 01 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: 01 07 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: 01 07 00 AE C6 00 00 00 00 00 FF 0F 89 [08:19:07]RasterBufferAndPrint [08:19:07]line Счет N : (1)220115 [08:19:07]line ИНН: 02508201610067 [08:19:07]line Контрольно-Кассовый Чек [08:19:07]line ПРОДАЖА [08:19:07]line ТРК (МРК, ГНК) : 11 [08:19:07]line Товар: 2710194210 [08:19:07]line ДТ-К-5 [08:19:07]line 6.560 * 76.20 [08:19:07]line = 499.87 [08:19:07]line НДС 12% НСП 1% [08:19:07]line > о реализуемом товаре [08:19:07]line ОКРУГЛЕНИЕ: -0.87 [08:19:07]line ИТОГО: 499.00 [08:19:07]line Внесено: 500.00 [08:19:07]line СДАЧА: 1.00 [08:19:07]line НСП 1% : 4.42 [08:19:07]line НДС 12% : 53.08 [08:19:07]line Наличными: 499.00 [08:19:07]line Безнал.: 0.00 [08:19:07]line Место: АЗС № 161 "Партнер Нефть" [08:19:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:19:07]line СНО: Общий режим [08:19:07]line Чек 38 20.10.2024 08:19 [08:19:07]line Смена: 534 ФФД: 1.0 [08:19:07]line ЗНМ: 0300000104 [08:19:07]line РНМ: 0000000000091764 [08:19:07]line Версия ККМ: 001 [08:19:07]line ФМ: 0000000000871759 [08:19:07]line ФД: 165556 [08:19:07]line ФПД: 24013111699195 [08:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081917&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165556&fm=24013111699195&tin=02508201610067®Number=0000000000091764&sum=49900 [08:19:07]OFD Sender: Processing packet 165556 [packets to send 48, broken 47] [08:19:07]ProducePacketName [08:19:07]name=ofd_packets/00165556 [08:19:07]OFD Sender: To server: pG, [08:19:07]CommunicateWithHost lk.salyk.kg:30040 [08:19:07]ConnectInit lk.salyk.kg [08:19:07]written 0, free lines is 4095 [08:19:07]Connected sock=11 [08:19:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 ED 50 04 01 2D 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 05 BD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 86 02 00 35 04 06 00 15 D6 FC FE 26 FB A3 A4 D5 8B A7 4A 94 7A [08:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D8 4E 47 00 CA 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 31 37 35 39 10 04 04 00 B4 86 02 00 F4 03 04 00 77 63 14 67 B6 04 01 00 00 56 E6 43 2B 6C 9A FE EB [08:19:08]CommunicateWithHost err = 0 [08:19:08]CheckOFDResponse [08:19:08]1017 (14) - 77093643461234 [08:19:08]1041 (16) - 0000000000871759 [08:19:08]1040 (4) - 165556 [08:19:08]1012 (4) - 20.10.2024 01:57 [08:19:08]1206 (1) - 0 [08:19:08]OFD Sender: Remove packet 165556 [08:19:08]ProducePacketName [08:19:08]name=ofd_packets/00165556 [08:19:08]NVStorageDeleteData [08:19:08]Write to MH i2c: 01 00 00 D9 C6 9F [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: 01 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: 01 07 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: 01 07 00 D9 C6 00 00 00 00 00 A8 0C 5A [08:19:08]RasterBufferAndPrint [08:19:08]line [08:19:08]line [08:19:08]line [08:19:08]line [08:19:08]line [08:19:08]written 0, free lines is 3245 [08:19:08]MH_Cut [08:19:08]Write to MH i2c: D1 01 00 E0 C6 01 78 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: D1 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: D1 01 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: D1 01 00 E0 C6 00 77 [08:19:08]Write to MH i2c: 01 00 00 E1 C6 A7 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]OFD Sender: No OFD packet to send [08:19:09]*** Cut start [08:19:09]*** Partial cut [08:19:09]*** CUTSNS_PIN = 1 [08:19:09]*** CUTSNS_PIN = 0 [08:19:09]*** Brake cut motor [08:19:09]Read from MH i2c: 01 [08:19:09]MH_I2C_Read... [08:19:09]*** Stop cut motor [08:19:09]*** Cut end [08:19:09]Read from MH i2c: 01 07 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 E1 C6 00 00 00 00 00 FF 0F BC [08:19:09]process_action close_receipt done [08:19:09]requested_data is exist [08:19:09]produce_requested_data [08:19:09]requested_item fm.sn is exist - process it [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 11 00 00 [08:19:09]Write to MH i2c: E2 08 00 E2 C6 80 11 00 00 00 00 00 00 22 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 E2 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7A [08:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:19:09]wFMCommunicate OK [08:19:09]requested_item fd.num is exist - process it [08:19:09]SAM_PROTO_GetFieldsCounters [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 13 00 00 [08:19:09]Write to MH i2c: E2 08 00 E3 C6 80 13 00 00 00 00 00 00 25 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:10]Read from MH i2c: E2 [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: E2 62 00 [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: E2 62 00 E3 C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [08:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:10]wFMCommunicate OK [08:19:10]SAM_PROTO_GetFieldsCounters done [08:19:10]requested_item shift.num is exist - process it [08:19:10]requested_item shift.opened is exist - process it [08:19:10]req_shift_opened [08:19:10]FM_GetShiftState [08:19:10]SAM_PROTO_GetShiftState [08:19:10]wFMCommunicate request_size=4 [08:19:10]MH_SAM_APDU [08:19:10]CAPDU: 80 13 01 00 [08:19:10]Write to MH i2c: E2 08 00 E4 C6 80 13 01 00 00 00 00 00 27 [08:19:10]Write i2c OK [08:19:10]MH_I2C_Read... [08:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:10]Read from MH i2c: E2 [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: E2 0E 00 [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: E2 0E 00 E4 C6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6F [08:19:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:19:10]wFMCommunicate OK [08:19:10]SAM_PROTO_GetShiftState done [08:19:10]FM_GetShiftState done [08:19:10]req_shift_opened done [08:19:10]requested_item shift.open_date is exist - process it [08:19:10]req_shift_open_date [08:19:10]req_shift_open_date done [08:19:10]produce_requested_data done [08:19:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165556,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:19:10]process_action_free close_receipt [08:19:10]json_value_free [08:19:10]json_value_free done [08:19:10]process_json_proto returns [08:19:10]Send response to host [08:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165556,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:19:10]free response buf [08:19:10]execute_script done [08:19:10]execute_script returns [08:19:10]free content buf [08:19:10]Sock 9.Close socket [08:19:10]Sock 9.Thread stoped [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]accept exits with 7 [08:23:03]New connection [08:23:03]New thread 3066920292 created [08:23:03]Thread 3066776932 joined [08:23:03]Waiting for new connection... [08:23:03] Sock 7.Parse request [08:23:03]Sock 7.Check first char [08:23:03]Sock 7.First char is OK [08:23:03]request: POST /json_proto HTTP/1.0 [08:23:03]Method: POST [08:23:03]URL: /json_proto [08:23:03]Method is POST - this is cgi request [08:23:03]url: /json_proto [08:23:03]query_string will be loaded in cgi processing [08:23:03]execute_cgi json_proto POST (null) [08:23:03]execute_cgi path=json_proto method=POST [08:23:03]POST find Content-Length [08:23:03]Host: 172.17.53.195:8080 [08:23:03]Content-Length: 682 [08:23:03]Content-Type: application/json [08:23:03] [08:23:03]POST finish read [08:23:03]Found Content-Length = 682 [08:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:03]execute_script... [08: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)220117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:03]POST & json_proto [08:23:03]process_json_proto [08:23:03]json parsed OK: [08:23:03]protocol is kg_v1.0 [08:23:03]action value=close_receipt [08:23:03]process_action close_receipt [08:23:03]cmd_close_receipt [08:23:03]MH_GetDate [08:23:03]Write to MH i2c: F0 00 00 E5 C6 9A [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: F0 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: F0 09 00 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: F0 09 00 E5 C6 00 F2 BD 14 67 21 48 4A 65 E5 [08:23:03]GetLastDocTimeStamp 1729412357 [08:23:03]current date 1729412594 [08:23:03]FM_GetShiftState [08:23:03]SAM_PROTO_GetShiftState [08:23:03]wFMCommunicate request_size=4 [08:23:03]MH_SAM_APDU [08:23:03]CAPDU: 80 13 01 00 [08:23:03]Write to MH i2c: E2 08 00 E6 C6 80 13 01 00 00 00 00 00 29 [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:03]Read from MH i2c: E2 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: E2 0E 00 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: E2 0E 00 E6 C6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 71 [08:23:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:23:03]wFMCommunicate OK [08:23:03]SAM_PROTO_GetShiftState done [08:23:03]FM_GetShiftState done [08:23:03]opened in 1729384561 [08:23:03]opened+sec_in_day 1729470961 [08:23:03]quantity*price = 100015 [08:23:03]sum+1 = 100017 [08:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 39 20.10.2024 08:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165557 ФПД: 126400232562779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082314&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165557&fm=126400232562779&tin=02508201610067®Number=0000000000091764&sum=100000 [08:23:04]StoreToDocumentArchive [08:23:04]shift 534 fd 165557 [08:23:04]save to /storage/0534/doc_00165557 [08:23:04]save last doc name /storage/0534/doc_00165557 to /storage/kkm_last_doc_name [08:23:04]save OK [08:23:04]Clear old archive folders... [08:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:04]tlvbuf is 0162CC40 [08:23:04]SAM_PROTO_ClearQueue [08:23:04]wFMCommunicate request_size=4 [08:23:04]MH_SAM_APDU [08:23:04]CAPDU: 80 09 00 00 [08:23:04]Write to MH i2c: E2 08 00 F3 C6 80 09 00 00 00 00 00 00 2B [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:04]Read from MH i2c: E2 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 F3 C6 00 90 00 2D [08:23:04]RAPDU: 90 00 [08:23:04]wFMCommunicate OK [08:23:04]SAM_PROTO_ClearQueue done [08:23:04]KKMCreateOFDPacket [08:23:04]OFDProtocolAddRootSTLVToBuf [08:23:04]FM_MakeSignedData [08:23:04]FM_MakeSignedData [08:23:04]SAM_PROTO_SignData [08:23:04]wFMCommunicate request_size=4 [08:23:04]MH_SAM_APDU [08:23:04]CAPDU: 80 0D 01 02 [08:23:04]Write to MH i2c: E2 08 00 F4 C6 80 0D 01 02 00 00 00 00 33 [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:04]Read from MH i2c: E2 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 F4 C6 00 90 00 2E [08:23:04]RAPDU: 90 00 [08:23:04]wFMCommunicate OK [08:23:04]wFMCommunicate request_size=255 [08:23:04]MH_SAM_APDU [08: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 F2 BD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 86 02 00 35 04 06 00 72 [08:23:04]Write to MH i2c: E2 02 01 F5 C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 F2 BD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 86 02 00 35 04 06 00 72 00 00 DB [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 03 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 03 00 F5 C6 00 90 00 2F [08:23:05]RAPDU: 90 00 [08:23:05]wFMCommunicate OK [08:23:05]wFMCommunicate request_size=10 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 0D 02 02 05 F5 D8 F6 20 5B [08:23:05]Write to MH i2c: E2 0D 00 F6 C6 80 0D 02 02 05 00 F5 D8 F6 20 5B 00 00 7E [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 03 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 03 00 F6 C6 00 90 00 30 [08:23:05]RAPDU: 90 00 [08:23:05]wFMCommunicate OK [08:23:05]wFMCommunicate request_size=4 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 0D 03 02 [08:23:05]Write to MH i2c: E2 08 00 F7 C6 80 0D 03 02 00 00 00 00 38 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 0B 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 0B 00 F7 C6 00 43 95 B4 50 EB 93 C7 42 90 00 9C [08:23:05]RAPDU: 43 95 B4 50 EB 93 C7 42 90 00 [08:23:05]wFMCommunicate OK [08:23:05]SAM_PROTO_SignData done [08:23:05]FM_MakeSignedData done [08:23:05]CreateOFDProtocolMessage [08:23:05]wFMCommunicate request_size=4 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 11 00 00 [08:23:05]Write to MH i2c: E2 08 00 F8 C6 80 11 00 00 00 00 00 00 38 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 17 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 17 00 F8 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 90 [08:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:23:05]wFMCommunicate OK [08:23:05]CreateOFDProtocolMessage done [08:23:05]OFDSenderStorePacket 165557 [08:23:05]StoreOFDPacket docnum=165557 [08:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 72 07 01 F9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 F2 BD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 86 02 00 35 04 06 00 72 F5 D8 F6 20 5B 43 95 B4 50 EB 93 C7 42 [08:23:05]CheckFolder [08:23:05]dirname=/storage/ofd_packets [08:23:05]CheckFolder done [08:23:05]ProducePacketName [08:23:05]name=ofd_packets/00165557 [08:23:05]NVStorageSaveData ofd_packets/00165557 [08:23:05]File name is /storage/ofd_packets/00165557 [08:23:05]Write 301 bytes [08:23:05]NVStorageSaveData done [08:23:05]OFDSenderStorePacket done [08:23:05]KKMCreateOFDPacket done [08:23:05]NVStorageSaveData kkm_last_timestamp [08:23:05]File name is /storage/kkm_last_timestamp [08:23:05]Write 4 bytes [08:23:05]NVStorageSaveData done [08:23:05]ExternCall_PrintAddStr [08:23:05]wPrintStart [08:23:05]Write to MH i2c: 01 00 00 F9 C6 BF [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 07 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 07 00 F9 C6 00 00 00 00 00 FF 0F D4 [08:23:05]RasterBufferAndPrint [08:23:05]line Счет N : (1)220117 [08:23:05]line ИНН: 02508201610067 [08:23:05]line Контрольно-Кассовый Чек [08:23:05]line ПРОДАЖА [08:23:05]line ТРК (МРК, ГНК) : 13 [08:23:05]line Товар: 2710124130 [08:23:05]line Аи-92-К-5 [08:23:05]line 14.950 * 66.90 [08:23:05]line = 1000.16 [08:23:05]line НДС 12% НСП 1% [08:23:05]line > о реализуемом товаре [08:23:05]line ОКРУГЛЕНИЕ: -0.16 [08:23:05]line ИТОГО: 1000.00 [08:23:05]line Внесено: 1000.00 [08:23:05]line СДАЧА: 0.00 [08:23:05]line НСП 1% : 8.85 [08:23:05]line НДС 12% : 106.21 [08:23:05]line Наличными: 1000.00 [08:23:05]line Безнал.: 0.00 [08:23:05]line Место: АЗС № 161 "Партнер Нефть" [08:23:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:23:05]line СНО: Общий режим [08:23:05]line Чек 39 20.10.2024 08:23 [08:23:05]line Смена: 534 ФФД: 1.0 [08:23:05]line ЗНМ: 0300000104 [08:23:05]line РНМ: 0000000000091764 [08:23:05]line Версия ККМ: 001 [08:23:05]line ФМ: 0000000000871759 [08:23:05]line ФД: 165557 [08:23:05]line ФПД: 126400232562779 [08:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082314&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165557&fm=126400232562779&tin=02508201610067®Number=0000000000091764&sum=100000 [08:23:05]written 0, free lines is 4095 [08:23:05]OFD Sender: Processing packet 165557 [packets to send 48, broken 47] [08:23:05]ProducePacketName [08:23:05]name=ofd_packets/00165557 [08:23:05]OFD Sender: To server: pG, [08:23:05]CommunicateWithHost lk.salyk.kg:30040 [08:23:05]ConnectInit lk.salyk.kg [08:23:05]Connected sock=10 [08: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 31 37 35 39 0F 01 00 00 F9 72 07 01 F9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 F2 BD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 86 02 00 35 04 06 00 72 F5 D8 F6 20 5B 43 95 B4 50 EB 93 C7 42 [08:23:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E5 9E 47 00 B4 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 86 02 00 F4 03 04 00 65 64 14 67 B6 04 01 00 00 28 62 79 EA 6C 23 A1 96 [08:23:05]CommunicateWithHost err = 0 [08:23:05]CheckOFDResponse [08:23:05]1017 (14) - 77093643461234 [08:23:05]1041 (16) - 0000000000871759 [08:23:05]1040 (4) - 165557 [08:23:05]1012 (4) - 20.10.2024 02:01 [08:23:05]1206 (1) - 0 [08:23:05]OFD Sender: Remove packet 165557 [08:23:05]ProducePacketName [08:23:05]name=ofd_packets/00165557 [08:23:05]NVStorageDeleteData [08:23:05]Write to MH i2c: 01 00 00 24 C7 EB [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 07 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 07 00 24 C7 00 00 00 00 00 BC 0C BA [08:23:05]RasterBufferAndPrint [08:23:05]line [08:23:05]line [08:23:05]line [08:23:05]line [08:23:05]line [08:23:05]written 0, free lines is 3269 [08:23:05]MH_Cut [08:23:05]Write to MH i2c: D1 01 00 2B C7 01 C4 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: D1 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: D1 01 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: D1 01 00 2B C7 00 C3 [08:23:05]Write to MH i2c: 01 00 00 2C C7 F3 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:06]OFD Sender: No OFD packet to send [08:23:06]*** Cut start [08:23:06]*** Partial cut [08:23:06]*** CUTSNS_PIN = 1 [08:23:06]*** CUTSNS_PIN = 0 [08:23:06]*** Brake cut motor [08:23:07]Read from MH i2c: 01 [08:23:07]MH_I2C_Read... [08:23:07]*** Stop cut motor [08:23:07]*** Cut end [08:23:07]Read from MH i2c: 01 07 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: 01 07 00 2C C7 00 00 00 00 00 FF 0F 08 [08:23:07]process_action close_receipt done [08:23:07]requested_data is exist [08:23:07]produce_requested_data [08:23:07]requested_item fm.sn is exist - process it [08:23:07]wFMCommunicate request_size=4 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 11 00 00 [08:23:07]Write to MH i2c: E2 08 00 2D C7 80 11 00 00 00 00 00 00 6E [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 17 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 17 00 2D C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [08:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:23:07]wFMCommunicate OK [08:23:07]requested_item fd.num is exist - process it [08:23:07]SAM_PROTO_GetFieldsCounters [08:23:07]wFMCommunicate request_size=4 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 13 00 00 [08:23:07]Write to MH i2c: E2 08 00 2E C7 80 13 00 00 00 00 00 00 71 [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 62 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 62 00 2E C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [08: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:07]wFMCommunicate OK [08:23:07]SAM_PROTO_GetFieldsCounters done [08:23:07]requested_item shift.num is exist - process it [08:23:07]requested_item shift.opened is exist - process it [08:23:07]req_shift_opened [08:23:07]FM_GetShiftState [08:23:07]SAM_PROTO_GetShiftState [08:23:07]wFMCommunicate request_size=4 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 13 01 00 [08:23:07]Write to MH i2c: E2 08 00 2F C7 80 13 01 00 00 00 00 00 73 [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 0E 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 0E 00 2F C7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BB [08:23:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:23:07]wFMCommunicate OK [08:23:07]SAM_PROTO_GetShiftState done [08:23:07]FM_GetShiftState done [08:23:07]req_shift_opened done [08:23:07]requested_item shift.open_date is exist - process it [08:23:07]req_shift_open_date [08:23:07]req_shift_open_date done [08:23:07]produce_requested_data done [08:23:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165557,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:23:07]process_action_free close_receipt [08:23:07]json_value_free [08:23:07]json_value_free done [08:23:07]process_json_proto returns [08:23:07]Send response to host [08:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165557,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:23:07]free response buf [08:23:07]execute_script done [08:23:07]execute_script returns [08:23:07]free content buf [08:23:07]Sock 7.Close socket [08:23:07]Sock 7.Thread stoped [08:23:11]OFD Sender: No OFD packet to send [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:33]accept exits with 9 [08:23:33]New connection [08:23:33]New thread 3066776932 created [08:23:33]Thread 3066920292 joined [08:23:33]Waiting for new connection... [08:23:33] Sock 9.Parse request [08:23:33]Sock 9.Check first char [08:23:33]Sock 9.First char is OK [08:23:33]request: POST /json_proto HTTP/1.0 [08:23:33]Method: POST [08:23:33]URL: /json_proto [08:23:33]Method is POST - this is cgi request [08:23:33]url: /json_proto [08:23:33]query_string will be loaded in cgi processing [08:23:33]execute_cgi json_proto POST (null) [08:23:33]execute_cgi path=json_proto method=POST [08:23:33]POST find Content-Length [08:23:33]Host: 172.17.53.195:8080 [08:23:33]Content-Length: 679 [08:23:33]Content-Type: application/json [08:23:33] [08:23:33]POST finish read [08:23:33]Found Content-Length = 679 [08:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.370, "sum" : 2999.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:33]execute_script... [08:23: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)220116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.370, "sum" : 2999.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:33]POST & json_proto [08:23:33]process_json_proto [08:23:33]json parsed OK: [08:23:33]protocol is kg_v1.0 [08:23:33]action value=close_receipt [08:23:33]process_action close_receipt [08:23:33]cmd_close_receipt [08:23:33]MH_GetDate [08:23:33]Write to MH i2c: F0 00 00 30 C7 E6 [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: F0 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: F0 09 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: F0 09 00 30 C7 00 10 BE 14 67 21 48 4A 65 50 [08:23:33]GetLastDocTimeStamp 1729412594 [08:23:33]current date 1729412624 [08:23:33]FM_GetShiftState [08:23:33]SAM_PROTO_GetShiftState [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 13 01 00 [08:23:33]Write to MH i2c: E2 08 00 31 C7 80 13 01 00 00 00 00 00 75 [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 0E 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 0E 00 31 C7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BD [08:23:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:23:33]wFMCommunicate OK [08:23:33]SAM_PROTO_GetShiftState done [08:23:33]FM_GetShiftState done [08:23:33]opened in 1729384561 [08:23:33]opened+sec_in_day 1729470961 [08:23:33]quantity*price = 299999 [08:23:33]sum+1 = 300000 [08:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 2999.00 Внесено: 3000.00 СДАЧА: 1.00 НСП 1% : 26.55 НДС 12% : 318.58 Наличными: 2999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 40 20.10.2024 08:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165558 ФПД: 91725976533088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082344&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165558&fm=91725976533088&tin=02508201610067®Number=0000000000091764&sum=299900 [08:23:34]StoreToDocumentArchive [08:23:34]shift 534 fd 165558 [08:23:34]save to /storage/0534/doc_00165558 [08:23:34]save last doc name /storage/0534/doc_00165558 to /storage/kkm_last_doc_name [08:23:34]save OK [08:23:34]Clear old archive folders... [08:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:34]tlvbuf is 01456B10 [08:23:34]SAM_PROTO_ClearQueue [08:23:34]wFMCommunicate request_size=4 [08:23:34]MH_SAM_APDU [08:23:34]CAPDU: 80 09 00 00 [08:23:34]Write to MH i2c: E2 08 00 3E C7 80 09 00 00 00 00 00 00 77 [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:34]Read from MH i2c: E2 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 3E C7 00 90 00 79 [08:23:34]RAPDU: 90 00 [08:23:34]wFMCommunicate OK [08:23:34]SAM_PROTO_ClearQueue done [08:23:34]KKMCreateOFDPacket [08:23:34]OFDProtocolAddRootSTLVToBuf [08:23:34]FM_MakeSignedData [08:23:34]FM_MakeSignedData [08:23:34]SAM_PROTO_SignData [08:23:34]wFMCommunicate request_size=4 [08:23:34]MH_SAM_APDU [08:23:34]CAPDU: 80 0D 01 02 [08:23:34]Write to MH i2c: E2 08 00 3F C7 80 0D 01 02 00 00 00 00 7F [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:34]Read from MH i2c: E2 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 3F C7 00 90 00 7A [08:23:34]RAPDU: 90 00 [08:23:34]wFMCommunicate OK [08:23:34]wFMCommunicate request_size=255 [08:23:34]MH_SAM_APDU [08:23: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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 28 00 00 00 F4 03 04 00 10 BE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 86 02 00 35 04 06 00 53 6C 9E 3F [08:23:34]Write to MH i2c: E2 02 01 40 C7 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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 28 00 00 00 F4 03 04 00 10 BE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 86 02 00 35 04 06 00 53 6C 9E 3F 00 00 7D [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:34]Read from MH i2c: E2 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 40 C7 00 90 00 7B [08:23:34]RAPDU: 90 00 [08:23:34]wFMCommunicate OK [08:23:34]wFMCommunicate request_size=7 [08:23:34]MH_SAM_APDU [08:23:34]CAPDU: 80 0D 02 02 02 78 60 [08:23:34]Write to MH i2c: E2 0A 00 41 C7 80 0D 02 02 02 00 78 60 00 00 5E [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:34]Read from MH i2c: E2 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 41 C7 00 90 00 7C [08:23:34]RAPDU: 90 00 [08:23:34]wFMCommunicate OK [08:23:34]wFMCommunicate request_size=4 [08:23:34]MH_SAM_APDU [08:23:34]CAPDU: 80 0D 03 02 [08:23:34]Write to MH i2c: E2 08 00 42 C7 80 0D 03 02 00 00 00 00 84 [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:34]Read from MH i2c: E2 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 0B 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 0B 00 42 C7 00 03 B5 D6 6C 15 B2 F1 EF 90 00 26 [08:23:34]RAPDU: 03 B5 D6 6C 15 B2 F1 EF 90 00 [08:23:34]wFMCommunicate OK [08:23:34]SAM_PROTO_SignData done [08:23:34]FM_MakeSignedData done [08:23:34]CreateOFDProtocolMessage [08:23:34]wFMCommunicate request_size=4 [08:23:34]MH_SAM_APDU [08:23:34]CAPDU: 80 11 00 00 [08:23:34]Write to MH i2c: E2 08 00 43 C7 80 11 00 00 00 00 00 00 84 [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:35]Read from MH i2c: E2 [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: E2 17 00 [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: E2 17 00 43 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [08:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:23:35]wFMCommunicate OK [08:23:35]CreateOFDProtocolMessage done [08:23:35]OFDSenderStorePacket 165558 [08:23:35]StoreOFDPacket docnum=165558 [08:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 15 D5 04 01 28 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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 28 00 00 00 F4 03 04 00 10 BE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 86 02 00 35 04 06 00 53 6C 9E 3F 78 60 03 B5 D6 6C 15 B2 F1 EF [08:23:35]CheckFolder [08:23:35]dirname=/storage/ofd_packets [08:23:35]CheckFolder done [08:23:35]ProducePacketName [08:23:35]name=ofd_packets/00165558 [08:23:35]NVStorageSaveData ofd_packets/00165558 [08:23:35]File name is /storage/ofd_packets/00165558 [08:23:35]Write 298 bytes [08:23:35]NVStorageSaveData done [08:23:35]OFDSenderStorePacket done [08:23:35]KKMCreateOFDPacket done [08:23:35]NVStorageSaveData kkm_last_timestamp [08:23:35]File name is /storage/kkm_last_timestamp [08:23:35]Write 4 bytes [08:23:35]NVStorageSaveData done [08:23:35]ExternCall_PrintAddStr [08:23:35]wPrintStart [08:23:35]Write to MH i2c: 01 00 00 44 C7 0B [08:23:35]Write i2c OK [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: 01 [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: 01 07 00 [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: 01 07 00 44 C7 00 00 00 00 00 FF 0F 20 [08:23:35]RasterBufferAndPrint [08:23:35]line Счет N : (1)220116 [08:23:35]line ИНН: 02508201610067 [08:23:35]line Контрольно-Кассовый Чек [08:23:35]line ПРОДАЖА [08:23:35]line ТРК (МРК, ГНК) : 41 [08:23:35]line Товар: 2710194210 [08:23:35]line ДТ-К-5 [08:23:35]line 39.370 * 76.20 [08:23:35]line = 2999.99 [08:23:35]line НДС 12% НСП 1% [08:23:35]line > о реализуемом товаре [08:23:35]line ОКРУГЛЕНИЕ: -0.99 [08:23:35]line ИТОГО: 2999.00 [08:23:35]line Внесено: 3000.00 [08:23:35]line СДАЧА: 1.00 [08:23:35]line НСП 1% : 26.55 [08:23:35]line НДС 12% : 318.58 [08:23:35]line Наличными: 2999.00 [08:23:35]line Безнал.: 0.00 [08:23:35]line Место: АЗС № 161 "Партнер Нефть" [08:23:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:23:35]line СНО: Общий режим [08:23:35]line Чек 40 20.10.2024 08:23 [08:23:35]line Смена: 534 ФФД: 1.0 [08:23:35]line ЗНМ: 0300000104 [08:23:35]line РНМ: 0000000000091764 [08:23:35]line Версия ККМ: 001 [08:23:35]line ФМ: 0000000000871759 [08:23:35]line ФД: 165558 [08:23:35]line ФПД: 91725976533088 [08:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082344&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165558&fm=91725976533088&tin=02508201610067®Number=0000000000091764&sum=299900 [08:23:35]OFD Sender: Processing packet 165558 [packets to send 48, broken 47] [08:23:35]ProducePacketName [08:23:35]name=ofd_packets/00165558 [08:23:35]OFD Sender: To server: pG, [08:23:35]CommunicateWithHost lk.salyk.kg:30040 [08:23:35]ConnectInit lk.salyk.kg [08:23:35]written 0, free lines is 4095 [08:23:35]Connected sock=10 [08:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 15 D5 04 01 28 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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 28 00 00 00 F4 03 04 00 10 BE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 86 02 00 35 04 06 00 53 6C 9E 3F 78 60 03 B5 D6 6C 15 B2 F1 EF [08:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B 21 47 00 47 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 86 02 00 F4 03 04 00 83 64 14 67 B6 04 01 00 00 34 6F D5 C7 DC E5 E4 89 [08:23:35]CommunicateWithHost err = 0 [08:23:35]CheckOFDResponse [08:23:35]1017 (14) - 77093643461234 [08:23:35]1041 (16) - 0000000000871759 [08:23:35]1040 (4) - 165558 [08:23:35]1012 (4) - 20.10.2024 02:01 [08:23:35]1206 (1) - 0 [08:23:35]OFD Sender: Remove packet 165558 [08:23:35]ProducePacketName [08:23:35]name=ofd_packets/00165558 [08:23:35]NVStorageDeleteData [08:23:35]Write to MH i2c: 01 00 00 6F C7 36 [08:23:35]Write i2c OK [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: 01 [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: 01 07 00 [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: 01 07 00 6F C7 00 00 00 00 00 CB 0C 14 [08:23:35]RasterBufferAndPrint [08:23:35]line [08:23:35]line [08:23:35]line [08:23:35]line [08:23:35]line [08:23:35]written 0, free lines is 3281 [08:23:35]MH_Cut [08:23:35]Write to MH i2c: D1 01 00 76 C7 01 0F [08:23:35]Write i2c OK [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: D1 [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: D1 01 00 [08:23:35]MH_I2C_Read... [08:23:35]Read from MH i2c: D1 01 00 76 C7 00 0E [08:23:35]Write to MH i2c: 01 00 00 77 C7 3E [08:23:35]Write i2c OK [08:23:35]MH_I2C_Read... [08:23:36]OFD Sender: No OFD packet to send [08:23:36]*** Cut start [08:23:36]*** Partial cut [08:23:36]*** CUTSNS_PIN = 1 [08:23:36]*** CUTSNS_PIN = 0 [08:23:36]*** Brake cut motor [08:23:37]Read from MH i2c: 01 [08:23:37]MH_I2C_Read... [08:23:37]*** Stop cut motor [08:23:37]*** Cut end [08:23:37]Read from MH i2c: 01 07 00 [08:23:37]MH_I2C_Read... [08:23:37]Read from MH i2c: 01 07 00 77 C7 00 00 00 00 00 FF 0F 53 [08:23:37]process_action close_receipt done [08:23:37]requested_data is exist [08:23:37]produce_requested_data [08:23:37]requested_item fm.sn is exist - process it [08:23:37]wFMCommunicate request_size=4 [08:23:37]MH_SAM_APDU [08:23:37]CAPDU: 80 11 00 00 [08:23:37]Write to MH i2c: E2 08 00 78 C7 80 11 00 00 00 00 00 00 B9 [08:23:37]Write i2c OK [08:23:37]MH_I2C_Read... [08:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:37]Read from MH i2c: E2 [08:23:37]MH_I2C_Read... [08:23:37]Read from MH i2c: E2 17 00 [08:23:37]MH_I2C_Read... [08:23:37]Read from MH i2c: E2 17 00 78 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 11 [08:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:23:37]wFMCommunicate OK [08:23:37]requested_item fd.num is exist - process it [08:23:37]SAM_PROTO_GetFieldsCounters [08:23:37]wFMCommunicate request_size=4 [08:23:37]MH_SAM_APDU [08:23:37]CAPDU: 80 13 00 00 [08:23:37]Write to MH i2c: E2 08 00 79 C7 80 13 00 00 00 00 00 00 BC [08:23:37]Write i2c OK [08:23:37]MH_I2C_Read... [08:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:37]Read from MH i2c: E2 [08:23:37]MH_I2C_Read... [08:23:37]Read from MH i2c: E2 62 00 [08:23:37]MH_I2C_Read... [08:23:37]Read from MH i2c: E2 62 00 79 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [08:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:37]wFMCommunicate OK [08:23:37]SAM_PROTO_GetFieldsCounters done [08:23:37]requested_item shift.num is exist - process it [08:23:37]requested_item shift.opened is exist - process it [08:23:37]req_shift_opened [08:23:37]FM_GetShiftState [08:23:37]SAM_PROTO_GetShiftState [08:23:37]wFMCommunicate request_size=4 [08:23:37]MH_SAM_APDU [08:23:37]CAPDU: 80 13 01 00 [08:23:37]Write to MH i2c: E2 08 00 7A C7 80 13 01 00 00 00 00 00 BE [08:23:37]Write i2c OK [08:23:37]MH_I2C_Read... [08:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:37]Read from MH i2c: E2 [08:23:37]MH_I2C_Read... [08:23:37]Read from MH i2c: E2 0E 00 [08:23:37]MH_I2C_Read... [08:23:37]Read from MH i2c: E2 0E 00 7A C7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 06 [08:23:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:23:37]wFMCommunicate OK [08:23:37]SAM_PROTO_GetShiftState done [08:23:37]FM_GetShiftState done [08:23:37]req_shift_opened done [08:23:37]requested_item shift.open_date is exist - process it [08:23:37]req_shift_open_date [08:23:37]req_shift_open_date done [08:23:37]produce_requested_data done [08:23:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165558,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:23:37]process_action_free close_receipt [08:23:37]json_value_free [08:23:37]json_value_free done [08:23:37]process_json_proto returns [08:23:37]Send response to host [08:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165558,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:23:37]free response buf [08:23:37]execute_script done [08:23:37]execute_script returns [08:23:37]free content buf [08:23:37]Sock 9.Close socket [08:23:37]Sock 9.Thread stoped [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:44]accept exits with 7 [08:26:44]New connection [08:26:44]New thread 3066920292 created [08:26:44]Thread 3066776932 joined [08:26:44]Waiting for new connection... [08:26:44] Sock 7.Parse request [08:26:44]Sock 7.Check first char [08:26:44]Sock 7.First char is OK [08:26:44]request: POST /json_proto HTTP/1.0 [08:26:44]Method: POST [08:26:44]URL: /json_proto [08:26:44]Method is POST - this is cgi request [08:26:44]url: /json_proto [08:26:44]query_string will be loaded in cgi processing [08:26:44]execute_cgi json_proto POST (null) [08:26:44]execute_cgi path=json_proto method=POST [08:26:44]POST find Content-Length [08:26:44]Host: 172.17.53.195:8080 [08:26:44]Content-Length: 679 [08:26:44]Content-Type: application/json [08:26:44] [08:26:44]POST finish read [08:26:44]Found Content-Length = 679 [08:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.370, "sum" : 2999.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:44]execute_script... [08: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)220118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.370, "sum" : 2999.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:44]POST & json_proto [08:26:44]process_json_proto [08:26:44]json parsed OK: [08:26:44]protocol is kg_v1.0 [08:26:44]action value=close_receipt [08:26:44]process_action close_receipt [08:26:44]cmd_close_receipt [08:26:44]MH_GetDate [08:26:44]Write to MH i2c: F0 00 00 7B C7 31 [08:26:44]Write i2c OK [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 09 00 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 09 00 7B C7 00 CF BE 14 67 21 48 4A 65 5A [08:26:44]GetLastDocTimeStamp 1729412624 [08:26:44]current date 1729412815 [08:26:44]FM_GetShiftState [08:26:44]SAM_PROTO_GetShiftState [08:26:44]wFMCommunicate request_size=4 [08:26:44]MH_SAM_APDU [08:26:44]CAPDU: 80 13 01 00 [08:26:44]Write to MH i2c: E2 08 00 7C C7 80 13 01 00 00 00 00 00 C0 [08:26:44]Write i2c OK [08:26:44]MH_I2C_Read... [08:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:44]Read from MH i2c: E2 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: E2 0E 00 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: E2 0E 00 7C C7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 08 [08:26:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:26:44]wFMCommunicate OK [08:26:44]SAM_PROTO_GetShiftState done [08:26:44]FM_GetShiftState done [08:26:44]opened in 1729384561 [08:26:44]opened+sec_in_day 1729470961 [08:26:44]quantity*price = 299999 [08:26:44]sum+1 = 300000 [08:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 2999.00 Внесено: 3000.00 СДАЧА: 1.00 НСП 1% : 26.55 НДС 12% : 318.58 Наличными: 2999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 41 20.10.2024 08:26 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165559 ФПД: 232169451161502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165559&fm=232169451161502&tin=02508201610067®Number=0000000000091764&sum=299900 [08:26:45]StoreToDocumentArchive [08:26:45]shift 534 fd 165559 [08:26:45]save to /storage/0534/doc_00165559 [08:26:45]save last doc name /storage/0534/doc_00165559 to /storage/kkm_last_doc_name [08:26:45]save OK [08:26:45]Clear old archive folders... [08:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:26:45]tlvbuf is 018AFED0 [08:26:45]SAM_PROTO_ClearQueue [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 09 00 00 [08:26:45]Write to MH i2c: E2 08 00 89 C7 80 09 00 00 00 00 00 00 C2 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 89 C7 00 90 00 C4 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]SAM_PROTO_ClearQueue done [08:26:45]KKMCreateOFDPacket [08:26:45]OFDProtocolAddRootSTLVToBuf [08:26:45]FM_MakeSignedData [08:26:45]FM_MakeSignedData [08:26:45]SAM_PROTO_SignData [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 01 02 [08:26:45]Write to MH i2c: E2 08 00 8A C7 80 0D 01 02 00 00 00 00 CA [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 8A C7 00 90 00 C5 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=255 [08:26:45]MH_SAM_APDU [08:26:45]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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 29 00 00 00 F4 03 04 00 CF BE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 86 02 00 35 04 06 00 D3 28 29 AA [08:26:45]Write to MH i2c: E2 02 01 8B C7 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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 29 00 00 00 F4 03 04 00 CF BE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 86 02 00 35 04 06 00 D3 28 29 AA 00 00 BB [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 8B C7 00 90 00 C6 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=7 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 02 02 02 07 9E [08:26:45]Write to MH i2c: E2 0A 00 8C C7 80 0D 02 02 02 00 07 9E 00 00 76 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 8C C7 00 90 00 C7 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 03 02 [08:26:45]Write to MH i2c: E2 08 00 8D C7 80 0D 03 02 00 00 00 00 CF [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 0B 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 0B 00 8D C7 00 32 17 10 2A 94 AC 93 70 90 00 96 [08:26:45]RAPDU: 32 17 10 2A 94 AC 93 70 90 00 [08:26:45]wFMCommunicate OK [08:26:45]SAM_PROTO_SignData done [08:26:45]FM_MakeSignedData done [08:26:45]CreateOFDProtocolMessage [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 11 00 00 [08:26:45]Write to MH i2c: E2 08 00 8E C7 80 11 00 00 00 00 00 00 CF [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 17 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 17 00 8E C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [08:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:26:45]wFMCommunicate OK [08:26:45]CreateOFDProtocolMessage done [08:26:45]OFDSenderStorePacket 165559 [08:26:45]StoreOFDPacket docnum=165559 [08:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 ED 2D 04 01 E3 F4 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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 29 00 00 00 F4 03 04 00 CF BE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 86 02 00 35 04 06 00 D3 28 29 AA 07 9E 32 17 10 2A 94 AC 93 70 [08:26:45]CheckFolder [08:26:45]dirname=/storage/ofd_packets [08:26:45]CheckFolder done [08:26:45]ProducePacketName [08:26:45]name=ofd_packets/00165559 [08:26:45]NVStorageSaveData ofd_packets/00165559 [08:26:45]File name is /storage/ofd_packets/00165559 [08:26:45]Write 298 bytes [08:26:45]NVStorageSaveData done [08:26:45]OFDSenderStorePacket done [08:26:45]KKMCreateOFDPacket done [08:26:45]NVStorageSaveData kkm_last_timestamp [08:26:45]File name is /storage/kkm_last_timestamp [08:26:45]Write 4 bytes [08:26:45]NVStorageSaveData done [08:26:45]ExternCall_PrintAddStr [08:26:45]wPrintStart [08:26:45]Write to MH i2c: 01 00 00 8F C7 56 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 07 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 07 00 8F C7 00 00 00 00 00 FF 0F 6B [08:26:45]RasterBufferAndPrint [08:26:45]line Счет N : (1)220118 [08:26:45]line ИНН: 02508201610067 [08:26:45]line Контрольно-Кассовый Чек [08:26:45]line ПРОДАЖА [08:26:45]line ТРК (МРК, ГНК) : 41 [08:26:45]line Товар: 2710194210 [08:26:45]line ДТ-К-5 [08:26:45]line 39.370 * 76.20 [08:26:45]line = 2999.99 [08:26:45]line НДС 12% НСП 1% [08:26:45]line > о реализуемом товаре [08:26:45]line ОКРУГЛЕНИЕ: -0.99 [08:26:45]line ИТОГО: 2999.00 [08:26:45]line Внесено: 3000.00 [08:26:45]line СДАЧА: 1.00 [08:26:45]line НСП 1% : 26.55 [08:26:45]line НДС 12% : 318.58 [08:26:45]line Наличными: 2999.00 [08:26:45]line Безнал.: 0.00 [08:26:45]line Место: АЗС № 161 "Партнер Нефть" [08:26:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:26:45]line СНО: Общий режим [08:26:45]line Чек 41 20.10.2024 08:26 [08:26:45]line Смена: 534 ФФД: 1.0 [08:26:45]line ЗНМ: 0300000104 [08:26:45]line РНМ: 0000000000091764 [08:26:45]line Версия ККМ: 001 [08:26:45]line ФМ: 0000000000871759 [08:26:45]line ФД: 165559 [08:26:45]line ФПД: 232169451161502 [08:26:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165559&fm=232169451161502&tin=02508201610067®Number=0000000000091764&sum=299900 [08:26:46]OFD Sender: Processing packet 165559 [packets to send 48, broken 47] [08:26:46]ProducePacketName [08:26:46]name=ofd_packets/00165559 [08:26:46]OFD Sender: To server: pG, [08:26:46]CommunicateWithHost lk.salyk.kg:30040 [08:26:46]ConnectInit lk.salyk.kg [08:26:46]written 0, free lines is 4095 [08:26:46]Connected sock=10 [08:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 ED 2D 04 01 E3 F4 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 CA 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 29 00 00 00 F4 03 04 00 CF BE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 86 02 00 35 04 06 00 D3 28 29 AA 07 9E 32 17 10 2A 94 AC 93 70 [08:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A6 71 47 00 13 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 86 02 00 F4 03 04 00 42 65 14 67 B6 04 01 00 00 98 6C D7 2B 56 A1 86 42 [08:26:46]CommunicateWithHost err = 0 [08:26:46]CheckOFDResponse [08:26:46]1017 (14) - 77093643461234 [08:26:46]1041 (16) - 0000000000871759 [08:26:46]1040 (4) - 165559 [08:26:46]1012 (4) - 20.10.2024 02:04 [08:26:46]1206 (1) - 0 [08:26:46]OFD Sender: Remove packet 165559 [08:26:46]ProducePacketName [08:26:46]name=ofd_packets/00165559 [08:26:46]NVStorageDeleteData [08:26:46]Write to MH i2c: 01 00 00 BA C7 81 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 07 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 07 00 BA C7 00 00 00 00 00 BA 0C 4E [08:26:46]RasterBufferAndPrint [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]written 0, free lines is 3265 [08:26:46]MH_Cut [08:26:46]Write to MH i2c: D1 01 00 C1 C7 01 5A [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 01 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 01 00 C1 C7 00 59 [08:26:46]Write to MH i2c: 01 00 00 C2 C7 89 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:47]OFD Sender: No OFD packet to send [08:26:47]*** Cut start [08:26:47]*** Partial cut [08:26:47]*** CUTSNS_PIN = 1 [08:26:47]*** CUTSNS_PIN = 0 [08:26:47]*** Brake cut motor [08:26:48]Read from MH i2c: 01 [08:26:48]MH_I2C_Read... [08:26:48]*** Stop cut motor [08:26:48]*** Cut end [08:26:48]Read from MH i2c: 01 07 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: 01 07 00 C2 C7 00 00 00 00 00 FF 0F 9E [08:26:48]process_action close_receipt done [08:26:48]requested_data is exist [08:26:48]produce_requested_data [08:26:48]requested_item fm.sn is exist - process it [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 11 00 00 [08:26:48]Write to MH i2c: E2 08 00 C3 C7 80 11 00 00 00 00 00 00 04 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 17 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 17 00 C3 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5C [08:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:26:48]wFMCommunicate OK [08:26:48]requested_item fd.num is exist - process it [08:26:48]SAM_PROTO_GetFieldsCounters [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 13 00 00 [08:26:48]Write to MH i2c: E2 08 00 C4 C7 80 13 00 00 00 00 00 00 07 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 62 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 62 00 C4 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [08:26:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:48]wFMCommunicate OK [08:26:48]SAM_PROTO_GetFieldsCounters done [08:26:48]requested_item shift.num is exist - process it [08:26:48]requested_item shift.opened is exist - process it [08:26:48]req_shift_opened [08:26:48]FM_GetShiftState [08:26:48]SAM_PROTO_GetShiftState [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 13 01 00 [08:26:48]Write to MH i2c: E2 08 00 C5 C7 80 13 01 00 00 00 00 00 09 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 0E 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 0E 00 C5 C7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 51 [08:26:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:26:48]wFMCommunicate OK [08:26:48]SAM_PROTO_GetShiftState done [08:26:48]FM_GetShiftState done [08:26:48]req_shift_opened done [08:26:48]requested_item shift.open_date is exist - process it [08:26:48]req_shift_open_date [08:26:48]req_shift_open_date done [08:26:48]produce_requested_data done [08:26:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165559,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:26:48]process_action_free close_receipt [08:26:48]json_value_free [08:26:48]json_value_free done [08:26:48]process_json_proto returns [08:26:48]Send response to host [08:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165559,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:26:48]free response buf [08:26:48]execute_script done [08:26:48]execute_script returns [08:26:48]free content buf [08:26:48]Sock 7.Close socket [08:26:48]Sock 7.Thread stoped [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:07]accept exits with 9 [08:29:07]New connection [08:29:07]New thread 3066776932 created [08:29:07]Thread 3066920292 joined [08:29:07]Waiting for new connection... [08:29:07] Sock 9.Parse request [08:29:07]Sock 9.Check first char [08:29:07]Sock 9.First char is OK [08:29:07]request: POST /json_proto HTTP/1.0 [08:29:07]Method: POST [08:29:07]URL: /json_proto [08:29:07]Method is POST - this is cgi request [08:29:07]url: /json_proto [08:29:07]query_string will be loaded in cgi processing [08:29:07]execute_cgi json_proto POST (null) [08:29:07]execute_cgi path=json_proto method=POST [08:29:07]POST find Content-Length [08:29:07]Host: 172.17.53.195:8080 [08:29:07]Content-Length: 679 [08:29:07]Content-Type: application/json [08:29:07] [08:29:07]POST finish read [08:29:07]Found Content-Length = 679 [08:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220119", "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" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [08:29:07]execute_script... [08:29: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)220119", "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" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [08:29:07]POST & json_proto [08:29:07]process_json_proto [08:29:07]json parsed OK: [08:29:07]protocol is kg_v1.0 [08:29:07]action value=close_receipt [08:29:07]process_action close_receipt [08:29:07]cmd_close_receipt [08:29:07]MH_GetDate [08:29:07]Write to MH i2c: F0 00 00 C6 C7 7C [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: F0 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: F0 09 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: F0 09 00 C6 C7 00 5F BF 14 67 21 48 4A 65 36 [08:29:07]GetLastDocTimeStamp 1729412815 [08:29:07]current date 1729412959 [08:29:07]FM_GetShiftState [08:29:07]SAM_PROTO_GetShiftState [08:29:07]wFMCommunicate request_size=4 [08:29:07]MH_SAM_APDU [08:29:07]CAPDU: 80 13 01 00 [08:29:07]Write to MH i2c: E2 08 00 C7 C7 80 13 01 00 00 00 00 00 0B [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 0E 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 0E 00 C7 C7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 53 [08:29:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:29:07]wFMCommunicate OK [08:29:07]SAM_PROTO_GetShiftState done [08:29:07]FM_GetShiftState done [08:29:07]opened in 1729384561 [08:29:07]opened+sec_in_day 1729470961 [08:29:07]quantity*price = 120015 [08:29:07]sum+1 = 120016 [08:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 42 20.10.2024 08:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165560 ФПД: 9870846118300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165560&fm=9870846118300&tin=02508201610067®Number=0000000000091764&sum=120000 [08:29:08]StoreToDocumentArchive [08:29:08]shift 534 fd 165560 [08:29:08]save to /storage/0534/doc_00165560 [08:29:08]save last doc name /storage/0534/doc_00165560 to /storage/kkm_last_doc_name [08:29:08]save OK [08:29:08]Clear old archive folders... [08:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:29:09]tlvbuf is 018399F0 [08:29:09]SAM_PROTO_ClearQueue [08:29:09]wFMCommunicate request_size=4 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 09 00 00 [08:29:09]Write to MH i2c: E2 08 00 D4 C7 80 09 00 00 00 00 00 00 0D [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 D4 C7 00 90 00 0F [08:29:09]RAPDU: 90 00 [08:29:09]wFMCommunicate OK [08:29:09]SAM_PROTO_ClearQueue done [08:29:09]KKMCreateOFDPacket [08:29:09]OFDProtocolAddRootSTLVToBuf [08:29:09]FM_MakeSignedData [08:29:09]FM_MakeSignedData [08:29:09]SAM_PROTO_SignData [08:29:09]wFMCommunicate request_size=4 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 0D 01 02 [08:29:09]Write to MH i2c: E2 08 00 D5 C7 80 0D 01 02 00 00 00 00 15 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 D5 C7 00 90 00 10 [08:29:09]RAPDU: 90 00 [08:29:09]wFMCommunicate OK [08:29:09]wFMCommunicate request_size=255 [08:29:09]MH_SAM_APDU [08:29: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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 2A 00 00 00 F4 03 04 00 5F BF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 86 02 00 35 04 06 00 08 FA 3C 46 [08:29:09]Write to MH i2c: E2 02 01 D6 C7 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 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 2A 00 00 00 F4 03 04 00 5F BF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 86 02 00 35 04 06 00 08 FA 3C 46 00 00 AE [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 D6 C7 00 90 00 11 [08:29:09]RAPDU: 90 00 [08:29:09]wFMCommunicate OK [08:29:09]wFMCommunicate request_size=7 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 0D 02 02 02 C9 9C [08:29:09]Write to MH i2c: E2 0A 00 D7 C7 80 0D 02 02 02 00 C9 9C 00 00 81 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 D7 C7 00 90 00 12 [08:29:09]RAPDU: 90 00 [08:29:09]wFMCommunicate OK [08:29:09]wFMCommunicate request_size=4 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 0D 03 02 [08:29:09]Write to MH i2c: E2 08 00 D8 C7 80 0D 03 02 00 00 00 00 1A [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 0B 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 0B 00 D8 C7 00 85 A3 FA CC 07 7A 92 A6 90 00 C2 [08:29:09]RAPDU: 85 A3 FA CC 07 7A 92 A6 90 00 [08:29:09]wFMCommunicate OK [08:29:09]SAM_PROTO_SignData done [08:29:09]FM_MakeSignedData done [08:29:09]CreateOFDProtocolMessage [08:29:09]wFMCommunicate request_size=4 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 11 00 00 [08:29:09]Write to MH i2c: E2 08 00 D9 C7 80 11 00 00 00 00 00 00 1A [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 17 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 17 00 D9 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [08:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:29:09]wFMCommunicate OK [08:29:09]CreateOFDProtocolMessage done [08:29:09]OFDSenderStorePacket 165560 [08:29:09]StoreOFDPacket docnum=165560 [08:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FD 6D 04 01 E2 6D 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 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 2A 00 00 00 F4 03 04 00 5F BF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 86 02 00 35 04 06 00 08 FA 3C 46 C9 9C 85 A3 FA CC 07 7A 92 A6 [08:29:09]CheckFolder [08:29:09]dirname=/storage/ofd_packets [08:29:09]CheckFolder done [08:29:09]ProducePacketName [08:29:09]name=ofd_packets/00165560 [08:29:09]NVStorageSaveData ofd_packets/00165560 [08:29:09]File name is /storage/ofd_packets/00165560 [08:29:09]Write 298 bytes [08:29:09]NVStorageSaveData done [08:29:09]OFDSenderStorePacket done [08:29:09]KKMCreateOFDPacket done [08:29:09]NVStorageSaveData kkm_last_timestamp [08:29:09]File name is /storage/kkm_last_timestamp [08:29:09]Write 4 bytes [08:29:09]NVStorageSaveData done [08:29:09]ExternCall_PrintAddStr [08:29:09]wPrintStart [08:29:09]Write to MH i2c: 01 00 00 DA C7 A1 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: 01 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: 01 07 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: 01 07 00 DA C7 00 00 00 00 00 FF 0F B6 [08:29:09]RasterBufferAndPrint [08:29:09]line Счет N : (1)220119 [08:29:09]line ИНН: 02508201610067 [08:29:09]line Контрольно-Кассовый Чек [08:29:09]line ПРОДАЖА [08:29:09]line ТРК (МРК, ГНК) : 11 [08:29:09]line Товар: 2710194210 [08:29:09]line ДТ-К-5 [08:29:09]line 15.750 * 76.20 [08:29:09]line = 1200.15 [08:29:09]line НДС 12% НСП 1% [08:29:09]line > о реализуемом товаре [08:29:09]line ОКРУГЛЕНИЕ: -0.15 [08:29:09]line ИТОГО: 1200.00 [08:29:09]line Внесено: 1200.00 [08:29:09]line СДАЧА: 0.00 [08:29:09]line НСП 1% : 10.62 [08:29:09]line НДС 12% : 127.45 [08:29:09]line Наличными: 1200.00 [08:29:09]line Безнал.: 0.00 [08:29:09]line Место: АЗС № 161 "Партнер Нефть" [08:29:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:29:09]line СНО: Общий режим [08:29:09]line Чек 42 20.10.2024 08:29 [08:29:09]line Смена: 534 ФФД: 1.0 [08:29:09]line ЗНМ: 0300000104 [08:29:09]line РНМ: 0000000000091764 [08:29:09]line Версия ККМ: 001 [08:29:09]line ФМ: 0000000000871759 [08:29:09]line ФД: 165560 [08:29:09]line ФПД: 9870846118300 [08:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165560&fm=9870846118300&tin=02508201610067®Number=0000000000091764&sum=120000 [08:29:09]OFD Sender: Processing packet 165560 [packets to send 48, broken 47] [08:29:09]ProducePacketName [08:29:09]name=ofd_packets/00165560 [08:29:09]OFD Sender: To server: pG, [08:29:09]CommunicateWithHost lk.salyk.kg:30040 [08:29:09]ConnectInit lk.salyk.kg [08:29:09]written 0, free lines is 4095 [08:29:09]Connected sock=10 [08:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FD 6D 04 01 E2 6D 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 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 2A 00 00 00 F4 03 04 00 5F BF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 86 02 00 35 04 06 00 08 FA 3C 46 C9 9C 85 A3 FA CC 07 7A 92 A6 [08:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9C 17 47 00 C1 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 86 02 00 F4 03 04 00 D1 65 14 67 B6 04 01 00 00 0C 71 51 0C FF 96 78 06 [08:29:10]CommunicateWithHost err = 0 [08:29:10]CheckOFDResponse [08:29:10]1017 (14) - 77093643461234 [08:29:10]1041 (16) - 0000000000871759 [08:29:10]1040 (4) - 165560 [08:29:10]1012 (4) - 20.10.2024 02:07 [08:29:10]1206 (1) - 0 [08:29:10]OFD Sender: Remove packet 165560 [08:29:10]ProducePacketName [08:29:10]name=ofd_packets/00165560 [08:29:10]NVStorageDeleteData [08:29:10]Write to MH i2c: 01 00 00 05 C8 CD [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: 01 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: 01 07 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: 01 07 00 05 C8 00 00 00 00 00 AD 0C 8D [08:29:10]RasterBufferAndPrint [08:29:10]line [08:29:10]line [08:29:10]line [08:29:10]line [08:29:10]line [08:29:10]written 0, free lines is 3251 [08:29:10]MH_Cut [08:29:10]Write to MH i2c: D1 01 00 0C C8 01 A6 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: D1 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: D1 01 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: D1 01 00 0C C8 00 A5 [08:29:10]Write to MH i2c: 01 00 00 0D C8 D5 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]OFD Sender: No OFD packet to send [08:29:11]*** Cut start [08:29:11]*** Partial cut [08:29:11]*** CUTSNS_PIN = 1 [08:29:11]*** CUTSNS_PIN = 0 [08:29:11]*** Brake cut motor [08:29:11]Read from MH i2c: 01 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: 01 07 00 [08:29:11]MH_I2C_Read... [08:29:11]*** Stop cut motor [08:29:11]*** Cut end [08:29:11]Read from MH i2c: 01 07 00 0D C8 00 00 00 00 00 FF 0F EA [08:29:11]process_action close_receipt done [08:29:11]requested_data is exist [08:29:11]produce_requested_data [08:29:11]requested_item fm.sn is exist - process it [08:29:11]wFMCommunicate request_size=4 [08:29:11]MH_SAM_APDU [08:29:11]CAPDU: 80 11 00 00 [08:29:11]Write to MH i2c: E2 08 00 0E C8 80 11 00 00 00 00 00 00 50 [08:29:11]Write i2c OK [08:29:11]MH_I2C_Read... [08:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:11]Read from MH i2c: E2 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 17 00 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 17 00 0E C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [08:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:29:11]wFMCommunicate OK [08:29:11]requested_item fd.num is exist - process it [08:29:11]SAM_PROTO_GetFieldsCounters [08:29:11]wFMCommunicate request_size=4 [08:29:11]MH_SAM_APDU [08:29:11]CAPDU: 80 13 00 00 [08:29:11]Write to MH i2c: E2 08 00 0F C8 80 13 00 00 00 00 00 00 53 [08:29:11]Write i2c OK [08:29:11]MH_I2C_Read... [08:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:11]Read from MH i2c: E2 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 62 00 [08:29:11]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 62 00 0F C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [08:29:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:12]wFMCommunicate OK [08:29:12]SAM_PROTO_GetFieldsCounters done [08:29:12]requested_item shift.num is exist - process it [08:29:12]requested_item shift.opened is exist - process it [08:29:12]req_shift_opened [08:29:12]FM_GetShiftState [08:29:12]SAM_PROTO_GetShiftState [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 13 01 00 [08:29:12]Write to MH i2c: E2 08 00 10 C8 80 13 01 00 00 00 00 00 55 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 0E 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 0E 00 10 C8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9D [08:29:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:29:12]wFMCommunicate OK [08:29:12]SAM_PROTO_GetShiftState done [08:29:12]FM_GetShiftState done [08:29:12]req_shift_opened done [08:29:12]requested_item shift.open_date is exist - process it [08:29:12]req_shift_open_date [08:29:12]req_shift_open_date done [08:29:12]produce_requested_data done [08:29:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165560,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:29:12]process_action_free close_receipt [08:29:12]json_value_free [08:29:12]json_value_free done [08:29:12]process_json_proto returns [08:29:12]Send response to host [08:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165560,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:29:12]free response buf [08:29:12]execute_script done [08:29:12]execute_script returns [08:29:12]free content buf [08:29:12]Sock 9.Close socket [08:29:12]Sock 9.Thread stoped [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:08]accept exits with 7 [08:43:08]New connection [08:43:08]New thread 3066920292 created [08:43:08]Thread 3066776932 joined [08:43:08]Waiting for new connection... [08:43:08] Sock 7.Parse request [08:43:08]Sock 7.Check first char [08:43:08]Sock 7.First char is OK [08:43:08]request: POST /json_proto HTTP/1.0 [08:43:08]Method: POST [08:43:08]URL: /json_proto [08:43:08]Method is POST - this is cgi request [08:43:08]url: /json_proto [08:43:08]query_string will be loaded in cgi processing [08:43:08]execute_cgi json_proto POST (null) [08:43:08]execute_cgi path=json_proto method=POST [08:43:08]POST find Content-Length [08:43:08]Host: 172.17.53.195:8080 [08:43:08]Content-Length: 679 [08:43:08]Content-Type: application/json [08:43:08] [08:43:08]POST finish read [08:43:08]Found Content-Length = 679 [08:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:43:08]execute_script... [08:43: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)220120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:43:08]POST & json_proto [08:43:08]process_json_proto [08:43:08]json parsed OK: [08:43:08]protocol is kg_v1.0 [08:43:08]action value=close_receipt [08:43:08]process_action close_receipt [08:43:08]cmd_close_receipt [08:43:08]MH_GetDate [08:43:08]Write to MH i2c: F0 00 00 11 C8 C8 [08:43:08]Write i2c OK [08:43:08]MH_I2C_Read... [08:43:08]Read from MH i2c: F0 [08:43:08]MH_I2C_Read... [08:43:08]Read from MH i2c: F0 09 00 [08:43:08]MH_I2C_Read... [08:43:08]Read from MH i2c: F0 09 00 11 C8 00 A7 C2 14 67 21 48 4A 65 CD [08:43:08]GetLastDocTimeStamp 1729412959 [08:43:08]current date 1729413799 [08:43:08]FM_GetShiftState [08:43:08]SAM_PROTO_GetShiftState [08:43:08]wFMCommunicate request_size=4 [08:43:08]MH_SAM_APDU [08:43:08]CAPDU: 80 13 01 00 [08:43:08]Write to MH i2c: E2 08 00 12 C8 80 13 01 00 00 00 00 00 57 [08:43:08]Write i2c OK [08:43:08]MH_I2C_Read... [08:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:08]Read from MH i2c: E2 [08:43:08]MH_I2C_Read... [08:43:08]Read from MH i2c: E2 0E 00 [08:43:08]MH_I2C_Read... [08:43:08]Read from MH i2c: E2 0E 00 12 C8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9F [08:43:08]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:43:08]wFMCommunicate OK [08:43:08]SAM_PROTO_GetShiftState done [08:43:08]FM_GetShiftState done [08:43:08]opened in 1729384561 [08:43:08]opened+sec_in_day 1729470961 [08:43:08]quantity*price = 100050 [08:43:08]sum+1 = 100052 [08:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 43 20.10.2024 08:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165561 ФПД: 206016107472972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165561&fm=206016107472972&tin=02508201610067®Number=0000000000091764&sum=100000 [08:43:09]StoreToDocumentArchive [08:43:09]shift 534 fd 165561 [08:43:09]save to /storage/0534/doc_00165561 [08:43:09]save last doc name /storage/0534/doc_00165561 to /storage/kkm_last_doc_name [08:43:09]save OK [08:43:09]Clear old archive folders... [08:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:43:09]tlvbuf is 0177A880 [08:43:09]SAM_PROTO_ClearQueue [08:43:09]wFMCommunicate request_size=4 [08:43:09]MH_SAM_APDU [08:43:09]CAPDU: 80 09 00 00 [08:43:09]Write to MH i2c: E2 08 00 1F C8 80 09 00 00 00 00 00 00 59 [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:09]Read from MH i2c: E2 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 03 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 03 00 1F C8 00 90 00 5B [08:43:09]RAPDU: 90 00 [08:43:09]wFMCommunicate OK [08:43:09]SAM_PROTO_ClearQueue done [08:43:09]KKMCreateOFDPacket [08:43:09]OFDProtocolAddRootSTLVToBuf [08:43:09]FM_MakeSignedData [08:43:09]FM_MakeSignedData [08:43:09]SAM_PROTO_SignData [08:43:09]wFMCommunicate request_size=4 [08:43:09]MH_SAM_APDU [08:43:09]CAPDU: 80 0D 01 02 [08:43:09]Write to MH i2c: E2 08 00 20 C8 80 0D 01 02 00 00 00 00 61 [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:09]Read from MH i2c: E2 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 03 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 03 00 20 C8 00 90 00 5C [08:43:09]RAPDU: 90 00 [08:43:09]wFMCommunicate OK [08:43:09]wFMCommunicate request_size=255 [08:43:09]MH_SAM_APDU [08:43: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A7 C2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 86 02 00 35 04 06 00 BB 5E DC E7 [08:43:09]Write to MH i2c: E2 02 01 21 C8 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A7 C2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 86 02 00 35 04 06 00 BB 5E DC E7 00 00 31 [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:09]Read from MH i2c: E2 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 03 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 03 00 21 C8 00 90 00 5D [08:43:09]RAPDU: 90 00 [08:43:09]wFMCommunicate OK [08:43:09]wFMCommunicate request_size=7 [08:43:09]MH_SAM_APDU [08:43:09]CAPDU: 80 0D 02 02 02 68 4C [08:43:09]Write to MH i2c: E2 0A 00 22 C8 80 0D 02 02 02 00 68 4C 00 00 1C [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:09]Read from MH i2c: E2 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 03 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 03 00 22 C8 00 90 00 5E [08:43:09]RAPDU: 90 00 [08:43:09]wFMCommunicate OK [08:43:09]wFMCommunicate request_size=4 [08:43:09]MH_SAM_APDU [08:43:09]CAPDU: 80 0D 03 02 [08:43:09]Write to MH i2c: E2 08 00 23 C8 80 0D 03 02 00 00 00 00 66 [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:09]Read from MH i2c: E2 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 0B 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 0B 00 23 C8 00 4B D8 ED E2 DC 57 A0 FA 90 00 26 [08:43:09]RAPDU: 4B D8 ED E2 DC 57 A0 FA 90 00 [08:43:09]wFMCommunicate OK [08:43:09]SAM_PROTO_SignData done [08:43:09]FM_MakeSignedData done [08:43:09]CreateOFDProtocolMessage [08:43:09]wFMCommunicate request_size=4 [08:43:09]MH_SAM_APDU [08:43:09]CAPDU: 80 11 00 00 [08:43:09]Write to MH i2c: E2 08 00 24 C8 80 11 00 00 00 00 00 00 66 [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:09]Read from MH i2c: E2 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 17 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 17 00 24 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [08:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:43:09]wFMCommunicate OK [08:43:09]CreateOFDProtocolMessage done [08:43:09]OFDSenderStorePacket 165561 [08:43:09]StoreOFDPacket docnum=165561 [08:43:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0D 49 04 01 64 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A7 C2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 86 02 00 35 04 06 00 BB 5E DC E7 68 4C 4B D8 ED E2 DC 57 A0 FA [08:43:09]CheckFolder [08:43:09]dirname=/storage/ofd_packets [08:43:09]CheckFolder done [08:43:09]ProducePacketName [08:43:09]name=ofd_packets/00165561 [08:43:09]NVStorageSaveData ofd_packets/00165561 [08:43:09]File name is /storage/ofd_packets/00165561 [08:43:09]Write 298 bytes [08:43:09]NVStorageSaveData done [08:43:09]OFDSenderStorePacket done [08:43:09]KKMCreateOFDPacket done [08:43:09]NVStorageSaveData kkm_last_timestamp [08:43:09]File name is /storage/kkm_last_timestamp [08:43:09]Write 4 bytes [08:43:09]NVStorageSaveData done [08:43:09]ExternCall_PrintAddStr [08:43:09]wPrintStart [08:43:09]Write to MH i2c: 01 00 00 25 C8 ED [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: 01 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: 01 07 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: 01 07 00 25 C8 00 00 00 00 00 FF 0F 02 [08:43:09]RasterBufferAndPrint [08:43:09]line Счет N : (1)220120 [08:43:09]line ИНН: 02508201610067 [08:43:09]line Контрольно-Кассовый Чек [08:43:09]line ПРОДАЖА [08:43:09]line ТРК (МРК, ГНК) : 31 [08:43:09]line Товар: 2710194210 [08:43:09]line ДТ-К-5 [08:43:09]line 13.130 * 76.20 [08:43:09]line = 1000.51 [08:43:09]line НДС 12% НСП 1% [08:43:09]line > о реализуемом товаре [08:43:09]line ОКРУГЛЕНИЕ: -0.51 [08:43:09]line ИТОГО: 1000.00 [08:43:09]line Внесено: 1000.00 [08:43:09]line СДАЧА: 0.00 [08:43:09]line НСП 1% : 8.85 [08:43:09]line НДС 12% : 106.25 [08:43:09]line Наличными: 1000.00 [08:43:09]line Безнал.: 0.00 [08:43:09]line Место: АЗС № 161 "Партнер Нефть" [08:43:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:43:09]line СНО: Общий режим [08:43:09]line Чек 43 20.10.2024 08:43 [08:43:09]line Смена: 534 ФФД: 1.0 [08:43:09]line ЗНМ: 0300000104 [08:43:09]line РНМ: 0000000000091764 [08:43:09]line Версия ККМ: 001 [08:43:09]line ФМ: 0000000000871759 [08:43:09]line ФД: 165561 [08:43:09]line ФПД: 206016107472972 [08:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165561&fm=206016107472972&tin=02508201610067®Number=0000000000091764&sum=100000 [08:43:10]OFD Sender: Processing packet 165561 [packets to send 48, broken 47] [08:43:10]ProducePacketName [08:43:10]name=ofd_packets/00165561 [08:43:10]OFD Sender: To server: pG, [08:43:10]CommunicateWithHost lk.salyk.kg:30040 [08:43:10]ConnectInit lk.salyk.kg [08:43:10]written 0, free lines is 4095 [08:43:10]Connected sock=10 [08:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0D 49 04 01 64 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A7 C2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 86 02 00 35 04 06 00 BB 5E DC E7 68 4C 4B D8 ED E2 DC 57 A0 FA [08:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8F 02 47 00 EC 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 31 37 35 39 10 04 04 00 B9 86 02 00 F4 03 04 00 1A 69 14 67 B6 04 01 00 00 A0 94 AE DE 5F FD 43 D8 [08:43:10]CommunicateWithHost err = 0 [08:43:10]CheckOFDResponse [08:43:10]1017 (14) - 77093643461234 [08:43:10]1041 (16) - 0000000000871759 [08:43:10]1040 (4) - 165561 [08:43:10]1012 (4) - 20.10.2024 02:21 [08:43:10]1206 (1) - 0 [08:43:10]OFD Sender: Remove packet 165561 [08:43:10]ProducePacketName [08:43:10]name=ofd_packets/00165561 [08:43:10]NVStorageDeleteData [08:43:10]Write to MH i2c: 01 00 00 50 C8 18 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 07 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 07 00 50 C8 00 00 00 00 00 B6 0C E1 [08:43:10]RasterBufferAndPrint [08:43:10]line [08:43:10]line [08:43:10]line [08:43:10]line [08:43:10]line [08:43:10]written 0, free lines is 3263 [08:43:10]MH_Cut [08:43:10]Write to MH i2c: D1 01 00 57 C8 01 F1 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: D1 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: D1 01 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: D1 01 00 57 C8 00 F0 [08:43:10]Write to MH i2c: 01 00 00 58 C8 20 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:11]OFD Sender: No OFD packet to send [08:43:11]*** Cut start [08:43:11]*** Partial cut [08:43:11]*** CUTSNS_PIN = 1 [08:43:11]*** CUTSNS_PIN = 0 [08:43:11]*** Brake cut motor [08:43:12]Read from MH i2c: 01 [08:43:12]MH_I2C_Read... [08:43:12]*** Stop cut motor [08:43:12]*** Cut end [08:43:12]Read from MH i2c: 01 07 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: 01 07 00 58 C8 00 00 00 00 00 FF 0F 35 [08:43:12]process_action close_receipt done [08:43:12]requested_data is exist [08:43:12]produce_requested_data [08:43:12]requested_item fm.sn is exist - process it [08:43:12]wFMCommunicate request_size=4 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 11 00 00 [08:43:12]Write to MH i2c: E2 08 00 59 C8 80 11 00 00 00 00 00 00 9B [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 17 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 17 00 59 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F3 [08:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:43:12]wFMCommunicate OK [08:43:12]requested_item fd.num is exist - process it [08:43:12]SAM_PROTO_GetFieldsCounters [08:43:12]wFMCommunicate request_size=4 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 13 00 00 [08:43:12]Write to MH i2c: E2 08 00 5A C8 80 13 00 00 00 00 00 00 9E [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 62 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 62 00 5A C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [08:43:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:12]wFMCommunicate OK [08:43:12]SAM_PROTO_GetFieldsCounters done [08:43:12]requested_item shift.num is exist - process it [08:43:12]requested_item shift.opened is exist - process it [08:43:12]req_shift_opened [08:43:12]FM_GetShiftState [08:43:12]SAM_PROTO_GetShiftState [08:43:12]wFMCommunicate request_size=4 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 13 01 00 [08:43:12]Write to MH i2c: E2 08 00 5B C8 80 13 01 00 00 00 00 00 A0 [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 0E 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 0E 00 5B C8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E8 [08:43:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:43:12]wFMCommunicate OK [08:43:12]SAM_PROTO_GetShiftState done [08:43:12]FM_GetShiftState done [08:43:12]req_shift_opened done [08:43:12]requested_item shift.open_date is exist - process it [08:43:12]req_shift_open_date [08:43:12]req_shift_open_date done [08:43:12]produce_requested_data done [08:43:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165561,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:43:12]process_action_free close_receipt [08:43:12]json_value_free [08:43:12]json_value_free done [08:43:12]process_json_proto returns [08:43:12]Send response to host [08:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165561,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:43:12]free response buf [08:43:12]execute_script done [08:43:12]execute_script returns [08:43:12]free content buf [08:43:12]Sock 7.Close socket [08:43:12]Sock 7.Thread stoped [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:28]accept exits with 9 [08:47:28]New connection [08:47:28]New thread 3066776932 created [08:47:28]Thread 3066920292 joined [08:47:28]Waiting for new connection... [08:47:28] Sock 9.Parse request [08:47:28]Sock 9.Check first char [08:47:28]Sock 9.First char is OK [08:47:28]request: POST /json_proto HTTP/1.0 [08:47:28]Method: POST [08:47:28]URL: /json_proto [08:47:28]Method is POST - this is cgi request [08:47:28]url: /json_proto [08:47:28]query_string will be loaded in cgi processing [08:47:28]execute_cgi json_proto POST (null) [08:47:28]execute_cgi path=json_proto method=POST [08:47:28]POST find Content-Length [08:47:28]Host: 172.17.53.195:8080 [08:47:28]Content-Length: 679 [08:47:28]Content-Type: application/json [08:47:28] [08:47:28]POST finish read [08:47:28]Found Content-Length = 679 [08:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220121", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [08:47:28]execute_script... [08:47: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)220121", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [08:47:28]POST & json_proto [08:47:28]process_json_proto [08:47:28]json parsed OK: [08:47:28]protocol is kg_v1.0 [08:47:28]action value=close_receipt [08:47:28]process_action close_receipt [08:47:28]cmd_close_receipt [08:47:28]MH_GetDate [08:47:28]Write to MH i2c: F0 00 00 5C C8 13 [08:47:28]Write i2c OK [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: F0 [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: F0 09 00 [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: F0 09 00 5C C8 00 AB C3 14 67 21 48 4A 65 1D [08:47:28]GetLastDocTimeStamp 1729413799 [08:47:28]current date 1729414059 [08:47:28]FM_GetShiftState [08:47:28]SAM_PROTO_GetShiftState [08:47:28]wFMCommunicate request_size=4 [08:47:28]MH_SAM_APDU [08:47:28]CAPDU: 80 13 01 00 [08:47:28]Write to MH i2c: E2 08 00 5D C8 80 13 01 00 00 00 00 00 A2 [08:47:28]Write i2c OK [08:47:28]MH_I2C_Read... [08:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:28]Read from MH i2c: E2 [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: E2 0E 00 [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: E2 0E 00 5D C8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EA [08:47:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:47:28]wFMCommunicate OK [08:47:28]SAM_PROTO_GetShiftState done [08:47:28]FM_GetShiftState done [08:47:28]opened in 1729384561 [08:47:28]opened+sec_in_day 1729470961 [08:47:28]quantity*price = 150037 [08:47:28]sum+1 = 150039 [08:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 44 20.10.2024 08:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165562 ФПД: 192611821160167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084739&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165562&fm=192611821160167&tin=02508201610067®Number=0000000000091764&sum=150000 [08:47:29]StoreToDocumentArchive [08:47:29]shift 534 fd 165562 [08:47:29]save to /storage/0534/doc_00165562 [08:47:29]save last doc name /storage/0534/doc_00165562 to /storage/kkm_last_doc_name [08:47:29]save OK [08:47:29]Clear old archive folders... [08:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:47:29]tlvbuf is 016C76D0 [08:47:29]SAM_PROTO_ClearQueue [08:47:29]wFMCommunicate request_size=4 [08:47:29]MH_SAM_APDU [08:47:29]CAPDU: 80 09 00 00 [08:47:29]Write to MH i2c: E2 08 00 6A C8 80 09 00 00 00 00 00 00 A4 [08:47:29]Write i2c OK [08:47:29]MH_I2C_Read... [08:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:29]Read from MH i2c: E2 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 03 00 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 03 00 6A C8 00 90 00 A6 [08:47:29]RAPDU: 90 00 [08:47:29]wFMCommunicate OK [08:47:29]SAM_PROTO_ClearQueue done [08:47:29]KKMCreateOFDPacket [08:47:29]OFDProtocolAddRootSTLVToBuf [08:47:29]FM_MakeSignedData [08:47:29]FM_MakeSignedData [08:47:29]SAM_PROTO_SignData [08:47:29]wFMCommunicate request_size=4 [08:47:29]MH_SAM_APDU [08:47:29]CAPDU: 80 0D 01 02 [08:47:29]Write to MH i2c: E2 08 00 6B C8 80 0D 01 02 00 00 00 00 AC [08:47:29]Write i2c OK [08:47:29]MH_I2C_Read... [08:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:29]Read from MH i2c: E2 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 03 00 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 03 00 6B C8 00 90 00 A7 [08:47:29]RAPDU: 90 00 [08:47:29]wFMCommunicate OK [08:47:29]wFMCommunicate request_size=255 [08:47:29]MH_SAM_APDU [08:47: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 2C 00 00 00 F4 03 04 00 AB C3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 86 02 00 35 04 06 00 AF 2D EF 2E [08:47:29]Write to MH i2c: E2 02 01 6C C8 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 2C 00 00 00 F4 03 04 00 AB C3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 86 02 00 35 04 06 00 AF 2D EF 2E 00 00 17 [08:47:29]Write i2c OK [08:47:29]MH_I2C_Read... [08:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:30]Read from MH i2c: E2 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: E2 03 00 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: E2 03 00 6C C8 00 90 00 A8 [08:47:30]RAPDU: 90 00 [08:47:30]wFMCommunicate OK [08:47:30]wFMCommunicate request_size=7 [08:47:30]MH_SAM_APDU [08:47:30]CAPDU: 80 0D 02 02 02 06 E7 [08:47:30]Write to MH i2c: E2 0A 00 6D C8 80 0D 02 02 02 00 06 E7 00 00 A0 [08:47:30]Write i2c OK [08:47:30]MH_I2C_Read... [08:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:30]Read from MH i2c: E2 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: E2 03 00 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: E2 03 00 6D C8 00 90 00 A9 [08:47:30]RAPDU: 90 00 [08:47:30]wFMCommunicate OK [08:47:30]wFMCommunicate request_size=4 [08:47:30]MH_SAM_APDU [08:47:30]CAPDU: 80 0D 03 02 [08:47:30]Write to MH i2c: E2 08 00 6E C8 80 0D 03 02 00 00 00 00 B1 [08:47:30]Write i2c OK [08:47:30]MH_I2C_Read... [08:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:30]Read from MH i2c: E2 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: E2 0B 00 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: E2 0B 00 6E C8 00 6C C5 14 5F 9F 10 A0 38 90 00 DD [08:47:30]RAPDU: 6C C5 14 5F 9F 10 A0 38 90 00 [08:47:30]wFMCommunicate OK [08:47:30]SAM_PROTO_SignData done [08:47:30]FM_MakeSignedData done [08:47:30]CreateOFDProtocolMessage [08:47:30]wFMCommunicate request_size=4 [08:47:30]MH_SAM_APDU [08:47:30]CAPDU: 80 11 00 00 [08:47:30]Write to MH i2c: E2 08 00 6F C8 80 11 00 00 00 00 00 00 B1 [08:47:30]Write i2c OK [08:47:30]MH_I2C_Read... [08:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:30]Read from MH i2c: E2 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: E2 17 00 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: E2 17 00 6F C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 09 [08:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:47:30]wFMCommunicate OK [08:47:30]CreateOFDProtocolMessage done [08:47:30]OFDSenderStorePacket 165562 [08:47:30]StoreOFDPacket docnum=165562 [08:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 14 A9 04 01 D1 F6 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 2C 00 00 00 F4 03 04 00 AB C3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 86 02 00 35 04 06 00 AF 2D EF 2E 06 E7 6C C5 14 5F 9F 10 A0 38 [08:47:30]CheckFolder [08:47:30]dirname=/storage/ofd_packets [08:47:30]CheckFolder done [08:47:30]ProducePacketName [08:47:30]name=ofd_packets/00165562 [08:47:30]NVStorageSaveData ofd_packets/00165562 [08:47:30]File name is /storage/ofd_packets/00165562 [08:47:30]Write 298 bytes [08:47:30]NVStorageSaveData done [08:47:30]OFDSenderStorePacket done [08:47:30]KKMCreateOFDPacket done [08:47:30]NVStorageSaveData kkm_last_timestamp [08:47:30]File name is /storage/kkm_last_timestamp [08:47:30]Write 4 bytes [08:47:30]NVStorageSaveData done [08:47:30]ExternCall_PrintAddStr [08:47:30]wPrintStart [08:47:30]Write to MH i2c: 01 00 00 70 C8 38 [08:47:30]Write i2c OK [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: 01 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: 01 07 00 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: 01 07 00 70 C8 00 00 00 00 00 FF 0F 4D [08:47:30]RasterBufferAndPrint [08:47:30]line Счет N : (1)220121 [08:47:30]line ИНН: 02508201610067 [08:47:30]line Контрольно-Кассовый Чек [08:47:30]line ПРОДАЖА [08:47:30]line ТРК (МРК, ГНК) : 11 [08:47:30]line Товар: 2710194210 [08:47:30]line ДТ-К-5 [08:47:30]line 19.690 * 76.20 [08:47:30]line = 1500.38 [08:47:30]line НДС 12% НСП 1% [08:47:30]line > о реализуемом товаре [08:47:30]line ОКРУГЛЕНИЕ: -0.38 [08:47:30]line ИТОГО: 1500.00 [08:47:30]line Внесено: 1500.00 [08:47:30]line СДАЧА: 0.00 [08:47:30]line НСП 1% : 13.28 [08:47:30]line НДС 12% : 159.33 [08:47:30]line Наличными: 1500.00 [08:47:30]line Безнал.: 0.00 [08:47:30]line Место: АЗС № 161 "Партнер Нефть" [08:47:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:47:30]line СНО: Общий режим [08:47:30]line Чек 44 20.10.2024 08:47 [08:47:30]line Смена: 534 ФФД: 1.0 [08:47:30]line ЗНМ: 0300000104 [08:47:30]line РНМ: 0000000000091764 [08:47:30]line Версия ККМ: 001 [08:47:30]line ФМ: 0000000000871759 [08:47:30]line ФД: 165562 [08:47:30]line ФПД: 192611821160167 [08:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084739&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165562&fm=192611821160167&tin=02508201610067®Number=0000000000091764&sum=150000 [08:47:30]OFD Sender: Processing packet 165562 [packets to send 48, broken 47] [08:47:30]ProducePacketName [08:47:30]name=ofd_packets/00165562 [08:47:30]OFD Sender: To server: pG, [08:47:30]CommunicateWithHost lk.salyk.kg:30040 [08:47:30]ConnectInit lk.salyk.kg [08:47:30]written 0, free lines is 4095 [08:47:30]Connected sock=10 [08:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 14 A9 04 01 D1 F6 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 2C 00 00 00 F4 03 04 00 AB C3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 86 02 00 35 04 06 00 AF 2D EF 2E 06 E7 6C C5 14 5F 9F 10 A0 38 [08:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1A 86 47 00 92 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 86 02 00 F4 03 04 00 1E 6A 14 67 B6 04 01 00 00 45 B4 A3 46 CA 25 43 6E [08:47:30]CommunicateWithHost err = 0 [08:47:30]CheckOFDResponse [08:47:30]1017 (14) - 77093643461234 [08:47:30]1041 (16) - 0000000000871759 [08:47:30]1040 (4) - 165562 [08:47:30]1012 (4) - 20.10.2024 02:25 [08:47:30]1206 (1) - 0 [08:47:30]OFD Sender: Remove packet 165562 [08:47:30]ProducePacketName [08:47:30]name=ofd_packets/00165562 [08:47:30]NVStorageDeleteData [08:47:31]Write to MH i2c: 01 00 00 9B C8 63 [08:47:31]Write i2c OK [08:47:31]MH_I2C_Read... [08:47:31]Read from MH i2c: 01 [08:47:31]MH_I2C_Read... [08:47:31]Read from MH i2c: 01 07 00 [08:47:31]MH_I2C_Read... [08:47:31]Read from MH i2c: 01 07 00 9B C8 00 00 00 00 00 C2 0C 38 [08:47:31]RasterBufferAndPrint [08:47:31]line [08:47:31]line [08:47:31]line [08:47:31]line [08:47:31]line [08:47:31]written 0, free lines is 3273 [08:47:31]MH_Cut [08:47:31]Write to MH i2c: D1 01 00 A2 C8 01 3C [08:47:31]Write i2c OK [08:47:31]MH_I2C_Read... [08:47:31]Read from MH i2c: D1 [08:47:31]MH_I2C_Read... [08:47:31]Read from MH i2c: D1 01 00 [08:47:31]MH_I2C_Read... [08:47:31]Read from MH i2c: D1 01 00 A2 C8 00 3B [08:47:31]Write to MH i2c: 01 00 00 A3 C8 6B [08:47:31]Write i2c OK [08:47:31]MH_I2C_Read... [08:47:31]OFD Sender: No OFD packet to send [08:47:31]*** Cut start [08:47:31]*** Partial cut [08:47:31]*** CUTSNS_PIN = 1 [08:47:31]*** CUTSNS_PIN = 0 [08:47:32]*** Brake cut motor [08:47:32]Read from MH i2c: 01 [08:47:32]MH_I2C_Read... [08:47:32]*** Stop cut motor [08:47:32]*** Cut end [08:47:32]Read from MH i2c: 01 07 00 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: 01 07 00 A3 C8 00 00 00 00 00 FF 0F 80 [08:47:32]process_action close_receipt done [08:47:32]requested_data is exist [08:47:32]produce_requested_data [08:47:32]requested_item fm.sn is exist - process it [08:47:32]wFMCommunicate request_size=4 [08:47:32]MH_SAM_APDU [08:47:32]CAPDU: 80 11 00 00 [08:47:32]Write to MH i2c: E2 08 00 A4 C8 80 11 00 00 00 00 00 00 E6 [08:47:32]Write i2c OK [08:47:32]MH_I2C_Read... [08:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:32]Read from MH i2c: E2 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 17 00 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 17 00 A4 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [08:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:47:32]wFMCommunicate OK [08:47:32]requested_item fd.num is exist - process it [08:47:32]SAM_PROTO_GetFieldsCounters [08:47:32]wFMCommunicate request_size=4 [08:47:32]MH_SAM_APDU [08:47:32]CAPDU: 80 13 00 00 [08:47:32]Write to MH i2c: E2 08 00 A5 C8 80 13 00 00 00 00 00 00 E9 [08:47:32]Write i2c OK [08:47:32]MH_I2C_Read... [08:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:32]Read from MH i2c: E2 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 62 00 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 62 00 A5 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [08:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:32]wFMCommunicate OK [08:47:32]SAM_PROTO_GetFieldsCounters done [08:47:32]requested_item shift.num is exist - process it [08:47:32]requested_item shift.opened is exist - process it [08:47:32]req_shift_opened [08:47:32]FM_GetShiftState [08:47:32]SAM_PROTO_GetShiftState [08:47:32]wFMCommunicate request_size=4 [08:47:32]MH_SAM_APDU [08:47:32]CAPDU: 80 13 01 00 [08:47:32]Write to MH i2c: E2 08 00 A6 C8 80 13 01 00 00 00 00 00 EB [08:47:32]Write i2c OK [08:47:32]MH_I2C_Read... [08:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:32]Read from MH i2c: E2 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 0E 00 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 0E 00 A6 C8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 33 [08:47:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:47:32]wFMCommunicate OK [08:47:32]SAM_PROTO_GetShiftState done [08:47:32]FM_GetShiftState done [08:47:32]req_shift_opened done [08:47:32]requested_item shift.open_date is exist - process it [08:47:32]req_shift_open_date [08:47:32]req_shift_open_date done [08:47:32]produce_requested_data done [08:47:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165562,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:47:32]process_action_free close_receipt [08:47:32]json_value_free [08:47:32]json_value_free done [08:47:32]process_json_proto returns [08:47:32]Send response to host [08:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165562,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:47:32]free response buf [08:47:32]execute_script done [08:47:32]execute_script returns [08:47:32]free content buf [08:47:32]Sock 9.Close socket [08:47:32]Sock 9.Thread stoped [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:44]accept exits with 7 [08:50:44]New connection [08:50:44]New thread 3066920292 created [08:50:44]Thread 3066776932 joined [08:50:44]Waiting for new connection... [08:50:44] Sock 7.Parse request [08:50:44]Sock 7.Check first char [08:50:44]Sock 7.First char is OK [08:50:44]request: POST /json_proto HTTP/1.0 [08:50:44]Method: POST [08:50:44]URL: /json_proto [08:50:44]Method is POST - this is cgi request [08:50:44]url: /json_proto [08:50:44]query_string will be loaded in cgi processing [08:50:44]execute_cgi json_proto POST (null) [08:50:44]execute_cgi path=json_proto method=POST [08:50:44]POST find Content-Length [08:50:44]Host: 172.17.53.195:8080 [08:50:44]Content-Length: 682 [08:50:44]Content-Type: application/json [08:50:44] [08:50:44]POST finish read [08:50:44]Found Content-Length = 682 [08:50:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:44]execute_script... [08:50: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)220123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:44]POST & json_proto [08:50:44]process_json_proto [08:50:44]json parsed OK: [08:50:44]protocol is kg_v1.0 [08:50:44]action value=close_receipt [08:50:44]process_action close_receipt [08:50:44]cmd_close_receipt [08:50:44]MH_GetDate [08:50:44]Write to MH i2c: F0 00 00 A7 C8 5E [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: F0 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: F0 09 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: F0 09 00 A7 C8 00 6F C4 14 67 21 48 4A 65 2D [08:50:44]GetLastDocTimeStamp 1729414059 [08:50:44]current date 1729414255 [08:50:44]FM_GetShiftState [08:50:44]SAM_PROTO_GetShiftState [08:50:44]wFMCommunicate request_size=4 [08:50:44]MH_SAM_APDU [08:50:44]CAPDU: 80 13 01 00 [08:50:44]Write to MH i2c: E2 08 00 A8 C8 80 13 01 00 00 00 00 00 ED [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:44]Read from MH i2c: E2 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 0E 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 0E 00 A8 C8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 35 [08:50:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:50:44]wFMCommunicate OK [08:50:44]SAM_PROTO_GetShiftState done [08:50:44]FM_GetShiftState done [08:50:44]opened in 1729384561 [08:50:44]opened+sec_in_day 1729470961 [08:50:44]quantity*price = 100015 [08:50:44]sum+1 = 100017 [08:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 45 20.10.2024 08:50 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165563 ФПД: 271235537035307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085055&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165563&fm=271235537035307&tin=02508201610067®Number=0000000000091764&sum=100000 [08:50:45]StoreToDocumentArchive [08:50:45]shift 534 fd 165563 [08:50:45]save to /storage/0534/doc_00165563 [08:50:45]save last doc name /storage/0534/doc_00165563 to /storage/kkm_last_doc_name [08:50:45]save OK [08:50:45]Clear old archive folders... [08:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:45]tlvbuf is 016AB440 [08:50:45]SAM_PROTO_ClearQueue [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 09 00 00 [08:50:45]Write to MH i2c: E2 08 00 B5 C8 80 09 00 00 00 00 00 00 EF [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 B5 C8 00 90 00 F1 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_ClearQueue done [08:50:45]KKMCreateOFDPacket [08:50:45]OFDProtocolAddRootSTLVToBuf [08:50:45]FM_MakeSignedData [08:50:45]FM_MakeSignedData [08:50:45]SAM_PROTO_SignData [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 0D 01 02 [08:50:45]Write to MH i2c: E2 08 00 B6 C8 80 0D 01 02 00 00 00 00 F7 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 B6 C8 00 90 00 F2 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]wFMCommunicate request_size=255 [08:50:45]MH_SAM_APDU [08:50: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6F C4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 86 02 00 35 04 06 00 F6 [08:50:45]Write to MH i2c: E2 02 01 B7 C8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6F C4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 86 02 00 35 04 06 00 F6 00 00 B3 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 B7 C8 00 90 00 F3 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]wFMCommunicate request_size=10 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 0D 02 02 05 AF F1 D5 E0 2B [08:50:45]Write to MH i2c: E2 0D 00 B8 C8 80 0D 02 02 05 00 AF F1 D5 E0 2B 00 00 84 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 B8 C8 00 90 00 F4 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 0D 03 02 [08:50:45]Write to MH i2c: E2 08 00 B9 C8 80 0D 03 02 00 00 00 00 FC [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0B 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0B 00 B9 C8 00 05 20 4D 7C 32 53 AA E4 90 00 FE [08:50:45]RAPDU: 05 20 4D 7C 32 53 AA E4 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_SignData done [08:50:45]FM_MakeSignedData done [08:50:45]CreateOFDProtocolMessage [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 11 00 00 [08:50:45]Write to MH i2c: E2 08 00 BA C8 80 11 00 00 00 00 00 00 FC [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 BA C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [08:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:50:45]wFMCommunicate OK [08:50:45]CreateOFDProtocolMessage done [08:50:45]OFDSenderStorePacket 165563 [08:50:45]StoreOFDPacket docnum=165563 [08:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EB 1D 07 01 08 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6F C4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 86 02 00 35 04 06 00 F6 AF F1 D5 E0 2B 05 20 4D 7C 32 53 AA E4 [08:50:45]CheckFolder [08:50:45]dirname=/storage/ofd_packets [08:50:45]CheckFolder done [08:50:45]ProducePacketName [08:50:45]name=ofd_packets/00165563 [08:50:45]NVStorageSaveData ofd_packets/00165563 [08:50:45]File name is /storage/ofd_packets/00165563 [08:50:45]Write 301 bytes [08:50:45]NVStorageSaveData done [08:50:45]OFDSenderStorePacket done [08:50:45]KKMCreateOFDPacket done [08:50:45]NVStorageSaveData kkm_last_timestamp [08:50:45]File name is /storage/kkm_last_timestamp [08:50:45]Write 4 bytes [08:50:45]NVStorageSaveData done [08:50:45]ExternCall_PrintAddStr [08:50:45]wPrintStart [08:50:45]Write to MH i2c: 01 00 00 BB C8 83 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 07 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 07 00 BB C8 00 00 00 00 00 FF 0F 98 [08:50:45]RasterBufferAndPrint [08:50:45]line Счет N : (1)220123 [08:50:45]line ИНН: 02508201610067 [08:50:45]line Контрольно-Кассовый Чек [08:50:45]line ПРОДАЖА [08:50:45]line ТРК (МРК, ГНК) : 13 [08:50:45]line Товар: 2710124130 [08:50:45]line Аи-92-К-5 [08:50:45]line 14.950 * 66.90 [08:50:45]line = 1000.16 [08:50:45]line НДС 12% НСП 1% [08:50:45]line > о реализуемом товаре [08:50:45]line ОКРУГЛЕНИЕ: -0.16 [08:50:45]line ИТОГО: 1000.00 [08:50:45]line Внесено: 1000.00 [08:50:45]line СДАЧА: 0.00 [08:50:45]line НСП 1% : 8.85 [08:50:45]line НДС 12% : 106.21 [08:50:45]line Наличными: 1000.00 [08:50:45]line Безнал.: 0.00 [08:50:45]line Место: АЗС № 161 "Партнер Нефть" [08:50:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:50:45]line СНО: Общий режим [08:50:45]line Чек 45 20.10.2024 08:50 [08:50:45]line Смена: 534 ФФД: 1.0 [08:50:45]line ЗНМ: 0300000104 [08:50:45]line РНМ: 0000000000091764 [08:50:45]line Версия ККМ: 001 [08:50:45]line ФМ: 0000000000871759 [08:50:45]line ФД: 165563 [08:50:45]line ФПД: 271235537035307 [08:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085055&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165563&fm=271235537035307&tin=02508201610067®Number=0000000000091764&sum=100000 [08:50:46]OFD Sender: Processing packet 165563 [packets to send 48, broken 47] [08:50:46]ProducePacketName [08:50:46]name=ofd_packets/00165563 [08:50:46]OFD Sender: To server: pG, [08:50:46]CommunicateWithHost lk.salyk.kg:30040 [08:50:46]ConnectInit lk.salyk.kg [08:50:46]written 0, free lines is 4095 [08:50:46]Connected sock=10 [08:50:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EB 1D 07 01 08 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6F C4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 86 02 00 35 04 06 00 F6 AF F1 D5 E0 2B 05 20 4D 7C 32 53 AA E4 [08:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 09 84 47 00 45 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 86 02 00 F4 03 04 00 E2 6A 14 67 B6 04 01 00 00 A8 7A 8D DE E7 5D 5E D3 [08:50:46]CommunicateWithHost err = 0 [08:50:46]CheckOFDResponse [08:50:46]1017 (14) - 77093643461234 [08:50:46]1041 (16) - 0000000000871759 [08:50:46]1040 (4) - 165563 [08:50:46]1012 (4) - 20.10.2024 02:28 [08:50:46]1206 (1) - 0 [08:50:46]OFD Sender: Remove packet 165563 [08:50:46]ProducePacketName [08:50:46]name=ofd_packets/00165563 [08:50:46]NVStorageDeleteData [08:50:46]Write to MH i2c: 01 00 00 E6 C8 AE [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 07 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 07 00 E6 C8 00 00 00 00 00 B5 0C 76 [08:50:46]RasterBufferAndPrint [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]written 0, free lines is 3260 [08:50:46]MH_Cut [08:50:46]Write to MH i2c: D1 01 00 ED C8 01 87 [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: D1 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: D1 01 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: D1 01 00 ED C8 00 86 [08:50:46]Write to MH i2c: 01 00 00 EE C8 B6 [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:47]OFD Sender: No OFD packet to send [08:50:47]*** Cut start [08:50:47]*** Partial cut [08:50:47]*** CUTSNS_PIN = 1 [08:50:47]*** CUTSNS_PIN = 0 [08:50:47]*** Brake cut motor [08:50:48]Read from MH i2c: 01 [08:50:48]MH_I2C_Read... [08:50:48]*** Stop cut motor [08:50:48]*** Cut end [08:50:48]Read from MH i2c: 01 07 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: 01 07 00 EE C8 00 00 00 00 00 FF 0F CB [08:50:48]process_action close_receipt done [08:50:48]requested_data is exist [08:50:48]produce_requested_data [08:50:48]requested_item fm.sn is exist - process it [08:50:48]wFMCommunicate request_size=4 [08:50:48]MH_SAM_APDU [08:50:48]CAPDU: 80 11 00 00 [08:50:48]Write to MH i2c: E2 08 00 EF C8 80 11 00 00 00 00 00 00 31 [08:50:48]Write i2c OK [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 [08:50:48]MH_I2C_Read... [08:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:48]Read from MH i2c: E2 17 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 17 00 EF C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [08:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:50:48]wFMCommunicate OK [08:50:48]requested_item fd.num is exist - process it [08:50:48]SAM_PROTO_GetFieldsCounters [08:50:48]wFMCommunicate request_size=4 [08:50:48]MH_SAM_APDU [08:50:48]CAPDU: 80 13 00 00 [08:50:48]Write to MH i2c: E2 08 00 F0 C8 80 13 00 00 00 00 00 00 34 [08:50:48]Write i2c OK [08:50:48]MH_I2C_Read... [08:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:48]Read from MH i2c: E2 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 62 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 62 00 F0 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [08:50:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:48]wFMCommunicate OK [08:50:48]SAM_PROTO_GetFieldsCounters done [08:50:48]requested_item shift.num is exist - process it [08:50:48]requested_item shift.opened is exist - process it [08:50:48]req_shift_opened [08:50:48]FM_GetShiftState [08:50:48]SAM_PROTO_GetShiftState [08:50:48]wFMCommunicate request_size=4 [08:50:48]MH_SAM_APDU [08:50:48]CAPDU: 80 13 01 00 [08:50:48]Write to MH i2c: E2 08 00 F1 C8 80 13 01 00 00 00 00 00 36 [08:50:48]Write i2c OK [08:50:48]MH_I2C_Read... [08:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:48]Read from MH i2c: E2 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 0E 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 0E 00 F1 C8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7E [08:50:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:50:48]wFMCommunicate OK [08:50:48]SAM_PROTO_GetShiftState done [08:50:48]FM_GetShiftState done [08:50:48]req_shift_opened done [08:50:48]requested_item shift.open_date is exist - process it [08:50:48]req_shift_open_date [08:50:48]req_shift_open_date done [08:50:48]produce_requested_data done [08:50:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165563,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:50:48]process_action_free close_receipt [08:50:48]json_value_free [08:50:48]json_value_free done [08:50:48]process_json_proto returns [08:50:48]Send response to host [08:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165563,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:50:48]free response buf [08:50:48]execute_script done [08:50:48]execute_script returns [08:50:48]free content buf [08:50:48]Sock 7.Close socket [08:50:48]Sock 7.Thread stoped [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:46]accept exits with 9 [08:51:46]New connection [08:51:46]New thread 3066776932 created [08:51:46]Thread 3066920292 joined [08:51:46]Waiting for new connection... [08:51:46] Sock 9.Parse request [08:51:46]Sock 9.Check first char [08:51:46]Sock 9.First char is OK [08:51:46]request: POST /json_proto HTTP/1.0 [08:51:46]Method: POST [08:51:46]URL: /json_proto [08:51:46]Method is POST - this is cgi request [08:51:46]url: /json_proto [08:51:46]query_string will be loaded in cgi processing [08:51:46]execute_cgi json_proto POST (null) [08:51:46]execute_cgi path=json_proto method=POST [08:51:46]POST find Content-Length [08:51:46]Host: 172.17.53.195:8080 [08:51:46]Content-Length: 682 [08:51:46]Content-Type: application/json [08:51:46] [08:51:46]POST finish read [08:51:46]Found Content-Length = 682 [08:51:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.430, "sum" : 2999.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:46]execute_script... [08:51: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)220122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.430, "sum" : 2999.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:46]POST & json_proto [08:51:46]process_json_proto [08:51:46]json parsed OK: [08:51:46]protocol is kg_v1.0 [08:51:46]action value=close_receipt [08:51:46]process_action close_receipt [08:51:46]cmd_close_receipt [08:51:46]MH_GetDate [08:51:46]Write to MH i2c: F0 00 00 F2 C8 A9 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: F0 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: F0 09 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: F0 09 00 F2 C8 00 AE C4 14 67 21 48 4A 65 B7 [08:51:46]GetLastDocTimeStamp 1729414255 [08:51:46]current date 1729414318 [08:51:46]FM_GetShiftState [08:51:46]SAM_PROTO_GetShiftState [08:51:46]wFMCommunicate request_size=4 [08:51:46]MH_SAM_APDU [08:51:46]CAPDU: 80 13 01 00 [08:51:46]Write to MH i2c: E2 08 00 F3 C8 80 13 01 00 00 00 00 00 38 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:46]Read from MH i2c: E2 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 0E 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 0E 00 F3 C8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 80 [08:51:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:51:46]wFMCommunicate OK [08:51:46]SAM_PROTO_GetShiftState done [08:51:46]FM_GetShiftState done [08:51:46]opened in 1729384561 [08:51:46]opened+sec_in_day 1729470961 [08:51:46]quantity*price = 299990 [08:51:46]sum+1 = 299992 [08:51:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.91 ИТОГО: 2999.00 Внесено: 3000.00 СДАЧА: 1.00 НСП 1% : 26.55 НДС 12% : 318.57 Наличными: 2999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 46 20.10.2024 08:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165564 ФПД: 68186767904660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085158&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165564&fm=68186767904660&tin=02508201610067®Number=0000000000091764&sum=299900 [08:51:47]StoreToDocumentArchive [08:51:47]shift 534 fd 165564 [08:51:47]save to /storage/0534/doc_00165564 [08:51:47]save last doc name /storage/0534/doc_00165564 to /storage/kkm_last_doc_name [08:51:47]save OK [08:51:47]Clear old archive folders... [08:51:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:47]tlvbuf is 01485090 [08:51:47]SAM_PROTO_ClearQueue [08:51:47]wFMCommunicate request_size=4 [08:51:47]MH_SAM_APDU [08:51:47]CAPDU: 80 09 00 00 [08:51:47]Write to MH i2c: E2 08 00 00 C9 80 09 00 00 00 00 00 00 3B [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:47]Read from MH i2c: E2 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 03 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 03 00 00 C9 00 90 00 3D [08:51:47]RAPDU: 90 00 [08:51:47]wFMCommunicate OK [08:51:47]SAM_PROTO_ClearQueue done [08:51:47]KKMCreateOFDPacket [08:51:47]OFDProtocolAddRootSTLVToBuf [08:51:47]FM_MakeSignedData [08:51:47]FM_MakeSignedData [08:51:47]SAM_PROTO_SignData [08:51:47]wFMCommunicate request_size=4 [08:51:47]MH_SAM_APDU [08:51:47]CAPDU: 80 0D 01 02 [08:51:47]Write to MH i2c: E2 08 00 01 C9 80 0D 01 02 00 00 00 00 43 [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:47]Read from MH i2c: E2 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 03 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 03 00 01 C9 00 90 00 3E [08:51:47]RAPDU: 90 00 [08:51:47]wFMCommunicate OK [08:51:47]wFMCommunicate request_size=255 [08:51:47]MH_SAM_APDU [08:51:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 71 7C 00 00 00 00 07 04 06 00 7C 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 2E 00 00 00 F4 03 04 00 AE C4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 86 02 00 35 04 06 00 3E [08:51:47]Write to MH i2c: E2 02 01 02 C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 71 7C 00 00 00 00 07 04 06 00 7C 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 2E 00 00 00 F4 03 04 00 AE C4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 86 02 00 35 04 06 00 3E 00 00 9A [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 02 C9 00 90 00 3F [08:51:48]RAPDU: 90 00 [08:51:48]wFMCommunicate OK [08:51:48]wFMCommunicate request_size=10 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 0D 02 02 05 03 F8 14 4F 94 [08:51:48]Write to MH i2c: E2 0D 00 03 C9 80 0D 02 02 05 00 03 F8 14 4F 94 00 00 42 [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 03 C9 00 90 00 40 [08:51:48]RAPDU: 90 00 [08:51:48]wFMCommunicate OK [08:51:48]wFMCommunicate request_size=4 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 0D 03 02 [08:51:48]Write to MH i2c: E2 08 00 04 C9 80 0D 03 02 00 00 00 00 48 [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 0B 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 0B 00 04 C9 00 21 96 FB 1C 3C E4 4F 2E 90 00 B4 [08:51:48]RAPDU: 21 96 FB 1C 3C E4 4F 2E 90 00 [08:51:48]wFMCommunicate OK [08:51:48]SAM_PROTO_SignData done [08:51:48]FM_MakeSignedData done [08:51:48]CreateOFDProtocolMessage [08:51:48]wFMCommunicate request_size=4 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 11 00 00 [08:51:48]Write to MH i2c: E2 08 00 05 C9 80 11 00 00 00 00 00 00 48 [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 17 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 17 00 05 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A0 [08:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:51:48]wFMCommunicate OK [08:51:48]CreateOFDProtocolMessage done [08:51:48]OFDSenderStorePacket 165564 [08:51:48]StoreOFDPacket docnum=165564 [08:51:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 19 29 07 01 8A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 71 7C 00 00 00 00 07 04 06 00 7C 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 2E 00 00 00 F4 03 04 00 AE C4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 86 02 00 35 04 06 00 3E 03 F8 14 4F 94 21 96 FB 1C 3C E4 4F 2E [08:51:48]CheckFolder [08:51:48]dirname=/storage/ofd_packets [08:51:48]CheckFolder done [08:51:48]ProducePacketName [08:51:48]name=ofd_packets/00165564 [08:51:48]NVStorageSaveData ofd_packets/00165564 [08:51:48]File name is /storage/ofd_packets/00165564 [08:51:48]Write 301 bytes [08:51:48]NVStorageSaveData done [08:51:48]OFDSenderStorePacket done [08:51:48]KKMCreateOFDPacket done [08:51:48]NVStorageSaveData kkm_last_timestamp [08:51:48]File name is /storage/kkm_last_timestamp [08:51:48]Write 4 bytes [08:51:48]NVStorageSaveData done [08:51:48]ExternCall_PrintAddStr [08:51:48]wPrintStart [08:51:48]Write to MH i2c: 01 00 00 06 C9 CF [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: 01 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: 01 07 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: 01 07 00 06 C9 00 00 00 00 00 FF 0F E4 [08:51:48]RasterBufferAndPrint [08:51:48]line Счет N : (1)220122 [08:51:48]line ИНН: 02508201610067 [08:51:48]line Контрольно-Кассовый Чек [08:51:48]line ПРОДАЖА [08:51:48]line ТРК (МРК, ГНК) : 44 [08:51:48]line Товар: 2710124500 [08:51:48]line Аи-95-К-5 [08:51:48]line 40.430 * 74.20 [08:51:48]line = 2999.91 [08:51:48]line НДС 12% НСП 1% [08:51:48]line > о реализуемом товаре [08:51:48]line ОКРУГЛЕНИЕ: -0.91 [08:51:48]line ИТОГО: 2999.00 [08:51:48]line Внесено: 3000.00 [08:51:48]line СДАЧА: 1.00 [08:51:48]line НСП 1% : 26.55 [08:51:48]line НДС 12% : 318.57 [08:51:48]line Наличными: 2999.00 [08:51:48]line Безнал.: 0.00 [08:51:48]line Место: АЗС № 161 "Партнер Нефть" [08:51:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:51:48]line СНО: Общий режим [08:51:48]line Чек 46 20.10.2024 08:51 [08:51:48]line Смена: 534 ФФД: 1.0 [08:51:48]line ЗНМ: 0300000104 [08:51:48]line РНМ: 0000000000091764 [08:51:48]line Версия ККМ: 001 [08:51:48]line ФМ: 0000000000871759 [08:51:48]line ФД: 165564 [08:51:48]line ФПД: 68186767904660 [08:51:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085158&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165564&fm=68186767904660&tin=02508201610067®Number=0000000000091764&sum=299900 [08:51:48]OFD Sender: Processing packet 165564 [packets to send 48, broken 47] [08:51:48]ProducePacketName [08:51:48]name=ofd_packets/00165564 [08:51:48]OFD Sender: To server: pG, [08:51:48]CommunicateWithHost lk.salyk.kg:30040 [08:51:48]ConnectInit lk.salyk.kg [08:51:48]written 0, free lines is 4095 [08:51:48]Connected sock=10 [08:51:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 19 29 07 01 8A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 71 7C 00 00 00 00 07 04 06 00 7C 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 2E 00 00 00 F4 03 04 00 AE C4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 86 02 00 35 04 06 00 3E 03 F8 14 4F 94 21 96 FB 1C 3C E4 4F 2E [08:51:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3C 69 47 00 47 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 31 37 35 39 10 04 04 00 BC 86 02 00 F4 03 04 00 20 6B 14 67 B6 04 01 00 00 F2 74 80 9F E7 B1 C6 8D [08:51:48]CommunicateWithHost err = 0 [08:51:48]CheckOFDResponse [08:51:48]1017 (14) - 77093643461234 [08:51:48]1041 (16) - 0000000000871759 [08:51:48]1040 (4) - 165564 [08:51:48]1012 (4) - 20.10.2024 02:29 [08:51:48]1206 (1) - 0 [08:51:48]OFD Sender: Remove packet 165564 [08:51:48]ProducePacketName [08:51:48]name=ofd_packets/00165564 [08:51:48]NVStorageDeleteData [08:51:49]Write to MH i2c: 01 00 00 31 C9 FA [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 31 C9 00 00 00 00 00 CD 0C DA [08:51:49]RasterBufferAndPrint [08:51:49]line [08:51:49]line [08:51:49]line [08:51:49]line [08:51:49]line [08:51:49]written 0, free lines is 3284 [08:51:49]MH_Cut [08:51:49]Write to MH i2c: D1 01 00 38 C9 01 D3 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: D1 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: D1 01 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: D1 01 00 38 C9 00 D2 [08:51:49]Write to MH i2c: 01 00 00 39 C9 02 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]OFD Sender: No OFD packet to send [08:51:49]*** Cut start [08:51:49]*** Partial cut [08:51:49]*** CUTSNS_PIN = 1 [08:51:50]*** CUTSNS_PIN = 0 [08:51:50]*** Brake cut motor [08:51:50]Read from MH i2c: 01 [08:51:50]MH_I2C_Read... [08:51:50]*** Stop cut motor [08:51:50]*** Cut end [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 39 C9 00 00 00 00 00 FF 0F 17 [08:51:50]process_action close_receipt done [08:51:50]requested_data is exist [08:51:50]produce_requested_data [08:51:50]requested_item fm.sn is exist - process it [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 11 00 00 [08:51:50]Write to MH i2c: E2 08 00 3A C9 80 11 00 00 00 00 00 00 7D [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 17 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 17 00 3A C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D5 [08:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:51:50]wFMCommunicate OK [08:51:50]requested_item fd.num is exist - process it [08:51:50]SAM_PROTO_GetFieldsCounters [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 13 00 00 [08:51:50]Write to MH i2c: E2 08 00 3B C9 80 13 00 00 00 00 00 00 80 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 62 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 62 00 3B C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [08:51:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:50]wFMCommunicate OK [08:51:50]SAM_PROTO_GetFieldsCounters done [08:51:50]requested_item shift.num is exist - process it [08:51:50]requested_item shift.opened is exist - process it [08:51:50]req_shift_opened [08:51:50]FM_GetShiftState [08:51:50]SAM_PROTO_GetShiftState [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 13 01 00 [08:51:50]Write to MH i2c: E2 08 00 3C C9 80 13 01 00 00 00 00 00 82 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 0E 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 0E 00 3C C9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CA [08:51:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:51:50]wFMCommunicate OK [08:51:50]SAM_PROTO_GetShiftState done [08:51:50]FM_GetShiftState done [08:51:50]req_shift_opened done [08:51:50]requested_item shift.open_date is exist - process it [08:51:50]req_shift_open_date [08:51:50]req_shift_open_date done [08:51:50]produce_requested_data done [08:51:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165564,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:51:50]process_action_free close_receipt [08:51:50]json_value_free [08:51:50]json_value_free done [08:51:50]process_json_proto returns [08:51:50]Send response to host [08:51:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165564,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:51:50]free response buf [08:51:50]execute_script done [08:51:50]execute_script returns [08:51:50]free content buf [08:51:50]Sock 9.Close socket [08:51:50]Sock 9.Thread stoped [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54: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:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:31]accept exits with 7 [08:59:31]New connection [08:59:31]New thread 3066920292 created [08:59:31]Thread 3066776932 joined [08:59:31]Waiting for new connection... [08:59:31] Sock 7.Parse request [08:59:31]Sock 7.Check first char [08:59:31]Sock 7.First char is OK [08:59:31]request: POST /json_proto HTTP/1.0 [08:59:31]Method: POST [08:59:31]URL: /json_proto [08:59:31]Method is POST - this is cgi request [08:59:31]url: /json_proto [08:59:31]query_string will be loaded in cgi processing [08:59:31]execute_cgi json_proto POST (null) [08:59:31]execute_cgi path=json_proto method=POST [08:59:31]POST find Content-Length [08:59:31]Host: 172.17.53.195:8080 [08:59:31]Content-Length: 676 [08:59:31]Content-Type: application/json [08:59:31] [08:59:31]POST finish read [08:59:31]Found Content-Length = 676 [08:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220124", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:31]execute_script... [08:59: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)220124", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:31]POST & json_proto [08:59:31]process_json_proto [08:59:31]json parsed OK: [08:59:31]protocol is kg_v1.0 [08:59:31]action value=close_receipt [08:59:31]process_action close_receipt [08:59:31]cmd_close_receipt [08:59:31]MH_GetDate [08:59:31]Write to MH i2c: F0 00 00 3D C9 F5 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: F0 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: F0 09 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: F0 09 00 3D C9 00 7E C6 14 67 21 48 4A 65 D5 [08:59:31]GetLastDocTimeStamp 1729414318 [08:59:31]current date 1729414782 [08:59:31]FM_GetShiftState [08:59:31]SAM_PROTO_GetShiftState [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 13 01 00 [08:59:31]Write to MH i2c: E2 08 00 3E C9 80 13 01 00 00 00 00 00 84 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0E 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0E 00 3E C9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CC [08:59:31]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_GetShiftState done [08:59:31]FM_GetShiftState done [08:59:31]opened in 1729384561 [08:59:31]opened+sec_in_day 1729470961 [08:59:31]quantity*price = 99974 [08:59:31]sum+1 = 99975 [08:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 47 20.10.2024 08:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165565 ФПД: 30739210127454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085942&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165565&fm=30739210127454&tin=02508201610067®Number=0000000000091764&sum=99900 [08:59:32]StoreToDocumentArchive [08:59:32]shift 534 fd 165565 [08:59:32]save to /storage/0534/doc_00165565 [08:59:32]save last doc name /storage/0534/doc_00165565 to /storage/kkm_last_doc_name [08:59:32]save OK [08:59:32]Clear old archive folders... [08:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:59:32]tlvbuf is 014B8250 [08:59:32]SAM_PROTO_ClearQueue [08:59:32]wFMCommunicate request_size=4 [08:59:32]MH_SAM_APDU [08:59:32]CAPDU: 80 09 00 00 [08:59:32]Write to MH i2c: E2 08 00 4B C9 80 09 00 00 00 00 00 00 86 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:32]Read from MH i2c: E2 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 03 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 03 00 4B C9 00 90 00 88 [08:59:32]RAPDU: 90 00 [08:59:32]wFMCommunicate OK [08:59:32]SAM_PROTO_ClearQueue done [08:59:32]KKMCreateOFDPacket [08:59:32]OFDProtocolAddRootSTLVToBuf [08:59:32]FM_MakeSignedData [08:59:32]FM_MakeSignedData [08:59:32]SAM_PROTO_SignData [08:59:32]wFMCommunicate request_size=4 [08:59:32]MH_SAM_APDU [08:59:32]CAPDU: 80 0D 01 02 [08:59:32]Write to MH i2c: E2 08 00 4C C9 80 0D 01 02 00 00 00 00 8E [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:32]Read from MH i2c: E2 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 03 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 03 00 4C C9 00 90 00 89 [08:59:32]RAPDU: 90 00 [08:59:32]wFMCommunicate OK [08:59:32]wFMCommunicate request_size=255 [08:59:32]MH_SAM_APDU [08:59: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 2F 00 00 00 F4 03 04 00 7E C6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 86 02 00 35 04 06 00 1B F5 07 B3 [08:59:32]Write to MH i2c: E2 02 01 4D C9 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 2F 00 00 00 F4 03 04 00 7E C6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 86 02 00 35 04 06 00 1B F5 07 B3 00 00 08 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:32]Read from MH i2c: E2 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 03 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 03 00 4D C9 00 90 00 8A [08:59:32]RAPDU: 90 00 [08:59:32]wFMCommunicate OK [08:59:32]wFMCommunicate request_size=7 [08:59:32]MH_SAM_APDU [08:59:32]CAPDU: 80 0D 02 02 02 48 5E [08:59:32]Write to MH i2c: E2 0A 00 4E C9 80 0D 02 02 02 00 48 5E 00 00 3B [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:32]Read from MH i2c: E2 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 03 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 03 00 4E C9 00 90 00 8B [08:59:32]RAPDU: 90 00 [08:59:32]wFMCommunicate OK [08:59:32]wFMCommunicate request_size=4 [08:59:32]MH_SAM_APDU [08:59:32]CAPDU: 80 0D 03 02 [08:59:32]Write to MH i2c: E2 08 00 4F C9 80 0D 03 02 00 00 00 00 93 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:32]Read from MH i2c: E2 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 0B 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 0B 00 4F C9 00 E7 17 2D 9E BE 91 AF 60 90 00 BB [08:59:32]RAPDU: E7 17 2D 9E BE 91 AF 60 90 00 [08:59:32]wFMCommunicate OK [08:59:32]SAM_PROTO_SignData done [08:59:32]FM_MakeSignedData done [08:59:32]CreateOFDProtocolMessage [08:59:32]wFMCommunicate request_size=4 [08:59:32]MH_SAM_APDU [08:59:32]CAPDU: 80 11 00 00 [08:59:32]Write to MH i2c: E2 08 00 50 C9 80 11 00 00 00 00 00 00 93 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:32]Read from MH i2c: E2 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 17 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: E2 17 00 50 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EB [08:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:59:32]wFMCommunicate OK [08:59:32]CreateOFDProtocolMessage done [08:59:32]OFDSenderStorePacket 165565 [08:59:32]StoreOFDPacket docnum=165565 [08:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 17 A6 04 01 3F 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 2F 00 00 00 F4 03 04 00 7E C6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 86 02 00 35 04 06 00 1B F5 07 B3 48 5E E7 17 2D 9E BE 91 AF 60 [08:59:32]CheckFolder [08:59:32]dirname=/storage/ofd_packets [08:59:32]CheckFolder done [08:59:32]ProducePacketName [08:59:32]name=ofd_packets/00165565 [08:59:32]NVStorageSaveData ofd_packets/00165565 [08:59:32]File name is /storage/ofd_packets/00165565 [08:59:32]Write 298 bytes [08:59:32]NVStorageSaveData done [08:59:32]OFDSenderStorePacket done [08:59:32]KKMCreateOFDPacket done [08:59:32]NVStorageSaveData kkm_last_timestamp [08:59:32]File name is /storage/kkm_last_timestamp [08:59:32]Write 4 bytes [08:59:32]NVStorageSaveData done [08:59:32]ExternCall_PrintAddStr [08:59:32]wPrintStart [08:59:32]Write to MH i2c: 01 00 00 51 C9 1A [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 07 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 07 00 51 C9 00 00 00 00 00 FF 0F 2F [08:59:32]RasterBufferAndPrint [08:59:32]line Счет N : (1)220124 [08:59:32]line ИНН: 02508201610067 [08:59:32]line Контрольно-Кассовый Чек [08:59:32]line ПРОДАЖА [08:59:32]line ТРК (МРК, ГНК) : 11 [08:59:32]line Товар: 2710194210 [08:59:32]line ДТ-К-5 [08:59:32]line 13.120 * 76.20 [08:59:32]line = 999.74 [08:59:32]line НДС 12% НСП 1% [08:59:32]line > о реализуемом товаре [08:59:32]line ОКРУГЛЕНИЕ: -0.74 [08:59:32]line ИТОГО: 999.00 [08:59:32]line Внесено: 1000.00 [08:59:32]line СДАЧА: 1.00 [08:59:32]line НСП 1% : 8.85 [08:59:32]line НДС 12% : 106.17 [08:59:32]line Наличными: 999.00 [08:59:32]line Безнал.: 0.00 [08:59:32]line Место: АЗС № 161 "Партнер Нефть" [08:59:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:59:32]line СНО: Общий режим [08:59:32]line Чек 47 20.10.2024 08:59 [08:59:32]line Смена: 534 ФФД: 1.0 [08:59:32]line ЗНМ: 0300000104 [08:59:32]line РНМ: 0000000000091764 [08:59:32]line Версия ККМ: 001 [08:59:32]line ФМ: 0000000000871759 [08:59:32]line ФД: 165565 [08:59:33]line ФПД: 30739210127454 [08:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085942&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165565&fm=30739210127454&tin=02508201610067®Number=0000000000091764&sum=99900 [08:59:33]OFD Sender: Processing packet 165565 [packets to send 48, broken 47] [08:59:33]ProducePacketName [08:59:33]name=ofd_packets/00165565 [08:59:33]OFD Sender: To server: pG, [08:59:33]CommunicateWithHost lk.salyk.kg:30040 [08:59:33]ConnectInit lk.salyk.kg [08:59:33]written 0, free lines is 4095 [08:59:33]Connected sock=10 [08:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 17 A6 04 01 3F 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 2F 00 00 00 F4 03 04 00 7E C6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 86 02 00 35 04 06 00 1B F5 07 B3 48 5E E7 17 2D 9E BE 91 AF 60 [08:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D 99 47 00 17 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 31 37 35 39 10 04 04 00 BD 86 02 00 F4 03 04 00 F0 6C 14 67 B6 04 01 00 00 26 8D 8A 3A 4A 38 0C 5F [08:59:33]CommunicateWithHost err = 0 [08:59:33]CheckOFDResponse [08:59:33]1017 (14) - 77093643461234 [08:59:33]1041 (16) - 0000000000871759 [08:59:33]1040 (4) - 165565 [08:59:33]1012 (4) - 20.10.2024 02:37 [08:59:33]1206 (1) - 0 [08:59:33]OFD Sender: Remove packet 165565 [08:59:33]ProducePacketName [08:59:33]name=ofd_packets/00165565 [08:59:33]NVStorageDeleteData [08:59:33]Write to MH i2c: 01 00 00 7C C9 45 [08:59:33]Write i2c OK [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: 01 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: 01 07 00 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: 01 07 00 7C C9 00 00 00 00 00 A3 0C FB [08:59:33]RasterBufferAndPrint [08:59:33]line [08:59:33]line [08:59:33]line [08:59:33]line [08:59:33]line [08:59:33]written 0, free lines is 3241 [08:59:33]MH_Cut [08:59:33]Write to MH i2c: D1 01 00 83 C9 01 1E [08:59:33]Write i2c OK [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: D1 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: D1 01 00 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: D1 01 00 83 C9 00 1D [08:59:33]Write to MH i2c: 01 00 00 84 C9 4D [08:59:33]Write i2c OK [08:59:33]MH_I2C_Read... [08:59:33]OFD Sender: No OFD packet to send [08:59:34]*** Cut start [08:59:34]*** Partial cut [08:59:34]*** CUTSNS_PIN = 1 [08:59:34]*** CUTSNS_PIN = 0 [08:59:34]*** Brake cut motor [08:59:34]Read from MH i2c: 01 [08:59:34]MH_I2C_Read... [08:59:34]*** Stop cut motor [08:59:34]*** Cut end [08:59:34]Read from MH i2c: 01 07 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: 01 07 00 84 C9 00 00 00 00 00 FF 0F 62 [08:59:35]process_action close_receipt done [08:59:35]requested_data is exist [08:59:35]produce_requested_data [08:59:35]requested_item fm.sn is exist - process it [08:59:35]wFMCommunicate request_size=4 [08:59:35]MH_SAM_APDU [08:59:35]CAPDU: 80 11 00 00 [08:59:35]Write to MH i2c: E2 08 00 85 C9 80 11 00 00 00 00 00 00 C8 [08:59:35]Write i2c OK [08:59:35]MH_I2C_Read... [08:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:35]Read from MH i2c: E2 [08:59:35]MH_I2C_Read... [08:59:35]Read from MH i2c: E2 17 00 [08:59:35]MH_I2C_Read... [08:59:35]Read from MH i2c: E2 17 00 85 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [08:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:59:35]wFMCommunicate OK [08:59:35]requested_item fd.num is exist - process it [08:59:35]SAM_PROTO_GetFieldsCounters [08:59:35]wFMCommunicate request_size=4 [08:59:35]MH_SAM_APDU [08:59:35]CAPDU: 80 13 00 00 [08:59:35]Write to MH i2c: E2 08 00 86 C9 80 13 00 00 00 00 00 00 CB [08:59:35]Write i2c OK [08:59:35]MH_I2C_Read... [08:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:35]Read from MH i2c: E2 [08:59:35]MH_I2C_Read... [08:59:35]Read from MH i2c: E2 62 00 [08:59:35]MH_I2C_Read... [08:59:35]Read from MH i2c: E2 62 00 86 C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [08:59:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:35]wFMCommunicate OK [08:59:35]SAM_PROTO_GetFieldsCounters done [08:59:35]requested_item shift.num is exist - process it [08:59:35]requested_item shift.opened is exist - process it [08:59:35]req_shift_opened [08:59:35]FM_GetShiftState [08:59:35]SAM_PROTO_GetShiftState [08:59:35]wFMCommunicate request_size=4 [08:59:35]MH_SAM_APDU [08:59:35]CAPDU: 80 13 01 00 [08:59:35]Write to MH i2c: E2 08 00 87 C9 80 13 01 00 00 00 00 00 CD [08:59:35]Write i2c OK [08:59:35]MH_I2C_Read... [08:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:35]Read from MH i2c: E2 [08:59:35]MH_I2C_Read... [08:59:35]Read from MH i2c: E2 0E 00 [08:59:35]MH_I2C_Read... [08:59:35]Read from MH i2c: E2 0E 00 87 C9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 15 [08:59:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [08:59:35]wFMCommunicate OK [08:59:35]SAM_PROTO_GetShiftState done [08:59:35]FM_GetShiftState done [08:59:35]req_shift_opened done [08:59:35]requested_item shift.open_date is exist - process it [08:59:35]req_shift_open_date [08:59:35]req_shift_open_date done [08:59:35]produce_requested_data done [08:59:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165565,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [08:59:35]process_action_free close_receipt [08:59:35]json_value_free [08:59:35]json_value_free done [08:59:35]process_json_proto returns [08:59:35]Send response to host [08:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165565,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [08:59:35]free response buf [08:59:35]execute_script done [08:59:35]execute_script returns [08:59:35]free content buf [08:59:35]Sock 7.Close socket [08:59:35]Sock 7.Thread stoped [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:16]accept exits with 9 [09:05:16]New connection [09:05:16]New thread 3066776932 created [09:05:16]Thread 3066920292 joined [09:05:16]Waiting for new connection... [09:05:16] Sock 9.Parse request [09:05:16]Sock 9.Check first char [09:05:16]Sock 9.First char is OK [09:05:16]request: POST /json_proto HTTP/1.0 [09:05:16]Method: POST [09:05:16]URL: /json_proto [09:05:16]Method is POST - this is cgi request [09:05:16]url: /json_proto [09:05:16]query_string will be loaded in cgi processing [09:05:16]execute_cgi json_proto POST (null) [09:05:16]execute_cgi path=json_proto method=POST [09:05:16]POST find Content-Length [09:05:16]Host: 172.17.53.195:8080 [09:05:16]Content-Length: 677 [09:05:16]Content-Type: application/json [09:05:16] [09:05:16]POST finish read [09:05:16]Found Content-Length = 677 [09:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:16]execute_script... [09: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)220125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:16]POST & json_proto [09:05:16]process_json_proto [09:05:16]json parsed OK: [09:05:16]protocol is kg_v1.0 [09:05:16]action value=close_receipt [09:05:16]process_action close_receipt [09:05:16]cmd_close_receipt [09:05:16]MH_GetDate [09:05:16]Write to MH i2c: F0 00 00 88 C9 40 [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: F0 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: F0 09 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: F0 09 00 88 C9 00 D7 C7 14 67 21 48 4A 65 7A [09:05:16]GetLastDocTimeStamp 1729414782 [09:05:16]current date 1729415127 [09:05:16]FM_GetShiftState [09:05:16]SAM_PROTO_GetShiftState [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 13 01 00 [09:05:16]Write to MH i2c: E2 08 00 89 C9 80 13 01 00 00 00 00 00 CF [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 0E 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 0E 00 89 C9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 17 [09:05:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:05:16]wFMCommunicate OK [09:05:16]SAM_PROTO_GetShiftState done [09:05:16]FM_GetShiftState done [09:05:16]opened in 1729384561 [09:05:16]opened+sec_in_day 1729470961 [09:05:16]quantity*price = 20003 [09:05:16]sum+1 = 20004 [09:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 48 20.10.2024 09:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165566 ФПД: 230973889660533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090527&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165566&fm=230973889660533&tin=02508201610067®Number=0000000000091764&sum=20000 [09:05:17]StoreToDocumentArchive [09:05:17]shift 534 fd 165566 [09:05:17]save to /storage/0534/doc_00165566 [09:05:17]save last doc name /storage/0534/doc_00165566 to /storage/kkm_last_doc_name [09:05:17]save OK [09:05:17]Clear old archive folders... [09:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:17]tlvbuf is 0169F710 [09:05:17]SAM_PROTO_ClearQueue [09:05:17]wFMCommunicate request_size=4 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 09 00 00 [09:05:17]Write to MH i2c: E2 08 00 96 C9 80 09 00 00 00 00 00 00 D1 [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 03 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 03 00 96 C9 00 90 00 D3 [09:05:17]RAPDU: 90 00 [09:05:17]wFMCommunicate OK [09:05:17]SAM_PROTO_ClearQueue done [09:05:17]KKMCreateOFDPacket [09:05:17]OFDProtocolAddRootSTLVToBuf [09:05:17]FM_MakeSignedData [09:05:17]FM_MakeSignedData [09:05:17]SAM_PROTO_SignData [09:05:17]wFMCommunicate request_size=4 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 0D 01 02 [09:05:17]Write to MH i2c: E2 08 00 97 C9 80 0D 01 02 00 00 00 00 D9 [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 03 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 03 00 97 C9 00 90 00 D4 [09:05:17]RAPDU: 90 00 [09:05:17]wFMCommunicate OK [09:05:17]wFMCommunicate request_size=255 [09:05:17]MH_SAM_APDU [09: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D7 C7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 86 02 00 35 04 06 00 D2 [09:05:17]Write to MH i2c: E2 02 01 98 C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D7 C7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 86 02 00 35 04 06 00 D2 00 00 AA [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 03 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 03 00 98 C9 00 90 00 D5 [09:05:17]RAPDU: 90 00 [09:05:17]wFMCommunicate OK [09:05:17]wFMCommunicate request_size=10 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 0D 02 02 05 11 CC A5 46 75 [09:05:17]Write to MH i2c: E2 0D 00 99 C9 80 0D 02 02 05 00 11 CC A5 46 75 00 00 23 [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 03 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 03 00 99 C9 00 90 00 D6 [09:05:17]RAPDU: 90 00 [09:05:17]wFMCommunicate OK [09:05:17]wFMCommunicate request_size=4 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 0D 03 02 [09:05:17]Write to MH i2c: E2 08 00 9A C9 80 0D 03 02 00 00 00 00 DE [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 0B 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 0B 00 9A C9 00 0E A5 37 93 47 21 37 6B 90 00 66 [09:05:17]RAPDU: 0E A5 37 93 47 21 37 6B 90 00 [09:05:17]wFMCommunicate OK [09:05:17]SAM_PROTO_SignData done [09:05:17]FM_MakeSignedData done [09:05:17]CreateOFDProtocolMessage [09:05:17]wFMCommunicate request_size=4 [09:05:17]MH_SAM_APDU [09:05:17]CAPDU: 80 11 00 00 [09:05:17]Write to MH i2c: E2 08 00 9B C9 80 11 00 00 00 00 00 00 DE [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:17]Read from MH i2c: E2 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 17 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: E2 17 00 9B C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [09:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:05:17]wFMCommunicate OK [09:05:17]CreateOFDProtocolMessage done [09:05:17]OFDSenderStorePacket 165566 [09:05:17]StoreOFDPacket docnum=165566 [09:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B 12 07 01 6B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D7 C7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 86 02 00 35 04 06 00 D2 11 CC A5 46 75 0E A5 37 93 47 21 37 6B [09:05:17]CheckFolder [09:05:17]dirname=/storage/ofd_packets [09:05:17]CheckFolder done [09:05:17]ProducePacketName [09:05:17]name=ofd_packets/00165566 [09:05:17]NVStorageSaveData ofd_packets/00165566 [09:05:17]File name is /storage/ofd_packets/00165566 [09:05:17]Write 301 bytes [09:05:17]NVStorageSaveData done [09:05:17]OFDSenderStorePacket done [09:05:17]KKMCreateOFDPacket done [09:05:17]NVStorageSaveData kkm_last_timestamp [09:05:17]File name is /storage/kkm_last_timestamp [09:05:17]Write 4 bytes [09:05:17]NVStorageSaveData done [09:05:17]ExternCall_PrintAddStr [09:05:17]wPrintStart [09:05:17]Write to MH i2c: 01 00 00 9C C9 65 [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 07 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 07 00 9C C9 00 00 00 00 00 FF 0F 7A [09:05:17]RasterBufferAndPrint [09:05:17]line Счет N : (1)220125 [09:05:17]line ИНН: 02508201610067 [09:05:17]line Контрольно-Кассовый Чек [09:05:17]line ПРОДАЖА [09:05:17]line ТРК (МРК, ГНК) : 23 [09:05:17]line Товар: 2710124130 [09:05:17]line Аи-92-К-5 [09:05:17]line 2.990 * 66.90 [09:05:17]line = 200.03 [09:05:17]line НДС 12% НСП 1% [09:05:17]line > о реализуемом товаре [09:05:17]line ОКРУГЛЕНИЕ: -0.03 [09:05:17]line ИТОГО: 200.00 [09:05:17]line Внесено: 200.00 [09:05:17]line СДАЧА: 0.00 [09:05:17]line НСП 1% : 1.77 [09:05:17]line НДС 12% : 21.24 [09:05:17]line Наличными: 200.00 [09:05:17]line Безнал.: 0.00 [09:05:17]line Место: АЗС № 161 "Партнер Нефть" [09:05:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:05:17]line СНО: Общий режим [09:05:17]line Чек 48 20.10.2024 09:05 [09:05:17]line Смена: 534 ФФД: 1.0 [09:05:17]line ЗНМ: 0300000104 [09:05:17]line РНМ: 0000000000091764 [09:05:17]line Версия ККМ: 001 [09:05:17]line ФМ: 0000000000871759 [09:05:17]line ФД: 165566 [09:05:17]line ФПД: 230973889660533 [09:05:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090527&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165566&fm=230973889660533&tin=02508201610067®Number=0000000000091764&sum=20000 [09:05:18]OFD Sender: Processing packet 165566 [packets to send 48, broken 47] [09:05:18]ProducePacketName [09:05:18]name=ofd_packets/00165566 [09:05:18]OFD Sender: To server: pG, [09:05:18]CommunicateWithHost lk.salyk.kg:30040 [09:05:18]ConnectInit lk.salyk.kg [09:05:18]written 0, free lines is 4095 [09:05:18]Connected sock=7 [09: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 31 37 35 39 0F 01 00 00 8B 12 07 01 6B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D7 C7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 86 02 00 35 04 06 00 D2 11 CC A5 46 75 0E A5 37 93 47 21 37 6B [09:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DB 4E 47 00 6E 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 86 02 00 F4 03 04 00 49 6E 14 67 B6 04 01 00 00 97 16 9C 16 39 C2 68 64 [09:05:18]CommunicateWithHost err = 0 [09:05:18]CheckOFDResponse [09:05:18]1017 (14) - 77093643461234 [09:05:18]1041 (16) - 0000000000871759 [09:05:18]1040 (4) - 165566 [09:05:18]1012 (4) - 20.10.2024 02:43 [09:05:18]1206 (1) - 0 [09:05:18]OFD Sender: Remove packet 165566 [09:05:18]ProducePacketName [09:05:18]name=ofd_packets/00165566 [09:05:18]NVStorageDeleteData [09:05:18]Write to MH i2c: 01 00 00 C7 C9 90 [09:05:18]Write i2c OK [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: 01 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: 01 07 00 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: 01 07 00 C7 C9 00 00 00 00 00 B2 0C 55 [09:05:18]RasterBufferAndPrint [09:05:18]line [09:05:18]line [09:05:18]line [09:05:18]line [09:05:18]line [09:05:18]written 0, free lines is 3257 [09:05:18]MH_Cut [09:05:18]Write to MH i2c: D1 01 00 CE C9 01 69 [09:05:18]Write i2c OK [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: D1 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: D1 01 00 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: D1 01 00 CE C9 00 68 [09:05:18]Write to MH i2c: 01 00 00 CF C9 98 [09:05:18]Write i2c OK [09:05:18]MH_I2C_Read... [09:05:18]OFD Sender: No OFD packet to send [09:05:19]*** Cut start [09:05:19]*** Partial cut [09:05:19]*** CUTSNS_PIN = 1 [09:05:19]*** CUTSNS_PIN = 0 [09:05:19]*** Brake cut motor [09:05:20]Read from MH i2c: 01 [09:05:20]MH_I2C_Read... [09:05:20]*** Stop cut motor [09:05:20]*** Cut end [09:05:20]Read from MH i2c: 01 07 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: 01 07 00 CF C9 00 00 00 00 00 FF 0F AD [09:05:20]process_action close_receipt done [09:05:20]requested_data is exist [09:05:20]produce_requested_data [09:05:20]requested_item fm.sn is exist - process it [09:05:20]wFMCommunicate request_size=4 [09:05:20]MH_SAM_APDU [09:05:20]CAPDU: 80 11 00 00 [09:05:20]Write to MH i2c: E2 08 00 D0 C9 80 11 00 00 00 00 00 00 13 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 17 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 17 00 D0 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [09:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:05:20]wFMCommunicate OK [09:05:20]requested_item fd.num is exist - process it [09:05:20]SAM_PROTO_GetFieldsCounters [09:05:20]wFMCommunicate request_size=4 [09:05:20]MH_SAM_APDU [09:05:20]CAPDU: 80 13 00 00 [09:05:20]Write to MH i2c: E2 08 00 D1 C9 80 13 00 00 00 00 00 00 16 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 62 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 62 00 D1 C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:20]wFMCommunicate OK [09:05:20]SAM_PROTO_GetFieldsCounters done [09:05:20]requested_item shift.num is exist - process it [09:05:20]requested_item shift.opened is exist - process it [09:05:20]req_shift_opened [09:05:20]FM_GetShiftState [09:05:20]SAM_PROTO_GetShiftState [09:05:20]wFMCommunicate request_size=4 [09:05:20]MH_SAM_APDU [09:05:20]CAPDU: 80 13 01 00 [09:05:20]Write to MH i2c: E2 08 00 D2 C9 80 13 01 00 00 00 00 00 18 [09:05:20]Write i2c OK [09:05:20]MH_I2C_Read... [09:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:20]Read from MH i2c: E2 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 0E 00 [09:05:20]MH_I2C_Read... [09:05:20]Read from MH i2c: E2 0E 00 D2 C9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 60 [09:05:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:05:20]wFMCommunicate OK [09:05:20]SAM_PROTO_GetShiftState done [09:05:20]FM_GetShiftState done [09:05:20]req_shift_opened done [09:05:20]requested_item shift.open_date is exist - process it [09:05:20]req_shift_open_date [09:05:20]req_shift_open_date done [09:05:20]produce_requested_data done [09:05:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165566,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:05:20]process_action_free close_receipt [09:05:20]json_value_free [09:05:20]json_value_free done [09:05:20]process_json_proto returns [09:05:20]Send response to host [09:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165566,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:05:20]free response buf [09:05:20]execute_script done [09:05:20]execute_script returns [09:05:20]free content buf [09:05:20]Sock 9.Close socket [09:05:20]Sock 9.Thread stoped [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:36]accept exits with 10 [09:12:36]New connection [09:12:36]New thread 3066920292 created [09:12:36]Thread 3066776932 joined [09:12:36]Waiting for new connection... [09:12:36] Sock 10.Parse request [09:12:36]Sock 10.Check first char [09:12:36]Sock 10.First char is OK [09:12:36]request: POST /json_proto HTTP/1.0 [09:12:36]Method: POST [09:12:36]URL: /json_proto [09:12:36]Method is POST - this is cgi request [09:12:36]url: /json_proto [09:12:36]query_string will be loaded in cgi processing [09:12:36]execute_cgi json_proto POST (null) [09:12:36]execute_cgi path=json_proto method=POST [09:12:36]POST find Content-Length [09:12:36]Host: 172.17.53.195:8080 [09:12:36]Content-Length: 769 [09:12:36]Content-Type: application/json [09:12:36] [09:12:36]POST finish read [09:12:36]Found Content-Length = 769 [09:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:36]execute_script... [09:12: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)220126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:36]POST & json_proto [09:12:36]process_json_proto [09:12:36]json parsed OK: [09:12:36]protocol is kg_v1.0 [09:12:36]action value=close_receipt [09:12:36]process_action close_receipt [09:12:36]cmd_close_receipt [09:12:36]MH_GetDate [09:12:36]Write to MH i2c: F0 00 00 D3 C9 8B [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: F0 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: F0 09 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: F0 09 00 D3 C9 00 8F C9 14 67 21 48 4A 65 7F [09:12:36]GetLastDocTimeStamp 1729415127 [09:12:36]current date 1729415567 [09:12:36]FM_GetShiftState [09:12:36]SAM_PROTO_GetShiftState [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 13 01 00 [09:12:36]Write to MH i2c: E2 08 00 D4 C9 80 13 01 00 00 00 00 00 1A [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0E 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0E 00 D4 C9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 62 [09:12:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:12:36]wFMCommunicate OK [09:12:36]SAM_PROTO_GetShiftState done [09:12:36]FM_GetShiftState done [09:12:36]opened in 1729384561 [09:12:36]opened+sec_in_day 1729470961 [09:12:36]quantity*price = 200031 [09:12:36]sum+1 = 200032 [09:12:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 49 20.10.2024 09:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165567 ФПД: 77809364719344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091247&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165567&fm=77809364719344&tin=02508201610067®Number=0000000000091764&sum=200031 [09:12:37]StoreToDocumentArchive [09:12:37]shift 534 fd 165567 [09:12:37]save to /storage/0534/doc_00165567 [09:12:37]save last doc name /storage/0534/doc_00165567 to /storage/kkm_last_doc_name [09:12:37]save OK [09:12:37]Clear old archive folders... [09:12:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:37]tlvbuf is 016163D0 [09:12:37]SAM_PROTO_ClearQueue [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 09 00 00 [09:12:37]Write to MH i2c: E2 08 00 E1 C9 80 09 00 00 00 00 00 00 1C [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 E1 C9 00 90 00 1E [09:12:37]RAPDU: 90 00 [09:12:37]wFMCommunicate OK [09:12:37]SAM_PROTO_ClearQueue done [09:12:37]KKMCreateOFDPacket [09:12:37]OFDProtocolAddRootSTLVToBuf [09:12:37]FM_MakeSignedData [09:12:37]FM_MakeSignedData [09:12:37]SAM_PROTO_SignData [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 0D 01 02 [09:12:37]Write to MH i2c: E2 08 00 E2 C9 80 0D 01 02 00 00 00 00 24 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 E2 C9 00 90 00 1F [09:12:37]RAPDU: 90 00 [09:12:37]wFMCommunicate OK [09:12:37]wFMCommunicate request_size=255 [09:12:37]MH_SAM_APDU [09:12: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8F C9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 86 02 00 35 04 06 00 46 [09:12:37]Write to MH i2c: E2 02 01 E3 C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8F C9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 86 02 00 35 04 06 00 46 00 00 E3 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 E3 C9 00 90 00 20 [09:12:37]RAPDU: 90 00 [09:12:37]wFMCommunicate OK [09:12:37]wFMCommunicate request_size=10 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 0D 02 02 05 C4 67 8B 56 F0 [09:12:37]Write to MH i2c: E2 0D 00 E4 C9 80 0D 02 02 05 00 C4 67 8B 56 F0 00 00 2D [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 E4 C9 00 90 00 21 [09:12:37]RAPDU: 90 00 [09:12:37]wFMCommunicate OK [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 0D 03 02 [09:12:37]Write to MH i2c: E2 08 00 E5 C9 80 0D 03 02 00 00 00 00 29 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:38]Read from MH i2c: E2 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 0B 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 0B 00 E5 C9 00 31 2B 9D 0E 38 1B 66 AB 90 00 95 [09:12:38]RAPDU: 31 2B 9D 0E 38 1B 66 AB 90 00 [09:12:38]wFMCommunicate OK [09:12:38]SAM_PROTO_SignData done [09:12:38]FM_MakeSignedData done [09:12:38]CreateOFDProtocolMessage [09:12:38]wFMCommunicate request_size=4 [09:12:38]MH_SAM_APDU [09:12:38]CAPDU: 80 11 00 00 [09:12:38]Write to MH i2c: E2 08 00 E6 C9 80 11 00 00 00 00 00 00 29 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:38]Read from MH i2c: E2 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 17 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 17 00 E6 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [09:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:12:38]wFMCommunicate OK [09:12:38]CreateOFDProtocolMessage done [09:12:38]OFDSenderStorePacket 165567 [09:12:38]StoreOFDPacket docnum=165567 [09:12:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E 11 07 01 24 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8F C9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 86 02 00 35 04 06 00 46 C4 67 8B 56 F0 31 2B 9D 0E 38 1B 66 AB [09:12:38]CheckFolder [09:12:38]dirname=/storage/ofd_packets [09:12:38]CheckFolder done [09:12:38]ProducePacketName [09:12:38]name=ofd_packets/00165567 [09:12:38]NVStorageSaveData ofd_packets/00165567 [09:12:38]File name is /storage/ofd_packets/00165567 [09:12:38]Write 301 bytes [09:12:38]NVStorageSaveData done [09:12:38]OFDSenderStorePacket done [09:12:38]KKMCreateOFDPacket done [09:12:38]NVStorageSaveData kkm_last_timestamp [09:12:38]File name is /storage/kkm_last_timestamp [09:12:38]Write 4 bytes [09:12:38]NVStorageSaveData done [09:12:38]ExternCall_PrintAddStr [09:12:38]wPrintStart [09:12:38]Write to MH i2c: 01 00 00 E7 C9 B0 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 07 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 07 00 E7 C9 00 00 00 00 00 FF 0F C5 [09:12:38]RasterBufferAndPrint [09:12:38]line Счет N : (1)220126 [09:12:38]line ИНН: 02508201610067 [09:12:38]line Контрольно-Кассовый Чек [09:12:38]line ПРОДАЖА [09:12:38]line ТРК (МРК, ГНК) : 13 [09:12:38]line Товар: 2710124130 [09:12:38]line Аи-92-К-5 [09:12:38]line 29.900 * 66.90 [09:12:38]line = 2000.31 [09:12:38]line НДС 12% НСП 1% [09:12:38]line > о реализуемом товаре [09:12:38]line ИТОГО: 2000.31 [09:12:38]line НСП 1% : 17.70 [09:12:38]line НДС 12% : 212.42 [09:12:38]line Наличными: 0.00 [09:12:38]line Безнал.: 2000.31 [09:12:38]line Место: АЗС № 161 "Партнер Нефть" [09:12:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:12:38]line СНО: Общий режим [09:12:38]line Чек 49 20.10.2024 09:12 [09:12:38]line Смена: 534 ФФД: 1.0 [09:12:38]line ЗНМ: 0300000104 [09:12:38]line РНМ: 0000000000091764 [09:12:38]line Версия ККМ: 001 [09:12:38]line Платежная система: Mbank [09:12:38]line ФМ: 0000000000871759 [09:12:38]line ФД: 165567 [09:12:38]line ФПД: 77809364719344 [09:12:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091247&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165567&fm=77809364719344&tin=02508201610067®Number=0000000000091764&sum=200031 [09:12:38]written 0, free lines is 4095 [09:12:38]OFD Sender: Processing packet 165567 [packets to send 48, broken 47] [09:12:38]ProducePacketName [09:12:38]name=ofd_packets/00165567 [09:12:38]OFD Sender: To server: pG, [09:12:38]CommunicateWithHost lk.salyk.kg:30040 [09:12:38]ConnectInit lk.salyk.kg [09:12:38]Connected sock=9 [09:12:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E 11 07 01 24 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8F C9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 86 02 00 35 04 06 00 46 C4 67 8B 56 F0 31 2B 9D 0E 38 1B 66 AB [09:12:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C5 BD 47 00 E7 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 31 37 35 39 10 04 04 00 BF 86 02 00 F4 03 04 00 02 70 14 67 B6 04 01 00 00 9A 50 3E 5F 56 0C 7F 24 [09:12:38]CommunicateWithHost err = 0 [09:12:38]CheckOFDResponse [09:12:38]1017 (14) - 77093643461234 [09:12:38]1041 (16) - 0000000000871759 [09:12:38]1040 (4) - 165567 [09:12:38]1012 (4) - 20.10.2024 02:50 [09:12:38]1206 (1) - 0 [09:12:38]OFD Sender: Remove packet 165567 [09:12:38]ProducePacketName [09:12:38]name=ofd_packets/00165567 [09:12:38]NVStorageDeleteData [09:12:38]Write to MH i2c: 01 00 00 10 CA DA [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 07 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 07 00 10 CA 00 00 00 00 00 ED 0C DA [09:12:38]RasterBufferAndPrint [09:12:38]line [09:12:38]line [09:12:38]line [09:12:38]line [09:12:38]line [09:12:38]written 0, free lines is 3316 [09:12:38]MH_Cut [09:12:38]Write to MH i2c: D1 01 00 17 CA 01 B3 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: D1 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: D1 01 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: D1 01 00 17 CA 00 B2 [09:12:38]Write to MH i2c: 01 00 00 18 CA E2 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]OFD Sender: No OFD packet to send [09:12:39]*** Cut start [09:12:39]*** Partial cut [09:12:39]*** CUTSNS_PIN = 1 [09:12:39]*** CUTSNS_PIN = 0 [09:12:39]*** Brake cut motor [09:12:39]Read from MH i2c: 01 [09:12:39]MH_I2C_Read... [09:12:39]*** Stop cut motor [09:12:39]*** Cut end [09:12:39]Read from MH i2c: 01 07 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: 01 07 00 18 CA 00 00 00 00 00 FF 0F F7 [09:12:40]process_action close_receipt done [09:12:40]requested_data is exist [09:12:40]produce_requested_data [09:12:40]requested_item fm.sn is exist - process it [09:12:40]wFMCommunicate request_size=4 [09:12:40]MH_SAM_APDU [09:12:40]CAPDU: 80 11 00 00 [09:12:40]Write to MH i2c: E2 08 00 19 CA 80 11 00 00 00 00 00 00 5D [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:40]Read from MH i2c: E2 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 17 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 17 00 19 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [09:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:12:40]wFMCommunicate OK [09:12:40]requested_item fd.num is exist - process it [09:12:40]SAM_PROTO_GetFieldsCounters [09:12:40]wFMCommunicate request_size=4 [09:12:40]MH_SAM_APDU [09:12:40]CAPDU: 80 13 00 00 [09:12:40]Write to MH i2c: E2 08 00 1A CA 80 13 00 00 00 00 00 00 60 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:40]Read from MH i2c: E2 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 62 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 62 00 1A CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [09:12:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:40]wFMCommunicate OK [09:12:40]SAM_PROTO_GetFieldsCounters done [09:12:40]requested_item shift.num is exist - process it [09:12:40]requested_item shift.opened is exist - process it [09:12:40]req_shift_opened [09:12:40]FM_GetShiftState [09:12:40]SAM_PROTO_GetShiftState [09:12:40]wFMCommunicate request_size=4 [09:12:40]MH_SAM_APDU [09:12:40]CAPDU: 80 13 01 00 [09:12:40]Write to MH i2c: E2 08 00 1B CA 80 13 01 00 00 00 00 00 62 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:40]Read from MH i2c: E2 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 0E 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 0E 00 1B CA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AA [09:12:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:12:40]wFMCommunicate OK [09:12:40]SAM_PROTO_GetShiftState done [09:12:40]FM_GetShiftState done [09:12:40]req_shift_opened done [09:12:40]requested_item shift.open_date is exist - process it [09:12:40]req_shift_open_date [09:12:40]req_shift_open_date done [09:12:40]produce_requested_data done [09:12:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165567,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:12:40]process_action_free close_receipt [09:12:40]json_value_free [09:12:40]json_value_free done [09:12:40]process_json_proto returns [09:12:40]Send response to host [09:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165567,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:12:40]free response buf [09:12:40]execute_script done [09:12:40]execute_script returns [09:12:40]free content buf [09:12:40]Sock 10.Close socket [09:12:40]Sock 10.Thread stoped [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:40]accept exits with 7 [09:14:40]New connection [09:14:40]New thread 3066776932 created [09:14:40]Thread 3066920292 joined [09:14:40]Waiting for new connection... [09:14:40] Sock 7.Parse request [09:14:40]Sock 7.Check first char [09:14:40]Sock 7.First char is OK [09:14:40]request: POST /json_proto HTTP/1.0 [09:14:40]Method: POST [09:14:40]URL: /json_proto [09:14:40]Method is POST - this is cgi request [09:14:40]url: /json_proto [09:14:40]query_string will be loaded in cgi processing [09:14:40]execute_cgi json_proto POST (null) [09:14:40]execute_cgi path=json_proto method=POST [09:14:40]POST find Content-Length [09:14:40]Host: 172.17.53.195:8080 [09:14:40]Content-Length: 674 [09:14:40]Content-Type: application/json [09:14:40] [09:14:40]POST finish read [09:14:40]Found Content-Length = 674 [09:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:14:40]execute_script... [09:14: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)220127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:14:40]POST & json_proto [09:14:40]process_json_proto [09:14:40]json parsed OK: [09:14:40]protocol is kg_v1.0 [09:14:40]action value=close_receipt [09:14:40]process_action close_receipt [09:14:40]cmd_close_receipt [09:14:40]MH_GetDate [09:14:40]Write to MH i2c: F0 00 00 1C CA D5 [09:14:40]Write i2c OK [09:14:40]MH_I2C_Read... [09:14:40]Read from MH i2c: F0 [09:14:40]MH_I2C_Read... [09:14:40]Read from MH i2c: F0 09 00 [09:14:40]MH_I2C_Read... [09:14:40]Read from MH i2c: F0 09 00 1C CA 00 0C CA 14 67 21 48 4A 65 47 [09:14:40]GetLastDocTimeStamp 1729415567 [09:14:40]current date 1729415692 [09:14:40]FM_GetShiftState [09:14:40]SAM_PROTO_GetShiftState [09:14:40]wFMCommunicate request_size=4 [09:14:40]MH_SAM_APDU [09:14:40]CAPDU: 80 13 01 00 [09:14:40]Write to MH i2c: E2 08 00 1D CA 80 13 01 00 00 00 00 00 64 [09:14:40]Write i2c OK [09:14:40]MH_I2C_Read... [09:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:40]Read from MH i2c: E2 [09:14:40]MH_I2C_Read... [09:14:40]Read from MH i2c: E2 0E 00 [09:14:40]MH_I2C_Read... [09:14:40]Read from MH i2c: E2 0E 00 1D CA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AC [09:14:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:14:40]wFMCommunicate OK [09:14:40]SAM_PROTO_GetShiftState done [09:14:40]FM_GetShiftState done [09:14:40]opened in 1729384561 [09:14:40]opened+sec_in_day 1729470961 [09:14:40]quantity*price = 50063 [09:14:40]sum+1 = 50064 [09:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 50 20.10.2024 09:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165568 ФПД: 145218241352457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165568&fm=145218241352457&tin=02508201610067®Number=0000000000091764&sum=50000 [09:14:42]StoreToDocumentArchive [09:14:42]shift 534 fd 165568 [09:14:42]save to /storage/0534/doc_00165568 [09:14:42]save last doc name /storage/0534/doc_00165568 to /storage/kkm_last_doc_name [09:14:42]save OK [09:14:42]Clear old archive folders... [09:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:14:42]tlvbuf is 01839E00 [09:14:42]SAM_PROTO_ClearQueue [09:14:42]wFMCommunicate request_size=4 [09:14:42]MH_SAM_APDU [09:14:42]CAPDU: 80 09 00 00 [09:14:42]Write to MH i2c: E2 08 00 2A CA 80 09 00 00 00 00 00 00 66 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:42]Read from MH i2c: E2 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 2A CA 00 90 00 68 [09:14:42]RAPDU: 90 00 [09:14:42]wFMCommunicate OK [09:14:42]SAM_PROTO_ClearQueue done [09:14:42]KKMCreateOFDPacket [09:14:42]OFDProtocolAddRootSTLVToBuf [09:14:42]FM_MakeSignedData [09:14:42]FM_MakeSignedData [09:14:42]SAM_PROTO_SignData [09:14:42]wFMCommunicate request_size=4 [09:14:42]MH_SAM_APDU [09:14:42]CAPDU: 80 0D 01 02 [09:14:42]Write to MH i2c: E2 08 00 2B CA 80 0D 01 02 00 00 00 00 6E [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:42]Read from MH i2c: E2 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 2B CA 00 90 00 69 [09:14:42]RAPDU: 90 00 [09:14:42]wFMCommunicate OK [09:14:42]wFMCommunicate request_size=255 [09:14:42]MH_SAM_APDU [09:14:42]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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 0C CA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 86 02 00 35 04 06 00 84 13 41 B0 [09:14:42]Write to MH i2c: E2 02 01 2C CA 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 0C CA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 86 02 00 35 04 06 00 84 13 41 B0 00 00 ED [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:42]Read from MH i2c: E2 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 2C CA 00 90 00 6A [09:14:42]RAPDU: 90 00 [09:14:42]wFMCommunicate OK [09:14:42]wFMCommunicate request_size=7 [09:14:42]MH_SAM_APDU [09:14:42]CAPDU: 80 0D 02 02 02 D3 09 [09:14:42]Write to MH i2c: E2 0A 00 2D CA 80 0D 02 02 02 00 D3 09 00 00 51 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:42]Read from MH i2c: E2 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 2D CA 00 90 00 6B [09:14:42]RAPDU: 90 00 [09:14:42]wFMCommunicate OK [09:14:42]wFMCommunicate request_size=4 [09:14:42]MH_SAM_APDU [09:14:42]CAPDU: 80 0D 03 02 [09:14:42]Write to MH i2c: E2 08 00 2E CA 80 0D 03 02 00 00 00 00 73 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:42]Read from MH i2c: E2 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 0B 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 0B 00 2E CA 00 8B C5 0C 85 EA 41 32 DC 90 00 8E [09:14:42]RAPDU: 8B C5 0C 85 EA 41 32 DC 90 00 [09:14:42]wFMCommunicate OK [09:14:42]SAM_PROTO_SignData done [09:14:42]FM_MakeSignedData done [09:14:42]CreateOFDProtocolMessage [09:14:42]wFMCommunicate request_size=4 [09:14:42]MH_SAM_APDU [09:14:42]CAPDU: 80 11 00 00 [09:14:42]Write to MH i2c: E2 08 00 2F CA 80 11 00 00 00 00 00 00 73 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:42]Read from MH i2c: E2 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 17 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 17 00 2F CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [09:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:14:42]wFMCommunicate OK [09:14:42]CreateOFDProtocolMessage done [09:14:42]OFDSenderStorePacket 165568 [09:14:42]StoreOFDPacket docnum=165568 [09:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9B DF 04 01 30 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 0C CA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 86 02 00 35 04 06 00 84 13 41 B0 D3 09 8B C5 0C 85 EA 41 32 DC [09:14:42]CheckFolder [09:14:42]dirname=/storage/ofd_packets [09:14:42]CheckFolder done [09:14:42]ProducePacketName [09:14:42]name=ofd_packets/00165568 [09:14:42]NVStorageSaveData ofd_packets/00165568 [09:14:42]File name is /storage/ofd_packets/00165568 [09:14:42]Write 298 bytes [09:14:42]NVStorageSaveData done [09:14:42]OFDSenderStorePacket done [09:14:42]KKMCreateOFDPacket done [09:14:42]NVStorageSaveData kkm_last_timestamp [09:14:42]File name is /storage/kkm_last_timestamp [09:14:42]Write 4 bytes [09:14:42]NVStorageSaveData done [09:14:42]ExternCall_PrintAddStr [09:14:42]wPrintStart [09:14:42]Write to MH i2c: 01 00 00 30 CA FA [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: 01 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: 01 07 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: 01 07 00 30 CA 00 00 00 00 00 FF 0F 0F [09:14:42]RasterBufferAndPrint [09:14:42]line Счет N : (1)220127 [09:14:42]line ИНН: 02508201610067 [09:14:42]line Контрольно-Кассовый Чек [09:14:42]line ПРОДАЖА [09:14:42]line ТРК (МРК, ГНК) : 31 [09:14:42]line Товар: 2710194210 [09:14:42]line ДТ-К-5 [09:14:42]line 6.570 * 76.20 [09:14:42]line = 500.63 [09:14:42]line НДС 12% НСП 1% [09:14:42]line > о реализуемом товаре [09:14:42]line ОКРУГЛЕНИЕ: -0.63 [09:14:42]line ИТОГО: 500.00 [09:14:42]line Внесено: 500.00 [09:14:42]line СДАЧА: 0.00 [09:14:42]line НСП 1% : 4.43 [09:14:42]line НДС 12% : 53.16 [09:14:42]line Наличными: 500.00 [09:14:42]line Безнал.: 0.00 [09:14:42]line Место: АЗС № 161 "Партнер Нефть" [09:14:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:14:42]line СНО: Общий режим [09:14:42]line Чек 50 20.10.2024 09:14 [09:14:42]line Смена: 534 ФФД: 1.0 [09:14:42]line ЗНМ: 0300000104 [09:14:42]line РНМ: 0000000000091764 [09:14:42]line Версия ККМ: 001 [09:14:42]line ФМ: 0000000000871759 [09:14:42]line ФД: 165568 [09:14:42]line ФПД: 145218241352457 [09:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165568&fm=145218241352457&tin=02508201610067®Number=0000000000091764&sum=50000 [09:14:42]OFD Sender: Processing packet 165568 [packets to send 48, broken 47] [09:14:42]ProducePacketName [09:14:42]name=ofd_packets/00165568 [09:14:42]OFD Sender: To server: pG, [09:14:42]CommunicateWithHost lk.salyk.kg:30040 [09:14:42]ConnectInit lk.salyk.kg [09:14:42]written 0, free lines is 4095 [09:14:43]Connected sock=10 [09:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9B DF 04 01 30 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 0C CA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 86 02 00 35 04 06 00 84 13 41 B0 D3 09 8B C5 0C 85 EA 41 32 DC [09:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BA 16 47 00 73 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 31 37 35 39 10 04 04 00 C0 86 02 00 F4 03 04 00 7E 70 14 67 B6 04 01 00 00 09 1B B1 09 17 B7 AA 3E [09:14:43]CommunicateWithHost err = 0 [09:14:43]CheckOFDResponse [09:14:43]1017 (14) - 77093643461234 [09:14:43]1041 (16) - 0000000000871759 [09:14:43]1040 (4) - 165568 [09:14:43]1012 (4) - 20.10.2024 02:52 [09:14:43]1206 (1) - 0 [09:14:43]OFD Sender: Remove packet 165568 [09:14:43]ProducePacketName [09:14:43]name=ofd_packets/00165568 [09:14:43]NVStorageDeleteData [09:14:43]Write to MH i2c: 01 00 00 5B CA 25 [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: 01 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: 01 07 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: 01 07 00 5B CA 00 00 00 00 00 AF 0C E7 [09:14:43]RasterBufferAndPrint [09:14:43]line [09:14:43]line [09:14:43]line [09:14:43]line [09:14:43]line [09:14:43]written 0, free lines is 3252 [09:14:43]MH_Cut [09:14:43]Write to MH i2c: D1 01 00 62 CA 01 FE [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: D1 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: D1 01 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: D1 01 00 62 CA 00 FD [09:14:43]Write to MH i2c: 01 00 00 63 CA 2D [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]OFD Sender: No OFD packet to send [09:14:44]*** Cut start [09:14:44]*** Partial cut [09:14:44]*** CUTSNS_PIN = 1 [09:14:44]*** CUTSNS_PIN = 0 [09:14:44]*** Brake cut motor [09:14:44]Read from MH i2c: 01 [09:14:44]MH_I2C_Read... [09:14:44]*** Stop cut motor [09:14:44]*** Cut end [09:14:44]Read from MH i2c: 01 07 00 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: 01 07 00 63 CA 00 00 00 00 00 FF 0F 42 [09:14:44]process_action close_receipt done [09:14:44]requested_data is exist [09:14:44]produce_requested_data [09:14:44]requested_item fm.sn is exist - process it [09:14:44]wFMCommunicate request_size=4 [09:14:44]MH_SAM_APDU [09:14:44]CAPDU: 80 11 00 00 [09:14:44]Write to MH i2c: E2 08 00 64 CA 80 11 00 00 00 00 00 00 A8 [09:14:44]Write i2c OK [09:14:44]MH_I2C_Read... [09:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:44]Read from MH i2c: E2 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: E2 17 00 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: E2 17 00 64 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [09:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:14:44]wFMCommunicate OK [09:14:44]requested_item fd.num is exist - process it [09:14:44]SAM_PROTO_GetFieldsCounters [09:14:44]wFMCommunicate request_size=4 [09:14:44]MH_SAM_APDU [09:14:44]CAPDU: 80 13 00 00 [09:14:44]Write to MH i2c: E2 08 00 65 CA 80 13 00 00 00 00 00 00 AB [09:14:44]Write i2c OK [09:14:44]MH_I2C_Read... [09:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:45]Read from MH i2c: E2 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 62 00 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 62 00 65 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:45]wFMCommunicate OK [09:14:45]SAM_PROTO_GetFieldsCounters done [09:14:45]requested_item shift.num is exist - process it [09:14:45]requested_item shift.opened is exist - process it [09:14:45]req_shift_opened [09:14:45]FM_GetShiftState [09:14:45]SAM_PROTO_GetShiftState [09:14:45]wFMCommunicate request_size=4 [09:14:45]MH_SAM_APDU [09:14:45]CAPDU: 80 13 01 00 [09:14:45]Write to MH i2c: E2 08 00 66 CA 80 13 01 00 00 00 00 00 AD [09:14:45]Write i2c OK [09:14:45]MH_I2C_Read... [09:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:45]Read from MH i2c: E2 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 0E 00 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 0E 00 66 CA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F5 [09:14:45]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:14:45]wFMCommunicate OK [09:14:45]SAM_PROTO_GetShiftState done [09:14:45]FM_GetShiftState done [09:14:45]req_shift_opened done [09:14:45]requested_item shift.open_date is exist - process it [09:14:45]req_shift_open_date [09:14:45]req_shift_open_date done [09:14:45]produce_requested_data done [09:14:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165568,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:14:45]process_action_free close_receipt [09:14:45]json_value_free [09:14:45]json_value_free done [09:14:45]process_json_proto returns [09:14:45]Send response to host [09:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165568,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:14:45]free response buf [09:14:45]execute_script done [09:14:45]execute_script returns [09:14:45]free content buf [09:14:45]Sock 7.Close socket [09:14:45]Sock 7.Thread stoped [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:32]accept exits with 9 [09:21:32]New connection [09:21:32]New thread 3066920292 created [09:21:32]Thread 3066776932 joined [09:21:32]Waiting for new connection... [09:21:32] Sock 9.Parse request [09:21:32]Sock 9.Check first char [09:21:32]Sock 9.First char is OK [09:21:32]request: POST /json_proto HTTP/1.0 [09:21:32]Method: POST [09:21:32]URL: /json_proto [09:21:32]Method is POST - this is cgi request [09:21:32]url: /json_proto [09:21:32]query_string will be loaded in cgi processing [09:21:32]execute_cgi json_proto POST (null) [09:21:32]execute_cgi path=json_proto method=POST [09:21:32]POST find Content-Length [09:21:32]Host: 172.17.53.195:8080 [09:21:32]Content-Length: 682 [09:21:32]Content-Type: application/json [09:21:32] [09:21:32]POST finish read [09:21:32]Found Content-Length = 682 [09:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:32]execute_script... [09: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)220128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:32]POST & json_proto [09:21:32]process_json_proto [09:21:32]json parsed OK: [09:21:32]protocol is kg_v1.0 [09:21:32]action value=close_receipt [09:21:32]process_action close_receipt [09:21:32]cmd_close_receipt [09:21:32]MH_GetDate [09:21:32]Write to MH i2c: F0 00 00 67 CA 20 [09:21:32]Write i2c OK [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: F0 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: F0 09 00 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: F0 09 00 67 CA 00 A8 CB 14 67 21 48 4A 65 2F [09:21:32]GetLastDocTimeStamp 1729415692 [09:21:32]current date 1729416104 [09:21:32]FM_GetShiftState [09:21:32]SAM_PROTO_GetShiftState [09:21:32]wFMCommunicate request_size=4 [09:21:32]MH_SAM_APDU [09:21:32]CAPDU: 80 13 01 00 [09:21:32]Write to MH i2c: E2 08 00 68 CA 80 13 01 00 00 00 00 00 AF [09:21:32]Write i2c OK [09:21:32]MH_I2C_Read... [09:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:32]Read from MH i2c: E2 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: E2 0E 00 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: E2 0E 00 68 CA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F7 [09:21:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:21:32]wFMCommunicate OK [09:21:32]SAM_PROTO_GetShiftState done [09:21:32]FM_GetShiftState done [09:21:32]opened in 1729384561 [09:21:32]opened+sec_in_day 1729470961 [09:21:32]quantity*price = 100015 [09:21:32]sum+1 = 100017 [09:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 51 20.10.2024 09:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165569 ФПД: 170089454907981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092144&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165569&fm=170089454907981&tin=02508201610067®Number=0000000000091764&sum=100000 [09:21:33]StoreToDocumentArchive [09:21:33]shift 534 fd 165569 [09:21:33]save to /storage/0534/doc_00165569 [09:21:33]save last doc name /storage/0534/doc_00165569 to /storage/kkm_last_doc_name [09:21:33]save OK [09:21:33]Clear old archive folders... [09:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:33]tlvbuf is 01484D30 [09:21:33]SAM_PROTO_ClearQueue [09:21:33]wFMCommunicate request_size=4 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 09 00 00 [09:21:33]Write to MH i2c: E2 08 00 75 CA 80 09 00 00 00 00 00 00 B1 [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 75 CA 00 90 00 B3 [09:21:33]RAPDU: 90 00 [09:21:33]wFMCommunicate OK [09:21:33]SAM_PROTO_ClearQueue done [09:21:33]KKMCreateOFDPacket [09:21:33]OFDProtocolAddRootSTLVToBuf [09:21:33]FM_MakeSignedData [09:21:33]FM_MakeSignedData [09:21:33]SAM_PROTO_SignData [09:21:33]wFMCommunicate request_size=4 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 0D 01 02 [09:21:33]Write to MH i2c: E2 08 00 76 CA 80 0D 01 02 00 00 00 00 B9 [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 76 CA 00 90 00 B4 [09:21:33]RAPDU: 90 00 [09:21:33]wFMCommunicate OK [09:21:33]wFMCommunicate request_size=255 [09:21:33]MH_SAM_APDU [09: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 CB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 86 02 00 35 04 06 00 9A [09:21:33]Write to MH i2c: E2 02 01 77 CA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 CB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 86 02 00 35 04 06 00 9A 00 00 65 [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:34]OFD Sender: No OFD packet to send [09:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 77 CA 00 90 00 B5 [09:21:34]RAPDU: 90 00 [09:21:34]wFMCommunicate OK [09:21:34]wFMCommunicate request_size=10 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 0D 02 02 05 B2 09 8A 32 4D [09:21:34]Write to MH i2c: E2 0D 00 78 CA 80 0D 02 02 05 00 B2 09 8A 32 4D 00 00 8A [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 78 CA 00 90 00 B6 [09:21:34]RAPDU: 90 00 [09:21:34]wFMCommunicate OK [09:21:34]wFMCommunicate request_size=4 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 0D 03 02 [09:21:34]Write to MH i2c: E2 08 00 79 CA 80 0D 03 02 00 00 00 00 BE [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 0B 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 0B 00 79 CA 00 06 67 DB E4 9F 84 58 27 90 00 8D [09:21:34]RAPDU: 06 67 DB E4 9F 84 58 27 90 00 [09:21:34]wFMCommunicate OK [09:21:34]SAM_PROTO_SignData done [09:21:34]FM_MakeSignedData done [09:21:34]CreateOFDProtocolMessage [09:21:34]wFMCommunicate request_size=4 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 11 00 00 [09:21:34]Write to MH i2c: E2 08 00 7A CA 80 11 00 00 00 00 00 00 BE [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 17 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 17 00 7A CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [09:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:21:34]wFMCommunicate OK [09:21:34]CreateOFDProtocolMessage done [09:21:34]OFDSenderStorePacket 165569 [09:21:34]StoreOFDPacket docnum=165569 [09:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 B9 07 01 78 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 CB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 86 02 00 35 04 06 00 9A B2 09 8A 32 4D 06 67 DB E4 9F 84 58 27 [09:21:34]CheckFolder [09:21:34]dirname=/storage/ofd_packets [09:21:34]CheckFolder done [09:21:34]ProducePacketName [09:21:34]name=ofd_packets/00165569 [09:21:34]NVStorageSaveData ofd_packets/00165569 [09:21:34]File name is /storage/ofd_packets/00165569 [09:21:34]Write 301 bytes [09:21:34]NVStorageSaveData done [09:21:34]OFDSenderStorePacket done [09:21:34]KKMCreateOFDPacket done [09:21:34]NVStorageSaveData kkm_last_timestamp [09:21:34]File name is /storage/kkm_last_timestamp [09:21:34]Write 4 bytes [09:21:34]NVStorageSaveData done [09:21:34]ExternCall_PrintAddStr [09:21:34]wPrintStart [09:21:34]Write to MH i2c: 01 00 00 7B CA 45 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 07 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 07 00 7B CA 00 00 00 00 00 FF 0F 5A [09:21:34]RasterBufferAndPrint [09:21:34]line Счет N : (1)220128 [09:21:34]line ИНН: 02508201610067 [09:21:34]line Контрольно-Кассовый Чек [09:21:34]line ПРОДАЖА [09:21:34]line ТРК (МРК, ГНК) : 33 [09:21:34]line Товар: 2710124130 [09:21:34]line Аи-92-К-5 [09:21:34]line 14.950 * 66.90 [09:21:34]line = 1000.16 [09:21:34]line НДС 12% НСП 1% [09:21:34]line > о реализуемом товаре [09:21:34]line ОКРУГЛЕНИЕ: -0.16 [09:21:34]line ИТОГО: 1000.00 [09:21:34]line Внесено: 1000.00 [09:21:34]line СДАЧА: 0.00 [09:21:34]line НСП 1% : 8.85 [09:21:34]line НДС 12% : 106.21 [09:21:34]line Наличными: 1000.00 [09:21:34]line Безнал.: 0.00 [09:21:34]line Место: АЗС № 161 "Партнер Нефть" [09:21:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:21:34]line СНО: Общий режим [09:21:34]line Чек 51 20.10.2024 09:21 [09:21:34]line Смена: 534 ФФД: 1.0 [09:21:34]line ЗНМ: 0300000104 [09:21:34]line РНМ: 0000000000091764 [09:21:34]line Версия ККМ: 001 [09:21:34]line ФМ: 0000000000871759 [09:21:34]line ФД: 165569 [09:21:34]line ФПД: 170089454907981 [09:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092144&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165569&fm=170089454907981&tin=02508201610067®Number=0000000000091764&sum=100000 [09:21:34]written 0, free lines is 4095 [09:21:34]OFD Sender: Processing packet 165569 [packets to send 48, broken 47] [09:21:34]ProducePacketName [09:21:34]name=ofd_packets/00165569 [09:21:34]OFD Sender: To server: pG, [09:21:34]CommunicateWithHost lk.salyk.kg:30040 [09:21:34]ConnectInit lk.salyk.kg [09:21:34]Connected sock=10 [09: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 31 37 35 39 0F 01 00 00 B3 B9 07 01 78 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 CB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 86 02 00 35 04 06 00 9A B2 09 8A 32 4D 06 67 DB E4 9F 84 58 27 [09:21:34]Write to MH i2c: 01 00 00 A6 CA 70 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 07 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 07 00 A6 CA 00 00 00 00 00 C6 0C 49 [09:21:34]RasterBufferAndPrint [09:21:34]line [09:21:34]line [09:21:34]line [09:21:34]line [09:21:34]line [09:21:34]written 0, free lines is 3276 [09:21:34]MH_Cut [09:21:34]Write to MH i2c: D1 01 00 AD CA 01 49 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: D1 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: D1 01 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: D1 01 00 AD CA 00 48 [09:21:34]Write to MH i2c: 01 00 00 AE CA 78 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 E4 47 00 91 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 86 02 00 F4 03 04 00 1A 72 14 67 B6 04 01 00 00 6A 6F 40 D9 72 81 07 08 [09:21:35]CommunicateWithHost err = 0 [09:21:35]CheckOFDResponse [09:21:35]1017 (14) - 77093643461234 [09:21:35]1041 (16) - 0000000000871759 [09:21:35]1040 (4) - 165569 [09:21:35]1012 (4) - 20.10.2024 02:59 [09:21:35]1206 (1) - 0 [09:21:35]OFD Sender: Remove packet 165569 [09:21:35]ProducePacketName [09:21:35]name=ofd_packets/00165569 [09:21:35]NVStorageDeleteData [09:21:35]OFD Sender: No OFD packet to send [09:21:35]*** Cut start [09:21:35]*** Partial cut [09:21:35]*** CUTSNS_PIN = 1 [09:21:35]*** CUTSNS_PIN = 0 [09:21:35]*** Brake cut motor [09:21:36]Read from MH i2c: 01 [09:21:36]MH_I2C_Read... [09:21:36]*** Stop cut motor [09:21:36]*** Cut end [09:21:36]Read from MH i2c: 01 07 00 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: 01 07 00 AE CA 00 00 00 00 00 FF 0F 8D [09:21:36]process_action close_receipt done [09:21:36]requested_data is exist [09:21:36]produce_requested_data [09:21:36]requested_item fm.sn is exist - process it [09:21:36]wFMCommunicate request_size=4 [09:21:36]MH_SAM_APDU [09:21:36]CAPDU: 80 11 00 00 [09:21:36]Write to MH i2c: E2 08 00 AF CA 80 11 00 00 00 00 00 00 F3 [09:21:36]Write i2c OK [09:21:36]MH_I2C_Read... [09:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:36]Read from MH i2c: E2 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 17 00 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 17 00 AF CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [09:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:21:36]wFMCommunicate OK [09:21:36]requested_item fd.num is exist - process it [09:21:36]SAM_PROTO_GetFieldsCounters [09:21:36]wFMCommunicate request_size=4 [09:21:36]MH_SAM_APDU [09:21:36]CAPDU: 80 13 00 00 [09:21:36]Write to MH i2c: E2 08 00 B0 CA 80 13 00 00 00 00 00 00 F6 [09:21:36]Write i2c OK [09:21:36]MH_I2C_Read... [09:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:36]Read from MH i2c: E2 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 62 00 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 62 00 B0 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:21: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:36]wFMCommunicate OK [09:21:36]SAM_PROTO_GetFieldsCounters done [09:21:36]requested_item shift.num is exist - process it [09:21:36]requested_item shift.opened is exist - process it [09:21:36]req_shift_opened [09:21:36]FM_GetShiftState [09:21:36]SAM_PROTO_GetShiftState [09:21:36]wFMCommunicate request_size=4 [09:21:36]MH_SAM_APDU [09:21:36]CAPDU: 80 13 01 00 [09:21:36]Write to MH i2c: E2 08 00 B1 CA 80 13 01 00 00 00 00 00 F8 [09:21:36]Write i2c OK [09:21:36]MH_I2C_Read... [09:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:36]Read from MH i2c: E2 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 0E 00 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 0E 00 B1 CA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 40 [09:21:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:21:36]wFMCommunicate OK [09:21:36]SAM_PROTO_GetShiftState done [09:21:36]FM_GetShiftState done [09:21:36]req_shift_opened done [09:21:36]requested_item shift.open_date is exist - process it [09:21:36]req_shift_open_date [09:21:36]req_shift_open_date done [09:21:36]produce_requested_data done [09:21:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165569,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:21:36]process_action_free close_receipt [09:21:36]json_value_free [09:21:36]json_value_free done [09:21:36]process_json_proto returns [09:21:36]Send response to host [09:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165569,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:21:36]free response buf [09:21:36]execute_script done [09:21:36]execute_script returns [09:21:36]free content buf [09:21:36]Sock 9.Close socket [09:21:36]Sock 9.Thread stoped [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]accept exits with 7 [09:24:05]New connection [09:24:05]New thread 3066776932 created [09:24:05]Thread 3066920292 joined [09:24:05]Waiting for new connection... [09:24:05] Sock 7.Parse request [09:24:05]Sock 7.Check first char [09:24:05]Sock 7.First char is OK [09:24:05]request: POST /json_proto HTTP/1.0 [09:24:05]Method: POST [09:24:05]URL: /json_proto [09:24:05]Method is POST - this is cgi request [09:24:05]url: /json_proto [09:24:05]query_string will be loaded in cgi processing [09:24:05]execute_cgi json_proto POST (null) [09:24:05]execute_cgi path=json_proto method=POST [09:24:05]POST find Content-Length [09:24:05]Host: 172.17.53.195:8080 [09:24:05]Content-Length: 677 [09:24:05]Content-Type: application/json [09:24:05] [09:24:05]POST finish read [09:24:05]Found Content-Length = 677 [09:24:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:05]execute_script... [09:24: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)220129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:05]POST & json_proto [09:24:05]process_json_proto [09:24:05]json parsed OK: [09:24:05]protocol is kg_v1.0 [09:24:05]action value=close_receipt [09:24:05]process_action close_receipt [09:24:05]cmd_close_receipt [09:24:05]MH_GetDate [09:24:05]Write to MH i2c: F0 00 00 B2 CA 6B [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: F0 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: F0 09 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: F0 09 00 B2 CA 00 41 CC 14 67 21 48 4A 65 14 [09:24:05]GetLastDocTimeStamp 1729416104 [09:24:05]current date 1729416257 [09:24:05]FM_GetShiftState [09:24:05]SAM_PROTO_GetShiftState [09:24:05]wFMCommunicate request_size=4 [09:24:05]MH_SAM_APDU [09:24:05]CAPDU: 80 13 01 00 [09:24:05]Write to MH i2c: E2 08 00 B3 CA 80 13 01 00 00 00 00 00 FA [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:05]Read from MH i2c: E2 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 0E 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 0E 00 B3 CA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 42 [09:24:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:24:05]wFMCommunicate OK [09:24:05]SAM_PROTO_GetShiftState done [09:24:05]FM_GetShiftState done [09:24:05]opened in 1729384561 [09:24:05]opened+sec_in_day 1729470961 [09:24:05]quantity*price = 50041 [09:24:05]sum+1 = 50042 [09:24:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 52 20.10.2024 09:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165570 ФПД: 104984807605226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092417&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165570&fm=104984807605226&tin=02508201610067®Number=0000000000091764&sum=50000 [09:24:06]StoreToDocumentArchive [09:24:06]shift 534 fd 165570 [09:24:06]save to /storage/0534/doc_00165570 [09:24:06]save last doc name /storage/0534/doc_00165570 to /storage/kkm_last_doc_name [09:24:06]save OK [09:24:06]Clear old archive folders... [09:24:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:06]tlvbuf is 0169F510 [09:24:06]SAM_PROTO_ClearQueue [09:24:06]wFMCommunicate request_size=4 [09:24:06]MH_SAM_APDU [09:24:06]CAPDU: 80 09 00 00 [09:24:06]Write to MH i2c: E2 08 00 C0 CA 80 09 00 00 00 00 00 00 FC [09:24:06]Write i2c OK [09:24:06]MH_I2C_Read... [09:24:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:06]Read from MH i2c: E2 [09:24:06]MH_I2C_Read... [09:24:06]Read from MH i2c: E2 03 00 [09:24:06]MH_I2C_Read... [09:24:06]Read from MH i2c: E2 03 00 C0 CA 00 90 00 FE [09:24:06]RAPDU: 90 00 [09:24:06]wFMCommunicate OK [09:24:06]SAM_PROTO_ClearQueue done [09:24:06]KKMCreateOFDPacket [09:24:06]OFDProtocolAddRootSTLVToBuf [09:24:06]FM_MakeSignedData [09:24:06]FM_MakeSignedData [09:24:06]SAM_PROTO_SignData [09:24:06]wFMCommunicate request_size=4 [09:24:06]MH_SAM_APDU [09:24:06]CAPDU: 80 0D 01 02 [09:24:06]Write to MH i2c: E2 08 00 C1 CA 80 0D 01 02 00 00 00 00 04 [09:24:06]Write i2c OK [09:24:06]MH_I2C_Read... [09:24:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:06]Read from MH i2c: E2 [09:24:06]MH_I2C_Read... [09:24:06]Read from MH i2c: E2 03 00 [09:24:06]MH_I2C_Read... [09:24:06]Read from MH i2c: E2 03 00 C1 CA 00 90 00 FF [09:24:06]RAPDU: 90 00 [09:24:06]wFMCommunicate OK [09:24:06]wFMCommunicate request_size=255 [09:24:06]MH_SAM_APDU [09:24: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 41 CC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 86 02 00 35 04 06 00 5F [09:24:06]Write to MH i2c: E2 02 01 C2 CA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 41 CC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 86 02 00 35 04 06 00 5F 00 00 17 [09:24:06]Write i2c OK [09:24:06]MH_I2C_Read... [09:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:07]Read from MH i2c: E2 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 03 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 03 00 C2 CA 00 90 00 00 [09:24:07]RAPDU: 90 00 [09:24:07]wFMCommunicate OK [09:24:07]wFMCommunicate request_size=10 [09:24:07]MH_SAM_APDU [09:24:07]CAPDU: 80 0D 02 02 05 7B AE 2A 03 EA [09:24:07]Write to MH i2c: E2 0D 00 C3 CA 80 0D 02 02 05 00 7B AE 2A 03 EA 00 00 51 [09:24:07]Write i2c OK [09:24:07]MH_I2C_Read... [09:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:07]Read from MH i2c: E2 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 03 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 03 00 C3 CA 00 90 00 01 [09:24:07]RAPDU: 90 00 [09:24:07]wFMCommunicate OK [09:24:07]wFMCommunicate request_size=4 [09:24:07]MH_SAM_APDU [09:24:07]CAPDU: 80 0D 03 02 [09:24:07]Write to MH i2c: E2 08 00 C4 CA 80 0D 03 02 00 00 00 00 09 [09:24:07]Write i2c OK [09:24:07]MH_I2C_Read... [09:24:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:07]Read from MH i2c: E2 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 0B 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 0B 00 C4 CA 00 F4 B8 58 4D AF 74 5D 06 90 00 E1 [09:24:07]RAPDU: F4 B8 58 4D AF 74 5D 06 90 00 [09:24:07]wFMCommunicate OK [09:24:07]SAM_PROTO_SignData done [09:24:07]FM_MakeSignedData done [09:24:07]CreateOFDProtocolMessage [09:24:07]wFMCommunicate request_size=4 [09:24:07]MH_SAM_APDU [09:24:07]CAPDU: 80 11 00 00 [09:24:07]Write to MH i2c: E2 08 00 C5 CA 80 11 00 00 00 00 00 00 09 [09:24:07]Write i2c OK [09:24:07]MH_I2C_Read... [09:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:07]Read from MH i2c: E2 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 17 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 17 00 C5 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [09:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:24:07]wFMCommunicate OK [09:24:07]CreateOFDProtocolMessage done [09:24:07]OFDSenderStorePacket 165570 [09:24:07]StoreOFDPacket docnum=165570 [09:24:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 9E 07 01 F1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 41 CC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 86 02 00 35 04 06 00 5F 7B AE 2A 03 EA F4 B8 58 4D AF 74 5D 06 [09:24:07]CheckFolder [09:24:07]dirname=/storage/ofd_packets [09:24:07]CheckFolder done [09:24:07]ProducePacketName [09:24:07]name=ofd_packets/00165570 [09:24:07]NVStorageSaveData ofd_packets/00165570 [09:24:07]File name is /storage/ofd_packets/00165570 [09:24:07]Write 301 bytes [09:24:07]NVStorageSaveData done [09:24:07]OFDSenderStorePacket done [09:24:07]KKMCreateOFDPacket done [09:24:07]NVStorageSaveData kkm_last_timestamp [09:24:07]File name is /storage/kkm_last_timestamp [09:24:07]Write 4 bytes [09:24:07]NVStorageSaveData done [09:24:07]ExternCall_PrintAddStr [09:24:07]wPrintStart [09:24:07]Write to MH i2c: 01 00 00 C6 CA 90 [09:24:07]Write i2c OK [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: 01 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: 01 07 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: 01 07 00 C6 CA 00 00 00 00 00 FF 0F A5 [09:24:07]RasterBufferAndPrint [09:24:07]line Счет N : (1)220129 [09:24:07]line ИНН: 02508201610067 [09:24:07]line Контрольно-Кассовый Чек [09:24:07]line ПРОДАЖА [09:24:07]line ТРК (МРК, ГНК) : 23 [09:24:07]line Товар: 2710124130 [09:24:07]line Аи-92-К-5 [09:24:07]line 7.480 * 66.90 [09:24:07]line = 500.41 [09:24:07]line НДС 12% НСП 1% [09:24:07]line > о реализуемом товаре [09:24:07]line ОКРУГЛЕНИЕ: -0.41 [09:24:07]line ИТОГО: 500.00 [09:24:07]line Внесено: 500.00 [09:24:07]line СДАЧА: 0.00 [09:24:07]line НСП 1% : 4.43 [09:24:07]line НДС 12% : 53.14 [09:24:07]line Наличными: 500.00 [09:24:07]line Безнал.: 0.00 [09:24:07]line Место: АЗС № 161 "Партнер Нефть" [09:24:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:24:07]line СНО: Общий режим [09:24:07]line Чек 52 20.10.2024 09:24 [09:24:07]line Смена: 534 ФФД: 1.0 [09:24:07]line ЗНМ: 0300000104 [09:24:07]line РНМ: 0000000000091764 [09:24:07]line Версия ККМ: 001 [09:24:07]line ФМ: 0000000000871759 [09:24:07]line ФД: 165570 [09:24:07]line ФПД: 104984807605226 [09:24:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092417&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165570&fm=104984807605226&tin=02508201610067®Number=0000000000091764&sum=50000 [09:24:07]OFD Sender: Processing packet 165570 [packets to send 48, broken 47] [09:24:07]ProducePacketName [09:24:07]name=ofd_packets/00165570 [09:24:07]OFD Sender: To server: pG, [09:24:07]CommunicateWithHost lk.salyk.kg:30040 [09:24:07]ConnectInit lk.salyk.kg [09:24:07]written 0, free lines is 4095 [09:24:07]Connected sock=10 [09:24:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 9E 07 01 F1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 41 CC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 86 02 00 35 04 06 00 5F 7B AE 2A 03 EA F4 B8 58 4D AF 74 5D 06 [09:24:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7E D4 47 00 90 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 86 02 00 F4 03 04 00 B3 72 14 67 B6 04 01 00 00 93 8D 94 C9 EE 75 F7 19 [09:24:07]CommunicateWithHost err = 0 [09:24:07]CheckOFDResponse [09:24:07]1017 (14) - 77093643461234 [09:24:07]1041 (16) - 0000000000871759 [09:24:07]1040 (4) - 165570 [09:24:07]1012 (4) - 20.10.2024 03:02 [09:24:07]1206 (1) - 0 [09:24:07]OFD Sender: Remove packet 165570 [09:24:07]ProducePacketName [09:24:07]name=ofd_packets/00165570 [09:24:07]NVStorageDeleteData [09:24:08]Write to MH i2c: 01 00 00 F1 CA BB [09:24:08]Write i2c OK [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: 01 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: 01 07 00 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: 01 07 00 F1 CA 00 00 00 00 00 B9 0C 87 [09:24:08]RasterBufferAndPrint [09:24:08]line [09:24:08]line [09:24:08]line [09:24:08]line [09:24:08]line [09:24:08]written 0, free lines is 3268 [09:24:08]MH_Cut [09:24:08]Write to MH i2c: D1 01 00 F8 CA 01 94 [09:24:08]Write i2c OK [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: D1 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: D1 01 00 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: D1 01 00 F8 CA 00 93 [09:24:08]Write to MH i2c: 01 00 00 F9 CA C3 [09:24:08]Write i2c OK [09:24:08]MH_I2C_Read... [09:24:08]OFD Sender: No OFD packet to send [09:24:08]*** Cut start [09:24:08]*** Partial cut [09:24:08]*** CUTSNS_PIN = 1 [09:24:08]*** CUTSNS_PIN = 0 [09:24:09]*** Brake cut motor [09:24:09]Read from MH i2c: 01 [09:24:09]MH_I2C_Read... [09:24:09]*** Stop cut motor [09:24:09]*** Cut end [09:24:09]Read from MH i2c: 01 07 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: 01 07 00 F9 CA 00 00 00 00 00 FF 0F D8 [09:24:09]process_action close_receipt done [09:24:09]requested_data is exist [09:24:09]produce_requested_data [09:24:09]requested_item fm.sn is exist - process it [09:24:09]wFMCommunicate request_size=4 [09:24:09]MH_SAM_APDU [09:24:09]CAPDU: 80 11 00 00 [09:24:09]Write to MH i2c: E2 08 00 FA CA 80 11 00 00 00 00 00 00 3E [09:24:09]Write i2c OK [09:24:09]MH_I2C_Read... [09:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:09]Read from MH i2c: E2 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 17 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 17 00 FA CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [09:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:24:09]wFMCommunicate OK [09:24:09]requested_item fd.num is exist - process it [09:24:09]SAM_PROTO_GetFieldsCounters [09:24:09]wFMCommunicate request_size=4 [09:24:09]MH_SAM_APDU [09:24:09]CAPDU: 80 13 00 00 [09:24:09]Write to MH i2c: E2 08 00 FB CA 80 13 00 00 00 00 00 00 41 [09:24:09]Write i2c OK [09:24:09]MH_I2C_Read... [09:24:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:09]Read from MH i2c: E2 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 62 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 62 00 FB CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:24:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:09]wFMCommunicate OK [09:24:09]SAM_PROTO_GetFieldsCounters done [09:24:09]requested_item shift.num is exist - process it [09:24:09]requested_item shift.opened is exist - process it [09:24:09]req_shift_opened [09:24:09]FM_GetShiftState [09:24:09]SAM_PROTO_GetShiftState [09:24:09]wFMCommunicate request_size=4 [09:24:09]MH_SAM_APDU [09:24:09]CAPDU: 80 13 01 00 [09:24:09]Write to MH i2c: E2 08 00 FC CA 80 13 01 00 00 00 00 00 43 [09:24:09]Write i2c OK [09:24:09]MH_I2C_Read... [09:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:09]Read from MH i2c: E2 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 0E 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 0E 00 FC CA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8B [09:24:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:24:09]wFMCommunicate OK [09:24:09]SAM_PROTO_GetShiftState done [09:24:09]FM_GetShiftState done [09:24:09]req_shift_opened done [09:24:09]requested_item shift.open_date is exist - process it [09:24:09]req_shift_open_date [09:24:09]req_shift_open_date done [09:24:09]produce_requested_data done [09:24:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165570,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:24:09]process_action_free close_receipt [09:24:09]json_value_free [09:24:09]json_value_free done [09:24:09]process_json_proto returns [09:24:09]Send response to host [09:24:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165570,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:24:09]free response buf [09:24:09]execute_script done [09:24:09]execute_script returns [09:24:09]free content buf [09:24:09]Sock 7.Close socket [09:24:09]Sock 7.Thread stoped [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:28]accept exits with 9 [09:25:28]New connection [09:25:28]New thread 3066920292 created [09:25:28]Thread 3066776932 joined [09:25:28]Waiting for new connection... [09:25:28] Sock 9.Parse request [09:25:28]Sock 9.Check first char [09:25:28]Sock 9.First char is OK [09:25:28]request: POST /json_proto HTTP/1.0 [09:25:28]Method: POST [09:25:28]URL: /json_proto [09:25:28]Method is POST - this is cgi request [09:25:28]url: /json_proto [09:25:28]query_string will be loaded in cgi processing [09:25:28]execute_cgi json_proto POST (null) [09:25:28]execute_cgi path=json_proto method=POST [09:25:28]POST find Content-Length [09:25:28]Host: 172.17.53.195:8080 [09:25:28]Content-Length: 677 [09:25:28]Content-Type: application/json [09:25:28] [09:25:28]POST finish read [09:25:28]Found Content-Length = 677 [09:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:28]execute_script... [09:25: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)220130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:28]POST & json_proto [09:25:28]process_json_proto [09:25:28]json parsed OK: [09:25:28]protocol is kg_v1.0 [09:25:28]action value=close_receipt [09:25:28]process_action close_receipt [09:25:28]cmd_close_receipt [09:25:28]MH_GetDate [09:25:28]Write to MH i2c: F0 00 00 FD CA B6 [09:25:28]Write i2c OK [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: F0 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: F0 09 00 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: F0 09 00 FD CA 00 94 CC 14 67 21 48 4A 65 B2 [09:25:28]GetLastDocTimeStamp 1729416257 [09:25:28]current date 1729416340 [09:25:28]FM_GetShiftState [09:25:28]SAM_PROTO_GetShiftState [09:25:28]wFMCommunicate request_size=4 [09:25:28]MH_SAM_APDU [09:25:28]CAPDU: 80 13 01 00 [09:25:28]Write to MH i2c: E2 08 00 FE CA 80 13 01 00 00 00 00 00 45 [09:25:28]Write i2c OK [09:25:28]MH_I2C_Read... [09:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:28]Read from MH i2c: E2 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 0E 00 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 0E 00 FE CA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8D [09:25:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:25:28]wFMCommunicate OK [09:25:28]SAM_PROTO_GetShiftState done [09:25:28]FM_GetShiftState done [09:25:28]opened in 1729384561 [09:25:28]opened+sec_in_day 1729470961 [09:25:28]quantity*price = 40006 [09:25:28]sum+1 = 40007 [09:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 53 20.10.2024 09:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165571 ФПД: 235648351190200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092540&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165571&fm=235648351190200&tin=02508201610067®Number=0000000000091764&sum=40000 [09:25:29]StoreToDocumentArchive [09:25:29]shift 534 fd 165571 [09:25:29]save to /storage/0534/doc_00165571 [09:25:29]save last doc name /storage/0534/doc_00165571 to /storage/kkm_last_doc_name [09:25:29]save OK [09:25:29]Clear old archive folders... [09:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:29]tlvbuf is 0177A9F0 [09:25:29]SAM_PROTO_ClearQueue [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 09 00 00 [09:25:29]Write to MH i2c: E2 08 00 0B CB 80 09 00 00 00 00 00 00 48 [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 03 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 03 00 0B CB 00 90 00 4A [09:25:29]RAPDU: 90 00 [09:25:29]wFMCommunicate OK [09:25:29]SAM_PROTO_ClearQueue done [09:25:29]KKMCreateOFDPacket [09:25:29]OFDProtocolAddRootSTLVToBuf [09:25:29]FM_MakeSignedData [09:25:29]FM_MakeSignedData [09:25:29]SAM_PROTO_SignData [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 0D 01 02 [09:25:29]Write to MH i2c: E2 08 00 0C CB 80 0D 01 02 00 00 00 00 50 [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 03 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 03 00 0C CB 00 90 00 4B [09:25:29]RAPDU: 90 00 [09:25:29]wFMCommunicate OK [09:25:29]wFMCommunicate request_size=255 [09:25:29]MH_SAM_APDU [09:25: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 94 CC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 86 02 00 35 04 06 00 D6 [09:25:29]Write to MH i2c: E2 02 01 0D CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 94 CC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 86 02 00 35 04 06 00 D6 00 00 FE [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:30]Read from MH i2c: E2 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 0D CB 00 90 00 4C [09:25:30]RAPDU: 90 00 [09:25:30]wFMCommunicate OK [09:25:30]wFMCommunicate request_size=10 [09:25:30]MH_SAM_APDU [09:25:30]CAPDU: 80 0D 02 02 05 52 28 43 BC B8 [09:25:30]Write to MH i2c: E2 0D 00 0E CB 80 0D 02 02 05 00 52 28 43 BC B8 00 00 8E [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:30]Read from MH i2c: E2 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 0E CB 00 90 00 4D [09:25:30]RAPDU: 90 00 [09:25:30]wFMCommunicate OK [09:25:30]wFMCommunicate request_size=4 [09:25:30]MH_SAM_APDU [09:25:30]CAPDU: 80 0D 03 02 [09:25:30]Write to MH i2c: E2 08 00 0F CB 80 0D 03 02 00 00 00 00 55 [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:30]Read from MH i2c: E2 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 0B 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 0B 00 0F CB 00 51 DE AD E5 C8 A5 87 86 90 00 91 [09:25:30]RAPDU: 51 DE AD E5 C8 A5 87 86 90 00 [09:25:30]wFMCommunicate OK [09:25:30]SAM_PROTO_SignData done [09:25:30]FM_MakeSignedData done [09:25:30]CreateOFDProtocolMessage [09:25:30]wFMCommunicate request_size=4 [09:25:30]MH_SAM_APDU [09:25:30]CAPDU: 80 11 00 00 [09:25:30]Write to MH i2c: E2 08 00 10 CB 80 11 00 00 00 00 00 00 55 [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:30]Read from MH i2c: E2 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 17 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 17 00 10 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [09:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:25:30]wFMCommunicate OK [09:25:30]CreateOFDProtocolMessage done [09:25:30]OFDSenderStorePacket 165571 [09:25:30]StoreOFDPacket docnum=165571 [09:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 BF 07 01 BF 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 94 CC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 86 02 00 35 04 06 00 D6 52 28 43 BC B8 51 DE AD E5 C8 A5 87 86 [09:25:30]CheckFolder [09:25:30]dirname=/storage/ofd_packets [09:25:30]CheckFolder done [09:25:30]ProducePacketName [09:25:30]name=ofd_packets/00165571 [09:25:30]NVStorageSaveData ofd_packets/00165571 [09:25:30]File name is /storage/ofd_packets/00165571 [09:25:30]Write 301 bytes [09:25:30]NVStorageSaveData done [09:25:30]OFDSenderStorePacket done [09:25:30]KKMCreateOFDPacket done [09:25:30]NVStorageSaveData kkm_last_timestamp [09:25:30]File name is /storage/kkm_last_timestamp [09:25:30]Write 4 bytes [09:25:30]NVStorageSaveData done [09:25:30]ExternCall_PrintAddStr [09:25:30]wPrintStart [09:25:30]Write to MH i2c: 01 00 00 11 CB DC [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: 01 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: 01 07 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: 01 07 00 11 CB 00 00 00 00 00 FF 0F F1 [09:25:30]RasterBufferAndPrint [09:25:30]line Счет N : (1)220130 [09:25:30]line ИНН: 02508201610067 [09:25:30]line Контрольно-Кассовый Чек [09:25:30]line ПРОДАЖА [09:25:30]line ТРК (МРК, ГНК) : 13 [09:25:30]line Товар: 2710124130 [09:25:30]line Аи-92-К-5 [09:25:30]line 5.980 * 66.90 [09:25:30]line = 400.06 [09:25:30]line НДС 12% НСП 1% [09:25:30]line > о реализуемом товаре [09:25:30]line ОКРУГЛЕНИЕ: -0.06 [09:25:30]line ИТОГО: 400.00 [09:25:30]line Внесено: 400.00 [09:25:30]line СДАЧА: 0.00 [09:25:30]line НСП 1% : 3.54 [09:25:30]line НДС 12% : 42.48 [09:25:30]line Наличными: 400.00 [09:25:30]line Безнал.: 0.00 [09:25:30]line Место: АЗС № 161 "Партнер Нефть" [09:25:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:25:30]line СНО: Общий режим [09:25:30]line Чек 53 20.10.2024 09:25 [09:25:30]line Смена: 534 ФФД: 1.0 [09:25:30]line ЗНМ: 0300000104 [09:25:30]line РНМ: 0000000000091764 [09:25:30]line Версия ККМ: 001 [09:25:30]line ФМ: 0000000000871759 [09:25:30]line ФД: 165571 [09:25:30]line ФПД: 235648351190200 [09:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092540&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165571&fm=235648351190200&tin=02508201610067®Number=0000000000091764&sum=40000 [09:25:30]OFD Sender: Processing packet 165571 [packets to send 48, broken 47] [09:25:30]ProducePacketName [09:25:30]name=ofd_packets/00165571 [09:25:30]OFD Sender: To server: pG, [09:25:30]CommunicateWithHost lk.salyk.kg:30040 [09:25:30]ConnectInit lk.salyk.kg [09:25:30]written 0, free lines is 4095 [09:25:30]Connected sock=10 [09:25:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 BF 07 01 BF 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 94 CC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 86 02 00 35 04 06 00 D6 52 28 43 BC B8 51 DE AD E5 C8 A5 87 86 [09:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C8 2C 47 00 42 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 86 02 00 F4 03 04 00 06 73 14 67 B6 04 01 00 00 35 A0 81 C4 B5 1B 76 58 [09:25:31]CommunicateWithHost err = 0 [09:25:31]CheckOFDResponse [09:25:31]1017 (14) - 77093643461234 [09:25:31]1041 (16) - 0000000000871759 [09:25:31]1040 (4) - 165571 [09:25:31]1012 (4) - 20.10.2024 03:03 [09:25:31]1206 (1) - 0 [09:25:31]OFD Sender: Remove packet 165571 [09:25:31]ProducePacketName [09:25:31]name=ofd_packets/00165571 [09:25:31]NVStorageDeleteData [09:25:31]Write to MH i2c: 01 00 00 3C CB 07 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 07 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 07 00 3C CB 00 00 00 00 00 C6 0C E0 [09:25:31]RasterBufferAndPrint [09:25:31]line [09:25:31]line [09:25:31]line [09:25:31]line [09:25:31]line [09:25:31]written 0, free lines is 3279 [09:25:31]MH_Cut [09:25:31]Write to MH i2c: D1 01 00 43 CB 01 E0 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: D1 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: D1 01 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: D1 01 00 43 CB 00 DF [09:25:31]Write to MH i2c: 01 00 00 44 CB 0F [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]OFD Sender: No OFD packet to send [09:25:31]*** Cut start [09:25:31]*** Partial cut [09:25:31]*** CUTSNS_PIN = 1 [09:25:32]*** CUTSNS_PIN = 0 [09:25:32]*** Brake cut motor [09:25:32]Read from MH i2c: 01 [09:25:32]MH_I2C_Read... [09:25:32]*** Stop cut motor [09:25:32]*** Cut end [09:25:32]Read from MH i2c: 01 07 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 07 00 44 CB 00 00 00 00 00 FF 0F 24 [09:25:32]process_action close_receipt done [09:25:32]requested_data is exist [09:25:32]produce_requested_data [09:25:32]requested_item fm.sn is exist - process it [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 11 00 00 [09:25:32]Write to MH i2c: E2 08 00 45 CB 80 11 00 00 00 00 00 00 8A [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 17 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 17 00 45 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [09:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:25:32]wFMCommunicate OK [09:25:32]requested_item fd.num is exist - process it [09:25:32]SAM_PROTO_GetFieldsCounters [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 13 00 00 [09:25:32]Write to MH i2c: E2 08 00 46 CB 80 13 00 00 00 00 00 00 8D [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 62 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 62 00 46 CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [09:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:32]wFMCommunicate OK [09:25:32]SAM_PROTO_GetFieldsCounters done [09:25:32]requested_item shift.num is exist - process it [09:25:32]requested_item shift.opened is exist - process it [09:25:32]req_shift_opened [09:25:32]FM_GetShiftState [09:25:32]SAM_PROTO_GetShiftState [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 13 01 00 [09:25:32]Write to MH i2c: E2 08 00 47 CB 80 13 01 00 00 00 00 00 8F [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 0E 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 0E 00 47 CB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D7 [09:25:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:25:32]wFMCommunicate OK [09:25:32]SAM_PROTO_GetShiftState done [09:25:32]FM_GetShiftState done [09:25:32]req_shift_opened done [09:25:32]requested_item shift.open_date is exist - process it [09:25:32]req_shift_open_date [09:25:32]req_shift_open_date done [09:25:32]produce_requested_data done [09:25:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165571,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:25:32]process_action_free close_receipt [09:25:32]json_value_free [09:25:32]json_value_free done [09:25:32]process_json_proto returns [09:25:32]Send response to host [09:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165571,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:25:32]free response buf [09:25:32]execute_script done [09:25:32]execute_script returns [09:25:32]free content buf [09:25:32]Sock 9.Close socket [09:25:32]Sock 9.Thread stoped [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:14]accept exits with 7 [09:28:14]New connection [09:28:14]New thread 3066776932 created [09:28:14]Thread 3066920292 joined [09:28:14]Waiting for new connection... [09:28:14] Sock 7.Parse request [09:28:14]Sock 7.Check first char [09:28:14]Sock 7.First char is OK [09:28:14]request: POST /json_proto HTTP/1.0 [09:28:14]Method: POST [09:28:14]URL: /json_proto [09:28:14]Method is POST - this is cgi request [09:28:14]url: /json_proto [09:28:14]query_string will be loaded in cgi processing [09:28:14]execute_cgi json_proto POST (null) [09:28:14]execute_cgi path=json_proto method=POST [09:28:14]POST find Content-Length [09:28:14]Host: 172.17.53.195:8080 [09:28:14]Content-Length: 682 [09:28:14]Content-Type: application/json [09:28:14] [09:28:14]POST finish read [09:28:14]Found Content-Length = 682 [09:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:14]execute_script... [09:28: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)220131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:14]POST & json_proto [09:28:14]process_json_proto [09:28:14]json parsed OK: [09:28:14]protocol is kg_v1.0 [09:28:14]action value=close_receipt [09:28:14]process_action close_receipt [09:28:14]cmd_close_receipt [09:28:14]MH_GetDate [09:28:14]Write to MH i2c: F0 00 00 48 CB 02 [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: F0 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: F0 09 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: F0 09 00 48 CB 00 39 CD 14 67 21 48 4A 65 A4 [09:28:14]GetLastDocTimeStamp 1729416340 [09:28:14]current date 1729416505 [09:28:14]FM_GetShiftState [09:28:14]SAM_PROTO_GetShiftState [09:28:14]wFMCommunicate request_size=4 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 13 01 00 [09:28:14]Write to MH i2c: E2 08 00 49 CB 80 13 01 00 00 00 00 00 91 [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:14]Read from MH i2c: E2 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 0E 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 0E 00 49 CB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D9 [09:28:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:28:14]wFMCommunicate OK [09:28:14]SAM_PROTO_GetShiftState done [09:28:14]FM_GetShiftState done [09:28:14]opened in 1729384561 [09:28:14]opened+sec_in_day 1729470961 [09:28:14]quantity*price = 100021 [09:28:14]sum+1 = 100023 [09:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 54 20.10.2024 09:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165572 ФПД: 155024489717091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092825&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165572&fm=155024489717091&tin=02508201610067®Number=0000000000091764&sum=100000 [09:28:15]StoreToDocumentArchive [09:28:15]shift 534 fd 165572 [09:28:15]save to /storage/0534/doc_00165572 [09:28:15]save last doc name /storage/0534/doc_00165572 to /storage/kkm_last_doc_name [09:28:15]save OK [09:28:15]Clear old archive folders... [09:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:15]tlvbuf is 015E96A0 [09:28:15]SAM_PROTO_ClearQueue [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 09 00 00 [09:28:15]Write to MH i2c: E2 08 00 56 CB 80 09 00 00 00 00 00 00 93 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 56 CB 00 90 00 95 [09:28:15]RAPDU: 90 00 [09:28:15]wFMCommunicate OK [09:28:15]SAM_PROTO_ClearQueue done [09:28:15]KKMCreateOFDPacket [09:28:15]OFDProtocolAddRootSTLVToBuf [09:28:15]FM_MakeSignedData [09:28:15]FM_MakeSignedData [09:28:15]SAM_PROTO_SignData [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 0D 01 02 [09:28:15]Write to MH i2c: E2 08 00 57 CB 80 0D 01 02 00 00 00 00 9B [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 57 CB 00 90 00 96 [09:28:15]RAPDU: 90 00 [09:28:15]wFMCommunicate OK [09:28:15]wFMCommunicate request_size=255 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 39 CD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 86 02 00 35 04 06 00 8C [09:28:15]Write to MH i2c: E2 02 01 58 CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 39 CD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 86 02 00 35 04 06 00 8C 00 00 F5 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 58 CB 00 90 00 97 [09:28:15]RAPDU: 90 00 [09:28:15]wFMCommunicate OK [09:28:15]wFMCommunicate request_size=10 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 0D 02 02 05 FE 73 A4 1D 63 [09:28:15]Write to MH i2c: E2 0D 00 59 CB 80 0D 02 02 05 00 FE 73 A4 1D 63 00 00 3D [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 59 CB 00 90 00 98 [09:28:15]RAPDU: 90 00 [09:28:15]wFMCommunicate OK [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 0D 03 02 [09:28:15]Write to MH i2c: E2 08 00 5A CB 80 0D 03 02 00 00 00 00 A0 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 0B 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 0B 00 5A CB 00 84 76 9B 8C A3 07 29 7B 90 00 10 [09:28:15]RAPDU: 84 76 9B 8C A3 07 29 7B 90 00 [09:28:15]wFMCommunicate OK [09:28:15]SAM_PROTO_SignData done [09:28:15]FM_MakeSignedData done [09:28:15]CreateOFDProtocolMessage [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 11 00 00 [09:28:15]Write to MH i2c: E2 08 00 5B CB 80 11 00 00 00 00 00 00 A0 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 17 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 17 00 5B CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [09:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:28:15]wFMCommunicate OK [09:28:15]CreateOFDProtocolMessage done [09:28:15]OFDSenderStorePacket 165572 [09:28:15]StoreOFDPacket docnum=165572 [09:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 96 07 01 DE 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 39 CD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 86 02 00 35 04 06 00 8C FE 73 A4 1D 63 84 76 9B 8C A3 07 29 7B [09:28:15]CheckFolder [09:28:15]dirname=/storage/ofd_packets [09:28:15]CheckFolder done [09:28:15]ProducePacketName [09:28:15]name=ofd_packets/00165572 [09:28:15]NVStorageSaveData ofd_packets/00165572 [09:28:15]File name is /storage/ofd_packets/00165572 [09:28:15]Write 301 bytes [09:28:15]NVStorageSaveData done [09:28:15]OFDSenderStorePacket done [09:28:15]KKMCreateOFDPacket done [09:28:15]NVStorageSaveData kkm_last_timestamp [09:28:15]File name is /storage/kkm_last_timestamp [09:28:15]Write 4 bytes [09:28:15]NVStorageSaveData done [09:28:15]ExternCall_PrintAddStr [09:28:15]wPrintStart [09:28:15]Write to MH i2c: 01 00 00 5C CB 27 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 5C CB 00 00 00 00 00 FF 0F 3C [09:28:15]RasterBufferAndPrint [09:28:15]line Счет N : (1)220131 [09:28:15]line ИНН: 02508201610067 [09:28:15]line Контрольно-Кассовый Чек [09:28:15]line ПРОДАЖА [09:28:15]line ТРК (МРК, ГНК) : 44 [09:28:15]line Товар: 2710124500 [09:28:15]line Аи-95-К-5 [09:28:15]line 13.480 * 74.20 [09:28:15]line = 1000.22 [09:28:15]line НДС 12% НСП 1% [09:28:15]line > о реализуемом товаре [09:28:15]line ОКРУГЛЕНИЕ: -0.22 [09:28:15]line ИТОГО: 1000.00 [09:28:15]line Внесено: 1000.00 [09:28:15]line СДАЧА: 0.00 [09:28:15]line НСП 1% : 8.85 [09:28:15]line НДС 12% : 106.22 [09:28:15]line Наличными: 1000.00 [09:28:15]line Безнал.: 0.00 [09:28:15]line Место: АЗС № 161 "Партнер Нефть" [09:28:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:28:15]line СНО: Общий режим [09:28:15]line Чек 54 20.10.2024 09:28 [09:28:15]line Смена: 534 ФФД: 1.0 [09:28:15]line ЗНМ: 0300000104 [09:28:15]line РНМ: 0000000000091764 [09:28:15]line Версия ККМ: 001 [09:28:15]line ФМ: 0000000000871759 [09:28:15]line ФД: 165572 [09:28:15]line ФПД: 155024489717091 [09:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092825&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165572&fm=155024489717091&tin=02508201610067®Number=0000000000091764&sum=100000 [09:28:16]OFD Sender: Processing packet 165572 [packets to send 48, broken 47] [09:28:16]ProducePacketName [09:28:16]name=ofd_packets/00165572 [09:28:16]OFD Sender: To server: pG, [09:28:16]CommunicateWithHost lk.salyk.kg:30040 [09:28:16]ConnectInit lk.salyk.kg [09:28:16]written 0, free lines is 4095 [09:28:16]Connected sock=10 [09:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 96 07 01 DE 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 39 CD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 86 02 00 35 04 06 00 8C FE 73 A4 1D 63 84 76 9B 8C A3 07 29 7B [09:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 37 4F 47 00 7E 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 86 02 00 F4 03 04 00 AC 73 14 67 B6 04 01 00 00 FB 37 65 47 98 89 81 E6 [09:28:16]CommunicateWithHost err = 0 [09:28:16]CheckOFDResponse [09:28:16]1017 (14) - 77093643461234 [09:28:16]1041 (16) - 0000000000871759 [09:28:16]1040 (4) - 165572 [09:28:16]1012 (4) - 20.10.2024 03:06 [09:28:16]1206 (1) - 0 [09:28:16]OFD Sender: Remove packet 165572 [09:28:16]ProducePacketName [09:28:16]name=ofd_packets/00165572 [09:28:16]NVStorageDeleteData [09:28:16]Write to MH i2c: 01 00 00 87 CB 52 [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 07 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 07 00 87 CB 00 00 00 00 00 C9 0C 2E [09:28:16]RasterBufferAndPrint [09:28:16]line [09:28:16]line [09:28:16]line [09:28:16]line [09:28:16]line [09:28:16]written 0, free lines is 3279 [09:28:16]MH_Cut [09:28:16]Write to MH i2c: D1 01 00 8E CB 01 2B [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: D1 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: D1 01 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: D1 01 00 8E CB 00 2A [09:28:16]Write to MH i2c: 01 00 00 8F CB 5A [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:17]OFD Sender: No OFD packet to send [09:28:17]*** Cut start [09:28:17]*** Partial cut [09:28:17]*** CUTSNS_PIN = 1 [09:28:17]*** CUTSNS_PIN = 0 [09:28:17]*** Brake cut motor [09:28:18]Read from MH i2c: 01 [09:28:18]MH_I2C_Read... [09:28:18]*** Stop cut motor [09:28:18]*** Cut end [09:28:18]Read from MH i2c: 01 07 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: 01 07 00 8F CB 00 00 00 00 00 FF 0F 6F [09:28:18]process_action close_receipt done [09:28:18]requested_data is exist [09:28:18]produce_requested_data [09:28:18]requested_item fm.sn is exist - process it [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 11 00 00 [09:28:18]Write to MH i2c: E2 08 00 90 CB 80 11 00 00 00 00 00 00 D5 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 17 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 17 00 90 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [09:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:28:18]wFMCommunicate OK [09:28:18]requested_item fd.num is exist - process it [09:28:18]SAM_PROTO_GetFieldsCounters [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 13 00 00 [09:28:18]Write to MH i2c: E2 08 00 91 CB 80 13 00 00 00 00 00 00 D8 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 62 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 62 00 91 CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [09:28:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:18]wFMCommunicate OK [09:28:18]SAM_PROTO_GetFieldsCounters done [09:28:18]requested_item shift.num is exist - process it [09:28:18]requested_item shift.opened is exist - process it [09:28:18]req_shift_opened [09:28:18]FM_GetShiftState [09:28:18]SAM_PROTO_GetShiftState [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 13 01 00 [09:28:18]Write to MH i2c: E2 08 00 92 CB 80 13 01 00 00 00 00 00 DA [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0E 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0E 00 92 CB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 22 [09:28:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:28:18]wFMCommunicate OK [09:28:18]SAM_PROTO_GetShiftState done [09:28:18]FM_GetShiftState done [09:28:18]req_shift_opened done [09:28:18]requested_item shift.open_date is exist - process it [09:28:18]req_shift_open_date [09:28:18]req_shift_open_date done [09:28:18]produce_requested_data done [09:28:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165572,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:28:18]process_action_free close_receipt [09:28:18]json_value_free [09:28:18]json_value_free done [09:28:18]process_json_proto returns [09:28:18]Send response to host [09:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165572,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:28:18]free response buf [09:28:18]execute_script done [09:28:18]execute_script returns [09:28:18]free content buf [09:28:18]Sock 7.Close socket [09:28:18]Sock 7.Thread stoped [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:47]accept exits with 9 [09:31:47]New connection [09:31:47]New thread 3066920292 created [09:31:47]Thread 3066776932 joined [09:31:47]Waiting for new connection... [09:31:47] Sock 9.Parse request [09:31:47]Sock 9.Check first char [09:31:47]Sock 9.First char is OK [09:31:47]request: POST /json_proto HTTP/1.0 [09:31:47]Method: POST [09:31:47]URL: /json_proto [09:31:47]Method is POST - this is cgi request [09:31:47]url: /json_proto [09:31:47]query_string will be loaded in cgi processing [09:31:47]execute_cgi json_proto POST (null) [09:31:47]execute_cgi path=json_proto method=POST [09:31:47]POST find Content-Length [09:31:47]Host: 172.17.53.195:8080 [09:31:47]Content-Length: 675 [09:31:47]Content-Type: application/json [09:31:47] [09:31:47]POST finish read [09:31:47]Found Content-Length = 675 [09:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220133", "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" : 76.20, "quantity" : 11.240, "sum" : 856.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:47]execute_script... [09:31: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)220133", "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" : 76.20, "quantity" : 11.240, "sum" : 856.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:47]POST & json_proto [09:31:47]process_json_proto [09:31:47]json parsed OK: [09:31:47]protocol is kg_v1.0 [09:31:47]action value=close_receipt [09:31:47]process_action close_receipt [09:31:47]cmd_close_receipt [09:31:47]MH_GetDate [09:31:47]Write to MH i2c: F0 00 00 93 CB 4D [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 09 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 09 00 93 CB 00 0F CE 14 67 21 48 4A 65 C6 [09:31:47]GetLastDocTimeStamp 1729416505 [09:31:47]current date 1729416719 [09:31:47]FM_GetShiftState [09:31:47]SAM_PROTO_GetShiftState [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 13 01 00 [09:31:47]Write to MH i2c: E2 08 00 94 CB 80 13 01 00 00 00 00 00 DC [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 94 CB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 24 [09:31:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_GetShiftState done [09:31:47]FM_GetShiftState done [09:31:47]opened in 1729384561 [09:31:47]opened+sec_in_day 1729470961 [09:31:47]quantity*price = 85648 [09:31:47]sum+1 = 85650 [09:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 856.00 Внесено: 856.00 СДАЧА: 0.00 НСП 1% : 7.58 НДС 12% : 90.95 Наличными: 856.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 55 20.10.2024 09:31 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165573 ФПД: 48528365546700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093159&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165573&fm=48528365546700&tin=02508201610067®Number=0000000000091764&sum=85600 [09:31:48]StoreToDocumentArchive [09:31:48]shift 534 fd 165573 [09:31:48]save to /storage/0534/doc_00165573 [09:31:48]save last doc name /storage/0534/doc_00165573 to /storage/kkm_last_doc_name [09:31:48]save OK [09:31:48]Clear old archive folders... [09:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:31:48]tlvbuf is 01839C40 [09:31:48]SAM_PROTO_ClearQueue [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 09 00 00 [09:31:48]Write to MH i2c: E2 08 00 A1 CB 80 09 00 00 00 00 00 00 DE [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 A1 CB 00 90 00 E0 [09:31:48]RAPDU: 90 00 [09:31:48]wFMCommunicate OK [09:31:48]SAM_PROTO_ClearQueue done [09:31:48]KKMCreateOFDPacket [09:31:48]OFDProtocolAddRootSTLVToBuf [09:31:48]FM_MakeSignedData [09:31:48]FM_MakeSignedData [09:31:48]SAM_PROTO_SignData [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 0D 01 02 [09:31:48]Write to MH i2c: E2 08 00 A2 CB 80 0D 01 02 00 00 00 00 E6 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 A2 CB 00 90 00 E1 [09:31:48]RAPDU: 90 00 [09:31:48]wFMCommunicate OK [09:31:48]wFMCommunicate request_size=255 [09:31:48]MH_SAM_APDU [09:31: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 E8 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 23 00 00 00 00 07 04 06 00 60 4E 01 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 0F CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 86 02 00 35 04 06 00 2C 22 E3 FD [09:31:48]Write to MH i2c: E2 02 01 A3 CB 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 E8 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 23 00 00 00 00 07 04 06 00 60 4E 01 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 0F CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 86 02 00 35 04 06 00 2C 22 E3 FD 00 00 40 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 03 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 03 00 A3 CB 00 90 00 E2 [09:31:49]RAPDU: 90 00 [09:31:49]wFMCommunicate OK [09:31:49]wFMCommunicate request_size=7 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 0D 02 02 02 6C CC [09:31:49]Write to MH i2c: E2 0A 00 A4 CB 80 0D 02 02 02 00 6C CC 00 00 25 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 03 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 03 00 A4 CB 00 90 00 E3 [09:31:49]RAPDU: 90 00 [09:31:49]wFMCommunicate OK [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 0D 03 02 [09:31:49]Write to MH i2c: E2 08 00 A5 CB 80 0D 03 02 00 00 00 00 EB [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0B 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0B 00 A5 CB 00 B2 91 45 FB E6 5E 48 4C 90 00 47 [09:31:49]RAPDU: B2 91 45 FB E6 5E 48 4C 90 00 [09:31:49]wFMCommunicate OK [09:31:49]SAM_PROTO_SignData done [09:31:49]FM_MakeSignedData done [09:31:49]CreateOFDProtocolMessage [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 11 00 00 [09:31:49]Write to MH i2c: E2 08 00 A6 CB 80 11 00 00 00 00 00 00 EB [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 17 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 17 00 A6 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [09:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:31:49]wFMCommunicate OK [09:31:49]CreateOFDProtocolMessage done [09:31:49]OFDSenderStorePacket 165573 [09:31:49]StoreOFDPacket docnum=165573 [09:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D5 E9 04 01 30 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 E8 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 23 00 00 00 00 07 04 06 00 60 4E 01 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 0F CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 86 02 00 35 04 06 00 2C 22 E3 FD 6C CC B2 91 45 FB E6 5E 48 4C [09:31:49]CheckFolder [09:31:49]dirname=/storage/ofd_packets [09:31:49]CheckFolder done [09:31:49]ProducePacketName [09:31:49]name=ofd_packets/00165573 [09:31:49]NVStorageSaveData ofd_packets/00165573 [09:31:49]File name is /storage/ofd_packets/00165573 [09:31:49]Write 298 bytes [09:31:49]NVStorageSaveData done [09:31:49]OFDSenderStorePacket done [09:31:49]KKMCreateOFDPacket done [09:31:49]NVStorageSaveData kkm_last_timestamp [09:31:49]File name is /storage/kkm_last_timestamp [09:31:49]Write 4 bytes [09:31:49]NVStorageSaveData done [09:31:49]ExternCall_PrintAddStr [09:31:49]wPrintStart [09:31:49]Write to MH i2c: 01 00 00 A7 CB 72 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 A7 CB 00 00 00 00 00 FF 0F 87 [09:31:49]RasterBufferAndPrint [09:31:49]line Счет N : (1)220133 [09:31:49]line ИНН: 02508201610067 [09:31:49]line Контрольно-Кассовый Чек [09:31:49]line ПРОДАЖА [09:31:49]line ТРК (МРК, ГНК) : 11 [09:31:49]line Товар: 2710194210 [09:31:49]line ДТ-К-5 [09:31:49]line 11.240 * 76.20 [09:31:49]line = 856.49 [09:31:49]line НДС 12% НСП 1% [09:31:49]line > о реализуемом товаре [09:31:49]line ОКРУГЛЕНИЕ: -0.49 [09:31:49]line ИТОГО: 856.00 [09:31:49]line Внесено: 856.00 [09:31:49]line СДАЧА: 0.00 [09:31:49]line НСП 1% : 7.58 [09:31:49]line НДС 12% : 90.95 [09:31:49]line Наличными: 856.00 [09:31:49]line Безнал.: 0.00 [09:31:49]line Место: АЗС № 161 "Партнер Нефть" [09:31:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:31:49]line СНО: Общий режим [09:31:49]line Чек 55 20.10.2024 09:31 [09:31:49]line Смена: 534 ФФД: 1.0 [09:31:49]line ЗНМ: 0300000104 [09:31:49]line РНМ: 0000000000091764 [09:31:49]line Версия ККМ: 001 [09:31:49]line ФМ: 0000000000871759 [09:31:49]line ФД: 165573 [09:31:49]line ФПД: 48528365546700 [09:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093159&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165573&fm=48528365546700&tin=02508201610067®Number=0000000000091764&sum=85600 [09:31:49]OFD Sender: Processing packet 165573 [packets to send 48, broken 47] [09:31:49]ProducePacketName [09:31:49]name=ofd_packets/00165573 [09:31:49]OFD Sender: To server: pG, [09:31:49]CommunicateWithHost lk.salyk.kg:30040 [09:31:49]ConnectInit lk.salyk.kg [09:31:49]written 0, free lines is 4095 [09:31:49]Connected sock=10 [09:31:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D5 E9 04 01 30 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 E8 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 23 00 00 00 00 07 04 06 00 60 4E 01 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 0F CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 86 02 00 35 04 06 00 2C 22 E3 FD 6C CC B2 91 45 FB E6 5E 48 4C [09:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A1 F8 47 00 59 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 31 37 35 39 10 04 04 00 C5 86 02 00 F4 03 04 00 81 74 14 67 B6 04 01 00 00 46 31 3A 71 B0 86 D6 E6 [09:31:50]CommunicateWithHost err = 0 [09:31:50]CheckOFDResponse [09:31:50]1017 (14) - 77093643461234 [09:31:50]1041 (16) - 0000000000871759 [09:31:50]1040 (4) - 165573 [09:31:50]1012 (4) - 20.10.2024 03:09 [09:31:50]1206 (1) - 0 [09:31:50]OFD Sender: Remove packet 165573 [09:31:50]ProducePacketName [09:31:50]name=ofd_packets/00165573 [09:31:50]NVStorageDeleteData [09:31:50]Write to MH i2c: 01 00 00 D2 CB 9D [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: 01 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: 01 07 00 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: 01 07 00 D2 CB 00 00 00 00 00 C2 0C 72 [09:31:50]RasterBufferAndPrint [09:31:50]line [09:31:50]line [09:31:50]line [09:31:50]line [09:31:50]line [09:31:50]written 0, free lines is 3272 [09:31:50]MH_Cut [09:31:50]Write to MH i2c: D1 01 00 D9 CB 01 76 [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: D1 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: D1 01 00 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: D1 01 00 D9 CB 00 75 [09:31:50]Write to MH i2c: 01 00 00 DA CB A5 [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]OFD Sender: No OFD packet to send [09:31:51]*** Cut start [09:31:51]*** Partial cut [09:31:51]*** CUTSNS_PIN = 1 [09:31:51]*** CUTSNS_PIN = 0 [09:31:51]*** Brake cut motor [09:31:51]Read from MH i2c: 01 [09:31:51]MH_I2C_Read... [09:31:51]*** Stop cut motor [09:31:51]*** Cut end [09:31:51]Read from MH i2c: 01 07 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 DA CB 00 00 00 00 00 FF 0F BA [09:31:51]process_action close_receipt done [09:31:51]requested_data is exist [09:31:51]produce_requested_data [09:31:51]requested_item fm.sn is exist - process it [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 11 00 00 [09:31:51]Write to MH i2c: E2 08 00 DB CB 80 11 00 00 00 00 00 00 20 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 DB CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [09:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:31:51]wFMCommunicate OK [09:31:51]requested_item fd.num is exist - process it [09:31:51]SAM_PROTO_GetFieldsCounters [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 13 00 00 [09:31:51]Write to MH i2c: E2 08 00 DC CB 80 13 00 00 00 00 00 00 23 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 62 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 62 00 DC CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [09:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_GetFieldsCounters done [09:31:51]requested_item shift.num is exist - process it [09:31:51]requested_item shift.opened is exist - process it [09:31:51]req_shift_opened [09:31:51]FM_GetShiftState [09:31:51]SAM_PROTO_GetShiftState [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 13 01 00 [09:31:51]Write to MH i2c: E2 08 00 DD CB 80 13 01 00 00 00 00 00 25 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 DD CB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6D [09:31:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_GetShiftState done [09:31:51]FM_GetShiftState done [09:31:51]req_shift_opened done [09:31:51]requested_item shift.open_date is exist - process it [09:31:51]req_shift_open_date [09:31:51]req_shift_open_date done [09:31:51]produce_requested_data done [09:31:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165573,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:31:51]process_action_free close_receipt [09:31:51]json_value_free [09:31:51]json_value_free done [09:31:51]process_json_proto returns [09:31:51]Send response to host [09:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165573,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:31:51]free response buf [09:31:51]execute_script done [09:31:51]execute_script returns [09:31:51]free content buf [09:31:51]Sock 9.Close socket [09:31:51]Sock 9.Thread stoped [09:31:52]accept exits with 7 [09:31:52]New connection [09:31:52]New thread 3066776932 created [09:31:52]Thread 3066920292 joined [09:31:52]Waiting for new connection... [09:31:52] Sock 7.Parse request [09:31:52]Sock 7.Check first char [09:31:52]Sock 7.First char is OK [09:31:52]request: POST /json_proto HTTP/1.0 [09:31:52]Method: POST [09:31:52]URL: /json_proto [09:31:52]Method is POST - this is cgi request [09:31:52]url: /json_proto [09:31:52]query_string will be loaded in cgi processing [09:31:52]execute_cgi json_proto POST (null) [09:31:52]execute_cgi path=json_proto method=POST [09:31:52]POST find Content-Length [09:31:52]Host: 172.17.53.195:8080 [09:31:52]Content-Length: 682 [09:31:52]Content-Type: application/json [09:31:52] [09:31:52]POST finish read [09:31:52]Found Content-Length = 682 [09:31:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.050, "sum" : 1943.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1943.00, "payments": [ { "type": 0, "sum" : 1943.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:52]execute_script... [09:31: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)220132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.050, "sum" : 1943.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1943.00, "payments": [ { "type": 0, "sum" : 1943.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:52]POST & json_proto [09:31:52]process_json_proto [09:31:52]json parsed OK: [09:31:52]protocol is kg_v1.0 [09:31:52]action value=close_receipt [09:31:52]process_action close_receipt [09:31:52]cmd_close_receipt [09:31:52]MH_GetDate [09:31:52]Write to MH i2c: F0 00 00 DE CB 98 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: F0 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: F0 09 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: F0 09 00 DE CB 00 14 CE 14 67 21 48 4A 65 16 [09:31:52]GetLastDocTimeStamp 1729416719 [09:31:52]current date 1729416724 [09:31:52]FM_GetShiftState [09:31:52]SAM_PROTO_GetShiftState [09:31:52]wFMCommunicate request_size=4 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 13 01 00 [09:31:52]Write to MH i2c: E2 08 00 DF CB 80 13 01 00 00 00 00 00 27 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:53]Read from MH i2c: E2 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 0E 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 0E 00 DF CB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6F [09:31:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:31:53]wFMCommunicate OK [09:31:53]SAM_PROTO_GetShiftState done [09:31:53]FM_GetShiftState done [09:31:53]opened in 1729384561 [09:31:53]opened+sec_in_day 1729470961 [09:31:53]quantity*price = 194344 [09:31:53]sum+1 = 194346 [09:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1943.00 Внесено: 4000.00 СДАЧА: 2057.00 НСП 1% : 17.20 НДС 12% : 206.38 Наличными: 1943.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 56 20.10.2024 09:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165574 ФПД: 249758396012681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093204&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165574&fm=249758396012681&tin=02508201610067®Number=0000000000091764&sum=194300 [09:31:54]StoreToDocumentArchive [09:31:54]shift 534 fd 165574 [09:31:54]save to /storage/0534/doc_00165574 [09:31:54]save last doc name /storage/0534/doc_00165574 to /storage/kkm_last_doc_name [09:31:54]save OK [09:31:54]Clear old archive folders... [09:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:54]tlvbuf is 0158F0F0 [09:31:54]SAM_PROTO_ClearQueue [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 09 00 00 [09:31:54]Write to MH i2c: E2 08 00 EC CB 80 09 00 00 00 00 00 00 29 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 EC CB 00 90 00 2B [09:31:54]RAPDU: 90 00 [09:31:54]wFMCommunicate OK [09:31:54]SAM_PROTO_ClearQueue done [09:31:54]KKMCreateOFDPacket [09:31:54]OFDProtocolAddRootSTLVToBuf [09:31:54]FM_MakeSignedData [09:31:54]FM_MakeSignedData [09:31:54]SAM_PROTO_SignData [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 0D 01 02 [09:31:54]Write to MH i2c: E2 08 00 ED CB 80 0D 01 02 00 00 00 00 31 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 ED CB 00 90 00 2C [09:31:54]RAPDU: 90 00 [09:31:54]wFMCommunicate OK [09:31:54]wFMCommunicate request_size=255 [09:31:54]MH_SAM_APDU [09:31: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 7A 71 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC F6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 50 00 00 00 00 07 04 06 00 FC F6 02 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 14 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 86 02 00 35 04 06 00 E3 [09:31:54]Write to MH i2c: E2 02 01 EE CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 71 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC F6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 50 00 00 00 00 07 04 06 00 FC F6 02 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 14 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 86 02 00 35 04 06 00 E3 00 00 FD [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 EE CB 00 90 00 2D [09:31:54]RAPDU: 90 00 [09:31:54]wFMCommunicate OK [09:31:54]wFMCommunicate request_size=10 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 0D 02 02 05 27 68 79 58 89 [09:31:54]Write to MH i2c: E2 0D 00 EF CB 80 0D 02 02 05 00 27 68 79 58 89 00 00 27 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 EF CB 00 90 00 2E [09:31:54]RAPDU: 90 00 [09:31:54]wFMCommunicate OK [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 0D 03 02 [09:31:54]Write to MH i2c: E2 08 00 F0 CB 80 0D 03 02 00 00 00 00 36 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0B 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0B 00 F0 CB 00 31 CF 2C A0 83 A1 5A 25 90 00 A6 [09:31:54]RAPDU: 31 CF 2C A0 83 A1 5A 25 90 00 [09:31:54]wFMCommunicate OK [09:31:54]SAM_PROTO_SignData done [09:31:54]FM_MakeSignedData done [09:31:54]CreateOFDProtocolMessage [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 11 00 00 [09:31:54]Write to MH i2c: E2 08 00 F1 CB 80 11 00 00 00 00 00 00 36 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 17 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 17 00 F1 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [09:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:31:55]wFMCommunicate OK [09:31:55]CreateOFDProtocolMessage done [09:31:55]OFDSenderStorePacket 165574 [09:31:55]StoreOFDPacket docnum=165574 [09:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 72 07 01 55 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 7A 71 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC F6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 50 00 00 00 00 07 04 06 00 FC F6 02 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 14 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 86 02 00 35 04 06 00 E3 27 68 79 58 89 31 CF 2C A0 83 A1 5A 25 [09:31:55]CheckFolder [09:31:55]dirname=/storage/ofd_packets [09:31:55]CheckFolder done [09:31:55]ProducePacketName [09:31:55]name=ofd_packets/00165574 [09:31:55]NVStorageSaveData ofd_packets/00165574 [09:31:55]File name is /storage/ofd_packets/00165574 [09:31:55]Write 301 bytes [09:31:55]NVStorageSaveData done [09:31:55]OFDSenderStorePacket done [09:31:55]KKMCreateOFDPacket done [09:31:55]NVStorageSaveData kkm_last_timestamp [09:31:55]File name is /storage/kkm_last_timestamp [09:31:55]Write 4 bytes [09:31:55]NVStorageSaveData done [09:31:55]ExternCall_PrintAddStr [09:31:55]wPrintStart [09:31:55]Write to MH i2c: 01 00 00 F2 CB BD [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 F2 CB 00 00 00 00 00 FF 0F D2 [09:31:55]RasterBufferAndPrint [09:31:55]line Счет N : (1)220132 [09:31:55]line ИНН: 02508201610067 [09:31:55]line Контрольно-Кассовый Чек [09:31:55]line ПРОДАЖА [09:31:55]line ТРК (МРК, ГНК) : 33 [09:31:55]line Товар: 2710124130 [09:31:55]line Аи-92-К-5 [09:31:55]line 29.050 * 66.90 [09:31:55]line = 1943.45 [09:31:55]line НДС 12% НСП 1% [09:31:55]line > о реализуемом товаре [09:31:55]line ОКРУГЛЕНИЕ: -0.45 [09:31:55]line ИТОГО: 1943.00 [09:31:55]line Внесено: 4000.00 [09:31:55]line СДАЧА: 2057.00 [09:31:55]line НСП 1% : 17.20 [09:31:55]line НДС 12% : 206.38 [09:31:55]line Наличными: 1943.00 [09:31:55]line Безнал.: 0.00 [09:31:55]line Место: АЗС № 161 "Партнер Нефть" [09:31:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:31:55]line СНО: Общий режим [09:31:55]line Чек 56 20.10.2024 09:32 [09:31:55]line Смена: 534 ФФД: 1.0 [09:31:55]line ЗНМ: 0300000104 [09:31:55]line РНМ: 0000000000091764 [09:31:55]line Версия ККМ: 001 [09:31:55]line ФМ: 0000000000871759 [09:31:55]line ФД: 165574 [09:31:55]line ФПД: 249758396012681 [09:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093204&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165574&fm=249758396012681&tin=02508201610067®Number=0000000000091764&sum=194300 [09:31:55]written 0, free lines is 4095 [09:31:55]OFD Sender: Processing packet 165574 [packets to send 48, broken 47] [09:31:55]ProducePacketName [09:31:55]name=ofd_packets/00165574 [09:31:55]OFD Sender: To server: pG, [09:31:55]CommunicateWithHost lk.salyk.kg:30040 [09:31:55]ConnectInit lk.salyk.kg [09:31:55]Connected sock=10 [09:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 72 07 01 55 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 7A 71 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC F6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 50 00 00 00 00 07 04 06 00 FC F6 02 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 14 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 86 02 00 35 04 06 00 E3 27 68 79 58 89 31 CF 2C A0 83 A1 5A 25 [09:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 93 2E 47 00 FA 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 86 02 00 F4 03 04 00 87 74 14 67 B6 04 01 00 00 12 3E F9 CF 47 FB 8F 03 [09:31:55]CommunicateWithHost err = 0 [09:31:55]CheckOFDResponse [09:31:55]1017 (14) - 77093643461234 [09:31:55]1041 (16) - 0000000000871759 [09:31:55]1040 (4) - 165574 [09:31:55]1012 (4) - 20.10.2024 03:09 [09:31:55]1206 (1) - 0 [09:31:55]OFD Sender: Remove packet 165574 [09:31:55]ProducePacketName [09:31:55]name=ofd_packets/00165574 [09:31:55]NVStorageDeleteData [09:31:55]Write to MH i2c: 01 00 00 1D CC E9 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 1D CC 00 00 00 00 00 C1 0C BD [09:31:55]RasterBufferAndPrint [09:31:55]line [09:31:55]line [09:31:55]line [09:31:55]line [09:31:55]line [09:31:55]written 0, free lines is 3275 [09:31:55]MH_Cut [09:31:55]Write to MH i2c: D1 01 00 24 CC 01 C2 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: D1 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: D1 01 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: D1 01 00 24 CC 00 C1 [09:31:55]Write to MH i2c: 01 00 00 25 CC F1 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]OFD Sender: No OFD packet to send [09:31:56]*** Cut start [09:31:56]*** Partial cut [09:31:56]*** CUTSNS_PIN = 1 [09:31:56]*** CUTSNS_PIN = 0 [09:31:56]*** Brake cut motor [09:31:56]Read from MH i2c: *** Stop cut motor [09:31:56]*** Cut end [09:31:56]01 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 25 CC 00 00 00 00 00 FF 0F 06 [09:31:56]process_action close_receipt done [09:31:56]requested_data is exist [09:31:56]produce_requested_data [09:31:56]requested_item fm.sn is exist - process it [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 11 00 00 [09:31:56]Write to MH i2c: E2 08 00 26 CC 80 11 00 00 00 00 00 00 6C [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 17 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 17 00 26 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [09:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:31:56]wFMCommunicate OK [09:31:56]requested_item fd.num is exist - process it [09:31:56]SAM_PROTO_GetFieldsCounters [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 13 00 00 [09:31:56]Write to MH i2c: E2 08 00 27 CC 80 13 00 00 00 00 00 00 6F [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 62 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 62 00 27 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 86 02 00 0E 04 04 00 16 02 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 A5 [09:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 86 02 00 0E 04 04 00 16 02 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:31:57]wFMCommunicate OK [09:31:57]SAM_PROTO_GetFieldsCounters done [09:31:57]requested_item shift.num is exist - process it [09:31:57]requested_item shift.opened is exist - process it [09:31:57]req_shift_opened [09:31:57]FM_GetShiftState [09:31:57]SAM_PROTO_GetShiftState [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 13 01 00 [09:31:57]Write to MH i2c: E2 08 00 28 CC 80 13 01 00 00 00 00 00 71 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 0E 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 0E 00 28 CC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B9 [09:31:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:31:57]wFMCommunicate OK [09:31:57]SAM_PROTO_GetShiftState done [09:31:57]FM_GetShiftState done [09:31:57]req_shift_opened done [09:31:57]requested_item shift.open_date is exist - process it [09:31:57]req_shift_open_date [09:31:57]req_shift_open_date done [09:31:57]produce_requested_data done [09:31:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165574,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:31:57]process_action_free close_receipt [09:31:57]json_value_free [09:31:57]json_value_free done [09:31:57]process_json_proto returns [09:31:57]Send response to host [09:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165574,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:31:57]free response buf [09:31:57]execute_script done [09:31:57]execute_script returns [09:31:57]free content buf [09:31:57]Sock 7.Close socket [09:31:57]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:28]accept exits with 9 [09:33:28]New connection [09:33:28]New thread 3066920292 created [09:33:28]Thread 3066776932 joined [09:33:28]Waiting for new connection... [09:33:28] Sock 9.Parse request [09:33:28]Sock 9.Check first char [09:33:28]Sock 9.First char is OK [09:33:28]request: POST /json_proto HTTP/1.0 [09:33:28]Method: POST [09:33:28]URL: /json_proto [09:33:28]Method is POST - this is cgi request [09:33:28]url: /json_proto [09:33:28]query_string will be loaded in cgi processing [09:33:28]execute_cgi json_proto POST (null) [09:33:28]execute_cgi path=json_proto method=POST [09:33:28]POST find Content-Length [09:33:28]Host: 172.17.53.195:8080 [09:33:28]Content-Length: 679 [09:33:28]Content-Type: application/json [09:33:28] [09:33:28]POST finish read [09:33:28]Found Content-Length = 679 [09:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220134", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [09:33:28]execute_script... [09: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)220134", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [09:33:28]POST & json_proto [09:33:28]process_json_proto [09:33:28]json parsed OK: [09:33:28]protocol is kg_v1.0 [09:33:28]action value=close_receipt [09:33:28]process_action close_receipt [09:33:28]cmd_close_receipt [09:33:28]MH_GetDate [09:33:28]Write to MH i2c: F0 00 00 29 CC E4 [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: F0 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: F0 09 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: F0 09 00 29 CC 00 73 CE 14 67 21 48 4A 65 C1 [09:33:28]GetLastDocTimeStamp 1729416724 [09:33:28]current date 1729416819 [09:33:28]FM_GetShiftState [09:33:28]SAM_PROTO_GetShiftState [09:33:28]wFMCommunicate request_size=4 [09:33:28]MH_SAM_APDU [09:33:28]CAPDU: 80 13 01 00 [09:33:28]Write to MH i2c: E2 08 00 2A CC 80 13 01 00 00 00 00 00 73 [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:28]Read from MH i2c: E2 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 0E 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 0E 00 2A CC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BB [09:33:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:33:28]wFMCommunicate OK [09:33:28]SAM_PROTO_GetShiftState done [09:33:28]FM_GetShiftState done [09:33:28]opened in 1729384561 [09:33:28]opened+sec_in_day 1729470961 [09:33:28]quantity*price = 150037 [09:33:28]sum+1 = 150039 [09:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 57 20.10.2024 09:33 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165575 ФПД: 243225399693526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093339&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165575&fm=243225399693526&tin=02508201610067®Number=0000000000091764&sum=150000 [09:33:29]StoreToDocumentArchive [09:33:29]shift 534 fd 165575 [09:33:29]save to /storage/0534/doc_00165575 [09:33:29]save last doc name /storage/0534/doc_00165575 to /storage/kkm_last_doc_name [09:33:29]save OK [09:33:29]Clear old archive folders... [09:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:29]tlvbuf is 014DA950 [09:33:29]SAM_PROTO_ClearQueue [09:33:29]wFMCommunicate request_size=4 [09:33:29]MH_SAM_APDU [09:33:29]CAPDU: 80 09 00 00 [09:33:29]Write to MH i2c: E2 08 00 37 CC 80 09 00 00 00 00 00 00 75 [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:29]Read from MH i2c: E2 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 03 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 03 00 37 CC 00 90 00 77 [09:33:29]RAPDU: 90 00 [09:33:29]wFMCommunicate OK [09:33:29]SAM_PROTO_ClearQueue done [09:33:29]KKMCreateOFDPacket [09:33:29]OFDProtocolAddRootSTLVToBuf [09:33:29]FM_MakeSignedData [09:33:29]FM_MakeSignedData [09:33:29]SAM_PROTO_SignData [09:33:29]wFMCommunicate request_size=4 [09:33:29]MH_SAM_APDU [09:33:29]CAPDU: 80 0D 01 02 [09:33:29]Write to MH i2c: E2 08 00 38 CC 80 0D 01 02 00 00 00 00 7D [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:29]Read from MH i2c: E2 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 03 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 03 00 38 CC 00 90 00 78 [09:33:29]RAPDU: 90 00 [09:33:29]wFMCommunicate OK [09:33:29]wFMCommunicate request_size=255 [09:33:29]MH_SAM_APDU [09: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 39 00 00 00 F4 03 04 00 73 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 86 02 00 35 04 06 00 DD 36 53 8C [09:33:29]Write to MH i2c: E2 02 01 39 CC 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 39 00 00 00 F4 03 04 00 73 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 86 02 00 35 04 06 00 DD 36 53 8C 00 00 CE [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:29]Read from MH i2c: E2 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 03 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 03 00 39 CC 00 90 00 79 [09:33:29]RAPDU: 90 00 [09:33:29]wFMCommunicate OK [09:33:29]wFMCommunicate request_size=7 [09:33:29]MH_SAM_APDU [09:33:29]CAPDU: 80 0D 02 02 02 90 D6 [09:33:29]Write to MH i2c: E2 0A 00 3A CC 80 0D 02 02 02 00 90 D6 00 00 EA [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:29]Read from MH i2c: E2 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 03 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 03 00 3A CC 00 90 00 7A [09:33:29]RAPDU: 90 00 [09:33:29]wFMCommunicate OK [09:33:29]wFMCommunicate request_size=4 [09:33:29]MH_SAM_APDU [09:33:29]CAPDU: 80 0D 03 02 [09:33:29]Write to MH i2c: E2 08 00 3B CC 80 0D 03 02 00 00 00 00 82 [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:29]Read from MH i2c: E2 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 0B 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 0B 00 3B CC 00 33 A4 B1 87 9C DE E0 FE 90 00 EA [09:33:29]RAPDU: 33 A4 B1 87 9C DE E0 FE 90 00 [09:33:29]wFMCommunicate OK [09:33:29]SAM_PROTO_SignData done [09:33:29]FM_MakeSignedData done [09:33:29]CreateOFDProtocolMessage [09:33:29]wFMCommunicate request_size=4 [09:33:29]MH_SAM_APDU [09:33:29]CAPDU: 80 11 00 00 [09:33:29]Write to MH i2c: E2 08 00 3C CC 80 11 00 00 00 00 00 00 82 [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:29]Read from MH i2c: E2 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 17 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 17 00 3C CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [09:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:33:29]wFMCommunicate OK [09:33:29]CreateOFDProtocolMessage done [09:33:29]OFDSenderStorePacket 165575 [09:33:29]StoreOFDPacket docnum=165575 [09:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 08 D6 04 01 72 44 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 39 00 00 00 F4 03 04 00 73 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 86 02 00 35 04 06 00 DD 36 53 8C 90 D6 33 A4 B1 87 9C DE E0 FE [09:33:29]CheckFolder [09:33:29]dirname=/storage/ofd_packets [09:33:29]CheckFolder done [09:33:29]ProducePacketName [09:33:29]name=ofd_packets/00165575 [09:33:29]NVStorageSaveData ofd_packets/00165575 [09:33:29]File name is /storage/ofd_packets/00165575 [09:33:29]Write 298 bytes [09:33:29]NVStorageSaveData done [09:33:29]OFDSenderStorePacket done [09:33:29]KKMCreateOFDPacket done [09:33:29]NVStorageSaveData kkm_last_timestamp [09:33:29]File name is /storage/kkm_last_timestamp [09:33:29]Write 4 bytes [09:33:29]NVStorageSaveData done [09:33:29]ExternCall_PrintAddStr [09:33:29]wPrintStart [09:33:29]Write to MH i2c: 01 00 00 3D CC 09 [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: 01 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: 01 07 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: 01 07 00 3D CC 00 00 00 00 00 FF 0F 1E [09:33:29]RasterBufferAndPrint [09:33:29]line Счет N : (1)220134 [09:33:29]line ИНН: 02508201610067 [09:33:29]line Контрольно-Кассовый Чек [09:33:29]line ПРОДАЖА [09:33:29]line ТРК (МРК, ГНК) : 21 [09:33:29]line Товар: 2710194210 [09:33:29]line ДТ-К-5 [09:33:29]line 19.690 * 76.20 [09:33:29]line = 1500.38 [09:33:29]line НДС 12% НСП 1% [09:33:29]line > о реализуемом товаре [09:33:29]line ОКРУГЛЕНИЕ: -0.38 [09:33:29]line ИТОГО: 1500.00 [09:33:29]line Внесено: 1500.00 [09:33:29]line СДАЧА: 0.00 [09:33:29]line НСП 1% : 13.28 [09:33:29]line НДС 12% : 159.33 [09:33:29]line Наличными: 1500.00 [09:33:29]line Безнал.: 0.00 [09:33:29]line Место: АЗС № 161 "Партнер Нефть" [09:33:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:33:29]line СНО: Общий режим [09:33:29]line Чек 57 20.10.2024 09:33 [09:33:29]line Смена: 534 ФФД: 1.0 [09:33:29]line ЗНМ: 0300000104 [09:33:29]line РНМ: 0000000000091764 [09:33:29]line Версия ККМ: 001 [09:33:29]line ФМ: 0000000000871759 [09:33:29]line ФД: 165575 [09:33:29]line ФПД: 243225399693526 [09:33:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093339&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165575&fm=243225399693526&tin=02508201610067®Number=0000000000091764&sum=150000 [09:33:30]OFD Sender: Processing packet 165575 [packets to send 48, broken 47] [09:33:30]ProducePacketName [09:33:30]name=ofd_packets/00165575 [09:33:30]OFD Sender: To server: pG, [09:33:30]CommunicateWithHost lk.salyk.kg:30040 [09:33:30]ConnectInit lk.salyk.kg [09:33:30]written 0, free lines is 4095 [09:33:30]Connected sock=11 [09:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 08 D6 04 01 72 44 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 39 00 00 00 F4 03 04 00 73 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 86 02 00 35 04 06 00 DD 36 53 8C 90 D6 33 A4 B1 87 9C DE E0 FE [09:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A4 2C 47 00 4D DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 86 02 00 F4 03 04 00 E6 74 14 67 B6 04 01 00 00 05 C4 1E B2 7B F0 17 74 [09:33:30]CommunicateWithHost err = 0 [09:33:30]CheckOFDResponse [09:33:30]1017 (14) - 77093643461234 [09:33:30]1041 (16) - 0000000000871759 [09:33:30]1040 (4) - 165575 [09:33:30]1012 (4) - 20.10.2024 03:11 [09:33:30]1206 (1) - 0 [09:33:30]OFD Sender: Remove packet 165575 [09:33:30]ProducePacketName [09:33:30]name=ofd_packets/00165575 [09:33:30]NVStorageDeleteData [09:33:30]Write to MH i2c: 01 00 00 68 CC 34 [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: 01 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: 01 07 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: 01 07 00 68 CC 00 00 00 00 00 BE 0C 05 [09:33:30]RasterBufferAndPrint [09:33:30]line [09:33:30]line [09:33:30]line [09:33:30]line [09:33:30]line [09:33:30]written 0, free lines is 3268 [09:33:30]MH_Cut [09:33:30]Write to MH i2c: D1 01 00 6F CC 01 0D [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: D1 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: D1 01 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: D1 01 00 6F CC 00 0C [09:33:30]Write to MH i2c: 01 00 00 70 CC 3C [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:31]OFD Sender: No OFD packet to send [09:33:31]*** Cut start [09:33:31]*** Partial cut [09:33:31]*** CUTSNS_PIN = 1 [09:33:31]*** CUTSNS_PIN = 0 [09:33:31]*** Brake cut motor [09:33:32]Read from MH i2c: 01 [09:33:32]MH_I2C_Read... [09:33:32]*** Stop cut motor [09:33:32]*** Cut end [09:33:32]Read from MH i2c: 01 07 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 07 00 70 CC 00 00 00 00 00 FF 0F 51 [09:33:32]process_action close_receipt done [09:33:32]requested_data is exist [09:33:32]produce_requested_data [09:33:32]requested_item fm.sn is exist - process it [09:33:32]wFMCommunicate request_size=4 [09:33:32]MH_SAM_APDU [09:33:32]CAPDU: 80 11 00 00 [09:33:32]Write to MH i2c: E2 08 00 71 CC 80 11 00 00 00 00 00 00 B7 [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:32]Read from MH i2c: E2 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 17 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 17 00 71 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [09:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:33:32]wFMCommunicate OK [09:33:32]requested_item fd.num is exist - process it [09:33:32]SAM_PROTO_GetFieldsCounters [09:33:32]wFMCommunicate request_size=4 [09:33:32]MH_SAM_APDU [09:33:32]CAPDU: 80 13 00 00 [09:33:32]Write to MH i2c: E2 08 00 72 CC 80 13 00 00 00 00 00 00 BA [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:32]Read from MH i2c: E2 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 62 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 62 00 72 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [09:33:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:32]wFMCommunicate OK [09:33:32]SAM_PROTO_GetFieldsCounters done [09:33:32]requested_item shift.num is exist - process it [09:33:32]requested_item shift.opened is exist - process it [09:33:32]req_shift_opened [09:33:32]FM_GetShiftState [09:33:32]SAM_PROTO_GetShiftState [09:33:32]wFMCommunicate request_size=4 [09:33:32]MH_SAM_APDU [09:33:32]CAPDU: 80 13 01 00 [09:33:32]Write to MH i2c: E2 08 00 73 CC 80 13 01 00 00 00 00 00 BC [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:32]Read from MH i2c: E2 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 0E 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: E2 0E 00 73 CC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 04 [09:33:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:33:32]wFMCommunicate OK [09:33:32]SAM_PROTO_GetShiftState done [09:33:32]FM_GetShiftState done [09:33:32]req_shift_opened done [09:33:32]requested_item shift.open_date is exist - process it [09:33:32]req_shift_open_date [09:33:32]req_shift_open_date done [09:33:32]produce_requested_data done [09:33:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165575,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:33:32]process_action_free close_receipt [09:33:32]json_value_free [09:33:32]json_value_free done [09:33:32]process_json_proto returns [09:33:32]Send response to host [09:33:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165575,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:33:32]free response buf [09:33:32]execute_script done [09:33:32]execute_script returns [09:33:32]free content buf [09:33:32]Sock 9.Close socket [09:33:32]Sock 9.Thread stoped [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:20]accept exits with 7 [09:35:20]New connection [09:35:20]New thread 3066776932 created [09:35:20]Thread 3066920292 joined [09:35:20]Waiting for new connection... [09:35:20] Sock 7.Parse request [09:35:20]Sock 7.Check first char [09:35:20]Sock 7.First char is OK [09:35:20]request: POST /json_proto HTTP/1.0 [09:35:20]Method: POST [09:35:20]URL: /json_proto [09:35:20]Method is POST - this is cgi request [09:35:20]url: /json_proto [09:35:20]query_string will be loaded in cgi processing [09:35:20]execute_cgi json_proto POST (null) [09:35:20]execute_cgi path=json_proto method=POST [09:35:20]POST find Content-Length [09:35:20]Host: 172.17.53.195:8080 [09:35:20]Content-Length: 679 [09:35:20]Content-Type: application/json [09:35:20] [09:35:20]POST finish read [09:35:20]Found Content-Length = 679 [09:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220135", "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" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:20]execute_script... [09:35: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)220135", "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" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:20]POST & json_proto [09:35:20]process_json_proto [09:35:20]json parsed OK: [09:35:20]protocol is kg_v1.0 [09:35:20]action value=close_receipt [09:35:20]process_action close_receipt [09:35:20]cmd_close_receipt [09:35:20]MH_GetDate [09:35:20]Write to MH i2c: F0 00 00 74 CC 2F [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 09 00 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 09 00 74 CC 00 E4 CE 14 67 21 48 4A 65 7D [09:35:20]GetLastDocTimeStamp 1729416819 [09:35:20]current date 1729416932 [09:35:20]FM_GetShiftState [09:35:20]SAM_PROTO_GetShiftState [09:35:20]wFMCommunicate request_size=4 [09:35:20]MH_SAM_APDU [09:35:20]CAPDU: 80 13 01 00 [09:35:20]Write to MH i2c: E2 08 00 75 CC 80 13 01 00 00 00 00 00 BE [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:20]Read from MH i2c: E2 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 0E 00 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 0E 00 75 CC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 06 [09:35:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:35:20]wFMCommunicate OK [09:35:20]SAM_PROTO_GetShiftState done [09:35:20]FM_GetShiftState done [09:35:20]opened in 1729384561 [09:35:20]opened+sec_in_day 1729470961 [09:35:20]quantity*price = 199948 [09:35:20]sum+1 = 199950 [09:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 58 20.10.2024 09:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165576 ФПД: 61328161906631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093532&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165576&fm=61328161906631&tin=02508201610067®Number=0000000000091764&sum=199900 [09:35:21]StoreToDocumentArchive [09:35:21]shift 534 fd 165576 [09:35:21]save to /storage/0534/doc_00165576 [09:35:21]save last doc name /storage/0534/doc_00165576 to /storage/kkm_last_doc_name [09:35:21]save OK [09:35:21]Clear old archive folders... [09:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:35:21]tlvbuf is 0163FC40 [09:35:21]SAM_PROTO_ClearQueue [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 09 00 00 [09:35:21]Write to MH i2c: E2 08 00 82 CC 80 09 00 00 00 00 00 00 C0 [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 82 CC 00 90 00 C2 [09:35:21]RAPDU: 90 00 [09:35:21]wFMCommunicate OK [09:35:21]SAM_PROTO_ClearQueue done [09:35:21]KKMCreateOFDPacket [09:35:21]OFDProtocolAddRootSTLVToBuf [09:35:21]FM_MakeSignedData [09:35:21]FM_MakeSignedData [09:35:21]SAM_PROTO_SignData [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 0D 01 02 [09:35:21]Write to MH i2c: E2 08 00 83 CC 80 0D 01 02 00 00 00 00 C8 [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 83 CC 00 90 00 C3 [09:35:21]RAPDU: 90 00 [09:35:21]wFMCommunicate OK [09:35:21]wFMCommunicate request_size=255 [09:35:21]MH_SAM_APDU [09:35: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 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 E4 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 86 02 00 35 04 06 00 37 C7 13 4E [09:35:21]Write to MH i2c: E2 02 01 84 CC 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 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 E4 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 86 02 00 35 04 06 00 37 C7 13 4E 00 00 46 [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 84 CC 00 90 00 C4 [09:35:22]RAPDU: 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=7 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 0D 02 02 02 1F C7 [09:35:22]Write to MH i2c: E2 0A 00 85 CC 80 0D 02 02 02 00 1F C7 00 00 B5 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 85 CC 00 90 00 C5 [09:35:22]RAPDU: 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 0D 03 02 [09:35:22]Write to MH i2c: E2 08 00 86 CC 80 0D 03 02 00 00 00 00 CD [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 0B 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 0B 00 86 CC 00 7D A8 09 78 70 C6 E6 DB 90 00 6B [09:35:22]RAPDU: 7D A8 09 78 70 C6 E6 DB 90 00 [09:35:22]wFMCommunicate OK [09:35:22]SAM_PROTO_SignData done [09:35:22]FM_MakeSignedData done [09:35:22]CreateOFDProtocolMessage [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 11 00 00 [09:35:22]Write to MH i2c: E2 08 00 87 CC 80 11 00 00 00 00 00 00 CD [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 17 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 17 00 87 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 25 [09:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:35:22]wFMCommunicate OK [09:35:22]CreateOFDProtocolMessage done [09:35:22]OFDSenderStorePacket 165576 [09:35:22]StoreOFDPacket docnum=165576 [09:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 24 74 04 01 87 83 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 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 E4 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 86 02 00 35 04 06 00 37 C7 13 4E 1F C7 7D A8 09 78 70 C6 E6 DB [09:35:22]CheckFolder [09:35:22]dirname=/storage/ofd_packets [09:35:22]CheckFolder done [09:35:22]ProducePacketName [09:35:22]name=ofd_packets/00165576 [09:35:22]NVStorageSaveData ofd_packets/00165576 [09:35:22]File name is /storage/ofd_packets/00165576 [09:35:22]Write 298 bytes [09:35:22]NVStorageSaveData done [09:35:22]OFDSenderStorePacket done [09:35:22]KKMCreateOFDPacket done [09:35:22]NVStorageSaveData kkm_last_timestamp [09:35:22]File name is /storage/kkm_last_timestamp [09:35:22]Write 4 bytes [09:35:22]NVStorageSaveData done [09:35:22]ExternCall_PrintAddStr [09:35:22]wPrintStart [09:35:22]Write to MH i2c: 01 00 00 88 CC 54 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 88 CC 00 00 00 00 00 FF 0F 69 [09:35:22]RasterBufferAndPrint [09:35:22]line Счет N : (1)220135 [09:35:22]line ИНН: 02508201610067 [09:35:22]line Контрольно-Кассовый Чек [09:35:22]line ПРОДАЖА [09:35:22]line ТРК (МРК, ГНК) : 11 [09:35:22]line Товар: 2710194210 [09:35:22]line ДТ-К-5 [09:35:22]line 26.240 * 76.20 [09:35:22]line = 1999.49 [09:35:22]line НДС 12% НСП 1% [09:35:22]line > о реализуемом товаре [09:35:22]line ОКРУГЛЕНИЕ: -0.49 [09:35:22]line ИТОГО: 1999.00 [09:35:22]line Внесено: 2000.00 [09:35:22]line СДАЧА: 1.00 [09:35:22]line НСП 1% : 17.69 [09:35:22]line НДС 12% : 212.33 [09:35:22]line Наличными: 1999.00 [09:35:22]line Безнал.: 0.00 [09:35:22]line Место: АЗС № 161 "Партнер Нефть" [09:35:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:35:22]line СНО: Общий режим [09:35:22]line Чек 58 20.10.2024 09:35 [09:35:22]line Смена: 534 ФФД: 1.0 [09:35:22]line ЗНМ: 0300000104 [09:35:22]line РНМ: 0000000000091764 [09:35:22]line Версия ККМ: 001 [09:35:22]line ФМ: 0000000000871759 [09:35:22]line ФД: 165576 [09:35:22]line ФПД: 61328161906631 [09:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093532&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165576&fm=61328161906631&tin=02508201610067®Number=0000000000091764&sum=199900 [09:35:22]OFD Sender: Processing packet 165576 [packets to send 48, broken 47] [09:35:22]ProducePacketName [09:35:22]name=ofd_packets/00165576 [09:35:22]OFD Sender: To server: pG, [09:35:22]CommunicateWithHost lk.salyk.kg:30040 [09:35:22]ConnectInit lk.salyk.kg [09:35:22]written 0, free lines is 4095 [09:35:22]Connected sock=10 [09:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 24 74 04 01 87 83 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 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 E4 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 86 02 00 35 04 06 00 37 C7 13 4E 1F C7 7D A8 09 78 70 C6 E6 DB [09:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6B DF 47 00 2B 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 31 37 35 39 10 04 04 00 C8 86 02 00 F4 03 04 00 56 75 14 67 B6 04 01 00 00 11 6D F7 9F 70 F3 70 4D [09:35:22]CommunicateWithHost err = 0 [09:35:22]CheckOFDResponse [09:35:22]1017 (14) - 77093643461234 [09:35:22]1041 (16) - 0000000000871759 [09:35:22]1040 (4) - 165576 [09:35:22]1012 (4) - 20.10.2024 03:13 [09:35:22]1206 (1) - 0 [09:35:22]OFD Sender: Remove packet 165576 [09:35:22]ProducePacketName [09:35:22]name=ofd_packets/00165576 [09:35:22]NVStorageDeleteData [09:35:23]Write to MH i2c: 01 00 00 B3 CC 7F [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 B3 CC 00 00 00 00 00 C0 0C 52 [09:35:23]RasterBufferAndPrint [09:35:23]line [09:35:23]line [09:35:23]line [09:35:23]line [09:35:23]line [09:35:23]written 0, free lines is 3270 [09:35:23]MH_Cut [09:35:23]Write to MH i2c: D1 01 00 BA CC 01 58 [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D1 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D1 01 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D1 01 00 BA CC 00 57 [09:35:23]Write to MH i2c: 01 00 00 BB CC 87 [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]OFD Sender: No OFD packet to send [09:35:23]*** Cut start [09:35:23]*** Partial cut [09:35:23]*** CUTSNS_PIN = 1 [09:35:23]*** CUTSNS_PIN = 0 [09:35:24]*** Brake cut motor [09:35:24]Read from MH i2c: 01 [09:35:24]MH_I2C_Read... [09:35:24]*** Stop cut motor [09:35:24]*** Cut end [09:35:24]Read from MH i2c: 01 07 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: 01 07 00 BB CC 00 00 00 00 00 FF 0F 9C [09:35:24]process_action close_receipt done [09:35:24]requested_data is exist [09:35:24]produce_requested_data [09:35:24]requested_item fm.sn is exist - process it [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 11 00 00 [09:35:24]Write to MH i2c: E2 08 00 BC CC 80 11 00 00 00 00 00 00 02 [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 17 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 17 00 BC CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [09:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:35:24]wFMCommunicate OK [09:35:24]requested_item fd.num is exist - process it [09:35:24]SAM_PROTO_GetFieldsCounters [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 13 00 00 [09:35:24]Write to MH i2c: E2 08 00 BD CC 80 13 00 00 00 00 00 00 05 [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 62 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 62 00 BD CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [09:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:24]wFMCommunicate OK [09:35:24]SAM_PROTO_GetFieldsCounters done [09:35:24]requested_item shift.num is exist - process it [09:35:24]requested_item shift.opened is exist - process it [09:35:24]req_shift_opened [09:35:24]FM_GetShiftState [09:35:24]SAM_PROTO_GetShiftState [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 13 01 00 [09:35:24]Write to MH i2c: E2 08 00 BE CC 80 13 01 00 00 00 00 00 07 [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 0E 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 0E 00 BE CC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4F [09:35:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:35:24]wFMCommunicate OK [09:35:24]SAM_PROTO_GetShiftState done [09:35:24]FM_GetShiftState done [09:35:24]req_shift_opened done [09:35:24]requested_item shift.open_date is exist - process it [09:35:24]req_shift_open_date [09:35:24]req_shift_open_date done [09:35:24]produce_requested_data done [09:35:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165576,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:35:24]process_action_free close_receipt [09:35:24]json_value_free [09:35:24]json_value_free done [09:35:24]process_json_proto returns [09:35:24]Send response to host [09:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165576,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:35:24]free response buf [09:35:24]execute_script done [09:35:24]execute_script returns [09:35:24]free content buf [09:35:24]Sock 7.Close socket [09:35:24]Sock 7.Thread stoped [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:36]accept exits with 9 [09:35:36]New connection [09:35:36]New thread 3066920292 created [09:35:36]Thread 3066776932 joined [09:35:36]Waiting for new connection... [09:35:36] Sock 9.Parse request [09:35:36]Sock 9.Check first char [09:35:36]Sock 9.First char is OK [09:35:36]request: POST /json_proto HTTP/1.0 [09:35:36]Method: POST [09:35:36]URL: /json_proto [09:35:36]Method is POST - this is cgi request [09:35:36]url: /json_proto [09:35:36]query_string will be loaded in cgi processing [09:35:36]execute_cgi json_proto POST (null) [09:35:36]execute_cgi path=json_proto method=POST [09:35:36]POST find Content-Length [09:35:36]Host: 172.17.53.195:8080 [09:35:36]Content-Length: 677 [09:35:36]Content-Type: application/json [09:35:36] [09:35:36]POST finish read [09:35:36]Found Content-Length = 677 [09:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.040, "sum" : 299.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:36]execute_script... [09:35: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)220136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.040, "sum" : 299.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:36]POST & json_proto [09:35:36]process_json_proto [09:35:36]json parsed OK: [09:35:36]protocol is kg_v1.0 [09:35:36]action value=close_receipt [09:35:36]process_action close_receipt [09:35:36]cmd_close_receipt [09:35:36]MH_GetDate [09:35:36]Write to MH i2c: F0 00 00 BF CC 7A [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 09 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 09 00 BF CC 00 F4 CE 14 67 21 48 4A 65 D8 [09:35:36]GetLastDocTimeStamp 1729416932 [09:35:36]current date 1729416948 [09:35:36]FM_GetShiftState [09:35:36]SAM_PROTO_GetShiftState [09:35:36]wFMCommunicate request_size=4 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 13 01 00 [09:35:36]Write to MH i2c: E2 08 00 C0 CC 80 13 01 00 00 00 00 00 09 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0E 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0E 00 C0 CC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 51 [09:35:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:35:36]wFMCommunicate OK [09:35:36]SAM_PROTO_GetShiftState done [09:35:36]FM_GetShiftState done [09:35:36]opened in 1729384561 [09:35:36]opened+sec_in_day 1729470961 [09:35:36]quantity*price = 29976 [09:35:36]sum+1 = 29978 [09:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 59 20.10.2024 09:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165577 ФПД: 5386515248734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093548&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165577&fm=5386515248734&tin=02508201610067®Number=0000000000091764&sum=29900 [09:35:37]StoreToDocumentArchive [09:35:37]shift 534 fd 165577 [09:35:37]save to /storage/0534/doc_00165577 [09:35:37]save last doc name /storage/0534/doc_00165577 to /storage/kkm_last_doc_name [09:35:37]save OK [09:35:37]Clear old archive folders... [09:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:37]tlvbuf is 016E4F10 [09:35:37]SAM_PROTO_ClearQueue [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 09 00 00 [09:35:37]Write to MH i2c: E2 08 00 CD CC 80 09 00 00 00 00 00 00 0B [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 CD CC 00 90 00 0D [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]SAM_PROTO_ClearQueue done [09:35:37]KKMCreateOFDPacket [09:35:37]OFDProtocolAddRootSTLVToBuf [09:35:37]FM_MakeSignedData [09:35:37]FM_MakeSignedData [09:35:37]SAM_PROTO_SignData [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 01 02 [09:35:37]Write to MH i2c: E2 08 00 CE CC 80 0D 01 02 00 00 00 00 13 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 CE CC 00 90 00 0E [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]wFMCommunicate request_size=255 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F4 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 86 02 00 35 04 06 00 04 [09:35:37]Write to MH i2c: E2 02 01 CF CC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F4 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 86 02 00 35 04 06 00 04 00 00 8F [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 CF CC 00 90 00 0F [09:35:38]RAPDU: 90 00 [09:35:38]wFMCommunicate OK [09:35:38]wFMCommunicate request_size=10 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 0D 02 02 05 E6 25 53 F6 5E [09:35:38]Write to MH i2c: E2 0D 00 D0 CC 80 0D 02 02 05 00 E6 25 53 F6 5E 00 00 D2 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 D0 CC 00 90 00 10 [09:35:38]RAPDU: 90 00 [09:35:38]wFMCommunicate OK [09:35:38]wFMCommunicate request_size=4 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 0D 03 02 [09:35:38]Write to MH i2c: E2 08 00 D1 CC 80 0D 03 02 00 00 00 00 18 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0B 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0B 00 D1 CC 00 1F DD F4 5A D5 7E C8 0B 90 00 89 [09:35:38]RAPDU: 1F DD F4 5A D5 7E C8 0B 90 00 [09:35:38]wFMCommunicate OK [09:35:38]SAM_PROTO_SignData done [09:35:38]FM_MakeSignedData done [09:35:38]CreateOFDProtocolMessage [09:35:38]wFMCommunicate request_size=4 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 11 00 00 [09:35:38]Write to MH i2c: E2 08 00 D2 CC 80 11 00 00 00 00 00 00 18 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 17 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 17 00 D2 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 70 [09:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:35:38]wFMCommunicate OK [09:35:38]CreateOFDProtocolMessage done [09:35:38]OFDSenderStorePacket 165577 [09:35:38]StoreOFDPacket docnum=165577 [09:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 62 07 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F4 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 86 02 00 35 04 06 00 04 E6 25 53 F6 5E 1F DD F4 5A D5 7E C8 0B [09:35:38]CheckFolder [09:35:38]dirname=/storage/ofd_packets [09:35:38]CheckFolder done [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00165577 [09:35:38]NVStorageSaveData ofd_packets/00165577 [09:35:38]File name is /storage/ofd_packets/00165577 [09:35:38]Write 301 bytes [09:35:38]NVStorageSaveData done [09:35:38]OFDSenderStorePacket done [09:35:38]KKMCreateOFDPacket done [09:35:38]NVStorageSaveData kkm_last_timestamp [09:35:38]File name is /storage/kkm_last_timestamp [09:35:38]Write 4 bytes [09:35:38]NVStorageSaveData done [09:35:38]ExternCall_PrintAddStr [09:35:38]wPrintStart [09:35:38]Write to MH i2c: 01 00 00 D3 CC 9F [09:35:38]OFD Sender: Processing packet 165577 [packets to send 48, broken 47] [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00165577 [09:35:38]OFD Sender: To server: pG, [09:35:38]CommunicateWithHost lk.salyk.kg:30040 [09:35:38]ConnectInit lk.salyk.kg [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 D3 CC 00 00 00 00 00 FF 0F B4 [09:35:38]RasterBufferAndPrint [09:35:38]line Счет N : (1)220136 [09:35:38]line ИНН: 02508201610067 [09:35:38]line Контрольно-Кассовый Чек [09:35:38]line ПРОДАЖА [09:35:38]line ТРК (МРК, ГНК) : 44 [09:35:38]line Товар: 2710124500 [09:35:38]line Аи-95-К-5 [09:35:38]line 4.040 * 74.20 [09:35:38]line = 299.77 [09:35:38]line НДС 12% НСП 1% [09:35:38]line > о реализуемом товаре [09:35:38]line ОКРУГЛЕНИЕ: -0.77 [09:35:38]line ИТОГО: 299.00 [09:35:38]line Внесено: 300.00 [09:35:38]line СДАЧА: 1.00 [09:35:38]line НСП 1% : 2.65 [09:35:38]line НДС 12% : 31.83 [09:35:38]line Наличными: 299.00 [09:35:38]line Безнал.: 0.00 [09:35:38]line Место: АЗС № 161 "Партнер Нефть" [09:35:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:35:38]line СНО: Общий режим [09:35:38]line Чек 59 20.10.2024 09:35 [09:35:38]line Смена: 534 ФФД: 1.0 [09:35:38]line ЗНМ: 0300000104 [09:35:38]line РНМ: 0000000000091764 [09:35:38]line Версия ККМ: 001 [09:35:38]line ФМ: 0000000000871759 [09:35:38]line ФД: 165577 [09:35:38]line ФПД: 5386515248734 [09:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093548&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165577&fm=5386515248734&tin=02508201610067®Number=0000000000091764&sum=29900 [09:35:38]Connected sock=10 [09:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 62 07 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F4 CE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 86 02 00 35 04 06 00 04 E6 25 53 F6 5E 1F DD F4 5A D5 7E C8 0B [09:35:38]written 0, free lines is 4095 [09:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 44 47 00 FD 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 31 37 35 39 10 04 04 00 C9 86 02 00 F4 03 04 00 66 75 14 67 B6 04 01 00 00 AE B9 2E B5 B3 C4 B0 28 [09:35:38]CommunicateWithHost err = 0 [09:35:38]CheckOFDResponse [09:35:38]1017 (14) - 77093643461234 [09:35:38]1041 (16) - 0000000000871759 [09:35:38]1040 (4) - 165577 [09:35:38]1012 (4) - 20.10.2024 03:13 [09:35:38]1206 (1) - 0 [09:35:38]OFD Sender: Remove packet 165577 [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00165577 [09:35:38]NVStorageDeleteData [09:35:39]Write to MH i2c: 01 00 00 FE CC CA [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: 01 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: 01 07 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: 01 07 00 FE CC 00 00 00 00 00 B4 0C 91 [09:35:39]RasterBufferAndPrint [09:35:39]line [09:35:39]line [09:35:39]line [09:35:39]line [09:35:39]line [09:35:39]written 0, free lines is 3259 [09:35:39]MH_Cut [09:35:39]Write to MH i2c: D1 01 00 05 CD 01 A4 [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: D1 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: D1 01 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: D1 01 00 05 CD 00 A3 [09:35:39]Write to MH i2c: 01 00 00 06 CD D3 [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]OFD Sender: No OFD packet to send [09:35:39]*** Cut start [09:35:39]*** Partial cut [09:35:39]*** CUTSNS_PIN = 1 [09:35:39]*** CUTSNS_PIN = 0 [09:35:40]*** Brake cut motor [09:35:40]Read from MH i2c: 01 [09:35:40]MH_I2C_Read... [09:35:40]*** Stop cut motor [09:35:40]*** Cut end [09:35:40]Read from MH i2c: 01 07 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: 01 07 00 06 CD 00 00 00 00 00 FF 0F E8 [09:35:40]process_action close_receipt done [09:35:40]requested_data is exist [09:35:40]produce_requested_data [09:35:40]requested_item fm.sn is exist - process it [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 11 00 00 [09:35:40]Write to MH i2c: E2 08 00 07 CD 80 11 00 00 00 00 00 00 4E [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 17 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 17 00 07 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [09:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:35:40]wFMCommunicate OK [09:35:40]requested_item fd.num is exist - process it [09:35:40]SAM_PROTO_GetFieldsCounters [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 13 00 00 [09:35:40]Write to MH i2c: E2 08 00 08 CD 80 13 00 00 00 00 00 00 51 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 62 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 62 00 08 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:40]wFMCommunicate OK [09:35:40]SAM_PROTO_GetFieldsCounters done [09:35:40]requested_item shift.num is exist - process it [09:35:40]requested_item shift.opened is exist - process it [09:35:40]req_shift_opened [09:35:40]FM_GetShiftState [09:35:40]SAM_PROTO_GetShiftState [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 13 01 00 [09:35:40]Write to MH i2c: E2 08 00 09 CD 80 13 01 00 00 00 00 00 53 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 0E 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 0E 00 09 CD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9B [09:35:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:35:40]wFMCommunicate OK [09:35:40]SAM_PROTO_GetShiftState done [09:35:40]FM_GetShiftState done [09:35:40]req_shift_opened done [09:35:40]requested_item shift.open_date is exist - process it [09:35:40]req_shift_open_date [09:35:40]req_shift_open_date done [09:35:40]produce_requested_data done [09:35:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165577,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:35:40]process_action_free close_receipt [09:35:40]json_value_free [09:35:40]json_value_free done [09:35:40]process_json_proto returns [09:35:40]Send response to host [09:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165577,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:35:40]free response buf [09:35:40]execute_script done [09:35:40]execute_script returns [09:35:40]free content buf [09:35:40]Sock 9.Close socket [09:35:40]Sock 9.Thread stoped [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:41]accept exits with 7 [09:44:41]New connection [09:44:41]New thread 3066776932 created [09:44:41]Thread 3066920292 joined [09:44:41]Waiting for new connection... [09:44:41] Sock 7.Parse request [09:44:41]Sock 7.Check first char [09:44:41]Sock 7.First char is OK [09:44:41]request: POST /json_proto HTTP/1.0 [09:44:41]Method: POST [09:44:41]URL: /json_proto [09:44:41]Method is POST - this is cgi request [09:44:41]url: /json_proto [09:44:41]query_string will be loaded in cgi processing [09:44:41]execute_cgi json_proto POST (null) [09:44:41]execute_cgi path=json_proto method=POST [09:44:41]POST find Content-Length [09:44:41]Host: 172.17.53.195:8080 [09:44:41]Content-Length: 677 [09:44:41]Content-Type: application/json [09:44:41] [09:44:41]POST finish read [09:44:41]Found Content-Length = 677 [09:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.430, "sum" : 699.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:41]execute_script... [09:44: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)220138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.430, "sum" : 699.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:41]POST & json_proto [09:44:41]process_json_proto [09:44:41]json parsed OK: [09:44:41]protocol is kg_v1.0 [09:44:41]action value=close_receipt [09:44:41]process_action close_receipt [09:44:41]cmd_close_receipt [09:44:41]MH_GetDate [09:44:41]Write to MH i2c: F0 00 00 0A CD C6 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: F0 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: F0 09 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: F0 09 00 0A CD 00 15 D1 14 67 21 48 4A 65 48 [09:44:41]GetLastDocTimeStamp 1729416948 [09:44:41]current date 1729417493 [09:44:41]FM_GetShiftState [09:44:41]SAM_PROTO_GetShiftState [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 13 01 00 [09:44:41]Write to MH i2c: E2 08 00 0B CD 80 13 01 00 00 00 00 00 55 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 0E 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 0E 00 0B CD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9D [09:44:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:44:41]wFMCommunicate OK [09:44:41]SAM_PROTO_GetShiftState done [09:44:41]FM_GetShiftState done [09:44:41]opened in 1729384561 [09:44:41]opened+sec_in_day 1729470961 [09:44:41]quantity*price = 69970 [09:44:41]sum+1 = 69972 [09:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 699.00 Внесено: 700.00 СДАЧА: 1.00 НСП 1% : 6.19 НДС 12% : 74.30 Наличными: 699.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 60 20.10.2024 09:44 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165578 ФПД: 111264868745299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165578&fm=111264868745299&tin=02508201610067®Number=0000000000091764&sum=69900 [09:44:42]StoreToDocumentArchive [09:44:42]shift 534 fd 165578 [09:44:42]save to /storage/0534/doc_00165578 [09:44:42]save last doc name /storage/0534/doc_00165578 to /storage/kkm_last_doc_name [09:44:42]save OK [09:44:42]Clear old archive folders... [09:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:42]tlvbuf is 014B8330 [09:44:42]SAM_PROTO_ClearQueue [09:44:42]wFMCommunicate request_size=4 [09:44:42]MH_SAM_APDU [09:44:42]CAPDU: 80 09 00 00 [09:44:42]Write to MH i2c: E2 08 00 18 CD 80 09 00 00 00 00 00 00 57 [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 [09:44:42]MH_I2C_Read... [09:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:42]Read from MH i2c: E2 03 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 03 00 18 CD 00 90 00 59 [09:44:42]RAPDU: 90 00 [09:44:42]wFMCommunicate OK [09:44:42]SAM_PROTO_ClearQueue done [09:44:42]KKMCreateOFDPacket [09:44:42]OFDProtocolAddRootSTLVToBuf [09:44:42]FM_MakeSignedData [09:44:42]FM_MakeSignedData [09:44:42]SAM_PROTO_SignData [09:44:42]wFMCommunicate request_size=4 [09:44:42]MH_SAM_APDU [09:44:42]CAPDU: 80 0D 01 02 [09:44:42]Write to MH i2c: E2 08 00 19 CD 80 0D 01 02 00 00 00 00 5F [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:42]Read from MH i2c: E2 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 03 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 03 00 19 CD 00 90 00 5A [09:44:42]RAPDU: 90 00 [09:44:42]wFMCommunicate OK [09:44:42]wFMCommunicate request_size=255 [09:44:42]MH_SAM_APDU [09:44: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 53 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1D 00 00 00 00 07 04 06 00 0C 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 3C 00 00 00 F4 03 04 00 15 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 86 02 00 35 04 06 00 65 [09:44:42]Write to MH i2c: E2 02 01 1A CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 53 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1D 00 00 00 00 07 04 06 00 0C 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 3C 00 00 00 F4 03 04 00 15 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 86 02 00 35 04 06 00 65 00 00 23 [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 03 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 03 00 1A CD 00 90 00 5B [09:44:43]RAPDU: 90 00 [09:44:43]wFMCommunicate OK [09:44:43]wFMCommunicate request_size=10 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 0D 02 02 05 31 DE FA 40 53 [09:44:43]Write to MH i2c: E2 0D 00 1B CD 80 0D 02 02 05 00 31 DE FA 40 53 00 00 08 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 03 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 03 00 1B CD 00 90 00 5C [09:44:43]RAPDU: 90 00 [09:44:43]wFMCommunicate OK [09:44:43]wFMCommunicate request_size=4 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 0D 03 02 [09:44:43]Write to MH i2c: E2 08 00 1C CD 80 0D 03 02 00 00 00 00 64 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 0B 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 0B 00 1C CD 00 5E 69 B1 5E B3 6E 73 B4 90 00 83 [09:44:43]RAPDU: 5E 69 B1 5E B3 6E 73 B4 90 00 [09:44:43]wFMCommunicate OK [09:44:43]SAM_PROTO_SignData done [09:44:43]FM_MakeSignedData done [09:44:43]CreateOFDProtocolMessage [09:44:43]wFMCommunicate request_size=4 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 11 00 00 [09:44:43]Write to MH i2c: E2 08 00 1D CD 80 11 00 00 00 00 00 00 64 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 17 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 17 00 1D CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [09:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:43]wFMCommunicate OK [09:44:43]CreateOFDProtocolMessage done [09:44:43]OFDSenderStorePacket 165578 [09:44:43]StoreOFDPacket docnum=165578 [09:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 06 B1 07 01 43 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 53 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1D 00 00 00 00 07 04 06 00 0C 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 3C 00 00 00 F4 03 04 00 15 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 86 02 00 35 04 06 00 65 31 DE FA 40 53 5E 69 B1 5E B3 6E 73 B4 [09:44:43]CheckFolder [09:44:43]dirname=/storage/ofd_packets [09:44:43]CheckFolder done [09:44:43]ProducePacketName [09:44:43]name=ofd_packets/00165578 [09:44:43]NVStorageSaveData ofd_packets/00165578 [09:44:43]File name is /storage/ofd_packets/00165578 [09:44:43]Write 301 bytes [09:44:43]NVStorageSaveData done [09:44:43]OFDSenderStorePacket done [09:44:43]KKMCreateOFDPacket done [09:44:43]NVStorageSaveData kkm_last_timestamp [09:44:43]File name is /storage/kkm_last_timestamp [09:44:43]Write 4 bytes [09:44:43]NVStorageSaveData done [09:44:43]ExternCall_PrintAddStr [09:44:43]wPrintStart [09:44:43]Write to MH i2c: 01 00 00 1E CD EB [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 1E CD 00 00 00 00 00 FF 0F 00 [09:44:43]RasterBufferAndPrint [09:44:43]line Счет N : (1)220138 [09:44:43]line ИНН: 02508201610067 [09:44:43]line Контрольно-Кассовый Чек [09:44:43]line ПРОДАЖА [09:44:43]line ТРК (МРК, ГНК) : 14 [09:44:43]line Товар: 2710124500 [09:44:43]line Аи-95-К-5 [09:44:43]line 9.430 * 74.20 [09:44:43]line = 699.71 [09:44:43]line НДС 12% НСП 1% [09:44:43]line > о реализуемом товаре [09:44:43]line ОКРУГЛЕНИЕ: -0.71 [09:44:43]line ИТОГО: 699.00 [09:44:43]line Внесено: 700.00 [09:44:43]line СДАЧА: 1.00 [09:44:43]line НСП 1% : 6.19 [09:44:43]line НДС 12% : 74.30 [09:44:43]line Наличными: 699.00 [09:44:43]line Безнал.: 0.00 [09:44:43]line Место: АЗС № 161 "Партнер Нефть" [09:44:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:44:43]line СНО: Общий режим [09:44:43]line Чек 60 20.10.2024 09:44 [09:44:43]line Смена: 534 ФФД: 1.0 [09:44:43]line ЗНМ: 0300000104 [09:44:43]line РНМ: 0000000000091764 [09:44:43]line Версия ККМ: 001 [09:44:43]line ФМ: 0000000000871759 [09:44:43]line ФД: 165578 [09:44:43]line ФПД: 111264868745299 [09:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165578&fm=111264868745299&tin=02508201610067®Number=0000000000091764&sum=69900 [09:44:43]OFD Sender: Processing packet 165578 [packets to send 48, broken 47] [09:44:43]ProducePacketName [09:44:43]name=ofd_packets/00165578 [09:44:43]OFD Sender: To server: pG, [09:44:43]CommunicateWithHost lk.salyk.kg:30040 [09:44:43]ConnectInit lk.salyk.kg [09:44:43]written 0, free lines is 4095 [09:44:43]Connected sock=10 [09:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 06 B1 07 01 43 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 53 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1D 00 00 00 00 07 04 06 00 0C 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 3C 00 00 00 F4 03 04 00 15 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 86 02 00 35 04 06 00 65 31 DE FA 40 53 5E 69 B1 5E B3 6E 73 B4 [09:44:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 75 A1 47 00 8C C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 86 02 00 F4 03 04 00 87 77 14 67 B6 04 01 00 00 41 C4 68 76 1A 8F 80 AB [09:44:43]CommunicateWithHost err = 0 [09:44:43]CheckOFDResponse [09:44:43]1017 (14) - 77093643461234 [09:44:43]1041 (16) - 0000000000871759 [09:44:43]1040 (4) - 165578 [09:44:43]1012 (4) - 20.10.2024 03:22 [09:44:43]1206 (1) - 0 [09:44:43]OFD Sender: Remove packet 165578 [09:44:43]ProducePacketName [09:44:43]name=ofd_packets/00165578 [09:44:43]NVStorageDeleteData [09:44:44]Write to MH i2c: 01 00 00 49 CD 16 [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: 01 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: 01 07 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: 01 07 00 49 CD 00 00 00 00 00 C3 0C EC [09:44:44]RasterBufferAndPrint [09:44:44]line [09:44:44]line [09:44:44]line [09:44:44]line [09:44:44]line [09:44:44]written 0, free lines is 3273 [09:44:44]MH_Cut [09:44:44]Write to MH i2c: D1 01 00 50 CD 01 EF [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: D1 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: D1 01 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: D1 01 00 50 CD 00 EE [09:44:44]Write to MH i2c: 01 00 00 51 CD 1E [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]OFD Sender: No OFD packet to send [09:44:44]*** Cut start [09:44:44]*** Partial cut [09:44:44]*** CUTSNS_PIN = 1 [09:44:44]*** CUTSNS_PIN = 0 [09:44:45]*** Brake cut motor [09:44:45]Read from MH i2c: 01 [09:44:45]MH_I2C_Read... [09:44:45]*** Stop cut motor [09:44:45]*** Cut end [09:44:45]Read from MH i2c: 01 07 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: 01 07 00 51 CD 00 00 00 00 00 FF 0F 33 [09:44:45]process_action close_receipt done [09:44:45]requested_data is exist [09:44:45]produce_requested_data [09:44:45]requested_item fm.sn is exist - process it [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 11 00 00 [09:44:45]Write to MH i2c: E2 08 00 52 CD 80 11 00 00 00 00 00 00 99 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 17 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 17 00 52 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [09:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:45]wFMCommunicate OK [09:44:45]requested_item fd.num is exist - process it [09:44:45]SAM_PROTO_GetFieldsCounters [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 13 00 00 [09:44:45]Write to MH i2c: E2 08 00 53 CD 80 13 00 00 00 00 00 00 9C [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 62 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 62 00 53 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [09:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:45]wFMCommunicate OK [09:44:45]SAM_PROTO_GetFieldsCounters done [09:44:45]requested_item shift.num is exist - process it [09:44:45]requested_item shift.opened is exist - process it [09:44:45]req_shift_opened [09:44:45]FM_GetShiftState [09:44:45]SAM_PROTO_GetShiftState [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 13 01 00 [09:44:45]Write to MH i2c: E2 08 00 54 CD 80 13 01 00 00 00 00 00 9E [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 0E 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 0E 00 54 CD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E6 [09:44:45]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:44:45]wFMCommunicate OK [09:44:45]SAM_PROTO_GetShiftState done [09:44:45]FM_GetShiftState done [09:44:45]req_shift_opened done [09:44:45]requested_item shift.open_date is exist - process it [09:44:45]req_shift_open_date [09:44:45]req_shift_open_date done [09:44:45]produce_requested_data done [09:44:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165578,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:44:45]process_action_free close_receipt [09:44:45]json_value_free [09:44:45]json_value_free done [09:44:45]process_json_proto returns [09:44:45]Send response to host [09:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165578,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:44:45]free response buf [09:44:45]execute_script done [09:44:45]execute_script returns [09:44:45]free content buf [09:44:45]Sock 7.Close socket [09:44:45]Sock 7.Thread stoped [09:44:46]accept exits with 9 [09:44:46]New connection [09:44:46]New thread 3066920292 created [09:44:46]Thread 3066776932 joined [09:44:46]Waiting for new connection... [09:44:46] Sock 9.Parse request [09:44:46]Sock 9.Check first char [09:44:46]Sock 9.First char is OK [09:44:46]request: POST /json_proto HTTP/1.0 [09:44:46]Method: POST [09:44:46]URL: /json_proto [09:44:46]Method is POST - this is cgi request [09:44:46]url: /json_proto [09:44:46]query_string will be loaded in cgi processing [09:44:46]execute_cgi json_proto POST (null) [09:44:46]execute_cgi path=json_proto method=POST [09:44:46]POST find Content-Length [09:44:46]Host: 172.17.53.195:8080 [09:44:46]Content-Length: 766 [09:44:46]Content-Type: application/json [09:44:46] [09:44:46]POST finish read [09:44:46]Found Content-Length = 766 [09:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220137", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:46]execute_script... [09:44: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)220137", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:46]POST & json_proto [09:44:46]process_json_proto [09:44:46]json parsed OK: [09:44:46]protocol is kg_v1.0 [09:44:46]action value=close_receipt [09:44:46]process_action close_receipt [09:44:46]cmd_close_receipt [09:44:46]MH_GetDate [09:44:46]Write to MH i2c: F0 00 00 55 CD 11 [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: F0 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: F0 09 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: F0 09 00 55 CD 00 19 D1 14 67 21 48 4A 65 97 [09:44:46]GetLastDocTimeStamp 1729417493 [09:44:46]current date 1729417497 [09:44:46]FM_GetShiftState [09:44:46]SAM_PROTO_GetShiftState [09:44:46]wFMCommunicate request_size=4 [09:44:46]MH_SAM_APDU [09:44:46]CAPDU: 80 13 01 00 [09:44:46]Write to MH i2c: E2 08 00 56 CD 80 13 01 00 00 00 00 00 A0 [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 [09:44:46]MH_I2C_Read... [09:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:46]Read from MH i2c: E2 0E 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 0E 00 56 CD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E8 [09:44:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:44:46]wFMCommunicate OK [09:44:46]SAM_PROTO_GetShiftState done [09:44:46]FM_GetShiftState done [09:44:46]opened in 1729384561 [09:44:46]opened+sec_in_day 1729470961 [09:44:46]quantity*price = 200025 [09:44:46]sum+1 = 200026 [09:44:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 61 20.10.2024 09:44 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165579 ФПД: 51291110252956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094457&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165579&fm=51291110252956&tin=02508201610067®Number=0000000000091764&sum=200025 [09:44:47]StoreToDocumentArchive [09:44:47]shift 534 fd 165579 [09:44:47]save to /storage/0534/doc_00165579 [09:44:47]save last doc name /storage/0534/doc_00165579 to /storage/kkm_last_doc_name [09:44:47]save OK [09:44:47]Clear old archive folders... [09:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:44:47]tlvbuf is 01897920 [09:44:47]SAM_PROTO_ClearQueue [09:44:47]wFMCommunicate request_size=4 [09:44:47]MH_SAM_APDU [09:44:47]CAPDU: 80 09 00 00 [09:44:47]Write to MH i2c: E2 08 00 63 CD 80 09 00 00 00 00 00 00 A2 [09:44:47]Write i2c OK [09:44:47]MH_I2C_Read... [09:44:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:47]Read from MH i2c: E2 [09:44:47]MH_I2C_Read... [09:44:47]Read from MH i2c: E2 03 00 [09:44:47]MH_I2C_Read... [09:44:47]Read from MH i2c: E2 03 00 63 CD 00 90 00 A4 [09:44:47]RAPDU: 90 00 [09:44:47]wFMCommunicate OK [09:44:47]SAM_PROTO_ClearQueue done [09:44:47]KKMCreateOFDPacket [09:44:47]OFDProtocolAddRootSTLVToBuf [09:44:47]FM_MakeSignedData [09:44:47]FM_MakeSignedData [09:44:47]SAM_PROTO_SignData [09:44:47]wFMCommunicate request_size=4 [09:44:47]MH_SAM_APDU [09:44:47]CAPDU: 80 0D 01 02 [09:44:47]Write to MH i2c: E2 08 00 64 CD 80 0D 01 02 00 00 00 00 AA [09:44:47]Write i2c OK [09:44:47]MH_I2C_Read... [09:44:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:47]Read from MH i2c: E2 [09:44:47]MH_I2C_Read... [09:44:47]Read from MH i2c: E2 03 00 [09:44:47]MH_I2C_Read... [09:44:47]Read from MH i2c: E2 03 00 64 CD 00 90 00 A5 [09:44:47]RAPDU: 90 00 [09:44:47]wFMCommunicate OK [09:44:47]wFMCommunicate request_size=255 [09:44:47]MH_SAM_APDU [09:44: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 19 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 86 02 00 35 04 06 00 2E A6 24 68 [09:44:47]Write to MH i2c: E2 02 01 65 CD 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 19 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 86 02 00 35 04 06 00 2E A6 24 68 00 00 C3 [09:44:47]Write i2c OK [09:44:47]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 03 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 03 00 65 CD 00 90 00 A6 [09:44:48]RAPDU: 90 00 [09:44:48]wFMCommunicate OK [09:44:48]wFMCommunicate request_size=7 [09:44:48]MH_SAM_APDU [09:44:48]CAPDU: 80 0D 02 02 02 21 9C [09:44:48]Write to MH i2c: E2 0A 00 66 CD 80 0D 02 02 02 00 21 9C 00 00 6E [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 03 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 03 00 66 CD 00 90 00 A7 [09:44:48]RAPDU: 90 00 [09:44:48]wFMCommunicate OK [09:44:48]wFMCommunicate request_size=4 [09:44:48]MH_SAM_APDU [09:44:48]CAPDU: 80 0D 03 02 [09:44:48]Write to MH i2c: E2 08 00 67 CD 80 0D 03 02 00 00 00 00 AF [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 0B 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 0B 00 67 CD 00 B6 EC 53 61 66 1F 3E F5 90 00 BE [09:44:48]RAPDU: B6 EC 53 61 66 1F 3E F5 90 00 [09:44:48]wFMCommunicate OK [09:44:48]SAM_PROTO_SignData done [09:44:48]FM_MakeSignedData done [09:44:48]CreateOFDProtocolMessage [09:44:48]wFMCommunicate request_size=4 [09:44:48]MH_SAM_APDU [09:44:48]CAPDU: 80 11 00 00 [09:44:48]Write to MH i2c: E2 08 00 68 CD 80 11 00 00 00 00 00 00 AF [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 17 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 17 00 68 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [09:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:48]wFMCommunicate OK [09:44:48]CreateOFDProtocolMessage done [09:44:48]OFDSenderStorePacket 165579 [09:44:48]StoreOFDPacket docnum=165579 [09:44:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 EE DB 04 01 65 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 19 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 86 02 00 35 04 06 00 2E A6 24 68 21 9C B6 EC 53 61 66 1F 3E F5 [09:44:48]CheckFolder [09:44:48]dirname=/storage/ofd_packets [09:44:48]CheckFolder done [09:44:48]ProducePacketName [09:44:48]name=ofd_packets/00165579 [09:44:48]NVStorageSaveData ofd_packets/00165579 [09:44:48]File name is /storage/ofd_packets/00165579 [09:44:48]Write 298 bytes [09:44:48]NVStorageSaveData done [09:44:48]OFDSenderStorePacket done [09:44:48]KKMCreateOFDPacket done [09:44:48]NVStorageSaveData kkm_last_timestamp [09:44:48]File name is /storage/kkm_last_timestamp [09:44:48]Write 4 bytes [09:44:48]NVStorageSaveData done [09:44:48]ExternCall_PrintAddStr [09:44:48]wPrintStart [09:44:48]Write to MH i2c: 01 00 00 69 CD 36 [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: 01 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: 01 07 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: 01 07 00 69 CD 00 00 00 00 00 FF 0F 4B [09:44:48]RasterBufferAndPrint [09:44:48]line Счет N : (1)220137 [09:44:48]line ИНН: 02508201610067 [09:44:48]line Контрольно-Кассовый Чек [09:44:48]line ПРОДАЖА [09:44:48]line ТРК (МРК, ГНК) : 21 [09:44:48]line Товар: 2710194210 [09:44:48]line ДТ-К-5 [09:44:48]line 26.250 * 76.20 [09:44:48]line = 2000.25 [09:44:48]line НДС 12% НСП 1% [09:44:48]line > о реализуемом товаре [09:44:48]line ИТОГО: 2000.25 [09:44:48]line НСП 1% : 17.70 [09:44:48]line НДС 12% : 212.42 [09:44:48]line Наличными: 0.00 [09:44:48]line Безнал.: 2000.25 [09:44:48]line Место: АЗС № 161 "Партнер Нефть" [09:44:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:44:48]line СНО: Общий режим [09:44:48]line Чек 61 20.10.2024 09:44 [09:44:48]line Смена: 534 ФФД: 1.0 [09:44:48]line ЗНМ: 0300000104 [09:44:48]line РНМ: 0000000000091764 [09:44:48]line Версия ККМ: 001 [09:44:48]line Платежная система: Mbank [09:44:48]line ФМ: 0000000000871759 [09:44:48]line ФД: 165579 [09:44:48]line ФПД: 51291110252956 [09:44:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094457&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165579&fm=51291110252956&tin=02508201610067®Number=0000000000091764&sum=200025 [09:44:48]written 0, free lines is 4095 [09:44:48]OFD Sender: Processing packet 165579 [packets to send 48, broken 47] [09:44:48]ProducePacketName [09:44:48]name=ofd_packets/00165579 [09:44:48]OFD Sender: To server: pG, [09:44:48]CommunicateWithHost lk.salyk.kg:30040 [09:44:48]ConnectInit lk.salyk.kg [09:44:48]Connected sock=10 [09:44:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 EE DB 04 01 65 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 19 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 86 02 00 35 04 06 00 2E A6 24 68 21 9C B6 EC 53 61 66 1F 3E F5 [09:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 21 47 00 81 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 31 37 35 39 10 04 04 00 CB 86 02 00 F4 03 04 00 8C 77 14 67 B6 04 01 00 00 98 3D 1A 6B AD EA C4 8D [09:44:48]CommunicateWithHost err = 0 [09:44:48]CheckOFDResponse [09:44:48]1017 (14) - 77093643461234 [09:44:48]1041 (16) - 0000000000871759 [09:44:48]1040 (4) - 165579 [09:44:48]1012 (4) - 20.10.2024 03:22 [09:44:48]1206 (1) - 0 [09:44:48]OFD Sender: Remove packet 165579 [09:44:48]ProducePacketName [09:44:48]name=ofd_packets/00165579 [09:44:48]NVStorageDeleteData [09:44:48]Write to MH i2c: 01 00 00 92 CD 5F [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: 01 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: 01 07 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: 01 07 00 92 CD 00 00 00 00 00 00 0D 73 [09:44:48]RasterBufferAndPrint [09:44:48]line [09:44:48]line [09:44:48]line [09:44:48]line [09:44:48]line [09:44:48]written 0, free lines is 3338 [09:44:48]MH_Cut [09:44:48]Write to MH i2c: D1 01 00 99 CD 01 38 [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: D1 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: D1 01 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: D1 01 00 99 CD 00 37 [09:44:48]Write to MH i2c: 01 00 00 9A CD 67 [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:49]OFD Sender: No OFD packet to send [09:44:49]*** Cut start [09:44:49]*** Partial cut [09:44:49]*** CUTSNS_PIN = 1 [09:44:49]*** CUTSNS_PIN = 0 [09:44:49]*** Brake cut motor [09:44:50]Read from MH i2c: 01 [09:44:50]MH_I2C_Read... [09:44:50]*** Stop cut motor [09:44:50]*** Cut end [09:44:50]Read from MH i2c: 01 07 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: 01 07 00 9A CD 00 00 00 00 00 FF 0F 7C [09:44:50]process_action close_receipt done [09:44:50]requested_data is exist [09:44:50]produce_requested_data [09:44:50]requested_item fm.sn is exist - process it [09:44:50]wFMCommunicate request_size=4 [09:44:50]MH_SAM_APDU [09:44:50]CAPDU: 80 11 00 00 [09:44:50]Write to MH i2c: E2 08 00 9B CD 80 11 00 00 00 00 00 00 E2 [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:50]Read from MH i2c: E2 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 17 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 17 00 9B CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [09:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:50]wFMCommunicate OK [09:44:50]requested_item fd.num is exist - process it [09:44:50]SAM_PROTO_GetFieldsCounters [09:44:50]wFMCommunicate request_size=4 [09:44:50]MH_SAM_APDU [09:44:50]CAPDU: 80 13 00 00 [09:44:50]Write to MH i2c: E2 08 00 9C CD 80 13 00 00 00 00 00 00 E5 [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:50]Read from MH i2c: E2 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 62 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 62 00 9C CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:44:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:50]wFMCommunicate OK [09:44:50]SAM_PROTO_GetFieldsCounters done [09:44:50]requested_item shift.num is exist - process it [09:44:50]requested_item shift.opened is exist - process it [09:44:50]req_shift_opened [09:44:50]FM_GetShiftState [09:44:50]SAM_PROTO_GetShiftState [09:44:50]wFMCommunicate request_size=4 [09:44:50]MH_SAM_APDU [09:44:50]CAPDU: 80 13 01 00 [09:44:50]Write to MH i2c: E2 08 00 9D CD 80 13 01 00 00 00 00 00 E7 [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:50]Read from MH i2c: E2 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 0E 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 0E 00 9D CD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2F [09:44:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:44:50]wFMCommunicate OK [09:44:50]SAM_PROTO_GetShiftState done [09:44:50]FM_GetShiftState done [09:44:50]req_shift_opened done [09:44:50]requested_item shift.open_date is exist - process it [09:44:50]req_shift_open_date [09:44:50]req_shift_open_date done [09:44:50]produce_requested_data done [09:44:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165579,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:44:50]process_action_free close_receipt [09:44:50]json_value_free [09:44:50]json_value_free done [09:44:50]process_json_proto returns [09:44:50]Send response to host [09:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165579,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:44:50]free response buf [09:44:50]execute_script done [09:44:50]execute_script returns [09:44:50]free content buf [09:44:50]Sock 9.Close socket [09:44:50]Sock 9.Thread stoped [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:25]accept exits with 7 [09:47:25]New connection [09:47:25]New thread 3066776932 created [09:47:25]Thread 3066920292 joined [09:47:25]Waiting for new connection... [09:47:25] Sock 7.Parse request [09:47:25]Sock 7.Check first char [09:47:25]Sock 7.First char is OK [09:47:25]request: POST /json_proto HTTP/1.0 [09:47:25]Method: POST [09:47:25]URL: /json_proto [09:47:25]Method is POST - this is cgi request [09:47:25]url: /json_proto [09:47:25]query_string will be loaded in cgi processing [09:47:25]execute_cgi json_proto POST (null) [09:47:25]execute_cgi path=json_proto method=POST [09:47:25]POST find Content-Length [09:47:25]Host: 172.17.53.195:8080 [09:47:25]Content-Length: 678 [09:47:25]Content-Type: application/json [09:47:25] [09:47:25]POST finish read [09:47:25]Found Content-Length = 678 [09:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:25]execute_script... [09:47: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)220139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:25]POST & json_proto [09:47:25]process_json_proto [09:47:25]json parsed OK: [09:47:25]protocol is kg_v1.0 [09:47:25]action value=close_receipt [09:47:25]process_action close_receipt [09:47:25]cmd_close_receipt [09:47:25]MH_GetDate [09:47:25]Write to MH i2c: F0 00 00 9E CD 5A [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: F0 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: F0 09 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: F0 09 00 9E CD 00 B8 D1 14 67 21 48 4A 65 7F [09:47:25]GetLastDocTimeStamp 1729417497 [09:47:25]current date 1729417656 [09:47:25]FM_GetShiftState [09:47:25]SAM_PROTO_GetShiftState [09:47:25]wFMCommunicate request_size=4 [09:47:25]MH_SAM_APDU [09:47:25]CAPDU: 80 13 01 00 [09:47:25]Write to MH i2c: E2 08 00 9F CD 80 13 01 00 00 00 00 00 E9 [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:25]Read from MH i2c: E2 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 0E 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 0E 00 9F CD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 31 [09:47:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:47:25]wFMCommunicate OK [09:47:25]SAM_PROTO_GetShiftState done [09:47:25]FM_GetShiftState done [09:47:25]opened in 1729384561 [09:47:25]opened+sec_in_day 1729470961 [09:47:25]quantity*price = 70044 [09:47:25]sum+1 = 70045 [09:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 62 20.10.2024 09:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165580 ФПД: 211089317843058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094736&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165580&fm=211089317843058&tin=02508201610067®Number=0000000000091764&sum=70000 [09:47:26]StoreToDocumentArchive [09:47:26]shift 534 fd 165580 [09:47:26]save to /storage/0534/doc_00165580 [09:47:26]save last doc name /storage/0534/doc_00165580 to /storage/kkm_last_doc_name [09:47:26]save OK [09:47:26]Clear old archive folders... [09:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:26]tlvbuf is 018AFE70 [09:47:26]SAM_PROTO_ClearQueue [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 09 00 00 [09:47:26]Write to MH i2c: E2 08 00 AC CD 80 09 00 00 00 00 00 00 EB [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 AC CD 00 90 00 ED [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]SAM_PROTO_ClearQueue done [09:47:26]KKMCreateOFDPacket [09:47:26]OFDProtocolAddRootSTLVToBuf [09:47:26]FM_MakeSignedData [09:47:26]FM_MakeSignedData [09:47:26]SAM_PROTO_SignData [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 01 02 [09:47:26]Write to MH i2c: E2 08 00 AD CD 80 0D 01 02 00 00 00 00 F3 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 AD CD 00 90 00 EE [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=255 [09:47:26]MH_SAM_APDU [09:47: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B8 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 86 02 00 35 04 06 00 BF [09:47:26]Write to MH i2c: E2 02 01 AE CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B8 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 86 02 00 35 04 06 00 BF 00 00 06 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 AE CD 00 90 00 EF [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=10 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 02 02 05 FC 0F CE 50 72 [09:47:26]Write to MH i2c: E2 0D 00 AF CD 80 0D 02 02 05 00 FC 0F CE 50 72 00 00 9B [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 AF CD 00 90 00 F0 [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 03 02 [09:47:26]Write to MH i2c: E2 08 00 B0 CD 80 0D 03 02 00 00 00 00 F8 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 0B 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 0B 00 B0 CD 00 A5 B2 D4 9A 58 85 41 93 90 00 6F [09:47:26]RAPDU: A5 B2 D4 9A 58 85 41 93 90 00 [09:47:26]wFMCommunicate OK [09:47:26]SAM_PROTO_SignData done [09:47:26]FM_MakeSignedData done [09:47:26]CreateOFDProtocolMessage [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 11 00 00 [09:47:26]Write to MH i2c: E2 08 00 B1 CD 80 11 00 00 00 00 00 00 F8 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 17 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 17 00 B1 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 50 [09:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:47:26]wFMCommunicate OK [09:47:26]CreateOFDProtocolMessage done [09:47:26]OFDSenderStorePacket 165580 [09:47:26]StoreOFDPacket docnum=165580 [09:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 F3 07 01 04 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B8 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 86 02 00 35 04 06 00 BF FC 0F CE 50 72 A5 B2 D4 9A 58 85 41 93 [09:47:26]CheckFolder [09:47:26]dirname=/storage/ofd_packets [09:47:26]CheckFolder done [09:47:26]ProducePacketName [09:47:26]name=ofd_packets/00165580 [09:47:26]NVStorageSaveData ofd_packets/00165580 [09:47:26]File name is /storage/ofd_packets/00165580 [09:47:26]Write 301 bytes [09:47:26]NVStorageSaveData done [09:47:26]OFDSenderStorePacket done [09:47:26]KKMCreateOFDPacket done [09:47:26]NVStorageSaveData kkm_last_timestamp [09:47:26]File name is /storage/kkm_last_timestamp [09:47:26]Write 4 bytes [09:47:26]NVStorageSaveData done [09:47:26]ExternCall_PrintAddStr [09:47:26]wPrintStart [09:47:26]Write to MH i2c: 01 00 00 B2 CD 7F [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 07 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 07 00 B2 CD 00 00 00 00 00 FF 0F 94 [09:47:26]RasterBufferAndPrint [09:47:26]line Счет N : (1)220139 [09:47:26]line ИНН: 02508201610067 [09:47:26]line Контрольно-Кассовый Чек [09:47:26]line ПРОДАЖА [09:47:26]line ТРК (МРК, ГНК) : 33 [09:47:26]line Товар: 2710124130 [09:47:26]line Аи-92-К-5 [09:47:26]line 10.470 * 66.90 [09:47:26]line = 700.44 [09:47:26]line НДС 12% НСП 1% [09:47:26]line > о реализуемом товаре [09:47:26]line ОКРУГЛЕНИЕ: -0.44 [09:47:26]line ИТОГО: 700.00 [09:47:26]line Внесено: 700.00 [09:47:26]line СДАЧА: 0.00 [09:47:26]line НСП 1% : 6.20 [09:47:26]line НДС 12% : 74.38 [09:47:26]line Наличными: 700.00 [09:47:26]line Безнал.: 0.00 [09:47:26]line Место: АЗС № 161 "Партнер Нефть" [09:47:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:47:26]line СНО: Общий режим [09:47:26]line Чек 62 20.10.2024 09:47 [09:47:26]line Смена: 534 ФФД: 1.0 [09:47:26]line ЗНМ: 0300000104 [09:47:26]line РНМ: 0000000000091764 [09:47:26]line Версия ККМ: 001 [09:47:26]line ФМ: 0000000000871759 [09:47:26]line ФД: 165580 [09:47:26]line ФПД: 211089317843058 [09:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094736&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165580&fm=211089317843058&tin=02508201610067®Number=0000000000091764&sum=70000 [09:47:27]OFD Sender: Processing packet 165580 [packets to send 48, broken 47] [09:47:27]ProducePacketName [09:47:27]name=ofd_packets/00165580 [09:47:27]OFD Sender: To server: pG, [09:47:27]CommunicateWithHost lk.salyk.kg:30040 [09:47:27]ConnectInit lk.salyk.kg [09:47:27]written 0, free lines is 4095 [09:47:27]Connected sock=9 [09:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 F3 07 01 04 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B8 D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 86 02 00 35 04 06 00 BF FC 0F CE 50 72 A5 B2 D4 9A 58 85 41 93 [09:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B9 2A 47 00 C5 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 31 37 35 39 10 04 04 00 CC 86 02 00 F4 03 04 00 2B 78 14 67 B6 04 01 00 00 42 0C B8 7A 9D 75 7F B9 [09:47:27]CommunicateWithHost err = 0 [09:47:27]CheckOFDResponse [09:47:27]1017 (14) - 77093643461234 [09:47:27]1041 (16) - 0000000000871759 [09:47:27]1040 (4) - 165580 [09:47:27]1012 (4) - 20.10.2024 03:25 [09:47:27]1206 (1) - 0 [09:47:27]OFD Sender: Remove packet 165580 [09:47:27]ProducePacketName [09:47:27]name=ofd_packets/00165580 [09:47:27]NVStorageDeleteData [09:47:27]Write to MH i2c: 01 00 00 DD CD AA [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 DD CD 00 00 00 00 00 B8 0C 75 [09:47:27]RasterBufferAndPrint [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]written 0, free lines is 3263 [09:47:27]MH_Cut [09:47:27]Write to MH i2c: D1 01 00 E4 CD 01 83 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 01 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 01 00 E4 CD 00 82 [09:47:27]Write to MH i2c: 01 00 00 E5 CD B2 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]OFD Sender: No OFD packet to send [09:47:28]*** Cut start [09:47:28]*** Partial cut [09:47:28]*** CUTSNS_PIN = 1 [09:47:28]*** CUTSNS_PIN = 0 [09:47:28]*** Brake cut motor [09:47:28]Read from MH i2c: 01 [09:47:28]MH_I2C_Read... [09:47:28]*** Stop cut motor [09:47:29]*** Cut end [09:47:29]Read from MH i2c: 01 07 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: 01 07 00 E5 CD 00 00 00 00 00 FF 0F C7 [09:47:29]process_action close_receipt done [09:47:29]requested_data is exist [09:47:29]produce_requested_data [09:47:29]requested_item fm.sn is exist - process it [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 11 00 00 [09:47:29]Write to MH i2c: E2 08 00 E6 CD 80 11 00 00 00 00 00 00 2D [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 17 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 17 00 E6 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [09:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:47:29]wFMCommunicate OK [09:47:29]requested_item fd.num is exist - process it [09:47:29]SAM_PROTO_GetFieldsCounters [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 13 00 00 [09:47:29]Write to MH i2c: E2 08 00 E7 CD 80 13 00 00 00 00 00 00 30 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 62 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 62 00 E7 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:29]wFMCommunicate OK [09:47:29]SAM_PROTO_GetFieldsCounters done [09:47:29]requested_item shift.num is exist - process it [09:47:29]requested_item shift.opened is exist - process it [09:47:29]req_shift_opened [09:47:29]FM_GetShiftState [09:47:29]SAM_PROTO_GetShiftState [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 13 01 00 [09:47:29]Write to MH i2c: E2 08 00 E8 CD 80 13 01 00 00 00 00 00 32 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 0E 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 0E 00 E8 CD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7A [09:47:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:47:29]wFMCommunicate OK [09:47:29]SAM_PROTO_GetShiftState done [09:47:29]FM_GetShiftState done [09:47:29]req_shift_opened done [09:47:29]requested_item shift.open_date is exist - process it [09:47:29]req_shift_open_date [09:47:29]req_shift_open_date done [09:47:29]produce_requested_data done [09:47:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165580,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:47:29]process_action_free close_receipt [09:47:29]json_value_free [09:47:29]json_value_free done [09:47:29]process_json_proto returns [09:47:29]Send response to host [09:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165580,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:47:29]free response buf [09:47:29]execute_script done [09:47:29]execute_script returns [09:47:29]free content buf [09:47:29]Sock 7.Close socket [09:47:29]Sock 7.Thread stoped [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]accept exits with 10 [09:48:32]New connection [09:48:32]New thread 3066920292 created [09:48:32]Thread 3066776932 joined [09:48:32]Waiting for new connection... [09:48:32] Sock 10.Parse request [09:48:32]Sock 10.Check first char [09:48:32]Sock 10.First char is OK [09:48:32]request: POST /json_proto HTTP/1.0 [09:48:32]Method: POST [09:48:32]URL: /json_proto [09:48:32]Method is POST - this is cgi request [09:48:32]url: /json_proto [09:48:32]query_string will be loaded in cgi processing [09:48:32]execute_cgi json_proto POST (null) [09:48:32]execute_cgi path=json_proto method=POST [09:48:32]POST find Content-Length [09:48:32]Host: 172.17.53.195:8080 [09:48:32]Content-Length: 682 [09:48:32]Content-Type: application/json [09:48:32] [09:48:32]POST finish read [09:48:32]Found Content-Length = 682 [09:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:32]execute_script... [09:48: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)220140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:32]POST & json_proto [09:48:32]process_json_proto [09:48:32]json parsed OK: [09:48:32]protocol is kg_v1.0 [09:48:32]action value=close_receipt [09:48:32]process_action close_receipt [09:48:32]cmd_close_receipt [09:48:32]MH_GetDate [09:48:32]Write to MH i2c: F0 00 00 E9 CD A5 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: F0 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: F0 09 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: F0 09 00 E9 CD 00 FC D1 14 67 21 48 4A 65 0E [09:48:32]GetLastDocTimeStamp 1729417656 [09:48:32]current date 1729417724 [09:48:32]FM_GetShiftState [09:48:32]SAM_PROTO_GetShiftState [09:48:32]wFMCommunicate request_size=4 [09:48:32]MH_SAM_APDU [09:48:32]CAPDU: 80 13 01 00 [09:48:32]Write to MH i2c: E2 08 00 EA CD 80 13 01 00 00 00 00 00 34 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 0E 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 0E 00 EA CD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7C [09:48:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:48:32]wFMCommunicate OK [09:48:32]SAM_PROTO_GetShiftState done [09:48:32]FM_GetShiftState done [09:48:32]opened in 1729384561 [09:48:32]opened+sec_in_day 1729470961 [09:48:32]quantity*price = 100021 [09:48:32]sum+1 = 100023 [09:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 63 20.10.2024 09:48 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165581 ФПД: 264344474909077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094844&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165581&fm=264344474909077&tin=02508201610067®Number=0000000000091764&sum=100000 [09:48:33]StoreToDocumentArchive [09:48:33]shift 534 fd 165581 [09:48:33]save to /storage/0534/doc_00165581 [09:48:33]save last doc name /storage/0534/doc_00165581 to /storage/kkm_last_doc_name [09:48:33]save OK [09:48:33]Clear old archive folders... [09:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:33]tlvbuf is 018B0660 [09:48:33]SAM_PROTO_ClearQueue [09:48:33]wFMCommunicate request_size=4 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 09 00 00 [09:48:33]Write to MH i2c: E2 08 00 F7 CD 80 09 00 00 00 00 00 00 36 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 F7 CD 00 90 00 38 [09:48:33]RAPDU: 90 00 [09:48:33]wFMCommunicate OK [09:48:33]SAM_PROTO_ClearQueue done [09:48:33]KKMCreateOFDPacket [09:48:33]OFDProtocolAddRootSTLVToBuf [09:48:33]FM_MakeSignedData [09:48:33]FM_MakeSignedData [09:48:33]SAM_PROTO_SignData [09:48:33]wFMCommunicate request_size=4 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 0D 01 02 [09:48:33]Write to MH i2c: E2 08 00 F8 CD 80 0D 01 02 00 00 00 00 3E [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 F8 CD 00 90 00 39 [09:48:33]RAPDU: 90 00 [09:48:33]wFMCommunicate OK [09:48:33]wFMCommunicate request_size=255 [09:48:33]MH_SAM_APDU [09:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 FC D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 86 02 00 35 04 06 00 F0 [09:48:33]Write to MH i2c: E2 02 01 F9 CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 FC D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 86 02 00 35 04 06 00 F0 00 00 D5 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 F9 CD 00 90 00 3A [09:48:34]RAPDU: 90 00 [09:48:34]wFMCommunicate OK [09:48:34]wFMCommunicate request_size=10 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 0D 02 02 05 6B 7E 86 79 95 [09:48:34]Write to MH i2c: E2 0D 00 FA CD 80 0D 02 02 05 00 6B 7E 86 79 95 00 00 C8 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 FA CD 00 90 00 3B [09:48:34]RAPDU: 90 00 [09:48:34]wFMCommunicate OK [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 0D 03 02 [09:48:34]Write to MH i2c: E2 08 00 FB CD 80 0D 03 02 00 00 00 00 43 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 0B 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 0B 00 FB CD 00 0D 4D D9 CB 6E 8B 2A 8D 90 00 F2 [09:48:34]RAPDU: 0D 4D D9 CB 6E 8B 2A 8D 90 00 [09:48:34]wFMCommunicate OK [09:48:34]SAM_PROTO_SignData done [09:48:34]FM_MakeSignedData done [09:48:34]CreateOFDProtocolMessage [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 11 00 00 [09:48:34]Write to MH i2c: E2 08 00 FC CD 80 11 00 00 00 00 00 00 43 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 17 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 17 00 FC CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [09:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:48:34]wFMCommunicate OK [09:48:34]CreateOFDProtocolMessage done [09:48:34]OFDSenderStorePacket 165581 [09:48:34]StoreOFDPacket docnum=165581 [09:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE A3 07 01 23 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 FC D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 86 02 00 35 04 06 00 F0 6B 7E 86 79 95 0D 4D D9 CB 6E 8B 2A 8D [09:48:34]CheckFolder [09:48:34]dirname=/storage/ofd_packets [09:48:34]CheckFolder done [09:48:34]ProducePacketName [09:48:34]name=ofd_packets/00165581 [09:48:34]NVStorageSaveData ofd_packets/00165581 [09:48:34]File name is /storage/ofd_packets/00165581 [09:48:34]Write 301 bytes [09:48:34]NVStorageSaveData done [09:48:34]OFDSenderStorePacket done [09:48:34]KKMCreateOFDPacket done [09:48:34]NVStorageSaveData kkm_last_timestamp [09:48:34]File name is /storage/kkm_last_timestamp [09:48:34]Write 4 bytes [09:48:34]NVStorageSaveData done [09:48:34]ExternCall_PrintAddStr [09:48:34]wPrintStart [09:48:34]Write to MH i2c: 01 00 00 FD CD CA [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 FD CD 00 00 00 00 00 FF 0F DF [09:48:34]RasterBufferAndPrint [09:48:34]line Счет N : (1)220140 [09:48:34]line ИНН: 02508201610067 [09:48:34]line Контрольно-Кассовый Чек [09:48:34]line ПРОДАЖА [09:48:34]line ТРК (МРК, ГНК) : 14 [09:48:34]line Товар: 2710124500 [09:48:34]line Аи-95-К-5 [09:48:34]line 13.480 * 74.20 [09:48:34]line = 1000.22 [09:48:34]line НДС 12% НСП 1% [09:48:34]line > о реализуемом товаре [09:48:34]line ОКРУГЛЕНИЕ: -0.22 [09:48:34]line ИТОГО: 1000.00 [09:48:34]line Внесено: 1000.00 [09:48:34]line СДАЧА: 0.00 [09:48:34]line НСП 1% : 8.85 [09:48:34]line НДС 12% : 106.22 [09:48:34]line Наличными: 1000.00 [09:48:34]line Безнал.: 0.00 [09:48:34]line Место: АЗС № 161 "Партнер Нефть" [09:48:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:48:34]line СНО: Общий режим [09:48:34]line Чек 63 20.10.2024 09:48 [09:48:34]line Смена: 534 ФФД: 1.0 [09:48:34]line ЗНМ: 0300000104 [09:48:34]line РНМ: 0000000000091764 [09:48:34]line Версия ККМ: 001 [09:48:34]line ФМ: 0000000000871759 [09:48:34]line ФД: 165581 [09:48:34]line ФПД: 264344474909077 [09:48:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094844&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165581&fm=264344474909077&tin=02508201610067®Number=0000000000091764&sum=100000 [09:48:34]OFD Sender: Processing packet 165581 [packets to send 48, broken 47] [09:48:34]ProducePacketName [09:48:34]name=ofd_packets/00165581 [09:48:34]OFD Sender: To server: pG, [09:48:34]CommunicateWithHost lk.salyk.kg:30040 [09:48:34]ConnectInit lk.salyk.kg [09:48:34]written 0, free lines is 4095 [09:48:34]Connected sock=9 [09:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE A3 07 01 23 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 FC D1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 86 02 00 35 04 06 00 F0 6B 7E 86 79 95 0D 4D D9 CB 6E 8B 2A 8D [09:48:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B2 B2 47 00 4A 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 31 37 35 39 10 04 04 00 CD 86 02 00 F4 03 04 00 6E 78 14 67 B6 04 01 00 00 18 30 67 CB CC DB 05 23 [09:48:34]CommunicateWithHost err = 0 [09:48:34]CheckOFDResponse [09:48:34]1017 (14) - 77093643461234 [09:48:34]1041 (16) - 0000000000871759 [09:48:34]1040 (4) - 165581 [09:48:34]1012 (4) - 20.10.2024 03:26 [09:48:34]1206 (1) - 0 [09:48:34]OFD Sender: Remove packet 165581 [09:48:34]ProducePacketName [09:48:34]name=ofd_packets/00165581 [09:48:34]NVStorageDeleteData [09:48:34]Write to MH i2c: 01 00 00 28 CE F6 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 28 CE 00 00 00 00 00 BA 0C C3 [09:48:34]RasterBufferAndPrint [09:48:34]line [09:48:34]line [09:48:34]line [09:48:34]line [09:48:34]line [09:48:34]written 0, free lines is 3266 [09:48:34]MH_Cut [09:48:34]Write to MH i2c: D1 01 00 2F CE 01 CF [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: D1 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: D1 01 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: D1 01 00 2F CE 00 CE [09:48:34]Write to MH i2c: 01 00 00 30 CE FE [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:35]OFD Sender: No OFD packet to send [09:48:35]*** Cut start [09:48:35]*** Partial cut [09:48:35]*** CUTSNS_PIN = 1 [09:48:35]*** CUTSNS_PIN = 0 [09:48:36]*** Brake cut motor [09:48:36]Read from MH i2c: 01 [09:48:36]MH_I2C_Read... [09:48:36]*** Stop cut motor [09:48:36]*** Cut end [09:48:36]Read from MH i2c: 01 07 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: 01 07 00 30 CE 00 00 00 00 00 FF 0F 13 [09:48:36]process_action close_receipt done [09:48:36]requested_data is exist [09:48:36]produce_requested_data [09:48:36]requested_item fm.sn is exist - process it [09:48:36]wFMCommunicate request_size=4 [09:48:36]MH_SAM_APDU [09:48:36]CAPDU: 80 11 00 00 [09:48:36]Write to MH i2c: E2 08 00 31 CE 80 11 00 00 00 00 00 00 79 [09:48:36]Write i2c OK [09:48:36]MH_I2C_Read... [09:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:36]Read from MH i2c: E2 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 17 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 17 00 31 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [09:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:48:36]wFMCommunicate OK [09:48:36]requested_item fd.num is exist - process it [09:48:36]SAM_PROTO_GetFieldsCounters [09:48:36]wFMCommunicate request_size=4 [09:48:36]MH_SAM_APDU [09:48:36]CAPDU: 80 13 00 00 [09:48:36]Write to MH i2c: E2 08 00 32 CE 80 13 00 00 00 00 00 00 7C [09:48:36]Write i2c OK [09:48:36]MH_I2C_Read... [09:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:36]Read from MH i2c: E2 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 62 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 62 00 32 CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [09:48: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:36]wFMCommunicate OK [09:48:36]SAM_PROTO_GetFieldsCounters done [09:48:36]requested_item shift.num is exist - process it [09:48:36]requested_item shift.opened is exist - process it [09:48:36]req_shift_opened [09:48:36]FM_GetShiftState [09:48:36]SAM_PROTO_GetShiftState [09:48:36]wFMCommunicate request_size=4 [09:48:36]MH_SAM_APDU [09:48:36]CAPDU: 80 13 01 00 [09:48:36]Write to MH i2c: E2 08 00 33 CE 80 13 01 00 00 00 00 00 7E [09:48:36]Write i2c OK [09:48:36]MH_I2C_Read... [09:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:36]Read from MH i2c: E2 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 0E 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 0E 00 33 CE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C6 [09:48:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:48:36]wFMCommunicate OK [09:48:36]SAM_PROTO_GetShiftState done [09:48:36]FM_GetShiftState done [09:48:36]req_shift_opened done [09:48:36]requested_item shift.open_date is exist - process it [09:48:36]req_shift_open_date [09:48:36]req_shift_open_date done [09:48:36]produce_requested_data done [09:48:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165581,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:48:36]process_action_free close_receipt [09:48:36]json_value_free [09:48:36]json_value_free done [09:48:36]process_json_proto returns [09:48:36]Send response to host [09:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165581,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:48:36]free response buf [09:48:36]execute_script done [09:48:36]execute_script returns [09:48:36]free content buf [09:48:36]Sock 10.Close socket [09:48:36]Sock 10.Thread stoped [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:46]accept exits with 7 [09:53:46]New connection [09:53:46]New thread 3066776932 created [09:53:46]Thread 3066920292 joined [09:53:46]Waiting for new connection... [09:53:46] Sock 7.Parse request [09:53:46]Sock 7.Check first char [09:53:46]Sock 7.First char is OK [09:53:46]request: POST /json_proto HTTP/1.0 [09:53:46]Method: POST [09:53:46]URL: /json_proto [09:53:46]Method is POST - this is cgi request [09:53:46]url: /json_proto [09:53:46]query_string will be loaded in cgi processing [09:53:46]execute_cgi json_proto POST (null) [09:53:46]execute_cgi path=json_proto method=POST [09:53:46]POST find Content-Length [09:53:46]Host: 172.17.53.195:8080 [09:53:46]Content-Length: 679 [09:53:46]Content-Type: application/json [09:53:46] [09:53:46]POST finish read [09:53:46]Found Content-Length = 679 [09:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:46]execute_script... [09:53: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)220141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:46]POST & json_proto [09:53:46]process_json_proto [09:53:46]json parsed OK: [09:53:46]protocol is kg_v1.0 [09:53:46]action value=close_receipt [09:53:46]process_action close_receipt [09:53:46]cmd_close_receipt [09:53:46]MH_GetDate [09:53:46]Write to MH i2c: F0 00 00 34 CE F1 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 09 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 09 00 34 CE 00 36 D3 14 67 21 48 4A 65 96 [09:53:46]GetLastDocTimeStamp 1729417724 [09:53:46]current date 1729418038 [09:53:46]FM_GetShiftState [09:53:46]SAM_PROTO_GetShiftState [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 13 01 00 [09:53:46]Write to MH i2c: E2 08 00 35 CE 80 13 01 00 00 00 00 00 80 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 0E 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 0E 00 35 CE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C8 [09:53:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:53:47]wFMCommunicate OK [09:53:47]SAM_PROTO_GetShiftState done [09:53:47]FM_GetShiftState done [09:53:47]opened in 1729384561 [09:53:47]opened+sec_in_day 1729470961 [09:53:47]quantity*price = 450037 [09:53:47]sum+1 = 450038 [09:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 64 20.10.2024 09:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165582 ФПД: 189148359939053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095358&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165582&fm=189148359939053&tin=02508201610067®Number=0000000000091764&sum=450000 [09:53:48]StoreToDocumentArchive [09:53:48]shift 534 fd 165582 [09:53:48]save to /storage/0534/doc_00165582 [09:53:48]save last doc name /storage/0534/doc_00165582 to /storage/kkm_last_doc_name [09:53:48]save OK [09:53:48]Clear old archive folders... [09:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:53:48]tlvbuf is 0165D330 [09:53:48]SAM_PROTO_ClearQueue [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 09 00 00 [09:53:48]Write to MH i2c: E2 08 00 42 CE 80 09 00 00 00 00 00 00 82 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 42 CE 00 90 00 84 [09:53:48]RAPDU: 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_ClearQueue done [09:53:48]KKMCreateOFDPacket [09:53:48]OFDProtocolAddRootSTLVToBuf [09:53:48]FM_MakeSignedData [09:53:48]FM_MakeSignedData [09:53:48]SAM_PROTO_SignData [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 0D 01 02 [09:53:48]Write to MH i2c: E2 08 00 43 CE 80 0D 01 02 00 00 00 00 8A [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 43 CE 00 90 00 85 [09:53:48]RAPDU: 90 00 [09:53:48]wFMCommunicate OK [09:53:48]wFMCommunicate request_size=255 [09:53:48]MH_SAM_APDU [09:53: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 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 36 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 86 02 00 35 04 06 00 AC 07 88 CD [09:53:48]Write to MH i2c: E2 02 01 44 CE 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 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 36 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 86 02 00 35 04 06 00 AC 07 88 CD 00 00 E8 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 44 CE 00 90 00 86 [09:53:48]RAPDU: 90 00 [09:53:48]wFMCommunicate OK [09:53:48]wFMCommunicate request_size=7 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 0D 02 02 02 D3 ED [09:53:48]Write to MH i2c: E2 0A 00 45 CE 80 0D 02 02 02 00 D3 ED 00 00 51 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 45 CE 00 90 00 87 [09:53:48]RAPDU: 90 00 [09:53:48]wFMCommunicate OK [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 0D 03 02 [09:53:48]Write to MH i2c: E2 08 00 46 CE 80 0D 03 02 00 00 00 00 8F [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0B 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0B 00 46 CE 00 85 B6 80 4C 88 78 03 AE 90 00 48 [09:53:48]RAPDU: 85 B6 80 4C 88 78 03 AE 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_SignData done [09:53:48]FM_MakeSignedData done [09:53:48]CreateOFDProtocolMessage [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 11 00 00 [09:53:48]Write to MH i2c: E2 08 00 47 CE 80 11 00 00 00 00 00 00 8F [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 17 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 17 00 47 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E7 [09:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:53:48]wFMCommunicate OK [09:53:48]CreateOFDProtocolMessage done [09:53:48]OFDSenderStorePacket 165582 [09:53:48]StoreOFDPacket docnum=165582 [09:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 32 F7 04 01 8C 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 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 36 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 86 02 00 35 04 06 00 AC 07 88 CD D3 ED 85 B6 80 4C 88 78 03 AE [09:53:48]CheckFolder [09:53:48]dirname=/storage/ofd_packets [09:53:48]CheckFolder done [09:53:48]ProducePacketName [09:53:48]name=ofd_packets/00165582 [09:53:48]NVStorageSaveData ofd_packets/00165582 [09:53:48]File name is /storage/ofd_packets/00165582 [09:53:48]Write 298 bytes [09:53:48]NVStorageSaveData done [09:53:48]OFDSenderStorePacket done [09:53:48]KKMCreateOFDPacket done [09:53:48]NVStorageSaveData kkm_last_timestamp [09:53:48]File name is /storage/kkm_last_timestamp [09:53:48]Write 4 bytes [09:53:48]NVStorageSaveData done [09:53:48]ExternCall_PrintAddStr [09:53:48]wPrintStart [09:53:48]Write to MH i2c: 01 00 00 48 CE 16 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 48 CE 00 00 00 00 00 FF 0F 2B [09:53:48]RasterBufferAndPrint [09:53:48]line Счет N : (1)220141 [09:53:48]line ИНН: 02508201610067 [09:53:48]line Контрольно-Кассовый Чек [09:53:48]line ПРОДАЖА [09:53:48]line ТРК (МРК, ГНК) : 41 [09:53:48]line Товар: 2710194210 [09:53:48]line ДТ-К-5 [09:53:48]line 59.060 * 76.20 [09:53:48]line = 4500.37 [09:53:48]line НДС 12% НСП 1% [09:53:48]line > о реализуемом товаре [09:53:48]line ОКРУГЛЕНИЕ: -0.37 [09:53:48]line ИТОГО: 4500.00 [09:53:48]line Внесено: 4500.00 [09:53:48]line СДАЧА: 0.00 [09:53:48]line НСП 1% : 39.83 [09:53:48]line НДС 12% : 477.91 [09:53:48]line Наличными: 4500.00 [09:53:48]line Безнал.: 0.00 [09:53:48]line Место: АЗС № 161 "Партнер Нефть" [09:53:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:53:48]line СНО: Общий режим [09:53:48]line Чек 64 20.10.2024 09:53 [09:53:48]line Смена: 534 ФФД: 1.0 [09:53:48]line ЗНМ: 0300000104 [09:53:48]line РНМ: 0000000000091764 [09:53:48]line Версия ККМ: 001 [09:53:48]line ФМ: 0000000000871759 [09:53:48]line ФД: 165582 [09:53:48]line ФПД: 189148359939053 [09:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095358&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165582&fm=189148359939053&tin=02508201610067®Number=0000000000091764&sum=450000 [09:53:49]OFD Sender: Processing packet 165582 [packets to send 48, broken 47] [09:53:49]ProducePacketName [09:53:49]name=ofd_packets/00165582 [09:53:49]OFD Sender: To server: pG, [09:53:49]CommunicateWithHost lk.salyk.kg:30040 [09:53:49]ConnectInit lk.salyk.kg [09:53:49]written 0, free lines is 4095 [09:53:49]Connected sock=10 [09:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 32 F7 04 01 8C 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 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 36 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 86 02 00 35 04 06 00 AC 07 88 CD D3 ED 85 B6 80 4C 88 78 03 AE [09:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D7 8E 47 00 2A 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 31 37 35 39 10 04 04 00 CE 86 02 00 F4 03 04 00 A9 79 14 67 B6 04 01 00 00 E5 FC 1F 21 ED E6 A9 6B [09:53:49]CommunicateWithHost err = 0 [09:53:49]CheckOFDResponse [09:53:49]1017 (14) - 77093643461234 [09:53:49]1041 (16) - 0000000000871759 [09:53:49]1040 (4) - 165582 [09:53:49]1012 (4) - 20.10.2024 03:31 [09:53:49]1206 (1) - 0 [09:53:49]OFD Sender: Remove packet 165582 [09:53:49]ProducePacketName [09:53:49]name=ofd_packets/00165582 [09:53:49]NVStorageDeleteData [09:53:49]Write to MH i2c: 01 00 00 73 CE 41 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 73 CE 00 00 00 00 00 C2 0C 16 [09:53:49]RasterBufferAndPrint [09:53:49]line [09:53:49]line [09:53:49]line [09:53:49]line [09:53:49]line [09:53:49]written 0, free lines is 3271 [09:53:49]MH_Cut [09:53:49]Write to MH i2c: D1 01 00 7A CE 01 1A [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: D1 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: D1 01 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: D1 01 00 7A CE 00 19 [09:53:49]Write to MH i2c: 01 00 00 7B CE 49 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]OFD Sender: No OFD packet to send [09:53:50]*** Cut start [09:53:50]*** Partial cut [09:53:50]*** CUTSNS_PIN = 1 [09:53:50]*** CUTSNS_PIN = 0 [09:53:50]*** Brake cut motor [09:53:50]Read from MH i2c: 01 [09:53:50]MH_I2C_Read... [09:53:50]*** Stop cut motor [09:53:50]*** Cut end [09:53:50]Read from MH i2c: 01 07 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: 01 07 00 7B CE 00 00 00 00 00 FF 0F 5E [09:53:50]process_action close_receipt done [09:53:50]requested_data is exist [09:53:50]produce_requested_data [09:53:50]requested_item fm.sn is exist - process it [09:53:50]wFMCommunicate request_size=4 [09:53:50]MH_SAM_APDU [09:53:50]CAPDU: 80 11 00 00 [09:53:50]Write to MH i2c: E2 08 00 7C CE 80 11 00 00 00 00 00 00 C4 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 17 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 17 00 7C CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [09:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:53:51]wFMCommunicate OK [09:53:51]requested_item fd.num is exist - process it [09:53:51]SAM_PROTO_GetFieldsCounters [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 13 00 00 [09:53:51]Write to MH i2c: E2 08 00 7D CE 80 13 00 00 00 00 00 00 C7 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 62 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 62 00 7D CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:53:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:51]wFMCommunicate OK [09:53:51]SAM_PROTO_GetFieldsCounters done [09:53:51]requested_item shift.num is exist - process it [09:53:51]requested_item shift.opened is exist - process it [09:53:51]req_shift_opened [09:53:51]FM_GetShiftState [09:53:51]SAM_PROTO_GetShiftState [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 13 01 00 [09:53:51]Write to MH i2c: E2 08 00 7E CE 80 13 01 00 00 00 00 00 C9 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0E 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0E 00 7E CE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 11 [09:53:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:53:51]wFMCommunicate OK [09:53:51]SAM_PROTO_GetShiftState done [09:53:51]FM_GetShiftState done [09:53:51]req_shift_opened done [09:53:51]requested_item shift.open_date is exist - process it [09:53:51]req_shift_open_date [09:53:51]req_shift_open_date done [09:53:51]produce_requested_data done [09:53:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165582,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:53:51]process_action_free close_receipt [09:53:51]json_value_free [09:53:51]json_value_free done [09:53:51]process_json_proto returns [09:53:51]Send response to host [09:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165582,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:53:51]free response buf [09:53:51]execute_script done [09:53:51]execute_script returns [09:53:51]free content buf [09:53:51]Sock 7.Close socket [09:53:51]Sock 7.Thread stoped [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]accept exits with 9 [09:54:54]New connection [09:54:54]New thread 3066920292 created [09:54:54]Thread 3066776932 joined [09:54:54]Waiting for new connection... [09:54:54] Sock 9.Parse request [09:54:54]Sock 9.Check first char [09:54:54]Sock 9.First char is OK [09:54:54]request: POST /json_proto HTTP/1.0 [09:54:54]Method: POST [09:54:54]URL: /json_proto [09:54:54]Method is POST - this is cgi request [09:54:54]url: /json_proto [09:54:54]query_string will be loaded in cgi processing [09:54:54]execute_cgi json_proto POST (null) [09:54:54]execute_cgi path=json_proto method=POST [09:54:54]POST find Content-Length [09:54:54]Host: 172.17.53.195:8080 [09:54:54]Content-Length: 677 [09:54:54]Content-Type: application/json [09:54:54] [09:54:54]POST finish read [09:54:54]Found Content-Length = 677 [09:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:54]execute_script... [09:54: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)220144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:54]POST & json_proto [09:54:54]process_json_proto [09:54:54]json parsed OK: [09:54:54]protocol is kg_v1.0 [09:54:54]action value=close_receipt [09:54:54]process_action close_receipt [09:54:54]cmd_close_receipt [09:54:54]MH_GetDate [09:54:54]Write to MH i2c: F0 00 00 7F CE 3C [09:54:54]Write i2c OK [09:54:54]MH_I2C_Read... [09:54:54]Read from MH i2c: F0 [09:54:54]MH_I2C_Read... [09:54:54]Read from MH i2c: F0 09 00 [09:54:54]MH_I2C_Read... [09:54:54]Read from MH i2c: F0 09 00 7F CE 00 7A D3 14 67 21 48 4A 65 25 [09:54:54]GetLastDocTimeStamp 1729418038 [09:54:54]current date 1729418106 [09:54:54]FM_GetShiftState [09:54:54]SAM_PROTO_GetShiftState [09:54:54]wFMCommunicate request_size=4 [09:54:54]MH_SAM_APDU [09:54:54]CAPDU: 80 13 01 00 [09:54:54]Write to MH i2c: E2 08 00 80 CE 80 13 01 00 00 00 00 00 CB [09:54:54]Write i2c OK [09:54:54]MH_I2C_Read... [09:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:54]Read from MH i2c: E2 [09:54:54]MH_I2C_Read... [09:54:54]Read from MH i2c: E2 0E 00 [09:54:54]MH_I2C_Read... [09:54:54]Read from MH i2c: E2 0E 00 80 CE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 13 [09:54:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:54:54]wFMCommunicate OK [09:54:54]SAM_PROTO_GetShiftState done [09:54:54]FM_GetShiftState done [09:54:54]opened in 1729384561 [09:54:54]opened+sec_in_day 1729470961 [09:54:54]quantity*price = 49974 [09:54:54]sum+1 = 49975 [09:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 65 20.10.2024 09:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165583 ФПД: 94155978602627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165583&fm=94155978602627&tin=02508201610067®Number=0000000000091764&sum=49900 [09:54:55]StoreToDocumentArchive [09:54:55]shift 534 fd 165583 [09:54:55]save to /storage/0534/doc_00165583 [09:54:55]save last doc name /storage/0534/doc_00165583 to /storage/kkm_last_doc_name [09:54:55]save OK [09:54:55]Clear old archive folders... [09:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:55]tlvbuf is 015E98B0 [09:54:55]SAM_PROTO_ClearQueue [09:54:55]wFMCommunicate request_size=4 [09:54:55]MH_SAM_APDU [09:54:55]CAPDU: 80 09 00 00 [09:54:55]Write to MH i2c: E2 08 00 8D CE 80 09 00 00 00 00 00 00 CD [09:54:55]Write i2c OK [09:54:55]MH_I2C_Read... [09:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:55]Read from MH i2c: E2 [09:54:55]MH_I2C_Read... [09:54:55]Read from MH i2c: E2 03 00 [09:54:55]MH_I2C_Read... [09:54:55]Read from MH i2c: E2 03 00 8D CE 00 90 00 CF [09:54:55]RAPDU: 90 00 [09:54:55]wFMCommunicate OK [09:54:55]SAM_PROTO_ClearQueue done [09:54:55]KKMCreateOFDPacket [09:54:55]OFDProtocolAddRootSTLVToBuf [09:54:55]FM_MakeSignedData [09:54:55]FM_MakeSignedData [09:54:55]SAM_PROTO_SignData [09:54:55]wFMCommunicate request_size=4 [09:54:55]MH_SAM_APDU [09:54:55]CAPDU: 80 0D 01 02 [09:54:55]Write to MH i2c: E2 08 00 8E CE 80 0D 01 02 00 00 00 00 D5 [09:54:55]Write i2c OK [09:54:55]MH_I2C_Read... [09:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:55]Read from MH i2c: E2 [09:54:55]MH_I2C_Read... [09:54:55]Read from MH i2c: E2 03 00 [09:54:55]MH_I2C_Read... [09:54:55]Read from MH i2c: E2 03 00 8E CE 00 90 00 D0 [09:54:55]RAPDU: 90 00 [09:54:55]wFMCommunicate OK [09:54:55]wFMCommunicate request_size=255 [09:54:55]MH_SAM_APDU [09:54: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 7A D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 86 02 00 35 04 06 00 55 [09:54:55]Write to MH i2c: E2 02 01 8F CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 7A D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 86 02 00 35 04 06 00 55 00 00 19 [09:54:55]Write i2c OK [09:54:55]MH_I2C_Read... [09:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:55]Read from MH i2c: E2 [09:54:55]MH_I2C_Read... [09:54:55]Read from MH i2c: E2 03 00 [09:54:55]MH_I2C_Read... [09:54:55]Read from MH i2c: E2 03 00 8F CE 00 90 00 D1 [09:54:55]RAPDU: 90 00 [09:54:55]wFMCommunicate OK [09:54:55]wFMCommunicate request_size=10 [09:54:55]MH_SAM_APDU [09:54:55]CAPDU: 80 0D 02 02 05 A2 65 A8 78 83 [09:54:55]Write to MH i2c: E2 0D 00 90 CE 80 0D 02 02 05 00 A2 65 A8 78 83 00 00 8C [09:54:55]Write i2c OK [09:54:55]MH_I2C_Read... [09:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:56]Read from MH i2c: E2 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: E2 03 00 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: E2 03 00 90 CE 00 90 00 D2 [09:54:56]RAPDU: 90 00 [09:54:56]wFMCommunicate OK [09:54:56]wFMCommunicate request_size=4 [09:54:56]MH_SAM_APDU [09:54:56]CAPDU: 80 0D 03 02 [09:54:56]Write to MH i2c: E2 08 00 91 CE 80 0D 03 02 00 00 00 00 DA [09:54:56]Write i2c OK [09:54:56]MH_I2C_Read... [09:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:56]Read from MH i2c: E2 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: E2 0B 00 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: E2 0B 00 91 CE 00 25 C7 19 FA DB 83 E1 96 90 00 AF [09:54:56]RAPDU: 25 C7 19 FA DB 83 E1 96 90 00 [09:54:56]wFMCommunicate OK [09:54:56]SAM_PROTO_SignData done [09:54:56]FM_MakeSignedData done [09:54:56]CreateOFDProtocolMessage [09:54:56]wFMCommunicate request_size=4 [09:54:56]MH_SAM_APDU [09:54:56]CAPDU: 80 11 00 00 [09:54:56]Write to MH i2c: E2 08 00 92 CE 80 11 00 00 00 00 00 00 DA [09:54:56]Write i2c OK [09:54:56]MH_I2C_Read... [09:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:56]Read from MH i2c: E2 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: E2 17 00 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: E2 17 00 92 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [09:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:54:56]wFMCommunicate OK [09:54:56]CreateOFDProtocolMessage done [09:54:56]OFDSenderStorePacket 165583 [09:54:56]StoreOFDPacket docnum=165583 [09:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E 4F 07 01 A0 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 7A D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 86 02 00 35 04 06 00 55 A2 65 A8 78 83 25 C7 19 FA DB 83 E1 96 [09:54:56]CheckFolder [09:54:56]dirname=/storage/ofd_packets [09:54:56]CheckFolder done [09:54:56]ProducePacketName [09:54:56]name=ofd_packets/00165583 [09:54:56]NVStorageSaveData ofd_packets/00165583 [09:54:56]File name is /storage/ofd_packets/00165583 [09:54:56]Write 301 bytes [09:54:56]NVStorageSaveData done [09:54:56]OFDSenderStorePacket done [09:54:56]KKMCreateOFDPacket done [09:54:56]NVStorageSaveData kkm_last_timestamp [09:54:56]File name is /storage/kkm_last_timestamp [09:54:56]Write 4 bytes [09:54:56]NVStorageSaveData done [09:54:56]ExternCall_PrintAddStr [09:54:56]wPrintStart [09:54:56]Write to MH i2c: 01 00 00 93 CE 61 [09:54:56]Write i2c OK [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: 01 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: 01 07 00 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: 01 07 00 93 CE 00 00 00 00 00 FF 0F 76 [09:54:56]RasterBufferAndPrint [09:54:56]line Счет N : (1)220144 [09:54:56]line ИНН: 02508201610067 [09:54:56]line Контрольно-Кассовый Чек [09:54:56]line ПРОДАЖА [09:54:56]line ТРК (МРК, ГНК) : 43 [09:54:56]line Товар: 2710124130 [09:54:56]line Аи-92-К-5 [09:54:56]line 7.470 * 66.90 [09:54:56]line = 499.74 [09:54:56]line НДС 12% НСП 1% [09:54:56]line > о реализуемом товаре [09:54:56]line ОКРУГЛЕНИЕ: -0.74 [09:54:56]line ИТОГО: 499.00 [09:54:56]line Внесено: 500.00 [09:54:56]line СДАЧА: 1.00 [09:54:56]line НСП 1% : 4.42 [09:54:56]line НДС 12% : 53.07 [09:54:56]line Наличными: 499.00 [09:54:56]line Безнал.: 0.00 [09:54:56]line Место: АЗС № 161 "Партнер Нефть" [09:54:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:54:56]line СНО: Общий режим [09:54:56]line Чек 65 20.10.2024 09:55 [09:54:56]line Смена: 534 ФФД: 1.0 [09:54:56]line ЗНМ: 0300000104 [09:54:56]line РНМ: 0000000000091764 [09:54:56]line Версия ККМ: 001 [09:54:56]line ФМ: 0000000000871759 [09:54:56]line ФД: 165583 [09:54:56]line ФПД: 94155978602627 [09:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165583&fm=94155978602627&tin=02508201610067®Number=0000000000091764&sum=49900 [09:54:56]OFD Sender: Processing packet 165583 [packets to send 48, broken 47] [09:54:56]ProducePacketName [09:54:56]name=ofd_packets/00165583 [09:54:56]OFD Sender: To server: pG, [09:54:56]CommunicateWithHost lk.salyk.kg:30040 [09:54:56]ConnectInit lk.salyk.kg [09:54:56]written 0, free lines is 4095 [09:54:56]Write to MH i2c: 01 00 00 BE CE 8C [09:54:56]Write i2c OK [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: 01 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: 01 07 00 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: 01 07 00 BE CE 00 00 00 00 00 BA 0C 59 [09:54:56]RasterBufferAndPrint [09:54:56]line [09:54:56]line [09:54:56]line [09:54:56]line [09:54:56]line [09:54:56]written 0, free lines is 3263 [09:54:56]MH_Cut [09:54:56]Write to MH i2c: D1 01 00 C5 CE 01 65 [09:54:56]Write i2c OK [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: D1 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: D1 01 00 [09:54:56]MH_I2C_Read... [09:54:56]Read from MH i2c: D1 01 00 C5 CE 00 64 [09:54:56]Write to MH i2c: 01 00 00 C6 CE 94 [09:54:56]Write i2c OK [09:54:56]MH_I2C_Read... [09:54:57]*** Cut start [09:54:57]*** Partial cut [09:54:57]*** CUTSNS_PIN = 1 [09:54:57]*** CUTSNS_PIN = 0 [09:54:57]*** Brake cut motor [09:54:58]Read from MH i2c: 01 [09:54:58]MH_I2C_Read... [09:54:58]*** Stop cut motor [09:54:58]*** Cut end [09:54:58]Read from MH i2c: 01 07 00 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: 01 07 00 C6 CE 00 00 00 00 00 FF 0F A9 [09:54:58]process_action close_receipt done [09:54:58]requested_data is exist [09:54:58]produce_requested_data [09:54:58]requested_item fm.sn is exist - process it [09:54:58]wFMCommunicate request_size=4 [09:54:58]MH_SAM_APDU [09:54:58]CAPDU: 80 11 00 00 [09:54:58]Write to MH i2c: E2 08 00 C7 CE 80 11 00 00 00 00 00 00 0F [09:54:58]Write i2c OK [09:54:58]MH_I2C_Read... [09:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:58]Read from MH i2c: E2 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: E2 17 00 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: E2 17 00 C7 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [09:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:54:58]wFMCommunicate OK [09:54:58]requested_item fd.num is exist - process it [09:54:58]SAM_PROTO_GetFieldsCounters [09:54:58]wFMCommunicate request_size=4 [09:54:58]MH_SAM_APDU [09:54:58]CAPDU: 80 13 00 00 [09:54:58]Write to MH i2c: E2 08 00 C8 CE 80 13 00 00 00 00 00 00 12 [09:54:58]Write i2c OK [09:54:58]MH_I2C_Read... [09:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:58]Read from MH i2c: E2 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: E2 62 00 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: E2 62 00 C8 CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:54:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:58]wFMCommunicate OK [09:54:58]SAM_PROTO_GetFieldsCounters done [09:54:58]requested_item shift.num is exist - process it [09:54:58]requested_item shift.opened is exist - process it [09:54:58]req_shift_opened [09:54:58]FM_GetShiftState [09:54:58]SAM_PROTO_GetShiftState [09:54:58]wFMCommunicate request_size=4 [09:54:58]MH_SAM_APDU [09:54:58]CAPDU: 80 13 01 00 [09:54:58]Write to MH i2c: E2 08 00 C9 CE 80 13 01 00 00 00 00 00 14 [09:54:58]Write i2c OK [09:54:58]MH_I2C_Read... [09:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:58]Read from MH i2c: E2 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: E2 0E 00 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: E2 0E 00 C9 CE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5C [09:54:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:54:58]wFMCommunicate OK [09:54:58]SAM_PROTO_GetShiftState done [09:54:58]FM_GetShiftState done [09:54:58]req_shift_opened done [09:54:58]requested_item shift.open_date is exist - process it [09:54:58]req_shift_open_date [09:54:58]req_shift_open_date done [09:54:58]produce_requested_data done [09:54:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165583,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:54:58]process_action_free close_receipt [09:54:58]json_value_free [09:54:58]json_value_free done [09:54:58]process_json_proto returns [09:54:58]Send response to host [09:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165583,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:54:58]free response buf [09:54:58]execute_script done [09:54:58]execute_script returns [09:54:58]free content buf [09:54:58]Sock 9.Close socket [09:54:58]Sock 9.Thread stoped [09:54:59]accept exits with 7 [09:54:59]New connection [09:54:59]New thread 3066776932 created [09:54:59]Thread 3066920292 joined [09:54:59]Waiting for new connection... [09:54:59] Sock 7.Parse request [09:54:59]Sock 7.Check first char [09:54:59]Sock 7.First char is OK [09:54:59]request: POST /json_proto HTTP/1.0 [09:54:59]Method: POST [09:54:59]URL: /json_proto [09:54:59]Method is POST - this is cgi request [09:54:59]url: /json_proto [09:54:59]query_string will be loaded in cgi processing [09:54:59]execute_cgi json_proto POST (null) [09:54:59]execute_cgi path=json_proto method=POST [09:54:59]POST find Content-Length [09:54:59]Host: 172.17.53.195:8080 [09:54:59]Content-Length: 679 [09:54:59]Content-Type: application/json [09:54:59] [09:54:59]POST finish read [09:54:59]Found Content-Length = 679 [09:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220142", "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" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [09:54:59]execute_script... [09:54: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)220142", "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" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [09:54:59]POST & json_proto [09:54:59]process_json_proto [09:54:59]json parsed OK: [09:54:59]protocol is kg_v1.0 [09:54:59]action value=close_receipt [09:54:59]process_action close_receipt [09:54:59]cmd_close_receipt [09:54:59]MH_GetDate [09:54:59]Write to MH i2c: F0 00 00 CA CE 87 [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: F0 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: F0 09 00 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: F0 09 00 CA CE 00 7E D3 14 67 21 48 4A 65 74 [09:54:59]GetLastDocTimeStamp 1729418106 [09:54:59]current date 1729418110 [09:54:59]FM_GetShiftState [09:54:59]SAM_PROTO_GetShiftState [09:54:59]wFMCommunicate request_size=4 [09:54:59]MH_SAM_APDU [09:54:59]CAPDU: 80 13 01 00 [09:54:59]Write to MH i2c: E2 08 00 CB CE 80 13 01 00 00 00 00 00 16 [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:59]Read from MH i2c: E2 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 0E 00 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 0E 00 CB CE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5E [09:54:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:54:59]wFMCommunicate OK [09:54:59]SAM_PROTO_GetShiftState done [09:54:59]FM_GetShiftState done [09:54:59]opened in 1729384561 [09:54:59]opened+sec_in_day 1729470961 [09:54:59]quantity*price = 250012 [09:54:59]sum+1 = 250013 [09:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 66 20.10.2024 09:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165584 ФПД: 68413085225316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165584&fm=68413085225316&tin=02508201610067®Number=0000000000091764&sum=250000 [09:55:00]StoreToDocumentArchive [09:55:00]shift 534 fd 165584 [09:55:00]save to /storage/0534/doc_00165584 [09:55:00]save last doc name /storage/0534/doc_00165584 to /storage/kkm_last_doc_name [09:55:00]save OK [09:55:00]Clear old archive folders... [09:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:55:00]tlvbuf is 01643FA0 [09:55:00]SAM_PROTO_ClearQueue [09:55:00]wFMCommunicate request_size=4 [09:55:00]MH_SAM_APDU [09:55:00]CAPDU: 80 09 00 00 [09:55:00]Write to MH i2c: E2 08 00 D8 CE 80 09 00 00 00 00 00 00 18 [09:55:00]Write i2c OK [09:55:00]MH_I2C_Read... [09:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:00]Read from MH i2c: E2 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: E2 03 00 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: E2 03 00 D8 CE 00 90 00 1A [09:55:00]RAPDU: 90 00 [09:55:00]wFMCommunicate OK [09:55:00]SAM_PROTO_ClearQueue done [09:55:00]KKMCreateOFDPacket [09:55:00]OFDProtocolAddRootSTLVToBuf [09:55:00]FM_MakeSignedData [09:55:00]FM_MakeSignedData [09:55:00]SAM_PROTO_SignData [09:55:00]wFMCommunicate request_size=4 [09:55:00]MH_SAM_APDU [09:55:00]CAPDU: 80 0D 01 02 [09:55:00]Write to MH i2c: E2 08 00 D9 CE 80 0D 01 02 00 00 00 00 20 [09:55:00]Write i2c OK [09:55:00]MH_I2C_Read... [09:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:00]Read from MH i2c: E2 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: E2 03 00 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: E2 03 00 D9 CE 00 90 00 1B [09:55:00]RAPDU: 90 00 [09:55:00]wFMCommunicate OK [09:55:00]wFMCommunicate request_size=255 [09:55:00]MH_SAM_APDU [09:55: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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 42 00 00 00 F4 03 04 00 7E D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 86 02 00 35 04 06 00 3E 38 A9 A4 [09:55:00]Write to MH i2c: E2 02 01 DA CE 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 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 42 00 00 00 F4 03 04 00 7E D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 86 02 00 35 04 06 00 3E 38 A9 A4 00 00 4E [09:55:00]Write i2c OK [09:55:00]MH_I2C_Read... [09:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:00]Read from MH i2c: E2 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: E2 03 00 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: E2 03 00 DA CE 00 90 00 1C [09:55:00]RAPDU: 90 00 [09:55:00]wFMCommunicate OK [09:55:00]wFMCommunicate request_size=7 [09:55:00]MH_SAM_APDU [09:55:00]CAPDU: 80 0D 02 02 02 91 64 [09:55:00]Write to MH i2c: E2 0A 00 DB CE 80 0D 02 02 02 00 91 64 00 00 1C [09:55:00]Write i2c OK [09:55:00]MH_I2C_Read... [09:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:01]Read from MH i2c: E2 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 03 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 03 00 DB CE 00 90 00 1D [09:55:01]RAPDU: 90 00 [09:55:01]wFMCommunicate OK [09:55:01]wFMCommunicate request_size=4 [09:55:01]MH_SAM_APDU [09:55:01]CAPDU: 80 0D 03 02 [09:55:01]Write to MH i2c: E2 08 00 DC CE 80 0D 03 02 00 00 00 00 25 [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:01]Read from MH i2c: E2 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 0B 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 0B 00 DC CE 00 37 B4 D5 3D B6 15 C3 11 90 00 C2 [09:55:01]RAPDU: 37 B4 D5 3D B6 15 C3 11 90 00 [09:55:01]wFMCommunicate OK [09:55:01]SAM_PROTO_SignData done [09:55:01]FM_MakeSignedData done [09:55:01]CreateOFDProtocolMessage [09:55:01]wFMCommunicate request_size=4 [09:55:01]MH_SAM_APDU [09:55:01]CAPDU: 80 11 00 00 [09:55:01]Write to MH i2c: E2 08 00 DD CE 80 11 00 00 00 00 00 00 25 [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:01]Read from MH i2c: E2 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 17 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 17 00 DD CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [09:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:55:01]wFMCommunicate OK [09:55:01]CreateOFDProtocolMessage done [09:55:01]OFDSenderStorePacket 165584 [09:55:01]StoreOFDPacket docnum=165584 [09:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A4 67 04 01 A2 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 42 00 00 00 F4 03 04 00 7E D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 86 02 00 35 04 06 00 3E 38 A9 A4 91 64 37 B4 D5 3D B6 15 C3 11 [09:55:01]CheckFolder [09:55:01]dirname=/storage/ofd_packets [09:55:01]CheckFolder done [09:55:01]ProducePacketName [09:55:01]name=ofd_packets/00165584 [09:55:01]NVStorageSaveData ofd_packets/00165584 [09:55:01]File name is /storage/ofd_packets/00165584 [09:55:01]Write 298 bytes [09:55:01]NVStorageSaveData done [09:55:01]OFDSenderStorePacket done [09:55:01]KKMCreateOFDPacket done [09:55:01]NVStorageSaveData kkm_last_timestamp [09:55:01]File name is /storage/kkm_last_timestamp [09:55:01]Write 4 bytes [09:55:01]NVStorageSaveData done [09:55:01]ExternCall_PrintAddStr [09:55:01]wPrintStart [09:55:01]Write to MH i2c: 01 00 00 DE CE AC [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: 01 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: 01 07 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: 01 07 00 DE CE 00 00 00 00 00 FF 0F C1 [09:55:01]RasterBufferAndPrint [09:55:01]line Счет N : (1)220142 [09:55:01]line ИНН: 02508201610067 [09:55:01]line Контрольно-Кассовый Чек [09:55:01]line ПРОДАЖА [09:55:01]line ТРК (МРК, ГНК) : 21 [09:55:01]line Товар: 2710194210 [09:55:01]line ДТ-К-5 [09:55:01]line 32.810 * 76.20 [09:55:01]line = 2500.12 [09:55:01]line НДС 12% НСП 1% [09:55:01]line > о реализуемом товаре [09:55:01]line ОКРУГЛЕНИЕ: -0.12 [09:55:01]line ИТОГО: 2500.00 [09:55:01]line Внесено: 2500.00 [09:55:01]line СДАЧА: 0.00 [09:55:01]line НСП 1% : 22.12 [09:55:01]line НДС 12% : 265.50 [09:55:01]line Наличными: 2500.00 [09:55:01]line Безнал.: 0.00 [09:55:01]line Место: АЗС № 161 "Партнер Нефть" [09:55:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:55:01]line СНО: Общий режим [09:55:01]line Чек 66 20.10.2024 09:55 [09:55:01]line Смена: 534 ФФД: 1.0 [09:55:01]line ЗНМ: 0300000104 [09:55:01]line РНМ: 0000000000091764 [09:55:01]line Версия ККМ: 001 [09:55:01]line ФМ: 0000000000871759 [09:55:01]line ФД: 165584 [09:55:01]line ФПД: 68413085225316 [09:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165584&fm=68413085225316&tin=02508201610067®Number=0000000000091764&sum=250000 [09:55:01]written 0, free lines is 4095 [09:55:01]Write to MH i2c: 01 00 00 09 CF D8 [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: 01 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: 01 07 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: 01 07 00 09 CF 00 00 00 00 00 BB 0C A6 [09:55:01]RasterBufferAndPrint [09:55:01]line [09:55:01]line [09:55:01]line [09:55:01]line [09:55:01]line [09:55:01]written 0, free lines is 3267 [09:55:01]MH_Cut [09:55:01]Write to MH i2c: D1 01 00 10 CF 01 B1 [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: D1 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: D1 01 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: D1 01 00 10 CF 00 B0 [09:55:01]Write to MH i2c: 01 00 00 11 CF E0 [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:02]*** Cut start [09:55:02]*** Partial cut [09:55:02]*** CUTSNS_PIN = 1 [09:55:02]*** CUTSNS_PIN = 0 [09:55:03]*** Brake cut motor [09:55:03]Read from MH i2c: 01 [09:55:03]MH_I2C_Read... [09:55:03]*** Stop cut motor [09:55:03]*** Cut end [09:55:03]Read from MH i2c: 01 07 00 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: 01 07 00 11 CF 00 00 00 00 00 FF 0F F5 [09:55:03]process_action close_receipt done [09:55:03]requested_data is exist [09:55:03]produce_requested_data [09:55:03]requested_item fm.sn is exist - process it [09:55:03]wFMCommunicate request_size=4 [09:55:03]MH_SAM_APDU [09:55:03]CAPDU: 80 11 00 00 [09:55:03]Write to MH i2c: E2 08 00 12 CF 80 11 00 00 00 00 00 00 5B [09:55:03]Write i2c OK [09:55:03]MH_I2C_Read... [09:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:03]Read from MH i2c: E2 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: E2 17 00 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: E2 17 00 12 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [09:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:55:03]wFMCommunicate OK [09:55:03]requested_item fd.num is exist - process it [09:55:03]SAM_PROTO_GetFieldsCounters [09:55:03]wFMCommunicate request_size=4 [09:55:03]MH_SAM_APDU [09:55:03]CAPDU: 80 13 00 00 [09:55:03]Write to MH i2c: E2 08 00 13 CF 80 13 00 00 00 00 00 00 5E [09:55:03]Write i2c OK [09:55:03]MH_I2C_Read... [09:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:03]Read from MH i2c: E2 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: E2 62 00 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: E2 62 00 13 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [09:55: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:03]wFMCommunicate OK [09:55:03]SAM_PROTO_GetFieldsCounters done [09:55:03]requested_item shift.num is exist - process it [09:55:03]requested_item shift.opened is exist - process it [09:55:03]req_shift_opened [09:55:03]FM_GetShiftState [09:55:03]SAM_PROTO_GetShiftState [09:55:03]wFMCommunicate request_size=4 [09:55:03]MH_SAM_APDU [09:55:03]CAPDU: 80 13 01 00 [09:55:03]Write to MH i2c: E2 08 00 14 CF 80 13 01 00 00 00 00 00 60 [09:55:03]Write i2c OK [09:55:03]MH_I2C_Read... [09:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:03]Read from MH i2c: E2 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: E2 0E 00 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: E2 0E 00 14 CF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A8 [09:55:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:55:03]wFMCommunicate OK [09:55:03]SAM_PROTO_GetShiftState done [09:55:03]FM_GetShiftState done [09:55:03]req_shift_opened done [09:55:03]requested_item shift.open_date is exist - process it [09:55:03]req_shift_open_date [09:55:03]req_shift_open_date done [09:55:03]produce_requested_data done [09:55:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165584,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:55:03]process_action_free close_receipt [09:55:03]json_value_free [09:55:03]json_value_free done [09:55:03]process_json_proto returns [09:55:03]Send response to host [09:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165584,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:55:03]free response buf [09:55:03]execute_script done [09:55:03]execute_script returns [09:55:03]free content buf [09:55:03]Sock 7.Close socket [09:55:03]Sock 7.Thread stoped [09:55:22]accept exits with 9 [09:55:22]New connection [09:55:22]New thread 3066920292 created [09:55:22]Thread 3066776932 joined [09:55:22]Waiting for new connection... [09:55:22] Sock 9.Parse request [09:55:22]Sock 9.Check first char [09:55:22]Sock 9.First char is OK [09:55:22]request: POST /json_proto HTTP/1.0 [09:55:22]Method: POST [09:55:22]URL: /json_proto [09:55:22]Method is POST - this is cgi request [09:55:22]url: /json_proto [09:55:22]query_string will be loaded in cgi processing [09:55:22]execute_cgi json_proto POST (null) [09:55:22]execute_cgi path=json_proto method=POST [09:55:22]POST find Content-Length [09:55:22]Host: 172.17.53.195:8080 [09:55:22]Content-Length: 766 [09:55:22]Content-Type: application/json [09:55:22] [09:55:22]POST finish read [09:55:22]Found Content-Length = 766 [09:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220143", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:22]execute_script... [09:55: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)220143", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:22]POST & json_proto [09:55:22]process_json_proto [09:55:22]json parsed OK: [09:55:22]protocol is kg_v1.0 [09:55:22]action value=close_receipt [09:55:22]process_action close_receipt [09:55:22]cmd_close_receipt [09:55:22]MH_GetDate [09:55:22]Write to MH i2c: F0 00 00 15 CF D3 [09:55:22]Write i2c OK [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: F0 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: F0 09 00 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: F0 09 00 15 CF 00 96 D3 14 67 21 48 4A 65 D8 [09:55:22]GetLastDocTimeStamp 1729418110 [09:55:22]current date 1729418134 [09:55:22]FM_GetShiftState [09:55:22]SAM_PROTO_GetShiftState [09:55:22]wFMCommunicate request_size=4 [09:55:22]MH_SAM_APDU [09:55:22]CAPDU: 80 13 01 00 [09:55:22]Write to MH i2c: E2 08 00 16 CF 80 13 01 00 00 00 00 00 62 [09:55:22]Write i2c OK [09:55:22]MH_I2C_Read... [09:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:22]Read from MH i2c: E2 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: E2 0E 00 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: E2 0E 00 16 CF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AA [09:55:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:55:22]wFMCommunicate OK [09:55:22]SAM_PROTO_GetShiftState done [09:55:22]FM_GetShiftState done [09:55:22]opened in 1729384561 [09:55:22]opened+sec_in_day 1729470961 [09:55:22]quantity*price = 200025 [09:55:22]sum+1 = 200026 [09:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 67 20.10.2024 09:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165585 ФПД: 211196620845331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095534&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165585&fm=211196620845331&tin=02508201610067®Number=0000000000091764&sum=200025 [09:55:23]StoreToDocumentArchive [09:55:23]shift 534 fd 165585 [09:55:23]save to /storage/0534/doc_00165585 [09:55:23]save last doc name /storage/0534/doc_00165585 to /storage/kkm_last_doc_name [09:55:23]save OK [09:55:23]Clear old archive folders... [09:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:55:23]tlvbuf is 01460B30 [09:55:23]SAM_PROTO_ClearQueue [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 09 00 00 [09:55:23]Write to MH i2c: E2 08 00 23 CF 80 09 00 00 00 00 00 00 64 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 23 CF 00 90 00 66 [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]SAM_PROTO_ClearQueue done [09:55:23]KKMCreateOFDPacket [09:55:23]OFDProtocolAddRootSTLVToBuf [09:55:23]FM_MakeSignedData [09:55:23]FM_MakeSignedData [09:55:23]SAM_PROTO_SignData [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 0D 01 02 [09:55:23]Write to MH i2c: E2 08 00 24 CF 80 0D 01 02 00 00 00 00 6C [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 24 CF 00 90 00 67 [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]wFMCommunicate request_size=255 [09:55:23]MH_SAM_APDU [09:55: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 96 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 86 02 00 35 04 06 00 C0 15 0B 90 [09:55:23]Write to MH i2c: E2 02 01 25 CF 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 96 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 86 02 00 35 04 06 00 C0 15 0B 90 00 00 20 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 25 CF 00 90 00 68 [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]wFMCommunicate request_size=7 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 0D 02 02 02 31 13 [09:55:23]Write to MH i2c: E2 0A 00 26 CF 80 0D 02 02 02 00 31 13 00 00 B7 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 26 CF 00 90 00 69 [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 0D 03 02 [09:55:23]Write to MH i2c: E2 08 00 27 CF 80 0D 03 02 00 00 00 00 71 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 0B 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 0B 00 27 CF 00 9D D7 46 92 9A 84 BC 3A 90 00 D2 [09:55:23]RAPDU: 9D D7 46 92 9A 84 BC 3A 90 00 [09:55:23]wFMCommunicate OK [09:55:23]SAM_PROTO_SignData done [09:55:23]FM_MakeSignedData done [09:55:23]CreateOFDProtocolMessage [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 11 00 00 [09:55:23]Write to MH i2c: E2 08 00 28 CF 80 11 00 00 00 00 00 00 71 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:24]Read from MH i2c: E2 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: E2 17 00 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: E2 17 00 28 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [09:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:55:24]wFMCommunicate OK [09:55:24]CreateOFDProtocolMessage done [09:55:24]OFDSenderStorePacket 165585 [09:55:24]StoreOFDPacket docnum=165585 [09:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 87 DE 04 01 60 A7 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 96 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 86 02 00 35 04 06 00 C0 15 0B 90 31 13 9D D7 46 92 9A 84 BC 3A [09:55:24]CheckFolder [09:55:24]dirname=/storage/ofd_packets [09:55:24]CheckFolder done [09:55:24]ProducePacketName [09:55:24]name=ofd_packets/00165585 [09:55:24]NVStorageSaveData ofd_packets/00165585 [09:55:24]File name is /storage/ofd_packets/00165585 [09:55:24]Write 298 bytes [09:55:24]NVStorageSaveData done [09:55:24]OFDSenderStorePacket done [09:55:24]KKMCreateOFDPacket done [09:55:24]NVStorageSaveData kkm_last_timestamp [09:55:24]File name is /storage/kkm_last_timestamp [09:55:24]Write 4 bytes [09:55:24]NVStorageSaveData done [09:55:24]ExternCall_PrintAddStr [09:55:24]wPrintStart [09:55:24]Write to MH i2c: 01 00 00 29 CF F8 [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 07 00 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 07 00 29 CF 00 00 00 00 00 FF 0F 0D [09:55:24]RasterBufferAndPrint [09:55:24]line Счет N : (1)220143 [09:55:24]line ИНН: 02508201610067 [09:55:24]line Контрольно-Кассовый Чек [09:55:24]line ПРОДАЖА [09:55:24]line ТРК (МРК, ГНК) : 11 [09:55:24]line Товар: 2710194210 [09:55:24]line ДТ-К-5 [09:55:24]line 26.250 * 76.20 [09:55:24]line = 2000.25 [09:55:24]line НДС 12% НСП 1% [09:55:24]line > о реализуемом товаре [09:55:24]line ИТОГО: 2000.25 [09:55:24]line НСП 1% : 17.70 [09:55:24]line НДС 12% : 212.42 [09:55:24]line Наличными: 0.00 [09:55:24]line Безнал.: 2000.25 [09:55:24]line Место: АЗС № 161 "Партнер Нефть" [09:55:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:55:24]line СНО: Общий режим [09:55:24]line Чек 67 20.10.2024 09:55 [09:55:24]line Смена: 534 ФФД: 1.0 [09:55:24]line ЗНМ: 0300000104 [09:55:24]line РНМ: 0000000000091764 [09:55:24]line Версия ККМ: 001 [09:55:24]line Платежная система: Mbank [09:55:24]line ФМ: 0000000000871759 [09:55:24]line ФД: 165585 [09:55:24]line ФПД: 211196620845331 [09:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095534&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165585&fm=211196620845331&tin=02508201610067®Number=0000000000091764&sum=200025 [09:55:24]written 0, free lines is 4095 [09:55:24]Write to MH i2c: 01 00 00 52 CF 21 [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 07 00 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 07 00 52 CF 00 00 00 00 00 E4 0C 18 [09:55:24]RasterBufferAndPrint [09:55:24]line [09:55:24]line [09:55:24]line [09:55:24]line [09:55:24]line [09:55:24]written 0, free lines is 3306 [09:55:24]MH_Cut [09:55:24]Write to MH i2c: D1 01 00 59 CF 01 FA [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: D1 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: D1 01 00 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: D1 01 00 59 CF 00 F9 [09:55:24]Write to MH i2c: 01 00 00 5A CF 29 [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:25]*** Cut start [09:55:25]*** Partial cut [09:55:25]*** CUTSNS_PIN = 1 [09:55:25]*** CUTSNS_PIN = 0 [09:55:25]*** Brake cut motor [09:55:26]Read from MH i2c: 01 [09:55:26]MH_I2C_Read... [09:55:26]*** Stop cut motor [09:55:26]*** Cut end [09:55:26]Read from MH i2c: 01 07 00 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: 01 07 00 5A CF 00 00 00 00 00 FF 0F 3E [09:55:26]process_action close_receipt done [09:55:26]requested_data is exist [09:55:26]produce_requested_data [09:55:26]requested_item fm.sn is exist - process it [09:55:26]wFMCommunicate request_size=4 [09:55:26]MH_SAM_APDU [09:55:26]CAPDU: 80 11 00 00 [09:55:26]Write to MH i2c: E2 08 00 5B CF 80 11 00 00 00 00 00 00 A4 [09:55:26]Write i2c OK [09:55:26]MH_I2C_Read... [09:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:26]Read from MH i2c: E2 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 17 00 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 17 00 5B CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [09:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:55:26]wFMCommunicate OK [09:55:26]requested_item fd.num is exist - process it [09:55:26]SAM_PROTO_GetFieldsCounters [09:55:26]wFMCommunicate request_size=4 [09:55:26]MH_SAM_APDU [09:55:26]CAPDU: 80 13 00 00 [09:55:26]Write to MH i2c: E2 08 00 5C CF 80 13 00 00 00 00 00 00 A7 [09:55:26]Write i2c OK [09:55:26]MH_I2C_Read... [09:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:26]Read from MH i2c: E2 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 62 00 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 62 00 5C CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [09:55:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:26]wFMCommunicate OK [09:55:26]SAM_PROTO_GetFieldsCounters done [09:55:26]requested_item shift.num is exist - process it [09:55:26]requested_item shift.opened is exist - process it [09:55:26]req_shift_opened [09:55:26]FM_GetShiftState [09:55:26]SAM_PROTO_GetShiftState [09:55:26]wFMCommunicate request_size=4 [09:55:26]MH_SAM_APDU [09:55:26]CAPDU: 80 13 01 00 [09:55:26]Write to MH i2c: E2 08 00 5D CF 80 13 01 00 00 00 00 00 A9 [09:55:26]Write i2c OK [09:55:26]MH_I2C_Read... [09:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:26]Read from MH i2c: E2 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 0E 00 [09:55:26]MH_I2C_Read... [09:55:26]Read from MH i2c: E2 0E 00 5D CF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F1 [09:55:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:55:26]wFMCommunicate OK [09:55:26]SAM_PROTO_GetShiftState done [09:55:26]FM_GetShiftState done [09:55:26]req_shift_opened done [09:55:26]requested_item shift.open_date is exist - process it [09:55:26]req_shift_open_date [09:55:26]req_shift_open_date done [09:55:26]produce_requested_data done [09:55:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165585,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:55:26]process_action_free close_receipt [09:55:26]json_value_free [09:55:26]json_value_free done [09:55:26]process_json_proto returns [09:55:26]Send response to host [09:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165585,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:55:26]free response buf [09:55:26]execute_script done [09:55:26]execute_script returns [09:55:26]free content buf [09:55:26]Sock 9.Close socket [09:55:26]Sock 9.Thread stoped [09:56:09]accept exits with 7 [09:56:09]New connection [09:56:09]New thread 3066776932 created [09:56:09]Thread 3066920292 joined [09:56:09]Waiting for new connection... [09:56:09] Sock 7.Parse request [09:56:09]Sock 7.Check first char [09:56:09]Sock 7.First char is OK [09:56:09]request: POST /json_proto HTTP/1.0 [09:56:09]Method: POST [09:56:09]URL: /json_proto [09:56:09]Method is POST - this is cgi request [09:56:09]url: /json_proto [09:56:09]query_string will be loaded in cgi processing [09:56:09]execute_cgi json_proto POST (null) [09:56:09]execute_cgi path=json_proto method=POST [09:56:09]POST find Content-Length [09:56:09]Host: 172.17.53.195:8080 [09:56:09]Content-Length: 674 [09:56:09]Content-Type: application/json [09:56:09] [09:56:09]POST finish read [09:56:09]Found Content-Length = 674 [09:56:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:09]execute_script... [09:56: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)220145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:09]POST & json_proto [09:56:09]process_json_proto [09:56:09]json parsed OK: [09:56:09]protocol is kg_v1.0 [09:56:09]action value=close_receipt [09:56:09]process_action close_receipt [09:56:09]cmd_close_receipt [09:56:09]MH_GetDate [09:56:09]Write to MH i2c: F0 00 00 5E CF 1C [09:56:09]Write i2c OK [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: F0 [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: F0 09 00 [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: F0 09 00 5E CF 00 C5 D3 14 67 21 48 4A 65 50 [09:56:09]GetLastDocTimeStamp 1729418134 [09:56:09]current date 1729418181 [09:56:09]FM_GetShiftState [09:56:09]SAM_PROTO_GetShiftState [09:56:09]wFMCommunicate request_size=4 [09:56:09]MH_SAM_APDU [09:56:09]CAPDU: 80 13 01 00 [09:56:09]Write to MH i2c: E2 08 00 5F CF 80 13 01 00 00 00 00 00 AB [09:56:09]Write i2c OK [09:56:09]MH_I2C_Read... [09:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:10]Read from MH i2c: E2 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: E2 0E 00 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: E2 0E 00 5F CF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F3 [09:56:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:56:10]wFMCommunicate OK [09:56:10]SAM_PROTO_GetShiftState done [09:56:10]FM_GetShiftState done [09:56:10]opened in 1729384561 [09:56:10]opened+sec_in_day 1729470961 [09:56:10]quantity*price = 38023 [09:56:10]sum+1 = 38025 [09:56:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.36 НДС 12% : 40.38 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 68 20.10.2024 09:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165586 ФПД: 231754217243603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095621&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165586&fm=231754217243603&tin=02508201610067®Number=0000000000091764&sum=38000 [09:56:11]StoreToDocumentArchive [09:56:11]shift 534 fd 165586 [09:56:11]save to /storage/0534/doc_00165586 [09:56:11]save last doc name /storage/0534/doc_00165586 to /storage/kkm_last_doc_name [09:56:11]save OK [09:56:11]Clear old archive folders... [09:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:11]tlvbuf is 014698C0 [09:56:11]SAM_PROTO_ClearQueue [09:56:11]wFMCommunicate request_size=4 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 09 00 00 [09:56:11]Write to MH i2c: E2 08 00 6C CF 80 09 00 00 00 00 00 00 AD [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 6C CF 00 90 00 AF [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]SAM_PROTO_ClearQueue done [09:56:11]KKMCreateOFDPacket [09:56:11]OFDProtocolAddRootSTLVToBuf [09:56:11]FM_MakeSignedData [09:56:11]FM_MakeSignedData [09:56:11]SAM_PROTO_SignData [09:56:11]wFMCommunicate request_size=4 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 0D 01 02 [09:56:11]Write to MH i2c: E2 08 00 6D CF 80 0D 01 02 00 00 00 00 B5 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 6D CF 00 90 00 B0 [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=255 [09:56:11]MH_SAM_APDU [09:56: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 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 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 C5 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 86 02 00 35 04 06 00 D2 C7 7B CB [09:56:11]Write to MH i2c: E2 02 01 6E CF 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 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 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 C5 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 86 02 00 35 04 06 00 D2 C7 7B CB 00 00 7D [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 6E CF 00 90 00 B1 [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=7 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 0D 02 02 02 43 D3 [09:56:11]Write to MH i2c: E2 0A 00 6F CF 80 0D 02 02 02 00 43 D3 00 00 D2 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 6F CF 00 90 00 B2 [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=4 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 0D 03 02 [09:56:11]Write to MH i2c: E2 08 00 70 CF 80 0D 03 02 00 00 00 00 BA [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 0B 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 0B 00 70 CF 00 F0 F8 2B 83 27 FB 06 00 90 00 79 [09:56:11]RAPDU: F0 F8 2B 83 27 FB 06 00 90 00 [09:56:11]wFMCommunicate OK [09:56:11]SAM_PROTO_SignData done [09:56:11]FM_MakeSignedData done [09:56:11]CreateOFDProtocolMessage [09:56:11]wFMCommunicate request_size=4 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 11 00 00 [09:56:11]Write to MH i2c: E2 08 00 71 CF 80 11 00 00 00 00 00 00 BA [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 17 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 17 00 71 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 12 [09:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:56:11]wFMCommunicate OK [09:56:11]CreateOFDProtocolMessage done [09:56:11]OFDSenderStorePacket 165586 [09:56:11]StoreOFDPacket docnum=165586 [09:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AF 1E 04 01 D8 DD 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 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 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 C5 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 86 02 00 35 04 06 00 D2 C7 7B CB 43 D3 F0 F8 2B 83 27 FB 06 00 [09:56:11]CheckFolder [09:56:11]dirname=/storage/ofd_packets [09:56:11]CheckFolder done [09:56:11]ProducePacketName [09:56:11]name=ofd_packets/00165586 [09:56:11]NVStorageSaveData ofd_packets/00165586 [09:56:11]File name is /storage/ofd_packets/00165586 [09:56:11]Write 298 bytes [09:56:11]NVStorageSaveData done [09:56:11]OFDSenderStorePacket done [09:56:11]KKMCreateOFDPacket done [09:56:11]NVStorageSaveData kkm_last_timestamp [09:56:11]File name is /storage/kkm_last_timestamp [09:56:11]Write 4 bytes [09:56:11]NVStorageSaveData done [09:56:11]ExternCall_PrintAddStr [09:56:11]wPrintStart [09:56:11]Write to MH i2c: 01 00 00 72 CF 41 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: 01 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: 01 07 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: 01 07 00 72 CF 00 00 00 00 00 FF 0F 56 [09:56:11]RasterBufferAndPrint [09:56:11]line Счет N : (1)220145 [09:56:11]line ИНН: 02508201610067 [09:56:11]line Контрольно-Кассовый Чек [09:56:11]line ПРОДАЖА [09:56:11]line ТРК (МРК, ГНК) : 31 [09:56:11]line Товар: 2710194210 [09:56:11]line ДТ-К-5 [09:56:11]line 4.990 * 76.20 [09:56:11]line = 380.24 [09:56:11]line НДС 12% НСП 1% [09:56:11]line > о реализуемом товаре [09:56:11]line ОКРУГЛЕНИЕ: -0.24 [09:56:11]line ИТОГО: 380.00 [09:56:11]line Внесено: 380.00 [09:56:11]line СДАЧА: 0.00 [09:56:11]line НСП 1% : 3.36 [09:56:11]line НДС 12% : 40.38 [09:56:11]line Наличными: 380.00 [09:56:11]line Безнал.: 0.00 [09:56:11]line Место: АЗС № 161 "Партнер Нефть" [09:56:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:56:11]line СНО: Общий режим [09:56:11]line Чек 68 20.10.2024 09:56 [09:56:11]line Смена: 534 ФФД: 1.0 [09:56:11]line ЗНМ: 0300000104 [09:56:11]line РНМ: 0000000000091764 [09:56:11]line Версия ККМ: 001 [09:56:11]line ФМ: 0000000000871759 [09:56:11]line ФД: 165586 [09:56:11]line ФПД: 231754217243603 [09:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095621&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165586&fm=231754217243603&tin=02508201610067®Number=0000000000091764&sum=38000 [09:56:12]written 0, free lines is 4095 [09:56:12]Write to MH i2c: 01 00 00 9D CF 6C [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: 01 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: 01 07 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: 01 07 00 9D CF 00 00 00 00 00 BF 0C 3E [09:56:12]RasterBufferAndPrint [09:56:12]line [09:56:12]line [09:56:12]line [09:56:12]line [09:56:12]line [09:56:12]written 0, free lines is 3269 [09:56:12]MH_Cut [09:56:12]Write to MH i2c: D1 01 00 A4 CF 01 45 [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: D1 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: D1 01 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: D1 01 00 A4 CF 00 44 [09:56:12]Write to MH i2c: 01 00 00 A5 CF 74 [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:13]*** Cut start [09:56:13]*** Partial cut [09:56:13]*** CUTSNS_PIN = 1 [09:56:13]*** CUTSNS_PIN = 0 [09:56:13]*** Brake cut motor [09:56:13]Read from MH i2c: 01 [09:56:13]MH_I2C_Read... [09:56:13]*** Stop cut motor [09:56:13]*** Cut end [09:56:13]Read from MH i2c: 01 07 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 07 00 A5 CF 00 00 00 00 00 FF 0F 89 [09:56:13]process_action close_receipt done [09:56:13]requested_data is exist [09:56:13]produce_requested_data [09:56:13]requested_item fm.sn is exist - process it [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 11 00 00 [09:56:13]Write to MH i2c: E2 08 00 A6 CF 80 11 00 00 00 00 00 00 EF [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 17 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 17 00 A6 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [09:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:56:13]wFMCommunicate OK [09:56:13]requested_item fd.num is exist - process it [09:56:13]SAM_PROTO_GetFieldsCounters [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 13 00 00 [09:56:13]Write to MH i2c: E2 08 00 A7 CF 80 13 00 00 00 00 00 00 F2 [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:14]Read from MH i2c: E2 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: E2 62 00 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: E2 62 00 A7 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [09:56:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:14]wFMCommunicate OK [09:56:14]SAM_PROTO_GetFieldsCounters done [09:56:14]requested_item shift.num is exist - process it [09:56:14]requested_item shift.opened is exist - process it [09:56:14]req_shift_opened [09:56:14]FM_GetShiftState [09:56:14]SAM_PROTO_GetShiftState [09:56:14]wFMCommunicate request_size=4 [09:56:14]MH_SAM_APDU [09:56:14]CAPDU: 80 13 01 00 [09:56:14]Write to MH i2c: E2 08 00 A8 CF 80 13 01 00 00 00 00 00 F4 [09:56:14]Write i2c OK [09:56:14]MH_I2C_Read... [09:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:14]Read from MH i2c: E2 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: E2 0E 00 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: E2 0E 00 A8 CF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3C [09:56:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:56:14]wFMCommunicate OK [09:56:14]SAM_PROTO_GetShiftState done [09:56:14]FM_GetShiftState done [09:56:14]req_shift_opened done [09:56:14]requested_item shift.open_date is exist - process it [09:56:14]req_shift_open_date [09:56:14]req_shift_open_date done [09:56:14]produce_requested_data done [09:56:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165586,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:56:14]process_action_free close_receipt [09:56:14]json_value_free [09:56:14]json_value_free done [09:56:14]process_json_proto returns [09:56:14]Send response to host [09:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165586,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:56:14]free response buf [09:56:14]execute_script done [09:56:14]execute_script returns [09:56:14]free content buf [09:56:14]Sock 7.Close socket [09:56:14]Sock 7.Thread stoped [09:56:47]accept exits with 9 [09:56:47]New connection [09:56:47]New thread 3066920292 created [09:56:47]Thread 3066776932 joined [09:56:47]Waiting for new connection... [09:56:47] Sock 9.Parse request [09:56:47]Sock 9.Check first char [09:56:47]Sock 9.First char is OK [09:56:47]request: POST /json_proto HTTP/1.0 [09:56:47]Method: POST [09:56:47]URL: /json_proto [09:56:47]Method is POST - this is cgi request [09:56:47]url: /json_proto [09:56:47]query_string will be loaded in cgi processing [09:56:47]execute_cgi json_proto POST (null) [09:56:47]execute_cgi path=json_proto method=POST [09:56:47]POST find Content-Length [09:56:47]Host: 172.17.53.195:8080 [09:56:47]Content-Length: 677 [09:56:47]Content-Type: application/json [09:56:47] [09:56:47]POST finish read [09:56:47]Found Content-Length = 677 [09:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:47]execute_script... [09:56: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)220146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:47]POST & json_proto [09:56:47]process_json_proto [09:56:47]json parsed OK: [09:56:47]protocol is kg_v1.0 [09:56:47]action value=close_receipt [09:56:47]process_action close_receipt [09:56:47]cmd_close_receipt [09:56:47]MH_GetDate [09:56:47]Write to MH i2c: F0 00 00 A9 CF 67 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: F0 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: F0 09 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: F0 09 00 A9 CF 00 EB D3 14 67 21 48 4A 65 C1 [09:56:47]GetLastDocTimeStamp 1729418181 [09:56:47]current date 1729418219 [09:56:47]FM_GetShiftState [09:56:47]SAM_PROTO_GetShiftState [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 13 01 00 [09:56:47]Write to MH i2c: E2 08 00 AA CF 80 13 01 00 00 00 00 00 F6 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0E 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0E 00 AA CF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3E [09:56:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:56:47]wFMCommunicate OK [09:56:47]SAM_PROTO_GetShiftState done [09:56:47]FM_GetShiftState done [09:56:47]opened in 1729384561 [09:56:47]opened+sec_in_day 1729470961 [09:56:47]quantity*price = 30038 [09:56:47]sum+1 = 30039 [09:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 69 20.10.2024 09:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165587 ФПД: 150630772089580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165587&fm=150630772089580&tin=02508201610067®Number=0000000000091764&sum=30000 [09:56:48]StoreToDocumentArchive [09:56:48]shift 534 fd 165587 [09:56:48]save to /storage/0534/doc_00165587 [09:56:48]save last doc name /storage/0534/doc_00165587 to /storage/kkm_last_doc_name [09:56:48]save OK [09:56:48]Clear old archive folders... [09:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:48]tlvbuf is 014ED090 [09:56:48]SAM_PROTO_ClearQueue [09:56:48]wFMCommunicate request_size=4 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 09 00 00 [09:56:48]Write to MH i2c: E2 08 00 B7 CF 80 09 00 00 00 00 00 00 F8 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 B7 CF 00 90 00 FA [09:56:48]RAPDU: 90 00 [09:56:48]wFMCommunicate OK [09:56:48]SAM_PROTO_ClearQueue done [09:56:48]KKMCreateOFDPacket [09:56:48]OFDProtocolAddRootSTLVToBuf [09:56:48]FM_MakeSignedData [09:56:48]FM_MakeSignedData [09:56:48]SAM_PROTO_SignData [09:56:48]wFMCommunicate request_size=4 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 0D 01 02 [09:56:48]Write to MH i2c: E2 08 00 B8 CF 80 0D 01 02 00 00 00 00 00 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 B8 CF 00 90 00 FB [09:56:48]RAPDU: 90 00 [09:56:48]wFMCommunicate OK [09:56:48]wFMCommunicate request_size=255 [09:56:48]MH_SAM_APDU [09:56: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EB D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 86 02 00 35 04 06 00 88 [09:56:48]Write to MH i2c: E2 02 01 B9 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EB D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 86 02 00 35 04 06 00 88 00 00 03 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:49]Read from MH i2c: E2 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 03 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 03 00 B9 CF 00 90 00 FC [09:56:49]RAPDU: 90 00 [09:56:49]wFMCommunicate OK [09:56:49]wFMCommunicate request_size=10 [09:56:49]MH_SAM_APDU [09:56:49]CAPDU: 80 0D 02 02 05 FF 75 A9 A2 EC [09:56:49]Write to MH i2c: E2 0D 00 BA CF 80 0D 02 02 05 00 FF 75 A9 A2 EC 00 00 B8 [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:49]Read from MH i2c: E2 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 03 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 03 00 BA CF 00 90 00 FD [09:56:49]RAPDU: 90 00 [09:56:49]wFMCommunicate OK [09:56:49]wFMCommunicate request_size=4 [09:56:49]MH_SAM_APDU [09:56:49]CAPDU: 80 0D 03 02 [09:56:49]Write to MH i2c: E2 08 00 BB CF 80 0D 03 02 00 00 00 00 05 [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:49]Read from MH i2c: E2 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 0B 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 0B 00 BB CF 00 FD 51 B7 A5 40 CB 0A 43 90 00 08 [09:56:49]RAPDU: FD 51 B7 A5 40 CB 0A 43 90 00 [09:56:49]wFMCommunicate OK [09:56:49]SAM_PROTO_SignData done [09:56:49]FM_MakeSignedData done [09:56:49]CreateOFDProtocolMessage [09:56:49]wFMCommunicate request_size=4 [09:56:49]MH_SAM_APDU [09:56:49]CAPDU: 80 11 00 00 [09:56:49]Write to MH i2c: E2 08 00 BC CF 80 11 00 00 00 00 00 00 05 [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:49]Read from MH i2c: E2 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 17 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 17 00 BC CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [09:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:56:49]wFMCommunicate OK [09:56:49]CreateOFDProtocolMessage done [09:56:49]OFDSenderStorePacket 165587 [09:56:49]StoreOFDPacket docnum=165587 [09:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 78 07 01 8A 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EB D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 86 02 00 35 04 06 00 88 FF 75 A9 A2 EC FD 51 B7 A5 40 CB 0A 43 [09:56:49]CheckFolder [09:56:49]dirname=/storage/ofd_packets [09:56:49]CheckFolder done [09:56:49]ProducePacketName [09:56:49]name=ofd_packets/00165587 [09:56:49]NVStorageSaveData ofd_packets/00165587 [09:56:49]File name is /storage/ofd_packets/00165587 [09:56:49]Write 301 bytes [09:56:49]NVStorageSaveData done [09:56:49]OFDSenderStorePacket done [09:56:49]KKMCreateOFDPacket done [09:56:49]NVStorageSaveData kkm_last_timestamp [09:56:49]File name is /storage/kkm_last_timestamp [09:56:49]Write 4 bytes [09:56:49]NVStorageSaveData done [09:56:49]ExternCall_PrintAddStr [09:56:49]wPrintStart [09:56:49]Write to MH i2c: 01 00 00 BD CF 8C [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: 01 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: 01 07 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: 01 07 00 BD CF 00 00 00 00 00 FF 0F A1 [09:56:49]RasterBufferAndPrint [09:56:49]line Счет N : (1)220146 [09:56:49]line ИНН: 02508201610067 [09:56:49]line Контрольно-Кассовый Чек [09:56:49]line ПРОДАЖА [09:56:49]line ТРК (МРК, ГНК) : 43 [09:56:49]line Товар: 2710124130 [09:56:49]line Аи-92-К-5 [09:56:49]line 4.490 * 66.90 [09:56:49]line = 300.38 [09:56:49]line НДС 12% НСП 1% [09:56:49]line > о реализуемом товаре [09:56:49]line ОКРУГЛЕНИЕ: -0.38 [09:56:49]line ИТОГО: 300.00 [09:56:49]line Внесено: 300.00 [09:56:49]line СДАЧА: 0.00 [09:56:49]line НСП 1% : 2.66 [09:56:49]line НДС 12% : 31.90 [09:56:49]line Наличными: 300.00 [09:56:49]line Безнал.: 0.00 [09:56:49]line Место: АЗС № 161 "Партнер Нефть" [09:56:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:56:49]line СНО: Общий режим [09:56:49]line Чек 69 20.10.2024 09:56 [09:56:49]line Смена: 534 ФФД: 1.0 [09:56:49]line ЗНМ: 0300000104 [09:56:49]line РНМ: 0000000000091764 [09:56:49]line Версия ККМ: 001 [09:56:49]line ФМ: 0000000000871759 [09:56:49]line ФД: 165587 [09:56:49]line ФПД: 150630772089580 [09:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165587&fm=150630772089580&tin=02508201610067®Number=0000000000091764&sum=30000 [09:56:49]written 0, free lines is 4095 [09:56:50]Write to MH i2c: 01 00 00 E8 CF B7 [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: 01 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: 01 07 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: 01 07 00 E8 CF 00 00 00 00 00 C0 0C 8A [09:56:50]RasterBufferAndPrint [09:56:50]line [09:56:50]line [09:56:50]line [09:56:50]line [09:56:50]line [09:56:50]written 0, free lines is 3271 [09:56:50]MH_Cut [09:56:50]Write to MH i2c: D1 01 00 EF CF 01 90 [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: D1 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: D1 01 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: D1 01 00 EF CF 00 8F [09:56:50]Write to MH i2c: 01 00 00 F0 CF BF [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:50]*** Cut start [09:56:50]*** Partial cut [09:56:50]*** CUTSNS_PIN = 1 [09:56:50]*** CUTSNS_PIN = 0 [09:56:51]*** Brake cut motor [09:56:51]Read from MH i2c: 01 [09:56:51]MH_I2C_Read... [09:56:51]*** Stop cut motor [09:56:51]*** Cut end [09:56:51]Read from MH i2c: 01 07 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: 01 07 00 F0 CF 00 00 00 00 00 FF 0F D4 [09:56:51]process_action close_receipt done [09:56:51]requested_data is exist [09:56:51]produce_requested_data [09:56:51]requested_item fm.sn is exist - process it [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 11 00 00 [09:56:51]Write to MH i2c: E2 08 00 F1 CF 80 11 00 00 00 00 00 00 3A [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 17 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 17 00 F1 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [09:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:56:51]wFMCommunicate OK [09:56:51]requested_item fd.num is exist - process it [09:56:51]SAM_PROTO_GetFieldsCounters [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 13 00 00 [09:56:51]Write to MH i2c: E2 08 00 F2 CF 80 13 00 00 00 00 00 00 3D [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 62 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 62 00 F2 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [09:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:51]wFMCommunicate OK [09:56:51]SAM_PROTO_GetFieldsCounters done [09:56:51]requested_item shift.num is exist - process it [09:56:51]requested_item shift.opened is exist - process it [09:56:51]req_shift_opened [09:56:51]FM_GetShiftState [09:56:51]SAM_PROTO_GetShiftState [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 13 01 00 [09:56:51]Write to MH i2c: E2 08 00 F3 CF 80 13 01 00 00 00 00 00 3F [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 0E 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 0E 00 F3 CF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 87 [09:56:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [09:56:51]wFMCommunicate OK [09:56:51]SAM_PROTO_GetShiftState done [09:56:51]FM_GetShiftState done [09:56:51]req_shift_opened done [09:56:51]requested_item shift.open_date is exist - process it [09:56:51]req_shift_open_date [09:56:51]req_shift_open_date done [09:56:51]produce_requested_data done [09:56:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165587,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [09:56:51]process_action_free close_receipt [09:56:51]json_value_free [09:56:51]json_value_free done [09:56:51]process_json_proto returns [09:56:51]Send response to host [09:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165587,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [09:56:51]free response buf [09:56:51]execute_script done [09:56:51]execute_script returns [09:56:51]free content buf [09:56:51]Sock 9.Close socket [09:56:51]Sock 9.Thread stoped [09:57:08]ConnectInit Can't connect to host [09:57:08]CommunicateWithHost connect error [09:57:08]CommunicateWithHost err = -1 [09:57:08]OFD Sender: Server communicate error [09:57:08]OFD Sender: Processing packet 165583 [packets to send 52, broken 47] [09:57:08]ProducePacketName [09:57:08]name=ofd_packets/00165583 [09:57:08]OFD Sender: To server: pG, [09:57:08]CommunicateWithHost lk.salyk.kg:30040 [09:57:08]ConnectInit lk.salyk.kg [09:57:08]Connected sock=9 [09:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E 4F 07 01 A0 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 7A D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 86 02 00 35 04 06 00 55 A2 65 A8 78 83 25 C7 19 FA DB 83 E1 96 [09:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 27 B8 47 00 8B 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 31 37 35 39 10 04 04 00 CF 86 02 00 F4 03 04 00 70 7A 14 67 B6 04 01 00 00 82 AC 0F 83 83 CA 71 78 [09:57:08]CommunicateWithHost err = 0 [09:57:08]CheckOFDResponse [09:57:08]1017 (14) - 77093643461234 [09:57:08]1041 (16) - 0000000000871759 [09:57:08]1040 (4) - 165583 [09:57:08]1012 (4) - 20.10.2024 03:35 [09:57:08]1206 (1) - 0 [09:57:08]OFD Sender: Remove packet 165583 [09:57:08]ProducePacketName [09:57:08]name=ofd_packets/00165583 [09:57:08]NVStorageDeleteData [09:57:09]OFD Sender: Processing packet 165584 [packets to send 51, broken 47] [09:57:09]ProducePacketName [09:57:09]name=ofd_packets/00165584 [09:57:09]OFD Sender: To server: pG, [09:57:09]CommunicateWithHost lk.salyk.kg:30040 [09:57:09]ConnectInit lk.salyk.kg [09:57:09]Connected sock=9 [09:57:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A4 67 04 01 A2 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 42 00 00 00 F4 03 04 00 7E D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 86 02 00 35 04 06 00 3E 38 A9 A4 91 64 37 B4 D5 3D B6 15 C3 11 [09:57:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 90 F0 47 00 13 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 86 02 00 F4 03 04 00 71 7A 14 67 B6 04 01 00 00 E6 5D A3 E3 69 9B 6E CB [09:57:09]CommunicateWithHost err = 0 [09:57:09]CheckOFDResponse [09:57:09]1017 (14) - 77093643461234 [09:57:09]1041 (16) - 0000000000871759 [09:57:09]1040 (4) - 165584 [09:57:09]1012 (4) - 20.10.2024 03:35 [09:57:09]1206 (1) - 0 [09:57:09]OFD Sender: Remove packet 165584 [09:57:09]ProducePacketName [09:57:09]name=ofd_packets/00165584 [09:57:09]NVStorageDeleteData [09:57:10]OFD Sender: Processing packet 165585 [packets to send 50, broken 47] [09:57:10]ProducePacketName [09:57:10]name=ofd_packets/00165585 [09:57:10]OFD Sender: To server: pG, [09:57:10]CommunicateWithHost lk.salyk.kg:30040 [09:57:10]ConnectInit lk.salyk.kg [09:57:10]Connected sock=9 [09: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 31 37 35 39 0C 01 00 00 87 DE 04 01 60 A7 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 96 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 86 02 00 35 04 06 00 C0 15 0B 90 31 13 9D D7 46 92 9A 84 BC 3A [09:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 16 47 00 E5 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 86 02 00 F4 03 04 00 72 7A 14 67 B6 04 01 00 00 11 43 FD 23 AA 81 55 F0 [09:57:10]CommunicateWithHost err = 0 [09:57:10]CheckOFDResponse [09:57:10]1017 (14) - 77093643461234 [09:57:10]1041 (16) - 0000000000871759 [09:57:10]1040 (4) - 165585 [09:57:10]1012 (4) - 20.10.2024 03:35 [09:57:10]1206 (1) - 0 [09:57:10]OFD Sender: Remove packet 165585 [09:57:10]ProducePacketName [09:57:10]name=ofd_packets/00165585 [09:57:10]NVStorageDeleteData [09:57:10]OFD Sender: Processing packet 165586 [packets to send 49, broken 47] [09:57:10]ProducePacketName [09:57:10]name=ofd_packets/00165586 [09:57:10]OFD Sender: To server: pG, [09:57:10]CommunicateWithHost lk.salyk.kg:30040 [09:57:10]ConnectInit lk.salyk.kg [09:57:11]Connected sock=10 [09: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 31 37 35 39 0C 01 00 00 AF 1E 04 01 D8 DD 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 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 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 C5 D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 86 02 00 35 04 06 00 D2 C7 7B CB 43 D3 F0 F8 2B 83 27 FB 06 00 [09:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FA F9 47 00 36 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 86 02 00 F4 03 04 00 72 7A 14 67 B6 04 01 00 00 DC FE A4 CD 34 E1 A7 04 [09:57:11]CommunicateWithHost err = 0 [09:57:11]CheckOFDResponse [09:57:11]1017 (14) - 77093643461234 [09:57:11]1041 (16) - 0000000000871759 [09:57:11]1040 (4) - 165586 [09:57:11]1012 (4) - 20.10.2024 03:35 [09:57:11]1206 (1) - 0 [09:57:11]OFD Sender: Remove packet 165586 [09:57:11]ProducePacketName [09:57:11]name=ofd_packets/00165586 [09:57:11]NVStorageDeleteData [09:57:11]OFD Sender: Processing packet 165587 [packets to send 48, broken 47] [09:57:11]ProducePacketName [09:57:11]name=ofd_packets/00165587 [09:57:11]OFD Sender: To server: pG, [09:57:11]CommunicateWithHost lk.salyk.kg:30040 [09:57:11]ConnectInit lk.salyk.kg [09:57:11]Connected sock=9 [09: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 31 37 35 39 0F 01 00 00 BB 78 07 01 8A 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EB D3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 86 02 00 35 04 06 00 88 FF 75 A9 A2 EC FD 51 B7 A5 40 CB 0A 43 [09:57:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 71 2B 47 00 F3 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 86 02 00 F4 03 04 00 73 7A 14 67 B6 04 01 00 00 37 EB C3 26 9B AE 6B 82 [09:57:12]CommunicateWithHost err = 0 [09:57:12]CheckOFDResponse [09:57:12]1017 (14) - 77093643461234 [09:57:12]1041 (16) - 0000000000871759 [09:57:12]1040 (4) - 165587 [09:57:12]1012 (4) - 20.10.2024 03:35 [09:57:12]1206 (1) - 0 [09:57:12]OFD Sender: Remove packet 165587 [09:57:12]ProducePacketName [09:57:12]name=ofd_packets/00165587 [09:57:12]NVStorageDeleteData [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:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:09]accept exits with 7 [10:01:09]New connection [10:01:09]New thread 3066776932 created [10:01:09]Thread 3066920292 joined [10:01:09]Waiting for new connection... [10:01:09] Sock 7.Parse request [10:01:09]Sock 7.Check first char [10:01:09]Sock 7.First char is OK [10:01:09]request: POST /json_proto HTTP/1.0 [10:01:09]Method: POST [10:01:09]URL: /json_proto [10:01:09]Method is POST - this is cgi request [10:01:09]url: /json_proto [10:01:09]query_string will be loaded in cgi processing [10:01:09]execute_cgi json_proto POST (null) [10:01:09]execute_cgi path=json_proto method=POST [10:01:09]POST find Content-Length [10:01:09]Host: 172.17.53.195:8080 [10:01:09]Content-Length: 679 [10:01:09]Content-Type: application/json [10:01:09] [10:01:09]POST finish read [10:01:09]Found Content-Length = 679 [10:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220147", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:01:09]execute_script... [10:01: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)220147", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:01:09]POST & json_proto [10:01:09]process_json_proto [10:01:09]json parsed OK: [10:01:09]protocol is kg_v1.0 [10:01:09]action value=close_receipt [10:01:09]process_action close_receipt [10:01:09]cmd_close_receipt [10:01:09]MH_GetDate [10:01:09]Write to MH i2c: F0 00 00 F4 CF B2 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: F0 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: F0 09 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: F0 09 00 F4 CF 00 F0 D4 14 67 21 48 4A 65 12 [10:01:09]GetLastDocTimeStamp 1729418219 [10:01:09]current date 1729418480 [10:01:09]FM_GetShiftState [10:01:09]SAM_PROTO_GetShiftState [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 13 01 00 [10:01:09]Write to MH i2c: E2 08 00 F5 CF 80 13 01 00 00 00 00 00 41 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 0E 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 0E 00 F5 CF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 89 [10:01:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:01:09]wFMCommunicate OK [10:01:09]SAM_PROTO_GetShiftState done [10:01:09]FM_GetShiftState done [10:01:09]opened in 1729384561 [10:01:09]opened+sec_in_day 1729470961 [10:01:09]quantity*price = 100050 [10:01:09]sum+1 = 100052 [10:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 70 20.10.2024 10:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165588 ФПД: 32026487652298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100120&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165588&fm=32026487652298&tin=02508201610067®Number=0000000000091764&sum=100000 [10:01:10]StoreToDocumentArchive [10:01:10]shift 534 fd 165588 [10:01:10]save to /storage/0534/doc_00165588 [10:01:10]save last doc name /storage/0534/doc_00165588 to /storage/kkm_last_doc_name [10:01:10]save OK [10:01:10]Clear old archive folders... [10:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:10]tlvbuf is 014ED130 [10:01:10]SAM_PROTO_ClearQueue [10:01:10]wFMCommunicate request_size=4 [10:01:10]MH_SAM_APDU [10:01:10]CAPDU: 80 09 00 00 [10:01:10]Write to MH i2c: E2 08 00 02 D0 80 09 00 00 00 00 00 00 44 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:10]Read from MH i2c: E2 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 03 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 03 00 02 D0 00 90 00 46 [10:01:10]RAPDU: 90 00 [10:01:10]wFMCommunicate OK [10:01:10]SAM_PROTO_ClearQueue done [10:01:10]KKMCreateOFDPacket [10:01:10]OFDProtocolAddRootSTLVToBuf [10:01:10]FM_MakeSignedData [10:01:10]FM_MakeSignedData [10:01:10]SAM_PROTO_SignData [10:01:10]wFMCommunicate request_size=4 [10:01:10]MH_SAM_APDU [10:01:10]CAPDU: 80 0D 01 02 [10:01:10]Write to MH i2c: E2 08 00 03 D0 80 0D 01 02 00 00 00 00 4C [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:10]Read from MH i2c: E2 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 03 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 03 00 03 D0 00 90 00 47 [10:01:10]RAPDU: 90 00 [10:01:10]wFMCommunicate OK [10:01:10]wFMCommunicate request_size=255 [10:01:10]MH_SAM_APDU [10:01: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 46 00 00 00 F4 03 04 00 F0 D4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 86 02 00 35 04 06 00 1D 20 BF 6B [10:01:10]Write to MH i2c: E2 02 01 04 D0 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 46 00 00 00 F4 03 04 00 F0 D4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 86 02 00 35 04 06 00 1D 20 BF 6B 00 00 38 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:10]Read from MH i2c: E2 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 03 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 03 00 04 D0 00 90 00 48 [10:01:10]RAPDU: 90 00 [10:01:10]wFMCommunicate OK [10:01:10]wFMCommunicate request_size=7 [10:01:10]MH_SAM_APDU [10:01:10]CAPDU: 80 0D 02 02 02 7F CA [10:01:10]Write to MH i2c: E2 0A 00 05 D0 80 0D 02 02 02 00 7F CA 00 00 9C [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:10]Read from MH i2c: E2 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 03 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 03 00 05 D0 00 90 00 49 [10:01:10]RAPDU: 90 00 [10:01:10]wFMCommunicate OK [10:01:10]wFMCommunicate request_size=4 [10:01:10]MH_SAM_APDU [10:01:10]CAPDU: 80 0D 03 02 [10:01:10]Write to MH i2c: E2 08 00 06 D0 80 0D 03 02 00 00 00 00 51 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:10]Read from MH i2c: E2 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 0B 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 0B 00 06 D0 00 B3 80 88 7C D0 9C 03 31 90 00 29 [10:01:10]RAPDU: B3 80 88 7C D0 9C 03 31 90 00 [10:01:10]wFMCommunicate OK [10:01:10]SAM_PROTO_SignData done [10:01:10]FM_MakeSignedData done [10:01:10]CreateOFDProtocolMessage [10:01:10]wFMCommunicate request_size=4 [10:01:10]MH_SAM_APDU [10:01:10]CAPDU: 80 11 00 00 [10:01:10]Write to MH i2c: E2 08 00 07 D0 80 11 00 00 00 00 00 00 51 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:10]Read from MH i2c: E2 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 17 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: E2 17 00 07 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A9 [10:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:10]wFMCommunicate OK [10:01:10]CreateOFDProtocolMessage done [10:01:10]OFDSenderStorePacket 165588 [10:01:10]StoreOFDPacket docnum=165588 [10:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A0 2E 04 01 51 1E 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 46 00 00 00 F4 03 04 00 F0 D4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 86 02 00 35 04 06 00 1D 20 BF 6B 7F CA B3 80 88 7C D0 9C 03 31 [10:01:10]CheckFolder [10:01:10]dirname=/storage/ofd_packets [10:01:10]CheckFolder done [10:01:10]ProducePacketName [10:01:10]name=ofd_packets/00165588 [10:01:10]NVStorageSaveData ofd_packets/00165588 [10:01:10]File name is /storage/ofd_packets/00165588 [10:01:10]Write 298 bytes [10:01:10]NVStorageSaveData done [10:01:10]OFDSenderStorePacket done [10:01:10]KKMCreateOFDPacket done [10:01:10]NVStorageSaveData kkm_last_timestamp [10:01:10]File name is /storage/kkm_last_timestamp [10:01:10]Write 4 bytes [10:01:10]NVStorageSaveData done [10:01:10]ExternCall_PrintAddStr [10:01:10]wPrintStart [10:01:10]Write to MH i2c: 01 00 00 08 D0 D8 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: 01 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: 01 07 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: 01 07 00 08 D0 00 00 00 00 00 FF 0F ED [10:01:10]RasterBufferAndPrint [10:01:10]line Счет N : (1)220147 [10:01:10]line ИНН: 02508201610067 [10:01:10]line Контрольно-Кассовый Чек [10:01:10]line ПРОДАЖА [10:01:10]line ТРК (МРК, ГНК) : 21 [10:01:10]line Товар: 2710194210 [10:01:10]line ДТ-К-5 [10:01:10]line 13.130 * 76.20 [10:01:10]line = 1000.51 [10:01:10]line НДС 12% НСП 1% [10:01:10]line > о реализуемом товаре [10:01:10]line ОКРУГЛЕНИЕ: -0.51 [10:01:10]line ИТОГО: 1000.00 [10:01:10]line Внесено: 1000.00 [10:01:10]line СДАЧА: 0.00 [10:01:10]line НСП 1% : 8.85 [10:01:10]line НДС 12% : 106.25 [10:01:10]line Наличными: 1000.00 [10:01:10]line Безнал.: 0.00 [10:01:10]line Место: АЗС № 161 "Партнер Нефть" [10:01:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:01:10]line СНО: Общий режим [10:01:10]line Чек 70 20.10.2024 10:01 [10:01:10]line Смена: 534 ФФД: 1.0 [10:01:10]line ЗНМ: 0300000104 [10:01:10]line РНМ: 0000000000091764 [10:01:10]line Версия ККМ: 001 [10:01:10]line ФМ: 0000000000871759 [10:01:10]line ФД: 165588 [10:01:10]line ФПД: 32026487652298 [10:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100120&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165588&fm=32026487652298&tin=02508201610067®Number=0000000000091764&sum=100000 [10:01:11]OFD Sender: Processing packet 165588 [packets to send 48, broken 47] [10:01:11]ProducePacketName [10:01:11]name=ofd_packets/00165588 [10:01:11]OFD Sender: To server: pG, [10:01:11]CommunicateWithHost lk.salyk.kg:30040 [10:01:11]ConnectInit lk.salyk.kg [10:01:11]written 0, free lines is 4095 [10:01:11]Connected sock=9 [10:01:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A0 2E 04 01 51 1E 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 46 00 00 00 F4 03 04 00 F0 D4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 86 02 00 35 04 06 00 1D 20 BF 6B 7F CA B3 80 88 7C D0 9C 03 31 [10:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 69 A6 47 00 17 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 31 37 35 39 10 04 04 00 D4 86 02 00 F4 03 04 00 63 7B 14 67 B6 04 01 00 00 C8 82 6F F5 EA E6 10 6C [10:01:11]CommunicateWithHost err = 0 [10:01:11]CheckOFDResponse [10:01:11]1017 (14) - 77093643461234 [10:01:11]1041 (16) - 0000000000871759 [10:01:11]1040 (4) - 165588 [10:01:11]1012 (4) - 20.10.2024 03:39 [10:01:11]1206 (1) - 0 [10:01:11]OFD Sender: Remove packet 165588 [10:01:11]ProducePacketName [10:01:11]name=ofd_packets/00165588 [10:01:11]NVStorageDeleteData [10:01:11]Write to MH i2c: 01 00 00 33 D0 03 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: 01 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: 01 07 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: 01 07 00 33 D0 00 00 00 00 00 B6 0C CC [10:01:11]RasterBufferAndPrint [10:01:11]line [10:01:11]line [10:01:11]line [10:01:11]line [10:01:11]line [10:01:11]written 0, free lines is 3260 [10:01:11]MH_Cut [10:01:11]Write to MH i2c: D1 01 00 3A D0 01 DC [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: D1 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: D1 01 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: D1 01 00 3A D0 00 DB [10:01:11]Write to MH i2c: 01 00 00 3B D0 0B [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:12]OFD Sender: No OFD packet to send [10:01:12]*** Cut start [10:01:12]*** Partial cut [10:01:12]*** CUTSNS_PIN = 1 [10:01:12]*** CUTSNS_PIN = 0 [10:01:12]*** Brake cut motor [10:01:13]Read from MH i2c: 01 [10:01:13]MH_I2C_Read... [10:01:13]*** Stop cut motor [10:01:13]*** Cut end [10:01:13]Read from MH i2c: 01 07 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 3B D0 00 00 00 00 00 FF 0F 20 [10:01:13]process_action close_receipt done [10:01:13]requested_data is exist [10:01:13]produce_requested_data [10:01:13]requested_item fm.sn is exist - process it [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 11 00 00 [10:01:13]Write to MH i2c: E2 08 00 3C D0 80 11 00 00 00 00 00 00 86 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 17 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 17 00 3C D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [10:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:13]wFMCommunicate OK [10:01:13]requested_item fd.num is exist - process it [10:01:13]SAM_PROTO_GetFieldsCounters [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 13 00 00 [10:01:13]Write to MH i2c: E2 08 00 3D D0 80 13 00 00 00 00 00 00 89 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 62 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 62 00 3D D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [10:01:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_GetFieldsCounters done [10:01:13]requested_item shift.num is exist - process it [10:01:13]requested_item shift.opened is exist - process it [10:01:13]req_shift_opened [10:01:13]FM_GetShiftState [10:01:13]SAM_PROTO_GetShiftState [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 13 01 00 [10:01:13]Write to MH i2c: E2 08 00 3E D0 80 13 01 00 00 00 00 00 8B [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0E 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0E 00 3E D0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D3 [10:01:13]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_GetShiftState done [10:01:13]FM_GetShiftState done [10:01:13]req_shift_opened done [10:01:13]requested_item shift.open_date is exist - process it [10:01:13]req_shift_open_date [10:01:13]req_shift_open_date done [10:01:13]produce_requested_data done [10:01:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165588,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:01:13]process_action_free close_receipt [10:01:13]json_value_free [10:01:13]json_value_free done [10:01:13]process_json_proto returns [10:01:13]Send response to host [10:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165588,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:01:13]free response buf [10:01:13]execute_script done [10:01:13]execute_script returns [10:01:13]free content buf [10:01:13]Sock 7.Close socket [10:01:13]Sock 7.Thread stoped [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:06]accept exits with 10 [10:04:06]New connection [10:04:06]New thread 3066920292 created [10:04:06]Thread 3066776932 joined [10:04:06]Waiting for new connection... [10:04:06] Sock 10.Parse request [10:04:06]Sock 10.Check first char [10:04:06]Sock 10.First char is OK [10:04:06]request: POST /json_proto HTTP/1.0 [10:04:06]Method: POST [10:04:06]URL: /json_proto [10:04:06]Method is POST - this is cgi request [10:04:06]url: /json_proto [10:04:06]query_string will be loaded in cgi processing [10:04:06]execute_cgi json_proto POST (null) [10:04:06]execute_cgi path=json_proto method=POST [10:04:06]POST find Content-Length [10:04:06]Host: 172.17.53.195:8080 [10:04:06]Content-Length: 800 [10:04:06]Content-Type: application/json [10:04:06] [10:04:06]POST finish read [10:04:06]Found Content-Length = 800 [10:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220520", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:06]execute_script... [10: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)220148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220520", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:06]POST & json_proto [10:04:06]process_json_proto [10:04:06]json parsed OK: [10:04:06]protocol is kg_v1.0 [10:04:06]action value=close_receipt [10:04:06]process_action close_receipt [10:04:06]cmd_close_receipt [10:04:06]MH_GetDate [10:04:06]Write to MH i2c: F0 00 00 3F D0 FE [10:04:06]Write i2c OK [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: F0 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: F0 09 00 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: F0 09 00 3F D0 00 A2 D5 14 67 21 48 4A 65 11 [10:04:06]GetLastDocTimeStamp 1729418480 [10:04:06]current date 1729418658 [10:04:06]FM_GetShiftState [10:04:06]SAM_PROTO_GetShiftState [10:04:06]wFMCommunicate request_size=4 [10:04:06]MH_SAM_APDU [10:04:06]CAPDU: 80 13 01 00 [10:04:06]Write to MH i2c: E2 08 00 40 D0 80 13 01 00 00 00 00 00 8D [10:04:06]Write i2c OK [10:04:06]MH_I2C_Read... [10:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:06]Read from MH i2c: E2 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: E2 0E 00 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: E2 0E 00 40 D0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D5 [10:04:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:04:06]wFMCommunicate OK [10:04:06]SAM_PROTO_GetShiftState done [10:04:06]FM_GetShiftState done [10:04:06]opened in 1729384561 [10:04:06]opened+sec_in_day 1729470961 [10:04:06]quantity*price = 0 [10:04:06]sum+1 = 1 [10:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 71 20.10.2024 10:04 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4220520 ФМ: 0000000000871759 ФД: 165589 ФПД: 6600606378345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100418&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165589&fm=6600606378345&tin=02508201610067®Number=0000000000091764&sum=0 [10:04:07]StoreToDocumentArchive [10:04:07]shift 534 fd 165589 [10:04:07]save to /storage/0534/doc_00165589 [10:04:07]save last doc name /storage/0534/doc_00165589 to /storage/kkm_last_doc_name [10:04:07]save OK [10:04:07]Clear old archive folders... [10:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:07]tlvbuf is 01464D20 [10:04:07]SAM_PROTO_ClearQueue [10:04:07]wFMCommunicate request_size=4 [10:04:07]MH_SAM_APDU [10:04:07]CAPDU: 80 09 00 00 [10:04:07]Write to MH i2c: E2 08 00 4D D0 80 09 00 00 00 00 00 00 8F [10:04:07]Write i2c OK [10:04:07]MH_I2C_Read... [10:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:07]Read from MH i2c: E2 [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: E2 03 00 [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: E2 03 00 4D D0 00 90 00 91 [10:04:07]RAPDU: 90 00 [10:04:07]wFMCommunicate OK [10:04:07]SAM_PROTO_ClearQueue done [10:04:07]KKMCreateOFDPacket [10:04:07]OFDProtocolAddRootSTLVToBuf [10:04:07]FM_MakeSignedData [10:04:07]FM_MakeSignedData [10:04:07]SAM_PROTO_SignData [10:04:07]wFMCommunicate request_size=4 [10:04:07]MH_SAM_APDU [10:04:07]CAPDU: 80 0D 01 02 [10:04:07]Write to MH i2c: E2 08 00 4E D0 80 0D 01 02 00 00 00 00 97 [10:04:07]Write i2c OK [10:04:07]MH_I2C_Read... [10:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:07]Read from MH i2c: E2 [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: E2 03 00 [10:04:07]MH_I2C_Read... [10:04:07]Read from MH i2c: E2 03 00 4E D0 00 90 00 92 [10:04:07]RAPDU: 90 00 [10:04:07]wFMCommunicate OK [10:04:07]wFMCommunicate request_size=255 [10:04:07]MH_SAM_APDU [10: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 D5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 86 02 00 35 04 06 00 06 [10:04:07]Write to MH i2c: E2 02 01 4F D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 D5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 86 02 00 35 04 06 00 06 00 00 CA [10:04:07]Write i2c OK [10:04:07]MH_I2C_Read... [10:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:08]Read from MH i2c: E2 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 03 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 03 00 4F D0 00 90 00 93 [10:04:08]RAPDU: 90 00 [10:04:08]wFMCommunicate OK [10:04:08]wFMCommunicate request_size=10 [10:04:08]MH_SAM_APDU [10:04:08]CAPDU: 80 0D 02 02 05 00 D2 CC 69 69 [10:04:08]Write to MH i2c: E2 0D 00 50 D0 80 0D 02 02 05 00 00 D2 CC 69 69 00 00 14 [10:04:08]Write i2c OK [10:04:08]MH_I2C_Read... [10:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:08]Read from MH i2c: E2 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 03 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 03 00 50 D0 00 90 00 94 [10:04:08]RAPDU: 90 00 [10:04:08]wFMCommunicate OK [10:04:08]wFMCommunicate request_size=4 [10:04:08]MH_SAM_APDU [10:04:08]CAPDU: 80 0D 03 02 [10:04:08]Write to MH i2c: E2 08 00 51 D0 80 0D 03 02 00 00 00 00 9C [10:04:08]Write i2c OK [10:04:08]MH_I2C_Read... [10:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:08]Read from MH i2c: E2 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 0B 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 0B 00 51 D0 00 FC 2F 01 B6 8E D1 7C 73 90 00 CD [10:04:08]RAPDU: FC 2F 01 B6 8E D1 7C 73 90 00 [10:04:08]wFMCommunicate OK [10:04:08]SAM_PROTO_SignData done [10:04:08]FM_MakeSignedData done [10:04:08]CreateOFDProtocolMessage [10:04:08]wFMCommunicate request_size=4 [10:04:08]MH_SAM_APDU [10:04:08]CAPDU: 80 11 00 00 [10:04:08]Write to MH i2c: E2 08 00 52 D0 80 11 00 00 00 00 00 00 9C [10:04:08]Write i2c OK [10:04:08]MH_I2C_Read... [10:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:08]Read from MH i2c: E2 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 17 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 17 00 52 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [10:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:04:08]wFMCommunicate OK [10:04:08]CreateOFDProtocolMessage done [10:04:08]OFDSenderStorePacket 165589 [10:04:08]StoreOFDPacket docnum=165589 [10:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA 82 07 01 2D 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 D5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 86 02 00 35 04 06 00 06 00 D2 CC 69 69 FC 2F 01 B6 8E D1 7C 73 [10:04:08]CheckFolder [10:04:08]dirname=/storage/ofd_packets [10:04:08]CheckFolder done [10:04:08]ProducePacketName [10:04:08]name=ofd_packets/00165589 [10:04:08]NVStorageSaveData ofd_packets/00165589 [10:04:08]File name is /storage/ofd_packets/00165589 [10:04:08]Write 301 bytes [10:04:08]NVStorageSaveData done [10:04:08]OFDSenderStorePacket done [10:04:08]KKMCreateOFDPacket done [10:04:08]NVStorageSaveData kkm_last_timestamp [10:04:08]File name is /storage/kkm_last_timestamp [10:04:08]Write 4 bytes [10:04:08]NVStorageSaveData done [10:04:08]ExternCall_PrintAddStr [10:04:08]wPrintStart [10:04:08]Write to MH i2c: 01 00 00 53 D0 23 [10:04:08]Write i2c OK [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: 01 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: 01 07 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: 01 07 00 53 D0 00 00 00 00 00 FF 0F 38 [10:04:08]RasterBufferAndPrint [10:04:08]line Счет N : (1)220148 [10:04:08]line ИНН: 02508201610067 [10:04:08]line Контрольно-Кассовый Чек [10:04:08]line ПРОДАЖА [10:04:08]line ТРК (МРК, ГНК) : 23 [10:04:08]line Товар: 2710124130 [10:04:08]line Аи-92-К-5 [10:04:08]line 20.000 * 0.00 [10:04:08]line = 0.00 [10:04:08]line НДС 12% НСП 1% [10:04:08]line > о реализуемом товаре [10:04:08]line ИТОГО: 0.00 [10:04:08]line НСП 1% : 0.00 [10:04:08]line НДС 12% : 0.00 [10:04:08]line Наличными: 0.00 [10:04:08]line Безнал.: 0.00 [10:04:08]line Место: АЗС № 161 "Партнер Нефть" [10:04:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:04:08]line СНО: Общий режим [10:04:08]line Чек 71 20.10.2024 10:04 [10:04:08]line Смена: 534 ФФД: 1.0 [10:04:08]line ЗНМ: 0300000104 [10:04:08]line РНМ: 0000000000091764 [10:04:08]line Версия ККМ: 001 [10:04:08]line Талоны: Топливные Талоны [10:04:08]line 4220520 [10:04:08]line ФМ: 0000000000871759 [10:04:08]line ФД: 165589 [10:04:08]line ФПД: 6600606378345 [10:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100418&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165589&fm=6600606378345&tin=02508201610067®Number=0000000000091764&sum=0 [10:04:08]written 0, free lines is 4095 [10:04:08]OFD Sender: Processing packet 165589 [packets to send 48, broken 47] [10:04:08]ProducePacketName [10:04:08]name=ofd_packets/00165589 [10:04:08]OFD Sender: To server: pG, [10:04:08]CommunicateWithHost lk.salyk.kg:30040 [10:04:08]ConnectInit lk.salyk.kg [10:04:08]Connected sock=9 [10: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 31 37 35 39 0F 01 00 00 AA 82 07 01 2D 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 D5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 86 02 00 35 04 06 00 06 00 D2 CC 69 69 FC 2F 01 B6 8E D1 7C 73 [10:04:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AA 28 47 00 54 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 31 37 35 39 10 04 04 00 D5 86 02 00 F4 03 04 00 14 7C 14 67 B6 04 01 00 00 8D 8C BD 35 EB 38 F1 8B [10:04:08]CommunicateWithHost err = 0 [10:04:08]CheckOFDResponse [10:04:08]1017 (14) - 77093643461234 [10:04:08]1041 (16) - 0000000000871759 [10:04:08]1040 (4) - 165589 [10:04:08]1012 (4) - 20.10.2024 03:42 [10:04:08]1206 (1) - 0 [10:04:08]OFD Sender: Remove packet 165589 [10:04:08]ProducePacketName [10:04:08]name=ofd_packets/00165589 [10:04:08]NVStorageDeleteData [10:04:09]Write to MH i2c: 01 00 00 7D D0 4D [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: 01 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: 01 07 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: 01 07 00 7D D0 00 00 00 00 00 C3 0C 23 [10:04:09]RasterBufferAndPrint [10:04:09]line [10:04:09]line [10:04:09]line [10:04:09]line [10:04:09]line [10:04:09]written 0, free lines is 3273 [10:04:09]MH_Cut [10:04:09]Write to MH i2c: D1 01 00 84 D0 01 26 [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: D1 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: D1 01 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: D1 01 00 84 D0 00 25 [10:04:09]Write to MH i2c: 01 00 00 85 D0 55 [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]OFD Sender: No OFD packet to send [10:04:09]*** Cut start [10:04:09]*** Partial cut [10:04:09]*** CUTSNS_PIN = 1 [10:04:09]*** CUTSNS_PIN = 0 [10:04:10]*** Brake cut motor [10:04:10]Read from MH i2c: 01 [10:04:10]MH_I2C_Read... [10:04:10]*** Stop cut motor [10:04:10]*** Cut end [10:04:10]Read from MH i2c: 01 07 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 07 00 85 D0 00 00 00 00 00 FF 0F 6A [10:04:10]process_action close_receipt done [10:04:10]requested_data is exist [10:04:10]produce_requested_data [10:04:10]requested_item fm.sn is exist - process it [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 11 00 00 [10:04:10]Write to MH i2c: E2 08 00 86 D0 80 11 00 00 00 00 00 00 D0 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 17 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 17 00 86 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 28 [10:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:04:10]wFMCommunicate OK [10:04:10]requested_item fd.num is exist - process it [10:04:10]SAM_PROTO_GetFieldsCounters [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 13 00 00 [10:04:10]Write to MH i2c: E2 08 00 87 D0 80 13 00 00 00 00 00 00 D3 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 62 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 62 00 87 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [10: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:10]wFMCommunicate OK [10:04:10]SAM_PROTO_GetFieldsCounters done [10:04:10]requested_item shift.num is exist - process it [10:04:10]requested_item shift.opened is exist - process it [10:04:10]req_shift_opened [10:04:10]FM_GetShiftState [10:04:10]SAM_PROTO_GetShiftState [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 13 01 00 [10:04:10]Write to MH i2c: E2 08 00 88 D0 80 13 01 00 00 00 00 00 D5 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 0E 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 0E 00 88 D0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1D [10:04:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:04:10]wFMCommunicate OK [10:04:10]SAM_PROTO_GetShiftState done [10:04:10]FM_GetShiftState done [10:04:10]req_shift_opened done [10:04:10]requested_item shift.open_date is exist - process it [10:04:10]req_shift_open_date [10:04:10]req_shift_open_date done [10:04:10]produce_requested_data done [10:04:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165589,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:04:10]process_action_free close_receipt [10:04:10]json_value_free [10:04:10]json_value_free done [10:04:10]process_json_proto returns [10:04:10]Send response to host [10:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165589,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:04:10]free response buf [10:04:10]execute_script done [10:04:10]execute_script returns [10:04:10]free content buf [10:04:10]Sock 10.Close socket [10:04:10]Sock 10.Thread stoped [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:02]accept exits with 7 [10:14:02]New connection [10:14:02]New thread 3066776932 created [10:14:02]Thread 3066920292 joined [10:14:02]Waiting for new connection... [10:14:02] Sock 7.Parse request [10:14:02]Sock 7.Check first char [10:14:02]Sock 7.First char is OK [10:14:02]request: POST /json_proto HTTP/1.0 [10:14:02]Method: POST [10:14:02]URL: /json_proto [10:14:02]Method is POST - this is cgi request [10:14:02]url: /json_proto [10:14:02]query_string will be loaded in cgi processing [10:14:02]execute_cgi json_proto POST (null) [10:14:02]execute_cgi path=json_proto method=POST [10:14:02]POST find Content-Length [10:14:02]Host: 172.17.53.195:8080 [10:14:02]Content-Length: 677 [10:14:02]Content-Type: application/json [10:14:02] [10:14:02]POST finish read [10:14:02]Found Content-Length = 677 [10:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:02]execute_script... [10:14: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)220149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:02]POST & json_proto [10:14:02]process_json_proto [10:14:02]json parsed OK: [10:14:02]protocol is kg_v1.0 [10:14:02]action value=close_receipt [10:14:02]process_action close_receipt [10:14:02]cmd_close_receipt [10:14:02]MH_GetDate [10:14:02]Write to MH i2c: F0 00 00 89 D0 48 [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: F0 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: F0 09 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: F0 09 00 89 D0 00 F5 D7 14 67 21 48 4A 65 B0 [10:14:02]GetLastDocTimeStamp 1729418658 [10:14:02]current date 1729419253 [10:14:02]FM_GetShiftState [10:14:02]SAM_PROTO_GetShiftState [10:14:02]wFMCommunicate request_size=4 [10:14:02]MH_SAM_APDU [10:14:02]CAPDU: 80 13 01 00 [10:14:02]Write to MH i2c: E2 08 00 8A D0 80 13 01 00 00 00 00 00 D7 [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:02]Read from MH i2c: E2 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 0E 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 0E 00 8A D0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1F [10:14:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:14:02]wFMCommunicate OK [10:14:02]SAM_PROTO_GetShiftState done [10:14:02]FM_GetShiftState done [10:14:02]opened in 1729384561 [10:14:02]opened+sec_in_day 1729470961 [10:14:02]quantity*price = 50041 [10:14:02]sum+1 = 50042 [10:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 72 20.10.2024 10:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165590 ФПД: 47017048001156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101413&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165590&fm=47017048001156&tin=02508201610067®Number=0000000000091764&sum=50000 [10:14:03]StoreToDocumentArchive [10:14:03]shift 534 fd 165590 [10:14:03]save to /storage/0534/doc_00165590 [10:14:03]save last doc name /storage/0534/doc_00165590 to /storage/kkm_last_doc_name [10:14:03]save OK [10:14:03]Clear old archive folders... [10:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:03]tlvbuf is 0161BD90 [10:14:03]SAM_PROTO_ClearQueue [10:14:03]wFMCommunicate request_size=4 [10:14:03]MH_SAM_APDU [10:14:03]CAPDU: 80 09 00 00 [10:14:03]Write to MH i2c: E2 08 00 97 D0 80 09 00 00 00 00 00 00 D9 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 97 D0 00 90 00 DB [10:14:03]RAPDU: 90 00 [10:14:03]wFMCommunicate OK [10:14:03]SAM_PROTO_ClearQueue done [10:14:03]KKMCreateOFDPacket [10:14:03]OFDProtocolAddRootSTLVToBuf [10:14:03]FM_MakeSignedData [10:14:03]FM_MakeSignedData [10:14:03]SAM_PROTO_SignData [10:14:03]wFMCommunicate request_size=4 [10:14:03]MH_SAM_APDU [10:14:03]CAPDU: 80 0D 01 02 [10:14:03]Write to MH i2c: E2 08 00 98 D0 80 0D 01 02 00 00 00 00 E1 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 98 D0 00 90 00 DC [10:14:03]RAPDU: 90 00 [10:14:03]wFMCommunicate OK [10:14:03]wFMCommunicate request_size=255 [10:14:03]MH_SAM_APDU [10:14: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F5 D7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 86 02 00 35 04 06 00 2A [10:14:03]Write to MH i2c: E2 02 01 99 D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F5 D7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 86 02 00 35 04 06 00 2A 00 00 A6 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 99 D0 00 90 00 DD [10:14:03]RAPDU: 90 00 [10:14:03]wFMCommunicate OK [10:14:03]wFMCommunicate request_size=10 [10:14:03]MH_SAM_APDU [10:14:03]CAPDU: 80 0D 02 02 05 C3 02 71 CA 84 [10:14:03]Write to MH i2c: E2 0D 00 9A D0 80 0D 02 02 05 00 C3 02 71 CA 84 00 00 72 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 9A D0 00 90 00 DE [10:14:03]RAPDU: 90 00 [10:14:03]wFMCommunicate OK [10:14:03]wFMCommunicate request_size=4 [10:14:03]MH_SAM_APDU [10:14:03]CAPDU: 80 0D 03 02 [10:14:03]Write to MH i2c: E2 08 00 9B D0 80 0D 03 02 00 00 00 00 E6 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 0B 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 0B 00 9B D0 00 C3 C3 41 88 95 41 F3 3B 90 00 3A [10:14:03]RAPDU: C3 C3 41 88 95 41 F3 3B 90 00 [10:14:03]wFMCommunicate OK [10:14:03]SAM_PROTO_SignData done [10:14:03]FM_MakeSignedData done [10:14:03]CreateOFDProtocolMessage [10:14:03]wFMCommunicate request_size=4 [10:14:03]MH_SAM_APDU [10:14:03]CAPDU: 80 11 00 00 [10:14:03]Write to MH i2c: E2 08 00 9C D0 80 11 00 00 00 00 00 00 E6 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 17 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 17 00 9C D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [10:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:14:03]wFMCommunicate OK [10:14:03]CreateOFDProtocolMessage done [10:14:03]OFDSenderStorePacket 165590 [10:14:03]StoreOFDPacket docnum=165590 [10:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 40 91 07 01 4A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F5 D7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 86 02 00 35 04 06 00 2A C3 02 71 CA 84 C3 C3 41 88 95 41 F3 3B [10:14:03]CheckFolder [10:14:03]dirname=/storage/ofd_packets [10:14:03]CheckFolder done [10:14:03]ProducePacketName [10:14:03]name=ofd_packets/00165590 [10:14:03]NVStorageSaveData ofd_packets/00165590 [10:14:03]File name is /storage/ofd_packets/00165590 [10:14:03]Write 301 bytes [10:14:03]NVStorageSaveData done [10:14:03]OFDSenderStorePacket done [10:14:03]KKMCreateOFDPacket done [10:14:03]NVStorageSaveData kkm_last_timestamp [10:14:03]File name is /storage/kkm_last_timestamp [10:14:03]Write 4 bytes [10:14:03]NVStorageSaveData done [10:14:03]ExternCall_PrintAddStr [10:14:03]wPrintStart [10:14:03]Write to MH i2c: 01 00 00 9D D0 6D [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 07 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 07 00 9D D0 00 00 00 00 00 FF 0F 82 [10:14:03]RasterBufferAndPrint [10:14:03]line Счет N : (1)220149 [10:14:03]line ИНН: 02508201610067 [10:14:03]line Контрольно-Кассовый Чек [10:14:03]line ПРОДАЖА [10:14:03]line ТРК (МРК, ГНК) : 33 [10:14:03]line Товар: 2710124130 [10:14:03]line Аи-92-К-5 [10:14:03]line 7.480 * 66.90 [10:14:03]line = 500.41 [10:14:03]line НДС 12% НСП 1% [10:14:03]line > о реализуемом товаре [10:14:03]line ОКРУГЛЕНИЕ: -0.41 [10:14:03]line ИТОГО: 500.00 [10:14:03]line Внесено: 500.00 [10:14:03]line СДАЧА: 0.00 [10:14:03]line НСП 1% : 4.43 [10:14:03]line НДС 12% : 53.14 [10:14:03]line Наличными: 500.00 [10:14:03]line Безнал.: 0.00 [10:14:03]line Место: АЗС № 161 "Партнер Нефть" [10:14:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:14:03]line СНО: Общий режим [10:14:03]line Чек 72 20.10.2024 10:14 [10:14:03]line Смена: 534 ФФД: 1.0 [10:14:03]line ЗНМ: 0300000104 [10:14:03]line РНМ: 0000000000091764 [10:14:03]line Версия ККМ: 001 [10:14:03]line ФМ: 0000000000871759 [10:14:03]line ФД: 165590 [10:14:03]line ФПД: 47017048001156 [10:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101413&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165590&fm=47017048001156&tin=02508201610067®Number=0000000000091764&sum=50000 [10:14:04]OFD Sender: Processing packet 165590 [packets to send 48, broken 47] [10:14:04]ProducePacketName [10:14:04]name=ofd_packets/00165590 [10:14:04]OFD Sender: To server: pG, [10:14:04]CommunicateWithHost lk.salyk.kg:30040 [10:14:04]ConnectInit lk.salyk.kg [10:14:04]written 0, free lines is 4095 [10:14:04]Connected sock=9 [10:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 40 91 07 01 4A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F5 D7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 86 02 00 35 04 06 00 2A C3 02 71 CA 84 C3 C3 41 88 95 41 F3 3B [10:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8A FD 47 00 10 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 31 37 35 39 10 04 04 00 D6 86 02 00 F4 03 04 00 68 7E 14 67 B6 04 01 00 00 12 66 56 D5 77 0E 0B 8B [10:14:04]CommunicateWithHost err = 0 [10:14:04]CheckOFDResponse [10:14:04]1017 (14) - 77093643461234 [10:14:04]1041 (16) - 0000000000871759 [10:14:04]1040 (4) - 165590 [10:14:04]1012 (4) - 20.10.2024 03:52 [10:14:04]1206 (1) - 0 [10:14:04]OFD Sender: Remove packet 165590 [10:14:04]ProducePacketName [10:14:04]name=ofd_packets/00165590 [10:14:04]NVStorageDeleteData [10:14:04]Write to MH i2c: 01 00 00 C8 D0 98 [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: 01 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: 01 07 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: 01 07 00 C8 D0 00 00 00 00 00 B8 0C 63 [10:14:04]RasterBufferAndPrint [10:14:04]line [10:14:04]line [10:14:04]line [10:14:04]line [10:14:04]line [10:14:04]written 0, free lines is 3263 [10:14:04]MH_Cut [10:14:04]Write to MH i2c: D1 01 00 CF D0 01 71 [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: D1 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: D1 01 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: D1 01 00 CF D0 00 70 [10:14:04]Write to MH i2c: 01 00 00 D0 D0 A0 [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:05]OFD Sender: No OFD packet to send [10:14:05]*** Cut start [10:14:05]*** Partial cut [10:14:05]*** CUTSNS_PIN = 1 [10:14:05]*** CUTSNS_PIN = 0 [10:14:05]*** Brake cut motor [10:14:06]Read from MH i2c: 01 [10:14:06]MH_I2C_Read... [10:14:06]*** Stop cut motor [10:14:06]*** Cut end [10:14:06]Read from MH i2c: 01 07 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: 01 07 00 D0 D0 00 00 00 00 00 FF 0F B5 [10:14:06]process_action close_receipt done [10:14:06]requested_data is exist [10:14:06]produce_requested_data [10:14:06]requested_item fm.sn is exist - process it [10:14:06]wFMCommunicate request_size=4 [10:14:06]MH_SAM_APDU [10:14:06]CAPDU: 80 11 00 00 [10:14:06]Write to MH i2c: E2 08 00 D1 D0 80 11 00 00 00 00 00 00 1B [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:06]Read from MH i2c: E2 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 17 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 17 00 D1 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [10:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:14:06]wFMCommunicate OK [10:14:06]requested_item fd.num is exist - process it [10:14:06]SAM_PROTO_GetFieldsCounters [10:14:06]wFMCommunicate request_size=4 [10:14:06]MH_SAM_APDU [10:14:06]CAPDU: 80 13 00 00 [10:14:06]Write to MH i2c: E2 08 00 D2 D0 80 13 00 00 00 00 00 00 1E [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:06]Read from MH i2c: E2 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 62 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 62 00 D2 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [10:14:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:06]wFMCommunicate OK [10:14:06]SAM_PROTO_GetFieldsCounters done [10:14:06]requested_item shift.num is exist - process it [10:14:06]requested_item shift.opened is exist - process it [10:14:06]req_shift_opened [10:14:06]FM_GetShiftState [10:14:06]SAM_PROTO_GetShiftState [10:14:06]wFMCommunicate request_size=4 [10:14:06]MH_SAM_APDU [10:14:06]CAPDU: 80 13 01 00 [10:14:06]Write to MH i2c: E2 08 00 D3 D0 80 13 01 00 00 00 00 00 20 [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:06]Read from MH i2c: E2 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 0E 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 0E 00 D3 D0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 68 [10:14:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:14:06]wFMCommunicate OK [10:14:06]SAM_PROTO_GetShiftState done [10:14:06]FM_GetShiftState done [10:14:06]req_shift_opened done [10:14:06]requested_item shift.open_date is exist - process it [10:14:06]req_shift_open_date [10:14:06]req_shift_open_date done [10:14:06]produce_requested_data done [10:14:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165590,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:14:06]process_action_free close_receipt [10:14:06]json_value_free [10:14:06]json_value_free done [10:14:06]process_json_proto returns [10:14:06]Send response to host [10:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165590,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:14:06]free response buf [10:14:06]execute_script done [10:14:06]execute_script returns [10:14:06]free content buf [10:14:06]Sock 7.Close socket [10:14:06]Sock 7.Thread stoped [10:14:08]accept exits with 10 [10:14:08]New connection [10:14:08]New thread 3066920292 created [10:14:08]Thread 3066776932 joined [10:14:08]Waiting for new connection... [10:14:08] Sock 10.Parse request [10:14:08]Sock 10.Check first char [10:14:08]Sock 10.First char is OK [10:14:08]request: POST /json_proto HTTP/1.0 [10:14:08]Method: POST [10:14:08]URL: /json_proto [10:14:08]Method is POST - this is cgi request [10:14:08]url: /json_proto [10:14:08]query_string will be loaded in cgi processing [10:14:08]execute_cgi json_proto POST (null) [10:14:08]execute_cgi path=json_proto method=POST [10:14:08]POST find Content-Length [10:14:08]Host: 172.17.53.195:8080 [10:14:08]Content-Length: 677 [10:14:08]Content-Type: application/json [10:14:08] [10:14:08]POST finish read [10:14:08]Found Content-Length = 677 [10:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:08]execute_script... [10:14:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:08]POST & json_proto [10:14:08]process_json_proto [10:14:08]json parsed OK: [10:14:08]protocol is kg_v1.0 [10:14:08]action value=close_receipt [10:14:08]process_action close_receipt [10:14:08]cmd_close_receipt [10:14:08]MH_GetDate [10:14:08]Write to MH i2c: F0 00 00 D4 D0 93 [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: F0 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: F0 09 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: F0 09 00 D4 D0 00 FC D7 14 67 21 48 4A 65 02 [10:14:08]GetLastDocTimeStamp 1729419253 [10:14:08]current date 1729419260 [10:14:08]FM_GetShiftState [10:14:08]SAM_PROTO_GetShiftState [10:14:08]wFMCommunicate request_size=4 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 13 01 00 [10:14:08]Write to MH i2c: E2 08 00 D5 D0 80 13 01 00 00 00 00 00 22 [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 [10:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 0E 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 0E 00 D5 D0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6A [10:14:08]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:14:08]wFMCommunicate OK [10:14:08]SAM_PROTO_GetShiftState done [10:14:08]FM_GetShiftState done [10:14:08]opened in 1729384561 [10:14:08]opened+sec_in_day 1729470961 [10:14:08]quantity*price = 49974 [10:14:08]sum+1 = 49975 [10:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 73 20.10.2024 10:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165591 ФПД: 53391394921477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101420&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165591&fm=53391394921477&tin=02508201610067®Number=0000000000091764&sum=49900 [10:14:09]StoreToDocumentArchive [10:14:09]shift 534 fd 165591 [10:14:09]save to /storage/0534/doc_00165591 [10:14:09]save last doc name /storage/0534/doc_00165591 to /storage/kkm_last_doc_name [10:14:09]save OK [10:14:09]Clear old archive folders... [10:14:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:09]tlvbuf is 014EF530 [10:14:09]SAM_PROTO_ClearQueue [10:14:09]wFMCommunicate request_size=4 [10:14:09]MH_SAM_APDU [10:14:09]CAPDU: 80 09 00 00 [10:14:09]Write to MH i2c: E2 08 00 E2 D0 80 09 00 00 00 00 00 00 24 [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:09]Read from MH i2c: E2 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 03 00 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 03 00 E2 D0 00 90 00 26 [10:14:09]RAPDU: 90 00 [10:14:09]wFMCommunicate OK [10:14:09]SAM_PROTO_ClearQueue done [10:14:09]KKMCreateOFDPacket [10:14:09]OFDProtocolAddRootSTLVToBuf [10:14:09]FM_MakeSignedData [10:14:09]FM_MakeSignedData [10:14:09]SAM_PROTO_SignData [10:14:09]wFMCommunicate request_size=4 [10:14:09]MH_SAM_APDU [10:14:09]CAPDU: 80 0D 01 02 [10:14:09]Write to MH i2c: E2 08 00 E3 D0 80 0D 01 02 00 00 00 00 2C [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:09]Read from MH i2c: E2 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 03 00 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 03 00 E3 D0 00 90 00 27 [10:14:09]RAPDU: 90 00 [10:14:09]wFMCommunicate OK [10:14:09]wFMCommunicate request_size=255 [10:14:09]MH_SAM_APDU [10:14:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FC D7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 86 02 00 35 04 06 00 30 [10:14:09]Write to MH i2c: E2 02 01 E4 D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FC D7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 86 02 00 35 04 06 00 30 00 00 E1 [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:10]OFD Sender: No OFD packet to send [10:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 E4 D0 00 90 00 28 [10:14:10]RAPDU: 90 00 [10:14:10]wFMCommunicate OK [10:14:10]wFMCommunicate request_size=10 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 0D 02 02 05 8F 27 20 DC 05 [10:14:10]Write to MH i2c: E2 0D 00 E5 D0 80 0D 02 02 05 00 8F 27 20 DC 05 00 00 F0 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 E5 D0 00 90 00 29 [10:14:10]RAPDU: 90 00 [10:14:10]wFMCommunicate OK [10:14:10]wFMCommunicate request_size=4 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 0D 03 02 [10:14:10]Write to MH i2c: E2 08 00 E6 D0 80 0D 03 02 00 00 00 00 31 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 0B 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 0B 00 E6 D0 00 90 D5 8E 0D E1 E6 98 25 90 00 B6 [10:14:10]RAPDU: 90 D5 8E 0D E1 E6 98 25 90 00 [10:14:10]wFMCommunicate OK [10:14:10]SAM_PROTO_SignData done [10:14:10]FM_MakeSignedData done [10:14:10]CreateOFDProtocolMessage [10:14:10]wFMCommunicate request_size=4 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 11 00 00 [10:14:10]Write to MH i2c: E2 08 00 E7 D0 80 11 00 00 00 00 00 00 31 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 17 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 17 00 E7 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [10:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:14:10]wFMCommunicate OK [10:14:10]CreateOFDProtocolMessage done [10:14:10]OFDSenderStorePacket 165591 [10:14:10]StoreOFDPacket docnum=165591 [10:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C4 7C 07 01 B1 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FC D7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 86 02 00 35 04 06 00 30 8F 27 20 DC 05 90 D5 8E 0D E1 E6 98 25 [10:14:10]CheckFolder [10:14:10]dirname=/storage/ofd_packets [10:14:10]CheckFolder done [10:14:10]ProducePacketName [10:14:10]name=ofd_packets/00165591 [10:14:10]NVStorageSaveData ofd_packets/00165591 [10:14:10]File name is /storage/ofd_packets/00165591 [10:14:10]Write 301 bytes [10:14:10]NVStorageSaveData done [10:14:10]OFDSenderStorePacket done [10:14:10]KKMCreateOFDPacket done [10:14:10]NVStorageSaveData kkm_last_timestamp [10:14:10]File name is /storage/kkm_last_timestamp [10:14:10]Write 4 bytes [10:14:10]NVStorageSaveData done [10:14:10]ExternCall_PrintAddStr [10:14:10]wPrintStart [10:14:10]Write to MH i2c: 01 00 00 E8 D0 B8 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 07 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 07 00 E8 D0 00 00 00 00 00 FF 0F CD [10:14:10]RasterBufferAndPrint [10:14:10]line Счет N : (1)220150 [10:14:10]line ИНН: 02508201610067 [10:14:10]line Контрольно-Кассовый Чек [10:14:10]line ПРОДАЖА [10:14:10]line ТРК (МРК, ГНК) : 13 [10:14:10]line Товар: 2710124130 [10:14:10]line Аи-92-К-5 [10:14:10]line 7.470 * 66.90 [10:14:10]line = 499.74 [10:14:10]line НДС 12% НСП 1% [10:14:10]line > о реализуемом товаре [10:14:10]line ОКРУГЛЕНИЕ: -0.74 [10:14:10]line ИТОГО: 499.00 [10:14:10]line Внесено: 500.00 [10:14:10]line СДАЧА: 1.00 [10:14:10]line НСП 1% : 4.42 [10:14:10]line НДС 12% : 53.07 [10:14:10]line Наличными: 499.00 [10:14:10]line Безнал.: 0.00 [10:14:10]line Место: АЗС № 161 "Партнер Нефть" [10:14:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:14:10]line СНО: Общий режим [10:14:10]line Чек 73 20.10.2024 10:14 [10:14:10]line Смена: 534 ФФД: 1.0 [10:14:10]line ЗНМ: 0300000104 [10:14:10]line РНМ: 0000000000091764 [10:14:10]line Версия ККМ: 001 [10:14:10]line ФМ: 0000000000871759 [10:14:10]line ФД: 165591 [10:14:10]line ФПД: 53391394921477 [10:14:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101420&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165591&fm=53391394921477&tin=02508201610067®Number=0000000000091764&sum=49900 [10:14:10]written 0, free lines is 4095 [10:14:10]OFD Sender: Processing packet 165591 [packets to send 48, broken 47] [10:14:10]ProducePacketName [10:14:10]name=ofd_packets/00165591 [10:14:10]OFD Sender: To server: pG, [10:14:10]CommunicateWithHost lk.salyk.kg:30040 [10:14:10]ConnectInit lk.salyk.kg [10:14:10]Connected sock=9 [10:14:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C4 7C 07 01 B1 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FC D7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 86 02 00 35 04 06 00 30 8F 27 20 DC 05 90 D5 8E 0D E1 E6 98 25 [10:14:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0A 05 47 00 92 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 86 02 00 F4 03 04 00 6E 7E 14 67 B6 04 01 00 00 F9 6E D6 0E 45 E6 A0 4E [10:14:10]CommunicateWithHost err = 0 [10:14:10]CheckOFDResponse [10:14:10]1017 (14) - 77093643461234 [10:14:10]1041 (16) - 0000000000871759 [10:14:10]1040 (4) - 165591 [10:14:10]1012 (4) - 20.10.2024 03:52 [10:14:10]1206 (1) - 0 [10:14:10]OFD Sender: Remove packet 165591 [10:14:10]ProducePacketName [10:14:10]name=ofd_packets/00165591 [10:14:10]NVStorageDeleteData [10:14:10]Write to MH i2c: 01 00 00 13 D1 E4 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 07 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 07 00 13 D1 00 00 00 00 00 D1 0C C8 [10:14:10]RasterBufferAndPrint [10:14:10]line [10:14:10]line [10:14:10]line [10:14:10]line [10:14:10]line [10:14:10]written 0, free lines is 3298 [10:14:10]MH_Cut [10:14:10]Write to MH i2c: D1 01 00 1A D1 01 BD [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: D1 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: D1 01 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: D1 01 00 1A D1 00 BC [10:14:10]Write to MH i2c: 01 00 00 1B D1 EC [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:11]OFD Sender: No OFD packet to send [10:14:11]*** Cut start [10:14:11]*** Partial cut [10:14:11]*** CUTSNS_PIN = 1 [10:14:11]*** CUTSNS_PIN = 0 [10:14:11]*** Brake cut motor [10:14:12]Read from MH i2c: 01 [10:14:12]MH_I2C_Read... [10:14:12]*** Stop cut motor [10:14:12]*** Cut end [10:14:12]Read from MH i2c: 01 07 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: 01 07 00 1B D1 00 00 00 00 00 FF 0F 01 [10:14:12]process_action close_receipt done [10:14:12]requested_data is exist [10:14:12]produce_requested_data [10:14:12]requested_item fm.sn is exist - process it [10:14:12]wFMCommunicate request_size=4 [10:14:12]MH_SAM_APDU [10:14:12]CAPDU: 80 11 00 00 [10:14:12]Write to MH i2c: E2 08 00 1C D1 80 11 00 00 00 00 00 00 67 [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:12]Read from MH i2c: E2 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 17 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 17 00 1C D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BF [10:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:14:12]wFMCommunicate OK [10:14:12]requested_item fd.num is exist - process it [10:14:12]SAM_PROTO_GetFieldsCounters [10:14:12]wFMCommunicate request_size=4 [10:14:12]MH_SAM_APDU [10:14:12]CAPDU: 80 13 00 00 [10:14:12]Write to MH i2c: E2 08 00 1D D1 80 13 00 00 00 00 00 00 6A [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:12]Read from MH i2c: E2 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 62 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 62 00 1D D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [10:14:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:12]wFMCommunicate OK [10:14:12]SAM_PROTO_GetFieldsCounters done [10:14:12]requested_item shift.num is exist - process it [10:14:12]requested_item shift.opened is exist - process it [10:14:12]req_shift_opened [10:14:12]FM_GetShiftState [10:14:12]SAM_PROTO_GetShiftState [10:14:12]wFMCommunicate request_size=4 [10:14:12]MH_SAM_APDU [10:14:12]CAPDU: 80 13 01 00 [10:14:12]Write to MH i2c: E2 08 00 1E D1 80 13 01 00 00 00 00 00 6C [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:12]Read from MH i2c: E2 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 0E 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 0E 00 1E D1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B4 [10:14:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:14:12]wFMCommunicate OK [10:14:12]SAM_PROTO_GetShiftState done [10:14:12]FM_GetShiftState done [10:14:12]req_shift_opened done [10:14:12]requested_item shift.open_date is exist - process it [10:14:12]req_shift_open_date [10:14:12]req_shift_open_date done [10:14:12]produce_requested_data done [10:14:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165591,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:14:12]process_action_free close_receipt [10:14:12]json_value_free [10:14:12]json_value_free done [10:14:12]process_json_proto returns [10:14:12]Send response to host [10:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165591,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:14:12]free response buf [10:14:12]execute_script done [10:14:12]execute_script returns [10:14:12]free content buf [10:14:12]Sock 10.Close socket [10:14:12]Sock 10.Thread stoped [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:29]accept exits with 7 [10:16:29]New connection [10:16:29]New thread 3066776932 created [10:16:29]Thread 3066920292 joined [10:16:29]Waiting for new connection... [10:16:29] Sock 7.Parse request [10:16:29]Sock 7.Check first char [10:16:29]Sock 7.First char is OK [10:16:29]request: POST /json_proto HTTP/1.0 [10:16:29]Method: POST [10:16:29]URL: /json_proto [10:16:29]Method is POST - this is cgi request [10:16:29]url: /json_proto [10:16:29]query_string will be loaded in cgi processing [10:16:29]execute_cgi json_proto POST (null) [10:16:29]execute_cgi path=json_proto method=POST [10:16:29]POST find Content-Length [10:16:29]Host: 172.17.53.195:8080 [10:16:29]Content-Length: 682 [10:16:29]Content-Type: application/json [10:16:29] [10:16:29]POST finish read [10:16:29]Found Content-Length = 682 [10:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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:16:29]execute_script... [10:16: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)220151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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:16:29]POST & json_proto [10:16:29]process_json_proto [10:16:29]json parsed OK: [10:16:29]protocol is kg_v1.0 [10:16:29]action value=close_receipt [10:16:29]process_action close_receipt [10:16:29]cmd_close_receipt [10:16:29]MH_GetDate [10:16:29]Write to MH i2c: F0 00 00 1F D1 DF [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 09 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 09 00 1F D1 00 88 D8 14 67 21 48 4A 65 DB [10:16:29]GetLastDocTimeStamp 1729419260 [10:16:29]current date 1729419400 [10:16:29]FM_GetShiftState [10:16:29]SAM_PROTO_GetShiftState [10:16:29]wFMCommunicate request_size=4 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 13 01 00 [10:16:29]Write to MH i2c: E2 08 00 20 D1 80 13 01 00 00 00 00 00 6E [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0E 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0E 00 20 D1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B6 [10:16:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:16:29]wFMCommunicate OK [10:16:29]SAM_PROTO_GetShiftState done [10:16:29]FM_GetShiftState done [10:16:29]opened in 1729384561 [10:16:29]opened+sec_in_day 1729470961 [10:16:29]quantity*price = 150056 [10:16:29]sum+1 = 150058 [10:16:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 74 20.10.2024 10:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165592 ФПД: 153952124161641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101640&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165592&fm=153952124161641&tin=02508201610067®Number=0000000000091764&sum=150000 [10:16:30]StoreToDocumentArchive [10:16:30]shift 534 fd 165592 [10:16:30]save to /storage/0534/doc_00165592 [10:16:30]save last doc name /storage/0534/doc_00165592 to /storage/kkm_last_doc_name [10:16:30]save OK [10:16:30]Clear old archive folders... [10:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:30]tlvbuf is 014B81F0 [10:16:30]SAM_PROTO_ClearQueue [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 09 00 00 [10:16:30]Write to MH i2c: E2 08 00 2D D1 80 09 00 00 00 00 00 00 70 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 2D D1 00 90 00 72 [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]SAM_PROTO_ClearQueue done [10:16:30]KKMCreateOFDPacket [10:16:30]OFDProtocolAddRootSTLVToBuf [10:16:30]FM_MakeSignedData [10:16:30]FM_MakeSignedData [10:16:30]SAM_PROTO_SignData [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 0D 01 02 [10:16:30]Write to MH i2c: E2 08 00 2E D1 80 0D 01 02 00 00 00 00 78 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 2E D1 00 90 00 73 [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]wFMCommunicate request_size=255 [10:16:30]MH_SAM_APDU [10:16: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 4A 00 00 00 F4 03 04 00 88 D8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 86 02 00 35 04 06 00 8C [10:16:30]Write to MH i2c: E2 02 01 2F D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 4A 00 00 00 F4 03 04 00 88 D8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 86 02 00 35 04 06 00 8C 00 00 80 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 2F D1 00 90 00 74 [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]wFMCommunicate request_size=10 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 0D 02 02 05 04 C5 AC 4E 69 [10:16:30]Write to MH i2c: E2 0D 00 30 D1 80 0D 02 02 05 00 04 C5 AC 4E 69 00 00 B1 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 30 D1 00 90 00 75 [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 0D 03 02 [10:16:30]Write to MH i2c: E2 08 00 31 D1 80 0D 03 02 00 00 00 00 7D [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 0B 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 0B 00 31 D1 00 6E A4 BB 55 E7 DB C7 C7 90 00 F0 [10:16:30]RAPDU: 6E A4 BB 55 E7 DB C7 C7 90 00 [10:16:30]wFMCommunicate OK [10:16:30]SAM_PROTO_SignData done [10:16:30]FM_MakeSignedData done [10:16:30]CreateOFDProtocolMessage [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 11 00 00 [10:16:30]Write to MH i2c: E2 08 00 32 D1 80 11 00 00 00 00 00 00 7D [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 17 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 17 00 32 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D5 [10:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:16:30]wFMCommunicate OK [10:16:30]CreateOFDProtocolMessage done [10:16:30]OFDSenderStorePacket 165592 [10:16:30]StoreOFDPacket docnum=165592 [10:16:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 5E 07 01 43 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 4A 00 00 00 F4 03 04 00 88 D8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 86 02 00 35 04 06 00 8C 04 C5 AC 4E 69 6E A4 BB 55 E7 DB C7 C7 [10:16:30]CheckFolder [10:16:30]dirname=/storage/ofd_packets [10:16:30]CheckFolder done [10:16:30]ProducePacketName [10:16:30]name=ofd_packets/00165592 [10:16:30]NVStorageSaveData ofd_packets/00165592 [10:16:30]File name is /storage/ofd_packets/00165592 [10:16:30]Write 301 bytes [10:16:30]NVStorageSaveData done [10:16:30]OFDSenderStorePacket done [10:16:30]KKMCreateOFDPacket done [10:16:30]NVStorageSaveData kkm_last_timestamp [10:16:30]File name is /storage/kkm_last_timestamp [10:16:30]Write 4 bytes [10:16:30]NVStorageSaveData done [10:16:30]ExternCall_PrintAddStr [10:16:30]wPrintStart [10:16:30]Write to MH i2c: 01 00 00 33 D1 04 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: 01 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: 01 07 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: 01 07 00 33 D1 00 00 00 00 00 FF 0F 19 [10:16:30]RasterBufferAndPrint [10:16:30]line Счет N : (1)220151 [10:16:30]line ИНН: 02508201610067 [10:16:30]line Контрольно-Кассовый Чек [10:16:30]line ПРОДАЖА [10:16:30]line ТРК (МРК, ГНК) : 23 [10:16:30]line Товар: 2710124130 [10:16:30]line Аи-92-К-5 [10:16:30]line 22.430 * 66.90 [10:16:30]line = 1500.57 [10:16:30]line НДС 12% НСП 1% [10:16:30]line > о реализуемом товаре [10:16:30]line ОКРУГЛЕНИЕ: -0.57 [10:16:30]line ИТОГО: 1500.00 [10:16:30]line Внесено: 1500.00 [10:16:30]line СДАЧА: 0.00 [10:16:30]line НСП 1% : 13.28 [10:16:30]line НДС 12% : 159.35 [10:16:30]line Наличными: 1500.00 [10:16:30]line Безнал.: 0.00 [10:16:30]line Место: АЗС № 161 "Партнер Нефть" [10:16:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:16:30]line СНО: Общий режим [10:16:30]line Чек 74 20.10.2024 10:16 [10:16:30]line Смена: 534 ФФД: 1.0 [10:16:30]line ЗНМ: 0300000104 [10:16:30]line РНМ: 0000000000091764 [10:16:30]line Версия ККМ: 001 [10:16:30]line ФМ: 0000000000871759 [10:16:30]line ФД: 165592 [10:16:30]line ФПД: 153952124161641 [10:16:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101640&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165592&fm=153952124161641&tin=02508201610067®Number=0000000000091764&sum=150000 [10:16:31]OFD Sender: Processing packet 165592 [packets to send 48, broken 47] [10:16:31]ProducePacketName [10:16:31]name=ofd_packets/00165592 [10:16:31]OFD Sender: To server: pG, [10:16:31]CommunicateWithHost lk.salyk.kg:30040 [10:16:31]ConnectInit lk.salyk.kg [10:16:31]written 0, free lines is 4095 [10:16:31]Connected sock=10 [10:16:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 5E 07 01 43 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 4A 00 00 00 F4 03 04 00 88 D8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 86 02 00 35 04 06 00 8C 04 C5 AC 4E 69 6E A4 BB 55 E7 DB C7 C7 [10:16:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 28 B2 47 00 4D 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 31 37 35 39 10 04 04 00 D8 86 02 00 F4 03 04 00 FB 7E 14 67 B6 04 01 00 00 E3 BD 43 EA 8B C9 FA 69 [10:16:31]CommunicateWithHost err = 0 [10:16:31]CheckOFDResponse [10:16:31]1017 (14) - 77093643461234 [10:16:31]1041 (16) - 0000000000871759 [10:16:31]1040 (4) - 165592 [10:16:31]1012 (4) - 20.10.2024 03:54 [10:16:31]1206 (1) - 0 [10:16:31]OFD Sender: Remove packet 165592 [10:16:31]ProducePacketName [10:16:31]name=ofd_packets/00165592 [10:16:31]NVStorageDeleteData [10:16:31]Write to MH i2c: 01 00 00 5E D1 2F [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 5E D1 00 00 00 00 00 CE 0C 10 [10:16:31]RasterBufferAndPrint [10:16:31]line [10:16:31]line [10:16:31]line [10:16:31]line [10:16:31]line [10:16:31]written 0, free lines is 3284 [10:16:31]MH_Cut [10:16:31]Write to MH i2c: D1 01 00 65 D1 01 08 [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: D1 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: D1 01 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: D1 01 00 65 D1 00 07 [10:16:31]Write to MH i2c: 01 00 00 66 D1 37 [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]OFD Sender: No OFD packet to send [10:16:32]*** Cut start [10:16:32]*** Partial cut [10:16:32]*** CUTSNS_PIN = 1 [10:16:32]*** CUTSNS_PIN = 0 [10:16:32]*** Brake cut motor [10:16:33]Read from MH i2c: 01 [10:16:33]MH_I2C_Read... [10:16:33]*** Stop cut motor [10:16:33]*** Cut end [10:16:33]Read from MH i2c: 01 07 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 66 D1 00 00 00 00 00 FF 0F 4C [10:16:33]process_action close_receipt done [10:16:33]requested_data is exist [10:16:33]produce_requested_data [10:16:33]requested_item fm.sn is exist - process it [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 11 00 00 [10:16:33]Write to MH i2c: E2 08 00 67 D1 80 11 00 00 00 00 00 00 B2 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 67 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [10:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:16:33]wFMCommunicate OK [10:16:33]requested_item fd.num is exist - process it [10:16:33]SAM_PROTO_GetFieldsCounters [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 13 00 00 [10:16:33]Write to MH i2c: E2 08 00 68 D1 80 13 00 00 00 00 00 00 B5 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 62 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 62 00 68 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [10:16:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_GetFieldsCounters done [10:16:33]requested_item shift.num is exist - process it [10:16:33]requested_item shift.opened is exist - process it [10:16:33]req_shift_opened [10:16:33]FM_GetShiftState [10:16:33]SAM_PROTO_GetShiftState [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 13 01 00 [10:16:33]Write to MH i2c: E2 08 00 69 D1 80 13 01 00 00 00 00 00 B7 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0E 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0E 00 69 D1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FF [10:16:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_GetShiftState done [10:16:33]FM_GetShiftState done [10:16:33]req_shift_opened done [10:16:33]requested_item shift.open_date is exist - process it [10:16:33]req_shift_open_date [10:16:33]req_shift_open_date done [10:16:33]produce_requested_data done [10:16:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165592,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:16:33]process_action_free close_receipt [10:16:33]json_value_free [10:16:33]json_value_free done [10:16:33]process_json_proto returns [10:16:33]Send response to host [10:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165592,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:16:33]free response buf [10:16:33]execute_script done [10:16:33]execute_script returns [10:16:33]free content buf [10:16:33]Sock 7.Close socket [10:16:33]Sock 7.Thread stoped [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:07]accept exits with 9 [10:17:07]New connection [10:17:07]New thread 3066920292 created [10:17:07]Thread 3066776932 joined [10:17:07]Waiting for new connection... [10:17:07] Sock 9.Parse request [10:17:07]Sock 9.Check first char [10:17:07]Sock 9.First char is OK [10:17:07]request: POST /json_proto HTTP/1.0 [10:17:07]Method: POST [10:17:07]URL: /json_proto [10:17:07]Method is POST - this is cgi request [10:17:07]url: /json_proto [10:17:07]query_string will be loaded in cgi processing [10:17:07]execute_cgi json_proto POST (null) [10:17:07]execute_cgi path=json_proto method=POST [10:17:07]POST find Content-Length [10:17:07]Host: 172.17.53.195:8080 [10:17:07]Content-Length: 674 [10:17:07]Content-Type: application/json [10:17:07] [10:17:07]POST finish read [10:17:07]Found Content-Length = 674 [10:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220152", "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" : 76.20, "quantity" : 6.960, "sum" : 530.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:07]execute_script... [10:17: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)220152", "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" : 76.20, "quantity" : 6.960, "sum" : 530.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:07]POST & json_proto [10:17:07]process_json_proto [10:17:07]json parsed OK: [10:17:07]protocol is kg_v1.0 [10:17:07]action value=close_receipt [10:17:07]process_action close_receipt [10:17:07]cmd_close_receipt [10:17:07]MH_GetDate [10:17:07]Write to MH i2c: F0 00 00 6A D1 2A [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: F0 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: F0 09 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: F0 09 00 6A D1 00 AF D8 14 67 21 48 4A 65 4D [10:17:07]GetLastDocTimeStamp 1729419400 [10:17:07]current date 1729419439 [10:17:07]FM_GetShiftState [10:17:07]SAM_PROTO_GetShiftState [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 13 01 00 [10:17:07]Write to MH i2c: E2 08 00 6B D1 80 13 01 00 00 00 00 00 B9 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 0E 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 0E 00 6B D1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 01 [10:17:08]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:17:08]wFMCommunicate OK [10:17:08]SAM_PROTO_GetShiftState done [10:17:08]FM_GetShiftState done [10:17:08]opened in 1729384561 [10:17:08]opened+sec_in_day 1729470961 [10:17:08]quantity*price = 53035 [10:17:08]sum+1 = 53036 [10:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 530.00 Внесено: 530.00 СДАЧА: 0.00 НСП 1% : 4.69 НДС 12% : 56.32 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 75 20.10.2024 10:17 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165593 ФПД: 169665245717239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101719&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165593&fm=169665245717239&tin=02508201610067®Number=0000000000091764&sum=53000 [10:17:09]StoreToDocumentArchive [10:17:09]shift 534 fd 165593 [10:17:09]save to /storage/0534/doc_00165593 [10:17:09]save last doc name /storage/0534/doc_00165593 to /storage/kkm_last_doc_name [10:17:09]save OK [10:17:09]Clear old archive folders... [10:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:09]tlvbuf is 016AB540 [10:17:09]SAM_PROTO_ClearQueue [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 09 00 00 [10:17:09]Write to MH i2c: E2 08 00 78 D1 80 09 00 00 00 00 00 00 BB [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 78 D1 00 90 00 BD [10:17:09]RAPDU: 90 00 [10:17:09]wFMCommunicate OK [10:17:09]SAM_PROTO_ClearQueue done [10:17:09]KKMCreateOFDPacket [10:17:09]OFDProtocolAddRootSTLVToBuf [10:17:09]FM_MakeSignedData [10:17:09]FM_MakeSignedData [10:17:09]SAM_PROTO_SignData [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 0D 01 02 [10:17:09]Write to MH i2c: E2 08 00 79 D1 80 0D 01 02 00 00 00 00 C3 [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 79 D1 00 90 00 BE [10:17:09]RAPDU: 90 00 [10:17:09]wFMCommunicate OK [10:17:09]wFMCommunicate request_size=255 [10:17:09]MH_SAM_APDU [10:17: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 C4 1D 00 00 00 00 13 04 06 00 2B CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 16 00 00 00 00 07 04 06 00 08 CF 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 AF D8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 86 02 00 35 04 06 00 9A 4F 44 B3 [10:17:09]Write to MH i2c: E2 02 01 7A D1 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 C4 1D 00 00 00 00 13 04 06 00 2B CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 16 00 00 00 00 07 04 06 00 08 CF 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 AF D8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 86 02 00 35 04 06 00 9A 4F 44 B3 00 00 8D [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 7A D1 00 90 00 BF [10:17:09]RAPDU: 90 00 [10:17:09]wFMCommunicate OK [10:17:09]wFMCommunicate request_size=7 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 0D 02 02 02 A2 F7 [10:17:09]Write to MH i2c: E2 0A 00 7B D1 80 0D 02 02 02 00 A2 F7 00 00 63 [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 7B D1 00 90 00 C0 [10:17:09]RAPDU: 90 00 [10:17:09]wFMCommunicate OK [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 0D 03 02 [10:17:09]Write to MH i2c: E2 08 00 7C D1 80 0D 03 02 00 00 00 00 C8 [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 0B 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 0B 00 7C D1 00 7A 88 34 BB 5C 0A A4 F1 90 00 B5 [10:17:09]RAPDU: 7A 88 34 BB 5C 0A A4 F1 90 00 [10:17:09]wFMCommunicate OK [10:17:09]SAM_PROTO_SignData done [10:17:09]FM_MakeSignedData done [10:17:09]CreateOFDProtocolMessage [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 11 00 00 [10:17:09]Write to MH i2c: E2 08 00 7D D1 80 11 00 00 00 00 00 00 C8 [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 17 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 17 00 7D D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [10:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:17:09]wFMCommunicate OK [10:17:09]CreateOFDProtocolMessage done [10:17:09]OFDSenderStorePacket 165593 [10:17:09]StoreOFDPacket docnum=165593 [10:17:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 13 EA 04 01 8B 75 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 C4 1D 00 00 00 00 13 04 06 00 2B CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 16 00 00 00 00 07 04 06 00 08 CF 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 AF D8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 86 02 00 35 04 06 00 9A 4F 44 B3 A2 F7 7A 88 34 BB 5C 0A A4 F1 [10:17:09]CheckFolder [10:17:09]dirname=/storage/ofd_packets [10:17:09]CheckFolder done [10:17:09]ProducePacketName [10:17:09]name=ofd_packets/00165593 [10:17:09]NVStorageSaveData ofd_packets/00165593 [10:17:09]File name is /storage/ofd_packets/00165593 [10:17:09]Write 298 bytes [10:17:09]NVStorageSaveData done [10:17:09]OFDSenderStorePacket done [10:17:09]KKMCreateOFDPacket done [10:17:09]NVStorageSaveData kkm_last_timestamp [10:17:09]File name is /storage/kkm_last_timestamp [10:17:09]Write 4 bytes [10:17:09]NVStorageSaveData done [10:17:09]ExternCall_PrintAddStr [10:17:09]wPrintStart [10:17:09]Write to MH i2c: 01 00 00 7E D1 4F [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: 01 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: 01 07 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: 01 07 00 7E D1 00 00 00 00 00 FF 0F 64 [10:17:09]RasterBufferAndPrint [10:17:09]line Счет N : (1)220152 [10:17:09]line ИНН: 02508201610067 [10:17:09]line Контрольно-Кассовый Чек [10:17:09]line ПРОДАЖА [10:17:09]line ТРК (МРК, ГНК) : 11 [10:17:09]line Товар: 2710194210 [10:17:09]line ДТ-К-5 [10:17:09]line 6.960 * 76.20 [10:17:09]line = 530.35 [10:17:09]line НДС 12% НСП 1% [10:17:09]line > о реализуемом товаре [10:17:09]line ОКРУГЛЕНИЕ: -0.35 [10:17:09]line ИТОГО: 530.00 [10:17:09]line Внесено: 530.00 [10:17:09]line СДАЧА: 0.00 [10:17:09]line НСП 1% : 4.69 [10:17:09]line НДС 12% : 56.32 [10:17:09]line Наличными: 530.00 [10:17:09]line Безнал.: 0.00 [10:17:09]line Место: АЗС № 161 "Партнер Нефть" [10:17:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:17:09]line СНО: Общий режим [10:17:09]line Чек 75 20.10.2024 10:17 [10:17:09]line Смена: 534 ФФД: 1.0 [10:17:09]line ЗНМ: 0300000104 [10:17:09]line РНМ: 0000000000091764 [10:17:09]line Версия ККМ: 001 [10:17:09]line ФМ: 0000000000871759 [10:17:09]line ФД: 165593 [10:17:09]line ФПД: 169665245717239 [10:17:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101719&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165593&fm=169665245717239&tin=02508201610067®Number=0000000000091764&sum=53000 [10:17:09]OFD Sender: Processing packet 165593 [packets to send 48, broken 47] [10:17:09]ProducePacketName [10:17:09]name=ofd_packets/00165593 [10:17:09]OFD Sender: To server: pG, [10:17:09]CommunicateWithHost lk.salyk.kg:30040 [10:17:10]ConnectInit lk.salyk.kg [10:17:10]written 0, free lines is 4095 [10:17:10]Connected sock=10 [10: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 31 37 35 39 0C 01 00 00 13 EA 04 01 8B 75 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 C4 1D 00 00 00 00 13 04 06 00 2B CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 16 00 00 00 00 07 04 06 00 08 CF 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 AF D8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 86 02 00 35 04 06 00 9A 4F 44 B3 A2 F7 7A 88 34 BB 5C 0A A4 F1 [10:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C B0 47 00 FB 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 86 02 00 F4 03 04 00 22 7F 14 67 B6 04 01 00 00 8A C0 BD 3A 59 80 7A 79 [10:17:10]CommunicateWithHost err = 0 [10:17:10]CheckOFDResponse [10:17:10]1017 (14) - 77093643461234 [10:17:10]1041 (16) - 0000000000871759 [10:17:10]1040 (4) - 165593 [10:17:10]1012 (4) - 20.10.2024 03:55 [10:17:10]1206 (1) - 0 [10:17:10]OFD Sender: Remove packet 165593 [10:17:10]ProducePacketName [10:17:10]name=ofd_packets/00165593 [10:17:10]NVStorageDeleteData [10:17:10]Write to MH i2c: 01 00 00 A9 D1 7A [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 A9 D1 00 00 00 00 00 D5 0C 62 [10:17:10]RasterBufferAndPrint [10:17:10]line [10:17:10]line [10:17:10]line [10:17:10]line [10:17:10]line [10:17:10]written 0, free lines is 3293 [10:17:10]MH_Cut [10:17:10]Write to MH i2c: D1 01 00 B0 D1 01 53 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: D1 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: D1 01 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: D1 01 00 B0 D1 00 52 [10:17:10]Write to MH i2c: 01 00 00 B1 D1 82 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]OFD Sender: No OFD packet to send [10:17:11]*** Cut start [10:17:11]*** Partial cut [10:17:11]*** CUTSNS_PIN = 1 [10:17:11]*** CUTSNS_PIN = 0 [10:17:11]*** Brake cut motor [10:17:11]Read from MH i2c: 01 [10:17:11]MH_I2C_Read... [10:17:11]*** Stop cut motor [10:17:11]*** Cut end [10:17:11]Read from MH i2c: 01 07 00 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: 01 07 00 B1 D1 00 00 00 00 00 FF 0F 97 [10:17:11]process_action close_receipt done [10:17:11]requested_data is exist [10:17:11]produce_requested_data [10:17:11]requested_item fm.sn is exist - process it [10:17:11]wFMCommunicate request_size=4 [10:17:11]MH_SAM_APDU [10:17:11]CAPDU: 80 11 00 00 [10:17:11]Write to MH i2c: E2 08 00 B2 D1 80 11 00 00 00 00 00 00 FD [10:17:11]Write i2c OK [10:17:11]MH_I2C_Read... [10:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:11]Read from MH i2c: E2 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 17 00 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 17 00 B2 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 55 [10:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:17:11]wFMCommunicate OK [10:17:11]requested_item fd.num is exist - process it [10:17:11]SAM_PROTO_GetFieldsCounters [10:17:11]wFMCommunicate request_size=4 [10:17:11]MH_SAM_APDU [10:17:11]CAPDU: 80 13 00 00 [10:17:11]Write to MH i2c: E2 08 00 B3 D1 80 13 00 00 00 00 00 00 00 [10:17:11]Write i2c OK [10:17:11]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 62 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 62 00 B3 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [10: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:12]wFMCommunicate OK [10:17:12]SAM_PROTO_GetFieldsCounters done [10:17:12]requested_item shift.num is exist - process it [10:17:12]requested_item shift.opened is exist - process it [10:17:12]req_shift_opened [10:17:12]FM_GetShiftState [10:17:12]SAM_PROTO_GetShiftState [10:17:12]wFMCommunicate request_size=4 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 13 01 00 [10:17:12]Write to MH i2c: E2 08 00 B4 D1 80 13 01 00 00 00 00 00 02 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 0E 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 0E 00 B4 D1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4A [10:17:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:17:12]wFMCommunicate OK [10:17:12]SAM_PROTO_GetShiftState done [10:17:12]FM_GetShiftState done [10:17:12]req_shift_opened done [10:17:12]requested_item shift.open_date is exist - process it [10:17:12]req_shift_open_date [10:17:12]req_shift_open_date done [10:17:12]produce_requested_data done [10:17:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165593,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:17:12]process_action_free close_receipt [10:17:12]json_value_free [10:17:12]json_value_free done [10:17:12]process_json_proto returns [10:17:12]Send response to host [10:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165593,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:17:12]free response buf [10:17:12]execute_script done [10:17:12]execute_script returns [10:17:12]free content buf [10:17:12]Sock 9.Close socket [10:17:12]Sock 9.Thread stoped [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [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:04]accept exits with 7 [10:22:04]New connection [10:22:04]New thread 3066776932 created [10:22:04]Thread 3066920292 joined [10:22:04]Waiting for new connection... [10:22:04] Sock 7.Parse request [10:22:04]Sock 7.Check first char [10:22:04]Sock 7.First char is OK [10:22:04]request: POST /json_proto HTTP/1.0 [10:22:04]Method: POST [10:22:04]URL: /json_proto [10:22:04]Method is POST - this is cgi request [10:22:04]url: /json_proto [10:22:04]query_string will be loaded in cgi processing [10:22:04]execute_cgi json_proto POST (null) [10:22:04]execute_cgi path=json_proto method=POST [10:22:04]POST find Content-Length [10:22:04]Host: 172.17.53.195:8080 [10:22:04]Content-Length: 766 [10:22:04]Content-Type: application/json [10:22:04] [10:22:04]POST finish read [10:22:04]Found Content-Length = 766 [10:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:04]execute_script... [10:22: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)220154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:04]POST & json_proto [10:22:04]process_json_proto [10:22:04]json parsed OK: [10:22:04]protocol is kg_v1.0 [10:22:04]action value=close_receipt [10:22:04]process_action close_receipt [10:22:04]cmd_close_receipt [10:22:04]MH_GetDate [10:22:04]Write to MH i2c: F0 00 00 B5 D1 75 [10:22:04]Write i2c OK [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: F0 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: F0 09 00 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: F0 09 00 B5 D1 00 D8 D9 14 67 21 48 4A 65 C2 [10:22:04]GetLastDocTimeStamp 1729419439 [10:22:04]current date 1729419736 [10:22:04]FM_GetShiftState [10:22:04]SAM_PROTO_GetShiftState [10:22:04]wFMCommunicate request_size=4 [10:22:04]MH_SAM_APDU [10:22:04]CAPDU: 80 13 01 00 [10:22:04]Write to MH i2c: E2 08 00 B6 D1 80 13 01 00 00 00 00 00 04 [10:22:04]Write i2c OK [10:22:04]MH_I2C_Read... [10:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:04]Read from MH i2c: E2 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 0E 00 [10:22:04]MH_I2C_Read... [10:22:04]Read from MH i2c: E2 0E 00 B6 D1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4C [10:22:04]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:22:04]wFMCommunicate OK [10:22:04]SAM_PROTO_GetShiftState done [10:22:04]FM_GetShiftState done [10:22:04]opened in 1729384561 [10:22:04]opened+sec_in_day 1729470961 [10:22:04]quantity*price = 50041 [10:22:04]sum+1 = 50042 [10:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 76 20.10.2024 10:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165594 ФПД: 128795705598302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102216&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165594&fm=128795705598302&tin=02508201610067®Number=0000000000091764&sum=50041 [10:22:05]StoreToDocumentArchive [10:22:05]shift 534 fd 165594 [10:22:05]save to /storage/0534/doc_00165594 [10:22:05]save last doc name /storage/0534/doc_00165594 to /storage/kkm_last_doc_name [10:22:05]save OK [10:22:05]Clear old archive folders... [10:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:05]tlvbuf is 015DD620 [10:22:05]SAM_PROTO_ClearQueue [10:22:05]wFMCommunicate request_size=4 [10:22:05]MH_SAM_APDU [10:22:05]CAPDU: 80 09 00 00 [10:22:05]Write to MH i2c: E2 08 00 C3 D1 80 09 00 00 00 00 00 00 06 [10:22:05]Write i2c OK [10:22:05]MH_I2C_Read... [10:22:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:05]Read from MH i2c: E2 [10:22:05]MH_I2C_Read... [10:22:05]Read from MH i2c: E2 03 00 [10:22:05]MH_I2C_Read... [10:22:05]Read from MH i2c: E2 03 00 C3 D1 00 90 00 08 [10:22:05]RAPDU: 90 00 [10:22:05]wFMCommunicate OK [10:22:05]SAM_PROTO_ClearQueue done [10:22:05]KKMCreateOFDPacket [10:22:05]OFDProtocolAddRootSTLVToBuf [10:22:05]FM_MakeSignedData [10:22:05]FM_MakeSignedData [10:22:05]SAM_PROTO_SignData [10:22:05]wFMCommunicate request_size=4 [10:22:05]MH_SAM_APDU [10:22:05]CAPDU: 80 0D 01 02 [10:22:05]Write to MH i2c: E2 08 00 C4 D1 80 0D 01 02 00 00 00 00 0E [10:22:05]Write i2c OK [10:22:05]MH_I2C_Read... [10:22:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:05]Read from MH i2c: E2 [10:22:05]MH_I2C_Read... [10:22:05]Read from MH i2c: E2 03 00 [10:22:05]MH_I2C_Read... [10:22:05]Read from MH i2c: E2 03 00 C4 D1 00 90 00 09 [10:22:05]RAPDU: 90 00 [10:22:05]wFMCommunicate OK [10:22:05]wFMCommunicate request_size=255 [10:22:05]MH_SAM_APDU [10:22: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D8 D9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 86 02 00 35 04 06 00 75 [10:22:05]Write to MH i2c: E2 02 01 C5 D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D8 D9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 86 02 00 35 04 06 00 75 00 00 5D [10:22:05]Write i2c OK [10:22:05]MH_I2C_Read... [10:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 C5 D1 00 90 00 0A [10:22:06]RAPDU: 90 00 [10:22:06]wFMCommunicate OK [10:22:06]wFMCommunicate request_size=10 [10:22:06]MH_SAM_APDU [10:22:06]CAPDU: 80 0D 02 02 05 23 96 47 E1 5E [10:22:06]Write to MH i2c: E2 0D 00 C6 D1 80 0D 02 02 05 00 23 96 47 E1 5E 00 00 5A [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 03 00 C6 D1 00 90 00 0B [10:22:06]RAPDU: 90 00 [10:22:06]wFMCommunicate OK [10:22:06]wFMCommunicate request_size=4 [10:22:06]MH_SAM_APDU [10:22:06]CAPDU: 80 0D 03 02 [10:22:06]Write to MH i2c: E2 08 00 C7 D1 80 0D 03 02 00 00 00 00 13 [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 0B 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 0B 00 C7 D1 00 62 86 F9 04 D7 0F DE CA 90 00 87 [10:22:06]RAPDU: 62 86 F9 04 D7 0F DE CA 90 00 [10:22:06]wFMCommunicate OK [10:22:06]SAM_PROTO_SignData done [10:22:06]FM_MakeSignedData done [10:22:06]CreateOFDProtocolMessage [10:22:06]wFMCommunicate request_size=4 [10:22:06]MH_SAM_APDU [10:22:06]CAPDU: 80 11 00 00 [10:22:06]Write to MH i2c: E2 08 00 C8 D1 80 11 00 00 00 00 00 00 13 [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]OFD Sender: No OFD packet to send [10:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 17 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 17 00 C8 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [10:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:22:06]wFMCommunicate OK [10:22:06]CreateOFDProtocolMessage done [10:22:06]OFDSenderStorePacket 165594 [10:22:06]StoreOFDPacket docnum=165594 [10:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 4C 07 01 36 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D8 D9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 86 02 00 35 04 06 00 75 23 96 47 E1 5E 62 86 F9 04 D7 0F DE CA [10:22:06]CheckFolder [10:22:06]dirname=/storage/ofd_packets [10:22:06]CheckFolder done [10:22:06]ProducePacketName [10:22:06]name=ofd_packets/00165594 [10:22:06]NVStorageSaveData ofd_packets/00165594 [10:22:06]File name is /storage/ofd_packets/00165594 [10:22:06]Write 301 bytes [10:22:06]NVStorageSaveData done [10:22:06]OFDSenderStorePacket done [10:22:06]KKMCreateOFDPacket done [10:22:06]NVStorageSaveData kkm_last_timestamp [10:22:06]File name is /storage/kkm_last_timestamp [10:22:06]Write 4 bytes [10:22:06]NVStorageSaveData done [10:22:06]ExternCall_PrintAddStr [10:22:06]wPrintStart [10:22:06]Write to MH i2c: 01 00 00 C9 D1 9A [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 07 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 07 00 C9 D1 00 00 00 00 00 FF 0F AF [10:22:06]RasterBufferAndPrint [10:22:06]line Счет N : (1)220154 [10:22:06]line ИНН: 02508201610067 [10:22:06]line Контрольно-Кассовый Чек [10:22:06]line ПРОДАЖА [10:22:06]line ТРК (МРК, ГНК) : 13 [10:22:06]line Товар: 2710124130 [10:22:06]line Аи-92-К-5 [10:22:06]line 7.480 * 66.90 [10:22:06]line = 500.41 [10:22:06]line НДС 12% НСП 1% [10:22:06]line > о реализуемом товаре [10:22:06]line ИТОГО: 500.41 [10:22:06]line НСП 1% : 4.43 [10:22:06]line НДС 12% : 53.14 [10:22:06]line Наличными: 0.00 [10:22:06]line Безнал.: 500.41 [10:22:06]line Место: АЗС № 161 "Партнер Нефть" [10:22:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:22:06]line СНО: Общий режим [10:22:06]line Чек 76 20.10.2024 10:22 [10:22:06]line Смена: 534 ФФД: 1.0 [10:22:06]line ЗНМ: 0300000104 [10:22:06]line РНМ: 0000000000091764 [10:22:06]line Версия ККМ: 001 [10:22:06]line Платежная система: Mbank [10:22:06]line ФМ: 0000000000871759 [10:22:06]line ФД: 165594 [10:22:06]line ФПД: 128795705598302 [10:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102216&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165594&fm=128795705598302&tin=02508201610067®Number=0000000000091764&sum=50041 [10:22:06]written 0, free lines is 4095 [10:22:06]OFD Sender: Processing packet 165594 [packets to send 48, broken 47] [10:22:06]ProducePacketName [10:22:06]name=ofd_packets/00165594 [10:22:06]OFD Sender: To server: pG, [10:22:06]CommunicateWithHost lk.salyk.kg:30040 [10:22:06]ConnectInit lk.salyk.kg [10:22:06]Connected sock=10 [10:22:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 4C 07 01 36 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D8 D9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 86 02 00 35 04 06 00 75 23 96 47 E1 5E 62 86 F9 04 D7 0F DE CA [10:22:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AF E7 47 00 E7 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 31 37 35 39 10 04 04 00 DA 86 02 00 F4 03 04 00 4A 80 14 67 B6 04 01 00 00 77 9F 18 B2 D1 6F 0F 01 [10:22:06]CommunicateWithHost err = 0 [10:22:06]CheckOFDResponse [10:22:06]1017 (14) - 77093643461234 [10:22:06]1041 (16) - 0000000000871759 [10:22:06]1040 (4) - 165594 [10:22:06]1012 (4) - 20.10.2024 04:00 [10:22:06]1206 (1) - 0 [10:22:06]OFD Sender: Remove packet 165594 [10:22:06]ProducePacketName [10:22:06]name=ofd_packets/00165594 [10:22:06]NVStorageDeleteData [10:22:06]Write to MH i2c: 01 00 00 F2 D1 C3 [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 07 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: 01 07 00 F2 D1 00 00 00 00 00 FA 0C D0 [10:22:06]RasterBufferAndPrint [10:22:06]line [10:22:06]line [10:22:06]line [10:22:06]line [10:22:06]line [10:22:06]written 0, free lines is 3331 [10:22:06]MH_Cut [10:22:06]Write to MH i2c: D1 01 00 F9 D1 01 9C [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: D1 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: D1 01 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: D1 01 00 F9 D1 00 9B [10:22:06]Write to MH i2c: 01 00 00 FA D1 CB [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:07]OFD Sender: No OFD packet to send [10:22:07]*** Cut start [10:22:07]*** Partial cut [10:22:07]*** CUTSNS_PIN = 1 [10:22:07]*** CUTSNS_PIN = 0 [10:22:07]*** Brake cut motor [10:22:08]Read from MH i2c: 01 [10:22:08]MH_I2C_Read... [10:22:08]*** Stop cut motor [10:22:08]*** Cut end [10:22:08]Read from MH i2c: 01 07 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: 01 07 00 FA D1 00 00 00 00 00 FF 0F E0 [10:22:08]process_action close_receipt done [10:22:08]requested_data is exist [10:22:08]produce_requested_data [10:22:08]requested_item fm.sn is exist - process it [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 11 00 00 [10:22:08]Write to MH i2c: E2 08 00 FB D1 80 11 00 00 00 00 00 00 46 [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 17 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 17 00 FB D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [10:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:22:08]wFMCommunicate OK [10:22:08]requested_item fd.num is exist - process it [10:22:08]SAM_PROTO_GetFieldsCounters [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 13 00 00 [10:22:08]Write to MH i2c: E2 08 00 FC D1 80 13 00 00 00 00 00 00 49 [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 62 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 62 00 FC D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [10:22: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:08]wFMCommunicate OK [10:22:08]SAM_PROTO_GetFieldsCounters done [10:22:08]requested_item shift.num is exist - process it [10:22:08]requested_item shift.opened is exist - process it [10:22:08]req_shift_opened [10:22:08]FM_GetShiftState [10:22:08]SAM_PROTO_GetShiftState [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 13 01 00 [10:22:08]Write to MH i2c: E2 08 00 FD D1 80 13 01 00 00 00 00 00 4B [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 0E 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 0E 00 FD D1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 93 [10:22:08]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:22:08]wFMCommunicate OK [10:22:08]SAM_PROTO_GetShiftState done [10:22:08]FM_GetShiftState done [10:22:08]req_shift_opened done [10:22:08]requested_item shift.open_date is exist - process it [10:22:08]req_shift_open_date [10:22:08]req_shift_open_date done [10:22:08]produce_requested_data done [10:22:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165594,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:22:08]process_action_free close_receipt [10:22:08]json_value_free [10:22:08]json_value_free done [10:22:08]process_json_proto returns [10:22:08]Send response to host [10:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165594,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:22:08]free response buf [10:22:08]execute_script done [10:22:08]execute_script returns [10:22:08]free content buf [10:22:08]Sock 7.Close socket [10:22:08]Sock 7.Thread stoped [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:38]accept exits with 9 [10:23:38]New connection [10:23:38]New thread 3066920292 created [10:23:38]Thread 3066776932 joined [10:23:38]Waiting for new connection... [10:23:38] Sock 9.Parse request [10:23:38]Sock 9.Check first char [10:23:38]Sock 9.First char is OK [10:23:38]request: POST /json_proto HTTP/1.0 [10:23:38]Method: POST [10:23:38]URL: /json_proto [10:23:38]Method is POST - this is cgi request [10:23:38]url: /json_proto [10:23:38]query_string will be loaded in cgi processing [10:23:38]execute_cgi json_proto POST (null) [10:23:38]execute_cgi path=json_proto method=POST [10:23:38]POST find Content-Length [10:23:38]Host: 172.17.53.195:8080 [10:23:38]Content-Length: 677 [10:23:38]Content-Type: application/json [10:23:38] [10:23:38]POST finish read [10:23:38]Found Content-Length = 677 [10:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:38]execute_script... [10:23: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)220155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:38]POST & json_proto [10:23:38]process_json_proto [10:23:38]json parsed OK: [10:23:38]protocol is kg_v1.0 [10:23:38]action value=close_receipt [10:23:38]process_action close_receipt [10:23:38]cmd_close_receipt [10:23:38]MH_GetDate [10:23:38]Write to MH i2c: F0 00 00 FE D1 BE [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: F0 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: F0 09 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: F0 09 00 FE D1 00 36 DA 14 67 21 48 4A 65 6A [10:23:38]GetLastDocTimeStamp 1729419736 [10:23:38]current date 1729419830 [10:23:38]FM_GetShiftState [10:23:38]SAM_PROTO_GetShiftState [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 13 01 00 [10:23:38]Write to MH i2c: E2 08 00 FF D1 80 13 01 00 00 00 00 00 4D [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 0E 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 0E 00 FF D1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 95 [10:23:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:23:38]wFMCommunicate OK [10:23:38]SAM_PROTO_GetShiftState done [10:23:38]FM_GetShiftState done [10:23:38]opened in 1729384561 [10:23:38]opened+sec_in_day 1729470961 [10:23:38]quantity*price = 50041 [10:23:38]sum+1 = 50042 [10:23:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 77 20.10.2024 10:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165595 ФПД: 184722611602867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102350&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165595&fm=184722611602867&tin=02508201610067®Number=0000000000091764&sum=50000 [10:23:39]StoreToDocumentArchive [10:23:39]shift 534 fd 165595 [10:23:39]save to /storage/0534/doc_00165595 [10:23:39]save last doc name /storage/0534/doc_00165595 to /storage/kkm_last_doc_name [10:23:39]save OK [10:23:39]Clear old archive folders... [10:23:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:39]tlvbuf is 014565D0 [10:23:39]SAM_PROTO_ClearQueue [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 09 00 00 [10:23:39]Write to MH i2c: E2 08 00 0C D2 80 09 00 00 00 00 00 00 50 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 03 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 03 00 0C D2 00 90 00 52 [10:23:39]RAPDU: 90 00 [10:23:39]wFMCommunicate OK [10:23:39]SAM_PROTO_ClearQueue done [10:23:39]KKMCreateOFDPacket [10:23:39]OFDProtocolAddRootSTLVToBuf [10:23:39]FM_MakeSignedData [10:23:39]FM_MakeSignedData [10:23:39]SAM_PROTO_SignData [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 0D 01 02 [10:23:39]Write to MH i2c: E2 08 00 0D D2 80 0D 01 02 00 00 00 00 58 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 03 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 03 00 0D D2 00 90 00 53 [10:23:39]RAPDU: 90 00 [10:23:39]wFMCommunicate OK [10:23:39]wFMCommunicate request_size=255 [10:23:39]MH_SAM_APDU [10:23: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 36 DA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 86 02 00 35 04 06 00 A8 [10:23:39]Write to MH i2c: E2 02 01 0E D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 36 DA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 86 02 00 35 04 06 00 A8 00 00 E9 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 03 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 03 00 0E D2 00 90 00 54 [10:23:40]RAPDU: 90 00 [10:23:40]wFMCommunicate OK [10:23:40]wFMCommunicate request_size=10 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 0D 02 02 05 01 15 A5 85 B3 [10:23:40]Write to MH i2c: E2 0D 00 0F D2 80 0D 02 02 05 00 01 15 A5 85 B3 00 00 58 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 03 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 03 00 0F D2 00 90 00 55 [10:23:40]RAPDU: 90 00 [10:23:40]wFMCommunicate OK [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 0D 03 02 [10:23:40]Write to MH i2c: E2 08 00 10 D2 80 0D 03 02 00 00 00 00 5D [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 0B 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 0B 00 10 D2 00 0D 00 71 AD 02 3E 08 85 90 00 56 [10:23:40]RAPDU: 0D 00 71 AD 02 3E 08 85 90 00 [10:23:40]wFMCommunicate OK [10:23:40]SAM_PROTO_SignData done [10:23:40]FM_MakeSignedData done [10:23:40]CreateOFDProtocolMessage [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 11 00 00 [10:23:40]Write to MH i2c: E2 08 00 11 D2 80 11 00 00 00 00 00 00 5D [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 17 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 17 00 11 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [10:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:23:40]wFMCommunicate OK [10:23:40]CreateOFDProtocolMessage done [10:23:40]OFDSenderStorePacket 165595 [10:23:40]StoreOFDPacket docnum=165595 [10:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 12 07 01 AD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 36 DA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 86 02 00 35 04 06 00 A8 01 15 A5 85 B3 0D 00 71 AD 02 3E 08 85 [10:23:40]CheckFolder [10:23:40]dirname=/storage/ofd_packets [10:23:40]CheckFolder done [10:23:40]ProducePacketName [10:23:40]name=ofd_packets/00165595 [10:23:40]NVStorageSaveData ofd_packets/00165595 [10:23:40]File name is /storage/ofd_packets/00165595 [10:23:40]Write 301 bytes [10:23:40]NVStorageSaveData done [10:23:40]OFDSenderStorePacket done [10:23:40]KKMCreateOFDPacket done [10:23:40]NVStorageSaveData kkm_last_timestamp [10:23:40]File name is /storage/kkm_last_timestamp [10:23:40]Write 4 bytes [10:23:40]NVStorageSaveData done [10:23:40]ExternCall_PrintAddStr [10:23:40]wPrintStart [10:23:40]Write to MH i2c: 01 00 00 12 D2 E4 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 07 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 07 00 12 D2 00 00 00 00 00 FF 0F F9 [10:23:40]RasterBufferAndPrint [10:23:40]line Счет N : (1)220155 [10:23:40]line ИНН: 02508201610067 [10:23:40]line Контрольно-Кассовый Чек [10:23:40]line ПРОДАЖА [10:23:40]line ТРК (МРК, ГНК) : 13 [10:23:40]line Товар: 2710124130 [10:23:40]line Аи-92-К-5 [10:23:40]line 7.480 * 66.90 [10:23:40]line = 500.41 [10:23:40]line НДС 12% НСП 1% [10:23:40]line > о реализуемом товаре [10:23:40]line ОКРУГЛЕНИЕ: -0.41 [10:23:40]line ИТОГО: 500.00 [10:23:40]line Внесено: 500.00 [10:23:40]line СДАЧА: 0.00 [10:23:40]line НСП 1% : 4.43 [10:23:40]line НДС 12% : 53.14 [10:23:40]line Наличными: 500.00 [10:23:40]line Безнал.: 0.00 [10:23:40]line Место: АЗС № 161 "Партнер Нефть" [10:23:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:23:40]line СНО: Общий режим [10:23:40]line Чек 77 20.10.2024 10:23 [10:23:40]line Смена: 534 ФФД: 1.0 [10:23:40]line ЗНМ: 0300000104 [10:23:40]line РНМ: 0000000000091764 [10:23:40]line Версия ККМ: 001 [10:23:40]line ФМ: 0000000000871759 [10:23:40]line ФД: 165595 [10:23:40]line ФПД: 184722611602867 [10:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102350&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165595&fm=184722611602867&tin=02508201610067®Number=0000000000091764&sum=50000 [10:23:40]written 0, free lines is 4095 [10:23:40]OFD Sender: Processing packet 165595 [packets to send 48, broken 47] [10:23:40]ProducePacketName [10:23:40]name=ofd_packets/00165595 [10:23:40]OFD Sender: To server: pG, [10:23:40]CommunicateWithHost lk.salyk.kg:30040 [10:23:40]ConnectInit lk.salyk.kg [10:23:40]Connected sock=10 [10:23:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 12 07 01 AD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 36 DA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 86 02 00 35 04 06 00 A8 01 15 A5 85 B3 0D 00 71 AD 02 3E 08 85 [10:23:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6B 62 47 00 69 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 31 37 35 39 10 04 04 00 DB 86 02 00 F4 03 04 00 A8 80 14 67 B6 04 01 00 00 34 B8 1F DB 15 F9 83 D3 [10:23:40]CommunicateWithHost err = 0 [10:23:40]CheckOFDResponse [10:23:40]1017 (14) - 77093643461234 [10:23:40]1041 (16) - 0000000000871759 [10:23:40]1040 (4) - 165595 [10:23:40]1012 (4) - 20.10.2024 04:01 [10:23:40]1206 (1) - 0 [10:23:40]OFD Sender: Remove packet 165595 [10:23:40]ProducePacketName [10:23:40]name=ofd_packets/00165595 [10:23:40]NVStorageDeleteData [10:23:40]Write to MH i2c: 01 00 00 3D D2 0F [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 07 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 07 00 3D D2 00 00 00 00 00 D1 0C F3 [10:23:40]RasterBufferAndPrint [10:23:40]line [10:23:40]line [10:23:40]line [10:23:40]line [10:23:40]line [10:23:40]written 0, free lines is 3291 [10:23:40]MH_Cut [10:23:40]Write to MH i2c: D1 01 00 44 D2 01 E8 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: D1 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: D1 01 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: D1 01 00 44 D2 00 E7 [10:23:40]Write to MH i2c: 01 00 00 45 D2 17 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:41]OFD Sender: No OFD packet to send [10:23:41]*** Cut start [10:23:41]*** Partial cut [10:23:41]*** CUTSNS_PIN = 1 [10:23:41]*** CUTSNS_PIN = 0 [10:23:41]*** Brake cut motor [10:23:42]Read from MH i2c: 01 [10:23:42]MH_I2C_Read... [10:23:42]*** Stop cut motor [10:23:42]*** Cut end [10:23:42]Read from MH i2c: 01 07 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 07 00 45 D2 00 00 00 00 00 FF 0F 2C [10:23:42]process_action close_receipt done [10:23:42]requested_data is exist [10:23:42]produce_requested_data [10:23:42]requested_item fm.sn is exist - process it [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 11 00 00 [10:23:42]Write to MH i2c: E2 08 00 46 D2 80 11 00 00 00 00 00 00 92 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 17 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 17 00 46 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [10:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:23:42]wFMCommunicate OK [10:23:42]requested_item fd.num is exist - process it [10:23:42]SAM_PROTO_GetFieldsCounters [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 13 00 00 [10:23:42]Write to MH i2c: E2 08 00 47 D2 80 13 00 00 00 00 00 00 95 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 62 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 62 00 47 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [10:23: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:42]wFMCommunicate OK [10:23:42]SAM_PROTO_GetFieldsCounters done [10:23:42]requested_item shift.num is exist - process it [10:23:42]requested_item shift.opened is exist - process it [10:23:42]req_shift_opened [10:23:42]FM_GetShiftState [10:23:42]SAM_PROTO_GetShiftState [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 13 01 00 [10:23:42]Write to MH i2c: E2 08 00 48 D2 80 13 01 00 00 00 00 00 97 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 0E 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 0E 00 48 D2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DF [10:23:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:23:42]wFMCommunicate OK [10:23:42]SAM_PROTO_GetShiftState done [10:23:42]FM_GetShiftState done [10:23:42]req_shift_opened done [10:23:42]requested_item shift.open_date is exist - process it [10:23:42]req_shift_open_date [10:23:42]req_shift_open_date done [10:23:42]produce_requested_data done [10:23:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165595,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:23:42]process_action_free close_receipt [10:23:42]json_value_free [10:23:42]json_value_free done [10:23:42]process_json_proto returns [10:23:42]Send response to host [10:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165595,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:23:42]free response buf [10:23:42]execute_script done [10:23:42]execute_script returns [10:23:42]free content buf [10:23:42]Sock 9.Close socket [10:23:42]Sock 9.Thread stoped [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:15]accept exits with 7 [10:25:15]New connection [10:25:15]New thread 3066776932 created [10:25:15]Thread 3066920292 joined [10:25:15]Waiting for new connection... [10:25:15] Sock 7.Parse request [10:25:15]Sock 7.Check first char [10:25:15]Sock 7.First char is OK [10:25:15]request: POST /json_proto HTTP/1.0 [10:25:15]Method: POST [10:25:15]URL: /json_proto [10:25:15]Method is POST - this is cgi request [10:25:15]url: /json_proto [10:25:15]query_string will be loaded in cgi processing [10:25:15]execute_cgi json_proto POST (null) [10:25:15]execute_cgi path=json_proto method=POST [10:25:15]POST find Content-Length [10:25:15]Host: 172.17.53.195:8080 [10:25:15]Content-Length: 680 [10:25:15]Content-Type: application/json [10:25:15] [10:25:15]POST finish read [10:25:15]Found Content-Length = 680 [10:25:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 120.740, "sum" : 9200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9200.00, "total" : 9200.00, "payments": [ { "type": 0, "sum" : 9200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:15]execute_script... [10:25: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)220153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 120.740, "sum" : 9200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9200.00, "total" : 9200.00, "payments": [ { "type": 0, "sum" : 9200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:15]POST & json_proto [10:25:15]process_json_proto [10:25:15]json parsed OK: [10:25:15]protocol is kg_v1.0 [10:25:15]action value=close_receipt [10:25:15]process_action close_receipt [10:25:15]cmd_close_receipt [10:25:15]MH_GetDate [10:25:15]Write to MH i2c: F0 00 00 49 D2 0A [10:25:15]Write i2c OK [10:25:15]MH_I2C_Read... [10:25:15]Read from MH i2c: F0 [10:25:15]MH_I2C_Read... [10:25:15]Read from MH i2c: F0 09 00 [10:25:15]MH_I2C_Read... [10:25:15]Read from MH i2c: F0 09 00 49 D2 00 97 DA 14 67 21 48 4A 65 17 [10:25:15]GetLastDocTimeStamp 1729419830 [10:25:15]current date 1729419927 [10:25:15]FM_GetShiftState [10:25:15]SAM_PROTO_GetShiftState [10:25:15]wFMCommunicate request_size=4 [10:25:15]MH_SAM_APDU [10:25:15]CAPDU: 80 13 01 00 [10:25:15]Write to MH i2c: E2 08 00 4A D2 80 13 01 00 00 00 00 00 99 [10:25:15]Write i2c OK [10:25:15]MH_I2C_Read... [10:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:15]Read from MH i2c: E2 [10:25:15]MH_I2C_Read... [10:25:15]Read from MH i2c: E2 0E 00 [10:25:15]MH_I2C_Read... [10:25:15]Read from MH i2c: E2 0E 00 4A D2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E1 [10:25:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:25:15]wFMCommunicate OK [10:25:15]SAM_PROTO_GetShiftState done [10:25:15]FM_GetShiftState done [10:25:15]opened in 1729384561 [10:25:15]opened+sec_in_day 1729470961 [10:25:15]quantity*price = 920038 [10:25:15]sum+1 = 920040 [10:25:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 9200.00 Внесено: 9200.00 СДАЧА: 0.00 НСП 1% : 81.42 НДС 12% : 977.03 Наличными: 9200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 78 20.10.2024 10:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165596 ФПД: 200944195481468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102527&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165596&fm=200944195481468&tin=02508201610067®Number=0000000000091764&sum=920000 [10:25:16]StoreToDocumentArchive [10:25:16]shift 534 fd 165596 [10:25:16]save to /storage/0534/doc_00165596 [10:25:16]save last doc name /storage/0534/doc_00165596 to /storage/kkm_last_doc_name [10:25:16]save OK [10:25:16]Clear old archive folders... [10:25:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:25:16]tlvbuf is 0162EF40 [10:25:16]SAM_PROTO_ClearQueue [10:25:16]wFMCommunicate request_size=4 [10:25:16]MH_SAM_APDU [10:25:16]CAPDU: 80 09 00 00 [10:25:16]Write to MH i2c: E2 08 00 57 D2 80 09 00 00 00 00 00 00 9B [10:25:16]Write i2c OK [10:25:16]MH_I2C_Read... [10:25:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:16]Read from MH i2c: E2 [10:25:16]MH_I2C_Read... [10:25:16]Read from MH i2c: E2 03 00 [10:25:16]MH_I2C_Read... [10:25:16]Read from MH i2c: E2 03 00 57 D2 00 90 00 9D [10:25:16]RAPDU: 90 00 [10:25:16]wFMCommunicate OK [10:25:16]SAM_PROTO_ClearQueue done [10:25:16]KKMCreateOFDPacket [10:25:16]OFDProtocolAddRootSTLVToBuf [10:25:16]FM_MakeSignedData [10:25:16]FM_MakeSignedData [10:25:16]SAM_PROTO_SignData [10:25:16]wFMCommunicate request_size=4 [10:25:16]MH_SAM_APDU [10:25:16]CAPDU: 80 0D 01 02 [10:25:16]Write to MH i2c: E2 08 00 58 D2 80 0D 01 02 00 00 00 00 A3 [10:25:16]Write i2c OK [10:25:16]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 58 D2 00 90 00 9E [10:25:17]RAPDU: 90 00 [10:25:17]wFMCommunicate OK [10:25:17]wFMCommunicate request_size=255 [10:25:17]MH_SAM_APDU [10:25:17]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 A4 D7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 09 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 09 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 7D 01 00 00 00 07 04 06 00 C0 09 0E 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 97 DA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 86 02 00 35 04 06 00 B6 C1 F7 64 [10:25:17]Write to MH i2c: E2 02 01 59 D2 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 A4 D7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 09 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 09 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 7D 01 00 00 00 07 04 06 00 C0 09 0E 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 97 DA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 86 02 00 35 04 06 00 B6 C1 F7 64 00 00 AA [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 59 D2 00 90 00 9F [10:25:17]RAPDU: 90 00 [10:25:17]wFMCommunicate OK [10:25:17]wFMCommunicate request_size=7 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 0D 02 02 02 2F 7C [10:25:17]Write to MH i2c: E2 0A 00 5A D2 80 0D 02 02 02 00 2F 7C 00 00 55 [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 5A D2 00 90 00 A0 [10:25:17]RAPDU: 90 00 [10:25:17]wFMCommunicate OK [10:25:17]wFMCommunicate request_size=4 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 0D 03 02 [10:25:17]Write to MH i2c: E2 08 00 5B D2 80 0D 03 02 00 00 00 00 A8 [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 0B 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 0B 00 5B D2 00 63 13 BE 79 0A C4 A5 3D 90 00 06 [10:25:17]RAPDU: 63 13 BE 79 0A C4 A5 3D 90 00 [10:25:17]wFMCommunicate OK [10:25:17]SAM_PROTO_SignData done [10:25:17]FM_MakeSignedData done [10:25:17]CreateOFDProtocolMessage [10:25:17]wFMCommunicate request_size=4 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 11 00 00 [10:25:17]Write to MH i2c: E2 08 00 5C D2 80 11 00 00 00 00 00 00 A8 [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 17 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 17 00 5C D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [10:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:25:17]wFMCommunicate OK [10:25:17]CreateOFDProtocolMessage done [10:25:17]OFDSenderStorePacket 165596 [10:25:17]StoreOFDPacket docnum=165596 [10:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E0 EF 04 01 DF 12 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 A4 D7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 09 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 09 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 7D 01 00 00 00 07 04 06 00 C0 09 0E 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 97 DA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 86 02 00 35 04 06 00 B6 C1 F7 64 2F 7C 63 13 BE 79 0A C4 A5 3D [10:25:17]CheckFolder [10:25:17]dirname=/storage/ofd_packets [10:25:17]CheckFolder done [10:25:17]ProducePacketName [10:25:17]name=ofd_packets/00165596 [10:25:17]NVStorageSaveData ofd_packets/00165596 [10:25:17]File name is /storage/ofd_packets/00165596 [10:25:17]Write 298 bytes [10:25:17]NVStorageSaveData done [10:25:17]OFDSenderStorePacket done [10:25:17]KKMCreateOFDPacket done [10:25:17]NVStorageSaveData kkm_last_timestamp [10:25:17]File name is /storage/kkm_last_timestamp [10:25:17]Write 4 bytes [10:25:17]NVStorageSaveData done [10:25:17]ExternCall_PrintAddStr [10:25:17]wPrintStart [10:25:17]Write to MH i2c: 01 00 00 5D D2 2F [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: 01 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: 01 07 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: 01 07 00 5D D2 00 00 00 00 00 FF 0F 44 [10:25:17]RasterBufferAndPrint [10:25:17]line Счет N : (1)220153 [10:25:17]line ИНН: 02508201610067 [10:25:17]line Контрольно-Кассовый Чек [10:25:17]line ПРОДАЖА [10:25:17]line ТРК (МРК, ГНК) : 41 [10:25:17]line Товар: 2710194210 [10:25:17]line ДТ-К-5 [10:25:17]line 120.740 * 76.20 [10:25:17]line = 9200.39 [10:25:17]line НДС 12% НСП 1% [10:25:17]line > о реализуемом товаре [10:25:17]line ОКРУГЛЕНИЕ: -0.39 [10:25:17]line ИТОГО: 9200.00 [10:25:17]line Внесено: 9200.00 [10:25:17]line СДАЧА: 0.00 [10:25:17]line НСП 1% : 81.42 [10:25:17]line НДС 12% : 977.03 [10:25:17]line Наличными: 9200.00 [10:25:17]line Безнал.: 0.00 [10:25:17]line Место: АЗС № 161 "Партнер Нефть" [10:25:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:25:17]line СНО: Общий режим [10:25:17]line Чек 78 20.10.2024 10:25 [10:25:17]line Смена: 534 ФФД: 1.0 [10:25:17]line ЗНМ: 0300000104 [10:25:17]line РНМ: 0000000000091764 [10:25:17]line Версия ККМ: 001 [10:25:17]line ФМ: 0000000000871759 [10:25:17]line ФД: 165596 [10:25:17]line ФПД: 200944195481468 [10:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102527&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165596&fm=200944195481468&tin=02508201610067®Number=0000000000091764&sum=920000 [10:25:17]OFD Sender: Processing packet 165596 [packets to send 48, broken 47] [10:25:17]ProducePacketName [10:25:17]name=ofd_packets/00165596 [10:25:17]OFD Sender: To server: pG, [10:25:17]CommunicateWithHost lk.salyk.kg:30040 [10:25:17]ConnectInit lk.salyk.kg [10:25:17]written 0, free lines is 4095 [10:25:17]Connected sock=10 [10:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E0 EF 04 01 DF 12 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 A4 D7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 09 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 09 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 7D 01 00 00 00 07 04 06 00 C0 09 0E 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 97 DA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 86 02 00 35 04 06 00 B6 C1 F7 64 2F 7C 63 13 BE 79 0A C4 A5 3D [10:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 20 98 47 00 E8 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 31 37 35 39 10 04 04 00 DC 86 02 00 F4 03 04 00 09 81 14 67 B6 04 01 00 00 59 69 B1 02 D1 32 7C 9D [10:25:18]CommunicateWithHost err = 0 [10:25:18]CheckOFDResponse [10:25:18]1017 (14) - 77093643461234 [10:25:18]1041 (16) - 0000000000871759 [10:25:18]1040 (4) - 165596 [10:25:18]1012 (4) - 20.10.2024 04:03 [10:25:18]1206 (1) - 0 [10:25:18]OFD Sender: Remove packet 165596 [10:25:18]ProducePacketName [10:25:18]name=ofd_packets/00165596 [10:25:18]NVStorageDeleteData [10:25:18]Write to MH i2c: 01 00 00 88 D2 5A [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 07 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 07 00 88 D2 00 00 00 00 00 D4 0C 41 [10:25:18]RasterBufferAndPrint [10:25:18]line [10:25:18]line [10:25:18]line [10:25:18]line [10:25:18]line [10:25:18]written 0, free lines is 3292 [10:25:18]MH_Cut [10:25:18]Write to MH i2c: D1 01 00 8F D2 01 33 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: D1 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: D1 01 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: D1 01 00 8F D2 00 32 [10:25:18]Write to MH i2c: 01 00 00 90 D2 62 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]OFD Sender: No OFD packet to send [10:25:19]*** Cut start [10:25:19]*** Partial cut [10:25:19]*** CUTSNS_PIN = 1 [10:25:19]*** CUTSNS_PIN = 0 [10:25:19]*** Brake cut motor [10:25:19]Read from MH i2c: 01 [10:25:19]MH_I2C_Read... [10:25:19]*** Stop cut motor [10:25:19]*** Cut end [10:25:19]Read from MH i2c: 01 07 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 90 D2 00 00 00 00 00 FF 0F 77 [10:25:19]process_action close_receipt done [10:25:19]requested_data is exist [10:25:19]produce_requested_data [10:25:19]requested_item fm.sn is exist - process it [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 11 00 00 [10:25:19]Write to MH i2c: E2 08 00 91 D2 80 11 00 00 00 00 00 00 DD [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 17 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 17 00 91 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [10:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:25:19]wFMCommunicate OK [10:25:19]requested_item fd.num is exist - process it [10:25:19]SAM_PROTO_GetFieldsCounters [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 13 00 00 [10:25:19]Write to MH i2c: E2 08 00 92 D2 80 13 00 00 00 00 00 00 E0 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 62 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 62 00 92 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [10:25:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:19]wFMCommunicate OK [10:25:19]SAM_PROTO_GetFieldsCounters done [10:25:19]requested_item shift.num is exist - process it [10:25:19]requested_item shift.opened is exist - process it [10:25:19]req_shift_opened [10:25:19]FM_GetShiftState [10:25:19]SAM_PROTO_GetShiftState [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 13 01 00 [10:25:19]Write to MH i2c: E2 08 00 93 D2 80 13 01 00 00 00 00 00 E2 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 0E 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 0E 00 93 D2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2A [10:25:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:25:19]wFMCommunicate OK [10:25:19]SAM_PROTO_GetShiftState done [10:25:19]FM_GetShiftState done [10:25:19]req_shift_opened done [10:25:19]requested_item shift.open_date is exist - process it [10:25:19]req_shift_open_date [10:25:19]req_shift_open_date done [10:25:19]produce_requested_data done [10:25:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165596,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:25:19]process_action_free close_receipt [10:25:19]json_value_free [10:25:19]json_value_free done [10:25:19]process_json_proto returns [10:25:19]Send response to host [10:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165596,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:25:19]free response buf [10:25:19]execute_script done [10:25:19]execute_script returns [10:25:19]free content buf [10:25:19]Sock 7.Close socket [10:25:19]Sock 7.Thread stoped [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:32]accept exits with 9 [10:28:32]New connection [10:28:32]New thread 3066920292 created [10:28:32]Thread 3066776932 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.53.195: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)220156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)220156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 94 D2 55 [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 94 D2 00 5C DB 14 67 21 48 4A 65 28 [10:28:32]GetLastDocTimeStamp 1729419927 [10:28:32]current date 1729420124 [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 95 D2 80 13 01 00 00 00 00 00 E4 [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 95 D2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2C [10:28:32]RAPDU: 09 00 01 71 50 14 67 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 1729384561 [10:28:32]opened+sec_in_day 1729470961 [10:28:32]quantity*price = 40006 [10:28:32]sum+1 = 40007 [10:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 79 20.10.2024 10:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165597 ФПД: 46073001425016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102844&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165597&fm=46073001425016&tin=02508201610067®Number=0000000000091764&sum=40000 [10:28:33]StoreToDocumentArchive [10:28:33]shift 534 fd 165597 [10:28:33]save to /storage/0534/doc_00165597 [10:28:33]save last doc name /storage/0534/doc_00165597 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 018AFFA0 [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 A2 D2 80 09 00 00 00 00 00 00 E6 [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 A2 D2 00 90 00 E8 [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 A3 D2 80 0D 01 02 00 00 00 00 EE [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 A3 D2 00 90 00 E9 [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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C DB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 86 02 00 35 04 06 00 29 [10:28:33]Write to MH i2c: E2 02 01 A4 D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C DB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 86 02 00 35 04 06 00 29 00 00 FA [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 A4 D2 00 90 00 EA [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 E7 34 E2 38 78 [10:28:34]Write to MH i2c: E2 0D 00 A5 D2 80 0D 02 02 05 00 E7 34 E2 38 78 00 00 A8 [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 A5 D2 00 90 00 EB [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 A6 D2 80 0D 03 02 00 00 00 00 F3 [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 A6 D2 00 70 9C 33 45 08 A7 4B D3 90 00 45 [10:28:34]RAPDU: 70 9C 33 45 08 A7 4B D3 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 A7 D2 80 11 00 00 00 00 00 00 F3 [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 A7 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [10:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:28:34]wFMCommunicate OK [10:28:34]CreateOFDProtocolMessage done [10:28:34]OFDSenderStorePacket 165597 [10:28:34]StoreOFDPacket docnum=165597 [10:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 77 07 01 B8 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C DB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 86 02 00 35 04 06 00 29 E7 34 E2 38 78 70 9C 33 45 08 A7 4B D3 [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/00165597 [10:28:34]NVStorageSaveData ofd_packets/00165597 [10:28:34]File name is /storage/ofd_packets/00165597 [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 A8 D2 7A [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 A8 D2 00 00 00 00 00 FF 0F 8F [10:28:34]RasterBufferAndPrint [10:28:34]line Счет N : (1)220156 [10:28:34]line ИНН: 02508201610067 [10:28:34]line Контрольно-Кассовый Чек [10:28:34]line ПРОДАЖА [10:28:34]line ТРК (МРК, ГНК) : 13 [10:28:34]line Товар: 2710124130 [10:28:34]line Аи-92-К-5 [10:28:34]line 5.980 * 66.90 [10:28:34]line = 400.06 [10:28:34]line НДС 12% НСП 1% [10:28:34]line > о реализуемом товаре [10:28:34]line ОКРУГЛЕНИЕ: -0.06 [10:28:34]line ИТОГО: 400.00 [10:28:34]line Внесено: 400.00 [10:28:34]line СДАЧА: 0.00 [10:28:34]line НСП 1% : 3.54 [10:28:34]line НДС 12% : 42.48 [10:28:34]line Наличными: 400.00 [10:28:34]line Безнал.: 0.00 [10:28:34]line Место: АЗС № 161 "Партнер Нефть" [10:28:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:28:34]line СНО: Общий режим [10:28:34]line Чек 79 20.10.2024 10:28 [10:28:34]line Смена: 534 ФФД: 1.0 [10:28:34]line ЗНМ: 0300000104 [10:28:34]line РНМ: 0000000000091764 [10:28:34]line Версия ККМ: 001 [10:28:34]line ФМ: 0000000000871759 [10:28:34]line ФД: 165597 [10:28:34]line ФПД: 46073001425016 [10:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102844&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165597&fm=46073001425016&tin=02508201610067®Number=0000000000091764&sum=40000 [10:28:34]OFD Sender: Processing packet 165597 [packets to send 48, broken 47] [10:28:34]ProducePacketName [10:28:34]name=ofd_packets/00165597 [10:28:34]OFD Sender: To server: pG, [10:28:34]CommunicateWithHost lk.salyk.kg:30040 [10:28:34]ConnectInit lk.salyk.kg [10:28:34]written 0, free lines is 4095 [10:28:34]Connected sock=10 [10:28:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 77 07 01 B8 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C DB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 86 02 00 35 04 06 00 29 E7 34 E2 38 78 70 9C 33 45 08 A7 4B D3 [10:28:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 83 2C 47 00 EC 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 86 02 00 F4 03 04 00 CE 81 14 67 B6 04 01 00 00 70 CA 52 F6 C6 7B D6 45 [10:28:35]CommunicateWithHost err = 0 [10:28:35]CheckOFDResponse [10:28:35]1017 (14) - 77093643461234 [10:28:35]1041 (16) - 0000000000871759 [10:28:35]1040 (4) - 165597 [10:28:35]1012 (4) - 20.10.2024 04:06 [10:28:35]1206 (1) - 0 [10:28:35]OFD Sender: Remove packet 165597 [10:28:35]ProducePacketName [10:28:35]name=ofd_packets/00165597 [10:28:35]NVStorageDeleteData [10:28:35]Write to MH i2c: 01 00 00 D3 D2 A5 [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 D3 D2 00 00 00 00 00 BF 0C 77 [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 3268 [10:28:35]MH_Cut [10:28:35]Write to MH i2c: D1 01 00 DA D2 01 7E [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 DA D2 00 7D [10:28:35]Write to MH i2c: 01 00 00 DB D2 AD [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]OFD Sender: No OFD packet to send [10:28:35]*** Cut start [10:28:35]*** Partial cut [10:28:35]*** CUTSNS_PIN = 1 [10:28:36]*** 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 DB D2 00 00 00 00 00 FF 0F C2 [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 DC D2 80 11 00 00 00 00 00 00 28 [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 DC D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [10:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 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 DD D2 80 13 00 00 00 00 00 00 2B [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 DD D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 DE D2 80 13 01 00 00 00 00 00 2D [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 DE D2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 75 [10:28:36]RAPDU: 09 00 01 71 50 14 67 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":"0000000000871759","fd.num":165597,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [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":"0000000000871759","fd.num":165597,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [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:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:54]accept exits with 7 [10:29:54]New connection [10:29:54]New thread 3066776932 created [10:29:54]Thread 3066920292 joined [10:29:54]Waiting for new connection... [10:29:54] Sock 7.Parse request [10:29:54]Sock 7.Check first char [10:29:54]Sock 7.First char is OK [10:29:54]request: POST /json_proto HTTP/1.0 [10:29:54]Method: POST [10:29:54]URL: /json_proto [10:29:54]Method is POST - this is cgi request [10:29:54]url: /json_proto [10:29:54]query_string will be loaded in cgi processing [10:29:54]execute_cgi json_proto POST (null) [10:29:54]execute_cgi path=json_proto method=POST [10:29:54]POST find Content-Length [10:29:54]Host: 172.17.53.195:8080 [10:29:54]Content-Length: 677 [10:29:54]Content-Type: application/json [10:29:54] [10:29:54]POST finish read [10:29:54]Found Content-Length = 677 [10:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:54]execute_script... [10:29:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:54]POST & json_proto [10:29:54]process_json_proto [10:29:54]json parsed OK: [10:29:54]protocol is kg_v1.0 [10:29:54]action value=close_receipt [10:29:54]process_action close_receipt [10:29:54]cmd_close_receipt [10:29:54]MH_GetDate [10:29:54]Write to MH i2c: F0 00 00 DF D2 A0 [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 09 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 09 00 DF D2 00 AE DB 14 67 21 48 4A 65 C5 [10:29:54]GetLastDocTimeStamp 1729420124 [10:29:54]current date 1729420206 [10:29:54]FM_GetShiftState [10:29:54]SAM_PROTO_GetShiftState [10:29:54]wFMCommunicate request_size=4 [10:29:54]MH_SAM_APDU [10:29:54]CAPDU: 80 13 01 00 [10:29:54]Write to MH i2c: E2 08 00 E0 D2 80 13 01 00 00 00 00 00 2F [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:54]Read from MH i2c: E2 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 0E 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 0E 00 E0 D2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 77 [10:29:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:29:54]wFMCommunicate OK [10:29:54]SAM_PROTO_GetShiftState done [10:29:54]FM_GetShiftState done [10:29:54]opened in 1729384561 [10:29:54]opened+sec_in_day 1729470961 [10:29:54]quantity*price = 60009 [10:29:54]sum+1 = 60010 [10:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 80 20.10.2024 10:30 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165598 ФПД: 50328646922285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103006&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165598&fm=50328646922285&tin=02508201610067®Number=0000000000091764&sum=60000 [10:29:55]StoreToDocumentArchive [10:29:55]shift 534 fd 165598 [10:29:55]save to /storage/0534/doc_00165598 [10:29:55]save last doc name /storage/0534/doc_00165598 to /storage/kkm_last_doc_name [10:29:55]save OK [10:29:55]Clear old archive folders... [10:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:55]tlvbuf is 0157EA10 [10:29:55]SAM_PROTO_ClearQueue [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 09 00 00 [10:29:55]Write to MH i2c: E2 08 00 ED D2 80 09 00 00 00 00 00 00 31 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 ED D2 00 90 00 33 [10:29:55]RAPDU: 90 00 [10:29:55]wFMCommunicate OK [10:29:55]SAM_PROTO_ClearQueue done [10:29:55]KKMCreateOFDPacket [10:29:55]OFDProtocolAddRootSTLVToBuf [10:29:55]FM_MakeSignedData [10:29:55]FM_MakeSignedData [10:29:55]SAM_PROTO_SignData [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 0D 01 02 [10:29:55]Write to MH i2c: E2 08 00 EE D2 80 0D 01 02 00 00 00 00 39 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:55]OFD Sender: No OFD packet to send [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 EE D2 00 90 00 34 [10:29:55]RAPDU: 90 00 [10:29:55]wFMCommunicate OK [10:29:55]wFMCommunicate request_size=255 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AE DB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 86 02 00 35 04 06 00 2D [10:29:55]Write to MH i2c: E2 02 01 EF D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AE DB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 86 02 00 35 04 06 00 2D 00 00 AB [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 EF D2 00 90 00 35 [10:29:55]RAPDU: 90 00 [10:29:55]wFMCommunicate OK [10:29:55]wFMCommunicate request_size=10 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 0D 02 02 05 C6 0D 1F 30 2D [10:29:55]Write to MH i2c: E2 0D 00 F0 D2 80 0D 02 02 05 00 C6 0D 1F 30 2D 00 00 95 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 F0 D2 00 90 00 36 [10:29:55]RAPDU: 90 00 [10:29:55]wFMCommunicate OK [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 0D 03 02 [10:29:55]Write to MH i2c: E2 08 00 F1 D2 80 0D 03 02 00 00 00 00 3E [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 0B 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 0B 00 F1 D2 00 8E 51 E8 AB 42 72 3C 1B 90 00 BC [10:29:56]RAPDU: 8E 51 E8 AB 42 72 3C 1B 90 00 [10:29:56]wFMCommunicate OK [10:29:56]SAM_PROTO_SignData done [10:29:56]FM_MakeSignedData done [10:29:56]CreateOFDProtocolMessage [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 11 00 00 [10:29:56]Write to MH i2c: E2 08 00 F2 D2 80 11 00 00 00 00 00 00 3E [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 17 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 17 00 F2 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [10:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:29:56]wFMCommunicate OK [10:29:56]CreateOFDProtocolMessage done [10:29:56]OFDSenderStorePacket 165598 [10:29:56]StoreOFDPacket docnum=165598 [10:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9B 25 07 01 97 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AE DB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 86 02 00 35 04 06 00 2D C6 0D 1F 30 2D 8E 51 E8 AB 42 72 3C 1B [10:29:56]CheckFolder [10:29:56]dirname=/storage/ofd_packets [10:29:56]CheckFolder done [10:29:56]ProducePacketName [10:29:56]name=ofd_packets/00165598 [10:29:56]NVStorageSaveData ofd_packets/00165598 [10:29:56]File name is /storage/ofd_packets/00165598 [10:29:56]Write 301 bytes [10:29:56]NVStorageSaveData done [10:29:56]OFDSenderStorePacket done [10:29:56]KKMCreateOFDPacket done [10:29:56]NVStorageSaveData kkm_last_timestamp [10:29:56]File name is /storage/kkm_last_timestamp [10:29:56]Write 4 bytes [10:29:56]NVStorageSaveData done [10:29:56]ExternCall_PrintAddStr [10:29:56]wPrintStart [10:29:56]Write to MH i2c: 01 00 00 F3 D2 C5 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 F3 D2 00 00 00 00 00 FF 0F DA [10:29:56]RasterBufferAndPrint [10:29:56]line Счет N : (1)220157 [10:29:56]line ИНН: 02508201610067 [10:29:56]line Контрольно-Кассовый Чек [10:29:56]line ПРОДАЖА [10:29:56]line ТРК (МРК, ГНК) : 33 [10:29:56]line Товар: 2710124130 [10:29:56]line Аи-92-К-5 [10:29:56]line 8.970 * 66.90 [10:29:56]line = 600.09 [10:29:56]line НДС 12% НСП 1% [10:29:56]line > о реализуемом товаре [10:29:56]line ОКРУГЛЕНИЕ: -0.09 [10:29:56]line ИТОГО: 600.00 [10:29:56]line Внесено: 600.00 [10:29:56]line СДАЧА: 0.00 [10:29:56]line НСП 1% : 5.31 [10:29:56]line НДС 12% : 63.73 [10:29:56]line Наличными: 600.00 [10:29:56]line Безнал.: 0.00 [10:29:56]line Место: АЗС № 161 "Партнер Нефть" [10:29:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:29:56]line СНО: Общий режим [10:29:56]line Чек 80 20.10.2024 10:30 [10:29:56]line Смена: 534 ФФД: 1.0 [10:29:56]line ЗНМ: 0300000104 [10:29:56]line РНМ: 0000000000091764 [10:29:56]line Версия ККМ: 001 [10:29:56]line ФМ: 0000000000871759 [10:29:56]line ФД: 165598 [10:29:56]line ФПД: 50328646922285 [10:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103006&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165598&fm=50328646922285&tin=02508201610067®Number=0000000000091764&sum=60000 [10:29:56]OFD Sender: Processing packet 165598 [packets to send 48, broken 47] [10:29:56]ProducePacketName [10:29:56]name=ofd_packets/00165598 [10:29:56]OFD Sender: To server: pG, [10:29:56]CommunicateWithHost lk.salyk.kg:30040 [10:29:56]ConnectInit lk.salyk.kg [10:29:56]written 0, free lines is 4095 [10:29:56]Connected sock=10 [10:29:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9B 25 07 01 97 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AE DB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 86 02 00 35 04 06 00 2D C6 0D 1F 30 2D 8E 51 E8 AB 42 72 3C 1B [10:29:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7B E2 47 00 BE 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 31 37 35 39 10 04 04 00 DE 86 02 00 F4 03 04 00 20 82 14 67 B6 04 01 00 00 4F E8 9B 0C 41 06 C8 CD [10:29:56]CommunicateWithHost err = 0 [10:29:56]CheckOFDResponse [10:29:56]1017 (14) - 77093643461234 [10:29:56]1041 (16) - 0000000000871759 [10:29:56]1040 (4) - 165598 [10:29:56]1012 (4) - 20.10.2024 04:08 [10:29:56]1206 (1) - 0 [10:29:56]OFD Sender: Remove packet 165598 [10:29:56]ProducePacketName [10:29:56]name=ofd_packets/00165598 [10:29:56]NVStorageDeleteData [10:29:56]Write to MH i2c: 01 00 00 1E D3 F1 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 1E D3 00 00 00 00 00 C1 0C C5 [10:29:56]RasterBufferAndPrint [10:29:56]line [10:29:56]line [10:29:56]line [10:29:56]line [10:29:56]line [10:29:56]written 0, free lines is 3273 [10:29:56]MH_Cut [10:29:56]Write to MH i2c: D1 01 00 25 D3 01 CA [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: D1 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: D1 01 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: D1 01 00 25 D3 00 C9 [10:29:56]Write to MH i2c: 01 00 00 26 D3 F9 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:57]OFD Sender: No OFD packet to send [10:29:57]*** Cut start [10:29:57]*** Partial cut [10:29:57]*** CUTSNS_PIN = 1 [10:29:57]*** CUTSNS_PIN = 0 [10:29:57]*** Brake cut motor [10:29:58]Read from MH i2c: 01 [10:29:58]MH_I2C_Read... [10:29:58]*** Stop cut motor [10:29:58]*** Cut end [10:29:58]Read from MH i2c: 01 07 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 26 D3 00 00 00 00 00 FF 0F 0E [10:29:58]process_action close_receipt done [10:29:58]requested_data is exist [10:29:58]produce_requested_data [10:29:58]requested_item fm.sn is exist - process it [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 11 00 00 [10:29:58]Write to MH i2c: E2 08 00 27 D3 80 11 00 00 00 00 00 00 74 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 17 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 17 00 27 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [10:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:29:58]wFMCommunicate OK [10:29:58]requested_item fd.num is exist - process it [10:29:58]SAM_PROTO_GetFieldsCounters [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 13 00 00 [10:29:58]Write to MH i2c: E2 08 00 28 D3 80 13 00 00 00 00 00 00 77 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 62 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 62 00 28 D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [10:29:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:58]wFMCommunicate OK [10:29:58]SAM_PROTO_GetFieldsCounters done [10:29:58]requested_item shift.num is exist - process it [10:29:58]requested_item shift.opened is exist - process it [10:29:58]req_shift_opened [10:29:58]FM_GetShiftState [10:29:58]SAM_PROTO_GetShiftState [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 13 01 00 [10:29:58]Write to MH i2c: E2 08 00 29 D3 80 13 01 00 00 00 00 00 79 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 0E 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 0E 00 29 D3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C1 [10:29:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:29:58]wFMCommunicate OK [10:29:58]SAM_PROTO_GetShiftState done [10:29:58]FM_GetShiftState done [10:29:58]req_shift_opened done [10:29:58]requested_item shift.open_date is exist - process it [10:29:58]req_shift_open_date [10:29:58]req_shift_open_date done [10:29:58]produce_requested_data done [10:29:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165598,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:29:58]process_action_free close_receipt [10:29:58]json_value_free [10:29:58]json_value_free done [10:29:58]process_json_proto returns [10:29:58]Send response to host [10:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165598,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:29:58]free response buf [10:29:58]execute_script done [10:29:58]execute_script returns [10:29:58]free content buf [10:29:58]Sock 7.Close socket [10:29:58]Sock 7.Thread stoped [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:49]accept exits with 9 [10:33:49]New connection [10:33:49]New thread 3066920292 created [10:33:49]Thread 3066776932 joined [10:33:49]Waiting for new connection... [10:33:49] Sock 9.Parse request [10:33:49]Sock 9.Check first char [10:33:49]Sock 9.First char is OK [10:33:49]request: POST /json_proto HTTP/1.0 [10:33:49]Method: POST [10:33:49]URL: /json_proto [10:33:49]Method is POST - this is cgi request [10:33:49]url: /json_proto [10:33:49]query_string will be loaded in cgi processing [10:33:49]execute_cgi json_proto POST (null) [10:33:49]execute_cgi path=json_proto method=POST [10:33:49]POST find Content-Length [10:33:49]Host: 172.17.53.195:8080 [10:33:49]Content-Length: 682 [10:33:49]Content-Type: application/json [10:33:49] [10:33:49]POST finish read [10:33:49]Found Content-Length = 682 [10:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:49]execute_script... [10:33: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)220158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:49]POST & json_proto [10:33:49]process_json_proto [10:33:49]json parsed OK: [10:33:49]protocol is kg_v1.0 [10:33:49]action value=close_receipt [10:33:49]process_action close_receipt [10:33:49]cmd_close_receipt [10:33:49]MH_GetDate [10:33:49]Write to MH i2c: F0 00 00 2A D3 EC [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: F0 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: F0 09 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: F0 09 00 2A D3 00 99 DC 14 67 21 48 4A 65 FD [10:33:49]GetLastDocTimeStamp 1729420206 [10:33:49]current date 1729420441 [10:33:49]FM_GetShiftState [10:33:49]SAM_PROTO_GetShiftState [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 13 01 00 [10:33:49]Write to MH i2c: E2 08 00 2B D3 80 13 01 00 00 00 00 00 7B [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 0E 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 0E 00 2B D3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C3 [10:33:49]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:33:49]wFMCommunicate OK [10:33:49]SAM_PROTO_GetShiftState done [10:33:49]FM_GetShiftState done [10:33:49]opened in 1729384561 [10:33:49]opened+sec_in_day 1729470961 [10:33:49]quantity*price = 100015 [10:33:49]sum+1 = 100017 [10:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 81 20.10.2024 10:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165599 ФПД: 207877095059686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103401&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165599&fm=207877095059686&tin=02508201610067®Number=0000000000091764&sum=100000 [10:33:50]StoreToDocumentArchive [10:33:50]shift 534 fd 165599 [10:33:50]save to /storage/0534/doc_00165599 [10:33:50]save last doc name /storage/0534/doc_00165599 to /storage/kkm_last_doc_name [10:33:50]save OK [10:33:50]Clear old archive folders... [10:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:50]tlvbuf is 014CB4D0 [10:33:50]SAM_PROTO_ClearQueue [10:33:50]wFMCommunicate request_size=4 [10:33:50]MH_SAM_APDU [10:33:50]CAPDU: 80 09 00 00 [10:33:50]Write to MH i2c: E2 08 00 38 D3 80 09 00 00 00 00 00 00 7D [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:50]Read from MH i2c: E2 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: E2 03 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: E2 03 00 38 D3 00 90 00 7F [10:33:50]RAPDU: 90 00 [10:33:50]wFMCommunicate OK [10:33:50]SAM_PROTO_ClearQueue done [10:33:50]KKMCreateOFDPacket [10:33:50]OFDProtocolAddRootSTLVToBuf [10:33:50]FM_MakeSignedData [10:33:50]FM_MakeSignedData [10:33:50]SAM_PROTO_SignData [10:33:50]wFMCommunicate request_size=4 [10:33:50]MH_SAM_APDU [10:33:50]CAPDU: 80 0D 01 02 [10:33:50]Write to MH i2c: E2 08 00 39 D3 80 0D 01 02 00 00 00 00 85 [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:51]Read from MH i2c: E2 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 03 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 03 00 39 D3 00 90 00 80 [10:33:51]RAPDU: 90 00 [10:33:51]wFMCommunicate OK [10:33:51]wFMCommunicate request_size=255 [10:33:51]MH_SAM_APDU [10:33: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 99 DC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 86 02 00 35 04 06 00 BD [10:33:51]Write to MH i2c: E2 02 01 3A D3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 99 DC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 86 02 00 35 04 06 00 BD 00 00 92 [10:33:51]Write i2c OK [10:33:51]MH_I2C_Read... [10:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:51]Read from MH i2c: E2 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 03 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 03 00 3A D3 00 90 00 81 [10:33:51]RAPDU: 90 00 [10:33:51]wFMCommunicate OK [10:33:51]wFMCommunicate request_size=10 [10:33:51]MH_SAM_APDU [10:33:51]CAPDU: 80 0D 02 02 05 10 28 68 70 E6 [10:33:51]Write to MH i2c: E2 0D 00 3B D3 80 0D 02 02 05 00 10 28 68 70 E6 00 00 88 [10:33:51]Write i2c OK [10:33:51]MH_I2C_Read... [10:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:51]Read from MH i2c: E2 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 03 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 03 00 3B D3 00 90 00 82 [10:33:51]RAPDU: 90 00 [10:33:51]wFMCommunicate OK [10:33:51]wFMCommunicate request_size=4 [10:33:51]MH_SAM_APDU [10:33:51]CAPDU: 80 0D 03 02 [10:33:51]Write to MH i2c: E2 08 00 3C D3 80 0D 03 02 00 00 00 00 8A [10:33:51]Write i2c OK [10:33:51]MH_I2C_Read... [10:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:51]Read from MH i2c: E2 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 0B 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 0B 00 3C D3 00 82 08 CD A1 7E 9C FD 35 90 00 CF [10:33:51]RAPDU: 82 08 CD A1 7E 9C FD 35 90 00 [10:33:51]wFMCommunicate OK [10:33:51]SAM_PROTO_SignData done [10:33:51]FM_MakeSignedData done [10:33:51]CreateOFDProtocolMessage [10:33:51]wFMCommunicate request_size=4 [10:33:51]MH_SAM_APDU [10:33:51]CAPDU: 80 11 00 00 [10:33:51]Write to MH i2c: E2 08 00 3D D3 80 11 00 00 00 00 00 00 8A [10:33:51]Write i2c OK [10:33:51]MH_I2C_Read... [10:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:51]Read from MH i2c: E2 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 17 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 17 00 3D D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [10:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:33:51]wFMCommunicate OK [10:33:51]CreateOFDProtocolMessage done [10:33:51]OFDSenderStorePacket 165599 [10:33:51]StoreOFDPacket docnum=165599 [10:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 67 07 01 57 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 99 DC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 86 02 00 35 04 06 00 BD 10 28 68 70 E6 82 08 CD A1 7E 9C FD 35 [10:33:51]CheckFolder [10:33:51]dirname=/storage/ofd_packets [10:33:51]CheckFolder done [10:33:51]ProducePacketName [10:33:51]name=ofd_packets/00165599 [10:33:51]NVStorageSaveData ofd_packets/00165599 [10:33:51]File name is /storage/ofd_packets/00165599 [10:33:51]Write 301 bytes [10:33:51]NVStorageSaveData done [10:33:51]OFDSenderStorePacket done [10:33:51]KKMCreateOFDPacket done [10:33:51]NVStorageSaveData kkm_last_timestamp [10:33:51]File name is /storage/kkm_last_timestamp [10:33:51]Write 4 bytes [10:33:51]NVStorageSaveData done [10:33:51]ExternCall_PrintAddStr [10:33:51]wPrintStart [10:33:51]Write to MH i2c: 01 00 00 3E D3 11 [10:33:51]Write i2c OK [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: 01 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: 01 07 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: 01 07 00 3E D3 00 00 00 00 00 FF 0F 26 [10:33:51]RasterBufferAndPrint [10:33:51]line Счет N : (1)220158 [10:33:51]line ИНН: 02508201610067 [10:33:51]line Контрольно-Кассовый Чек [10:33:51]line ПРОДАЖА [10:33:51]line ТРК (МРК, ГНК) : 23 [10:33:51]line Товар: 2710124130 [10:33:51]line Аи-92-К-5 [10:33:51]line 14.950 * 66.90 [10:33:51]line = 1000.16 [10:33:51]line НДС 12% НСП 1% [10:33:51]line > о реализуемом товаре [10:33:51]line ОКРУГЛЕНИЕ: -0.16 [10:33:51]line ИТОГО: 1000.00 [10:33:51]line Внесено: 1000.00 [10:33:51]line СДАЧА: 0.00 [10:33:51]line НСП 1% : 8.85 [10:33:51]line НДС 12% : 106.21 [10:33:51]line Наличными: 1000.00 [10:33:51]line Безнал.: 0.00 [10:33:51]line Место: АЗС № 161 "Партнер Нефть" [10:33:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:33:51]line СНО: Общий режим [10:33:51]line Чек 81 20.10.2024 10:34 [10:33:51]line Смена: 534 ФФД: 1.0 [10:33:51]line ЗНМ: 0300000104 [10:33:51]line РНМ: 0000000000091764 [10:33:51]line Версия ККМ: 001 [10:33:51]line ФМ: 0000000000871759 [10:33:51]line ФД: 165599 [10:33:51]line ФПД: 207877095059686 [10:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103401&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165599&fm=207877095059686&tin=02508201610067®Number=0000000000091764&sum=100000 [10:33:51]OFD Sender: Processing packet 165599 [packets to send 48, broken 47] [10:33:51]ProducePacketName [10:33:51]name=ofd_packets/00165599 [10:33:51]OFD Sender: To server: pG, [10:33:51]CommunicateWithHost lk.salyk.kg:30040 [10:33:51]ConnectInit lk.salyk.kg [10:33:51]written 0, free lines is 4095 [10:33:51]Connected sock=10 [10:33:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A8 67 07 01 57 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 99 DC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 86 02 00 35 04 06 00 BD 10 28 68 70 E6 82 08 CD A1 7E 9C FD 35 [10:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E5 23 47 00 B0 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 86 02 00 F4 03 04 00 0B 83 14 67 B6 04 01 00 00 21 24 E8 6F B8 E2 41 8D [10:33:52]CommunicateWithHost err = 0 [10:33:52]CheckOFDResponse [10:33:52]1017 (14) - 77093643461234 [10:33:52]1041 (16) - 0000000000871759 [10:33:52]1040 (4) - 165599 [10:33:52]1012 (4) - 20.10.2024 04:11 [10:33:52]1206 (1) - 0 [10:33:52]OFD Sender: Remove packet 165599 [10:33:52]ProducePacketName [10:33:52]name=ofd_packets/00165599 [10:33:52]NVStorageDeleteData [10:33:52]Write to MH i2c: 01 00 00 69 D3 3C [10:33:52]Write i2c OK [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: 01 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: 01 07 00 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: 01 07 00 69 D3 00 00 00 00 00 CC 0C 1B [10:33:52]RasterBufferAndPrint [10:33:52]line [10:33:52]line [10:33:52]line [10:33:52]line [10:33:52]line [10:33:52]written 0, free lines is 3282 [10:33:52]MH_Cut [10:33:52]Write to MH i2c: D1 01 00 70 D3 01 15 [10:33:52]Write i2c OK [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: D1 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: D1 01 00 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: D1 01 00 70 D3 00 14 [10:33:52]Write to MH i2c: 01 00 00 71 D3 44 [10:33:52]Write i2c OK [10:33:52]MH_I2C_Read... [10:33:52]OFD Sender: No OFD packet to send [10:33:53]*** Cut start [10:33:53]*** Partial cut [10:33:53]*** CUTSNS_PIN = 1 [10:33:53]*** CUTSNS_PIN = 0 [10:33:53]*** Brake cut motor [10:33:53]Read from MH i2c: 01 [10:33:53]MH_I2C_Read... [10:33:53]*** Stop cut motor [10:33:53]*** Cut end [10:33:53]Read from MH i2c: 01 07 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 71 D3 00 00 00 00 00 FF 0F 59 [10:33:53]process_action close_receipt done [10:33:53]requested_data is exist [10:33:53]produce_requested_data [10:33:53]requested_item fm.sn is exist - process it [10:33:53]wFMCommunicate request_size=4 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 80 11 00 00 [10:33:53]Write to MH i2c: E2 08 00 72 D3 80 11 00 00 00 00 00 00 BF [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 17 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 17 00 72 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [10:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:33:53]wFMCommunicate OK [10:33:53]requested_item fd.num is exist - process it [10:33:53]SAM_PROTO_GetFieldsCounters [10:33:53]wFMCommunicate request_size=4 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 80 13 00 00 [10:33:53]Write to MH i2c: E2 08 00 73 D3 80 13 00 00 00 00 00 00 C2 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 62 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 62 00 73 D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [10:33:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:53]wFMCommunicate OK [10:33:53]SAM_PROTO_GetFieldsCounters done [10:33:53]requested_item shift.num is exist - process it [10:33:53]requested_item shift.opened is exist - process it [10:33:53]req_shift_opened [10:33:53]FM_GetShiftState [10:33:53]SAM_PROTO_GetShiftState [10:33:53]wFMCommunicate request_size=4 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 80 13 01 00 [10:33:53]Write to MH i2c: E2 08 00 74 D3 80 13 01 00 00 00 00 00 C4 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 0E 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 0E 00 74 D3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0C [10:33:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:33:53]wFMCommunicate OK [10:33:53]SAM_PROTO_GetShiftState done [10:33:53]FM_GetShiftState done [10:33:53]req_shift_opened done [10:33:53]requested_item shift.open_date is exist - process it [10:33:53]req_shift_open_date [10:33:53]req_shift_open_date done [10:33:53]produce_requested_data done [10:33:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165599,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:33:53]process_action_free close_receipt [10:33:53]json_value_free [10:33:53]json_value_free done [10:33:53]process_json_proto returns [10:33:53]Send response to host [10:33:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165599,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:33:53]free response buf [10:33:53]execute_script done [10:33:53]execute_script returns [10:33:53]free content buf [10:33:53]Sock 9.Close socket [10:33:53]Sock 9.Thread stoped [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:54]accept exits with 7 [10:36:54]New connection [10:36:54]New thread 3066776932 created [10:36:54]Thread 3066920292 joined [10:36:54]Waiting for new connection... [10:36:54] Sock 7.Parse request [10:36:54]Sock 7.Check first char [10:36:54]Sock 7.First char is OK [10:36:54]request: POST /json_proto HTTP/1.0 [10:36:54]Method: POST [10:36:54]URL: /json_proto [10:36:54]Method is POST - this is cgi request [10:36:54]url: /json_proto [10:36:54]query_string will be loaded in cgi processing [10:36:54]execute_cgi json_proto POST (null) [10:36:54]execute_cgi path=json_proto method=POST [10:36:54]POST find Content-Length [10:36:54]Host: 172.17.53.195:8080 [10:36:54]Content-Length: 677 [10:36:54]Content-Type: application/json [10:36:54] [10:36:54]POST finish read [10:36:54]Found Content-Length = 677 [10:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:54]execute_script... [10:36: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)220159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:54]POST & json_proto [10:36:54]process_json_proto [10:36:54]json parsed OK: [10:36:54]protocol is kg_v1.0 [10:36:54]action value=close_receipt [10:36:54]process_action close_receipt [10:36:54]cmd_close_receipt [10:36:54]MH_GetDate [10:36:54]Write to MH i2c: F0 00 00 75 D3 37 [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: F0 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: F0 09 00 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: F0 09 00 75 D3 00 52 DD 14 67 21 48 4A 65 02 [10:36:54]GetLastDocTimeStamp 1729420441 [10:36:54]current date 1729420626 [10:36:54]FM_GetShiftState [10:36:54]SAM_PROTO_GetShiftState [10:36:54]wFMCommunicate request_size=4 [10:36:54]MH_SAM_APDU [10:36:54]CAPDU: 80 13 01 00 [10:36:54]Write to MH i2c: E2 08 00 76 D3 80 13 01 00 00 00 00 00 C6 [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:54]Read from MH i2c: E2 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: E2 0E 00 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: E2 0E 00 76 D3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0E [10:36:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:36:54]wFMCommunicate OK [10:36:54]SAM_PROTO_GetShiftState done [10:36:54]FM_GetShiftState done [10:36:54]opened in 1729384561 [10:36:54]opened+sec_in_day 1729470961 [10:36:54]quantity*price = 29971 [10:36:54]sum+1 = 29972 [10:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 82 20.10.2024 10:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165600 ФПД: 243722385889192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103706&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165600&fm=243722385889192&tin=02508201610067®Number=0000000000091764&sum=29900 [10:36:56]StoreToDocumentArchive [10:36:56]shift 534 fd 165600 [10:36:56]save to /storage/0534/doc_00165600 [10:36:56]save last doc name /storage/0534/doc_00165600 to /storage/kkm_last_doc_name [10:36:56]save OK [10:36:56]Clear old archive folders... [10:36:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:56]tlvbuf is 016AB2F0 [10:36:56]SAM_PROTO_ClearQueue [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 09 00 00 [10:36:56]Write to MH i2c: E2 08 00 83 D3 80 09 00 00 00 00 00 00 C8 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 83 D3 00 90 00 CA [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]SAM_PROTO_ClearQueue done [10:36:56]KKMCreateOFDPacket [10:36:56]OFDProtocolAddRootSTLVToBuf [10:36:56]FM_MakeSignedData [10:36:56]FM_MakeSignedData [10:36:56]SAM_PROTO_SignData [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 01 02 [10:36:56]Write to MH i2c: E2 08 00 84 D3 80 0D 01 02 00 00 00 00 D0 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 84 D3 00 90 00 CB [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=255 [10:36:56]MH_SAM_APDU [10:36: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 52 DD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 86 02 00 35 04 06 00 DD [10:36:56]Write to MH i2c: E2 02 01 85 D3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 52 DD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 86 02 00 35 04 06 00 DD 00 00 94 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 85 D3 00 90 00 CC [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=10 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 02 02 05 AA 0A 3C 17 A8 [10:36:56]Write to MH i2c: E2 0D 00 86 D3 80 0D 02 02 05 00 AA 0A 3C 17 A8 00 00 8C [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 86 D3 00 90 00 CD [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 03 02 [10:36:56]Write to MH i2c: E2 08 00 87 D3 80 0D 03 02 00 00 00 00 D5 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 0B 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 0B 00 87 D3 00 3F 82 BC B6 C0 33 A6 D0 90 00 72 [10:36:56]RAPDU: 3F 82 BC B6 C0 33 A6 D0 90 00 [10:36:56]wFMCommunicate OK [10:36:56]SAM_PROTO_SignData done [10:36:56]FM_MakeSignedData done [10:36:56]CreateOFDProtocolMessage [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 11 00 00 [10:36:56]Write to MH i2c: E2 08 00 88 D3 80 11 00 00 00 00 00 00 D5 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 17 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 17 00 88 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [10:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:36:56]wFMCommunicate OK [10:36:56]CreateOFDProtocolMessage done [10:36:56]OFDSenderStorePacket 165600 [10:36:56]StoreOFDPacket docnum=165600 [10:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BC 10 07 01 F6 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 52 DD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 86 02 00 35 04 06 00 DD AA 0A 3C 17 A8 3F 82 BC B6 C0 33 A6 D0 [10:36:56]CheckFolder [10:36:56]dirname=/storage/ofd_packets [10:36:56]CheckFolder done [10:36:56]ProducePacketName [10:36:56]name=ofd_packets/00165600 [10:36:56]NVStorageSaveData ofd_packets/00165600 [10:36:56]File name is /storage/ofd_packets/00165600 [10:36:56]Write 301 bytes [10:36:56]NVStorageSaveData done [10:36:56]OFDSenderStorePacket done [10:36:56]KKMCreateOFDPacket done [10:36:56]NVStorageSaveData kkm_last_timestamp [10:36:56]File name is /storage/kkm_last_timestamp [10:36:56]Write 4 bytes [10:36:56]NVStorageSaveData done [10:36:56]ExternCall_PrintAddStr [10:36:56]wPrintStart [10:36:56]Write to MH i2c: 01 00 00 89 D3 5C [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 07 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 07 00 89 D3 00 00 00 00 00 FF 0F 71 [10:36:56]RasterBufferAndPrint [10:36:56]line Счет N : (1)220159 [10:36:56]line ИНН: 02508201610067 [10:36:56]line Контрольно-Кассовый Чек [10:36:56]line ПРОДАЖА [10:36:56]line ТРК (МРК, ГНК) : 13 [10:36:56]line Товар: 2710124130 [10:36:56]line Аи-92-К-5 [10:36:56]line 4.480 * 66.90 [10:36:56]line = 299.71 [10:36:56]line НДС 12% НСП 1% [10:36:56]line > о реализуемом товаре [10:36:56]line ОКРУГЛЕНИЕ: -0.71 [10:36:56]line ИТОГО: 299.00 [10:36:56]line Внесено: 300.00 [10:36:56]line СДАЧА: 1.00 [10:36:56]line НСП 1% : 2.65 [10:36:56]line НДС 12% : 31.83 [10:36:56]line Наличными: 299.00 [10:36:56]line Безнал.: 0.00 [10:36:56]line Место: АЗС № 161 "Партнер Нефть" [10:36:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:36:56]line СНО: Общий режим [10:36:56]line Чек 82 20.10.2024 10:37 [10:36:56]line Смена: 534 ФФД: 1.0 [10:36:56]line ЗНМ: 0300000104 [10:36:56]line РНМ: 0000000000091764 [10:36:56]line Версия ККМ: 001 [10:36:56]line ФМ: 0000000000871759 [10:36:56]line ФД: 165600 [10:36:56]line ФПД: 243722385889192 [10:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103706&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165600&fm=243722385889192&tin=02508201610067®Number=0000000000091764&sum=29900 [10:36:57]OFD Sender: Processing packet 165600 [packets to send 48, broken 47] [10:36:57]ProducePacketName [10:36:57]name=ofd_packets/00165600 [10:36:57]OFD Sender: To server: pG, [10:36:57]CommunicateWithHost lk.salyk.kg:30040 [10:36:57]ConnectInit lk.salyk.kg [10:36:57]written 0, free lines is 4095 [10:36:57]Connected sock=10 [10:36:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BC 10 07 01 F6 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 52 DD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 86 02 00 35 04 06 00 DD AA 0A 3C 17 A8 3F 82 BC B6 C0 33 A6 D0 [10:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6A 3F 47 00 F6 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 31 37 35 39 10 04 04 00 E0 86 02 00 F4 03 04 00 C5 83 14 67 B6 04 01 00 00 0E 06 98 0F E2 38 9A BC [10:36:57]CommunicateWithHost err = 0 [10:36:57]CheckOFDResponse [10:36:57]1017 (14) - 77093643461234 [10:36:57]1041 (16) - 0000000000871759 [10:36:57]1040 (4) - 165600 [10:36:57]1012 (4) - 20.10.2024 04:15 [10:36:57]1206 (1) - 0 [10:36:57]OFD Sender: Remove packet 165600 [10:36:57]ProducePacketName [10:36:57]name=ofd_packets/00165600 [10:36:57]NVStorageDeleteData [10:36:57]Write to MH i2c: 01 00 00 B4 D3 87 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 07 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 07 00 B4 D3 00 00 00 00 00 C2 0C 5C [10:36:57]RasterBufferAndPrint [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]written 0, free lines is 3275 [10:36:57]MH_Cut [10:36:57]Write to MH i2c: D1 01 00 BB D3 01 60 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 01 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 01 00 BB D3 00 5F [10:36:57]Write to MH i2c: 01 00 00 BC D3 8F [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]OFD Sender: No OFD packet to send [10:36:58]*** Cut start [10:36:58]*** Partial cut [10:36:58]*** CUTSNS_PIN = 1 [10:36:58]*** CUTSNS_PIN = 0 [10:36:58]*** Brake cut motor [10:36:58]Read from MH i2c: 01 [10:36:58]MH_I2C_Read... [10:36:58]*** Stop cut motor [10:36:58]*** Cut end [10:36:58]Read from MH i2c: 01 07 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: 01 07 00 BC D3 00 00 00 00 00 FF 0F A4 [10:36:58]process_action close_receipt done [10:36:58]requested_data is exist [10:36:58]produce_requested_data [10:36:58]requested_item fm.sn is exist - process it [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 11 00 00 [10:36:58]Write to MH i2c: E2 08 00 BD D3 80 11 00 00 00 00 00 00 0A [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 17 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 17 00 BD D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [10:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:36:58]wFMCommunicate OK [10:36:58]requested_item fd.num is exist - process it [10:36:58]SAM_PROTO_GetFieldsCounters [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 13 00 00 [10:36:58]Write to MH i2c: E2 08 00 BE D3 80 13 00 00 00 00 00 00 0D [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 62 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 62 00 BE D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10:36: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:59]wFMCommunicate OK [10:36:59]SAM_PROTO_GetFieldsCounters done [10:36:59]requested_item shift.num is exist - process it [10:36:59]requested_item shift.opened is exist - process it [10:36:59]req_shift_opened [10:36:59]FM_GetShiftState [10:36:59]SAM_PROTO_GetShiftState [10:36:59]wFMCommunicate request_size=4 [10:36:59]MH_SAM_APDU [10:36:59]CAPDU: 80 13 01 00 [10:36:59]Write to MH i2c: E2 08 00 BF D3 80 13 01 00 00 00 00 00 0F [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 0E 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 0E 00 BF D3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 57 [10:36:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:36:59]wFMCommunicate OK [10:36:59]SAM_PROTO_GetShiftState done [10:36:59]FM_GetShiftState done [10:36:59]req_shift_opened done [10:36:59]requested_item shift.open_date is exist - process it [10:36:59]req_shift_open_date [10:36:59]req_shift_open_date done [10:36:59]produce_requested_data done [10:36:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165600,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:36:59]process_action_free close_receipt [10:36:59]json_value_free [10:36:59]json_value_free done [10:36:59]process_json_proto returns [10:36:59]Send response to host [10:36:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165600,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:36:59]free response buf [10:36:59]execute_script done [10:36:59]execute_script returns [10:36:59]free content buf [10:36:59]Sock 7.Close socket [10:36:59]Sock 7.Thread stoped [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:24]accept exits with 9 [10:41:24]New connection [10:41:24]New thread 3066920292 created [10:41:24]Thread 3066776932 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.53.195:8080 [10:41:24]Content-Length: 674 [10:41:24]Content-Type: application/json [10:41:24] [10:41:24]POST finish read [10:41:24]Found Content-Length = 674 [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)220163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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: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)220163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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: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 C0 D3 82 [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 C0 D3 00 60 DE 14 67 21 48 4A 65 5C [10:41:24]GetLastDocTimeStamp 1729420626 [10:41:24]current date 1729420896 [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 C1 D3 80 13 01 00 00 00 00 00 11 [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 C1 D3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 59 [10:41:24]RAPDU: 09 00 01 71 50 14 67 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 1729384561 [10:41:24]opened+sec_in_day 1729470961 [10:41:24]quantity*price = 50063 [10:41:24]sum+1 = 50064 [10:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 83 20.10.2024 10:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165601 ФПД: 82646792578103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104136&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165601&fm=82646792578103&tin=02508201610067®Number=0000000000091764&sum=50000 [10:41:25]StoreToDocumentArchive [10:41:25]shift 534 fd 165601 [10:41:25]save to /storage/0534/doc_00165601 [10:41:25]save last doc name /storage/0534/doc_00165601 to /storage/kkm_last_doc_name [10:41:25]save OK [10:41:25]Clear old archive folders... [10:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:41:25]tlvbuf is 014CB370 [10:41:25]SAM_PROTO_ClearQueue [10:41:25]wFMCommunicate request_size=4 [10:41:25]MH_SAM_APDU [10:41:25]CAPDU: 80 09 00 00 [10:41:25]Write to MH i2c: E2 08 00 CE D3 80 09 00 00 00 00 00 00 13 [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:25]Read from MH i2c: E2 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 CE D3 00 90 00 15 [10:41:25]RAPDU: 90 00 [10:41:25]wFMCommunicate OK [10:41:25]SAM_PROTO_ClearQueue done [10:41:25]KKMCreateOFDPacket [10:41:25]OFDProtocolAddRootSTLVToBuf [10:41:25]FM_MakeSignedData [10:41:25]FM_MakeSignedData [10:41:25]SAM_PROTO_SignData [10:41:25]wFMCommunicate request_size=4 [10:41:25]MH_SAM_APDU [10:41:25]CAPDU: 80 0D 01 02 [10:41:25]Write to MH i2c: E2 08 00 CF D3 80 0D 01 02 00 00 00 00 1B [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:25]Read from MH i2c: E2 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 CF D3 00 90 00 16 [10:41:25]RAPDU: 90 00 [10:41:25]wFMCommunicate OK [10:41:25]wFMCommunicate request_size=255 [10:41:25]MH_SAM_APDU [10:41: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 60 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 86 02 00 35 04 06 00 4B 2A B4 B6 [10:41:25]Write to MH i2c: E2 02 01 D0 D3 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 60 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 86 02 00 35 04 06 00 4B 2A B4 B6 00 00 9B [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:25]Read from MH i2c: E2 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 D0 D3 00 90 00 17 [10:41:25]RAPDU: 90 00 [10:41:25]wFMCommunicate OK [10:41:25]wFMCommunicate request_size=7 [10:41:25]MH_SAM_APDU [10:41:25]CAPDU: 80 0D 02 02 02 A4 37 [10:41:25]Write to MH i2c: E2 0A 00 D1 D3 80 0D 02 02 02 00 A4 37 00 00 FD [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:25]Read from MH i2c: E2 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 D1 D3 00 90 00 18 [10:41:25]RAPDU: 90 00 [10:41:25]wFMCommunicate OK [10:41:25]wFMCommunicate request_size=4 [10:41:25]MH_SAM_APDU [10:41:25]CAPDU: 80 0D 03 02 [10:41:25]Write to MH i2c: E2 08 00 D2 D3 80 0D 03 02 00 00 00 00 20 [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:25]Read from MH i2c: E2 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 0B 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 0B 00 D2 D3 00 23 B8 16 E5 B6 58 A1 74 90 00 1A [10:41:25]RAPDU: 23 B8 16 E5 B6 58 A1 74 90 00 [10:41:25]wFMCommunicate OK [10:41:25]SAM_PROTO_SignData done [10:41:25]FM_MakeSignedData done [10:41:25]CreateOFDProtocolMessage [10:41:25]wFMCommunicate request_size=4 [10:41:25]MH_SAM_APDU [10:41:25]CAPDU: 80 11 00 00 [10:41:25]Write to MH i2c: E2 08 00 D3 D3 80 11 00 00 00 00 00 00 20 [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:25]Read from MH i2c: E2 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 17 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 17 00 D3 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [10:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:41:25]wFMCommunicate OK [10:41:25]CreateOFDProtocolMessage done [10:41:25]OFDSenderStorePacket 165601 [10:41:25]StoreOFDPacket docnum=165601 [10:41:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 07 A1 04 01 AC 23 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 60 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 86 02 00 35 04 06 00 4B 2A B4 B6 A4 37 23 B8 16 E5 B6 58 A1 74 [10:41:25]CheckFolder [10:41:25]dirname=/storage/ofd_packets [10:41:25]CheckFolder done [10:41:25]ProducePacketName [10:41:25]name=ofd_packets/00165601 [10:41:25]NVStorageSaveData ofd_packets/00165601 [10:41:25]File name is /storage/ofd_packets/00165601 [10:41:25]Write 298 bytes [10:41:25]NVStorageSaveData done [10:41:25]OFDSenderStorePacket done [10:41:25]KKMCreateOFDPacket done [10:41:25]NVStorageSaveData kkm_last_timestamp [10:41:25]File name is /storage/kkm_last_timestamp [10:41:25]Write 4 bytes [10:41:25]NVStorageSaveData done [10:41:25]ExternCall_PrintAddStr [10:41:25]wPrintStart [10:41:25]Write to MH i2c: 01 00 00 D4 D3 A7 [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: 01 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: 01 07 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: 01 07 00 D4 D3 00 00 00 00 00 FF 0F BC [10:41:25]RasterBufferAndPrint [10:41:25]line Счет N : (1)220163 [10:41:25]line ИНН: 02508201610067 [10:41:25]line Контрольно-Кассовый Чек [10:41:25]line ПРОДАЖА [10:41:25]line ТРК (МРК, ГНК) : 31 [10:41:25]line Товар: 2710194210 [10:41:25]line ДТ-К-5 [10:41:25]line 6.570 * 76.20 [10:41:25]line = 500.63 [10:41:25]line НДС 12% НСП 1% [10:41:25]line > о реализуемом товаре [10:41:25]line ОКРУГЛЕНИЕ: -0.63 [10:41:25]line ИТОГО: 500.00 [10:41:25]line Внесено: 500.00 [10:41:25]line СДАЧА: 0.00 [10:41:25]line НСП 1% : 4.43 [10:41:25]line НДС 12% : 53.16 [10:41:25]line Наличными: 500.00 [10:41:25]line Безнал.: 0.00 [10:41:25]line Место: АЗС № 161 "Партнер Нефть" [10:41:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:41:25]line СНО: Общий режим [10:41:25]line Чек 83 20.10.2024 10:41 [10:41:25]line Смена: 534 ФФД: 1.0 [10:41:25]line ЗНМ: 0300000104 [10:41:25]line РНМ: 0000000000091764 [10:41:25]line Версия ККМ: 001 [10:41:25]line ФМ: 0000000000871759 [10:41:25]line ФД: 165601 [10:41:25]line ФПД: 82646792578103 [10:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104136&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165601&fm=82646792578103&tin=02508201610067®Number=0000000000091764&sum=50000 [10:41:26]written 0, free lines is 4095 [10:41:26]OFD Sender: Processing packet 165601 [packets to send 48, broken 47] [10:41:26]ProducePacketName [10:41:26]name=ofd_packets/00165601 [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]Connected sock=10 [10:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 07 A1 04 01 AC 23 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 60 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 86 02 00 35 04 06 00 4B 2A B4 B6 A4 37 23 B8 16 E5 B6 58 A1 74 [10:41:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DD AA 47 00 91 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 31 37 35 39 10 04 04 00 E1 86 02 00 F4 03 04 00 D2 84 14 67 B6 04 01 00 00 F4 6D 24 D9 4E D8 55 AD [10:41:26]CommunicateWithHost err = 0 [10:41:26]CheckOFDResponse [10:41:26]1017 (14) - 77093643461234 [10:41:26]1041 (16) - 0000000000871759 [10:41:26]1040 (4) - 165601 [10:41:26]1012 (4) - 20.10.2024 04:19 [10:41:26]1206 (1) - 0 [10:41:26]OFD Sender: Remove packet 165601 [10:41:26]ProducePacketName [10:41:26]name=ofd_packets/00165601 [10:41:26]NVStorageDeleteData [10:41:26]Write to MH i2c: 01 00 00 FF D3 D2 [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 FF D3 00 00 00 00 00 C7 0C AC [10:41:26]RasterBufferAndPrint [10:41:26]line [10:41:26]line [10:41:26]line [10:41:26]line [10:41:26]line [10:41:26]written 0, free lines is 3280 [10:41:26]MH_Cut [10:41:26]Write to MH i2c: D1 01 00 06 D4 01 AC [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: D1 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: D1 01 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: D1 01 00 06 D4 00 AB [10:41:26]Write to MH i2c: 01 00 00 07 D4 DB [10:41:26]Write i2c OK [10:41:26]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:27]*** CUTSNS_PIN = 0 [10:41:27]*** 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 07 D4 00 00 00 00 00 FF 0F F0 [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 08 D4 80 11 00 00 00 00 00 00 56 [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 08 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [10:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 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 09 D4 80 13 00 00 00 00 00 00 59 [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 09 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 0A D4 80 13 01 00 00 00 00 00 5B [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 0A D4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A3 [10:41:28]RAPDU: 09 00 01 71 50 14 67 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":"0000000000871759","fd.num":165601,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [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":"0000000000871759","fd.num":165601,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [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:15]accept exits with 7 [10:42:15]New connection [10:42:15]New thread 3066776932 created [10:42:15]Thread 3066920292 joined [10:42:15]Waiting for new connection... [10:42:15] Sock 7.Parse request [10:42:15]Sock 7.Check first char [10:42:15]Sock 7.First char is OK [10:42:15]request: POST /json_proto HTTP/1.0 [10:42:15]Method: POST [10:42:15]URL: /json_proto [10:42:15]Method is POST - this is cgi request [10:42:15]url: /json_proto [10:42:15]query_string will be loaded in cgi processing [10:42:15]execute_cgi json_proto POST (null) [10:42:15]execute_cgi path=json_proto method=POST [10:42:15]POST find Content-Length [10:42:15]Host: 172.17.53.195:8080 [10:42:15]Content-Length: 682 [10:42:15]Content-Type: application/json [10:42:15] [10:42:15]POST finish read [10:42:15]Found Content-Length = 682 [10:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.330, "sum" : 1508.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1508.00, "total" : 1508.00, "payments": [ { "type": 0, "sum" : 1508.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:15]execute_script... [10:42: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)220164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.330, "sum" : 1508.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1508.00, "total" : 1508.00, "payments": [ { "type": 0, "sum" : 1508.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:15]POST & json_proto [10:42:15]process_json_proto [10:42:15]json parsed OK: [10:42:15]protocol is kg_v1.0 [10:42:15]action value=close_receipt [10:42:15]process_action close_receipt [10:42:15]cmd_close_receipt [10:42:15]MH_GetDate [10:42:15]Write to MH i2c: F0 00 00 0B D4 CE [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: F0 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: F0 09 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: F0 09 00 0B D4 00 93 DE 14 67 21 48 4A 65 DB [10:42:15]GetLastDocTimeStamp 1729420896 [10:42:15]current date 1729420947 [10:42:15]FM_GetShiftState [10:42:15]SAM_PROTO_GetShiftState [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 13 01 00 [10:42:15]Write to MH i2c: E2 08 00 0C D4 80 13 01 00 00 00 00 00 5D [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 0C D4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A5 [10:42:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:42:15]wFMCommunicate OK [10:42:15]SAM_PROTO_GetShiftState done [10:42:15]FM_GetShiftState done [10:42:15]opened in 1729384561 [10:42:15]opened+sec_in_day 1729470961 [10:42:15]quantity*price = 150848 [10:42:15]sum+1 = 150850 [10:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1508.00 Внесено: 1508.00 СДАЧА: 0.00 НСП 1% : 13.35 НДС 12% : 160.19 Наличными: 1508.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 84 20.10.2024 10:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165602 ФПД: 197498232007489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165602&fm=197498232007489&tin=02508201610067®Number=0000000000091764&sum=150800 [10:42:16]StoreToDocumentArchive [10:42:16]shift 534 fd 165602 [10:42:16]save to /storage/0534/doc_00165602 [10:42:16]save last doc name /storage/0534/doc_00165602 to /storage/kkm_last_doc_name [10:42:16]save OK [10:42:16]Clear old archive folders... [10:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:16]tlvbuf is 014FEAB0 [10:42:16]SAM_PROTO_ClearQueue [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 09 00 00 [10:42:16]Write to MH i2c: E2 08 00 19 D4 80 09 00 00 00 00 00 00 5F [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 19 D4 00 90 00 61 [10:42:16]RAPDU: 90 00 [10:42:16]wFMCommunicate OK [10:42:16]SAM_PROTO_ClearQueue done [10:42:16]KKMCreateOFDPacket [10:42:16]OFDProtocolAddRootSTLVToBuf [10:42:16]FM_MakeSignedData [10:42:16]FM_MakeSignedData [10:42:16]SAM_PROTO_SignData [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 0D 01 02 [10:42:16]Write to MH i2c: E2 08 00 1A D4 80 0D 01 02 00 00 00 00 67 [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 1A D4 00 90 00 62 [10:42:16]RAPDU: 90 00 [10:42:16]wFMCommunicate OK [10:42:16]wFMCommunicate request_size=255 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 41 4D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 3E 00 00 00 00 07 04 06 00 10 4D 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 93 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 86 02 00 35 04 06 00 B3 [10:42:16]Write to MH i2c: E2 02 01 1B D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 41 4D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 3E 00 00 00 00 07 04 06 00 10 4D 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 93 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 86 02 00 35 04 06 00 B3 00 00 1D [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 1B D4 00 90 00 63 [10:42:16]RAPDU: 90 00 [10:42:16]wFMCommunicate OK [10:42:16]wFMCommunicate request_size=10 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 0D 02 02 05 9F A3 F6 6B 41 [10:42:16]Write to MH i2c: E2 0D 00 1C D4 80 0D 02 02 05 00 9F A3 F6 6B 41 00 00 58 [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 03 00 1C D4 00 90 00 64 [10:42:16]RAPDU: 90 00 [10:42:16]wFMCommunicate OK [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 0D 03 02 [10:42:16]Write to MH i2c: E2 08 00 1D D4 80 0D 03 02 00 00 00 00 6C [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 0B 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 0B 00 1D D4 00 C6 0B C9 82 6B 0E 5F 93 90 00 F4 [10:42:16]RAPDU: C6 0B C9 82 6B 0E 5F 93 90 00 [10:42:16]wFMCommunicate OK [10:42:16]SAM_PROTO_SignData done [10:42:16]FM_MakeSignedData done [10:42:16]CreateOFDProtocolMessage [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 11 00 00 [10:42:16]Write to MH i2c: E2 08 00 1E D4 80 11 00 00 00 00 00 00 6C [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 17 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 17 00 1E D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [10:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:42:16]wFMCommunicate OK [10:42:16]CreateOFDProtocolMessage done [10:42:16]OFDSenderStorePacket 165602 [10:42:16]StoreOFDPacket docnum=165602 [10:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 57 62 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 41 4D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 3E 00 00 00 00 07 04 06 00 10 4D 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 93 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 86 02 00 35 04 06 00 B3 9F A3 F6 6B 41 C6 0B C9 82 6B 0E 5F 93 [10:42:16]CheckFolder [10:42:16]dirname=/storage/ofd_packets [10:42:16]CheckFolder done [10:42:16]ProducePacketName [10:42:16]name=ofd_packets/00165602 [10:42:16]NVStorageSaveData ofd_packets/00165602 [10:42:16]File name is /storage/ofd_packets/00165602 [10:42:16]Write 301 bytes [10:42:16]NVStorageSaveData done [10:42:16]OFDSenderStorePacket done [10:42:16]KKMCreateOFDPacket done [10:42:16]NVStorageSaveData kkm_last_timestamp [10:42:16]File name is /storage/kkm_last_timestamp [10:42:16]Write 4 bytes [10:42:16]NVStorageSaveData done [10:42:16]ExternCall_PrintAddStr [10:42:16]wPrintStart [10:42:16]Write to MH i2c: 01 00 00 1F D4 F3 [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: 01 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: 01 07 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: 01 07 00 1F D4 00 00 00 00 00 FF 0F 08 [10:42:16]RasterBufferAndPrint [10:42:16]line Счет N : (1)220164 [10:42:16]line ИНН: 02508201610067 [10:42:16]line Контрольно-Кассовый Чек [10:42:16]line ПРОДАЖА [10:42:16]line ТРК (МРК, ГНК) : 24 [10:42:16]line Товар: 2710124500 [10:42:16]line Аи-95-К-5 [10:42:16]line 20.330 * 74.20 [10:42:16]line = 1508.49 [10:42:16]line НДС 12% НСП 1% [10:42:16]line > о реализуемом товаре [10:42:16]line ОКРУГЛЕНИЕ: -0.49 [10:42:16]line ИТОГО: 1508.00 [10:42:16]line Внесено: 1508.00 [10:42:16]line СДАЧА: 0.00 [10:42:16]line НСП 1% : 13.35 [10:42:16]line НДС 12% : 160.19 [10:42:16]line Наличными: 1508.00 [10:42:16]line Безнал.: 0.00 [10:42:16]line Место: АЗС № 161 "Партнер Нефть" [10:42:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:42:16]line СНО: Общий режим [10:42:16]line Чек 84 20.10.2024 10:42 [10:42:16]line Смена: 534 ФФД: 1.0 [10:42:16]line ЗНМ: 0300000104 [10:42:16]line РНМ: 0000000000091764 [10:42:16]line Версия ККМ: 001 [10:42:16]line ФМ: 0000000000871759 [10:42:16]line ФД: 165602 [10:42:16]line ФПД: 197498232007489 [10:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165602&fm=197498232007489&tin=02508201610067®Number=0000000000091764&sum=150800 [10:42:17]OFD Sender: Processing packet 165602 [packets to send 48, broken 47] [10:42:17]ProducePacketName [10:42:17]name=ofd_packets/00165602 [10:42:17]OFD Sender: To server: pG, [10:42:17]CommunicateWithHost lk.salyk.kg:30040 [10:42:17]ConnectInit lk.salyk.kg [10:42:17]written 0, free lines is 4095 [10:42:17]Connected sock=10 [10:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 57 62 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6A 4F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 41 4D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 3E 00 00 00 00 07 04 06 00 10 4D 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 93 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 86 02 00 35 04 06 00 B3 9F A3 F6 6B 41 C6 0B C9 82 6B 0E 5F 93 [10:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 91 CE 47 00 83 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 31 37 35 39 10 04 04 00 E2 86 02 00 F4 03 04 00 05 85 14 67 B6 04 01 00 00 1D 4C 7F 81 BE 05 79 ED [10:42:17]CommunicateWithHost err = 0 [10:42:17]CheckOFDResponse [10:42:17]1017 (14) - 77093643461234 [10:42:17]1041 (16) - 0000000000871759 [10:42:17]1040 (4) - 165602 [10:42:17]1012 (4) - 20.10.2024 04:20 [10:42:17]1206 (1) - 0 [10:42:17]OFD Sender: Remove packet 165602 [10:42:17]ProducePacketName [10:42:17]name=ofd_packets/00165602 [10:42:17]NVStorageDeleteData [10:42:17]Write to MH i2c: 01 00 00 4A D4 1E [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 07 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 07 00 4A D4 00 00 00 00 00 CD 0C FE [10:42:17]RasterBufferAndPrint [10:42:17]line [10:42:17]line [10:42:17]line [10:42:17]line [10:42:17]line [10:42:17]written 0, free lines is 3283 [10:42:17]MH_Cut [10:42:17]Write to MH i2c: D1 01 00 51 D4 01 F7 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: D1 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: D1 01 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: D1 01 00 51 D4 00 F6 [10:42:17]Write to MH i2c: 01 00 00 52 D4 26 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:18]OFD Sender: No OFD packet to send [10:42:18]*** Cut start [10:42:18]*** Partial cut [10:42:18]*** CUTSNS_PIN = 1 [10:42:18]*** CUTSNS_PIN = 0 [10:42:18]*** Brake cut motor [10:42:19]Read from MH i2c: 01 [10:42:19]MH_I2C_Read... [10:42:19]*** Stop cut motor [10:42:19]*** Cut end [10:42:19]Read from MH i2c: 01 07 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: 01 07 00 52 D4 00 00 00 00 00 FF 0F 3B [10:42:19]process_action close_receipt done [10:42:19]requested_data is exist [10:42:19]produce_requested_data [10:42:19]requested_item fm.sn is exist - process it [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 11 00 00 [10:42:19]Write to MH i2c: E2 08 00 53 D4 80 11 00 00 00 00 00 00 A1 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 17 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 17 00 53 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [10:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:42:19]wFMCommunicate OK [10:42:19]requested_item fd.num is exist - process it [10:42:19]SAM_PROTO_GetFieldsCounters [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 13 00 00 [10:42:19]Write to MH i2c: E2 08 00 54 D4 80 13 00 00 00 00 00 00 A4 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 62 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 62 00 54 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [10:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:19]wFMCommunicate OK [10:42:19]SAM_PROTO_GetFieldsCounters done [10:42:19]requested_item shift.num is exist - process it [10:42:19]requested_item shift.opened is exist - process it [10:42:19]req_shift_opened [10:42:19]FM_GetShiftState [10:42:19]SAM_PROTO_GetShiftState [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 13 01 00 [10:42:19]Write to MH i2c: E2 08 00 55 D4 80 13 01 00 00 00 00 00 A6 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 0E 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 0E 00 55 D4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EE [10:42:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:42:19]wFMCommunicate OK [10:42:19]SAM_PROTO_GetShiftState done [10:42:19]FM_GetShiftState done [10:42:19]req_shift_opened done [10:42:19]requested_item shift.open_date is exist - process it [10:42:19]req_shift_open_date [10:42:19]req_shift_open_date done [10:42:19]produce_requested_data done [10:42:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165602,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:42:19]process_action_free close_receipt [10:42:19]json_value_free [10:42:19]json_value_free done [10:42:19]process_json_proto returns [10:42:19]Send response to host [10:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165602,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:42:19]free response buf [10:42:19]execute_script done [10:42:19]execute_script returns [10:42:19]free content buf [10:42:19]Sock 7.Close socket [10:42:19]Sock 7.Thread stoped [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:31]accept exits with 9 [10:42:31]New connection [10:42:31]New thread 3066920292 created [10:42:31]Thread 3066776932 joined [10:42:31]Waiting for new connection... [10:42:31] Sock 9.Parse request [10:42:31]Sock 9.Check first char [10:42:31]Sock 9.First char is OK [10:42:31]request: POST /json_proto HTTP/1.0 [10:42:31]Method: POST [10:42:31]URL: /json_proto [10:42:31]Method is POST - this is cgi request [10:42:31]url: /json_proto [10:42:31]query_string will be loaded in cgi processing [10:42:31]execute_cgi json_proto POST (null) [10:42:31]execute_cgi path=json_proto method=POST [10:42:31]POST find Content-Length [10:42:31]Host: 172.17.53.195:8080 [10:42:31]Content-Length: 682 [10:42:31]Content-Type: application/json [10:42:31] [10:42:31]POST finish read [10:42:31]Found Content-Length = 682 [10:42:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:42:31]execute_script... [10:42: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)220160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:42:31]POST & json_proto [10:42:31]process_json_proto [10:42:31]json parsed OK: [10:42:31]protocol is kg_v1.0 [10:42:31]action value=close_receipt [10:42:31]process_action close_receipt [10:42:31]cmd_close_receipt [10:42:31]MH_GetDate [10:42:31]Write to MH i2c: F0 00 00 56 D4 19 [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: F0 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: F0 09 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: F0 09 00 56 D4 00 A3 DE 14 67 21 48 4A 65 36 [10:42:31]GetLastDocTimeStamp 1729420947 [10:42:31]current date 1729420963 [10:42:31]FM_GetShiftState [10:42:31]SAM_PROTO_GetShiftState [10:42:31]wFMCommunicate request_size=4 [10:42:31]MH_SAM_APDU [10:42:31]CAPDU: 80 13 01 00 [10:42:31]Write to MH i2c: E2 08 00 57 D4 80 13 01 00 00 00 00 00 A8 [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:31]Read from MH i2c: E2 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 0E 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 0E 00 57 D4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F0 [10:42:31]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:42:31]wFMCommunicate OK [10:42:31]SAM_PROTO_GetShiftState done [10:42:31]FM_GetShiftState done [10:42:31]opened in 1729384561 [10:42:31]opened+sec_in_day 1729470961 [10:42:31]quantity*price = 200043 [10:42:31]sum+1 = 200044 [10:42:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 85 20.10.2024 10:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165603 ФПД: 199476331724986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104243&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165603&fm=199476331724986&tin=02508201610067®Number=0000000000091764&sum=200000 [10:42:32]StoreToDocumentArchive [10:42:32]shift 534 fd 165603 [10:42:32]save to /storage/0534/doc_00165603 [10:42:32]save last doc name /storage/0534/doc_00165603 to /storage/kkm_last_doc_name [10:42:32]save OK [10:42:32]Clear old archive folders... [10:42:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:32]tlvbuf is 0157ECE0 [10:42:32]SAM_PROTO_ClearQueue [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 09 00 00 [10:42:32]Write to MH i2c: E2 08 00 64 D4 80 09 00 00 00 00 00 00 AA [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 64 D4 00 90 00 AC [10:42:32]RAPDU: 90 00 [10:42:32]wFMCommunicate OK [10:42:32]SAM_PROTO_ClearQueue done [10:42:32]KKMCreateOFDPacket [10:42:32]OFDProtocolAddRootSTLVToBuf [10:42:32]FM_MakeSignedData [10:42:32]FM_MakeSignedData [10:42:32]SAM_PROTO_SignData [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 0D 01 02 [10:42:32]Write to MH i2c: E2 08 00 65 D4 80 0D 01 02 00 00 00 00 B2 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 65 D4 00 90 00 AD [10:42:32]RAPDU: 90 00 [10:42:32]wFMCommunicate OK [10:42:32]wFMCommunicate request_size=255 [10:42:32]MH_SAM_APDU [10:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 55 00 00 00 F4 03 04 00 A3 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 86 02 00 35 04 06 00 B5 [10:42:32]Write to MH i2c: E2 02 01 66 D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 55 00 00 00 F4 03 04 00 A3 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 86 02 00 35 04 06 00 B5 00 00 79 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 66 D4 00 90 00 AE [10:42:32]RAPDU: 90 00 [10:42:32]wFMCommunicate OK [10:42:32]wFMCommunicate request_size=10 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 0D 02 02 05 6C 33 E4 C0 BA [10:42:32]Write to MH i2c: E2 0D 00 67 D4 80 0D 02 02 05 00 6C 33 E4 C0 BA 00 00 BC [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 67 D4 00 90 00 AF [10:42:32]RAPDU: 90 00 [10:42:32]wFMCommunicate OK [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 0D 03 02 [10:42:32]Write to MH i2c: E2 08 00 68 D4 80 0D 03 02 00 00 00 00 B7 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 0B 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 0B 00 68 D4 00 2B 95 92 77 92 ED DA 12 90 00 EC [10:42:32]RAPDU: 2B 95 92 77 92 ED DA 12 90 00 [10:42:32]wFMCommunicate OK [10:42:32]SAM_PROTO_SignData done [10:42:32]FM_MakeSignedData done [10:42:32]CreateOFDProtocolMessage [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 11 00 00 [10:42:32]Write to MH i2c: E2 08 00 69 D4 80 11 00 00 00 00 00 00 B7 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 17 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 17 00 69 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [10:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:42:32]wFMCommunicate OK [10:42:32]CreateOFDProtocolMessage done [10:42:32]OFDSenderStorePacket 165603 [10:42:32]StoreOFDPacket docnum=165603 [10:42:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA 03 07 01 FB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 55 00 00 00 F4 03 04 00 A3 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 86 02 00 35 04 06 00 B5 6C 33 E4 C0 BA 2B 95 92 77 92 ED DA 12 [10:42:32]CheckFolder [10:42:32]dirname=/storage/ofd_packets [10:42:32]CheckFolder done [10:42:32]ProducePacketName [10:42:32]name=ofd_packets/00165603 [10:42:32]NVStorageSaveData ofd_packets/00165603 [10:42:32]File name is /storage/ofd_packets/00165603 [10:42:32]Write 301 bytes [10:42:32]NVStorageSaveData done [10:42:32]OFDSenderStorePacket done [10:42:32]KKMCreateOFDPacket done [10:42:32]NVStorageSaveData kkm_last_timestamp [10:42:32]File name is /storage/kkm_last_timestamp [10:42:32]Write 4 bytes [10:42:32]NVStorageSaveData done [10:42:32]ExternCall_PrintAddStr [10:42:32]wPrintStart [10:42:32]Write to MH i2c: 01 00 00 6A D4 3E [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: 01 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: 01 07 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: 01 07 00 6A D4 00 00 00 00 00 FF 0F 53 [10:42:32]RasterBufferAndPrint [10:42:32]line Счет N : (1)220160 [10:42:32]line ИНН: 02508201610067 [10:42:32]line Контрольно-Кассовый Чек [10:42:32]line ПРОДАЖА [10:42:32]line ТРК (МРК, ГНК) : 14 [10:42:32]line Товар: 2710124500 [10:42:32]line Аи-95-К-5 [10:42:32]line 26.960 * 74.20 [10:42:32]line = 2000.43 [10:42:32]line НДС 12% НСП 1% [10:42:32]line > о реализуемом товаре [10:42:32]line ОКРУГЛЕНИЕ: -0.43 [10:42:32]line ИТОГО: 2000.00 [10:42:32]line Внесено: 2000.00 [10:42:32]line СДАЧА: 0.00 [10:42:32]line НСП 1% : 17.70 [10:42:32]line НДС 12% : 212.43 [10:42:32]line Наличными: 2000.00 [10:42:32]line Безнал.: 0.00 [10:42:32]line Место: АЗС № 161 "Партнер Нефть" [10:42:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:42:32]line СНО: Общий режим [10:42:32]line Чек 85 20.10.2024 10:42 [10:42:32]line Смена: 534 ФФД: 1.0 [10:42:32]line ЗНМ: 0300000104 [10:42:32]line РНМ: 0000000000091764 [10:42:32]line Версия ККМ: 001 [10:42:32]line ФМ: 0000000000871759 [10:42:32]line ФД: 165603 [10:42:32]line ФПД: 199476331724986 [10:42:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104243&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165603&fm=199476331724986&tin=02508201610067®Number=0000000000091764&sum=200000 [10:42:33]OFD Sender: Processing packet 165603 [packets to send 48, broken 47] [10:42:33]ProducePacketName [10:42:33]name=ofd_packets/00165603 [10:42:33]OFD Sender: To server: pG, [10:42:33]CommunicateWithHost lk.salyk.kg:30040 [10:42:33]ConnectInit lk.salyk.kg [10:42:33]written 0, free lines is 4095 [10:42:33]Connected sock=10 [10:42:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA 03 07 01 FB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 55 00 00 00 F4 03 04 00 A3 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 86 02 00 35 04 06 00 B5 6C 33 E4 C0 BA 2B 95 92 77 92 ED DA 12 [10:42:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EA 7A 47 00 53 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 86 02 00 F4 03 04 00 15 85 14 67 B6 04 01 00 00 1E 13 CF 7B F0 E1 62 E9 [10:42:33]CommunicateWithHost err = 0 [10:42:33]CheckOFDResponse [10:42:33]1017 (14) - 77093643461234 [10:42:33]1041 (16) - 0000000000871759 [10:42:33]1040 (4) - 165603 [10:42:33]1012 (4) - 20.10.2024 04:20 [10:42:33]1206 (1) - 0 [10:42:33]OFD Sender: Remove packet 165603 [10:42:33]ProducePacketName [10:42:33]name=ofd_packets/00165603 [10:42:33]NVStorageDeleteData [10:42:33]Write to MH i2c: 01 00 00 95 D4 69 [10:42:33]Write i2c OK [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: 01 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: 01 07 00 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: 01 07 00 95 D4 00 00 00 00 00 DC 0C 58 [10:42:33]RasterBufferAndPrint [10:42:33]line [10:42:33]line [10:42:33]line [10:42:33]line [10:42:33]line [10:42:33]written 0, free lines is 3300 [10:42:33]MH_Cut [10:42:33]Write to MH i2c: D1 01 00 9C D4 01 42 [10:42:33]Write i2c OK [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: D1 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: D1 01 00 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: D1 01 00 9C D4 00 41 [10:42:33]Write to MH i2c: 01 00 00 9D D4 71 [10:42:33]Write i2c OK [10:42:33]MH_I2C_Read... [10:42:33]OFD Sender: No OFD packet to send [10:42:34]*** Cut start [10:42:34]*** Partial cut [10:42:34]*** CUTSNS_PIN = 1 [10:42:34]*** CUTSNS_PIN = 0 [10:42:34]*** Brake cut motor [10:42:35]Read from MH i2c: 01 [10:42:35]MH_I2C_Read... [10:42:35]*** Stop cut motor [10:42:35]*** Cut end [10:42:35]Read from MH i2c: 01 07 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: 01 07 00 9D D4 00 00 00 00 00 FF 0F 86 [10:42:35]process_action close_receipt done [10:42:35]requested_data is exist [10:42:35]produce_requested_data [10:42:35]requested_item fm.sn is exist - process it [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 11 00 00 [10:42:35]Write to MH i2c: E2 08 00 9E D4 80 11 00 00 00 00 00 00 EC [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 17 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 17 00 9E D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [10:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:42:35]wFMCommunicate OK [10:42:35]requested_item fd.num is exist - process it [10:42:35]SAM_PROTO_GetFieldsCounters [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 13 00 00 [10:42:35]Write to MH i2c: E2 08 00 9F D4 80 13 00 00 00 00 00 00 EF [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 62 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 62 00 9F D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:42:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:35]wFMCommunicate OK [10:42:35]SAM_PROTO_GetFieldsCounters done [10:42:35]requested_item shift.num is exist - process it [10:42:35]requested_item shift.opened is exist - process it [10:42:35]req_shift_opened [10:42:35]FM_GetShiftState [10:42:35]SAM_PROTO_GetShiftState [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 13 01 00 [10:42:35]Write to MH i2c: E2 08 00 A0 D4 80 13 01 00 00 00 00 00 F1 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 0E 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 0E 00 A0 D4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 39 [10:42:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:42:35]wFMCommunicate OK [10:42:35]SAM_PROTO_GetShiftState done [10:42:35]FM_GetShiftState done [10:42:35]req_shift_opened done [10:42:35]requested_item shift.open_date is exist - process it [10:42:35]req_shift_open_date [10:42:35]req_shift_open_date done [10:42:35]produce_requested_data done [10:42:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165603,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:42:35]process_action_free close_receipt [10:42:35]json_value_free [10:42:35]json_value_free done [10:42:35]process_json_proto returns [10:42:35]Send response to host [10:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165603,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:42:35]free response buf [10:42:35]execute_script done [10:42:35]execute_script returns [10:42:35]free content buf [10:42:35]Sock 9.Close socket [10:42:35]Sock 9.Thread stoped [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:39]accept exits with 7 [10:43:39]New connection [10:43:39]New thread 3066776932 created [10:43:39]Thread 3066920292 joined [10:43:39]Waiting for new connection... [10:43:39] Sock 7.Parse request [10:43:39]Sock 7.Check first char [10:43:39]Sock 7.First char is OK [10:43:39]request: POST /json_proto HTTP/1.0 [10:43:39]Method: POST [10:43:39]URL: /json_proto [10:43:39]Method is POST - this is cgi request [10:43:39]url: /json_proto [10:43:39]query_string will be loaded in cgi processing [10:43:39]execute_cgi json_proto POST (null) [10:43:39]execute_cgi path=json_proto method=POST [10:43:39]POST find Content-Length [10:43:39]Host: 172.17.53.195:8080 [10:43:39]Content-Length: 679 [10:43:39]Content-Type: application/json [10:43:39] [10:43:39]POST finish read [10:43:39]Found Content-Length = 679 [10:43:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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:43:39]execute_script... [10:43: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)220165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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:43:39]POST & json_proto [10:43:39]process_json_proto [10:43:39]json parsed OK: [10:43:39]protocol is kg_v1.0 [10:43:39]action value=close_receipt [10:43:39]process_action close_receipt [10:43:39]cmd_close_receipt [10:43:39]MH_GetDate [10:43:39]Write to MH i2c: F0 00 00 A1 D4 64 [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: F0 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: F0 09 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: F0 09 00 A1 D4 00 E7 DE 14 67 21 48 4A 65 C5 [10:43:39]GetLastDocTimeStamp 1729420963 [10:43:39]current date 1729421031 [10:43:39]FM_GetShiftState [10:43:39]SAM_PROTO_GetShiftState [10:43:39]wFMCommunicate request_size=4 [10:43:39]MH_SAM_APDU [10:43:39]CAPDU: 80 13 01 00 [10:43:39]Write to MH i2c: E2 08 00 A2 D4 80 13 01 00 00 00 00 00 F3 [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:39]Read from MH i2c: E2 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 0E 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 0E 00 A2 D4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3B [10:43:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:43:39]wFMCommunicate OK [10:43:39]SAM_PROTO_GetShiftState done [10:43:39]FM_GetShiftState done [10:43:39]opened in 1729384561 [10:43:39]opened+sec_in_day 1729470961 [10:43:39]quantity*price = 200025 [10:43:39]sum+1 = 200026 [10:43:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 86 20.10.2024 10:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165604 ФПД: 82532711366839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165604&fm=82532711366839&tin=02508201610067®Number=0000000000091764&sum=200000 [10:43:40]StoreToDocumentArchive [10:43:40]shift 534 fd 165604 [10:43:40]save to /storage/0534/doc_00165604 [10:43:40]save last doc name /storage/0534/doc_00165604 to /storage/kkm_last_doc_name [10:43:40]save OK [10:43:40]Clear old archive folders... [10:43:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:43:40]tlvbuf is 015FCB00 [10:43:40]SAM_PROTO_ClearQueue [10:43:40]wFMCommunicate request_size=4 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 09 00 00 [10:43:40]Write to MH i2c: E2 08 00 AF D4 80 09 00 00 00 00 00 00 F5 [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 AF D4 00 90 00 F7 [10:43:40]RAPDU: 90 00 [10:43:40]wFMCommunicate OK [10:43:40]SAM_PROTO_ClearQueue done [10:43:40]KKMCreateOFDPacket [10:43:40]OFDProtocolAddRootSTLVToBuf [10:43:40]FM_MakeSignedData [10:43:40]FM_MakeSignedData [10:43:40]SAM_PROTO_SignData [10:43:40]wFMCommunicate request_size=4 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 0D 01 02 [10:43:40]Write to MH i2c: E2 08 00 B0 D4 80 0D 01 02 00 00 00 00 FD [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 B0 D4 00 90 00 F8 [10:43:40]RAPDU: 90 00 [10:43:40]wFMCommunicate OK [10:43:40]wFMCommunicate request_size=255 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 56 00 00 00 F4 03 04 00 E7 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 86 02 00 35 04 06 00 4B 10 24 F1 [10:43:40]Write to MH i2c: E2 02 01 B1 D4 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 56 00 00 00 F4 03 04 00 E7 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 86 02 00 35 04 06 00 4B 10 24 F1 00 00 01 [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 B1 D4 00 90 00 F9 [10:43:41]RAPDU: 90 00 [10:43:41]wFMCommunicate OK [10:43:41]wFMCommunicate request_size=7 [10:43:41]MH_SAM_APDU [10:43:41]CAPDU: 80 0D 02 02 02 80 B7 [10:43:41]Write to MH i2c: E2 0A 00 B2 D4 80 0D 02 02 02 00 80 B7 00 00 3B [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 B2 D4 00 90 00 FA [10:43:41]RAPDU: 90 00 [10:43:41]wFMCommunicate OK [10:43:41]wFMCommunicate request_size=4 [10:43:41]MH_SAM_APDU [10:43:41]CAPDU: 80 0D 03 02 [10:43:41]Write to MH i2c: E2 08 00 B3 D4 80 0D 03 02 00 00 00 00 02 [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 0B 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 0B 00 B3 D4 00 F3 87 EA F5 31 AB 71 0B 90 00 B4 [10:43:41]RAPDU: F3 87 EA F5 31 AB 71 0B 90 00 [10:43:41]wFMCommunicate OK [10:43:41]SAM_PROTO_SignData done [10:43:41]FM_MakeSignedData done [10:43:41]CreateOFDProtocolMessage [10:43:41]wFMCommunicate request_size=4 [10:43:41]MH_SAM_APDU [10:43:41]CAPDU: 80 11 00 00 [10:43:41]Write to MH i2c: E2 08 00 B4 D4 80 11 00 00 00 00 00 00 02 [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 17 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 17 00 B4 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [10:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:43:41]wFMCommunicate OK [10:43:41]CreateOFDProtocolMessage done [10:43:41]OFDSenderStorePacket 165604 [10:43:41]StoreOFDPacket docnum=165604 [10:43:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3F 8B 04 01 09 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 56 00 00 00 F4 03 04 00 E7 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 86 02 00 35 04 06 00 4B 10 24 F1 80 B7 F3 87 EA F5 31 AB 71 0B [10:43:41]CheckFolder [10:43:41]dirname=/storage/ofd_packets [10:43:41]CheckFolder done [10:43:41]ProducePacketName [10:43:41]name=ofd_packets/00165604 [10:43:41]NVStorageSaveData ofd_packets/00165604 [10:43:41]File name is /storage/ofd_packets/00165604 [10:43:41]Write 298 bytes [10:43:41]NVStorageSaveData done [10:43:41]OFDSenderStorePacket done [10:43:41]KKMCreateOFDPacket done [10:43:41]NVStorageSaveData kkm_last_timestamp [10:43:41]File name is /storage/kkm_last_timestamp [10:43:41]Write 4 bytes [10:43:41]NVStorageSaveData done [10:43:41]ExternCall_PrintAddStr [10:43:41]wPrintStart [10:43:41]Write to MH i2c: 01 00 00 B5 D4 89 [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 07 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 07 00 B5 D4 00 00 00 00 00 FF 0F 9E [10:43:41]RasterBufferAndPrint [10:43:41]line Счет N : (1)220165 [10:43:41]line ИНН: 02508201610067 [10:43:41]line Контрольно-Кассовый Чек [10:43:41]line ПРОДАЖА [10:43:41]line ТРК (МРК, ГНК) : 31 [10:43:41]line Товар: 2710194210 [10:43:41]line ДТ-К-5 [10:43:41]line 26.250 * 76.20 [10:43:41]line = 2000.25 [10:43:41]line НДС 12% НСП 1% [10:43:41]line > о реализуемом товаре [10:43:41]line ОКРУГЛЕНИЕ: -0.25 [10:43:41]line ИТОГО: 2000.00 [10:43:41]line Внесено: 2000.00 [10:43:41]line СДАЧА: 0.00 [10:43:41]line НСП 1% : 17.70 [10:43:41]line НДС 12% : 212.42 [10:43:41]line Наличными: 2000.00 [10:43:41]line Безнал.: 0.00 [10:43:41]line Место: АЗС № 161 "Партнер Нефть" [10:43:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:43:41]line СНО: Общий режим [10:43:41]line Чек 86 20.10.2024 10:43 [10:43:41]line Смена: 534 ФФД: 1.0 [10:43:41]line ЗНМ: 0300000104 [10:43:41]line РНМ: 0000000000091764 [10:43:41]line Версия ККМ: 001 [10:43:41]line ФМ: 0000000000871759 [10:43:41]line ФД: 165604 [10:43:41]line ФПД: 82532711366839 [10:43:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165604&fm=82532711366839&tin=02508201610067®Number=0000000000091764&sum=200000 [10:43:41]OFD Sender: Processing packet 165604 [packets to send 48, broken 47] [10:43:41]ProducePacketName [10:43:41]name=ofd_packets/00165604 [10:43:41]OFD Sender: To server: pG, [10:43:41]CommunicateWithHost lk.salyk.kg:30040 [10:43:41]ConnectInit lk.salyk.kg [10:43:41]written 0, free lines is 4095 [10:43:41]Connected sock=10 [10:43:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3F 8B 04 01 09 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 56 00 00 00 F4 03 04 00 E7 DE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 86 02 00 35 04 06 00 4B 10 24 F1 80 B7 F3 87 EA F5 31 AB 71 0B [10:43:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 76 8A 47 00 E3 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 86 02 00 F4 03 04 00 59 85 14 67 B6 04 01 00 00 73 96 2B F4 96 1D B8 AA [10:43:41]CommunicateWithHost err = 0 [10:43:41]CheckOFDResponse [10:43:41]1017 (14) - 77093643461234 [10:43:41]1041 (16) - 0000000000871759 [10:43:41]1040 (4) - 165604 [10:43:41]1012 (4) - 20.10.2024 04:21 [10:43:41]1206 (1) - 0 [10:43:41]OFD Sender: Remove packet 165604 [10:43:41]ProducePacketName [10:43:41]name=ofd_packets/00165604 [10:43:41]NVStorageDeleteData [10:43:42]Write to MH i2c: 01 00 00 E0 D4 B4 [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: 01 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: 01 07 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: 01 07 00 E0 D4 00 00 00 00 00 CA 0C 91 [10:43:42]RasterBufferAndPrint [10:43:42]line [10:43:42]line [10:43:42]line [10:43:42]line [10:43:42]line [10:43:42]written 0, free lines is 3280 [10:43:42]MH_Cut [10:43:42]Write to MH i2c: D1 01 00 E7 D4 01 8D [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: D1 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: D1 01 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: D1 01 00 E7 D4 00 8C [10:43:42]Write to MH i2c: 01 00 00 E8 D4 BC [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]OFD Sender: No OFD packet to send [10:43:42]*** Cut start [10:43:42]*** Partial cut [10:43:42]*** CUTSNS_PIN = 1 [10:43:42]*** CUTSNS_PIN = 0 [10:43:43]*** Brake cut motor [10:43:43]Read from MH i2c: 01 [10:43:43]MH_I2C_Read... [10:43:43]*** Stop cut motor [10:43:43]*** Cut end [10:43:43]Read from MH i2c: 01 07 00 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: 01 07 00 E8 D4 00 00 00 00 00 FF 0F D1 [10:43:43]process_action close_receipt done [10:43:43]requested_data is exist [10:43:43]produce_requested_data [10:43:43]requested_item fm.sn is exist - process it [10:43:43]wFMCommunicate request_size=4 [10:43:43]MH_SAM_APDU [10:43:43]CAPDU: 80 11 00 00 [10:43:43]Write to MH i2c: E2 08 00 E9 D4 80 11 00 00 00 00 00 00 37 [10:43:43]Write i2c OK [10:43:43]MH_I2C_Read... [10:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:43]Read from MH i2c: E2 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 17 00 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 17 00 E9 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [10:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:43:43]wFMCommunicate OK [10:43:43]requested_item fd.num is exist - process it [10:43:43]SAM_PROTO_GetFieldsCounters [10:43:43]wFMCommunicate request_size=4 [10:43:43]MH_SAM_APDU [10:43:43]CAPDU: 80 13 00 00 [10:43:43]Write to MH i2c: E2 08 00 EA D4 80 13 00 00 00 00 00 00 3A [10:43:43]Write i2c OK [10:43:43]MH_I2C_Read... [10:43:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:43]Read from MH i2c: E2 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 62 00 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 62 00 EA D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:43:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:43]wFMCommunicate OK [10:43:43]SAM_PROTO_GetFieldsCounters done [10:43:43]requested_item shift.num is exist - process it [10:43:43]requested_item shift.opened is exist - process it [10:43:43]req_shift_opened [10:43:43]FM_GetShiftState [10:43:43]SAM_PROTO_GetShiftState [10:43:43]wFMCommunicate request_size=4 [10:43:43]MH_SAM_APDU [10:43:43]CAPDU: 80 13 01 00 [10:43:43]Write to MH i2c: E2 08 00 EB D4 80 13 01 00 00 00 00 00 3C [10:43:43]Write i2c OK [10:43:43]MH_I2C_Read... [10:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:43]Read from MH i2c: E2 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 0E 00 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 0E 00 EB D4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 84 [10:43:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:43:43]wFMCommunicate OK [10:43:43]SAM_PROTO_GetShiftState done [10:43:43]FM_GetShiftState done [10:43:43]req_shift_opened done [10:43:43]requested_item shift.open_date is exist - process it [10:43:43]req_shift_open_date [10:43:43]req_shift_open_date done [10:43:43]produce_requested_data done [10:43:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165604,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:43:43]process_action_free close_receipt [10:43:43]json_value_free [10:43:43]json_value_free done [10:43:43]process_json_proto returns [10:43:43]Send response to host [10:43:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165604,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:43:43]free response buf [10:43:43]execute_script done [10:43:43]execute_script returns [10:43:43]free content buf [10:43:43]Sock 7.Close socket [10:43:43]Sock 7.Thread stoped [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:25]accept exits with 9 [10:44:25]New connection [10:44:25]New thread 3066920292 created [10:44:25]Thread 3066776932 joined [10:44:25]Waiting for new connection... [10:44:25] Sock 9.Parse request [10:44:25]Sock 9.Check first char [10:44:25]Sock 9.First char is OK [10:44:25]request: POST /json_proto HTTP/1.0 [10:44:25]Method: POST [10:44:25]URL: /json_proto [10:44:25]Method is POST - this is cgi request [10:44:25]url: /json_proto [10:44:25]query_string will be loaded in cgi processing [10:44:25]execute_cgi json_proto POST (null) [10:44:25]execute_cgi path=json_proto method=POST [10:44:25]POST find Content-Length [10:44:25]Host: 172.17.53.195:8080 [10:44:25]Content-Length: 677 [10:44:25]Content-Type: application/json [10:44:25] [10:44:25]POST finish read [10:44:25]Found Content-Length = 677 [10:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:25]execute_script... [10: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)220167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:25]POST & json_proto [10:44:25]process_json_proto [10:44:25]json parsed OK: [10:44:25]protocol is kg_v1.0 [10:44:25]action value=close_receipt [10:44:25]process_action close_receipt [10:44:25]cmd_close_receipt [10:44:25]MH_GetDate [10:44:25]Write to MH i2c: F0 00 00 EC D4 AF [10:44:25]Write i2c OK [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: F0 [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: F0 09 00 [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: F0 09 00 EC D4 00 15 DF 14 67 21 48 4A 65 3F [10:44:25]GetLastDocTimeStamp 1729421031 [10:44:25]current date 1729421077 [10:44:25]FM_GetShiftState [10:44:25]SAM_PROTO_GetShiftState [10:44:25]wFMCommunicate request_size=4 [10:44:25]MH_SAM_APDU [10:44:25]CAPDU: 80 13 01 00 [10:44:25]Write to MH i2c: E2 08 00 ED D4 80 13 01 00 00 00 00 00 3E [10:44:25]Write i2c OK [10:44:25]MH_I2C_Read... [10:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:25]Read from MH i2c: E2 [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: E2 0E 00 [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: E2 0E 00 ED D4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 86 [10:44:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:44:25]wFMCommunicate OK [10:44:25]SAM_PROTO_GetShiftState done [10:44:25]FM_GetShiftState done [10:44:25]opened in 1729384561 [10:44:25]opened+sec_in_day 1729470961 [10:44:25]quantity*price = 40006 [10:44:25]sum+1 = 40007 [10:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 87 20.10.2024 10:44 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165605 ФПД: 155662325798720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104437&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165605&fm=155662325798720&tin=02508201610067®Number=0000000000091764&sum=40000 [10:44:26]StoreToDocumentArchive [10:44:26]shift 534 fd 165605 [10:44:26]save to /storage/0534/doc_00165605 [10:44:26]save last doc name /storage/0534/doc_00165605 to /storage/kkm_last_doc_name [10:44:26]save OK [10:44:26]Clear old archive folders... [10:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:26]tlvbuf is 015E9690 [10:44:26]SAM_PROTO_ClearQueue [10:44:26]wFMCommunicate request_size=4 [10:44:26]MH_SAM_APDU [10:44:26]CAPDU: 80 09 00 00 [10:44:26]Write to MH i2c: E2 08 00 FA D4 80 09 00 00 00 00 00 00 40 [10:44:26]Write i2c OK [10:44:26]MH_I2C_Read... [10:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:26]Read from MH i2c: E2 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 03 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 FA D4 00 90 00 42 [10:44:27]RAPDU: 90 00 [10:44:27]wFMCommunicate OK [10:44:27]SAM_PROTO_ClearQueue done [10:44:27]KKMCreateOFDPacket [10:44:27]OFDProtocolAddRootSTLVToBuf [10:44:27]FM_MakeSignedData [10:44:27]FM_MakeSignedData [10:44:27]SAM_PROTO_SignData [10:44:27]wFMCommunicate request_size=4 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 0D 01 02 [10:44:27]Write to MH i2c: E2 08 00 FB D4 80 0D 01 02 00 00 00 00 48 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 FB D4 00 90 00 43 [10:44:27]RAPDU: 90 00 [10:44:27]wFMCommunicate OK [10:44:27]wFMCommunicate request_size=255 [10:44:27]MH_SAM_APDU [10:44: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 15 DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 86 02 00 35 04 06 00 8D [10:44:27]Write to MH i2c: E2 02 01 FC D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 15 DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 86 02 00 35 04 06 00 8D 00 00 85 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 FC D4 00 90 00 44 [10:44:27]RAPDU: 90 00 [10:44:27]wFMCommunicate OK [10:44:27]wFMCommunicate request_size=10 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 0D 02 02 05 92 F5 A2 57 40 [10:44:27]Write to MH i2c: E2 0D 00 FD D4 80 0D 02 02 05 00 92 F5 A2 57 40 00 00 15 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 FD D4 00 90 00 45 [10:44:27]RAPDU: 90 00 [10:44:27]wFMCommunicate OK [10:44:27]wFMCommunicate request_size=4 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 0D 03 02 [10:44:27]Write to MH i2c: E2 08 00 FE D4 80 0D 03 02 00 00 00 00 4D [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 0B 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 0B 00 FE D4 00 1E 74 02 35 AA 21 AC 5E 90 00 EC [10:44:27]RAPDU: 1E 74 02 35 AA 21 AC 5E 90 00 [10:44:27]wFMCommunicate OK [10:44:27]SAM_PROTO_SignData done [10:44:27]FM_MakeSignedData done [10:44:27]CreateOFDProtocolMessage [10:44:27]wFMCommunicate request_size=4 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 11 00 00 [10:44:27]Write to MH i2c: E2 08 00 FF D4 80 11 00 00 00 00 00 00 4D [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 17 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 17 00 FF D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [10:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:44:27]wFMCommunicate OK [10:44:27]CreateOFDProtocolMessage done [10:44:27]OFDSenderStorePacket 165605 [10:44:27]StoreOFDPacket docnum=165605 [10:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7C 38 07 01 F9 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 15 DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 86 02 00 35 04 06 00 8D 92 F5 A2 57 40 1E 74 02 35 AA 21 AC 5E [10:44:27]CheckFolder [10:44:27]dirname=/storage/ofd_packets [10:44:27]CheckFolder done [10:44:27]ProducePacketName [10:44:27]name=ofd_packets/00165605 [10:44:27]NVStorageSaveData ofd_packets/00165605 [10:44:27]File name is /storage/ofd_packets/00165605 [10:44:27]Write 301 bytes [10:44:27]NVStorageSaveData done [10:44:27]OFDSenderStorePacket done [10:44:27]KKMCreateOFDPacket done [10:44:27]NVStorageSaveData kkm_last_timestamp [10:44:27]File name is /storage/kkm_last_timestamp [10:44:27]Write 4 bytes [10:44:27]NVStorageSaveData done [10:44:27]ExternCall_PrintAddStr [10:44:27]wPrintStart [10:44:27]Write to MH i2c: 01 00 00 00 D5 D5 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 07 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 07 00 00 D5 00 00 00 00 00 FF 0F EA [10:44:27]RasterBufferAndPrint [10:44:27]line Счет N : (1)220167 [10:44:27]line ИНН: 02508201610067 [10:44:27]line Контрольно-Кассовый Чек [10:44:27]line ПРОДАЖА [10:44:27]line ТРК (МРК, ГНК) : 23 [10:44:27]line Товар: 2710124130 [10:44:27]line Аи-92-К-5 [10:44:27]line 5.980 * 66.90 [10:44:27]line = 400.06 [10:44:27]line НДС 12% НСП 1% [10:44:27]line > о реализуемом товаре [10:44:27]line ОКРУГЛЕНИЕ: -0.06 [10:44:27]line ИТОГО: 400.00 [10:44:27]line Внесено: 400.00 [10:44:27]line СДАЧА: 0.00 [10:44:27]line НСП 1% : 3.54 [10:44:27]line НДС 12% : 42.48 [10:44:27]line Наличными: 400.00 [10:44:27]line Безнал.: 0.00 [10:44:27]line Место: АЗС № 161 "Партнер Нефть" [10:44:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:44:27]line СНО: Общий режим [10:44:27]line Чек 87 20.10.2024 10:44 [10:44:27]line Смена: 534 ФФД: 1.0 [10:44:27]line ЗНМ: 0300000104 [10:44:27]line РНМ: 0000000000091764 [10:44:27]line Версия ККМ: 001 [10:44:27]line ФМ: 0000000000871759 [10:44:27]line ФД: 165605 [10:44:27]line ФПД: 155662325798720 [10:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104437&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165605&fm=155662325798720&tin=02508201610067®Number=0000000000091764&sum=40000 [10:44:27]OFD Sender: Processing packet 165605 [packets to send 48, broken 47] [10:44:27]ProducePacketName [10:44:27]name=ofd_packets/00165605 [10:44:27]OFD Sender: To server: pG, [10:44:27]CommunicateWithHost lk.salyk.kg:30040 [10:44:27]ConnectInit lk.salyk.kg [10:44:27]written 0, free lines is 4095 [10:44:27]Connected sock=11 [10: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 31 37 35 39 0F 01 00 00 7C 38 07 01 F9 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 15 DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 86 02 00 35 04 06 00 8D 92 F5 A2 57 40 1E 74 02 35 AA 21 AC 5E [10:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EE 90 47 00 B2 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 31 37 35 39 10 04 04 00 E5 86 02 00 F4 03 04 00 87 85 14 67 B6 04 01 00 00 2E 8E C7 5C 55 8D CE 2C [10:44:28]CommunicateWithHost err = 0 [10:44:28]CheckOFDResponse [10:44:28]1017 (14) - 77093643461234 [10:44:28]1041 (16) - 0000000000871759 [10:44:28]1040 (4) - 165605 [10:44:28]1012 (4) - 20.10.2024 04:22 [10:44:28]1206 (1) - 0 [10:44:28]OFD Sender: Remove packet 165605 [10:44:28]ProducePacketName [10:44:28]name=ofd_packets/00165605 [10:44:28]NVStorageDeleteData [10:44:28]Write to MH i2c: 01 00 00 2B D5 00 [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: 01 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: 01 07 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: 01 07 00 2B D5 00 00 00 00 00 D0 0C E3 [10:44:28]RasterBufferAndPrint [10:44:28]line [10:44:28]line [10:44:28]line [10:44:28]line [10:44:28]line [10:44:28]written 0, free lines is 3288 [10:44:28]MH_Cut [10:44:28]Write to MH i2c: D1 01 00 32 D5 01 D9 [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: D1 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: D1 01 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: D1 01 00 32 D5 00 D8 [10:44:28]Write to MH i2c: 01 00 00 33 D5 08 [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]OFD Sender: No OFD packet to send [10:44:29]*** Cut start [10:44:29]*** Partial cut [10:44:29]*** CUTSNS_PIN = 1 [10:44:29]*** CUTSNS_PIN = 0 [10:44:29]*** Brake cut motor [10:44:29]Read from MH i2c: 01 [10:44:29]MH_I2C_Read... [10:44:29]*** Stop cut motor [10:44:29]*** Cut end [10:44:29]Read from MH i2c: 01 07 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 07 00 33 D5 00 00 00 00 00 FF 0F 1D [10:44:29]process_action close_receipt done [10:44:29]requested_data is exist [10:44:29]produce_requested_data [10:44:29]requested_item fm.sn is exist - process it [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 11 00 00 [10:44:29]Write to MH i2c: E2 08 00 34 D5 80 11 00 00 00 00 00 00 83 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 17 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 17 00 34 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [10:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:44:29]wFMCommunicate OK [10:44:29]requested_item fd.num is exist - process it [10:44:29]SAM_PROTO_GetFieldsCounters [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 13 00 00 [10:44:29]Write to MH i2c: E2 08 00 35 D5 80 13 00 00 00 00 00 00 86 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 62 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 62 00 35 D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_GetFieldsCounters done [10:44:29]requested_item shift.num is exist - process it [10:44:29]requested_item shift.opened is exist - process it [10:44:29]req_shift_opened [10:44:29]FM_GetShiftState [10:44:29]SAM_PROTO_GetShiftState [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 13 01 00 [10:44:29]Write to MH i2c: E2 08 00 36 D5 80 13 01 00 00 00 00 00 88 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0E 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0E 00 36 D5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D0 [10:44:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_GetShiftState done [10:44:29]FM_GetShiftState done [10:44:29]req_shift_opened done [10:44:29]requested_item shift.open_date is exist - process it [10:44:29]req_shift_open_date [10:44:29]req_shift_open_date done [10:44:29]produce_requested_data done [10:44:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165605,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:44:29]process_action_free close_receipt [10:44:29]json_value_free [10:44:29]json_value_free done [10:44:29]process_json_proto returns [10:44:29]Send response to host [10:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165605,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:44:29]free response buf [10:44:29]execute_script done [10:44:29]execute_script returns [10:44:29]free content buf [10:44:29]Sock 9.Close socket [10:44:29]Sock 9.Thread stoped [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:10]accept exits with 7 [10:46:10]New connection [10:46:10]New thread 3066776932 created [10:46:10]Thread 3066920292 joined [10:46:10]Waiting for new connection... [10:46:10] Sock 7.Parse request [10:46:10]Sock 7.Check first char [10:46:10]Sock 7.First char is OK [10:46:10]request: POST /json_proto HTTP/1.0 [10:46:10]Method: POST [10:46:10]URL: /json_proto [10:46:10]Method is POST - this is cgi request [10:46:10]url: /json_proto [10:46:10]query_string will be loaded in cgi processing [10:46:10]execute_cgi json_proto POST (null) [10:46:10]execute_cgi path=json_proto method=POST [10:46:10]POST find Content-Length [10:46:10]Host: 172.17.53.195:8080 [10:46:10]Content-Length: 682 [10:46:10]Content-Type: application/json [10:46:10] [10:46:10]POST finish read [10:46:10]Found Content-Length = 682 [10:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:10]execute_script... [10:46: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)220166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:10]POST & json_proto [10:46:10]process_json_proto [10:46:10]json parsed OK: [10:46:10]protocol is kg_v1.0 [10:46:10]action value=close_receipt [10:46:10]process_action close_receipt [10:46:10]cmd_close_receipt [10:46:10]MH_GetDate [10:46:10]Write to MH i2c: F0 00 00 37 D5 FB [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: F0 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: F0 09 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: F0 09 00 37 D5 00 7E DF 14 67 21 48 4A 65 F4 [10:46:10]GetLastDocTimeStamp 1729421077 [10:46:10]current date 1729421182 [10:46:10]FM_GetShiftState [10:46:10]SAM_PROTO_GetShiftState [10:46:10]wFMCommunicate request_size=4 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 13 01 00 [10:46:10]Write to MH i2c: E2 08 00 38 D5 80 13 01 00 00 00 00 00 8A [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 0E 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 0E 00 38 D5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D2 [10:46:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:46:10]wFMCommunicate OK [10:46:10]SAM_PROTO_GetShiftState done [10:46:10]FM_GetShiftState done [10:46:10]opened in 1729384561 [10:46:10]opened+sec_in_day 1729470961 [10:46:10]quantity*price = 199969 [10:46:10]sum+1 = 199970 [10:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.36 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 88 20.10.2024 10:46 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165606 ФПД: 203765845580223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104622&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165606&fm=203765845580223&tin=02508201610067®Number=0000000000091764&sum=199900 [10:46:11]StoreToDocumentArchive [10:46:11]shift 534 fd 165606 [10:46:11]save to /storage/0534/doc_00165606 [10:46:11]save last doc name /storage/0534/doc_00165606 to /storage/kkm_last_doc_name [10:46:11]save OK [10:46:11]Clear old archive folders... [10:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:11]tlvbuf is 015E9840 [10:46:11]SAM_PROTO_ClearQueue [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 09 00 00 [10:46:11]Write to MH i2c: E2 08 00 45 D5 80 09 00 00 00 00 00 00 8C [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 45 D5 00 90 00 8E [10:46:11]RAPDU: 90 00 [10:46:11]wFMCommunicate OK [10:46:11]SAM_PROTO_ClearQueue done [10:46:11]KKMCreateOFDPacket [10:46:11]OFDProtocolAddRootSTLVToBuf [10:46:11]FM_MakeSignedData [10:46:11]FM_MakeSignedData [10:46:11]SAM_PROTO_SignData [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 0D 01 02 [10:46:11]Write to MH i2c: E2 08 00 46 D5 80 0D 01 02 00 00 00 00 94 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 46 D5 00 90 00 8F [10:46:11]RAPDU: 90 00 [10:46:11]wFMCommunicate OK [10:46:11]wFMCommunicate request_size=255 [10:46:11]MH_SAM_APDU [10:46: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 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 7E DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 86 02 00 35 04 06 00 B9 [10:46:11]Write to MH i2c: E2 02 01 47 D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 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 7E DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 86 02 00 35 04 06 00 B9 00 00 1C [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 47 D5 00 90 00 90 [10:46:11]RAPDU: 90 00 [10:46:11]wFMCommunicate OK [10:46:11]wFMCommunicate request_size=10 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 0D 02 02 05 52 EE D7 D9 BF [10:46:11]Write to MH i2c: E2 0D 00 48 D5 80 0D 02 02 05 00 52 EE D7 D9 BF 00 00 50 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 48 D5 00 90 00 91 [10:46:11]RAPDU: 90 00 [10:46:11]wFMCommunicate OK [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 0D 03 02 [10:46:11]Write to MH i2c: E2 08 00 49 D5 80 0D 03 02 00 00 00 00 99 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 0B 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 0B 00 49 D5 00 AC DF A6 D0 13 F7 02 28 90 00 CF [10:46:12]RAPDU: AC DF A6 D0 13 F7 02 28 90 00 [10:46:12]wFMCommunicate OK [10:46:12]SAM_PROTO_SignData done [10:46:12]FM_MakeSignedData done [10:46:12]CreateOFDProtocolMessage [10:46:12]wFMCommunicate request_size=4 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 11 00 00 [10:46:12]Write to MH i2c: E2 08 00 4A D5 80 11 00 00 00 00 00 00 99 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 17 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 17 00 4A D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [10:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:46:12]wFMCommunicate OK [10:46:12]CreateOFDProtocolMessage done [10:46:12]OFDSenderStorePacket 165606 [10:46:12]StoreOFDPacket docnum=165606 [10:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 27 9F 07 01 EB 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 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 7E DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 86 02 00 35 04 06 00 B9 52 EE D7 D9 BF AC DF A6 D0 13 F7 02 28 [10:46:12]CheckFolder [10:46:12]dirname=/storage/ofd_packets [10:46:12]CheckFolder done [10:46:12]ProducePacketName [10:46:12]name=ofd_packets/00165606 [10:46:12]NVStorageSaveData ofd_packets/00165606 [10:46:12]File name is /storage/ofd_packets/00165606 [10:46:12]Write 301 bytes [10:46:12]NVStorageSaveData done [10:46:12]OFDSenderStorePacket done [10:46:12]KKMCreateOFDPacket done [10:46:12]NVStorageSaveData kkm_last_timestamp [10:46:12]File name is /storage/kkm_last_timestamp [10:46:12]Write 4 bytes [10:46:12]NVStorageSaveData done [10:46:12]ExternCall_PrintAddStr [10:46:12]wPrintStart [10:46:12]Write to MH i2c: 01 00 00 4B D5 20 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 4B D5 00 00 00 00 00 FF 0F 35 [10:46:12]RasterBufferAndPrint [10:46:12]line Счет N : (1)220166 [10:46:12]line ИНН: 02508201610067 [10:46:12]line Контрольно-Кассовый Чек [10:46:12]line ПРОДАЖА [10:46:12]line ТРК (МРК, ГНК) : 44 [10:46:12]line Товар: 2710124500 [10:46:12]line Аи-95-К-5 [10:46:12]line 26.950 * 74.20 [10:46:12]line = 1999.69 [10:46:12]line НДС 12% НСП 1% [10:46:12]line > о реализуемом товаре [10:46:12]line ОКРУГЛЕНИЕ: -0.69 [10:46:12]line ИТОГО: 1999.00 [10:46:12]line Внесено: 2000.00 [10:46:12]line СДАЧА: 1.00 [10:46:12]line НСП 1% : 17.70 [10:46:12]line НДС 12% : 212.36 [10:46:12]line Наличными: 1999.00 [10:46:12]line Безнал.: 0.00 [10:46:12]line Место: АЗС № 161 "Партнер Нефть" [10:46:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:46:12]line СНО: Общий режим [10:46:12]line Чек 88 20.10.2024 10:46 [10:46:12]line Смена: 534 ФФД: 1.0 [10:46:12]line ЗНМ: 0300000104 [10:46:12]line РНМ: 0000000000091764 [10:46:12]line Версия ККМ: 001 [10:46:12]line ФМ: 0000000000871759 [10:46:12]line ФД: 165606 [10:46:12]line ФПД: 203765845580223 [10:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104622&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165606&fm=203765845580223&tin=02508201610067®Number=0000000000091764&sum=199900 [10:46:12]OFD Sender: Processing packet 165606 [packets to send 48, broken 47] [10:46:12]ProducePacketName [10:46:12]name=ofd_packets/00165606 [10:46:12]OFD Sender: To server: pG, [10:46:12]CommunicateWithHost lk.salyk.kg:30040 [10:46:12]ConnectInit lk.salyk.kg [10:46:12]written 0, free lines is 4095 [10:46:12]Connected sock=10 [10:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 27 9F 07 01 EB 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 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 7E DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 86 02 00 35 04 06 00 B9 52 EE D7 D9 BF AC DF A6 D0 13 F7 02 28 [10:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F0 3F 47 00 94 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 31 37 35 39 10 04 04 00 E6 86 02 00 F4 03 04 00 F0 85 14 67 B6 04 01 00 00 B4 97 ED DA 3F D6 5B C8 [10:46:12]CommunicateWithHost err = 0 [10:46:12]CheckOFDResponse [10:46:12]1017 (14) - 77093643461234 [10:46:12]1041 (16) - 0000000000871759 [10:46:12]1040 (4) - 165606 [10:46:12]1012 (4) - 20.10.2024 04:24 [10:46:12]1206 (1) - 0 [10:46:12]OFD Sender: Remove packet 165606 [10:46:12]ProducePacketName [10:46:12]name=ofd_packets/00165606 [10:46:12]NVStorageDeleteData [10:46:12]Write to MH i2c: 01 00 00 76 D5 4B [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 76 D5 00 00 00 00 00 D3 0C 31 [10:46:12]RasterBufferAndPrint [10:46:12]line [10:46:12]line [10:46:12]line [10:46:12]line [10:46:12]line [10:46:12]written 0, free lines is 3289 [10:46:12]MH_Cut [10:46:12]Write to MH i2c: D1 01 00 7D D5 01 24 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: D1 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: D1 01 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: D1 01 00 7D D5 00 23 [10:46:12]Write to MH i2c: 01 00 00 7E D5 53 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:13]OFD Sender: No OFD packet to send [10:46:13]*** Cut start [10:46:13]*** Partial cut [10:46:13]*** CUTSNS_PIN = 1 [10:46:13]*** CUTSNS_PIN = 0 [10:46:13]*** Brake cut motor [10:46:14]Read from MH i2c: 01 [10:46:14]MH_I2C_Read... [10:46:14]*** Stop cut motor [10:46:14]*** Cut end [10:46:14]Read from MH i2c: 01 07 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: 01 07 00 7E D5 00 00 00 00 00 FF 0F 68 [10:46:14]process_action close_receipt done [10:46:14]requested_data is exist [10:46:14]produce_requested_data [10:46:14]requested_item fm.sn is exist - process it [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 11 00 00 [10:46:14]Write to MH i2c: E2 08 00 7F D5 80 11 00 00 00 00 00 00 CE [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 17 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 17 00 7F D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [10:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:46:14]wFMCommunicate OK [10:46:14]requested_item fd.num is exist - process it [10:46:14]SAM_PROTO_GetFieldsCounters [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 13 00 00 [10:46:14]Write to MH i2c: E2 08 00 80 D5 80 13 00 00 00 00 00 00 D1 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 62 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 62 00 80 D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:14]wFMCommunicate OK [10:46:14]SAM_PROTO_GetFieldsCounters done [10:46:14]requested_item shift.num is exist - process it [10:46:14]requested_item shift.opened is exist - process it [10:46:14]req_shift_opened [10:46:14]FM_GetShiftState [10:46:14]SAM_PROTO_GetShiftState [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 13 01 00 [10:46:14]Write to MH i2c: E2 08 00 81 D5 80 13 01 00 00 00 00 00 D3 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 0E 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 0E 00 81 D5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1B [10:46:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:46:14]wFMCommunicate OK [10:46:14]SAM_PROTO_GetShiftState done [10:46:14]FM_GetShiftState done [10:46:14]req_shift_opened done [10:46:14]requested_item shift.open_date is exist - process it [10:46:14]req_shift_open_date [10:46:14]req_shift_open_date done [10:46:14]produce_requested_data done [10:46:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165606,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:46:14]process_action_free close_receipt [10:46:14]json_value_free [10:46:14]json_value_free done [10:46:14]process_json_proto returns [10:46:14]Send response to host [10:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165606,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:46:14]free response buf [10:46:14]execute_script done [10:46:14]execute_script returns [10:46:14]free content buf [10:46:14]Sock 7.Close socket [10:46:14]Sock 7.Thread stoped [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:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:46]accept exits with 9 [10:47:46]New connection [10:47:46]New thread 3066920292 created [10:47:46]Thread 3066776932 joined [10:47:46]Waiting for new connection... [10:47:46] Sock 9.Parse request [10:47:46]Sock 9.Check first char [10:47:46]Sock 9.First char is OK [10:47:46]request: POST /json_proto HTTP/1.0 [10:47:46]Method: POST [10:47:46]URL: /json_proto [10:47:46]Method is POST - this is cgi request [10:47:46]url: /json_proto [10:47:46]query_string will be loaded in cgi processing [10:47:46]execute_cgi json_proto POST (null) [10:47:46]execute_cgi path=json_proto method=POST [10:47:46]POST find Content-Length [10:47:46]Host: 172.17.53.195:8080 [10:47:46]Content-Length: 677 [10:47:46]Content-Type: application/json [10:47:46] [10:47:46]POST finish read [10:47:46]Found Content-Length = 677 [10:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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:47:46]execute_script... [10:47: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)220168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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:47:46]POST & json_proto [10:47:46]process_json_proto [10:47:46]json parsed OK: [10:47:46]protocol is kg_v1.0 [10:47:46]action value=close_receipt [10:47:46]process_action close_receipt [10:47:46]cmd_close_receipt [10:47:46]MH_GetDate [10:47:46]Write to MH i2c: F0 00 00 82 D5 46 [10:47:46]Write i2c OK [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: F0 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: F0 09 00 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: F0 09 00 82 D5 00 DE DF 14 67 21 48 4A 65 9F [10:47:46]GetLastDocTimeStamp 1729421182 [10:47:46]current date 1729421278 [10:47:46]FM_GetShiftState [10:47:46]SAM_PROTO_GetShiftState [10:47:46]wFMCommunicate request_size=4 [10:47:46]MH_SAM_APDU [10:47:46]CAPDU: 80 13 01 00 [10:47:46]Write to MH i2c: E2 08 00 83 D5 80 13 01 00 00 00 00 00 D5 [10:47:46]Write i2c OK [10:47:46]MH_I2C_Read... [10:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:46]Read from MH i2c: E2 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 0E 00 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 0E 00 83 D5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1D [10:47:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:47:46]wFMCommunicate OK [10:47:46]SAM_PROTO_GetShiftState done [10:47:46]FM_GetShiftState done [10:47:46]opened in 1729384561 [10:47:46]opened+sec_in_day 1729470961 [10:47:46]quantity*price = 70044 [10:47:46]sum+1 = 70046 [10:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 89 20.10.2024 10:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165607 ФПД: 162759942406351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104758&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165607&fm=162759942406351&tin=02508201610067®Number=0000000000091764&sum=70000 [10:47:47]StoreToDocumentArchive [10:47:47]shift 534 fd 165607 [10:47:47]save to /storage/0534/doc_00165607 [10:47:47]save last doc name /storage/0534/doc_00165607 to /storage/kkm_last_doc_name [10:47:47]save OK [10:47:47]Clear old archive folders... [10:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:47]tlvbuf is 015DD680 [10:47:47]SAM_PROTO_ClearQueue [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 09 00 00 [10:47:47]Write to MH i2c: E2 08 00 90 D5 80 09 00 00 00 00 00 00 D7 [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 90 D5 00 90 00 D9 [10:47:47]RAPDU: 90 00 [10:47:47]wFMCommunicate OK [10:47:47]SAM_PROTO_ClearQueue done [10:47:47]KKMCreateOFDPacket [10:47:47]OFDProtocolAddRootSTLVToBuf [10:47:47]FM_MakeSignedData [10:47:47]FM_MakeSignedData [10:47:47]SAM_PROTO_SignData [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 0D 01 02 [10:47:47]Write to MH i2c: E2 08 00 91 D5 80 0D 01 02 00 00 00 00 DF [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 91 D5 00 90 00 DA [10:47:47]RAPDU: 90 00 [10:47:47]wFMCommunicate OK [10:47:47]wFMCommunicate request_size=255 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DE DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 86 02 00 35 04 06 00 94 [10:47:47]Write to MH i2c: E2 02 01 92 D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DE DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 86 02 00 35 04 06 00 94 00 00 08 [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:48]Read from MH i2c: E2 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 03 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 03 00 92 D5 00 90 00 DB [10:47:48]RAPDU: 90 00 [10:47:48]wFMCommunicate OK [10:47:48]wFMCommunicate request_size=10 [10:47:48]MH_SAM_APDU [10:47:48]CAPDU: 80 0D 02 02 05 07 80 8D 00 CF [10:47:48]Write to MH i2c: E2 0D 00 93 D5 80 0D 02 02 05 00 07 80 8D 00 CF 00 00 CF [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:48]Read from MH i2c: E2 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 03 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 03 00 93 D5 00 90 00 DC [10:47:48]RAPDU: 90 00 [10:47:48]wFMCommunicate OK [10:47:48]wFMCommunicate request_size=4 [10:47:48]MH_SAM_APDU [10:47:48]CAPDU: 80 0D 03 02 [10:47:48]Write to MH i2c: E2 08 00 94 D5 80 0D 03 02 00 00 00 00 E4 [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:48]Read from MH i2c: E2 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 0B 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 0B 00 94 D5 00 98 7A C3 11 7A 1B DF BA 90 00 F9 [10:47:48]RAPDU: 98 7A C3 11 7A 1B DF BA 90 00 [10:47:48]wFMCommunicate OK [10:47:48]SAM_PROTO_SignData done [10:47:48]FM_MakeSignedData done [10:47:48]CreateOFDProtocolMessage [10:47:48]wFMCommunicate request_size=4 [10:47:48]MH_SAM_APDU [10:47:48]CAPDU: 80 11 00 00 [10:47:48]Write to MH i2c: E2 08 00 95 D5 80 11 00 00 00 00 00 00 E4 [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:48]Read from MH i2c: E2 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 17 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 17 00 95 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3C [10:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:47:48]wFMCommunicate OK [10:47:48]CreateOFDProtocolMessage done [10:47:48]OFDSenderStorePacket 165607 [10:47:48]StoreOFDPacket docnum=165607 [10:47:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DD B8 07 01 6E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DE DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 86 02 00 35 04 06 00 94 07 80 8D 00 CF 98 7A C3 11 7A 1B DF BA [10:47:48]CheckFolder [10:47:48]dirname=/storage/ofd_packets [10:47:48]CheckFolder done [10:47:48]ProducePacketName [10:47:48]name=ofd_packets/00165607 [10:47:48]NVStorageSaveData ofd_packets/00165607 [10:47:48]File name is /storage/ofd_packets/00165607 [10:47:48]Write 301 bytes [10:47:48]NVStorageSaveData done [10:47:48]OFDSenderStorePacket done [10:47:48]KKMCreateOFDPacket done [10:47:48]NVStorageSaveData kkm_last_timestamp [10:47:48]File name is /storage/kkm_last_timestamp [10:47:48]Write 4 bytes [10:47:48]NVStorageSaveData done [10:47:48]ExternCall_PrintAddStr [10:47:48]wPrintStart [10:47:48]Write to MH i2c: 01 00 00 96 D5 6B [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: 01 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: 01 07 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: 01 07 00 96 D5 00 00 00 00 00 FF 0F 80 [10:47:48]RasterBufferAndPrint [10:47:48]line Счет N : (1)220168 [10:47:48]line ИНН: 02508201610067 [10:47:48]line Контрольно-Кассовый Чек [10:47:48]line ПРОДАЖА [10:47:48]line ТРК (МРК, ГНК) : 24 [10:47:48]line Товар: 2710124500 [10:47:48]line Аи-95-К-5 [10:47:48]line 9.440 * 74.20 [10:47:48]line = 700.45 [10:47:48]line НДС 12% НСП 1% [10:47:48]line > о реализуемом товаре [10:47:48]line ОКРУГЛЕНИЕ: -0.45 [10:47:48]line ИТОГО: 700.00 [10:47:48]line Внесено: 700.00 [10:47:48]line СДАЧА: 0.00 [10:47:48]line НСП 1% : 6.20 [10:47:48]line НДС 12% : 74.38 [10:47:48]line Наличными: 700.00 [10:47:48]line Безнал.: 0.00 [10:47:48]line Место: АЗС № 161 "Партнер Нефть" [10:47:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:47:48]line СНО: Общий режим [10:47:48]line Чек 89 20.10.2024 10:47 [10:47:48]line Смена: 534 ФФД: 1.0 [10:47:48]line ЗНМ: 0300000104 [10:47:48]line РНМ: 0000000000091764 [10:47:48]line Версия ККМ: 001 [10:47:48]line ФМ: 0000000000871759 [10:47:48]line ФД: 165607 [10:47:48]line ФПД: 162759942406351 [10:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104758&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165607&fm=162759942406351&tin=02508201610067®Number=0000000000091764&sum=70000 [10:47:48]OFD Sender: Processing packet 165607 [packets to send 48, broken 47] [10:47:48]ProducePacketName [10:47:48]name=ofd_packets/00165607 [10:47:48]OFD Sender: To server: pG, [10:47:48]CommunicateWithHost lk.salyk.kg:30040 [10:47:48]ConnectInit lk.salyk.kg [10:47:48]written 0, free lines is 4095 [10:47:48]Connected sock=10 [10:47:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DD B8 07 01 6E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DE DF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 86 02 00 35 04 06 00 94 07 80 8D 00 CF 98 7A C3 11 7A 1B DF BA [10:47:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6C 7D 47 00 EC 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 31 37 35 39 10 04 04 00 E7 86 02 00 F4 03 04 00 50 86 14 67 B6 04 01 00 00 DA 5C CE 67 1C 93 AC 4D [10:47:48]CommunicateWithHost err = 0 [10:47:48]CheckOFDResponse [10:47:48]1017 (14) - 77093643461234 [10:47:48]1041 (16) - 0000000000871759 [10:47:48]1040 (4) - 165607 [10:47:48]1012 (4) - 20.10.2024 04:25 [10:47:48]1206 (1) - 0 [10:47:48]OFD Sender: Remove packet 165607 [10:47:48]ProducePacketName [10:47:48]name=ofd_packets/00165607 [10:47:48]NVStorageDeleteData [10:47:49]Write to MH i2c: 01 00 00 C1 D5 96 [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: 01 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: 01 07 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: 01 07 00 C1 D5 00 00 00 00 00 C4 0C 6D [10:47:49]RasterBufferAndPrint [10:47:49]line [10:47:49]line [10:47:49]line [10:47:49]line [10:47:49]line [10:47:49]written 0, free lines is 3274 [10:47:49]MH_Cut [10:47:49]Write to MH i2c: D1 01 00 C8 D5 01 6F [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: D1 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: D1 01 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: D1 01 00 C8 D5 00 6E [10:47:49]Write to MH i2c: 01 00 00 C9 D5 9E [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]OFD Sender: No OFD packet to send [10:47:49]*** Cut start [10:47:49]*** Partial cut [10:47:49]*** CUTSNS_PIN = 1 [10:47:49]*** CUTSNS_PIN = 0 [10:47:50]*** Brake cut motor [10:47:50]Read from MH i2c: 01 [10:47:50]MH_I2C_Read... [10:47:50]*** Stop cut motor [10:47:50]*** Cut end [10:47:50]Read from MH i2c: 01 07 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 C9 D5 00 00 00 00 00 FF 0F B3 [10:47:50]process_action close_receipt done [10:47:50]requested_data is exist [10:47:50]produce_requested_data [10:47:50]requested_item fm.sn is exist - process it [10:47:50]wFMCommunicate request_size=4 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 11 00 00 [10:47:50]Write to MH i2c: E2 08 00 CA D5 80 11 00 00 00 00 00 00 19 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 17 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 17 00 CA D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [10:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:47:50]wFMCommunicate OK [10:47:50]requested_item fd.num is exist - process it [10:47:50]SAM_PROTO_GetFieldsCounters [10:47:50]wFMCommunicate request_size=4 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 13 00 00 [10:47:50]Write to MH i2c: E2 08 00 CB D5 80 13 00 00 00 00 00 00 1C [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 62 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 62 00 CB D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [10:47:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:50]wFMCommunicate OK [10:47:50]SAM_PROTO_GetFieldsCounters done [10:47:50]requested_item shift.num is exist - process it [10:47:50]requested_item shift.opened is exist - process it [10:47:50]req_shift_opened [10:47:50]FM_GetShiftState [10:47:50]SAM_PROTO_GetShiftState [10:47:50]wFMCommunicate request_size=4 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 13 01 00 [10:47:50]Write to MH i2c: E2 08 00 CC D5 80 13 01 00 00 00 00 00 1E [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 0E 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 0E 00 CC D5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 66 [10:47:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:47:50]wFMCommunicate OK [10:47:50]SAM_PROTO_GetShiftState done [10:47:50]FM_GetShiftState done [10:47:50]req_shift_opened done [10:47:50]requested_item shift.open_date is exist - process it [10:47:50]req_shift_open_date [10:47:50]req_shift_open_date done [10:47:50]produce_requested_data done [10:47:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165607,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:47:50]process_action_free close_receipt [10:47:50]json_value_free [10:47:50]json_value_free done [10:47:50]process_json_proto returns [10:47:50]Send response to host [10:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165607,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:47:50]free response buf [10:47:50]execute_script done [10:47:50]execute_script returns [10:47:50]free content buf [10:47:50]Sock 9.Close socket [10:47:50]Sock 9.Thread stoped [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:48]accept exits with 7 [10:49:48]New connection [10:49:48]New thread 3066776932 created [10:49:48]Thread 3066920292 joined [10:49:48]Waiting for new connection... [10:49:48] Sock 7.Parse request [10:49:48]Sock 7.Check first char [10:49:48]Sock 7.First char is OK [10:49:48]request: POST /json_proto HTTP/1.0 [10:49:48]Method: POST [10:49:48]URL: /json_proto [10:49:48]Method is POST - this is cgi request [10:49:48]url: /json_proto [10:49:48]query_string will be loaded in cgi processing [10:49:48]execute_cgi json_proto POST (null) [10:49:48]execute_cgi path=json_proto method=POST [10:49:48]POST find Content-Length [10:49:48]Host: 172.17.53.195:8080 [10:49:48]Content-Length: 682 [10:49:48]Content-Type: application/json [10:49:48] [10:49:48]POST finish read [10:49:48]Found Content-Length = 682 [10:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:48]execute_script... [10:49: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)220169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:48]POST & json_proto [10:49:48]process_json_proto [10:49:48]json parsed OK: [10:49:48]protocol is kg_v1.0 [10:49:48]action value=close_receipt [10:49:48]process_action close_receipt [10:49:48]cmd_close_receipt [10:49:48]MH_GetDate [10:49:48]Write to MH i2c: F0 00 00 CD D5 91 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: F0 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: F0 09 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: F0 09 00 CD D5 00 58 E0 14 67 21 48 4A 65 65 [10:49:48]GetLastDocTimeStamp 1729421278 [10:49:48]current date 1729421400 [10:49:48]FM_GetShiftState [10:49:48]SAM_PROTO_GetShiftState [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 13 01 00 [10:49:48]Write to MH i2c: E2 08 00 CE D5 80 13 01 00 00 00 00 00 20 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 0E 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 0E 00 CE D5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 68 [10:49:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:49:48]wFMCommunicate OK [10:49:48]SAM_PROTO_GetShiftState done [10:49:48]FM_GetShiftState done [10:49:48]opened in 1729384561 [10:49:48]opened+sec_in_day 1729470961 [10:49:48]quantity*price = 100015 [10:49:48]sum+1 = 100017 [10:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 90 20.10.2024 10:50 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165608 ФПД: 73581110402999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165608&fm=73581110402999&tin=02508201610067®Number=0000000000091764&sum=100000 [10:49:49]StoreToDocumentArchive [10:49:49]shift 534 fd 165608 [10:49:49]save to /storage/0534/doc_00165608 [10:49:49]save last doc name /storage/0534/doc_00165608 to /storage/kkm_last_doc_name [10:49:49]save OK [10:49:49]Clear old archive folders... [10:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:49]tlvbuf is 0161C0E0 [10:49:49]SAM_PROTO_ClearQueue [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 09 00 00 [10:49:49]Write to MH i2c: E2 08 00 DB D5 80 09 00 00 00 00 00 00 22 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 DB D5 00 90 00 24 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_ClearQueue done [10:49:49]KKMCreateOFDPacket [10:49:49]OFDProtocolAddRootSTLVToBuf [10:49:49]FM_MakeSignedData [10:49:49]FM_MakeSignedData [10:49:49]SAM_PROTO_SignData [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 01 02 [10:49:49]Write to MH i2c: E2 08 00 DC D5 80 0D 01 02 00 00 00 00 2A [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 DC D5 00 90 00 25 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=255 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 58 E0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 86 02 00 35 04 06 00 42 [10:49:49]Write to MH i2c: E2 02 01 DD D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 58 E0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 86 02 00 35 04 06 00 42 00 00 91 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]OFD Sender: No OFD packet to send [10:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 DD D5 00 90 00 26 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=10 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 02 02 05 EB EF F2 9F B7 [10:49:49]Write to MH i2c: E2 0D 00 DE D5 80 0D 02 02 05 00 EB EF F2 9F B7 00 00 59 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 DE D5 00 90 00 27 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 03 02 [10:49:49]Write to MH i2c: E2 08 00 DF D5 80 0D 03 02 00 00 00 00 2F [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0B 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0B 00 DF D5 00 41 73 0F 2E 51 80 2B 63 90 00 80 [10:49:49]RAPDU: 41 73 0F 2E 51 80 2B 63 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_SignData done [10:49:49]FM_MakeSignedData done [10:49:49]CreateOFDProtocolMessage [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 11 00 00 [10:49:49]Write to MH i2c: E2 08 00 E0 D5 80 11 00 00 00 00 00 00 2F [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 17 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 17 00 E0 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 87 [10:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:49:49]wFMCommunicate OK [10:49:49]CreateOFDProtocolMessage done [10:49:49]OFDSenderStorePacket 165608 [10:49:49]StoreOFDPacket docnum=165608 [10:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 22 DE 07 01 8C C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 58 E0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 86 02 00 35 04 06 00 42 EB EF F2 9F B7 41 73 0F 2E 51 80 2B 63 [10:49:49]CheckFolder [10:49:49]dirname=/storage/ofd_packets [10:49:49]CheckFolder done [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00165608 [10:49:49]NVStorageSaveData ofd_packets/00165608 [10:49:49]File name is /storage/ofd_packets/00165608 [10:49:49]Write 301 bytes [10:49:49]NVStorageSaveData done [10:49:49]OFDSenderStorePacket done [10:49:49]KKMCreateOFDPacket done [10:49:49]NVStorageSaveData kkm_last_timestamp [10:49:49]File name is /storage/kkm_last_timestamp [10:49:49]Write 4 bytes [10:49:49]NVStorageSaveData done [10:49:49]ExternCall_PrintAddStr [10:49:49]wPrintStart [10:49:49]Write to MH i2c: 01 00 00 E1 D5 B6 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 E1 D5 00 00 00 00 00 FF 0F CB [10:49:49]RasterBufferAndPrint [10:49:49]line Счет N : (1)220169 [10:49:49]line ИНН: 02508201610067 [10:49:49]line Контрольно-Кассовый Чек [10:49:49]line ПРОДАЖА [10:49:49]line ТРК (МРК, ГНК) : 13 [10:49:49]line Товар: 2710124130 [10:49:49]line Аи-92-К-5 [10:49:49]line 14.950 * 66.90 [10:49:49]line = 1000.16 [10:49:49]line НДС 12% НСП 1% [10:49:49]line > о реализуемом товаре [10:49:49]line ОКРУГЛЕНИЕ: -0.16 [10:49:49]line ИТОГО: 1000.00 [10:49:49]line Внесено: 1000.00 [10:49:49]line СДАЧА: 0.00 [10:49:49]line НСП 1% : 8.85 [10:49:49]line НДС 12% : 106.21 [10:49:49]line Наличными: 1000.00 [10:49:49]line Безнал.: 0.00 [10:49:49]line Место: АЗС № 161 "Партнер Нефть" [10:49:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:49:49]line СНО: Общий режим [10:49:49]line Чек 90 20.10.2024 10:50 [10:49:49]line Смена: 534 ФФД: 1.0 [10:49:49]line ЗНМ: 0300000104 [10:49:49]line РНМ: 0000000000091764 [10:49:49]line Версия ККМ: 001 [10:49:49]line ФМ: 0000000000871759 [10:49:49]line ФД: 165608 [10:49:49]line ФПД: 73581110402999 [10:49:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165608&fm=73581110402999&tin=02508201610067®Number=0000000000091764&sum=100000 [10:49:50]OFD Sender: Processing packet 165608 [packets to send 48, broken 47] [10:49:50]ProducePacketName [10:49:50]name=ofd_packets/00165608 [10:49:50]OFD Sender: To server: pG, [10:49:50]CommunicateWithHost lk.salyk.kg:30040 [10:49:50]ConnectInit lk.salyk.kg [10:49:50]written 0, free lines is 4095 [10:49:50]Connected sock=10 [10:49:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 22 DE 07 01 8C C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 58 E0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 86 02 00 35 04 06 00 42 EB EF F2 9F B7 41 73 0F 2E 51 80 2B 63 [10:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 76 EA 47 00 5E 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 86 02 00 F4 03 04 00 CA 86 14 67 B6 04 01 00 00 51 64 80 36 B2 C1 B8 64 [10:49:50]CommunicateWithHost err = 0 [10:49:50]CheckOFDResponse [10:49:50]1017 (14) - 77093643461234 [10:49:50]1041 (16) - 0000000000871759 [10:49:50]1040 (4) - 165608 [10:49:50]1012 (4) - 20.10.2024 04:27 [10:49:50]1206 (1) - 0 [10:49:50]OFD Sender: Remove packet 165608 [10:49:50]ProducePacketName [10:49:50]name=ofd_packets/00165608 [10:49:50]NVStorageDeleteData [10:49:50]Write to MH i2c: 01 00 00 0C D6 E2 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 0C D6 00 00 00 00 00 D6 0C CB [10:49:50]RasterBufferAndPrint [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]written 0, free lines is 3292 [10:49:50]MH_Cut [10:49:50]Write to MH i2c: D1 01 00 13 D6 01 BB [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 01 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 01 00 13 D6 00 BA [10:49:50]Write to MH i2c: 01 00 00 14 D6 EA [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]OFD Sender: No OFD packet to send [10:49:51]*** Cut start [10:49:51]*** Partial cut [10:49:51]*** CUTSNS_PIN = 1 [10:49:51]*** CUTSNS_PIN = 0 [10:49:51]*** Brake cut motor [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]*** Stop cut motor [10:49:51]*** Cut end [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 14 D6 00 00 00 00 00 FF 0F FF [10:49:51]process_action close_receipt done [10:49:51]requested_data is exist [10:49:51]produce_requested_data [10:49:51]requested_item fm.sn is exist - process it [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 11 00 00 [10:49:51]Write to MH i2c: E2 08 00 15 D6 80 11 00 00 00 00 00 00 65 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 17 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 17 00 15 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [10:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:49:52]wFMCommunicate OK [10:49:52]requested_item fd.num is exist - process it [10:49:52]SAM_PROTO_GetFieldsCounters [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 13 00 00 [10:49:52]Write to MH i2c: E2 08 00 16 D6 80 13 00 00 00 00 00 00 68 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 62 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 62 00 16 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [10:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_GetFieldsCounters done [10:49:52]requested_item shift.num is exist - process it [10:49:52]requested_item shift.opened is exist - process it [10:49:52]req_shift_opened [10:49:52]FM_GetShiftState [10:49:52]SAM_PROTO_GetShiftState [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 13 01 00 [10:49:52]Write to MH i2c: E2 08 00 17 D6 80 13 01 00 00 00 00 00 6A [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0E 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0E 00 17 D6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B2 [10:49:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_GetShiftState done [10:49:52]FM_GetShiftState done [10:49:52]req_shift_opened done [10:49:52]requested_item shift.open_date is exist - process it [10:49:52]req_shift_open_date [10:49:52]req_shift_open_date done [10:49:52]produce_requested_data done [10:49:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165608,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:49:52]process_action_free close_receipt [10:49:52]json_value_free [10:49:52]json_value_free done [10:49:52]process_json_proto returns [10:49:52]Send response to host [10:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165608,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:49:52]free response buf [10:49:52]execute_script done [10:49:52]execute_script returns [10:49:52]free content buf [10:49:52]Sock 7.Close socket [10:49:52]Sock 7.Thread stoped [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:11]accept exits with 9 [10:52:11]New connection [10:52:11]New thread 3066920292 created [10:52:11]Thread 3066776932 joined [10:52:11]Waiting for new connection... [10:52:11] Sock 9.Parse request [10:52:11]Sock 9.Check first char [10:52:11]Sock 9.First char is OK [10:52:11]request: POST /json_proto HTTP/1.0 [10:52:11]Method: POST [10:52:11]URL: /json_proto [10:52:11]Method is POST - this is cgi request [10:52:11]url: /json_proto [10:52:11]query_string will be loaded in cgi processing [10:52:11]execute_cgi json_proto POST (null) [10:52:11]execute_cgi path=json_proto method=POST [10:52:11]POST find Content-Length [10:52:11]Host: 172.17.53.195:8080 [10:52:11]Content-Length: 677 [10:52:11]Content-Type: application/json [10:52:11] [10:52:11]POST finish read [10:52:11]Found Content-Length = 677 [10:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:11]execute_script... [10:52: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)220170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:11]POST & json_proto [10:52:11]process_json_proto [10:52:11]json parsed OK: [10:52:11]protocol is kg_v1.0 [10:52:11]action value=close_receipt [10:52:11]process_action close_receipt [10:52:11]cmd_close_receipt [10:52:11]MH_GetDate [10:52:11]Write to MH i2c: F0 00 00 18 D6 DD [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: F0 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: F0 09 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: F0 09 00 18 D6 00 E7 E0 14 67 21 48 4A 65 40 [10:52:11]GetLastDocTimeStamp 1729421400 [10:52:11]current date 1729421543 [10:52:11]FM_GetShiftState [10:52:11]SAM_PROTO_GetShiftState [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 13 01 00 [10:52:11]Write to MH i2c: E2 08 00 19 D6 80 13 01 00 00 00 00 00 6C [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 0E 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 0E 00 19 D6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B4 [10:52:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:52:11]wFMCommunicate OK [10:52:11]SAM_PROTO_GetShiftState done [10:52:11]FM_GetShiftState done [10:52:11]opened in 1729384561 [10:52:11]opened+sec_in_day 1729470961 [10:52:11]quantity*price = 49974 [10:52:11]sum+1 = 49975 [10:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 91 20.10.2024 10:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165609 ФПД: 91366309932007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105223&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165609&fm=91366309932007&tin=02508201610067®Number=0000000000091764&sum=49900 [10:52:13]StoreToDocumentArchive [10:52:13]shift 534 fd 165609 [10:52:13]save to /storage/0534/doc_00165609 [10:52:13]save last doc name /storage/0534/doc_00165609 to /storage/kkm_last_doc_name [10:52:13]save OK [10:52:13]Clear old archive folders... [10:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:13]tlvbuf is 018B0090 [10:52:13]SAM_PROTO_ClearQueue [10:52:13]wFMCommunicate request_size=4 [10:52:13]MH_SAM_APDU [10:52:13]CAPDU: 80 09 00 00 [10:52:13]Write to MH i2c: E2 08 00 26 D6 80 09 00 00 00 00 00 00 6E [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:13]Read from MH i2c: E2 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 26 D6 00 90 00 70 [10:52:13]RAPDU: 90 00 [10:52:13]wFMCommunicate OK [10:52:13]SAM_PROTO_ClearQueue done [10:52:13]KKMCreateOFDPacket [10:52:13]OFDProtocolAddRootSTLVToBuf [10:52:13]FM_MakeSignedData [10:52:13]FM_MakeSignedData [10:52:13]SAM_PROTO_SignData [10:52:13]wFMCommunicate request_size=4 [10:52:13]MH_SAM_APDU [10:52:13]CAPDU: 80 0D 01 02 [10:52:13]Write to MH i2c: E2 08 00 27 D6 80 0D 01 02 00 00 00 00 76 [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:13]Read from MH i2c: E2 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 27 D6 00 90 00 71 [10:52:13]RAPDU: 90 00 [10:52:13]wFMCommunicate OK [10:52:13]wFMCommunicate request_size=255 [10:52:13]MH_SAM_APDU [10:52: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 E7 E0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 86 02 00 35 04 06 00 53 [10:52:13]Write to MH i2c: E2 02 01 28 D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 E7 E0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 86 02 00 35 04 06 00 53 00 00 66 [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:13]Read from MH i2c: E2 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 28 D6 00 90 00 72 [10:52:13]RAPDU: 90 00 [10:52:13]wFMCommunicate OK [10:52:13]wFMCommunicate request_size=10 [10:52:13]MH_SAM_APDU [10:52:13]CAPDU: 80 0D 02 02 05 18 E0 72 AB E7 [10:52:13]Write to MH i2c: E2 0D 00 29 D6 80 0D 02 02 05 00 18 E0 72 AB E7 00 00 7F [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:13]Read from MH i2c: E2 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 29 D6 00 90 00 73 [10:52:13]RAPDU: 90 00 [10:52:13]wFMCommunicate OK [10:52:13]wFMCommunicate request_size=4 [10:52:13]MH_SAM_APDU [10:52:13]CAPDU: 80 0D 03 02 [10:52:13]Write to MH i2c: E2 08 00 2A D6 80 0D 03 02 00 00 00 00 7B [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:13]Read from MH i2c: E2 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 0B 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 0B 00 2A D6 00 D2 96 F2 03 F1 E0 F0 09 90 00 A3 [10:52:13]RAPDU: D2 96 F2 03 F1 E0 F0 09 90 00 [10:52:13]wFMCommunicate OK [10:52:13]SAM_PROTO_SignData done [10:52:13]FM_MakeSignedData done [10:52:13]CreateOFDProtocolMessage [10:52:13]wFMCommunicate request_size=4 [10:52:13]MH_SAM_APDU [10:52:13]CAPDU: 80 11 00 00 [10:52:13]Write to MH i2c: E2 08 00 2B D6 80 11 00 00 00 00 00 00 7B [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:13]Read from MH i2c: E2 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 17 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 17 00 2B D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [10:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:52:13]wFMCommunicate OK [10:52:13]CreateOFDProtocolMessage done [10:52:13]OFDSenderStorePacket 165609 [10:52:13]StoreOFDPacket docnum=165609 [10:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 F7 07 01 2D 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 E7 E0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 86 02 00 35 04 06 00 53 18 E0 72 AB E7 D2 96 F2 03 F1 E0 F0 09 [10:52:13]CheckFolder [10:52:13]dirname=/storage/ofd_packets [10:52:13]CheckFolder done [10:52:13]ProducePacketName [10:52:13]name=ofd_packets/00165609 [10:52:13]NVStorageSaveData ofd_packets/00165609 [10:52:13]File name is /storage/ofd_packets/00165609 [10:52:13]Write 301 bytes [10:52:13]NVStorageSaveData done [10:52:13]OFDSenderStorePacket done [10:52:13]KKMCreateOFDPacket done [10:52:13]NVStorageSaveData kkm_last_timestamp [10:52:13]File name is /storage/kkm_last_timestamp [10:52:13]Write 4 bytes [10:52:13]NVStorageSaveData done [10:52:13]ExternCall_PrintAddStr [10:52:13]wPrintStart [10:52:13]Write to MH i2c: 01 00 00 2C D6 02 [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: 01 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: 01 07 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: 01 07 00 2C D6 00 00 00 00 00 FF 0F 17 [10:52:13]RasterBufferAndPrint [10:52:13]line Счет N : (1)220170 [10:52:13]line ИНН: 02508201610067 [10:52:13]line Контрольно-Кассовый Чек [10:52:13]line ПРОДАЖА [10:52:13]line ТРК (МРК, ГНК) : 13 [10:52:13]line Товар: 2710124130 [10:52:13]line Аи-92-К-5 [10:52:13]line 7.470 * 66.90 [10:52:13]line = 499.74 [10:52:13]line НДС 12% НСП 1% [10:52:13]line > о реализуемом товаре [10:52:13]line ОКРУГЛЕНИЕ: -0.74 [10:52:13]line ИТОГО: 499.00 [10:52:13]line Внесено: 500.00 [10:52:13]line СДАЧА: 1.00 [10:52:13]line НСП 1% : 4.42 [10:52:13]line НДС 12% : 53.07 [10:52:13]line Наличными: 499.00 [10:52:13]line Безнал.: 0.00 [10:52:13]line Место: АЗС № 161 "Партнер Нефть" [10:52:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:52:13]line СНО: Общий режим [10:52:13]line Чек 91 20.10.2024 10:52 [10:52:13]line Смена: 534 ФФД: 1.0 [10:52:13]line ЗНМ: 0300000104 [10:52:13]line РНМ: 0000000000091764 [10:52:13]line Версия ККМ: 001 [10:52:13]line ФМ: 0000000000871759 [10:52:13]line ФД: 165609 [10:52:13]line ФПД: 91366309932007 [10:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105223&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165609&fm=91366309932007&tin=02508201610067®Number=0000000000091764&sum=49900 [10:52:13]written 0, free lines is 4095 [10:52:13]OFD Sender: Processing packet 165609 [packets to send 48, broken 47] [10:52:13]ProducePacketName [10:52:13]name=ofd_packets/00165609 [10:52:13]OFD Sender: To server: pG, [10:52:13]CommunicateWithHost lk.salyk.kg:30040 [10:52:13]ConnectInit lk.salyk.kg [10:52:13]Connected sock=10 [10:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 F7 07 01 2D 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 E7 E0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 86 02 00 35 04 06 00 53 18 E0 72 AB E7 D2 96 F2 03 F1 E0 F0 09 [10:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D2 1D 47 00 70 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 31 37 35 39 10 04 04 00 E9 86 02 00 F4 03 04 00 59 87 14 67 B6 04 01 00 00 E3 64 42 4E 15 64 82 B1 [10:52:13]CommunicateWithHost err = 0 [10:52:13]CheckOFDResponse [10:52:13]1017 (14) - 77093643461234 [10:52:13]1041 (16) - 0000000000871759 [10:52:13]1040 (4) - 165609 [10:52:13]1012 (4) - 20.10.2024 04:30 [10:52:13]1206 (1) - 0 [10:52:13]OFD Sender: Remove packet 165609 [10:52:13]ProducePacketName [10:52:13]name=ofd_packets/00165609 [10:52:13]NVStorageDeleteData [10:52:14]Write to MH i2c: 01 00 00 57 D6 2D [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 57 D6 00 00 00 00 00 D9 0C 19 [10:52:14]RasterBufferAndPrint [10:52:14]line [10:52:14]line [10:52:14]line [10:52:14]line [10:52:14]line [10:52:14]written 0, free lines is 3297 [10:52:14]MH_Cut [10:52:14]Write to MH i2c: D1 01 00 5E D6 01 06 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: D1 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: D1 01 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: D1 01 00 5E D6 00 05 [10:52:14]Write to MH i2c: 01 00 00 5F D6 35 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]OFD Sender: No OFD packet to send [10:52:14]*** Cut start [10:52:14]*** Partial cut [10:52:14]*** CUTSNS_PIN = 1 [10:52:14]*** CUTSNS_PIN = 0 [10:52:15]*** Brake cut motor [10:52:15]Read from MH i2c: 01 [10:52:15]MH_I2C_Read... [10:52:15]*** Stop cut motor [10:52:15]*** Cut end [10:52:15]Read from MH i2c: 01 07 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: 01 07 00 5F D6 00 00 00 00 00 FF 0F 4A [10:52:15]process_action close_receipt done [10:52:15]requested_data is exist [10:52:15]produce_requested_data [10:52:15]requested_item fm.sn is exist - process it [10:52:15]wFMCommunicate request_size=4 [10:52:15]MH_SAM_APDU [10:52:15]CAPDU: 80 11 00 00 [10:52:15]Write to MH i2c: E2 08 00 60 D6 80 11 00 00 00 00 00 00 B0 [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:15]Read from MH i2c: E2 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 17 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 17 00 60 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [10:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:52:15]wFMCommunicate OK [10:52:15]requested_item fd.num is exist - process it [10:52:15]SAM_PROTO_GetFieldsCounters [10:52:15]wFMCommunicate request_size=4 [10:52:15]MH_SAM_APDU [10:52:15]CAPDU: 80 13 00 00 [10:52:15]Write to MH i2c: E2 08 00 61 D6 80 13 00 00 00 00 00 00 B3 [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:15]Read from MH i2c: E2 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 62 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 62 00 61 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [10:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:15]wFMCommunicate OK [10:52:15]SAM_PROTO_GetFieldsCounters done [10:52:15]requested_item shift.num is exist - process it [10:52:15]requested_item shift.opened is exist - process it [10:52:15]req_shift_opened [10:52:15]FM_GetShiftState [10:52:15]SAM_PROTO_GetShiftState [10:52:15]wFMCommunicate request_size=4 [10:52:15]MH_SAM_APDU [10:52:15]CAPDU: 80 13 01 00 [10:52:15]Write to MH i2c: E2 08 00 62 D6 80 13 01 00 00 00 00 00 B5 [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:15]Read from MH i2c: E2 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 0E 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 0E 00 62 D6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FD [10:52:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:52:15]wFMCommunicate OK [10:52:15]SAM_PROTO_GetShiftState done [10:52:15]FM_GetShiftState done [10:52:15]req_shift_opened done [10:52:15]requested_item shift.open_date is exist - process it [10:52:15]req_shift_open_date [10:52:15]req_shift_open_date done [10:52:15]produce_requested_data done [10:52:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165609,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:52:15]process_action_free close_receipt [10:52:15]json_value_free [10:52:15]json_value_free done [10:52:15]process_json_proto returns [10:52:15]Send response to host [10:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165609,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:52:15]free response buf [10:52:15]execute_script done [10:52:15]execute_script returns [10:52:15]free content buf [10:52:15]Sock 9.Close socket [10:52:15]Sock 9.Thread stoped [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53: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:56]accept exits with 7 [10:54:56]New connection [10:54:56]New thread 3066776932 created [10:54:56]Thread 3066920292 joined [10:54:56]Waiting for new connection... [10:54:56] Sock 7.Parse request [10:54:56]Sock 7.Check first char [10:54:56]Sock 7.First char is OK [10:54:56]request: POST /json_proto HTTP/1.0 [10:54:56]Method: POST [10:54:56]URL: /json_proto [10:54:56]Method is POST - this is cgi request [10:54:56]url: /json_proto [10:54:56]query_string will be loaded in cgi processing [10:54:56]execute_cgi json_proto POST (null) [10:54:56]execute_cgi path=json_proto method=POST [10:54:56]POST find Content-Length [10:54:56]Host: 172.17.53.195:8080 [10:54:56]Content-Length: 766 [10:54:56]Content-Type: application/json [10:54:56] [10:54:56]POST finish read [10:54:56]Found Content-Length = 766 [10:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:56]execute_script... [10:54: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)220171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:56]POST & json_proto [10:54:56]process_json_proto [10:54:56]json parsed OK: [10:54:56]protocol is kg_v1.0 [10:54:56]action value=close_receipt [10:54:56]process_action close_receipt [10:54:56]cmd_close_receipt [10:54:56]MH_GetDate [10:54:56]Write to MH i2c: F0 00 00 63 D6 28 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: F0 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: F0 09 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: F0 09 00 63 D6 00 8C E1 14 67 21 48 4A 65 31 [10:54:56]GetLastDocTimeStamp 1729421543 [10:54:56]current date 1729421708 [10:54:56]FM_GetShiftState [10:54:56]SAM_PROTO_GetShiftState [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 13 01 00 [10:54:56]Write to MH i2c: E2 08 00 64 D6 80 13 01 00 00 00 00 00 B7 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 0E 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 0E 00 64 D6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FF [10:54:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:54:57]wFMCommunicate OK [10:54:57]SAM_PROTO_GetShiftState done [10:54:57]FM_GetShiftState done [10:54:57]opened in 1729384561 [10:54:57]opened+sec_in_day 1729470961 [10:54:57]quantity*price = 50041 [10:54:57]sum+1 = 50042 [10:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 92 20.10.2024 10:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165610 ФПД: 62264596323507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105508&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165610&fm=62264596323507&tin=02508201610067®Number=0000000000091764&sum=50041 [10:54:58]StoreToDocumentArchive [10:54:58]shift 534 fd 165610 [10:54:58]save to /storage/0534/doc_00165610 [10:54:58]save last doc name /storage/0534/doc_00165610 to /storage/kkm_last_doc_name [10:54:58]save OK [10:54:58]Clear old archive folders... [10:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:58]tlvbuf is 01839660 [10:54:58]SAM_PROTO_ClearQueue [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 09 00 00 [10:54:58]Write to MH i2c: E2 08 00 71 D6 80 09 00 00 00 00 00 00 B9 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 71 D6 00 90 00 BB [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_ClearQueue done [10:54:58]KKMCreateOFDPacket [10:54:58]OFDProtocolAddRootSTLVToBuf [10:54:58]FM_MakeSignedData [10:54:58]FM_MakeSignedData [10:54:58]SAM_PROTO_SignData [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 01 02 [10:54:58]Write to MH i2c: E2 08 00 72 D6 80 0D 01 02 00 00 00 00 C1 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 72 D6 00 90 00 BC [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]wFMCommunicate request_size=255 [10:54:58]MH_SAM_APDU [10:54: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 8C E1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 86 02 00 35 04 06 00 38 [10:54:58]Write to MH i2c: E2 02 01 73 D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 8C E1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 86 02 00 35 04 06 00 38 00 00 AF [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 73 D6 00 90 00 BD [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]wFMCommunicate request_size=10 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 02 02 05 A1 1B 25 5C B3 [10:54:58]Write to MH i2c: E2 0D 00 74 D6 80 0D 02 02 05 00 A1 1B 25 5C B3 00 00 BE [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 74 D6 00 90 00 BE [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 03 02 [10:54:58]Write to MH i2c: E2 08 00 75 D6 80 0D 03 02 00 00 00 00 C6 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0B 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0B 00 75 D6 00 6A F1 7D 58 28 AF B2 31 90 00 B1 [10:54:58]RAPDU: 6A F1 7D 58 28 AF B2 31 90 00 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_SignData done [10:54:58]FM_MakeSignedData done [10:54:58]CreateOFDProtocolMessage [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 11 00 00 [10:54:58]Write to MH i2c: E2 08 00 76 D6 80 11 00 00 00 00 00 00 C6 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 17 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 17 00 76 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [10:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:58]wFMCommunicate OK [10:54:58]CreateOFDProtocolMessage done [10:54:58]OFDSenderStorePacket 165610 [10:54:58]StoreOFDPacket docnum=165610 [10:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 FB 07 01 83 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 8C E1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 86 02 00 35 04 06 00 38 A1 1B 25 5C B3 6A F1 7D 58 28 AF B2 31 [10:54:58]CheckFolder [10:54:58]dirname=/storage/ofd_packets [10:54:58]CheckFolder done [10:54:58]ProducePacketName [10:54:58]name=ofd_packets/00165610 [10:54:58]NVStorageSaveData ofd_packets/00165610 [10:54:58]File name is /storage/ofd_packets/00165610 [10:54:58]Write 301 bytes [10:54:58]NVStorageSaveData done [10:54:58]OFDSenderStorePacket done [10:54:58]KKMCreateOFDPacket done [10:54:58]NVStorageSaveData kkm_last_timestamp [10:54:58]File name is /storage/kkm_last_timestamp [10:54:58]Write 4 bytes [10:54:58]NVStorageSaveData done [10:54:58]ExternCall_PrintAddStr [10:54:58]wPrintStart [10:54:58]Write to MH i2c: 01 00 00 77 D6 4D [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 77 D6 00 00 00 00 00 FF 0F 62 [10:54:58]RasterBufferAndPrint [10:54:58]line Счет N : (1)220171 [10:54:58]line ИНН: 02508201610067 [10:54:58]line Контрольно-Кассовый Чек [10:54:58]line ПРОДАЖА [10:54:58]line ТРК (МРК, ГНК) : 23 [10:54:58]line Товар: 2710124130 [10:54:58]line Аи-92-К-5 [10:54:58]line 7.480 * 66.90 [10:54:58]line = 500.41 [10:54:58]line НДС 12% НСП 1% [10:54:58]line > о реализуемом товаре [10:54:58]line ИТОГО: 500.41 [10:54:58]line НСП 1% : 4.43 [10:54:58]line НДС 12% : 53.14 [10:54:58]line Наличными: 0.00 [10:54:58]line Безнал.: 500.41 [10:54:58]line Место: АЗС № 161 "Партнер Нефть" [10:54:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:54:58]line СНО: Общий режим [10:54:58]line Чек 92 20.10.2024 10:55 [10:54:58]line Смена: 534 ФФД: 1.0 [10:54:58]line ЗНМ: 0300000104 [10:54:58]line РНМ: 0000000000091764 [10:54:58]line Версия ККМ: 001 [10:54:58]line Платежная система: Mbank [10:54:58]line ФМ: 0000000000871759 [10:54:58]line ФД: 165610 [10:54:58]line ФПД: 62264596323507 [10:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105508&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165610&fm=62264596323507&tin=02508201610067®Number=0000000000091764&sum=50041 [10:54:58]written 0, free lines is 4095 [10:54:58]OFD Sender: Processing packet 165610 [packets to send 48, broken 47] [10:54:58]ProducePacketName [10:54:58]name=ofd_packets/00165610 [10:54:58]OFD Sender: To server: pG, [10:54:58]CommunicateWithHost lk.salyk.kg:30040 [10:54:58]ConnectInit lk.salyk.kg [10:54:58]Connected sock=10 [10:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 FB 07 01 83 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 8C E1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 86 02 00 35 04 06 00 38 A1 1B 25 5C B3 6A F1 7D 58 28 AF B2 31 [10:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AB 26 47 00 EE 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 31 37 35 39 10 04 04 00 EA 86 02 00 F4 03 04 00 FE 87 14 67 B6 04 01 00 00 F1 51 EE 7E 61 2B 7C 34 [10:54:59]CommunicateWithHost err = 0 [10:54:59]CheckOFDResponse [10:54:59]1017 (14) - 77093643461234 [10:54:59]1041 (16) - 0000000000871759 [10:54:59]1040 (4) - 165610 [10:54:59]1012 (4) - 20.10.2024 04:33 [10:54:59]1206 (1) - 0 [10:54:59]OFD Sender: Remove packet 165610 [10:54:59]ProducePacketName [10:54:59]name=ofd_packets/00165610 [10:54:59]NVStorageDeleteData [10:54:59]Write to MH i2c: 01 00 00 A0 D6 76 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 07 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 07 00 A0 D6 00 00 00 00 00 01 0D 8B [10:54:59]RasterBufferAndPrint [10:54:59]line [10:54:59]line [10:54:59]line [10:54:59]line [10:54:59]line [10:54:59]written 0, free lines is 3336 [10:54:59]MH_Cut [10:54:59]Write to MH i2c: D1 01 00 A7 D6 01 4F [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: D1 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: D1 01 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: D1 01 00 A7 D6 00 4E [10:54:59]Write to MH i2c: 01 00 00 A8 D6 7E [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]OFD Sender: No OFD packet to send [10:54:59]*** Cut start [10:54:59]*** Partial cut [10:54:59]*** CUTSNS_PIN = 1 [10:54:59]*** CUTSNS_PIN = 0 [10:55:00]*** Brake cut motor [10:55:00]Read from MH i2c: 01 [10:55:00]MH_I2C_Read... [10:55:00]*** Stop cut motor [10:55:00]*** Cut end [10:55:00]Read from MH i2c: 01 07 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 A8 D6 00 00 00 00 00 FF 0F 93 [10:55:00]process_action close_receipt done [10:55:00]requested_data is exist [10:55:00]produce_requested_data [10:55:00]requested_item fm.sn is exist - process it [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 11 00 00 [10:55:00]Write to MH i2c: E2 08 00 A9 D6 80 11 00 00 00 00 00 00 F9 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 A9 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [10:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:55:00]wFMCommunicate OK [10:55:00]requested_item fd.num is exist - process it [10:55:00]SAM_PROTO_GetFieldsCounters [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 13 00 00 [10:55:00]Write to MH i2c: E2 08 00 AA D6 80 13 00 00 00 00 00 00 FC [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 62 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 62 00 AA D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [10:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_GetFieldsCounters done [10:55:00]requested_item shift.num is exist - process it [10:55:00]requested_item shift.opened is exist - process it [10:55:00]req_shift_opened [10:55:00]FM_GetShiftState [10:55:00]SAM_PROTO_GetShiftState [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 13 01 00 [10:55:00]Write to MH i2c: E2 08 00 AB D6 80 13 01 00 00 00 00 00 FE [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0E 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0E 00 AB D6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 46 [10:55:00]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_GetShiftState done [10:55:00]FM_GetShiftState done [10:55:00]req_shift_opened done [10:55:00]requested_item shift.open_date is exist - process it [10:55:00]req_shift_open_date [10:55:00]req_shift_open_date done [10:55:00]produce_requested_data done [10:55:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165610,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:55:00]process_action_free close_receipt [10:55:00]json_value_free [10:55:00]json_value_free done [10:55:00]process_json_proto returns [10:55:00]Send response to host [10:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165610,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:55:00]free response buf [10:55:00]execute_script done [10:55:00]execute_script returns [10:55:00]free content buf [10:55:00]Sock 7.Close socket [10:55:00]Sock 7.Thread stoped [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:48]accept exits with 9 [10:55:48]New connection [10:55:48]New thread 3066920292 created [10:55:48]Thread 3066776932 joined [10:55:48]Waiting for new connection... [10:55:48] Sock 9.Parse request [10:55:48]Sock 9.Check first char [10:55:48]Sock 9.First char is OK [10:55:48]request: POST /json_proto HTTP/1.0 [10:55:48]Method: POST [10:55:48]URL: /json_proto [10:55:48]Method is POST - this is cgi request [10:55:48]url: /json_proto [10:55:48]query_string will be loaded in cgi processing [10:55:48]execute_cgi json_proto POST (null) [10:55:48]execute_cgi path=json_proto method=POST [10:55:48]POST find Content-Length [10:55:48]Host: 172.17.53.195:8080 [10:55:48]Content-Length: 674 [10:55:48]Content-Type: application/json [10:55:48] [10:55:48]POST finish read [10:55:48]Found Content-Length = 674 [10:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220172", "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" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:48]execute_script... [10:55: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)220172", "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" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:48]POST & json_proto [10:55:48]process_json_proto [10:55:48]json parsed OK: [10:55:48]protocol is kg_v1.0 [10:55:48]action value=close_receipt [10:55:48]process_action close_receipt [10:55:48]cmd_close_receipt [10:55:48]MH_GetDate [10:55:48]Write to MH i2c: F0 00 00 AC D6 71 [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: F0 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: F0 09 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: F0 09 00 AC D6 00 C0 E1 14 67 21 48 4A 65 AE [10:55:48]GetLastDocTimeStamp 1729421708 [10:55:48]current date 1729421760 [10:55:48]FM_GetShiftState [10:55:48]SAM_PROTO_GetShiftState [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 13 01 00 [10:55:48]Write to MH i2c: E2 08 00 AD D6 80 13 01 00 00 00 00 00 00 [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 0E 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 0E 00 AD D6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 48 [10:55:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:55:48]wFMCommunicate OK [10:55:48]SAM_PROTO_GetShiftState done [10:55:48]FM_GetShiftState done [10:55:48]opened in 1729384561 [10:55:48]opened+sec_in_day 1729470961 [10:55:48]quantity*price = 49987 [10:55:48]sum+1 = 49988 [10:55:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 93 20.10.2024 10:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165611 ФПД: 247469014107965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105600&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165611&fm=247469014107965&tin=02508201610067®Number=0000000000091764&sum=49900 [10:55:49]StoreToDocumentArchive [10:55:49]shift 534 fd 165611 [10:55:49]save to /storage/0534/doc_00165611 [10:55:49]save last doc name /storage/0534/doc_00165611 to /storage/kkm_last_doc_name [10:55:49]save OK [10:55:49]Clear old archive folders... [10:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:55:49]tlvbuf is 01616650 [10:55:49]SAM_PROTO_ClearQueue [10:55:49]wFMCommunicate request_size=4 [10:55:49]MH_SAM_APDU [10:55:49]CAPDU: 80 09 00 00 [10:55:49]Write to MH i2c: E2 08 00 BA D6 80 09 00 00 00 00 00 00 02 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 BA D6 00 90 00 04 [10:55:49]RAPDU: 90 00 [10:55:49]wFMCommunicate OK [10:55:49]SAM_PROTO_ClearQueue done [10:55:49]KKMCreateOFDPacket [10:55:49]OFDProtocolAddRootSTLVToBuf [10:55:49]FM_MakeSignedData [10:55:49]FM_MakeSignedData [10:55:49]SAM_PROTO_SignData [10:55:49]wFMCommunicate request_size=4 [10:55:49]MH_SAM_APDU [10:55:49]CAPDU: 80 0D 01 02 [10:55:49]Write to MH i2c: E2 08 00 BB D6 80 0D 01 02 00 00 00 00 0A [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 BB D6 00 90 00 05 [10:55:49]RAPDU: 90 00 [10:55:49]wFMCommunicate OK [10:55:49]wFMCommunicate request_size=255 [10:55:49]MH_SAM_APDU [10:55: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C0 E1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 86 02 00 35 04 06 00 E1 12 5E AD [10:55:49]Write to MH i2c: E2 02 01 BC D6 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C0 E1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 86 02 00 35 04 06 00 E1 12 5E AD 00 00 F7 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]OFD Sender: No OFD packet to send [10:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 BC D6 00 90 00 06 [10:55:49]RAPDU: 90 00 [10:55:49]wFMCommunicate OK [10:55:49]wFMCommunicate request_size=7 [10:55:49]MH_SAM_APDU [10:55:49]CAPDU: 80 0D 02 02 02 C7 3D [10:55:49]Write to MH i2c: E2 0A 00 BD D6 80 0D 02 02 02 00 C7 3D 00 00 15 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 BD D6 00 90 00 07 [10:55:49]RAPDU: 90 00 [10:55:49]wFMCommunicate OK [10:55:49]wFMCommunicate request_size=4 [10:55:49]MH_SAM_APDU [10:55:49]CAPDU: 80 0D 03 02 [10:55:49]Write to MH i2c: E2 08 00 BE D6 80 0D 03 02 00 00 00 00 0F [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 0B 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 0B 00 BE D6 00 06 1F F8 C6 1A 49 53 8A 90 00 33 [10:55:49]RAPDU: 06 1F F8 C6 1A 49 53 8A 90 00 [10:55:49]wFMCommunicate OK [10:55:49]SAM_PROTO_SignData done [10:55:49]FM_MakeSignedData done [10:55:49]CreateOFDProtocolMessage [10:55:49]wFMCommunicate request_size=4 [10:55:49]MH_SAM_APDU [10:55:49]CAPDU: 80 11 00 00 [10:55:49]Write to MH i2c: E2 08 00 BF D6 80 11 00 00 00 00 00 00 0F [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 17 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 17 00 BF D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [10:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:55:49]wFMCommunicate OK [10:55:49]CreateOFDProtocolMessage done [10:55:49]OFDSenderStorePacket 165611 [10:55:49]StoreOFDPacket docnum=165611 [10:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 CC 09 04 01 85 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C0 E1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 86 02 00 35 04 06 00 E1 12 5E AD C7 3D 06 1F F8 C6 1A 49 53 8A [10:55:49]CheckFolder [10:55:49]dirname=/storage/ofd_packets [10:55:49]CheckFolder done [10:55:49]ProducePacketName [10:55:49]name=ofd_packets/00165611 [10:55:49]NVStorageSaveData ofd_packets/00165611 [10:55:49]File name is /storage/ofd_packets/00165611 [10:55:49]Write 298 bytes [10:55:49]NVStorageSaveData done [10:55:49]OFDSenderStorePacket done [10:55:49]KKMCreateOFDPacket done [10:55:49]NVStorageSaveData kkm_last_timestamp [10:55:49]File name is /storage/kkm_last_timestamp [10:55:49]Write 4 bytes [10:55:49]NVStorageSaveData done [10:55:49]ExternCall_PrintAddStr [10:55:49]wPrintStart [10:55:49]Write to MH i2c: 01 00 00 C0 D6 96 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: 01 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: 01 07 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: 01 07 00 C0 D6 00 00 00 00 00 FF 0F AB [10:55:49]RasterBufferAndPrint [10:55:49]line Счет N : (1)220172 [10:55:49]line ИНН: 02508201610067 [10:55:49]line Контрольно-Кассовый Чек [10:55:49]line ПРОДАЖА [10:55:49]line ТРК (МРК, ГНК) : 11 [10:55:49]line Товар: 2710194210 [10:55:49]line ДТ-К-5 [10:55:49]line 6.560 * 76.20 [10:55:49]line = 499.87 [10:55:49]line НДС 12% НСП 1% [10:55:49]line > о реализуемом товаре [10:55:49]line ОКРУГЛЕНИЕ: -0.87 [10:55:49]line ИТОГО: 499.00 [10:55:49]line Внесено: 500.00 [10:55:49]line СДАЧА: 1.00 [10:55:49]line НСП 1% : 4.42 [10:55:49]line НДС 12% : 53.08 [10:55:49]line Наличными: 499.00 [10:55:49]line Безнал.: 0.00 [10:55:49]line Место: АЗС № 161 "Партнер Нефть" [10:55:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:55:49]line СНО: Общий режим [10:55:49]line Чек 93 20.10.2024 10:56 [10:55:49]line Смена: 534 ФФД: 1.0 [10:55:49]line ЗНМ: 0300000104 [10:55:49]line РНМ: 0000000000091764 [10:55:49]line Версия ККМ: 001 [10:55:49]line ФМ: 0000000000871759 [10:55:49]line ФД: 165611 [10:55:49]line ФПД: 247469014107965 [10:55:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105600&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165611&fm=247469014107965&tin=02508201610067®Number=0000000000091764&sum=49900 [10:55:50]OFD Sender: Processing packet 165611 [packets to send 48, broken 47] [10:55:50]ProducePacketName [10:55:50]name=ofd_packets/00165611 [10:55:50]OFD Sender: To server: pG, [10:55:50]CommunicateWithHost lk.salyk.kg:30040 [10:55:50]ConnectInit lk.salyk.kg [10:55:50]written 0, free lines is 4095 [10:55:50]Connected sock=11 [10:55:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 CC 09 04 01 85 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C0 E1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 86 02 00 35 04 06 00 E1 12 5E AD C7 3D 06 1F F8 C6 1A 49 53 8A [10:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 64 54 47 00 BD 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 31 37 35 39 10 04 04 00 EB 86 02 00 F4 03 04 00 32 88 14 67 B6 04 01 00 00 25 BC 08 D9 19 68 E0 1A [10:55:50]CommunicateWithHost err = 0 [10:55:50]CheckOFDResponse [10:55:50]1017 (14) - 77093643461234 [10:55:50]1041 (16) - 0000000000871759 [10:55:50]1040 (4) - 165611 [10:55:50]1012 (4) - 20.10.2024 04:33 [10:55:50]1206 (1) - 0 [10:55:50]OFD Sender: Remove packet 165611 [10:55:50]ProducePacketName [10:55:50]name=ofd_packets/00165611 [10:55:50]NVStorageDeleteData [10:55:50]Write to MH i2c: 01 00 00 EB D6 C1 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 07 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 07 00 EB D6 00 00 00 00 00 D0 0C A4 [10:55:50]RasterBufferAndPrint [10:55:50]line [10:55:50]line [10:55:50]line [10:55:50]line [10:55:50]line [10:55:50]written 0, free lines is 3284 [10:55:50]MH_Cut [10:55:50]Write to MH i2c: D1 01 00 F2 D6 01 9A [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: D1 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: D1 01 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: D1 01 00 F2 D6 00 99 [10:55:50]Write to MH i2c: 01 00 00 F3 D6 C9 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:51]OFD Sender: No OFD packet to send [10:55:51]*** Cut start [10:55:51]*** Partial cut [10:55:51]*** CUTSNS_PIN = 1 [10:55:51]*** CUTSNS_PIN = 0 [10:55:51]*** Brake cut motor [10:55:52]Read from MH i2c: 01 [10:55:52]MH_I2C_Read... [10:55:52]*** Stop cut motor [10:55:52]*** Cut end [10:55:52]Read from MH i2c: 01 07 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: 01 07 00 F3 D6 00 00 00 00 00 FF 0F DE [10:55:52]process_action close_receipt done [10:55:52]requested_data is exist [10:55:52]produce_requested_data [10:55:52]requested_item fm.sn is exist - process it [10:55:52]wFMCommunicate request_size=4 [10:55:52]MH_SAM_APDU [10:55:52]CAPDU: 80 11 00 00 [10:55:52]Write to MH i2c: E2 08 00 F4 D6 80 11 00 00 00 00 00 00 44 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:52]Read from MH i2c: E2 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 17 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 17 00 F4 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [10:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:55:52]wFMCommunicate OK [10:55:52]requested_item fd.num is exist - process it [10:55:52]SAM_PROTO_GetFieldsCounters [10:55:52]wFMCommunicate request_size=4 [10:55:52]MH_SAM_APDU [10:55:52]CAPDU: 80 13 00 00 [10:55:52]Write to MH i2c: E2 08 00 F5 D6 80 13 00 00 00 00 00 00 47 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:52]Read from MH i2c: E2 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 62 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 62 00 F5 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [10:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:52]wFMCommunicate OK [10:55:52]SAM_PROTO_GetFieldsCounters done [10:55:52]requested_item shift.num is exist - process it [10:55:52]requested_item shift.opened is exist - process it [10:55:52]req_shift_opened [10:55:52]FM_GetShiftState [10:55:52]SAM_PROTO_GetShiftState [10:55:52]wFMCommunicate request_size=4 [10:55:52]MH_SAM_APDU [10:55:52]CAPDU: 80 13 01 00 [10:55:52]Write to MH i2c: E2 08 00 F6 D6 80 13 01 00 00 00 00 00 49 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:52]Read from MH i2c: E2 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 0E 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 0E 00 F6 D6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 91 [10:55:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:55:52]wFMCommunicate OK [10:55:52]SAM_PROTO_GetShiftState done [10:55:52]FM_GetShiftState done [10:55:52]req_shift_opened done [10:55:52]requested_item shift.open_date is exist - process it [10:55:52]req_shift_open_date [10:55:52]req_shift_open_date done [10:55:52]produce_requested_data done [10:55:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165611,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:55:52]process_action_free close_receipt [10:55:52]json_value_free [10:55:52]json_value_free done [10:55:52]process_json_proto returns [10:55:52]Send response to host [10:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165611,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:55:52]free response buf [10:55:52]execute_script done [10:55:52]execute_script returns [10:55:52]free content buf [10:55:52]Sock 9.Close socket [10:55:52]Sock 9.Thread stoped [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:23]accept exits with 7 [10:57:23]New connection [10:57:23]New thread 3066776932 created [10:57:23]Thread 3066920292 joined [10:57:23]Waiting for new connection... [10:57:23] Sock 7.Parse request [10:57:23]Sock 7.Check first char [10:57:23]Sock 7.First char is OK [10:57:23]request: POST /json_proto HTTP/1.0 [10:57:23]Method: POST [10:57:23]URL: /json_proto [10:57:23]Method is POST - this is cgi request [10:57:23]url: /json_proto [10:57:23]query_string will be loaded in cgi processing [10:57:23]execute_cgi json_proto POST (null) [10:57:23]execute_cgi path=json_proto method=POST [10:57:23]POST find Content-Length [10:57:23]Host: 172.17.53.195:8080 [10:57:23]Content-Length: 679 [10:57:23]Content-Type: application/json [10:57:23] [10:57:23]POST finish read [10:57:23]Found Content-Length = 679 [10:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220174", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:57:23]execute_script... [10:57: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)220174", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:57:23]POST & json_proto [10:57:23]process_json_proto [10:57:23]json parsed OK: [10:57:23]protocol is kg_v1.0 [10:57:23]action value=close_receipt [10:57:23]process_action close_receipt [10:57:23]cmd_close_receipt [10:57:23]MH_GetDate [10:57:23]Write to MH i2c: F0 00 00 F7 D6 BC [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 09 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 09 00 F7 D6 00 1F E2 14 67 21 48 4A 65 59 [10:57:23]GetLastDocTimeStamp 1729421760 [10:57:23]current date 1729421855 [10:57:23]FM_GetShiftState [10:57:23]SAM_PROTO_GetShiftState [10:57:23]wFMCommunicate request_size=4 [10:57:23]MH_SAM_APDU [10:57:23]CAPDU: 80 13 01 00 [10:57:23]Write to MH i2c: E2 08 00 F8 D6 80 13 01 00 00 00 00 00 4B [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:23]Read from MH i2c: E2 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 0E 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 0E 00 F8 D6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 93 [10:57:23]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:57:23]wFMCommunicate OK [10:57:23]SAM_PROTO_GetShiftState done [10:57:23]FM_GetShiftState done [10:57:23]opened in 1729384561 [10:57:23]opened+sec_in_day 1729470961 [10:57:23]quantity*price = 100050 [10:57:23]sum+1 = 100052 [10:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 94 20.10.2024 10:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165612 ФПД: 135474469527558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105735&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165612&fm=135474469527558&tin=02508201610067®Number=0000000000091764&sum=100000 [10:57:25]StoreToDocumentArchive [10:57:25]shift 534 fd 165612 [10:57:25]save to /storage/0534/doc_00165612 [10:57:25]save last doc name /storage/0534/doc_00165612 to /storage/kkm_last_doc_name [10:57:25]save OK [10:57:25]Clear old archive folders... [10:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:25]tlvbuf is 016C77D0 [10:57:25]SAM_PROTO_ClearQueue [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 09 00 00 [10:57:25]Write to MH i2c: E2 08 00 05 D7 80 09 00 00 00 00 00 00 4E [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 05 D7 00 90 00 50 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]SAM_PROTO_ClearQueue done [10:57:25]KKMCreateOFDPacket [10:57:25]OFDProtocolAddRootSTLVToBuf [10:57:25]FM_MakeSignedData [10:57:25]FM_MakeSignedData [10:57:25]SAM_PROTO_SignData [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 01 02 [10:57:25]Write to MH i2c: E2 08 00 06 D7 80 0D 01 02 00 00 00 00 56 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 06 D7 00 90 00 51 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]wFMCommunicate request_size=255 [10:57:25]MH_SAM_APDU [10:57: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 5E 00 00 00 F4 03 04 00 1F E2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 86 02 00 35 04 06 00 7B 36 9B A1 [10:57:25]Write to MH i2c: E2 02 01 07 D7 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 5E 00 00 00 F4 03 04 00 1F E2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 86 02 00 35 04 06 00 7B 36 9B A1 00 00 35 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 07 D7 00 90 00 52 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]wFMCommunicate request_size=7 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 02 02 02 E0 06 [10:57:25]Write to MH i2c: E2 0A 00 08 D7 80 0D 02 02 02 00 E0 06 00 00 43 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 08 D7 00 90 00 53 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 03 02 [10:57:25]Write to MH i2c: E2 08 00 09 D7 80 0D 03 02 00 00 00 00 5B [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 0B 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 0B 00 09 D7 00 A1 C1 37 34 C3 66 1D 6C 90 00 DB [10:57:25]RAPDU: A1 C1 37 34 C3 66 1D 6C 90 00 [10:57:25]wFMCommunicate OK [10:57:25]SAM_PROTO_SignData done [10:57:25]FM_MakeSignedData done [10:57:25]CreateOFDProtocolMessage [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 11 00 00 [10:57:25]Write to MH i2c: E2 08 00 0A D7 80 11 00 00 00 00 00 00 5B [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 17 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 17 00 0A D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [10:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:57:25]wFMCommunicate OK [10:57:25]CreateOFDProtocolMessage done [10:57:25]OFDSenderStorePacket 165612 [10:57:25]StoreOFDPacket docnum=165612 [10:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E5 75 04 01 8E 10 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 5E 00 00 00 F4 03 04 00 1F E2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 86 02 00 35 04 06 00 7B 36 9B A1 E0 06 A1 C1 37 34 C3 66 1D 6C [10:57:25]CheckFolder [10:57:25]dirname=/storage/ofd_packets [10:57:25]CheckFolder done [10:57:25]ProducePacketName [10:57:25]name=ofd_packets/00165612 [10:57:25]NVStorageSaveData ofd_packets/00165612 [10:57:25]File name is /storage/ofd_packets/00165612 [10:57:25]Write 298 bytes [10:57:25]NVStorageSaveData done [10:57:25]OFDSenderStorePacket done [10:57:25]KKMCreateOFDPacket done [10:57:25]NVStorageSaveData kkm_last_timestamp [10:57:25]File name is /storage/kkm_last_timestamp [10:57:25]Write 4 bytes [10:57:25]NVStorageSaveData done [10:57:25]ExternCall_PrintAddStr [10:57:25]wPrintStart [10:57:25]Write to MH i2c: 01 00 00 0B D7 E2 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 07 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 07 00 0B D7 00 00 00 00 00 FF 0F F7 [10:57:25]RasterBufferAndPrint [10:57:25]line Счет N : (1)220174 [10:57:25]line ИНН: 02508201610067 [10:57:25]line Контрольно-Кассовый Чек [10:57:25]line ПРОДАЖА [10:57:25]line ТРК (МРК, ГНК) : 21 [10:57:25]line Товар: 2710194210 [10:57:25]line ДТ-К-5 [10:57:25]line 13.130 * 76.20 [10:57:25]line = 1000.51 [10:57:25]line НДС 12% НСП 1% [10:57:25]line > о реализуемом товаре [10:57:25]line ОКРУГЛЕНИЕ: -0.51 [10:57:25]line ИТОГО: 1000.00 [10:57:25]line Внесено: 1000.00 [10:57:25]line СДАЧА: 0.00 [10:57:25]line НСП 1% : 8.85 [10:57:25]line НДС 12% : 106.25 [10:57:25]line Наличными: 1000.00 [10:57:25]line Безнал.: 0.00 [10:57:25]line Место: АЗС № 161 "Партнер Нефть" [10:57:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:57:25]line СНО: Общий режим [10:57:25]line Чек 94 20.10.2024 10:57 [10:57:25]line Смена: 534 ФФД: 1.0 [10:57:25]line ЗНМ: 0300000104 [10:57:25]line РНМ: 0000000000091764 [10:57:25]line Версия ККМ: 001 [10:57:25]line ФМ: 0000000000871759 [10:57:25]line ФД: 165612 [10:57:25]line ФПД: 135474469527558 [10:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105735&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165612&fm=135474469527558&tin=02508201610067®Number=0000000000091764&sum=100000 [10:57:25]OFD Sender: Processing packet 165612 [packets to send 48, broken 47] [10:57:25]ProducePacketName [10:57:25]name=ofd_packets/00165612 [10:57:25]OFD Sender: To server: pG, [10:57:25]CommunicateWithHost lk.salyk.kg:30040 [10:57:25]ConnectInit lk.salyk.kg [10:57:25]written 0, free lines is 4095 [10:57:26]Connected sock=10 [10:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E5 75 04 01 8E 10 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 5E 00 00 00 F4 03 04 00 1F E2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 86 02 00 35 04 06 00 7B 36 9B A1 E0 06 A1 C1 37 34 C3 66 1D 6C [10:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 11 0A 47 00 30 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 86 02 00 F4 03 04 00 92 88 14 67 B6 04 01 00 00 1D 52 6B 55 5C 7C AC EA [10:57:26]CommunicateWithHost err = 0 [10:57:26]CheckOFDResponse [10:57:26]1017 (14) - 77093643461234 [10:57:26]1041 (16) - 0000000000871759 [10:57:26]1040 (4) - 165612 [10:57:26]1012 (4) - 20.10.2024 04:35 [10:57:26]1206 (1) - 0 [10:57:26]OFD Sender: Remove packet 165612 [10:57:26]ProducePacketName [10:57:26]name=ofd_packets/00165612 [10:57:26]NVStorageDeleteData [10:57:26]Write to MH i2c: 01 00 00 36 D7 0D [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 36 D7 00 00 00 00 00 CF 0C EF [10:57:26]RasterBufferAndPrint [10:57:26]line [10:57:26]line [10:57:26]line [10:57:26]line [10:57:26]line [10:57:26]written 0, free lines is 3284 [10:57:26]MH_Cut [10:57:26]Write to MH i2c: D1 01 00 3D D7 01 E6 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: D1 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: D1 01 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: D1 01 00 3D D7 00 E5 [10:57:26]Write to MH i2c: 01 00 00 3E D7 15 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]OFD Sender: No OFD packet to send [10:57:27]*** Cut start [10:57:27]*** Partial cut [10:57:27]*** CUTSNS_PIN = 1 [10:57:27]*** CUTSNS_PIN = 0 [10:57:27]*** Brake cut motor [10:57:27]Read from MH i2c: 01 [10:57:27]MH_I2C_Read... [10:57:27]*** Stop cut motor [10:57:27]*** Cut end [10:57:27]Read from MH i2c: 01 07 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: 01 07 00 3E D7 00 00 00 00 00 FF 0F 2A [10:57:27]process_action close_receipt done [10:57:27]requested_data is exist [10:57:27]produce_requested_data [10:57:27]requested_item fm.sn is exist - process it [10:57:27]wFMCommunicate request_size=4 [10:57:27]MH_SAM_APDU [10:57:27]CAPDU: 80 11 00 00 [10:57:27]Write to MH i2c: E2 08 00 3F D7 80 11 00 00 00 00 00 00 90 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:27]Read from MH i2c: E2 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 17 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 17 00 3F D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [10:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:57:27]wFMCommunicate OK [10:57:27]requested_item fd.num is exist - process it [10:57:27]SAM_PROTO_GetFieldsCounters [10:57:27]wFMCommunicate request_size=4 [10:57:27]MH_SAM_APDU [10:57:27]CAPDU: 80 13 00 00 [10:57:27]Write to MH i2c: E2 08 00 40 D7 80 13 00 00 00 00 00 00 93 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:27]Read from MH i2c: E2 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 62 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 62 00 40 D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [10:57:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:27]wFMCommunicate OK [10:57:27]SAM_PROTO_GetFieldsCounters done [10:57:27]requested_item shift.num is exist - process it [10:57:27]requested_item shift.opened is exist - process it [10:57:27]req_shift_opened [10:57:27]FM_GetShiftState [10:57:27]SAM_PROTO_GetShiftState [10:57:27]wFMCommunicate request_size=4 [10:57:27]MH_SAM_APDU [10:57:27]CAPDU: 80 13 01 00 [10:57:27]Write to MH i2c: E2 08 00 41 D7 80 13 01 00 00 00 00 00 95 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 41 D7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DD [10:57:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [10:57:28]wFMCommunicate OK [10:57:28]SAM_PROTO_GetShiftState done [10:57:28]FM_GetShiftState done [10:57:28]req_shift_opened done [10:57:28]requested_item shift.open_date is exist - process it [10:57:28]req_shift_open_date [10:57:28]req_shift_open_date done [10:57:28]produce_requested_data done [10:57:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165612,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [10:57:28]process_action_free close_receipt [10:57:28]json_value_free [10:57:28]json_value_free done [10:57:28]process_json_proto returns [10:57:28]Send response to host [10:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165612,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [10:57:28]free response buf [10:57:28]execute_script done [10:57:28]execute_script returns [10:57:28]free content buf [10:57:28]Sock 7.Close socket [10:57:28]Sock 7.Thread stoped [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]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:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:02:58]accept exits with 9 [11:02:58]New connection [11:02:58]New thread 3066920292 created [11:02:58]Thread 3066776932 joined [11:02:58]Waiting for new connection... [11:02:58] Sock 9.Parse request [11:02:58]Sock 9.Check first char [11:02:58]Sock 9.First char is OK [11:02:58]request: POST /json_proto HTTP/1.0 [11:02:58]Method: POST [11:02:58]URL: /json_proto [11:02:58]Method is POST - this is cgi request [11:02:58]url: /json_proto [11:02:58]query_string will be loaded in cgi processing [11:02:58]execute_cgi json_proto POST (null) [11:02:58]execute_cgi path=json_proto method=POST [11:02:58]POST find Content-Length [11:02:58]Host: 172.17.53.195:8080 [11:02:58]Content-Length: 682 [11:02:58]Content-Type: application/json [11:02:58] [11:02:58]POST finish read [11:02:58]Found Content-Length = 682 [11:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 64.970, "sum" : 4820.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4820.00, "payments": [ { "type": 0, "sum" : 4820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:58]execute_script... [11:02: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)220173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 64.970, "sum" : 4820.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4820.00, "payments": [ { "type": 0, "sum" : 4820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:58]POST & json_proto [11:02:58]process_json_proto [11:02:58]json parsed OK: [11:02:58]protocol is kg_v1.0 [11:02:58]action value=close_receipt [11:02:58]process_action close_receipt [11:02:58]cmd_close_receipt [11:02:58]MH_GetDate [11:02:58]Write to MH i2c: F0 00 00 42 D7 08 [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: F0 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: F0 09 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: F0 09 00 42 D7 00 6D E3 14 67 21 48 4A 65 F4 [11:02:58]GetLastDocTimeStamp 1729421855 [11:02:58]current date 1729422189 [11:02:58]FM_GetShiftState [11:02:58]SAM_PROTO_GetShiftState [11:02:58]wFMCommunicate request_size=4 [11:02:58]MH_SAM_APDU [11:02:58]CAPDU: 80 13 01 00 [11:02:58]Write to MH i2c: E2 08 00 43 D7 80 13 01 00 00 00 00 00 97 [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:58]Read from MH i2c: E2 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 0E 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 0E 00 43 D7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DF [11:02:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:02:58]wFMCommunicate OK [11:02:58]SAM_PROTO_GetShiftState done [11:02:58]FM_GetShiftState done [11:02:58]opened in 1729384561 [11:02:58]opened+sec_in_day 1729470961 [11:02:58]quantity*price = 482077 [11:02:58]sum+1 = 482078 [11:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 4820.00 Внесено: 5000.00 СДАЧА: 180.00 НСП 1% : 42.66 НДС 12% : 511.94 Наличными: 4820.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 95 20.10.2024 11:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165613 ФПД: 87773161507170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110310&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165613&fm=87773161507170&tin=02508201610067®Number=0000000000091764&sum=482000 [11:02:59]StoreToDocumentArchive [11:02:59]shift 534 fd 165613 [11:02:59]save to /storage/0534/doc_00165613 [11:02:59]save last doc name /storage/0534/doc_00165613 to /storage/kkm_last_doc_name [11:02:59]save OK [11:02:59]Clear old archive folders... [11:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:59]tlvbuf is 015FCBB0 [11:02:59]SAM_PROTO_ClearQueue [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 09 00 00 [11:02:59]Write to MH i2c: E2 08 00 50 D7 80 09 00 00 00 00 00 00 99 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 50 D7 00 90 00 9B [11:02:59]RAPDU: 90 00 [11:02:59]wFMCommunicate OK [11:02:59]SAM_PROTO_ClearQueue done [11:02:59]KKMCreateOFDPacket [11:02:59]OFDProtocolAddRootSTLVToBuf [11:02:59]FM_MakeSignedData [11:02:59]FM_MakeSignedData [11:02:59]SAM_PROTO_SignData [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 0D 01 02 [11:02:59]Write to MH i2c: E2 08 00 51 D7 80 0D 01 02 00 00 00 00 A1 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 51 D7 00 90 00 9C [11:02:59]RAPDU: 90 00 [11:02:59]wFMCommunicate OK [11:02:59]wFMCommunicate request_size=255 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA FD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1D 5B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 5A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA C7 00 00 00 00 07 04 06 00 D0 5A 07 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 6E E3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 86 02 00 35 04 06 00 4F [11:02:59]Write to MH i2c: E2 02 01 52 D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA FD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1D 5B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 5A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA C7 00 00 00 00 07 04 06 00 D0 5A 07 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 6E E3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 86 02 00 35 04 06 00 4F 00 00 F8 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 52 D7 00 90 00 9D [11:02:59]RAPDU: 90 00 [11:02:59]wFMCommunicate OK [11:02:59]wFMCommunicate request_size=10 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 0D 02 02 05 D4 48 1C C9 62 [11:02:59]Write to MH i2c: E2 0D 00 53 D7 80 0D 02 02 05 00 D4 48 1C C9 62 00 00 11 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 53 D7 00 90 00 9E [11:02:59]RAPDU: 90 00 [11:02:59]wFMCommunicate OK [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 0D 03 02 [11:02:59]Write to MH i2c: E2 08 00 54 D7 80 0D 03 02 00 00 00 00 A6 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 0B 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 0B 00 54 D7 00 04 11 AD 9E C4 D0 1A 42 90 00 F7 [11:02:59]RAPDU: 04 11 AD 9E C4 D0 1A 42 90 00 [11:02:59]wFMCommunicate OK [11:02:59]SAM_PROTO_SignData done [11:02:59]FM_MakeSignedData done [11:02:59]CreateOFDProtocolMessage [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 11 00 00 [11:02:59]Write to MH i2c: E2 08 00 55 D7 80 11 00 00 00 00 00 00 A6 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 17 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 17 00 55 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [11:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:02:59]wFMCommunicate OK [11:02:59]CreateOFDProtocolMessage done [11:02:59]OFDSenderStorePacket 165613 [11:02:59]StoreOFDPacket docnum=165613 [11:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 06 71 07 01 76 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA FD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1D 5B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 5A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA C7 00 00 00 00 07 04 06 00 D0 5A 07 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 6E E3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 86 02 00 35 04 06 00 4F D4 48 1C C9 62 04 11 AD 9E C4 D0 1A 42 [11:02:59]CheckFolder [11:02:59]dirname=/storage/ofd_packets [11:02:59]CheckFolder done [11:02:59]ProducePacketName [11:02:59]name=ofd_packets/00165613 [11:02:59]NVStorageSaveData ofd_packets/00165613 [11:02:59]File name is /storage/ofd_packets/00165613 [11:02:59]Write 301 bytes [11:02:59]NVStorageSaveData done [11:02:59]OFDSenderStorePacket done [11:02:59]KKMCreateOFDPacket done [11:02:59]NVStorageSaveData kkm_last_timestamp [11:02:59]File name is /storage/kkm_last_timestamp [11:02:59]Write 4 bytes [11:02:59]NVStorageSaveData done [11:02:59]ExternCall_PrintAddStr [11:02:59]wPrintStart [11:02:59]Write to MH i2c: 01 00 00 56 D7 2D [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: 01 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: 01 07 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: 01 07 00 56 D7 00 00 00 00 00 FF 0F 42 [11:02:59]RasterBufferAndPrint [11:02:59]line Счет N : (1)220173 [11:02:59]line ИНН: 02508201610067 [11:02:59]line Контрольно-Кассовый Чек [11:02:59]line ПРОДАЖА [11:02:59]line ТРК (МРК, ГНК) : 34 [11:02:59]line Товар: 2710124500 [11:02:59]line Аи-95-К-5 [11:02:59]line 64.970 * 74.20 [11:02:59]line = 4820.77 [11:02:59]line НДС 12% НСП 1% [11:02:59]line > о реализуемом товаре [11:02:59]line ОКРУГЛЕНИЕ: -0.77 [11:02:59]line ИТОГО: 4820.00 [11:02:59]line Внесено: 5000.00 [11:02:59]line СДАЧА: 180.00 [11:02:59]line НСП 1% : 42.66 [11:02:59]line НДС 12% : 511.94 [11:02:59]line Наличными: 4820.00 [11:02:59]line Безнал.: 0.00 [11:02:59]line Место: АЗС № 161 "Партнер Нефть" [11:02:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:02:59]line СНО: Общий режим [11:02:59]line Чек 95 20.10.2024 11:03 [11:02:59]line Смена: 534 ФФД: 1.0 [11:02:59]line ЗНМ: 0300000104 [11:02:59]line РНМ: 0000000000091764 [11:02:59]line Версия ККМ: 001 [11:02:59]line ФМ: 0000000000871759 [11:02:59]line ФД: 165613 [11:02:59]line ФПД: 87773161507170 [11:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110310&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165613&fm=87773161507170&tin=02508201610067®Number=0000000000091764&sum=482000 [11:03:00]OFD Sender: Processing packet 165613 [packets to send 48, broken 47] [11:03:00]ProducePacketName [11:03:00]name=ofd_packets/00165613 [11:03:00]OFD Sender: To server: pG, [11:03:00]CommunicateWithHost lk.salyk.kg:30040 [11:03:00]ConnectInit lk.salyk.kg [11:03:00]written 0, free lines is 4095 [11:03:00]Connected sock=10 [11:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 06 71 07 01 76 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA FD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1D 5B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 5A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA C7 00 00 00 00 07 04 06 00 D0 5A 07 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 6E E3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 86 02 00 35 04 06 00 4F D4 48 1C C9 62 04 11 AD 9E C4 D0 1A 42 [11:03:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 31 F4 47 00 F9 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 86 02 00 F4 03 04 00 E0 89 14 67 B6 04 01 00 00 07 C9 07 40 FC 0F 72 0B [11:03:00]CommunicateWithHost err = 0 [11:03:00]CheckOFDResponse [11:03:00]1017 (14) - 77093643461234 [11:03:00]1041 (16) - 0000000000871759 [11:03:00]1040 (4) - 165613 [11:03:00]1012 (4) - 20.10.2024 04:41 [11:03:00]1206 (1) - 0 [11:03:00]OFD Sender: Remove packet 165613 [11:03:00]ProducePacketName [11:03:00]name=ofd_packets/00165613 [11:03:00]NVStorageDeleteData [11:03:00]Write to MH i2c: 01 00 00 81 D7 58 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: 01 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: 01 07 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: 01 07 00 81 D7 00 00 00 00 00 D8 0C 43 [11:03:00]RasterBufferAndPrint [11:03:00]line [11:03:00]line [11:03:00]line [11:03:00]line [11:03:00]line [11:03:00]written 0, free lines is 3294 [11:03:00]MH_Cut [11:03:00]Write to MH i2c: D1 01 00 88 D7 01 31 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: D1 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: D1 01 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: D1 01 00 88 D7 00 30 [11:03:00]Write to MH i2c: 01 00 00 89 D7 60 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]OFD Sender: No OFD packet to send [11:03:01]*** Cut start [11:03:01]*** Partial cut [11:03:01]*** CUTSNS_PIN = 1 [11:03:01]*** CUTSNS_PIN = 0 [11:03:01]*** Brake cut motor [11:03:01]Read from MH i2c: 01 [11:03:01]MH_I2C_Read... [11:03:01]*** Stop cut motor [11:03:01]*** Cut end [11:03:01]Read from MH i2c: 01 07 00 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: 01 07 00 89 D7 00 00 00 00 00 FF 0F 75 [11:03:01]process_action close_receipt done [11:03:01]requested_data is exist [11:03:01]produce_requested_data [11:03:01]requested_item fm.sn is exist - process it [11:03:01]wFMCommunicate request_size=4 [11:03:01]MH_SAM_APDU [11:03:01]CAPDU: 80 11 00 00 [11:03:01]Write to MH i2c: E2 08 00 8A D7 80 11 00 00 00 00 00 00 DB [11:03:01]Write i2c OK [11:03:01]MH_I2C_Read... [11:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:01]Read from MH i2c: E2 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: E2 17 00 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: E2 17 00 8A D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [11:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:03:01]wFMCommunicate OK [11:03:01]requested_item fd.num is exist - process it [11:03:01]SAM_PROTO_GetFieldsCounters [11:03:01]wFMCommunicate request_size=4 [11:03:01]MH_SAM_APDU [11:03:01]CAPDU: 80 13 00 00 [11:03:01]Write to MH i2c: E2 08 00 8B D7 80 13 00 00 00 00 00 00 DE [11:03:01]Write i2c OK [11:03:01]MH_I2C_Read... [11:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:02]Read from MH i2c: E2 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 62 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 62 00 8B D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:03:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:02]wFMCommunicate OK [11:03:02]SAM_PROTO_GetFieldsCounters done [11:03:02]requested_item shift.num is exist - process it [11:03:02]requested_item shift.opened is exist - process it [11:03:02]req_shift_opened [11:03:02]FM_GetShiftState [11:03:02]SAM_PROTO_GetShiftState [11:03:02]wFMCommunicate request_size=4 [11:03:02]MH_SAM_APDU [11:03:02]CAPDU: 80 13 01 00 [11:03:02]Write to MH i2c: E2 08 00 8C D7 80 13 01 00 00 00 00 00 E0 [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:02]Read from MH i2c: E2 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 0E 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 0E 00 8C D7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 28 [11:03:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:03:02]wFMCommunicate OK [11:03:02]SAM_PROTO_GetShiftState done [11:03:02]FM_GetShiftState done [11:03:02]req_shift_opened done [11:03:02]requested_item shift.open_date is exist - process it [11:03:02]req_shift_open_date [11:03:02]req_shift_open_date done [11:03:02]produce_requested_data done [11:03:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165613,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:03:02]process_action_free close_receipt [11:03:02]json_value_free [11:03:02]json_value_free done [11:03:02]process_json_proto returns [11:03:02]Send response to host [11:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165613,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:03:02]free response buf [11:03:02]execute_script done [11:03:02]execute_script returns [11:03:02]free content buf [11:03:02]Sock 9.Close socket [11:03:02]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [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:54]accept exits with 7 [11:04:54]New connection [11:04:54]New thread 3066776932 created [11:04:54]Thread 3066920292 joined [11:04:54]Waiting for new connection... [11:04:54] Sock 7.Parse request [11:04:54]Sock 7.Check first char [11:04:54]Sock 7.First char is OK [11:04:54]request: POST /json_proto HTTP/1.0 [11:04:54]Method: POST [11:04:54]URL: /json_proto [11:04:54]Method is POST - this is cgi request [11:04:54]url: /json_proto [11:04:54]query_string will be loaded in cgi processing [11:04:54]execute_cgi json_proto POST (null) [11:04:54]execute_cgi path=json_proto method=POST [11:04:54]POST find Content-Length [11:04:54]Host: 172.17.53.195:8080 [11:04:54]Content-Length: 677 [11:04:54]Content-Type: application/json [11:04:54] [11:04:54]POST finish read [11:04:54]Found Content-Length = 677 [11:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:54]execute_script... [11:04: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)220175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:54]POST & json_proto [11:04:54]process_json_proto [11:04:54]json parsed OK: [11:04:54]protocol is kg_v1.0 [11:04:54]action value=close_receipt [11:04:54]process_action close_receipt [11:04:54]cmd_close_receipt [11:04:54]MH_GetDate [11:04:54]Write to MH i2c: F0 00 00 8D D7 53 [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: F0 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: F0 09 00 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: F0 09 00 8D D7 00 E2 E3 14 67 21 48 4A 65 B4 [11:04:54]GetLastDocTimeStamp 1729422190 [11:04:54]current date 1729422306 [11:04:54]FM_GetShiftState [11:04:54]SAM_PROTO_GetShiftState [11:04:54]wFMCommunicate request_size=4 [11:04:54]MH_SAM_APDU [11:04:54]CAPDU: 80 13 01 00 [11:04:54]Write to MH i2c: E2 08 00 8E D7 80 13 01 00 00 00 00 00 E2 [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:54]Read from MH i2c: E2 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 0E 00 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 0E 00 8E D7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2A [11:04:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:04:54]wFMCommunicate OK [11:04:54]SAM_PROTO_GetShiftState done [11:04:54]FM_GetShiftState done [11:04:54]opened in 1729384561 [11:04:54]opened+sec_in_day 1729470961 [11:04:54]quantity*price = 40006 [11:04:54]sum+1 = 40007 [11:04: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 96 20.10.2024 11:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165614 ФПД: 58987930546896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165614&fm=58987930546896&tin=02508201610067®Number=0000000000091764&sum=40000 [11:04:55]StoreToDocumentArchive [11:04:55]shift 534 fd 165614 [11:04:55]save to /storage/0534/doc_00165614 [11:04:55]save last doc name /storage/0534/doc_00165614 to /storage/kkm_last_doc_name [11:04:55]save OK [11:04:55]Clear old archive folders... [11:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:55]tlvbuf is 016E4BC0 [11:04:55]SAM_PROTO_ClearQueue [11:04:55]wFMCommunicate request_size=4 [11:04:55]MH_SAM_APDU [11:04:55]CAPDU: 80 09 00 00 [11:04:55]Write to MH i2c: E2 08 00 9B D7 80 09 00 00 00 00 00 00 E4 [11:04:55]Write i2c OK [11:04:55]MH_I2C_Read... [11:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:55]OFD Sender: No OFD packet to send [11:04:55]Read from MH i2c: E2 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: E2 03 00 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: E2 03 00 9B D7 00 90 00 E6 [11:04:55]RAPDU: 90 00 [11:04:55]wFMCommunicate OK [11:04:55]SAM_PROTO_ClearQueue done [11:04:55]KKMCreateOFDPacket [11:04:55]OFDProtocolAddRootSTLVToBuf [11:04:55]FM_MakeSignedData [11:04:55]FM_MakeSignedData [11:04:55]SAM_PROTO_SignData [11:04:55]wFMCommunicate request_size=4 [11:04:55]MH_SAM_APDU [11:04:55]CAPDU: 80 0D 01 02 [11:04:55]Write to MH i2c: E2 08 00 9C D7 80 0D 01 02 00 00 00 00 EC [11:04:55]Write i2c OK [11:04:55]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 03 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 03 00 9C D7 00 90 00 E7 [11:04:56]RAPDU: 90 00 [11:04:56]wFMCommunicate OK [11:04:56]wFMCommunicate request_size=255 [11:04:56]MH_SAM_APDU [11:04: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 E2 E3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 86 02 00 35 04 06 00 35 [11:04:56]Write to MH i2c: E2 02 01 9D D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 E2 E3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 86 02 00 35 04 06 00 35 00 00 B4 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 03 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 03 00 9D D7 00 90 00 E8 [11:04:56]RAPDU: 90 00 [11:04:56]wFMCommunicate OK [11:04:56]wFMCommunicate request_size=10 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 0D 02 02 05 A6 32 A5 72 D0 [11:04:56]Write to MH i2c: E2 0D 00 9E D7 80 0D 02 02 05 00 A6 32 A5 72 D0 00 00 B8 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 03 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 03 00 9E D7 00 90 00 E9 [11:04:56]RAPDU: 90 00 [11:04:56]wFMCommunicate OK [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 0D 03 02 [11:04:56]Write to MH i2c: E2 08 00 9F D7 80 0D 03 02 00 00 00 00 F1 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 0B 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 0B 00 9F D7 00 9B 6C 3B AF D9 ED BF AC 90 00 14 [11:04:56]RAPDU: 9B 6C 3B AF D9 ED BF AC 90 00 [11:04:56]wFMCommunicate OK [11:04:56]SAM_PROTO_SignData done [11:04:56]FM_MakeSignedData done [11:04:56]CreateOFDProtocolMessage [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 11 00 00 [11:04:56]Write to MH i2c: E2 08 00 A0 D7 80 11 00 00 00 00 00 00 F1 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 17 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 17 00 A0 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 49 [11:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:04:56]wFMCommunicate OK [11:04:56]CreateOFDProtocolMessage done [11:04:56]OFDSenderStorePacket 165614 [11:04:56]StoreOFDPacket docnum=165614 [11:04:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 FC 07 01 B2 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 E2 E3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 86 02 00 35 04 06 00 35 A6 32 A5 72 D0 9B 6C 3B AF D9 ED BF AC [11:04:56]CheckFolder [11:04:56]dirname=/storage/ofd_packets [11:04:56]CheckFolder done [11:04:56]ProducePacketName [11:04:56]name=ofd_packets/00165614 [11:04:56]NVStorageSaveData ofd_packets/00165614 [11:04:56]File name is /storage/ofd_packets/00165614 [11:04:56]Write 301 bytes [11:04:56]NVStorageSaveData done [11:04:56]OFDSenderStorePacket done [11:04:56]KKMCreateOFDPacket done [11:04:56]NVStorageSaveData kkm_last_timestamp [11:04:56]File name is /storage/kkm_last_timestamp [11:04:56]Write 4 bytes [11:04:56]NVStorageSaveData done [11:04:56]ExternCall_PrintAddStr [11:04:56]wPrintStart [11:04:56]Write to MH i2c: 01 00 00 A1 D7 78 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: 01 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: 01 07 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: 01 07 00 A1 D7 00 00 00 00 00 FF 0F 8D [11:04:56]RasterBufferAndPrint [11:04:56]line Счет N : (1)220175 [11:04:56]line ИНН: 02508201610067 [11:04:56]line Контрольно-Кассовый Чек [11:04:56]line ПРОДАЖА [11:04:56]line ТРК (МРК, ГНК) : 23 [11:04:56]line Товар: 2710124130 [11:04:56]line Аи-92-К-5 [11:04:56]line 5.980 * 66.90 [11:04:56]line = 400.06 [11:04:56]line НДС 12% НСП 1% [11:04:56]line > о реализуемом товаре [11:04:56]line ОКРУГЛЕНИЕ: -0.06 [11:04:56]line ИТОГО: 400.00 [11:04:56]line Внесено: 400.00 [11:04:56]line СДАЧА: 0.00 [11:04:56]line НСП 1% : 3.54 [11:04:56]line НДС 12% : 42.48 [11:04:56]line Наличными: 400.00 [11:04:56]line Безнал.: 0.00 [11:04:56]line Место: АЗС № 161 "Партнер Нефть" [11:04:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:04:56]line СНО: Общий режим [11:04:56]line Чек 96 20.10.2024 11:05 [11:04:56]line Смена: 534 ФФД: 1.0 [11:04:56]line ЗНМ: 0300000104 [11:04:56]line РНМ: 0000000000091764 [11:04:56]line Версия ККМ: 001 [11:04:56]line ФМ: 0000000000871759 [11:04:56]line ФД: 165614 [11:04:56]line ФПД: 58987930546896 [11:04:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165614&fm=58987930546896&tin=02508201610067®Number=0000000000091764&sum=40000 [11:04:56]OFD Sender: Processing packet 165614 [packets to send 48, broken 47] [11:04:56]ProducePacketName [11:04:56]name=ofd_packets/00165614 [11:04:56]OFD Sender: To server: pG, [11:04:56]CommunicateWithHost lk.salyk.kg:30040 [11:04:56]ConnectInit lk.salyk.kg [11:04:56]written 0, free lines is 4095 [11:04:56]Connected sock=10 [11:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 FC 07 01 B2 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 E2 E3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 86 02 00 35 04 06 00 35 A6 32 A5 72 D0 9B 6C 3B AF D9 ED BF AC [11:04:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 48 3A 47 00 A7 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 31 37 35 39 10 04 04 00 EE 86 02 00 F4 03 04 00 54 8A 14 67 B6 04 01 00 00 73 47 3F 74 33 E5 F8 F7 [11:04:57]CommunicateWithHost err = 0 [11:04:57]CheckOFDResponse [11:04:57]1017 (14) - 77093643461234 [11:04:57]1041 (16) - 0000000000871759 [11:04:57]1040 (4) - 165614 [11:04:57]1012 (4) - 20.10.2024 04:43 [11:04:57]1206 (1) - 0 [11:04:57]OFD Sender: Remove packet 165614 [11:04:57]ProducePacketName [11:04:57]name=ofd_packets/00165614 [11:04:57]NVStorageDeleteData [11:04:57]Write to MH i2c: 01 00 00 CC D7 A3 [11:04:57]Write i2c OK [11:04:57]MH_I2C_Read... [11:04:57]Read from MH i2c: 01 [11:04:57]MH_I2C_Read... [11:04:57]Read from MH i2c: 01 07 00 [11:04:57]MH_I2C_Read... [11:04:57]Read from MH i2c: 01 07 00 CC D7 00 00 00 00 00 C2 0C 78 [11:04:57]RasterBufferAndPrint [11:04:57]line [11:04:57]line [11:04:57]line [11:04:57]line [11:04:57]line [11:04:57]written 0, free lines is 3272 [11:04:57]MH_Cut [11:04:57]Write to MH i2c: D1 01 00 D3 D7 01 7C [11:04:57]Write i2c OK [11:04:57]MH_I2C_Read... [11:04:57]Read from MH i2c: D1 [11:04:57]MH_I2C_Read... [11:04:57]Read from MH i2c: D1 01 00 [11:04:57]MH_I2C_Read... [11:04:57]Read from MH i2c: D1 01 00 D3 D7 00 7B [11:04:57]Write to MH i2c: 01 00 00 D4 D7 AB [11:04:57]Write i2c OK [11:04:57]MH_I2C_Read... [11:04:57]OFD Sender: No OFD packet to send [11:04:58]*** Cut start [11:04:58]*** Partial cut [11:04:58]*** CUTSNS_PIN = 1 [11:04:58]*** CUTSNS_PIN = 0 [11:04:58]*** Brake cut motor [11:04:58]Read from MH i2c: 01 [11:04:58]MH_I2C_Read... [11:04:58]*** Stop cut motor [11:04:58]*** Cut end [11:04:58]Read from MH i2c: 01 07 00 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: 01 07 00 D4 D7 00 00 00 00 00 FF 0F C0 [11:04:58]process_action close_receipt done [11:04:58]requested_data is exist [11:04:58]produce_requested_data [11:04:58]requested_item fm.sn is exist - process it [11:04:58]wFMCommunicate request_size=4 [11:04:58]MH_SAM_APDU [11:04:58]CAPDU: 80 11 00 00 [11:04:58]Write to MH i2c: E2 08 00 D5 D7 80 11 00 00 00 00 00 00 26 [11:04:58]Write i2c OK [11:04:58]MH_I2C_Read... [11:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:58]Read from MH i2c: E2 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: E2 17 00 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: E2 17 00 D5 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [11:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:04:58]wFMCommunicate OK [11:04:58]requested_item fd.num is exist - process it [11:04:58]SAM_PROTO_GetFieldsCounters [11:04:58]wFMCommunicate request_size=4 [11:04:58]MH_SAM_APDU [11:04:58]CAPDU: 80 13 00 00 [11:04:58]Write to MH i2c: E2 08 00 D6 D7 80 13 00 00 00 00 00 00 29 [11:04:58]Write i2c OK [11:04:58]MH_I2C_Read... [11:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:58]Read from MH i2c: E2 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: E2 62 00 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: E2 62 00 D6 D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [11:04:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:58]wFMCommunicate OK [11:04:58]SAM_PROTO_GetFieldsCounters done [11:04:58]requested_item shift.num is exist - process it [11:04:58]requested_item shift.opened is exist - process it [11:04:58]req_shift_opened [11:04:58]FM_GetShiftState [11:04:58]SAM_PROTO_GetShiftState [11:04:58]wFMCommunicate request_size=4 [11:04:58]MH_SAM_APDU [11:04:58]CAPDU: 80 13 01 00 [11:04:58]Write to MH i2c: E2 08 00 D7 D7 80 13 01 00 00 00 00 00 2B [11:04:58]Write i2c OK [11:04:58]MH_I2C_Read... [11:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:58]Read from MH i2c: E2 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: E2 0E 00 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: E2 0E 00 D7 D7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 73 [11:04:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:04:58]wFMCommunicate OK [11:04:58]SAM_PROTO_GetShiftState done [11:04:58]FM_GetShiftState done [11:04:58]req_shift_opened done [11:04:58]requested_item shift.open_date is exist - process it [11:04:58]req_shift_open_date [11:04:58]req_shift_open_date done [11:04:58]produce_requested_data done [11:04:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165614,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:04:58]process_action_free close_receipt [11:04:58]json_value_free [11:04:58]json_value_free done [11:04:58]process_json_proto returns [11:04:58]Send response to host [11:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165614,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:04:58]free response buf [11:04:58]execute_script done [11:04:58]execute_script returns [11:04:58]free content buf [11:04:58]Sock 7.Close socket [11:04:58]Sock 7.Thread stoped [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]accept exits with 9 [11:07:17]New connection [11:07:17]New thread 3066920292 created [11:07:17]Thread 3066776932 joined [11:07:17]Waiting for new connection... [11:07:17] Sock 9.Parse request [11:07:17]Sock 9.Check first char [11:07:17]Sock 9.First char is OK [11:07:17]request: POST /json_proto HTTP/1.0 [11:07:17]Method: POST [11:07:17]URL: /json_proto [11:07:17]Method is POST - this is cgi request [11:07:17]url: /json_proto [11:07:17]query_string will be loaded in cgi processing [11:07:17]execute_cgi json_proto POST (null) [11:07:17]execute_cgi path=json_proto method=POST [11:07:17]POST find Content-Length [11:07:17]Host: 172.17.53.195:8080 [11:07:17]Content-Length: 677 [11:07:17]Content-Type: application/json [11:07:17] [11:07:17]POST finish read [11:07:17]Found Content-Length = 677 [11:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "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" ] } } [11:07:17]execute_script... [11:07: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)220176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "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" ] } } [11:07:17]POST & json_proto [11:07:17]process_json_proto [11:07:17]json parsed OK: [11:07:17]protocol is kg_v1.0 [11:07:17]action value=close_receipt [11:07:17]process_action close_receipt [11:07:17]cmd_close_receipt [11:07:17]MH_GetDate [11:07:17]Write to MH i2c: F0 00 00 D8 D7 9E [11:07:17]Write i2c OK [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: F0 [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: F0 09 00 [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: F0 09 00 D8 D7 00 71 E4 14 67 21 48 4A 65 8F [11:07:17]GetLastDocTimeStamp 1729422306 [11:07:17]current date 1729422449 [11:07:17]FM_GetShiftState [11:07:17]SAM_PROTO_GetShiftState [11:07:17]wFMCommunicate request_size=4 [11:07:17]MH_SAM_APDU [11:07:17]CAPDU: 80 13 01 00 [11:07:17]Write to MH i2c: E2 08 00 D9 D7 80 13 01 00 00 00 00 00 2D [11:07:17]Write i2c OK [11:07:17]MH_I2C_Read... [11:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:17]Read from MH i2c: E2 [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: E2 0E 00 [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: E2 0E 00 D9 D7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 75 [11:07:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:07:17]wFMCommunicate OK [11:07:17]SAM_PROTO_GetShiftState done [11:07:17]FM_GetShiftState done [11:07:17]opened in 1729384561 [11:07:17]opened+sec_in_day 1729470961 [11:07:17]quantity*price = 14049 [11:07:17]sum+1 = 14050 [11:07:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 97 20.10.2024 11:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165615 ФПД: 268658743149305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110729&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165615&fm=268658743149305&tin=02508201610067®Number=0000000000091764&sum=14000 [11:07:18]StoreToDocumentArchive [11:07:18]shift 534 fd 165615 [11:07:18]save to /storage/0534/doc_00165615 [11:07:18]save last doc name /storage/0534/doc_00165615 to /storage/kkm_last_doc_name [11:07:18]save OK [11:07:18]Clear old archive folders... [11:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:18]tlvbuf is 0162EF30 [11:07:18]SAM_PROTO_ClearQueue [11:07:18]wFMCommunicate request_size=4 [11:07:18]MH_SAM_APDU [11:07:18]CAPDU: 80 09 00 00 [11:07:18]Write to MH i2c: E2 08 00 E6 D7 80 09 00 00 00 00 00 00 2F [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:18]Read from MH i2c: E2 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 03 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 03 00 E6 D7 00 90 00 31 [11:07:18]RAPDU: 90 00 [11:07:18]wFMCommunicate OK [11:07:18]SAM_PROTO_ClearQueue done [11:07:18]KKMCreateOFDPacket [11:07:18]OFDProtocolAddRootSTLVToBuf [11:07:18]FM_MakeSignedData [11:07:18]FM_MakeSignedData [11:07:18]SAM_PROTO_SignData [11:07:18]wFMCommunicate request_size=4 [11:07:18]MH_SAM_APDU [11:07:18]CAPDU: 80 0D 01 02 [11:07:18]Write to MH i2c: E2 08 00 E7 D7 80 0D 01 02 00 00 00 00 37 [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:18]Read from MH i2c: E2 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 03 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 03 00 E7 D7 00 90 00 32 [11:07:18]RAPDU: 90 00 [11:07:18]wFMCommunicate OK [11:07:18]wFMCommunicate request_size=255 [11:07:18]MH_SAM_APDU [11:07: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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 61 00 00 00 F4 03 04 00 71 E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 86 02 00 35 04 06 00 F4 [11:07:18]Write to MH i2c: E2 02 01 E8 D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 61 00 00 00 F4 03 04 00 71 E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 86 02 00 35 04 06 00 F4 00 00 AC [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:19]Read from MH i2c: E2 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: E2 03 00 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: E2 03 00 E8 D7 00 90 00 33 [11:07:19]RAPDU: 90 00 [11:07:19]wFMCommunicate OK [11:07:19]wFMCommunicate request_size=10 [11:07:19]MH_SAM_APDU [11:07:19]CAPDU: 80 0D 02 02 05 57 FC F3 82 F9 [11:07:19]Write to MH i2c: E2 0D 00 E9 D7 80 0D 02 02 05 00 57 FC F3 82 F9 00 00 05 [11:07:19]Write i2c OK [11:07:19]MH_I2C_Read... [11:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:19]Read from MH i2c: E2 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: E2 03 00 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: E2 03 00 E9 D7 00 90 00 34 [11:07:19]RAPDU: 90 00 [11:07:19]wFMCommunicate OK [11:07:19]wFMCommunicate request_size=4 [11:07:19]MH_SAM_APDU [11:07:19]CAPDU: 80 0D 03 02 [11:07:19]Write to MH i2c: E2 08 00 EA D7 80 0D 03 02 00 00 00 00 3C [11:07:19]Write i2c OK [11:07:19]MH_I2C_Read... [11:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:19]Read from MH i2c: E2 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: E2 0B 00 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: E2 0B 00 EA D7 00 FB 04 CD B2 4E E3 84 82 90 00 F2 [11:07:19]RAPDU: FB 04 CD B2 4E E3 84 82 90 00 [11:07:19]wFMCommunicate OK [11:07:19]SAM_PROTO_SignData done [11:07:19]FM_MakeSignedData done [11:07:19]CreateOFDProtocolMessage [11:07:19]wFMCommunicate request_size=4 [11:07:19]MH_SAM_APDU [11:07:19]CAPDU: 80 11 00 00 [11:07:19]Write to MH i2c: E2 08 00 EB D7 80 11 00 00 00 00 00 00 3C [11:07:19]Write i2c OK [11:07:19]MH_I2C_Read... [11:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:19]Read from MH i2c: E2 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: E2 17 00 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: E2 17 00 EB D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [11:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:07:19]wFMCommunicate OK [11:07:19]CreateOFDProtocolMessage done [11:07:19]OFDSenderStorePacket 165615 [11:07:19]StoreOFDPacket docnum=165615 [11:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 5E 07 01 A8 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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 61 00 00 00 F4 03 04 00 71 E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 86 02 00 35 04 06 00 F4 57 FC F3 82 F9 FB 04 CD B2 4E E3 84 82 [11:07:19]CheckFolder [11:07:19]dirname=/storage/ofd_packets [11:07:19]CheckFolder done [11:07:19]ProducePacketName [11:07:19]name=ofd_packets/00165615 [11:07:19]NVStorageSaveData ofd_packets/00165615 [11:07:19]File name is /storage/ofd_packets/00165615 [11:07:19]Write 301 bytes [11:07:19]NVStorageSaveData done [11:07:19]OFDSenderStorePacket done [11:07:19]KKMCreateOFDPacket done [11:07:19]NVStorageSaveData kkm_last_timestamp [11:07:19]File name is /storage/kkm_last_timestamp [11:07:19]Write 4 bytes [11:07:19]NVStorageSaveData done [11:07:19]ExternCall_PrintAddStr [11:07:19]wPrintStart [11:07:19]Write to MH i2c: 01 00 00 EC D7 C3 [11:07:19]Write i2c OK [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: 01 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: 01 07 00 [11:07:19]MH_I2C_Read... [11:07:19]Read from MH i2c: 01 07 00 EC D7 00 00 00 00 00 FF 0F D8 [11:07:19]RasterBufferAndPrint [11:07:19]line Счет N : (1)220176 [11:07:19]line ИНН: 02508201610067 [11:07:19]line Контрольно-Кассовый Чек [11:07:19]line ПРОДАЖА [11:07:19]line ТРК (МРК, ГНК) : 13 [11:07:19]line Товар: 2710124130 [11:07:19]line Аи-92-К-5 [11:07:19]line 2.100 * 66.90 [11:07:19]line = 140.49 [11:07:19]line НДС 12% НСП 1% [11:07:19]line > о реализуемом товаре [11:07:19]line ОКРУГЛЕНИЕ: -0.49 [11:07:19]line ИТОГО: 140.00 [11:07:19]line Внесено: 140.00 [11:07:19]line СДАЧА: 0.00 [11:07:19]line НСП 1% : 1.24 [11:07:19]line НДС 12% : 14.92 [11:07:19]line Наличными: 140.00 [11:07:19]line Безнал.: 0.00 [11:07:19]line Место: АЗС № 161 "Партнер Нефть" [11:07:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:07:19]line СНО: Общий режим [11:07:19]line Чек 97 20.10.2024 11:07 [11:07:19]line Смена: 534 ФФД: 1.0 [11:07:19]line ЗНМ: 0300000104 [11:07:19]line РНМ: 0000000000091764 [11:07:19]line Версия ККМ: 001 [11:07:19]line ФМ: 0000000000871759 [11:07:19]line ФД: 165615 [11:07:19]line ФПД: 268658743149305 [11:07:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110729&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165615&fm=268658743149305&tin=02508201610067®Number=0000000000091764&sum=14000 [11:07:19]OFD Sender: Processing packet 165615 [packets to send 48, broken 47] [11:07:19]ProducePacketName [11:07:19]name=ofd_packets/00165615 [11:07:19]OFD Sender: To server: pG, [11:07:19]CommunicateWithHost lk.salyk.kg:30040 [11:07:19]ConnectInit lk.salyk.kg [11:07:19]written 0, free lines is 4095 [11:07:19]Connected sock=10 [11:07:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 5E 07 01 A8 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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 61 00 00 00 F4 03 04 00 71 E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 86 02 00 35 04 06 00 F4 57 FC F3 82 F9 FB 04 CD B2 4E E3 84 82 [11:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 21 D1 47 00 3F 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 31 37 35 39 10 04 04 00 EF 86 02 00 F4 03 04 00 E3 8A 14 67 B6 04 01 00 00 70 5E A9 E8 D6 DC 1F C5 [11:07:19]CommunicateWithHost err = 0 [11:07:19]CheckOFDResponse [11:07:19]1017 (14) - 77093643461234 [11:07:19]1041 (16) - 0000000000871759 [11:07:19]1040 (4) - 165615 [11:07:19]1012 (4) - 20.10.2024 04:45 [11:07:19]1206 (1) - 0 [11:07:19]OFD Sender: Remove packet 165615 [11:07:19]ProducePacketName [11:07:19]name=ofd_packets/00165615 [11:07:19]NVStorageDeleteData [11:07:20]Write to MH i2c: 01 00 00 17 D8 EF [11:07:20]Write i2c OK [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: 01 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: 01 07 00 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: 01 07 00 17 D8 00 00 00 00 00 BF 0C C1 [11:07:20]RasterBufferAndPrint [11:07:20]line [11:07:20]line [11:07:20]line [11:07:20]line [11:07:20]line [11:07:20]written 0, free lines is 3269 [11:07:20]MH_Cut [11:07:20]Write to MH i2c: D1 01 00 1E D8 01 C8 [11:07:20]Write i2c OK [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: D1 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: D1 01 00 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: D1 01 00 1E D8 00 C7 [11:07:20]Write to MH i2c: 01 00 00 1F D8 F7 [11:07:20]Write i2c OK [11:07:20]MH_I2C_Read... [11:07:20]OFD Sender: No OFD packet to send [11:07:20]*** Cut start [11:07:20]*** Partial cut [11:07:20]*** CUTSNS_PIN = 1 [11:07:20]*** CUTSNS_PIN = 0 [11:07:21]*** Brake cut motor [11:07:21]Read from MH i2c: 01 [11:07:21]MH_I2C_Read... [11:07:21]*** Stop cut motor [11:07:21]*** Cut end [11:07:21]Read from MH i2c: 01 07 00 [11:07:21]MH_I2C_Read... [11:07:21]Read from MH i2c: 01 07 00 1F D8 00 00 00 00 00 FF 0F 0C [11:07:21]process_action close_receipt done [11:07:21]requested_data is exist [11:07:21]produce_requested_data [11:07:21]requested_item fm.sn is exist - process it [11:07:21]wFMCommunicate request_size=4 [11:07:21]MH_SAM_APDU [11:07:21]CAPDU: 80 11 00 00 [11:07:21]Write to MH i2c: E2 08 00 20 D8 80 11 00 00 00 00 00 00 72 [11:07:21]Write i2c OK [11:07:21]MH_I2C_Read... [11:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:21]Read from MH i2c: E2 [11:07:21]MH_I2C_Read... [11:07:21]Read from MH i2c: E2 17 00 [11:07:21]MH_I2C_Read... [11:07:21]Read from MH i2c: E2 17 00 20 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [11:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:07:21]wFMCommunicate OK [11:07:21]requested_item fd.num is exist - process it [11:07:21]SAM_PROTO_GetFieldsCounters [11:07:21]wFMCommunicate request_size=4 [11:07:21]MH_SAM_APDU [11:07:21]CAPDU: 80 13 00 00 [11:07:21]Write to MH i2c: E2 08 00 21 D8 80 13 00 00 00 00 00 00 75 [11:07:21]Write i2c OK [11:07:21]MH_I2C_Read... [11:07:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:21]Read from MH i2c: E2 [11:07:21]MH_I2C_Read... [11:07:21]Read from MH i2c: E2 62 00 [11:07:21]MH_I2C_Read... [11:07:21]Read from MH i2c: E2 62 00 21 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [11:07: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:21]wFMCommunicate OK [11:07:21]SAM_PROTO_GetFieldsCounters done [11:07:21]requested_item shift.num is exist - process it [11:07:21]requested_item shift.opened is exist - process it [11:07:21]req_shift_opened [11:07:21]FM_GetShiftState [11:07:21]SAM_PROTO_GetShiftState [11:07:21]wFMCommunicate request_size=4 [11:07:21]MH_SAM_APDU [11:07:21]CAPDU: 80 13 01 00 [11:07:21]Write to MH i2c: E2 08 00 22 D8 80 13 01 00 00 00 00 00 77 [11:07:21]Write i2c OK [11:07:21]MH_I2C_Read... [11:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:21]Read from MH i2c: E2 [11:07:21]MH_I2C_Read... [11:07:21]Read from MH i2c: E2 0E 00 [11:07:21]MH_I2C_Read... [11:07:21]Read from MH i2c: E2 0E 00 22 D8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BF [11:07:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:07:21]wFMCommunicate OK [11:07:21]SAM_PROTO_GetShiftState done [11:07:21]FM_GetShiftState done [11:07:21]req_shift_opened done [11:07:21]requested_item shift.open_date is exist - process it [11:07:21]req_shift_open_date [11:07:21]req_shift_open_date done [11:07:21]produce_requested_data done [11:07:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165615,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:07:21]process_action_free close_receipt [11:07:21]json_value_free [11:07:21]json_value_free done [11:07:21]process_json_proto returns [11:07:21]Send response to host [11:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165615,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:07:21]free response buf [11:07:21]execute_script done [11:07:21]execute_script returns [11:07:21]free content buf [11:07:21]Sock 9.Close socket [11:07:21]Sock 9.Thread stoped [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:33]accept exits with 7 [11:08:33]New connection [11:08:33]New thread 3066776932 created [11:08:33]Thread 3066920292 joined [11:08:33]Waiting for new connection... [11:08:33] Sock 7.Parse request [11:08:33]Sock 7.Check first char [11:08:33]Sock 7.First char is OK [11:08:33]request: POST /json_proto HTTP/1.0 [11:08:33]Method: POST [11:08:33]URL: /json_proto [11:08:33]Method is POST - this is cgi request [11:08:33]url: /json_proto [11:08:33]query_string will be loaded in cgi processing [11:08:33]execute_cgi json_proto POST (null) [11:08:33]execute_cgi path=json_proto method=POST [11:08:33]POST find Content-Length [11:08:33]Host: 172.17.53.195:8080 [11:08:33]Content-Length: 682 [11:08:33]Content-Type: application/json [11:08:33] [11:08:33]POST finish read [11:08:33]Found Content-Length = 682 [11:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:33]execute_script... [11:08: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)220177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:33]POST & json_proto [11:08:33]process_json_proto [11:08:33]json parsed OK: [11:08:33]protocol is kg_v1.0 [11:08:33]action value=close_receipt [11:08:33]process_action close_receipt [11:08:33]cmd_close_receipt [11:08:33]MH_GetDate [11:08:33]Write to MH i2c: F0 00 00 23 D8 EA [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 09 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 09 00 23 D8 00 BD E4 14 67 21 48 4A 65 27 [11:08:33]GetLastDocTimeStamp 1729422449 [11:08:33]current date 1729422525 [11:08:33]FM_GetShiftState [11:08:33]SAM_PROTO_GetShiftState [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 13 01 00 [11:08:33]Write to MH i2c: E2 08 00 24 D8 80 13 01 00 00 00 00 00 79 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 0E 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 0E 00 24 D8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C1 [11:08:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:08:33]wFMCommunicate OK [11:08:33]SAM_PROTO_GetShiftState done [11:08:33]FM_GetShiftState done [11:08:33]opened in 1729384561 [11:08:33]opened+sec_in_day 1729470961 [11:08:33]quantity*price = 100015 [11:08:33]sum+1 = 100017 [11:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 98 20.10.2024 11:08 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165616 ФПД: 278084942490520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110845&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165616&fm=278084942490520&tin=02508201610067®Number=0000000000091764&sum=100000 [11:08:34]StoreToDocumentArchive [11:08:34]shift 534 fd 165616 [11:08:34]save to /storage/0534/doc_00165616 [11:08:34]save last doc name /storage/0534/doc_00165616 to /storage/kkm_last_doc_name [11:08:34]save OK [11:08:34]Clear old archive folders... [11:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:34]tlvbuf is 015E9B50 [11:08:34]SAM_PROTO_ClearQueue [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 09 00 00 [11:08:34]Write to MH i2c: E2 08 00 31 D8 80 09 00 00 00 00 00 00 7B [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 31 D8 00 90 00 7D [11:08:34]RAPDU: 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_ClearQueue done [11:08:34]KKMCreateOFDPacket [11:08:34]OFDProtocolAddRootSTLVToBuf [11:08:34]FM_MakeSignedData [11:08:34]FM_MakeSignedData [11:08:34]SAM_PROTO_SignData [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 0D 01 02 [11:08:34]Write to MH i2c: E2 08 00 32 D8 80 0D 01 02 00 00 00 00 83 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 32 D8 00 90 00 7E [11:08:34]RAPDU: 90 00 [11:08:34]wFMCommunicate OK [11:08:34]wFMCommunicate request_size=255 [11:08:34]MH_SAM_APDU [11:08: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BD E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 86 02 00 35 04 06 00 FC [11:08:34]Write to MH i2c: E2 02 01 33 D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BD E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 86 02 00 35 04 06 00 FC 00 00 1D [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 33 D8 00 90 00 7F [11:08:34]RAPDU: 90 00 [11:08:34]wFMCommunicate OK [11:08:34]wFMCommunicate request_size=10 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 0D 02 02 05 EA B2 36 EB 98 [11:08:34]Write to MH i2c: E2 0D 00 34 D8 80 0D 02 02 05 00 EA B2 36 EB 98 00 00 E5 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 03 00 34 D8 00 90 00 80 [11:08:34]RAPDU: 90 00 [11:08:34]wFMCommunicate OK [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 0D 03 02 [11:08:34]Write to MH i2c: E2 08 00 35 D8 80 0D 03 02 00 00 00 00 88 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0B 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0B 00 35 D8 00 FD 09 D5 9C 3F 2F 54 F0 90 00 B2 [11:08:34]RAPDU: FD 09 D5 9C 3F 2F 54 F0 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_SignData done [11:08:34]FM_MakeSignedData done [11:08:34]CreateOFDProtocolMessage [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 11 00 00 [11:08:34]Write to MH i2c: E2 08 00 36 D8 80 11 00 00 00 00 00 00 88 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 17 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 17 00 36 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [11:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:08:34]wFMCommunicate OK [11:08:34]CreateOFDProtocolMessage done [11:08:34]OFDSenderStorePacket 165616 [11:08:34]StoreOFDPacket docnum=165616 [11:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 74 59 07 01 F6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BD E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 86 02 00 35 04 06 00 FC EA B2 36 EB 98 FD 09 D5 9C 3F 2F 54 F0 [11:08:34]CheckFolder [11:08:34]dirname=/storage/ofd_packets [11:08:34]CheckFolder done [11:08:34]ProducePacketName [11:08:34]name=ofd_packets/00165616 [11:08:34]NVStorageSaveData ofd_packets/00165616 [11:08:34]File name is /storage/ofd_packets/00165616 [11:08:34]Write 301 bytes [11:08:34]NVStorageSaveData done [11:08:34]OFDSenderStorePacket done [11:08:34]KKMCreateOFDPacket done [11:08:34]NVStorageSaveData kkm_last_timestamp [11:08:34]File name is /storage/kkm_last_timestamp [11:08:34]Write 4 bytes [11:08:34]NVStorageSaveData done [11:08:34]ExternCall_PrintAddStr [11:08:34]wPrintStart [11:08:34]Write to MH i2c: 01 00 00 37 D8 0F [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: 01 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: 01 07 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: 01 07 00 37 D8 00 00 00 00 00 FF 0F 24 [11:08:34]RasterBufferAndPrint [11:08:34]line Счет N : (1)220177 [11:08:34]line ИНН: 02508201610067 [11:08:34]line Контрольно-Кассовый Чек [11:08:34]line ПРОДАЖА [11:08:34]line ТРК (МРК, ГНК) : 23 [11:08:34]line Товар: 2710124130 [11:08:34]line Аи-92-К-5 [11:08:34]line 14.950 * 66.90 [11:08:34]line = 1000.16 [11:08:34]line НДС 12% НСП 1% [11:08:34]line > о реализуемом товаре [11:08:34]line ОКРУГЛЕНИЕ: -0.16 [11:08:34]line ИТОГО: 1000.00 [11:08:34]line Внесено: 1000.00 [11:08:34]line СДАЧА: 0.00 [11:08:34]line НСП 1% : 8.85 [11:08:34]line НДС 12% : 106.21 [11:08:34]line Наличными: 1000.00 [11:08:34]line Безнал.: 0.00 [11:08:34]line Место: АЗС № 161 "Партнер Нефть" [11:08:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:08:34]line СНО: Общий режим [11:08:34]line Чек 98 20.10.2024 11:08 [11:08:34]line Смена: 534 ФФД: 1.0 [11:08:34]line ЗНМ: 0300000104 [11:08:34]line РНМ: 0000000000091764 [11:08:34]line Версия ККМ: 001 [11:08:34]line ФМ: 0000000000871759 [11:08:34]line ФД: 165616 [11:08:34]line ФПД: 278084942490520 [11:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110845&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165616&fm=278084942490520&tin=02508201610067®Number=0000000000091764&sum=100000 [11:08:35]OFD Sender: Processing packet 165616 [packets to send 48, broken 47] [11:08:35]ProducePacketName [11:08:35]name=ofd_packets/00165616 [11:08:35]OFD Sender: To server: pG, [11:08:35]CommunicateWithHost lk.salyk.kg:30040 [11:08:35]ConnectInit lk.salyk.kg [11:08:35]written 0, free lines is 4095 [11:08:35]Connected sock=9 [11:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 74 59 07 01 F6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BD E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 86 02 00 35 04 06 00 FC EA B2 36 EB 98 FD 09 D5 9C 3F 2F 54 F0 [11:08:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 86 EC 47 00 B0 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 86 02 00 F4 03 04 00 2F 8B 14 67 B6 04 01 00 00 B0 0D 52 F7 5D 1D D1 78 [11:08:35]CommunicateWithHost err = 0 [11:08:35]CheckOFDResponse [11:08:35]1017 (14) - 77093643461234 [11:08:35]1041 (16) - 0000000000871759 [11:08:35]1040 (4) - 165616 [11:08:35]1012 (4) - 20.10.2024 04:46 [11:08:35]1206 (1) - 0 [11:08:35]OFD Sender: Remove packet 165616 [11:08:35]ProducePacketName [11:08:35]name=ofd_packets/00165616 [11:08:35]NVStorageDeleteData [11:08:35]Write to MH i2c: 01 00 00 62 D8 3A [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 07 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 07 00 62 D8 00 00 00 00 00 C8 0C 15 [11:08:35]RasterBufferAndPrint [11:08:35]line [11:08:35]line [11:08:35]line [11:08:35]line [11:08:35]line [11:08:35]written 0, free lines is 3279 [11:08:35]MH_Cut [11:08:35]Write to MH i2c: D1 01 00 69 D8 01 13 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: D1 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: D1 01 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: D1 01 00 69 D8 00 12 [11:08:35]Write to MH i2c: 01 00 00 6A D8 42 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]OFD Sender: No OFD packet to send [11:08:36]*** Cut start [11:08:36]*** Partial cut [11:08:36]*** CUTSNS_PIN = 1 [11:08:36]*** CUTSNS_PIN = 0 [11:08:36]*** Brake cut motor [11:08:37]Read from MH i2c: 01 [11:08:37]MH_I2C_Read... [11:08:37]*** Stop cut motor [11:08:37]*** Cut end [11:08:37]Read from MH i2c: 01 07 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: 01 07 00 6A D8 00 00 00 00 00 FF 0F 57 [11:08:37]process_action close_receipt done [11:08:37]requested_data is exist [11:08:37]produce_requested_data [11:08:37]requested_item fm.sn is exist - process it [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 11 00 00 [11:08:37]Write to MH i2c: E2 08 00 6B D8 80 11 00 00 00 00 00 00 BD [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 17 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 17 00 6B D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [11:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:08:37]wFMCommunicate OK [11:08:37]requested_item fd.num is exist - process it [11:08:37]SAM_PROTO_GetFieldsCounters [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 13 00 00 [11:08:37]Write to MH i2c: E2 08 00 6C D8 80 13 00 00 00 00 00 00 C0 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 62 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 62 00 6C D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [11:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:37]wFMCommunicate OK [11:08:37]SAM_PROTO_GetFieldsCounters done [11:08:37]requested_item shift.num is exist - process it [11:08:37]requested_item shift.opened is exist - process it [11:08:37]req_shift_opened [11:08:37]FM_GetShiftState [11:08:37]SAM_PROTO_GetShiftState [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 13 01 00 [11:08:37]Write to MH i2c: E2 08 00 6D D8 80 13 01 00 00 00 00 00 C2 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 0E 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 0E 00 6D D8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0A [11:08:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:08:37]wFMCommunicate OK [11:08:37]SAM_PROTO_GetShiftState done [11:08:37]FM_GetShiftState done [11:08:37]req_shift_opened done [11:08:37]requested_item shift.open_date is exist - process it [11:08:37]req_shift_open_date [11:08:37]req_shift_open_date done [11:08:37]produce_requested_data done [11:08:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165616,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:08:37]process_action_free close_receipt [11:08:37]json_value_free [11:08:37]json_value_free done [11:08:37]process_json_proto returns [11:08:37]Send response to host [11:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165616,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:08:37]free response buf [11:08:37]execute_script done [11:08:37]execute_script returns [11:08:37]free content buf [11:08:37]Sock 7.Close socket [11:08:37]Sock 7.Thread stoped [11:08:40]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:55]accept exits with 10 [11:08:55]New connection [11:08:55]New thread 3066920292 created [11:08:55]Thread 3066776932 joined [11:08:55]Waiting for new connection... [11:08:55] Sock 10.Parse request [11:08:55]Sock 10.Check first char [11:08:55]Sock 10.First char is OK [11:08:55]request: POST /json_proto HTTP/1.0 [11:08:55]Method: POST [11:08:55]URL: /json_proto [11:08:55]Method is POST - this is cgi request [11:08:55]url: /json_proto [11:08:55]query_string will be loaded in cgi processing [11:08:55]execute_cgi json_proto POST (null) [11:08:55]execute_cgi path=json_proto method=POST [11:08:55]POST find Content-Length [11:08:55]Host: 172.17.53.195:8080 [11:08:55]Content-Length: 677 [11:08:55]Content-Type: application/json [11:08:55] [11:08:55]POST finish read [11:08:55]Found Content-Length = 677 [11:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:55]execute_script... [11:08: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)220178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:55]POST & json_proto [11:08:55]process_json_proto [11:08:55]json parsed OK: [11:08:55]protocol is kg_v1.0 [11:08:55]action value=close_receipt [11:08:55]process_action close_receipt [11:08:55]cmd_close_receipt [11:08:55]MH_GetDate [11:08:55]Write to MH i2c: F0 00 00 6E D8 35 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: F0 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: F0 09 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: F0 09 00 6E D8 00 D3 E4 14 67 21 48 4A 65 88 [11:08:55]GetLastDocTimeStamp 1729422525 [11:08:55]current date 1729422547 [11:08:55]FM_GetShiftState [11:08:55]SAM_PROTO_GetShiftState [11:08:55]wFMCommunicate request_size=4 [11:08:55]MH_SAM_APDU [11:08:55]CAPDU: 80 13 01 00 [11:08:55]Write to MH i2c: E2 08 00 6F D8 80 13 01 00 00 00 00 00 C4 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:55]Read from MH i2c: E2 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 0E 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 0E 00 6F D8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0C [11:08:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:08:55]wFMCommunicate OK [11:08:55]SAM_PROTO_GetShiftState done [11:08:55]FM_GetShiftState done [11:08:55]opened in 1729384561 [11:08:55]opened+sec_in_day 1729470961 [11:08:55]quantity*price = 40006 [11:08:55]sum+1 = 40007 [11:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 99 20.10.2024 11:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165617 ФПД: 242890872731470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110907&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165617&fm=242890872731470&tin=02508201610067®Number=0000000000091764&sum=40000 [11:08:56]StoreToDocumentArchive [11:08:56]shift 534 fd 165617 [11:08:56]save to /storage/0534/doc_00165617 [11:08:56]save last doc name /storage/0534/doc_00165617 to /storage/kkm_last_doc_name [11:08:56]save OK [11:08:56]Clear old archive folders... [11:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:56]tlvbuf is 016C7470 [11:08:56]SAM_PROTO_ClearQueue [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 09 00 00 [11:08:56]Write to MH i2c: E2 08 00 7C D8 80 09 00 00 00 00 00 00 C6 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 7C D8 00 90 00 C8 [11:08:56]RAPDU: 90 00 [11:08:56]wFMCommunicate OK [11:08:56]SAM_PROTO_ClearQueue done [11:08:56]KKMCreateOFDPacket [11:08:56]OFDProtocolAddRootSTLVToBuf [11:08:56]FM_MakeSignedData [11:08:56]FM_MakeSignedData [11:08:56]SAM_PROTO_SignData [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 0D 01 02 [11:08:56]Write to MH i2c: E2 08 00 7D D8 80 0D 01 02 00 00 00 00 CE [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 7D D8 00 90 00 C9 [11:08:56]RAPDU: 90 00 [11:08:56]wFMCommunicate OK [11:08:56]wFMCommunicate request_size=255 [11:08:56]MH_SAM_APDU [11:08: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D3 E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 86 02 00 35 04 06 00 DC [11:08:56]Write to MH i2c: E2 02 01 7E D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D3 E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 86 02 00 35 04 06 00 DC 00 00 35 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 7E D8 00 90 00 CA [11:08:56]RAPDU: 90 00 [11:08:56]wFMCommunicate OK [11:08:56]wFMCommunicate request_size=10 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 0D 02 02 05 E8 70 30 37 4E [11:08:56]Write to MH i2c: E2 0D 00 7F D8 80 0D 02 02 05 00 E8 70 30 37 4E 00 00 E8 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 7F D8 00 90 00 CB [11:08:56]RAPDU: 90 00 [11:08:56]wFMCommunicate OK [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 0D 03 02 [11:08:56]Write to MH i2c: E2 08 00 80 D8 80 0D 03 02 00 00 00 00 D3 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 0B 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 0B 00 80 D8 00 CC CC 89 A0 C2 16 6C 94 90 00 6D [11:08:56]RAPDU: CC CC 89 A0 C2 16 6C 94 90 00 [11:08:56]wFMCommunicate OK [11:08:56]SAM_PROTO_SignData done [11:08:56]FM_MakeSignedData done [11:08:56]CreateOFDProtocolMessage [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 11 00 00 [11:08:56]Write to MH i2c: E2 08 00 81 D8 80 11 00 00 00 00 00 00 D3 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 17 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 17 00 81 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [11:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:08:56]wFMCommunicate OK [11:08:56]CreateOFDProtocolMessage done [11:08:56]OFDSenderStorePacket 165617 [11:08:56]StoreOFDPacket docnum=165617 [11:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 99 82 07 01 10 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D3 E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 86 02 00 35 04 06 00 DC E8 70 30 37 4E CC CC 89 A0 C2 16 6C 94 [11:08:56]CheckFolder [11:08:56]dirname=/storage/ofd_packets [11:08:56]CheckFolder done [11:08:56]ProducePacketName [11:08:56]name=ofd_packets/00165617 [11:08:56]NVStorageSaveData ofd_packets/00165617 [11:08:56]File name is /storage/ofd_packets/00165617 [11:08:56]Write 301 bytes [11:08:56]NVStorageSaveData done [11:08:56]OFDSenderStorePacket done [11:08:56]KKMCreateOFDPacket done [11:08:56]NVStorageSaveData kkm_last_timestamp [11:08:56]File name is /storage/kkm_last_timestamp [11:08:56]Write 4 bytes [11:08:56]NVStorageSaveData done [11:08:56]ExternCall_PrintAddStr [11:08:56]wPrintStart [11:08:56]Write to MH i2c: 01 00 00 82 D8 5A [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 82 D8 00 00 00 00 00 FF 0F 6F [11:08:56]RasterBufferAndPrint [11:08:56]line Счет N : (1)220178 [11:08:56]line ИНН: 02508201610067 [11:08:56]line Контрольно-Кассовый Чек [11:08:56]line ПРОДАЖА [11:08:56]line ТРК (МРК, ГНК) : 33 [11:08:56]line Товар: 2710124130 [11:08:56]line Аи-92-К-5 [11:08:56]line 5.980 * 66.90 [11:08:56]line = 400.06 [11:08:56]line НДС 12% НСП 1% [11:08:56]line > о реализуемом товаре [11:08:56]line ОКРУГЛЕНИЕ: -0.06 [11:08:56]line ИТОГО: 400.00 [11:08:56]line Внесено: 400.00 [11:08:56]line СДАЧА: 0.00 [11:08:56]line НСП 1% : 3.54 [11:08:56]line НДС 12% : 42.48 [11:08:56]line Наличными: 400.00 [11:08:56]line Безнал.: 0.00 [11:08:56]line Место: АЗС № 161 "Партнер Нефть" [11:08:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:08:56]line СНО: Общий режим [11:08:56]line Чек 99 20.10.2024 11:09 [11:08:56]line Смена: 534 ФФД: 1.0 [11:08:56]line ЗНМ: 0300000104 [11:08:56]line РНМ: 0000000000091764 [11:08:56]line Версия ККМ: 001 [11:08:56]line ФМ: 0000000000871759 [11:08:56]line ФД: 165617 [11:08:56]line ФПД: 242890872731470 [11:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110907&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165617&fm=242890872731470&tin=02508201610067®Number=0000000000091764&sum=40000 [11:08:57]OFD Sender: Processing packet 165617 [packets to send 48, broken 47] [11:08:57]ProducePacketName [11:08:57]name=ofd_packets/00165617 [11:08:57]OFD Sender: To server: pG, [11:08:57]CommunicateWithHost lk.salyk.kg:30040 [11:08:57]ConnectInit lk.salyk.kg [11:08:57]written 0, free lines is 4095 [11:08:57]Connected sock=9 [11:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 99 82 07 01 10 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D3 E4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 86 02 00 35 04 06 00 DC E8 70 30 37 4E CC CC 89 A0 C2 16 6C 94 [11:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 21 D1 47 00 79 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 86 02 00 F4 03 04 00 45 8B 14 67 B6 04 01 00 00 D2 E1 20 82 A7 A1 1C B0 [11:08:57]CommunicateWithHost err = 0 [11:08:57]CheckOFDResponse [11:08:57]1017 (14) - 77093643461234 [11:08:57]1041 (16) - 0000000000871759 [11:08:57]1040 (4) - 165617 [11:08:57]1012 (4) - 20.10.2024 04:47 [11:08:57]1206 (1) - 0 [11:08:57]OFD Sender: Remove packet 165617 [11:08:57]ProducePacketName [11:08:57]name=ofd_packets/00165617 [11:08:57]NVStorageDeleteData [11:08:57]Write to MH i2c: 01 00 00 AD D8 85 [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 07 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 07 00 AD D8 00 00 00 00 00 D9 0C 71 [11:08:57]RasterBufferAndPrint [11:08:57]line [11:08:57]line [11:08:57]line [11:08:57]line [11:08:57]line [11:08:57]written 0, free lines is 3297 [11:08:57]MH_Cut [11:08:57]Write to MH i2c: D1 01 00 B4 D8 01 5E [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: D1 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: D1 01 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: D1 01 00 B4 D8 00 5D [11:08:57]Write to MH i2c: 01 00 00 B5 D8 8D [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:58]OFD Sender: No OFD packet to send [11:08:58]*** Cut start [11:08:58]*** Partial cut [11:08:58]*** CUTSNS_PIN = 1 [11:08:58]*** CUTSNS_PIN = 0 [11:08:58]*** Brake cut motor [11:08:59]Read from MH i2c: 01 [11:08:59]MH_I2C_Read... [11:08:59]*** Stop cut motor [11:08:59]*** Cut end [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 B5 D8 00 00 00 00 00 FF 0F A2 [11:08:59]process_action close_receipt done [11:08:59]requested_data is exist [11:08:59]produce_requested_data [11:08:59]requested_item fm.sn is exist - process it [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 B6 D8 80 11 00 00 00 00 00 00 08 [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 B6 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [11:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:08:59]wFMCommunicate OK [11:08:59]requested_item fd.num is exist - process it [11:08:59]SAM_PROTO_GetFieldsCounters [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 13 00 00 [11:08:59]Write to MH i2c: E2 08 00 B7 D8 80 13 00 00 00 00 00 00 0B [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 62 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 62 00 B7 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [11:08: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:59]wFMCommunicate OK [11:08:59]SAM_PROTO_GetFieldsCounters done [11:08:59]requested_item shift.num is exist - process it [11:08:59]requested_item shift.opened is exist - process it [11:08:59]req_shift_opened [11:08:59]FM_GetShiftState [11:08:59]SAM_PROTO_GetShiftState [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 13 01 00 [11:08:59]Write to MH i2c: E2 08 00 B8 D8 80 13 01 00 00 00 00 00 0D [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 0E 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 0E 00 B8 D8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 55 [11:08:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:08:59]wFMCommunicate OK [11:08:59]SAM_PROTO_GetShiftState done [11:08:59]FM_GetShiftState done [11:08:59]req_shift_opened done [11:08:59]requested_item shift.open_date is exist - process it [11:08:59]req_shift_open_date [11:08:59]req_shift_open_date done [11:08:59]produce_requested_data done [11:08:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165617,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:08:59]process_action_free close_receipt [11:08:59]json_value_free [11:08:59]json_value_free done [11:08:59]process_json_proto returns [11:08:59]Send response to host [11:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165617,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:08:59]free response buf [11:08:59]execute_script done [11:08:59]execute_script returns [11:08:59]free content buf [11:08:59]Sock 10.Close socket [11:08:59]Sock 10.Thread stoped [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:36]accept exits with 7 [11:13:36]New connection [11:13:36]New thread 3066776932 created [11:13:36]Thread 3066920292 joined [11:13:36]Waiting for new connection... [11:13:36] Sock 7.Parse request [11:13:36]Sock 7.Check first char [11:13:36]Sock 7.First char is OK [11:13:36]request: POST /json_proto HTTP/1.0 [11:13:36]Method: POST [11:13:36]URL: /json_proto [11:13:36]Method is POST - this is cgi request [11:13:36]url: /json_proto [11:13:36]query_string will be loaded in cgi processing [11:13:36]execute_cgi json_proto POST (null) [11:13:36]execute_cgi path=json_proto method=POST [11:13:36]POST find Content-Length [11:13:36]Host: 172.17.53.195:8080 [11:13:36]Content-Length: 677 [11:13:36]Content-Type: application/json [11:13:36] [11:13:36]POST finish read [11:13:36]Found Content-Length = 677 [11:13:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:36]execute_script... [11:13: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)220180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:36]POST & json_proto [11:13:36]process_json_proto [11:13:36]json parsed OK: [11:13:36]protocol is kg_v1.0 [11:13:36]action value=close_receipt [11:13:36]process_action close_receipt [11:13:36]cmd_close_receipt [11:13:36]MH_GetDate [11:13:36]Write to MH i2c: F0 00 00 B9 D8 80 [11:13:36]Write i2c OK [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: F0 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: F0 09 00 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: F0 09 00 B9 D8 00 EC E5 14 67 21 48 4A 65 ED [11:13:36]GetLastDocTimeStamp 1729422547 [11:13:36]current date 1729422828 [11:13:36]FM_GetShiftState [11:13:36]SAM_PROTO_GetShiftState [11:13:36]wFMCommunicate request_size=4 [11:13:36]MH_SAM_APDU [11:13:36]CAPDU: 80 13 01 00 [11:13:36]Write to MH i2c: E2 08 00 BA D8 80 13 01 00 00 00 00 00 0F [11:13:36]Write i2c OK [11:13:36]MH_I2C_Read... [11:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:36]Read from MH i2c: E2 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: E2 0E 00 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: E2 0E 00 BA D8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 57 [11:13:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:13:36]wFMCommunicate OK [11:13:36]SAM_PROTO_GetShiftState done [11:13:36]FM_GetShiftState done [11:13:36]opened in 1729384561 [11:13:36]opened+sec_in_day 1729470961 [11:13:36]quantity*price = 40006 [11:13:36]sum+1 = 40007 [11:13:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 100 20.10.2024 11:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165618 ФПД: 134207892620418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111348&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165618&fm=134207892620418&tin=02508201610067®Number=0000000000091764&sum=40000 [11:13:37]StoreToDocumentArchive [11:13:37]shift 534 fd 165618 [11:13:37]save to /storage/0534/doc_00165618 [11:13:37]save last doc name /storage/0534/doc_00165618 to /storage/kkm_last_doc_name [11:13:37]save OK [11:13:37]Clear old archive folders... [11:13:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:37]tlvbuf is 0184BEA0 [11:13:37]SAM_PROTO_ClearQueue [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 09 00 00 [11:13:37]Write to MH i2c: E2 08 00 C7 D8 80 09 00 00 00 00 00 00 11 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 C7 D8 00 90 00 13 [11:13:37]RAPDU: 90 00 [11:13:37]wFMCommunicate OK [11:13:37]SAM_PROTO_ClearQueue done [11:13:37]KKMCreateOFDPacket [11:13:37]OFDProtocolAddRootSTLVToBuf [11:13:37]FM_MakeSignedData [11:13:37]FM_MakeSignedData [11:13:37]SAM_PROTO_SignData [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 0D 01 02 [11:13:37]Write to MH i2c: E2 08 00 C8 D8 80 0D 01 02 00 00 00 00 19 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 C8 D8 00 90 00 14 [11:13:37]RAPDU: 90 00 [11:13:37]wFMCommunicate OK [11:13:37]wFMCommunicate request_size=255 [11:13:37]MH_SAM_APDU [11:13: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 EC E5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 86 02 00 35 04 06 00 7A [11:13:37]Write to MH i2c: E2 02 01 C9 D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 EC E5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 86 02 00 35 04 06 00 7A 00 00 3A [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 C9 D8 00 90 00 15 [11:13:37]RAPDU: 90 00 [11:13:37]wFMCommunicate OK [11:13:37]wFMCommunicate request_size=10 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 0D 02 02 05 0F B5 C4 04 82 [11:13:37]Write to MH i2c: E2 0D 00 CA D8 80 0D 02 02 05 00 0F B5 C4 04 82 00 00 34 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 03 00 CA D8 00 90 00 16 [11:13:37]RAPDU: 90 00 [11:13:37]wFMCommunicate OK [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 0D 03 02 [11:13:37]Write to MH i2c: E2 08 00 CB D8 80 0D 03 02 00 00 00 00 1E [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 0B 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 0B 00 CB D8 00 12 76 D3 A2 24 F7 0E AA 90 00 EF [11:13:37]RAPDU: 12 76 D3 A2 24 F7 0E AA 90 00 [11:13:37]wFMCommunicate OK [11:13:37]SAM_PROTO_SignData done [11:13:37]FM_MakeSignedData done [11:13:37]CreateOFDProtocolMessage [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 11 00 00 [11:13:37]Write to MH i2c: E2 08 00 CC D8 80 11 00 00 00 00 00 00 1E [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 17 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 17 00 CC D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [11:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:13:37]wFMCommunicate OK [11:13:37]CreateOFDProtocolMessage done [11:13:37]OFDSenderStorePacket 165618 [11:13:37]StoreOFDPacket docnum=165618 [11:13:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 0B 07 01 5D 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 EC E5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 86 02 00 35 04 06 00 7A 0F B5 C4 04 82 12 76 D3 A2 24 F7 0E AA [11:13:37]CheckFolder [11:13:37]dirname=/storage/ofd_packets [11:13:37]CheckFolder done [11:13:37]ProducePacketName [11:13:37]name=ofd_packets/00165618 [11:13:37]NVStorageSaveData ofd_packets/00165618 [11:13:37]File name is /storage/ofd_packets/00165618 [11:13:37]Write 301 bytes [11:13:37]NVStorageSaveData done [11:13:37]OFDSenderStorePacket done [11:13:37]KKMCreateOFDPacket done [11:13:37]NVStorageSaveData kkm_last_timestamp [11:13:37]File name is /storage/kkm_last_timestamp [11:13:37]Write 4 bytes [11:13:37]NVStorageSaveData done [11:13:37]ExternCall_PrintAddStr [11:13:37]wPrintStart [11:13:37]Write to MH i2c: 01 00 00 CD D8 A5 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 CD D8 00 00 00 00 00 FF 0F BA [11:13:37]RasterBufferAndPrint [11:13:37]line Счет N : (1)220180 [11:13:37]line ИНН: 02508201610067 [11:13:37]line Контрольно-Кассовый Чек [11:13:37]line ПРОДАЖА [11:13:37]line ТРК (МРК, ГНК) : 13 [11:13:37]line Товар: 2710124130 [11:13:37]line Аи-92-К-5 [11:13:37]line 5.980 * 66.90 [11:13:37]line = 400.06 [11:13:37]line НДС 12% НСП 1% [11:13:37]line > о реализуемом товаре [11:13:37]line ОКРУГЛЕНИЕ: -0.06 [11:13:37]line ИТОГО: 400.00 [11:13:37]line Внесено: 400.00 [11:13:37]line СДАЧА: 0.00 [11:13:37]line НСП 1% : 3.54 [11:13:37]line НДС 12% : 42.48 [11:13:37]line Наличными: 400.00 [11:13:37]line Безнал.: 0.00 [11:13:37]line Место: АЗС № 161 "Партнер Нефть" [11:13:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:13:37]line СНО: Общий режим [11:13:37]line Чек 100 20.10.2024 11:13 [11:13:37]line Смена: 534 ФФД: 1.0 [11:13:37]line ЗНМ: 0300000104 [11:13:37]line РНМ: 0000000000091764 [11:13:37]line Версия ККМ: 001 [11:13:37]line ФМ: 0000000000871759 [11:13:37]line ФД: 165618 [11:13:37]line ФПД: 134207892620418 [11:13:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111348&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165618&fm=134207892620418&tin=02508201610067®Number=0000000000091764&sum=40000 [11:13:38]OFD Sender: Processing packet 165618 [packets to send 48, broken 47] [11:13:38]ProducePacketName [11:13:38]name=ofd_packets/00165618 [11:13:38]OFD Sender: To server: pG, [11:13:38]CommunicateWithHost lk.salyk.kg:30040 [11:13:38]ConnectInit lk.salyk.kg [11:13:38]written 0, free lines is 4095 [11:13:38]Connected sock=10 [11:13:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 0B 07 01 5D 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 EC E5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 86 02 00 35 04 06 00 7A 0F B5 C4 04 82 12 76 D3 A2 24 F7 0E AA [11:13:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9D DF 47 00 46 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 31 37 35 39 10 04 04 00 F2 86 02 00 F4 03 04 00 5E 8C 14 67 B6 04 01 00 00 E9 BC 19 67 6C BC A4 AC [11:13:38]CommunicateWithHost err = 0 [11:13:38]CheckOFDResponse [11:13:38]1017 (14) - 77093643461234 [11:13:38]1041 (16) - 0000000000871759 [11:13:38]1040 (4) - 165618 [11:13:38]1012 (4) - 20.10.2024 04:51 [11:13:38]1206 (1) - 0 [11:13:38]OFD Sender: Remove packet 165618 [11:13:38]ProducePacketName [11:13:38]name=ofd_packets/00165618 [11:13:38]NVStorageDeleteData [11:13:38]Write to MH i2c: 01 00 00 F8 D8 D0 [11:13:38]Write i2c OK [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 07 00 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 07 00 F8 D8 00 00 00 00 00 C0 0C A3 [11:13:38]RasterBufferAndPrint [11:13:38]line [11:13:38]line [11:13:38]line [11:13:38]line [11:13:38]line [11:13:38]written 0, free lines is 3273 [11:13:38]MH_Cut [11:13:38]Write to MH i2c: D1 01 00 FF D8 01 A9 [11:13:38]Write i2c OK [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: D1 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: D1 01 00 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: D1 01 00 FF D8 00 A8 [11:13:38]Write to MH i2c: 01 00 00 00 D9 D9 [11:13:38]Write i2c OK [11:13:38]MH_I2C_Read... [11:13:38]OFD Sender: No OFD packet to send [11:13:39]*** Cut start [11:13:39]*** Partial cut [11:13:39]*** CUTSNS_PIN = 1 [11:13:39]*** CUTSNS_PIN = 0 [11:13:39]*** Brake cut motor [11:13:40]Read from MH i2c: 01 [11:13:40]MH_I2C_Read... [11:13:40]*** Stop cut motor [11:13:40]*** Cut end [11:13:40]Read from MH i2c: 01 07 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: 01 07 00 00 D9 00 00 00 00 00 FF 0F EE [11:13:40]process_action close_receipt done [11:13:40]requested_data is exist [11:13:40]produce_requested_data [11:13:40]requested_item fm.sn is exist - process it [11:13:40]wFMCommunicate request_size=4 [11:13:40]MH_SAM_APDU [11:13:40]CAPDU: 80 11 00 00 [11:13:40]Write to MH i2c: E2 08 00 01 D9 80 11 00 00 00 00 00 00 54 [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:40]Read from MH i2c: E2 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 17 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 17 00 01 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [11:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:13:40]wFMCommunicate OK [11:13:40]requested_item fd.num is exist - process it [11:13:40]SAM_PROTO_GetFieldsCounters [11:13:40]wFMCommunicate request_size=4 [11:13:40]MH_SAM_APDU [11:13:40]CAPDU: 80 13 00 00 [11:13:40]Write to MH i2c: E2 08 00 02 D9 80 13 00 00 00 00 00 00 57 [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:40]Read from MH i2c: E2 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 62 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 62 00 02 D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [11:13:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:40]wFMCommunicate OK [11:13:40]SAM_PROTO_GetFieldsCounters done [11:13:40]requested_item shift.num is exist - process it [11:13:40]requested_item shift.opened is exist - process it [11:13:40]req_shift_opened [11:13:40]FM_GetShiftState [11:13:40]SAM_PROTO_GetShiftState [11:13:40]wFMCommunicate request_size=4 [11:13:40]MH_SAM_APDU [11:13:40]CAPDU: 80 13 01 00 [11:13:40]Write to MH i2c: E2 08 00 03 D9 80 13 01 00 00 00 00 00 59 [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:40]Read from MH i2c: E2 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 0E 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 0E 00 03 D9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A1 [11:13:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:13:40]wFMCommunicate OK [11:13:40]SAM_PROTO_GetShiftState done [11:13:40]FM_GetShiftState done [11:13:40]req_shift_opened done [11:13:40]requested_item shift.open_date is exist - process it [11:13:40]req_shift_open_date [11:13:40]req_shift_open_date done [11:13:40]produce_requested_data done [11:13:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165618,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:13:40]process_action_free close_receipt [11:13:40]json_value_free [11:13:40]json_value_free done [11:13:40]process_json_proto returns [11:13:40]Send response to host [11:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165618,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:13:40]free response buf [11:13:40]execute_script done [11:13:40]execute_script returns [11:13:40]free content buf [11:13:40]Sock 7.Close socket [11:13:40]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:46]accept exits with 9 [11:16:46]New connection [11:16:46]New thread 3066920292 created [11:16:46]Thread 3066776932 joined [11:16:46]Waiting for new connection... [11:16:46] Sock 9.Parse request [11:16:46]Sock 9.Check first char [11:16:46]Sock 9.First char is OK [11:16:46]request: POST /json_proto HTTP/1.0 [11:16:46]Method: POST [11:16:46]URL: /json_proto [11:16:46]Method is POST - this is cgi request [11:16:46]url: /json_proto [11:16:46]query_string will be loaded in cgi processing [11:16:46]execute_cgi json_proto POST (null) [11:16:46]execute_cgi path=json_proto method=POST [11:16:46]POST find Content-Length [11:16:46]Host: 172.17.53.195:8080 [11:16:46]Content-Length: 677 [11:16:46]Content-Type: application/json [11:16:46] [11:16:46]POST finish read [11:16:46]Found Content-Length = 677 [11:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]execute_script... [11:16: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)220181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]POST & json_proto [11:16:46]process_json_proto [11:16:46]json parsed OK: [11:16:46]protocol is kg_v1.0 [11:16:46]action value=close_receipt [11:16:46]process_action close_receipt [11:16:46]cmd_close_receipt [11:16:46]MH_GetDate [11:16:46]Write to MH i2c: F0 00 00 04 D9 CC [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 04 D9 00 AA E6 14 67 21 48 4A 65 F8 [11:16:46]GetLastDocTimeStamp 1729422828 [11:16:46]current date 1729423018 [11:16:46]FM_GetShiftState [11:16:46]SAM_PROTO_GetShiftState [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 13 01 00 [11:16:46]Write to MH i2c: E2 08 00 05 D9 80 13 01 00 00 00 00 00 5B [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 05 D9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A3 [11:16:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_GetShiftState done [11:16:46]FM_GetShiftState done [11:16:46]opened in 1729384561 [11:16:46]opened+sec_in_day 1729470961 [11:16:46]quantity*price = 50041 [11:16:46]sum+1 = 50042 [11:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 101 20.10.2024 11:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165619 ФПД: 91837596034663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111658&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165619&fm=91837596034663&tin=02508201610067®Number=0000000000091764&sum=50000 [11:16:47]StoreToDocumentArchive [11:16:47]shift 534 fd 165619 [11:16:47]save to /storage/0534/doc_00165619 [11:16:47]save last doc name /storage/0534/doc_00165619 to /storage/kkm_last_doc_name [11:16:47]save OK [11:16:47]Clear old archive folders... [11:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:47]tlvbuf is 0162CA80 [11:16:47]SAM_PROTO_ClearQueue [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 09 00 00 [11:16:47]Write to MH i2c: E2 08 00 12 D9 80 09 00 00 00 00 00 00 5D [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 12 D9 00 90 00 5F [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_ClearQueue done [11:16:47]KKMCreateOFDPacket [11:16:47]OFDProtocolAddRootSTLVToBuf [11:16:47]FM_MakeSignedData [11:16:47]FM_MakeSignedData [11:16:47]SAM_PROTO_SignData [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 01 02 [11:16:47]Write to MH i2c: E2 08 00 13 D9 80 0D 01 02 00 00 00 00 65 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 13 D9 00 90 00 60 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=255 [11:16:47]MH_SAM_APDU [11:16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA E6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 86 02 00 35 04 06 00 53 [11:16:47]Write to MH i2c: E2 02 01 14 D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA E6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 86 02 00 35 04 06 00 53 00 00 51 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 14 D9 00 90 00 61 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=10 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 05 86 9B 49 E6 67 [11:16:47]Write to MH i2c: E2 0D 00 15 D9 80 0D 02 02 05 00 86 9B 49 E6 67 00 00 29 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 15 D9 00 90 00 62 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 03 02 [11:16:47]Write to MH i2c: E2 08 00 16 D9 80 0D 03 02 00 00 00 00 6A [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0B 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0B 00 16 D9 00 2E 67 FD C3 43 EC 95 25 90 00 A9 [11:16:47]RAPDU: 2E 67 FD C3 43 EC 95 25 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_SignData done [11:16:47]FM_MakeSignedData done [11:16:47]CreateOFDProtocolMessage [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 11 00 00 [11:16:47]Write to MH i2c: E2 08 00 17 D9 80 11 00 00 00 00 00 00 6A [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 17 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 17 00 17 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [11:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:16:47]wFMCommunicate OK [11:16:47]CreateOFDProtocolMessage done [11:16:47]OFDSenderStorePacket 165619 [11:16:47]StoreOFDPacket docnum=165619 [11:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 3A 07 01 55 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA E6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 86 02 00 35 04 06 00 53 86 9B 49 E6 67 2E 67 FD C3 43 EC 95 25 [11:16:47]CheckFolder [11:16:47]dirname=/storage/ofd_packets [11:16:47]CheckFolder done [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00165619 [11:16:47]NVStorageSaveData ofd_packets/00165619 [11:16:47]File name is /storage/ofd_packets/00165619 [11:16:47]Write 301 bytes [11:16:47]NVStorageSaveData done [11:16:47]OFDSenderStorePacket done [11:16:47]KKMCreateOFDPacket done [11:16:47]NVStorageSaveData kkm_last_timestamp [11:16:47]File name is /storage/kkm_last_timestamp [11:16:47]Write 4 bytes [11:16:47]NVStorageSaveData done [11:16:47]ExternCall_PrintAddStr [11:16:47]wPrintStart [11:16:47]Write to MH i2c: 01 00 00 18 D9 F1 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 18 D9 00 00 00 00 00 FF 0F 06 [11:16:47]RasterBufferAndPrint [11:16:47]line Счет N : (1)220181 [11:16:47]line ИНН: 02508201610067 [11:16:47]line Контрольно-Кассовый Чек [11:16:47]line ПРОДАЖА [11:16:47]line ТРК (МРК, ГНК) : 33 [11:16:47]line Товар: 2710124130 [11:16:47]line Аи-92-К-5 [11:16:47]line 7.480 * 66.90 [11:16:47]line = 500.41 [11:16:47]line НДС 12% НСП 1% [11:16:47]line > о реализуемом товаре [11:16:47]line ОКРУГЛЕНИЕ: -0.41 [11:16:47]line ИТОГО: 500.00 [11:16:47]line Внесено: 500.00 [11:16:47]line СДАЧА: 0.00 [11:16:47]line НСП 1% : 4.43 [11:16:47]line НДС 12% : 53.14 [11:16:47]line Наличными: 500.00 [11:16:47]line Безнал.: 0.00 [11:16:47]line Место: АЗС № 161 "Партнер Нефть" [11:16:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:16:47]line СНО: Общий режим [11:16:47]line Чек 101 20.10.2024 11:16 [11:16:47]line Смена: 534 ФФД: 1.0 [11:16:47]line ЗНМ: 0300000104 [11:16:47]line РНМ: 0000000000091764 [11:16:47]line Версия ККМ: 001 [11:16:47]line ФМ: 0000000000871759 [11:16:47]line ФД: 165619 [11:16:47]line ФПД: 91837596034663 [11:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111658&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165619&fm=91837596034663&tin=02508201610067®Number=0000000000091764&sum=50000 [11:16:47]written 0, free lines is 4095 [11:16:47]OFD Sender: Processing packet 165619 [packets to send 48, broken 47] [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00165619 [11:16:47]OFD Sender: To server: pG, [11:16:47]CommunicateWithHost lk.salyk.kg:30040 [11:16:47]ConnectInit lk.salyk.kg [11:16:47]Connected sock=10 [11:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 3A 07 01 55 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA E6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 86 02 00 35 04 06 00 53 86 9B 49 E6 67 2E 67 FD C3 43 EC 95 25 [11:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 ED BB 47 00 FE 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 31 37 35 39 10 04 04 00 F3 86 02 00 F4 03 04 00 1B 8D 14 67 B6 04 01 00 00 CC 13 4D 24 55 B3 B4 21 [11:16:48]CommunicateWithHost err = 0 [11:16:48]CheckOFDResponse [11:16:48]1017 (14) - 77093643461234 [11:16:48]1041 (16) - 0000000000871759 [11:16:48]1040 (4) - 165619 [11:16:48]1012 (4) - 20.10.2024 04:54 [11:16:48]1206 (1) - 0 [11:16:48]OFD Sender: Remove packet 165619 [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00165619 [11:16:48]NVStorageDeleteData [11:16:48]Write to MH i2c: 01 00 00 43 D9 1C [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 43 D9 00 00 00 00 00 D4 0C 03 [11:16:48]RasterBufferAndPrint [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]written 0, free lines is 3293 [11:16:48]MH_Cut [11:16:48]Write to MH i2c: D1 01 00 4A D9 01 F5 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 01 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 01 00 4A D9 00 F4 [11:16:48]Write to MH i2c: 01 00 00 4B D9 24 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]OFD Sender: No OFD packet to send [11:16:49]*** Cut start [11:16:49]*** Partial cut [11:16:49]*** CUTSNS_PIN = 1 [11:16:49]*** CUTSNS_PIN = 0 [11:16:49]*** Brake cut motor [11:16:49]Read from MH i2c: 01 [11:16:49]MH_I2C_Read... [11:16:49]*** Stop cut motor [11:16:49]*** Cut end [11:16:49]Read from MH i2c: 01 07 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 07 00 4B D9 00 00 00 00 00 FF 0F 39 [11:16:49]process_action close_receipt done [11:16:49]requested_data is exist [11:16:49]produce_requested_data [11:16:49]requested_item fm.sn is exist - process it [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 11 00 00 [11:16:49]Write to MH i2c: E2 08 00 4C D9 80 11 00 00 00 00 00 00 9F [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 17 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 17 00 4C D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [11:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:16:49]wFMCommunicate OK [11:16:49]requested_item fd.num is exist - process it [11:16:49]SAM_PROTO_GetFieldsCounters [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 13 00 00 [11:16:49]Write to MH i2c: E2 08 00 4D D9 80 13 00 00 00 00 00 00 A2 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 62 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 62 00 4D D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [11:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:49]wFMCommunicate OK [11:16:49]SAM_PROTO_GetFieldsCounters done [11:16:49]requested_item shift.num is exist - process it [11:16:49]requested_item shift.opened is exist - process it [11:16:49]req_shift_opened [11:16:49]FM_GetShiftState [11:16:49]SAM_PROTO_GetShiftState [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 13 01 00 [11:16:49]Write to MH i2c: E2 08 00 4E D9 80 13 01 00 00 00 00 00 A4 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 4E D9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EC [11:16:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetShiftState done [11:16:50]FM_GetShiftState done [11:16:50]req_shift_opened done [11:16:50]requested_item shift.open_date is exist - process it [11:16:50]req_shift_open_date [11:16:50]req_shift_open_date done [11:16:50]produce_requested_data done [11:16:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165619,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:16:50]process_action_free close_receipt [11:16:50]json_value_free [11:16:50]json_value_free done [11:16:50]process_json_proto returns [11:16:50]Send response to host [11:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165619,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:16:50]free response buf [11:16:50]execute_script done [11:16:50]execute_script returns [11:16:50]free content buf [11:16:50]Sock 9.Close socket [11:16:50]Sock 9.Thread stoped [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:10]accept exits with 7 [11:18:10]New connection [11:18:10]New thread 3066776932 created [11:18:10]Thread 3066920292 joined [11:18:10]Waiting for new connection... [11:18:10] Sock 7.Parse request [11:18:10]Sock 7.Check first char [11:18:10]Sock 7.First char is OK [11:18:10]request: POST /json_proto HTTP/1.0 [11:18:10]Method: POST [11:18:10]URL: /json_proto [11:18:10]Method is POST - this is cgi request [11:18:10]url: /json_proto [11:18:10]query_string will be loaded in cgi processing [11:18:10]execute_cgi json_proto POST (null) [11:18:10]execute_cgi path=json_proto method=POST [11:18:10]POST find Content-Length [11:18:10]Host: 172.17.53.195:8080 [11:18:10]Content-Length: 682 [11:18:10]Content-Type: application/json [11:18:10] [11:18:10]POST finish read [11:18:10]Found Content-Length = 682 [11:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [11:18:10]execute_script... [11:18: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)220182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [11:18:10]POST & json_proto [11:18:10]process_json_proto [11:18:10]json parsed OK: [11:18:10]protocol is kg_v1.0 [11:18:10]action value=close_receipt [11:18:10]process_action close_receipt [11:18:10]cmd_close_receipt [11:18:10]MH_GetDate [11:18:10]Write to MH i2c: F0 00 00 4F D9 17 [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: F0 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: F0 09 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: F0 09 00 4F D9 00 FE E6 14 67 21 48 4A 65 97 [11:18:10]GetLastDocTimeStamp 1729423018 [11:18:10]current date 1729423102 [11:18:10]FM_GetShiftState [11:18:10]SAM_PROTO_GetShiftState [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 13 01 00 [11:18:10]Write to MH i2c: E2 08 00 50 D9 80 13 01 00 00 00 00 00 A6 [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 0E 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 0E 00 50 D9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EE [11:18:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:18:10]wFMCommunicate OK [11:18:10]SAM_PROTO_GetShiftState done [11:18:10]FM_GetShiftState done [11:18:10]opened in 1729384561 [11:18:10]opened+sec_in_day 1729470961 [11:18:10]quantity*price = 150056 [11:18:10]sum+1 = 150058 [11:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 102 20.10.2024 11:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165620 ФПД: 186277745087220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111822&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165620&fm=186277745087220&tin=02508201610067®Number=0000000000091764&sum=150000 [11:18:11]StoreToDocumentArchive [11:18:11]shift 534 fd 165620 [11:18:11]save to /storage/0534/doc_00165620 [11:18:11]save last doc name /storage/0534/doc_00165620 to /storage/kkm_last_doc_name [11:18:11]save OK [11:18:11]Clear old archive folders... [11:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:11]tlvbuf is 0190C340 [11:18:11]SAM_PROTO_ClearQueue [11:18:11]wFMCommunicate request_size=4 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 09 00 00 [11:18:11]Write to MH i2c: E2 08 00 5D D9 80 09 00 00 00 00 00 00 A8 [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 5D D9 00 90 00 AA [11:18:11]RAPDU: 90 00 [11:18:11]wFMCommunicate OK [11:18:11]SAM_PROTO_ClearQueue done [11:18:11]KKMCreateOFDPacket [11:18:11]OFDProtocolAddRootSTLVToBuf [11:18:11]FM_MakeSignedData [11:18:11]FM_MakeSignedData [11:18:11]SAM_PROTO_SignData [11:18:11]wFMCommunicate request_size=4 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 0D 01 02 [11:18:11]Write to MH i2c: E2 08 00 5E D9 80 0D 01 02 00 00 00 00 B0 [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 5E D9 00 90 00 AB [11:18:11]RAPDU: 90 00 [11:18:11]wFMCommunicate OK [11:18:11]wFMCommunicate request_size=255 [11:18:11]MH_SAM_APDU [11:18: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 66 00 00 00 F4 03 04 00 FE E6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 86 02 00 35 04 06 00 A9 [11:18:11]Write to MH i2c: E2 02 01 5F D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 66 00 00 00 F4 03 04 00 FE E6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 86 02 00 35 04 06 00 A9 00 00 91 [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:12]Read from MH i2c: E2 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 03 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 03 00 5F D9 00 90 00 AC [11:18:12]RAPDU: 90 00 [11:18:12]wFMCommunicate OK [11:18:12]wFMCommunicate request_size=10 [11:18:12]MH_SAM_APDU [11:18:12]CAPDU: 80 0D 02 02 05 6B 2A D3 52 F4 [11:18:12]Write to MH i2c: E2 0D 00 60 D9 80 0D 02 02 05 00 6B 2A D3 52 F4 00 00 6B [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:12]Read from MH i2c: E2 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 03 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 03 00 60 D9 00 90 00 AD [11:18:12]RAPDU: 90 00 [11:18:12]wFMCommunicate OK [11:18:12]wFMCommunicate request_size=4 [11:18:12]MH_SAM_APDU [11:18:12]CAPDU: 80 0D 03 02 [11:18:12]Write to MH i2c: E2 08 00 61 D9 80 0D 03 02 00 00 00 00 B5 [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:12]Read from MH i2c: E2 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 0B 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 0B 00 61 D9 00 ED F5 B1 69 81 62 42 1E 90 00 F5 [11:18:12]RAPDU: ED F5 B1 69 81 62 42 1E 90 00 [11:18:12]wFMCommunicate OK [11:18:12]SAM_PROTO_SignData done [11:18:12]FM_MakeSignedData done [11:18:12]CreateOFDProtocolMessage [11:18:12]wFMCommunicate request_size=4 [11:18:12]MH_SAM_APDU [11:18:12]CAPDU: 80 11 00 00 [11:18:12]Write to MH i2c: E2 08 00 62 D9 80 11 00 00 00 00 00 00 B5 [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:12]Read from MH i2c: E2 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 17 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 17 00 62 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [11:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:18:12]wFMCommunicate OK [11:18:12]CreateOFDProtocolMessage done [11:18:12]OFDSenderStorePacket 165620 [11:18:12]StoreOFDPacket docnum=165620 [11:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 59 07 01 01 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 66 00 00 00 F4 03 04 00 FE E6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 86 02 00 35 04 06 00 A9 6B 2A D3 52 F4 ED F5 B1 69 81 62 42 1E [11:18:12]CheckFolder [11:18:12]dirname=/storage/ofd_packets [11:18:12]CheckFolder done [11:18:12]ProducePacketName [11:18:12]name=ofd_packets/00165620 [11:18:12]NVStorageSaveData ofd_packets/00165620 [11:18:12]File name is /storage/ofd_packets/00165620 [11:18:12]Write 301 bytes [11:18:12]NVStorageSaveData done [11:18:12]OFDSenderStorePacket done [11:18:12]KKMCreateOFDPacket done [11:18:12]NVStorageSaveData kkm_last_timestamp [11:18:12]File name is /storage/kkm_last_timestamp [11:18:12]Write 4 bytes [11:18:12]NVStorageSaveData done [11:18:12]ExternCall_PrintAddStr [11:18:12]wPrintStart [11:18:12]Write to MH i2c: 01 00 00 63 D9 3C [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 07 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 07 00 63 D9 00 00 00 00 00 FF 0F 51 [11:18:12]RasterBufferAndPrint [11:18:12]line Счет N : (1)220182 [11:18:12]line ИНН: 02508201610067 [11:18:12]line Контрольно-Кассовый Чек [11:18:12]line ПРОДАЖА [11:18:12]line ТРК (МРК, ГНК) : 23 [11:18:12]line Товар: 2710124130 [11:18:12]line Аи-92-К-5 [11:18:12]line 22.430 * 66.90 [11:18:12]line = 1500.57 [11:18:12]line НДС 12% НСП 1% [11:18:12]line > о реализуемом товаре [11:18:12]line ОКРУГЛЕНИЕ: -0.57 [11:18:12]line ИТОГО: 1500.00 [11:18:12]line Внесено: 1500.00 [11:18:12]line СДАЧА: 0.00 [11:18:12]line НСП 1% : 13.28 [11:18:12]line НДС 12% : 159.35 [11:18:12]line Наличными: 1500.00 [11:18:12]line Безнал.: 0.00 [11:18:12]line Место: АЗС № 161 "Партнер Нефть" [11:18:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:18:12]line СНО: Общий режим [11:18:12]line Чек 102 20.10.2024 11:18 [11:18:12]line Смена: 534 ФФД: 1.0 [11:18:12]line ЗНМ: 0300000104 [11:18:12]line РНМ: 0000000000091764 [11:18:12]line Версия ККМ: 001 [11:18:12]line ФМ: 0000000000871759 [11:18:12]line ФД: 165620 [11:18:12]line ФПД: 186277745087220 [11:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111822&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165620&fm=186277745087220&tin=02508201610067®Number=0000000000091764&sum=150000 [11:18:12]OFD Sender: Processing packet 165620 [packets to send 48, broken 47] [11:18:12]ProducePacketName [11:18:12]name=ofd_packets/00165620 [11:18:12]OFD Sender: To server: pG, [11:18:12]CommunicateWithHost lk.salyk.kg:30040 [11:18:12]ConnectInit lk.salyk.kg [11:18:12]written 0, free lines is 4095 [11:18:12]Connected sock=10 [11:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 59 07 01 01 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 66 00 00 00 F4 03 04 00 FE E6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 86 02 00 35 04 06 00 A9 6B 2A D3 52 F4 ED F5 B1 69 81 62 42 1E [11:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FF 71 47 00 CB C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 86 02 00 F4 03 04 00 70 8D 14 67 B6 04 01 00 00 FB 6F BB 6C 00 8D 26 2C [11:18:12]CommunicateWithHost err = 0 [11:18:12]CheckOFDResponse [11:18:12]1017 (14) - 77093643461234 [11:18:12]1041 (16) - 0000000000871759 [11:18:12]1040 (4) - 165620 [11:18:12]1012 (4) - 20.10.2024 04:56 [11:18:12]1206 (1) - 0 [11:18:12]OFD Sender: Remove packet 165620 [11:18:12]ProducePacketName [11:18:12]name=ofd_packets/00165620 [11:18:12]NVStorageDeleteData [11:18:13]Write to MH i2c: 01 00 00 8E D9 67 [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: 01 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: 01 07 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: 01 07 00 8E D9 00 00 00 00 00 CC 0C 46 [11:18:13]RasterBufferAndPrint [11:18:13]line [11:18:13]line [11:18:13]line [11:18:13]line [11:18:13]line [11:18:13]written 0, free lines is 3282 [11:18:13]MH_Cut [11:18:13]Write to MH i2c: D1 01 00 95 D9 01 40 [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: D1 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: D1 01 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: D1 01 00 95 D9 00 3F [11:18:13]Write to MH i2c: 01 00 00 96 D9 6F [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]OFD Sender: No OFD packet to send [11:18:13]*** Cut start [11:18:13]*** Partial cut [11:18:13]*** CUTSNS_PIN = 1 [11:18:13]*** CUTSNS_PIN = 0 [11:18:14]*** Brake cut motor [11:18:14]Read from MH i2c: 01 [11:18:14]MH_I2C_Read... [11:18:14]*** Stop cut motor [11:18:14]*** Cut end [11:18:14]Read from MH i2c: 01 07 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: 01 07 00 96 D9 00 00 00 00 00 FF 0F 84 [11:18:14]process_action close_receipt done [11:18:14]requested_data is exist [11:18:14]produce_requested_data [11:18:14]requested_item fm.sn is exist - process it [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 11 00 00 [11:18:14]Write to MH i2c: E2 08 00 97 D9 80 11 00 00 00 00 00 00 EA [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 17 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 17 00 97 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [11:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:18:14]wFMCommunicate OK [11:18:14]requested_item fd.num is exist - process it [11:18:14]SAM_PROTO_GetFieldsCounters [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 13 00 00 [11:18:14]Write to MH i2c: E2 08 00 98 D9 80 13 00 00 00 00 00 00 ED [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 62 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 62 00 98 D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [11:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:14]wFMCommunicate OK [11:18:14]SAM_PROTO_GetFieldsCounters done [11:18:14]requested_item shift.num is exist - process it [11:18:14]requested_item shift.opened is exist - process it [11:18:14]req_shift_opened [11:18:14]FM_GetShiftState [11:18:14]SAM_PROTO_GetShiftState [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 13 01 00 [11:18:14]Write to MH i2c: E2 08 00 99 D9 80 13 01 00 00 00 00 00 EF [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 0E 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 0E 00 99 D9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 37 [11:18:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:18:14]wFMCommunicate OK [11:18:14]SAM_PROTO_GetShiftState done [11:18:14]FM_GetShiftState done [11:18:14]req_shift_opened done [11:18:14]requested_item shift.open_date is exist - process it [11:18:14]req_shift_open_date [11:18:14]req_shift_open_date done [11:18:14]produce_requested_data done [11:18:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165620,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:18:14]process_action_free close_receipt [11:18:14]json_value_free [11:18:14]json_value_free done [11:18:14]process_json_proto returns [11:18:14]Send response to host [11:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165620,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:18:14]free response buf [11:18:14]execute_script done [11:18:14]execute_script returns [11:18:14]free content buf [11:18:14]Sock 7.Close socket [11:18:14]Sock 7.Thread stoped [11:18:15]accept exits with 9 [11:18:15]New connection [11:18:15]New thread 3066920292 created [11:18:15]Thread 3066776932 joined [11:18:15]Waiting for new connection... [11:18:15] Sock 9.Parse request [11:18:15]Sock 9.Check first char [11:18:15]Sock 9.First char is OK [11:18:15]request: POST /json_proto HTTP/1.0 [11:18:15]Method: POST [11:18:15]URL: /json_proto [11:18:15]Method is POST - this is cgi request [11:18:15]url: /json_proto [11:18:15]query_string will be loaded in cgi processing [11:18:15]execute_cgi json_proto POST (null) [11:18:15]execute_cgi path=json_proto method=POST [11:18:15]POST find Content-Length [11:18:15]Host: 172.17.53.195:8080 [11:18:15]Content-Length: 677 [11:18:15]Content-Type: application/json [11:18:15] [11:18:15]POST finish read [11:18:15]Found Content-Length = 677 [11:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:15]execute_script... [11: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)220183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:15]POST & json_proto [11:18:15]process_json_proto [11:18:15]json parsed OK: [11:18:15]protocol is kg_v1.0 [11:18:15]action value=close_receipt [11:18:15]process_action close_receipt [11:18:15]cmd_close_receipt [11:18:15]MH_GetDate [11:18:15]Write to MH i2c: F0 00 00 9A D9 62 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 09 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 09 00 9A D9 00 03 E7 14 67 21 48 4A 65 E8 [11:18:15]GetLastDocTimeStamp 1729423102 [11:18:15]current date 1729423107 [11:18:15]FM_GetShiftState [11:18:15]SAM_PROTO_GetShiftState [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 13 01 00 [11:18:15]Write to MH i2c: E2 08 00 9B D9 80 13 01 00 00 00 00 00 F1 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0E 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0E 00 9B D9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 39 [11:18:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:18:15]wFMCommunicate OK [11:18:15]SAM_PROTO_GetShiftState done [11:18:15]FM_GetShiftState done [11:18:15]opened in 1729384561 [11:18:15]opened+sec_in_day 1729470961 [11:18:15]quantity*price = 49974 [11:18:15]sum+1 = 49975 [11:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 103 20.10.2024 11:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165621 ФПД: 19542655913502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165621&fm=19542655913502&tin=02508201610067®Number=0000000000091764&sum=49900 [11:18:16]StoreToDocumentArchive [11:18:16]shift 534 fd 165621 [11:18:16]save to /storage/0534/doc_00165621 [11:18:16]save last doc name /storage/0534/doc_00165621 to /storage/kkm_last_doc_name [11:18:16]save OK [11:18:16]Clear old archive folders... [11:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:16]tlvbuf is 01611E30 [11:18:16]SAM_PROTO_ClearQueue [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 09 00 00 [11:18:16]Write to MH i2c: E2 08 00 A8 D9 80 09 00 00 00 00 00 00 F3 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 A8 D9 00 90 00 F5 [11:18:16]RAPDU: 90 00 [11:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_ClearQueue done [11:18:16]KKMCreateOFDPacket [11:18:16]OFDProtocolAddRootSTLVToBuf [11:18:16]FM_MakeSignedData [11:18:16]FM_MakeSignedData [11:18:16]SAM_PROTO_SignData [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 0D 01 02 [11:18:16]Write to MH i2c: E2 08 00 A9 D9 80 0D 01 02 00 00 00 00 FB [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 A9 D9 00 90 00 F6 [11:18:16]RAPDU: 90 00 [11:18:16]wFMCommunicate OK [11:18:16]wFMCommunicate request_size=255 [11:18:16]MH_SAM_APDU [11: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 03 E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 86 02 00 35 04 06 00 11 [11:18:16]Write to MH i2c: E2 02 01 AA D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 03 E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 86 02 00 35 04 06 00 11 00 00 E4 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 AA D9 00 90 00 F7 [11:18:17]RAPDU: 90 00 [11:18:17]wFMCommunicate OK [11:18:17]wFMCommunicate request_size=10 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 0D 02 02 05 C6 21 10 4E 1E [11:18:17]Write to MH i2c: E2 0D 00 AB D9 80 0D 02 02 05 00 C6 21 10 4E 1E 00 00 6B [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 AB D9 00 90 00 F8 [11:18:17]RAPDU: 90 00 [11:18:17]wFMCommunicate OK [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 0D 03 02 [11:18:17]Write to MH i2c: E2 08 00 AC D9 80 0D 03 02 00 00 00 00 00 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 0B 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 0B 00 AC D9 00 FF 3F 5A 3B 0C 9E 80 BA 90 00 B8 [11:18:17]RAPDU: FF 3F 5A 3B 0C 9E 80 BA 90 00 [11:18:17]wFMCommunicate OK [11:18:17]SAM_PROTO_SignData done [11:18:17]FM_MakeSignedData done [11:18:17]CreateOFDProtocolMessage [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 11 00 00 [11:18:17]Write to MH i2c: E2 08 00 AD D9 80 11 00 00 00 00 00 00 00 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 17 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 17 00 AD D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [11:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:18:17]wFMCommunicate OK [11:18:17]CreateOFDProtocolMessage done [11:18:17]OFDSenderStorePacket 165621 [11:18:17]StoreOFDPacket docnum=165621 [11:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C6 72 07 01 BD 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 03 E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 86 02 00 35 04 06 00 11 C6 21 10 4E 1E FF 3F 5A 3B 0C 9E 80 BA [11:18:17]CheckFolder [11:18:17]dirname=/storage/ofd_packets [11:18:17]CheckFolder done [11:18:17]ProducePacketName [11:18:17]name=ofd_packets/00165621 [11:18:17]NVStorageSaveData ofd_packets/00165621 [11:18:17]File name is /storage/ofd_packets/00165621 [11:18:17]Write 301 bytes [11:18:17]NVStorageSaveData done [11:18:17]OFDSenderStorePacket done [11:18:17]KKMCreateOFDPacket done [11:18:17]NVStorageSaveData kkm_last_timestamp [11:18:17]File name is /storage/kkm_last_timestamp [11:18:17]Write 4 bytes [11:18:17]NVStorageSaveData done [11:18:17]ExternCall_PrintAddStr [11:18:17]wPrintStart [11:18:17]Write to MH i2c: 01 00 00 AE D9 87 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 07 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 07 00 AE D9 00 00 00 00 00 FF 0F 9C [11:18:17]RasterBufferAndPrint [11:18:17]line Счет N : (1)220183 [11:18:17]line ИНН: 02508201610067 [11:18:17]line Контрольно-Кассовый Чек [11:18:17]line ПРОДАЖА [11:18:17]line ТРК (МРК, ГНК) : 13 [11:18:17]line Товар: 2710124130 [11:18:17]line Аи-92-К-5 [11:18:17]line 7.470 * 66.90 [11:18:17]line = 499.74 [11:18:17]line НДС 12% НСП 1% [11:18:17]line > о реализуемом товаре [11:18:17]line ОКРУГЛЕНИЕ: -0.74 [11:18:17]line ИТОГО: 499.00 [11:18:17]line Внесено: 500.00 [11:18:17]line СДАЧА: 1.00 [11:18:17]line НСП 1% : 4.42 [11:18:17]line НДС 12% : 53.07 [11:18:17]line Наличными: 499.00 [11:18:17]line Безнал.: 0.00 [11:18:17]line Место: АЗС № 161 "Партнер Нефть" [11:18:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:18:17]line СНО: Общий режим [11:18:17]line Чек 103 20.10.2024 11:18 [11:18:17]line Смена: 534 ФФД: 1.0 [11:18:17]line ЗНМ: 0300000104 [11:18:17]line РНМ: 0000000000091764 [11:18:17]line Версия ККМ: 001 [11:18:17]line ФМ: 0000000000871759 [11:18:17]line ФД: 165621 [11:18:17]line ФПД: 19542655913502 [11:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165621&fm=19542655913502&tin=02508201610067®Number=0000000000091764&sum=49900 [11:18:17]OFD Sender: Processing packet 165621 [packets to send 48, broken 47] [11:18:17]ProducePacketName [11:18:17]name=ofd_packets/00165621 [11:18:17]written 0, free lines is 4095 [11:18:17]OFD Sender: To server: pG, [11:18:17]CommunicateWithHost lk.salyk.kg:30040 [11:18:17]ConnectInit lk.salyk.kg [11:18:17]Connected sock=10 [11:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C6 72 07 01 BD 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 03 E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 86 02 00 35 04 06 00 11 C6 21 10 4E 1E FF 3F 5A 3B 0C 9E 80 BA [11:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 17 5C 47 00 41 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 31 37 35 39 10 04 04 00 F5 86 02 00 F4 03 04 00 75 8D 14 67 B6 04 01 00 00 5A 59 57 5B EB 3B 7E D8 [11:18:18]CommunicateWithHost err = 0 [11:18:18]CheckOFDResponse [11:18:18]1017 (14) - 77093643461234 [11:18:18]1041 (16) - 0000000000871759 [11:18:18]1040 (4) - 165621 [11:18:18]1012 (4) - 20.10.2024 04:56 [11:18:18]1206 (1) - 0 [11:18:18]OFD Sender: Remove packet 165621 [11:18:18]ProducePacketName [11:18:18]name=ofd_packets/00165621 [11:18:18]NVStorageDeleteData [11:18:18]Write to MH i2c: 01 00 00 D9 D9 B2 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 D9 D9 00 00 00 00 00 CA 0C 8F [11:18:18]RasterBufferAndPrint [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]written 0, free lines is 3289 [11:18:18]MH_Cut [11:18:18]Write to MH i2c: D1 01 00 E0 D9 01 8B [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 01 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 01 00 E0 D9 00 8A [11:18:18]Write to MH i2c: 01 00 00 E1 D9 BA [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]OFD Sender: No OFD packet to send [11:18:18]*** Cut start [11:18:18]*** Partial cut [11:18:18]*** CUTSNS_PIN = 1 [11:18:18]*** CUTSNS_PIN = 0 [11:18:19]*** Brake cut motor [11:18:19]Read from MH i2c: 01 [11:18:19]MH_I2C_Read... [11:18:19]*** Stop cut motor [11:18:19]*** Cut end [11:18:19]Read from MH i2c: 01 07 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: 01 07 00 E1 D9 00 00 00 00 00 FF 0F CF [11:18:19]process_action close_receipt done [11:18:19]requested_data is exist [11:18:19]produce_requested_data [11:18:19]requested_item fm.sn is exist - process it [11:18:19]wFMCommunicate request_size=4 [11:18:19]MH_SAM_APDU [11:18:19]CAPDU: 80 11 00 00 [11:18:19]Write to MH i2c: E2 08 00 E2 D9 80 11 00 00 00 00 00 00 35 [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:19]Read from MH i2c: E2 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 17 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 17 00 E2 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [11:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:18:19]wFMCommunicate OK [11:18:19]requested_item fd.num is exist - process it [11:18:19]SAM_PROTO_GetFieldsCounters [11:18:19]wFMCommunicate request_size=4 [11:18:19]MH_SAM_APDU [11:18:19]CAPDU: 80 13 00 00 [11:18:19]Write to MH i2c: E2 08 00 E3 D9 80 13 00 00 00 00 00 00 38 [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:19]Read from MH i2c: E2 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 62 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 62 00 E3 D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:18:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:19]wFMCommunicate OK [11:18:19]SAM_PROTO_GetFieldsCounters done [11:18:19]requested_item shift.num is exist - process it [11:18:19]requested_item shift.opened is exist - process it [11:18:19]req_shift_opened [11:18:19]FM_GetShiftState [11:18:19]SAM_PROTO_GetShiftState [11:18:19]wFMCommunicate request_size=4 [11:18:19]MH_SAM_APDU [11:18:19]CAPDU: 80 13 01 00 [11:18:19]Write to MH i2c: E2 08 00 E4 D9 80 13 01 00 00 00 00 00 3A [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:19]Read from MH i2c: E2 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 0E 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 0E 00 E4 D9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 82 [11:18:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:18:19]wFMCommunicate OK [11:18:19]SAM_PROTO_GetShiftState done [11:18:19]FM_GetShiftState done [11:18:19]req_shift_opened done [11:18:19]requested_item shift.open_date is exist - process it [11:18:19]req_shift_open_date [11:18:19]req_shift_open_date done [11:18:19]produce_requested_data done [11:18:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165621,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:18:19]process_action_free close_receipt [11:18:19]json_value_free [11:18:19]json_value_free done [11:18:19]process_json_proto returns [11:18:19]Send response to host [11:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165621,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:18:19]free response buf [11:18:19]execute_script done [11:18:19]execute_script returns [11:18:19]free content buf [11:18:19]Sock 9.Close socket [11:18:19]Sock 9.Thread stoped [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:16]accept exits with 7 [11:20:16]New connection [11:20:16]New thread 3066776932 created [11:20:16]Thread 3066920292 joined [11:20:16]Waiting for new connection... [11:20:16] Sock 7.Parse request [11:20:16]Sock 7.Check first char [11:20:16]Sock 7.First char is OK [11:20:16]request: POST /json_proto HTTP/1.0 [11:20:16]Method: POST [11:20:16]URL: /json_proto [11:20:16]Method is POST - this is cgi request [11:20:16]url: /json_proto [11:20:16]query_string will be loaded in cgi processing [11:20:16]execute_cgi json_proto POST (null) [11:20:16]execute_cgi path=json_proto method=POST [11:20:16]POST find Content-Length [11:20:16]Host: 172.17.53.195:8080 [11:20:16]Content-Length: 677 [11:20:16]Content-Type: application/json [11:20:16] [11:20:16]POST finish read [11:20:16]Found Content-Length = 677 [11:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:16]execute_script... [11:20: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)220184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:16]POST & json_proto [11:20:16]process_json_proto [11:20:16]json parsed OK: [11:20:16]protocol is kg_v1.0 [11:20:16]action value=close_receipt [11:20:16]process_action close_receipt [11:20:16]cmd_close_receipt [11:20:16]MH_GetDate [11:20:16]Write to MH i2c: F0 00 00 E5 D9 AD [11:20:16]Write i2c OK [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: F0 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: F0 09 00 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: F0 09 00 E5 D9 00 7C E7 14 67 21 48 4A 65 AC [11:20:16]GetLastDocTimeStamp 1729423107 [11:20:16]current date 1729423228 [11:20:16]FM_GetShiftState [11:20:16]SAM_PROTO_GetShiftState [11:20:16]wFMCommunicate request_size=4 [11:20:16]MH_SAM_APDU [11:20:16]CAPDU: 80 13 01 00 [11:20:16]Write to MH i2c: E2 08 00 E6 D9 80 13 01 00 00 00 00 00 3C [11:20:16]Write i2c OK [11:20:16]MH_I2C_Read... [11:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:16]Read from MH i2c: E2 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 0E 00 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 0E 00 E6 D9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 84 [11:20:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:20:16]wFMCommunicate OK [11:20:16]SAM_PROTO_GetShiftState done [11:20:16]FM_GetShiftState done [11:20:16]opened in 1729384561 [11:20:16]opened+sec_in_day 1729470961 [11:20:16]quantity*price = 49974 [11:20:16]sum+1 = 49975 [11:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 104 20.10.2024 11:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165622 ФПД: 40958069345903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112028&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165622&fm=40958069345903&tin=02508201610067®Number=0000000000091764&sum=49900 [11:20:17]StoreToDocumentArchive [11:20:17]shift 534 fd 165622 [11:20:17]save to /storage/0534/doc_00165622 [11:20:17]save last doc name /storage/0534/doc_00165622 to /storage/kkm_last_doc_name [11:20:17]save OK [11:20:17]Clear old archive folders... [11:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:17]tlvbuf is 01460AD0 [11:20:17]SAM_PROTO_ClearQueue [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 09 00 00 [11:20:17]Write to MH i2c: E2 08 00 F3 D9 80 09 00 00 00 00 00 00 3E [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 F3 D9 00 90 00 40 [11:20:17]RAPDU: 90 00 [11:20:17]wFMCommunicate OK [11:20:17]SAM_PROTO_ClearQueue done [11:20:17]KKMCreateOFDPacket [11:20:17]OFDProtocolAddRootSTLVToBuf [11:20:17]FM_MakeSignedData [11:20:17]FM_MakeSignedData [11:20:17]SAM_PROTO_SignData [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 0D 01 02 [11:20:17]Write to MH i2c: E2 08 00 F4 D9 80 0D 01 02 00 00 00 00 46 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 F4 D9 00 90 00 41 [11:20:17]RAPDU: 90 00 [11:20:17]wFMCommunicate OK [11:20:17]wFMCommunicate request_size=255 [11:20:17]MH_SAM_APDU [11:20: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 7C E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 86 02 00 35 04 06 00 25 [11:20:17]Write to MH i2c: E2 02 01 F5 D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 7C E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 86 02 00 35 04 06 00 25 00 00 BE [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 F5 D9 00 90 00 42 [11:20:17]RAPDU: 90 00 [11:20:17]wFMCommunicate OK [11:20:17]wFMCommunicate request_size=10 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 0D 02 02 05 40 4B 2C 8E 6F [11:20:17]Write to MH i2c: E2 0D 00 F6 D9 80 0D 02 02 05 00 40 4B 2C 8E 6F 00 00 07 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 03 00 F6 D9 00 90 00 43 [11:20:17]RAPDU: 90 00 [11:20:17]wFMCommunicate OK [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 0D 03 02 [11:20:17]Write to MH i2c: E2 08 00 F7 D9 80 0D 03 02 00 00 00 00 4B [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 0B 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 0B 00 F7 D9 00 9C C0 77 1C 30 4B 49 C5 90 00 C4 [11:20:17]RAPDU: 9C C0 77 1C 30 4B 49 C5 90 00 [11:20:17]wFMCommunicate OK [11:20:17]SAM_PROTO_SignData done [11:20:17]FM_MakeSignedData done [11:20:17]CreateOFDProtocolMessage [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 11 00 00 [11:20:17]Write to MH i2c: E2 08 00 F8 D9 80 11 00 00 00 00 00 00 4B [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 17 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 17 00 F8 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [11:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:20:17]wFMCommunicate OK [11:20:17]CreateOFDProtocolMessage done [11:20:17]OFDSenderStorePacket 165622 [11:20:17]StoreOFDPacket docnum=165622 [11:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 35 07 01 D6 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 7C E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 86 02 00 35 04 06 00 25 40 4B 2C 8E 6F 9C C0 77 1C 30 4B 49 C5 [11:20:17]CheckFolder [11:20:17]dirname=/storage/ofd_packets [11:20:17]CheckFolder done [11:20:17]ProducePacketName [11:20:17]name=ofd_packets/00165622 [11:20:17]NVStorageSaveData ofd_packets/00165622 [11:20:17]File name is /storage/ofd_packets/00165622 [11:20:17]Write 301 bytes [11:20:17]NVStorageSaveData done [11:20:17]OFDSenderStorePacket done [11:20:17]KKMCreateOFDPacket done [11:20:17]NVStorageSaveData kkm_last_timestamp [11:20:17]File name is /storage/kkm_last_timestamp [11:20:17]Write 4 bytes [11:20:17]NVStorageSaveData done [11:20:17]ExternCall_PrintAddStr [11:20:17]wPrintStart [11:20:17]Write to MH i2c: 01 00 00 F9 D9 D2 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: 01 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: 01 07 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: 01 07 00 F9 D9 00 00 00 00 00 FF 0F E7 [11:20:17]RasterBufferAndPrint [11:20:17]line Счет N : (1)220184 [11:20:17]line ИНН: 02508201610067 [11:20:17]line Контрольно-Кассовый Чек [11:20:17]line ПРОДАЖА [11:20:17]line ТРК (МРК, ГНК) : 43 [11:20:17]line Товар: 2710124130 [11:20:17]line Аи-92-К-5 [11:20:17]line 7.470 * 66.90 [11:20:17]line = 499.74 [11:20:17]line НДС 12% НСП 1% [11:20:17]line > о реализуемом товаре [11:20:17]line ОКРУГЛЕНИЕ: -0.74 [11:20:17]line ИТОГО: 499.00 [11:20:17]line Внесено: 500.00 [11:20:17]line СДАЧА: 1.00 [11:20:17]line НСП 1% : 4.42 [11:20:17]line НДС 12% : 53.07 [11:20:17]line Наличными: 499.00 [11:20:17]line Безнал.: 0.00 [11:20:17]line Место: АЗС № 161 "Партнер Нефть" [11:20:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:20:17]line СНО: Общий режим [11:20:17]line Чек 104 20.10.2024 11:20 [11:20:17]line Смена: 534 ФФД: 1.0 [11:20:17]line ЗНМ: 0300000104 [11:20:17]line РНМ: 0000000000091764 [11:20:17]line Версия ККМ: 001 [11:20:17]line ФМ: 0000000000871759 [11:20:17]line ФД: 165622 [11:20:17]line ФПД: 40958069345903 [11:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112028&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165622&fm=40958069345903&tin=02508201610067®Number=0000000000091764&sum=49900 [11:20:18]OFD Sender: Processing packet 165622 [packets to send 48, broken 47] [11:20:18]ProducePacketName [11:20:18]name=ofd_packets/00165622 [11:20:18]OFD Sender: To server: pG, [11:20:18]CommunicateWithHost lk.salyk.kg:30040 [11:20:18]ConnectInit lk.salyk.kg [11:20:18]written 0, free lines is 4095 [11:20:18]Connected sock=10 [11:20:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 35 07 01 D6 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 7C E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 86 02 00 35 04 06 00 25 40 4B 2C 8E 6F 9C C0 77 1C 30 4B 49 C5 [11:20:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2F B9 47 00 C6 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 31 37 35 39 10 04 04 00 F6 86 02 00 F4 03 04 00 EE 8D 14 67 B6 04 01 00 00 BC 9F B6 BF B9 4F 2E C9 [11:20:18]CommunicateWithHost err = 0 [11:20:18]CheckOFDResponse [11:20:18]1017 (14) - 77093643461234 [11:20:18]1041 (16) - 0000000000871759 [11:20:18]1040 (4) - 165622 [11:20:18]1012 (4) - 20.10.2024 04:58 [11:20:18]1206 (1) - 0 [11:20:18]OFD Sender: Remove packet 165622 [11:20:18]ProducePacketName [11:20:18]name=ofd_packets/00165622 [11:20:18]NVStorageDeleteData [11:20:18]Write to MH i2c: 01 00 00 24 DA FE [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: 01 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: 01 07 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: 01 07 00 24 DA 00 00 00 00 00 D4 0C E5 [11:20:18]RasterBufferAndPrint [11:20:18]line [11:20:18]line [11:20:18]line [11:20:18]line [11:20:18]line [11:20:18]written 0, free lines is 3292 [11:20:18]MH_Cut [11:20:18]Write to MH i2c: D1 01 00 2B DA 01 D7 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: D1 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: D1 01 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: D1 01 00 2B DA 00 D6 [11:20:18]Write to MH i2c: 01 00 00 2C DA 06 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]OFD Sender: No OFD packet to send [11:20:19]*** Cut start [11:20:19]*** Partial cut [11:20:19]*** CUTSNS_PIN = 1 [11:20:19]*** CUTSNS_PIN = 0 [11:20:19]*** Brake cut motor [11:20:20]Read from MH i2c: 01 [11:20:20]MH_I2C_Read... [11:20:20]*** Stop cut motor [11:20:20]*** Cut end [11:20:20]Read from MH i2c: 01 07 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: 01 07 00 2C DA 00 00 00 00 00 FF 0F 1B [11:20:20]process_action close_receipt done [11:20:20]requested_data is exist [11:20:20]produce_requested_data [11:20:20]requested_item fm.sn is exist - process it [11:20:20]wFMCommunicate request_size=4 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 11 00 00 [11:20:20]Write to MH i2c: E2 08 00 2D DA 80 11 00 00 00 00 00 00 81 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 17 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 17 00 2D DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [11:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:20:20]wFMCommunicate OK [11:20:20]requested_item fd.num is exist - process it [11:20:20]SAM_PROTO_GetFieldsCounters [11:20:20]wFMCommunicate request_size=4 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 13 00 00 [11:20:20]Write to MH i2c: E2 08 00 2E DA 80 13 00 00 00 00 00 00 84 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 62 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 62 00 2E DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:20:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:20]wFMCommunicate OK [11:20:20]SAM_PROTO_GetFieldsCounters done [11:20:20]requested_item shift.num is exist - process it [11:20:20]requested_item shift.opened is exist - process it [11:20:20]req_shift_opened [11:20:20]FM_GetShiftState [11:20:20]SAM_PROTO_GetShiftState [11:20:20]wFMCommunicate request_size=4 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 13 01 00 [11:20:20]Write to MH i2c: E2 08 00 2F DA 80 13 01 00 00 00 00 00 86 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 0E 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 0E 00 2F DA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CE [11:20:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:20:20]wFMCommunicate OK [11:20:20]SAM_PROTO_GetShiftState done [11:20:20]FM_GetShiftState done [11:20:20]req_shift_opened done [11:20:20]requested_item shift.open_date is exist - process it [11:20:20]req_shift_open_date [11:20:20]req_shift_open_date done [11:20:20]produce_requested_data done [11:20:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165622,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:20:20]process_action_free close_receipt [11:20:20]json_value_free [11:20:20]json_value_free done [11:20:20]process_json_proto returns [11:20:20]Send response to host [11:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165622,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:20:20]free response buf [11:20:20]execute_script done [11:20:20]execute_script returns [11:20:20]free content buf [11:20:20]Sock 7.Close socket [11:20:20]Sock 7.Thread stoped [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:32]accept exits with 9 [11:20:32]New connection [11:20:32]New thread 3066920292 created [11:20:32]Thread 3066776932 joined [11:20:32]Waiting for new connection... [11:20:32] Sock 9.Parse request [11:20:32]Sock 9.Check first char [11:20:32]Sock 9.First char is OK [11:20:32]request: POST /json_proto HTTP/1.0 [11:20:32]Method: POST [11:20:32]URL: /json_proto [11:20:32]Method is POST - this is cgi request [11:20:32]url: /json_proto [11:20:32]query_string will be loaded in cgi processing [11:20:32]execute_cgi json_proto POST (null) [11:20:32]execute_cgi path=json_proto method=POST [11:20:32]POST find Content-Length [11:20:32]Host: 172.17.53.195:8080 [11:20:32]Content-Length: 679 [11:20:32]Content-Type: application/json [11:20:32] [11:20:32]POST finish read [11:20:32]Found Content-Length = 679 [11:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:32]execute_script... [11:20: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)220185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:32]POST & json_proto [11:20:32]process_json_proto [11:20:32]json parsed OK: [11:20:32]protocol is kg_v1.0 [11:20:32]action value=close_receipt [11:20:32]process_action close_receipt [11:20:32]cmd_close_receipt [11:20:32]MH_GetDate [11:20:32]Write to MH i2c: F0 00 00 30 DA F9 [11:20:32]Write i2c OK [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: F0 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: F0 09 00 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: F0 09 00 30 DA 00 8C E7 14 67 21 48 4A 65 08 [11:20:32]GetLastDocTimeStamp 1729423228 [11:20:32]current date 1729423244 [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 31 DA 80 13 01 00 00 00 00 00 88 [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 31 DA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D0 [11:20:32]RAPDU: 09 00 01 71 50 14 67 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]opened in 1729384561 [11:20:32]opened+sec_in_day 1729470961 [11:20:32]quantity*price = 99947 [11:20:32]sum+1 = 99948 [11:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 105 20.10.2024 11:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165623 ФПД: 246450475431890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112045&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165623&fm=246450475431890&tin=02508201610067®Number=0000000000091764&sum=99900 [11:20:34]StoreToDocumentArchive [11:20:34]shift 534 fd 165623 [11:20:34]save to /storage/0534/doc_00165623 [11:20:34]save last doc name /storage/0534/doc_00165623 to /storage/kkm_last_doc_name [11:20:34]save OK [11:20:34]Clear old archive folders... [11:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:34]tlvbuf is 0161BF10 [11:20:34]SAM_PROTO_ClearQueue [11:20:34]wFMCommunicate request_size=4 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 09 00 00 [11:20:34]Write to MH i2c: E2 08 00 3E DA 80 09 00 00 00 00 00 00 8A [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 3E DA 00 90 00 8C [11:20:34]RAPDU: 90 00 [11:20:34]wFMCommunicate OK [11:20:34]SAM_PROTO_ClearQueue done [11:20:34]KKMCreateOFDPacket [11:20:34]OFDProtocolAddRootSTLVToBuf [11:20:34]FM_MakeSignedData [11:20:34]FM_MakeSignedData [11:20:34]SAM_PROTO_SignData [11:20:34]wFMCommunicate request_size=4 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 0D 01 02 [11:20:34]Write to MH i2c: E2 08 00 3F DA 80 0D 01 02 00 00 00 00 92 [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 3F DA 00 90 00 8D [11:20:34]RAPDU: 90 00 [11:20:34]wFMCommunicate OK [11:20:34]wFMCommunicate request_size=255 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 69 00 00 00 F4 03 04 00 8D E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 86 02 00 35 04 06 00 E0 [11:20:34]Write to MH i2c: E2 02 01 40 DA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 69 00 00 00 F4 03 04 00 8D E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 86 02 00 35 04 06 00 E0 00 00 EE [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 40 DA 00 90 00 8E [11:20:34]RAPDU: 90 00 [11:20:34]wFMCommunicate OK [11:20:34]wFMCommunicate request_size=10 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 0D 02 02 05 25 39 0A F7 D2 [11:20:34]Write to MH i2c: E2 0D 00 41 DA 80 0D 02 02 05 00 25 39 0A F7 D2 00 00 D0 [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 41 DA 00 90 00 8F [11:20:34]RAPDU: 90 00 [11:20:34]wFMCommunicate OK [11:20:34]wFMCommunicate request_size=4 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 0D 03 02 [11:20:34]Write to MH i2c: E2 08 00 42 DA 80 0D 03 02 00 00 00 00 97 [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 0B 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 0B 00 42 DA 00 8F 43 C5 43 9C 07 00 63 90 00 78 [11:20:34]RAPDU: 8F 43 C5 43 9C 07 00 63 90 00 [11:20:34]wFMCommunicate OK [11:20:34]SAM_PROTO_SignData done [11:20:34]FM_MakeSignedData done [11:20:34]CreateOFDProtocolMessage [11:20:34]wFMCommunicate request_size=4 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 11 00 00 [11:20:34]Write to MH i2c: E2 08 00 43 DA 80 11 00 00 00 00 00 00 97 [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 17 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 17 00 43 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [11:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:20:34]wFMCommunicate OK [11:20:34]CreateOFDProtocolMessage done [11:20:34]OFDSenderStorePacket 165623 [11:20:34]StoreOFDPacket docnum=165623 [11:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC FA 07 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 69 00 00 00 F4 03 04 00 8D E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 86 02 00 35 04 06 00 E0 25 39 0A F7 D2 8F 43 C5 43 9C 07 00 63 [11:20:34]CheckFolder [11:20:34]dirname=/storage/ofd_packets [11:20:34]CheckFolder done [11:20:34]ProducePacketName [11:20:34]name=ofd_packets/00165623 [11:20:34]NVStorageSaveData ofd_packets/00165623 [11:20:34]File name is /storage/ofd_packets/00165623 [11:20:34]Write 301 bytes [11:20:34]NVStorageSaveData done [11:20:34]OFDSenderStorePacket done [11:20:34]KKMCreateOFDPacket done [11:20:34]OFD Sender: Processing packet 165623 [packets to send 48, broken 47] [11:20:34]ProducePacketName [11:20:34]name=ofd_packets/00165623 [11:20:34]OFD Sender: To server: pG, [11:20:34]CommunicateWithHost lk.salyk.kg:30040 [11:20:34]ConnectInit lk.salyk.kg [11:20:34]NVStorageSaveData kkm_last_timestamp [11:20:34]File name is /storage/kkm_last_timestamp [11:20:34]Write 4 bytes [11:20:34]NVStorageSaveData done [11:20:34]ExternCall_PrintAddStr [11:20:34]wPrintStart [11:20:34]Write to MH i2c: 01 00 00 44 DA 1E [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: 01 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: 01 07 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: 01 07 00 44 DA 00 00 00 00 00 FF 0F 33 [11:20:34]RasterBufferAndPrint [11:20:34]line Счет N : (1)220185 [11:20:34]line ИНН: 02508201610067 [11:20:34]line Контрольно-Кассовый Чек [11:20:34]line ПРОДАЖА [11:20:34]line ТРК (МРК, ГНК) : 14 [11:20:34]line Товар: 2710124500 [11:20:34]line Аи-95-К-5 [11:20:34]line 13.470 * 74.20 [11:20:34]line = 999.47 [11:20:34]line НДС 12% НСП 1% [11:20:34]line > о реализуемом товаре [11:20:34]line ОКРУГЛЕНИЕ: -0.47 [11:20:34]line ИТОГО: 999.00 [11:20:34]line Внесено: 1000.00 [11:20:34]line СДАЧА: 1.00 [11:20:34]line НСП 1% : 8.84 [11:20:34]line НДС 12% : 106.14 [11:20:34]line Наличными: 999.00 [11:20:34]line Безнал.: 0.00 [11:20:34]line Место: АЗС № 161 "Партнер Нефть" [11:20:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:20:34]line СНО: Общий режим [11:20:34]line Чек 105 20.10.2024 11:20 [11:20:34]line Смена: 534 ФФД: 1.0 [11:20:34]line ЗНМ: 0300000104 [11:20:34]line РНМ: 0000000000091764 [11:20:34]line Версия ККМ: 001 [11:20:34]line ФМ: 0000000000871759 [11:20:34]line ФД: 165623 [11:20:34]line ФПД: 246450475431890 [11:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112045&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165623&fm=246450475431890&tin=02508201610067®Number=0000000000091764&sum=99900 [11:20:34]Connected sock=10 [11:20:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC FA 07 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 69 00 00 00 F4 03 04 00 8D E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 86 02 00 35 04 06 00 E0 25 39 0A F7 D2 8F 43 C5 43 9C 07 00 63 [11:20:35]written 0, free lines is 4095 [11:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B 88 47 00 0B 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 86 02 00 F4 03 04 00 FE 8D 14 67 B6 04 01 00 00 C3 28 EC 81 26 81 04 B2 [11:20:35]CommunicateWithHost err = 0 [11:20:35]CheckOFDResponse [11:20:35]1017 (14) - 77093643461234 [11:20:35]1041 (16) - 0000000000871759 [11:20:35]1040 (4) - 165623 [11:20:35]1012 (4) - 20.10.2024 04:58 [11:20:35]1206 (1) - 0 [11:20:35]OFD Sender: Remove packet 165623 [11:20:35]ProducePacketName [11:20:35]name=ofd_packets/00165623 [11:20:35]NVStorageDeleteData [11:20:35]Write to MH i2c: 01 00 00 6F DA 49 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 07 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 07 00 6F DA 00 00 00 00 00 CF 0C 2B [11:20:35]RasterBufferAndPrint [11:20:35]line [11:20:35]line [11:20:35]line [11:20:35]line [11:20:35]line [11:20:35]written 0, free lines is 3285 [11:20:35]MH_Cut [11:20:35]Write to MH i2c: D1 01 00 76 DA 01 22 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: D1 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: D1 01 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: D1 01 00 76 DA 00 21 [11:20:35]Write to MH i2c: 01 00 00 77 DA 51 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]OFD Sender: No OFD packet to send [11:20:36]*** Cut start [11:20:36]*** Partial cut [11:20:36]*** CUTSNS_PIN = 1 [11:20:36]*** CUTSNS_PIN = 0 [11:20:36]*** Brake cut motor [11:20:36]Read from MH i2c: 01 [11:20:36]MH_I2C_Read... [11:20:36]*** Stop cut motor [11:20:36]*** Cut end [11:20:36]Read from MH i2c: 01 07 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 77 DA 00 00 00 00 00 FF 0F 66 [11:20:36]process_action close_receipt done [11:20:36]requested_data is exist [11:20:36]produce_requested_data [11:20:36]requested_item fm.sn is exist - process it [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 11 00 00 [11:20:36]Write to MH i2c: E2 08 00 78 DA 80 11 00 00 00 00 00 00 CC [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 78 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [11:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:20:36]wFMCommunicate OK [11:20:36]requested_item fd.num is exist - process it [11:20:36]SAM_PROTO_GetFieldsCounters [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 13 00 00 [11:20:36]Write to MH i2c: E2 08 00 79 DA 80 13 00 00 00 00 00 00 CF [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 62 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 62 00 79 DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [11:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:37]wFMCommunicate OK [11:20:37]SAM_PROTO_GetFieldsCounters done [11:20:37]requested_item shift.num is exist - process it [11:20:37]requested_item shift.opened is exist - process it [11:20:37]req_shift_opened [11:20:37]FM_GetShiftState [11:20:37]SAM_PROTO_GetShiftState [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 13 01 00 [11:20:37]Write to MH i2c: E2 08 00 7A DA 80 13 01 00 00 00 00 00 D1 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 0E 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 0E 00 7A DA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 19 [11:20:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:20:37]wFMCommunicate OK [11:20:37]SAM_PROTO_GetShiftState done [11:20:37]FM_GetShiftState done [11:20:37]req_shift_opened done [11:20:37]requested_item shift.open_date is exist - process it [11:20:37]req_shift_open_date [11:20:37]req_shift_open_date done [11:20:37]produce_requested_data done [11:20:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165623,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:20:37]process_action_free close_receipt [11:20:37]json_value_free [11:20:37]json_value_free done [11:20:37]process_json_proto returns [11:20:37]Send response to host [11:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165623,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:20:37]free response buf [11:20:37]execute_script done [11:20:37]execute_script returns [11:20:37]free content buf [11:20:37]Sock 9.Close socket [11:20:37]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:49]accept exits with 7 [11:21:49]New connection [11:21:49]New thread 3066776932 created [11:21:49]Thread 3066920292 joined [11:21:49]Waiting for new connection... [11:21:49] Sock 7.Parse request [11:21:49]Sock 7.Check first char [11:21:49]Sock 7.First char is OK [11:21:49]request: POST /json_proto HTTP/1.0 [11:21:49]Method: POST [11:21:49]URL: /json_proto [11:21:49]Method is POST - this is cgi request [11:21:49]url: /json_proto [11:21:49]query_string will be loaded in cgi processing [11:21:49]execute_cgi json_proto POST (null) [11:21:49]execute_cgi path=json_proto method=POST [11:21:49]POST find Content-Length [11:21:49]Host: 172.17.53.195:8080 [11:21:49]Content-Length: 677 [11:21:49]Content-Type: application/json [11:21:49] [11:21:49]POST finish read [11:21:49]Found Content-Length = 677 [11:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:49]execute_script... [11:21: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)220186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:49]POST & json_proto [11:21:49]process_json_proto [11:21:49]json parsed OK: [11:21:49]protocol is kg_v1.0 [11:21:49]action value=close_receipt [11:21:49]process_action close_receipt [11:21:49]cmd_close_receipt [11:21:49]MH_GetDate [11:21:49]Write to MH i2c: F0 00 00 7B DA 44 [11:21:49]Write i2c OK [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: F0 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: F0 09 00 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: F0 09 00 7B DA 00 DA E7 14 67 21 48 4A 65 A1 [11:21:49]GetLastDocTimeStamp 1729423245 [11:21:49]current date 1729423322 [11:21:49]FM_GetShiftState [11:21:49]SAM_PROTO_GetShiftState [11:21:49]wFMCommunicate request_size=4 [11:21:49]MH_SAM_APDU [11:21:49]CAPDU: 80 13 01 00 [11:21:49]Write to MH i2c: E2 08 00 7C DA 80 13 01 00 00 00 00 00 D3 [11:21:49]Write i2c OK [11:21:49]MH_I2C_Read... [11:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:50]Read from MH i2c: E2 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: E2 0E 00 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: E2 0E 00 7C DA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1B [11:21:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:21:50]wFMCommunicate OK [11:21:50]SAM_PROTO_GetShiftState done [11:21:50]FM_GetShiftState done [11:21:50]opened in 1729384561 [11:21:50]opened+sec_in_day 1729470961 [11:21:50]quantity*price = 60009 [11:21:50]sum+1 = 60010 [11:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 106 20.10.2024 11:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165624 ФПД: 135569875607793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112202&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165624&fm=135569875607793&tin=02508201610067®Number=0000000000091764&sum=60000 [11:21:51]StoreToDocumentArchive [11:21:51]shift 534 fd 165624 [11:21:51]save to /storage/0534/doc_00165624 [11:21:51]save last doc name /storage/0534/doc_00165624 to /storage/kkm_last_doc_name [11:21:51]save OK [11:21:51]Clear old archive folders... [11:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:51]tlvbuf is 015FCCE0 [11:21:51]SAM_PROTO_ClearQueue [11:21:51]wFMCommunicate request_size=4 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 09 00 00 [11:21:51]Write to MH i2c: E2 08 00 89 DA 80 09 00 00 00 00 00 00 D5 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 89 DA 00 90 00 D7 [11:21:51]RAPDU: 90 00 [11:21:51]wFMCommunicate OK [11:21:51]SAM_PROTO_ClearQueue done [11:21:51]KKMCreateOFDPacket [11:21:51]OFDProtocolAddRootSTLVToBuf [11:21:51]FM_MakeSignedData [11:21:51]FM_MakeSignedData [11:21:51]SAM_PROTO_SignData [11:21:51]wFMCommunicate request_size=4 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 0D 01 02 [11:21:51]Write to MH i2c: E2 08 00 8A DA 80 0D 01 02 00 00 00 00 DD [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 8A DA 00 90 00 D8 [11:21:51]RAPDU: 90 00 [11:21:51]wFMCommunicate OK [11:21:51]wFMCommunicate request_size=255 [11:21:51]MH_SAM_APDU [11:21: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 DA E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 86 02 00 35 04 06 00 7B [11:21:51]Write to MH i2c: E2 02 01 8B DA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 DA E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 86 02 00 35 04 06 00 7B 00 00 09 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 8B DA 00 90 00 D9 [11:21:51]RAPDU: 90 00 [11:21:51]wFMCommunicate OK [11:21:51]wFMCommunicate request_size=10 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 0D 02 02 05 4C D2 47 20 F1 [11:21:51]Write to MH i2c: E2 0D 00 8C DA 80 0D 02 02 05 00 4C D2 47 20 F1 00 00 60 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 03 00 8C DA 00 90 00 DA [11:21:51]RAPDU: 90 00 [11:21:51]wFMCommunicate OK [11:21:51]wFMCommunicate request_size=4 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 0D 03 02 [11:21:51]Write to MH i2c: E2 08 00 8D DA 80 0D 03 02 00 00 00 00 E2 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 0B 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 0B 00 8D DA 00 07 77 38 C1 8D 5E 8C D1 90 00 A2 [11:21:51]RAPDU: 07 77 38 C1 8D 5E 8C D1 90 00 [11:21:51]wFMCommunicate OK [11:21:51]SAM_PROTO_SignData done [11:21:51]FM_MakeSignedData done [11:21:51]CreateOFDProtocolMessage [11:21:51]wFMCommunicate request_size=4 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 11 00 00 [11:21:51]Write to MH i2c: E2 08 00 8E DA 80 11 00 00 00 00 00 00 E2 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 17 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 17 00 8E DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [11:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:21:51]wFMCommunicate OK [11:21:51]CreateOFDProtocolMessage done [11:21:51]OFDSenderStorePacket 165624 [11:21:51]StoreOFDPacket docnum=165624 [11:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 7F 07 01 EA 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 DA E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 86 02 00 35 04 06 00 7B 4C D2 47 20 F1 07 77 38 C1 8D 5E 8C D1 [11:21:51]CheckFolder [11:21:51]dirname=/storage/ofd_packets [11:21:51]CheckFolder done [11:21:51]ProducePacketName [11:21:51]name=ofd_packets/00165624 [11:21:51]NVStorageSaveData ofd_packets/00165624 [11:21:51]File name is /storage/ofd_packets/00165624 [11:21:51]Write 301 bytes [11:21:51]NVStorageSaveData done [11:21:51]OFDSenderStorePacket done [11:21:51]KKMCreateOFDPacket done [11:21:51]NVStorageSaveData kkm_last_timestamp [11:21:51]File name is /storage/kkm_last_timestamp [11:21:51]Write 4 bytes [11:21:51]NVStorageSaveData done [11:21:51]ExternCall_PrintAddStr [11:21:51]wPrintStart [11:21:51]Write to MH i2c: 01 00 00 8F DA 69 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: 01 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: 01 07 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: 01 07 00 8F DA 00 00 00 00 00 FF 0F 7E [11:21:51]RasterBufferAndPrint [11:21:51]line Счет N : (1)220186 [11:21:51]line ИНН: 02508201610067 [11:21:51]line Контрольно-Кассовый Чек [11:21:51]line ПРОДАЖА [11:21:51]line ТРК (МРК, ГНК) : 33 [11:21:51]line Товар: 2710124130 [11:21:51]line Аи-92-К-5 [11:21:51]line 8.970 * 66.90 [11:21:51]line = 600.09 [11:21:51]line НДС 12% НСП 1% [11:21:51]line > о реализуемом товаре [11:21:51]line ОКРУГЛЕНИЕ: -0.09 [11:21:51]line ИТОГО: 600.00 [11:21:51]line Внесено: 600.00 [11:21:51]line СДАЧА: 0.00 [11:21:51]line НСП 1% : 5.31 [11:21:51]line НДС 12% : 63.73 [11:21:51]line Наличными: 600.00 [11:21:51]line Безнал.: 0.00 [11:21:51]line Место: АЗС № 161 "Партнер Нефть" [11:21:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:21:51]line СНО: Общий режим [11:21:51]line Чек 106 20.10.2024 11:22 [11:21:51]line Смена: 534 ФФД: 1.0 [11:21:51]line ЗНМ: 0300000104 [11:21:51]line РНМ: 0000000000091764 [11:21:51]line Версия ККМ: 001 [11:21:51]line ФМ: 0000000000871759 [11:21:51]line ФД: 165624 [11:21:51]line ФПД: 135569875607793 [11:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112202&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165624&fm=135569875607793&tin=02508201610067®Number=0000000000091764&sum=60000 [11:21:52]OFD Sender: Processing packet 165624 [packets to send 48, broken 47] [11:21:52]ProducePacketName [11:21:52]name=ofd_packets/00165624 [11:21:52]OFD Sender: To server: pG, [11:21:52]CommunicateWithHost lk.salyk.kg:30040 [11:21:52]ConnectInit lk.salyk.kg [11:21:52]written 0, free lines is 4095 [11:21:52]Connected sock=10 [11:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 7F 07 01 EA 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 DA E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 86 02 00 35 04 06 00 7B 4C D2 47 20 F1 07 77 38 C1 8D 5E 8C D1 [11:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C DF 47 00 CC 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 86 02 00 F4 03 04 00 4C 8E 14 67 B6 04 01 00 00 63 F2 D7 3A 6D 29 29 10 [11:21:52]CommunicateWithHost err = 0 [11:21:52]CheckOFDResponse [11:21:52]1017 (14) - 77093643461234 [11:21:52]1041 (16) - 0000000000871759 [11:21:52]1040 (4) - 165624 [11:21:52]1012 (4) - 20.10.2024 04:59 [11:21:52]1206 (1) - 0 [11:21:52]OFD Sender: Remove packet 165624 [11:21:52]ProducePacketName [11:21:52]name=ofd_packets/00165624 [11:21:52]NVStorageDeleteData [11:21:52]Write to MH i2c: 01 00 00 BA DA 94 [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 07 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: 01 07 00 BA DA 00 00 00 00 00 CD 0C 74 [11:21:52]RasterBufferAndPrint [11:21:52]line [11:21:52]line [11:21:52]line [11:21:52]line [11:21:52]line [11:21:52]written 0, free lines is 3285 [11:21:52]MH_Cut [11:21:52]Write to MH i2c: D1 01 00 C1 DA 01 6D [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: D1 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: D1 01 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: D1 01 00 C1 DA 00 6C [11:21:52]Write to MH i2c: 01 00 00 C2 DA 9C [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]OFD Sender: No OFD packet to send [11:21:53]*** Cut start [11:21:53]*** Partial cut [11:21:53]*** CUTSNS_PIN = 1 [11:21:53]*** CUTSNS_PIN = 0 [11:21:53]*** Brake cut motor [11:21:53]Read from MH i2c: 01 [11:21:53]MH_I2C_Read... [11:21:53]*** Stop cut motor [11:21:53]*** Cut end [11:21:53]Read from MH i2c: 01 07 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: 01 07 00 C2 DA 00 00 00 00 00 FF 0F B1 [11:21:53]process_action close_receipt done [11:21:53]requested_data is exist [11:21:53]produce_requested_data [11:21:53]requested_item fm.sn is exist - process it [11:21:53]wFMCommunicate request_size=4 [11:21:53]MH_SAM_APDU [11:21:53]CAPDU: 80 11 00 00 [11:21:53]Write to MH i2c: E2 08 00 C3 DA 80 11 00 00 00 00 00 00 17 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:53]Read from MH i2c: E2 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 17 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 17 00 C3 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6F [11:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:21:53]wFMCommunicate OK [11:21:53]requested_item fd.num is exist - process it [11:21:53]SAM_PROTO_GetFieldsCounters [11:21:53]wFMCommunicate request_size=4 [11:21:53]MH_SAM_APDU [11:21:53]CAPDU: 80 13 00 00 [11:21:53]Write to MH i2c: E2 08 00 C4 DA 80 13 00 00 00 00 00 00 1A [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 62 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 62 00 C4 DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [11:21:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:54]wFMCommunicate OK [11:21:54]SAM_PROTO_GetFieldsCounters done [11:21:54]requested_item shift.num is exist - process it [11:21:54]requested_item shift.opened is exist - process it [11:21:54]req_shift_opened [11:21:54]FM_GetShiftState [11:21:54]SAM_PROTO_GetShiftState [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 13 01 00 [11:21:54]Write to MH i2c: E2 08 00 C5 DA 80 13 01 00 00 00 00 00 1C [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 0E 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 0E 00 C5 DA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 64 [11:21:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:21:54]wFMCommunicate OK [11:21:54]SAM_PROTO_GetShiftState done [11:21:54]FM_GetShiftState done [11:21:54]req_shift_opened done [11:21:54]requested_item shift.open_date is exist - process it [11:21:54]req_shift_open_date [11:21:54]req_shift_open_date done [11:21:54]produce_requested_data done [11:21:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165624,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:21:54]process_action_free close_receipt [11:21:54]json_value_free [11:21:54]json_value_free done [11:21:54]process_json_proto returns [11:21:54]Send response to host [11:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165624,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:21:54]free response buf [11:21:54]execute_script done [11:21:54]execute_script returns [11:21:54]free content buf [11:21:54]Sock 7.Close socket [11:21:54]Sock 7.Thread stoped [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:14]accept exits with 9 [11:22:14]New connection [11:22:14]New thread 3066920292 created [11:22:14]Thread 3066776932 joined [11:22:14]Waiting for new connection... [11:22:14] Sock 9.Parse request [11:22:14]Sock 9.Check first char [11:22:14]Sock 9.First char is OK [11:22:14]request: POST /json_proto HTTP/1.0 [11:22:14]Method: POST [11:22:14]URL: /json_proto [11:22:14]Method is POST - this is cgi request [11:22:14]url: /json_proto [11:22:14]query_string will be loaded in cgi processing [11:22:14]execute_cgi json_proto POST (null) [11:22:14]execute_cgi path=json_proto method=POST [11:22:14]POST find Content-Length [11:22:14]Host: 172.17.53.195:8080 [11:22:14]Content-Length: 679 [11:22:14]Content-Type: application/json [11:22:14] [11:22:14]POST finish read [11:22:14]Found Content-Length = 679 [11:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220187", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:22:14]execute_script... [11:22: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)220187", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:22:14]POST & json_proto [11:22:14]process_json_proto [11:22:14]json parsed OK: [11:22:14]protocol is kg_v1.0 [11:22:14]action value=close_receipt [11:22:14]process_action close_receipt [11:22:14]cmd_close_receipt [11:22:14]MH_GetDate [11:22:14]Write to MH i2c: F0 00 00 C6 DA 8F [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: F0 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: F0 09 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: F0 09 00 C6 DA 00 F3 E7 14 67 21 48 4A 65 05 [11:22:14]GetLastDocTimeStamp 1729423322 [11:22:14]current date 1729423347 [11:22:14]FM_GetShiftState [11:22:14]SAM_PROTO_GetShiftState [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 13 01 00 [11:22:14]Write to MH i2c: E2 08 00 C7 DA 80 13 01 00 00 00 00 00 1E [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0E 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0E 00 C7 DA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 66 [11:22:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:22:15]wFMCommunicate OK [11:22:15]SAM_PROTO_GetShiftState done [11:22:15]FM_GetShiftState done [11:22:15]opened in 1729384561 [11:22:15]opened+sec_in_day 1729470961 [11:22:15]quantity*price = 100050 [11:22:15]sum+1 = 100052 [11:22:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 107 20.10.2024 11:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165625 ФПД: 277868958814163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165625&fm=277868958814163&tin=02508201610067®Number=0000000000091764&sum=100000 [11:22:16]StoreToDocumentArchive [11:22:16]shift 534 fd 165625 [11:22:16]save to /storage/0534/doc_00165625 [11:22:16]save last doc name /storage/0534/doc_00165625 to /storage/kkm_last_doc_name [11:22:16]save OK [11:22:16]Clear old archive folders... [11:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:16]tlvbuf is 01469E70 [11:22:16]SAM_PROTO_ClearQueue [11:22:16]wFMCommunicate request_size=4 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 09 00 00 [11:22:16]Write to MH i2c: E2 08 00 D4 DA 80 09 00 00 00 00 00 00 20 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 D4 DA 00 90 00 22 [11:22:16]RAPDU: 90 00 [11:22:16]wFMCommunicate OK [11:22:16]SAM_PROTO_ClearQueue done [11:22:16]KKMCreateOFDPacket [11:22:16]OFDProtocolAddRootSTLVToBuf [11:22:16]FM_MakeSignedData [11:22:16]FM_MakeSignedData [11:22:16]SAM_PROTO_SignData [11:22:16]wFMCommunicate request_size=4 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 0D 01 02 [11:22:16]Write to MH i2c: E2 08 00 D5 DA 80 0D 01 02 00 00 00 00 28 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 D5 DA 00 90 00 23 [11:22:16]RAPDU: 90 00 [11:22:16]wFMCommunicate OK [11:22:16]wFMCommunicate request_size=255 [11:22:16]MH_SAM_APDU [11:22: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 6B 00 00 00 F4 03 04 00 F3 E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 86 02 00 35 04 06 00 FC B8 68 95 [11:22:16]Write to MH i2c: E2 02 01 D6 DA 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 6B 00 00 00 F4 03 04 00 F3 E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 86 02 00 35 04 06 00 FC B8 68 95 00 00 BE [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 D6 DA 00 90 00 24 [11:22:16]RAPDU: 90 00 [11:22:16]wFMCommunicate OK [11:22:16]wFMCommunicate request_size=7 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 0D 02 02 02 8F D3 [11:22:16]Write to MH i2c: E2 0A 00 D7 DA 80 0D 02 02 02 00 8F D3 00 00 91 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 03 00 D7 DA 00 90 00 25 [11:22:16]RAPDU: 90 00 [11:22:16]wFMCommunicate OK [11:22:16]wFMCommunicate request_size=4 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 0D 03 02 [11:22:16]Write to MH i2c: E2 08 00 D8 DA 80 0D 03 02 00 00 00 00 2D [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 0B 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 0B 00 D8 DA 00 84 25 A6 B1 D0 B8 90 33 90 00 79 [11:22:16]RAPDU: 84 25 A6 B1 D0 B8 90 33 90 00 [11:22:16]wFMCommunicate OK [11:22:16]SAM_PROTO_SignData done [11:22:16]FM_MakeSignedData done [11:22:16]CreateOFDProtocolMessage [11:22:16]wFMCommunicate request_size=4 [11:22:16]MH_SAM_APDU [11:22:16]CAPDU: 80 11 00 00 [11:22:16]Write to MH i2c: E2 08 00 D9 DA 80 11 00 00 00 00 00 00 2D [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:16]Read from MH i2c: E2 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 17 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: E2 17 00 D9 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [11:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:22:16]wFMCommunicate OK [11:22:16]CreateOFDProtocolMessage done [11:22:16]OFDSenderStorePacket 165625 [11:22:16]StoreOFDPacket docnum=165625 [11:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 08 FB 04 01 30 BC 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 6B 00 00 00 F4 03 04 00 F3 E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 86 02 00 35 04 06 00 FC B8 68 95 8F D3 84 25 A6 B1 D0 B8 90 33 [11:22:16]CheckFolder [11:22:16]dirname=/storage/ofd_packets [11:22:16]CheckFolder done [11:22:16]ProducePacketName [11:22:16]name=ofd_packets/00165625 [11:22:16]NVStorageSaveData ofd_packets/00165625 [11:22:16]File name is /storage/ofd_packets/00165625 [11:22:16]Write 298 bytes [11:22:16]NVStorageSaveData done [11:22:16]OFDSenderStorePacket done [11:22:16]KKMCreateOFDPacket done [11:22:16]NVStorageSaveData kkm_last_timestamp [11:22:16]File name is /storage/kkm_last_timestamp [11:22:16]Write 4 bytes [11:22:16]NVStorageSaveData done [11:22:16]ExternCall_PrintAddStr [11:22:16]wPrintStart [11:22:16]Write to MH i2c: 01 00 00 DA DA B4 [11:22:16]Write i2c OK [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 07 00 [11:22:16]MH_I2C_Read... [11:22:16]Read from MH i2c: 01 07 00 DA DA 00 00 00 00 00 FF 0F C9 [11:22:16]RasterBufferAndPrint [11:22:16]line Счет N : (1)220187 [11:22:16]line ИНН: 02508201610067 [11:22:16]line Контрольно-Кассовый Чек [11:22:16]line ПРОДАЖА [11:22:16]line ТРК (МРК, ГНК) : 11 [11:22:16]line Товар: 2710194210 [11:22:16]line ДТ-К-5 [11:22:16]line 13.130 * 76.20 [11:22:16]line = 1000.51 [11:22:16]line НДС 12% НСП 1% [11:22:16]line > о реализуемом товаре [11:22:16]line ОКРУГЛЕНИЕ: -0.51 [11:22:16]line ИТОГО: 1000.00 [11:22:16]line Внесено: 1000.00 [11:22:16]line СДАЧА: 0.00 [11:22:16]line НСП 1% : 8.85 [11:22:16]line НДС 12% : 106.25 [11:22:16]line Наличными: 1000.00 [11:22:16]line Безнал.: 0.00 [11:22:16]line Место: АЗС № 161 "Партнер Нефть" [11:22:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:22:16]line СНО: Общий режим [11:22:16]line Чек 107 20.10.2024 11:22 [11:22:16]line Смена: 534 ФФД: 1.0 [11:22:16]line ЗНМ: 0300000104 [11:22:16]line РНМ: 0000000000091764 [11:22:16]line Версия ККМ: 001 [11:22:16]line ФМ: 0000000000871759 [11:22:16]line ФД: 165625 [11:22:16]line ФПД: 277868958814163 [11:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165625&fm=277868958814163&tin=02508201610067®Number=0000000000091764&sum=100000 [11:22:17]OFD Sender: Processing packet 165625 [packets to send 48, broken 47] [11:22:17]ProducePacketName [11:22:17]name=ofd_packets/00165625 [11:22:17]OFD Sender: To server: pG, [11:22:17]CommunicateWithHost lk.salyk.kg:30040 [11:22:17]ConnectInit lk.salyk.kg [11:22:17]written 0, free lines is 4095 [11:22:17]Connected sock=11 [11:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 08 FB 04 01 30 BC 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 6B 00 00 00 F4 03 04 00 F3 E7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 86 02 00 35 04 06 00 FC B8 68 95 8F D3 84 25 A6 B1 D0 B8 90 33 [11:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 92 AD 47 00 0B 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 31 37 35 39 10 04 04 00 F9 86 02 00 F4 03 04 00 65 8E 14 67 B6 04 01 00 00 4B 9A A8 FC 75 CB F7 08 [11:22:17]CommunicateWithHost err = 0 [11:22:17]CheckOFDResponse [11:22:17]1017 (14) - 77093643461234 [11:22:17]1041 (16) - 0000000000871759 [11:22:17]1040 (4) - 165625 [11:22:17]1012 (4) - 20.10.2024 05:00 [11:22:17]1206 (1) - 0 [11:22:17]OFD Sender: Remove packet 165625 [11:22:17]ProducePacketName [11:22:17]name=ofd_packets/00165625 [11:22:17]NVStorageDeleteData [11:22:17]Write to MH i2c: 01 00 00 05 DB E0 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 07 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 07 00 05 DB 00 00 00 00 00 CB 0C BE [11:22:17]RasterBufferAndPrint [11:22:17]line [11:22:17]line [11:22:17]line [11:22:17]line [11:22:17]line [11:22:17]written 0, free lines is 3280 [11:22:17]MH_Cut [11:22:17]Write to MH i2c: D1 01 00 0C DB 01 B9 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: D1 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: D1 01 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: D1 01 00 0C DB 00 B8 [11:22:17]Write to MH i2c: 01 00 00 0D DB E8 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]OFD Sender: No OFD packet to send [11:22:18]*** Cut start [11:22:18]*** Partial cut [11:22:18]*** CUTSNS_PIN = 1 [11:22:18]*** CUTSNS_PIN = 0 [11:22:18]*** Brake cut motor [11:22:18]Read from MH i2c: 01 [11:22:18]MH_I2C_Read... [11:22:18]*** Stop cut motor [11:22:18]*** Cut end [11:22:18]Read from MH i2c: 01 07 00 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: 01 07 00 0D DB 00 00 00 00 00 FF 0F FD [11:22:18]process_action close_receipt done [11:22:18]requested_data is exist [11:22:18]produce_requested_data [11:22:18]requested_item fm.sn is exist - process it [11:22:18]wFMCommunicate request_size=4 [11:22:18]MH_SAM_APDU [11:22:18]CAPDU: 80 11 00 00 [11:22:18]Write to MH i2c: E2 08 00 0E DB 80 11 00 00 00 00 00 00 63 [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:18]Read from MH i2c: E2 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: E2 17 00 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: E2 17 00 0E DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [11:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:22:18]wFMCommunicate OK [11:22:18]requested_item fd.num is exist - process it [11:22:18]SAM_PROTO_GetFieldsCounters [11:22:18]wFMCommunicate request_size=4 [11:22:18]MH_SAM_APDU [11:22:18]CAPDU: 80 13 00 00 [11:22:18]Write to MH i2c: E2 08 00 0F DB 80 13 00 00 00 00 00 00 66 [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:19]Read from MH i2c: E2 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 62 00 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 62 00 0F DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [11:22:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:19]wFMCommunicate OK [11:22:19]SAM_PROTO_GetFieldsCounters done [11:22:19]requested_item shift.num is exist - process it [11:22:19]requested_item shift.opened is exist - process it [11:22:19]req_shift_opened [11:22:19]FM_GetShiftState [11:22:19]SAM_PROTO_GetShiftState [11:22:19]wFMCommunicate request_size=4 [11:22:19]MH_SAM_APDU [11:22:19]CAPDU: 80 13 01 00 [11:22:19]Write to MH i2c: E2 08 00 10 DB 80 13 01 00 00 00 00 00 68 [11:22:19]Write i2c OK [11:22:19]MH_I2C_Read... [11:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:19]Read from MH i2c: E2 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 0E 00 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 0E 00 10 DB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B0 [11:22:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:22:19]wFMCommunicate OK [11:22:19]SAM_PROTO_GetShiftState done [11:22:19]FM_GetShiftState done [11:22:19]req_shift_opened done [11:22:19]requested_item shift.open_date is exist - process it [11:22:19]req_shift_open_date [11:22:19]req_shift_open_date done [11:22:19]produce_requested_data done [11:22:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165625,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:22:19]process_action_free close_receipt [11:22:19]json_value_free [11:22:19]json_value_free done [11:22:19]process_json_proto returns [11:22:19]Send response to host [11:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165625,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:22:19]free response buf [11:22:19]execute_script done [11:22:19]execute_script returns [11:22:19]free content buf [11:22:19]Sock 9.Close socket [11:22:19]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25: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:21]accept exits with 7 [11:26:21]New connection [11:26:21]New thread 3066776932 created [11:26:21]Thread 3066920292 joined [11:26:21]Waiting for new connection... [11:26:21] Sock 7.Parse request [11:26:21]Sock 7.Check first char [11:26:21]Sock 7.First char is OK [11:26:21]request: POST /json_proto HTTP/1.0 [11:26:21]Method: POST [11:26:21]URL: /json_proto [11:26:21]Method is POST - this is cgi request [11:26:21]url: /json_proto [11:26:21]query_string will be loaded in cgi processing [11:26:21]execute_cgi json_proto POST (null) [11:26:21]execute_cgi path=json_proto method=POST [11:26:21]POST find Content-Length [11:26:21]Host: 172.17.53.195:8080 [11:26:21]Content-Length: 679 [11:26:21]Content-Type: application/json [11:26:21] [11:26:21]POST finish read [11:26:21]Found Content-Length = 679 [11:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220189", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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:26:21]execute_script... [11:26: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)220189", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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:26:21]POST & json_proto [11:26:21]process_json_proto [11:26:21]json parsed OK: [11:26:21]protocol is kg_v1.0 [11:26:21]action value=close_receipt [11:26:21]process_action close_receipt [11:26:21]cmd_close_receipt [11:26:21]MH_GetDate [11:26:21]Write to MH i2c: F0 00 00 11 DB DB [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 09 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 09 00 11 DB 00 E9 E8 14 67 21 48 4A 65 48 [11:26:21]GetLastDocTimeStamp 1729423347 [11:26:21]current date 1729423593 [11:26:21]FM_GetShiftState [11:26:21]SAM_PROTO_GetShiftState [11:26:21]wFMCommunicate request_size=4 [11:26:21]MH_SAM_APDU [11:26:21]CAPDU: 80 13 01 00 [11:26:21]Write to MH i2c: E2 08 00 12 DB 80 13 01 00 00 00 00 00 6A [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 0E 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 0E 00 12 DB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B2 [11:26:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:26:21]wFMCommunicate OK [11:26:21]SAM_PROTO_GetShiftState done [11:26:21]FM_GetShiftState done [11:26:21]opened in 1729384561 [11:26:21]opened+sec_in_day 1729470961 [11:26:21]quantity*price = 200025 [11:26:21]sum+1 = 200026 [11:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 108 20.10.2024 11:26 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165626 ФПД: 66654270878892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112633&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165626&fm=66654270878892&tin=02508201610067®Number=0000000000091764&sum=200000 [11:26:22]StoreToDocumentArchive [11:26:22]shift 534 fd 165626 [11:26:22]save to /storage/0534/doc_00165626 [11:26:22]save last doc name /storage/0534/doc_00165626 to /storage/kkm_last_doc_name [11:26:22]save OK [11:26:22]Clear old archive folders... [11:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:26:22]tlvbuf is 018B00C0 [11:26:22]SAM_PROTO_ClearQueue [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 09 00 00 [11:26:22]Write to MH i2c: E2 08 00 1F DB 80 09 00 00 00 00 00 00 6C [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 1F DB 00 90 00 6E [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]SAM_PROTO_ClearQueue done [11:26:22]KKMCreateOFDPacket [11:26:22]OFDProtocolAddRootSTLVToBuf [11:26:22]FM_MakeSignedData [11:26:22]FM_MakeSignedData [11:26:22]SAM_PROTO_SignData [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 01 02 [11:26:22]Write to MH i2c: E2 08 00 20 DB 80 0D 01 02 00 00 00 00 74 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 20 DB 00 90 00 6F [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=255 [11:26:22]MH_SAM_APDU [11:26: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 6C 00 00 00 F4 03 04 00 E9 E8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 86 02 00 35 04 06 00 3C 9F 28 23 [11:26:22]Write to MH i2c: E2 02 01 21 DB 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 6C 00 00 00 F4 03 04 00 E9 E8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 86 02 00 35 04 06 00 3C 9F 28 23 00 00 66 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 21 DB 00 90 00 70 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=7 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 02 02 02 74 AC [11:26:22]Write to MH i2c: E2 0A 00 22 DB 80 0D 02 02 02 00 74 AC 00 00 9B [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 22 DB 00 90 00 71 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 03 02 [11:26:22]Write to MH i2c: E2 08 00 23 DB 80 0D 03 02 00 00 00 00 79 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 0B 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 0B 00 23 DB 00 DC 80 B8 EE 76 28 B8 A9 90 00 7B [11:26:22]RAPDU: DC 80 B8 EE 76 28 B8 A9 90 00 [11:26:22]wFMCommunicate OK [11:26:22]SAM_PROTO_SignData done [11:26:22]FM_MakeSignedData done [11:26:22]CreateOFDProtocolMessage [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 11 00 00 [11:26:22]Write to MH i2c: E2 08 00 24 DB 80 11 00 00 00 00 00 00 79 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 17 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 17 00 24 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [11:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:26:22]wFMCommunicate OK [11:26:22]CreateOFDProtocolMessage done [11:26:22]OFDSenderStorePacket 165626 [11:26:22]StoreOFDPacket docnum=165626 [11:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 14 56 04 01 06 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 6C 00 00 00 F4 03 04 00 E9 E8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 86 02 00 35 04 06 00 3C 9F 28 23 74 AC DC 80 B8 EE 76 28 B8 A9 [11:26:22]CheckFolder [11:26:22]dirname=/storage/ofd_packets [11:26:22]CheckFolder done [11:26:22]ProducePacketName [11:26:22]name=ofd_packets/00165626 [11:26:22]NVStorageSaveData ofd_packets/00165626 [11:26:22]File name is /storage/ofd_packets/00165626 [11:26:22]Write 298 bytes [11:26:22]NVStorageSaveData done [11:26:22]OFDSenderStorePacket done [11:26:22]KKMCreateOFDPacket done [11:26:22]NVStorageSaveData kkm_last_timestamp [11:26:22]File name is /storage/kkm_last_timestamp [11:26:22]Write 4 bytes [11:26:22]NVStorageSaveData done [11:26:22]ExternCall_PrintAddStr [11:26:22]wPrintStart [11:26:22]Write to MH i2c: 01 00 00 25 DB 00 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 07 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 07 00 25 DB 00 00 00 00 00 FF 0F 15 [11:26:22]RasterBufferAndPrint [11:26:22]line Счет N : (1)220189 [11:26:22]line ИНН: 02508201610067 [11:26:22]line Контрольно-Кассовый Чек [11:26:22]line ПРОДАЖА [11:26:22]line ТРК (МРК, ГНК) : 21 [11:26:22]line Товар: 2710194210 [11:26:22]line ДТ-К-5 [11:26:22]line 26.250 * 76.20 [11:26:22]line = 2000.25 [11:26:22]line НДС 12% НСП 1% [11:26:22]line > о реализуемом товаре [11:26:22]line ОКРУГЛЕНИЕ: -0.25 [11:26:22]line ИТОГО: 2000.00 [11:26:22]line Внесено: 2000.00 [11:26:22]line СДАЧА: 0.00 [11:26:22]line НСП 1% : 17.70 [11:26:22]line НДС 12% : 212.42 [11:26:22]line Наличными: 2000.00 [11:26:22]line Безнал.: 0.00 [11:26:22]line Место: АЗС № 161 "Партнер Нефть" [11:26:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:26:22]line СНО: Общий режим [11:26:22]line Чек 108 20.10.2024 11:26 [11:26:22]line Смена: 534 ФФД: 1.0 [11:26:22]line ЗНМ: 0300000104 [11:26:22]line РНМ: 0000000000091764 [11:26:22]line Версия ККМ: 001 [11:26:22]line ФМ: 0000000000871759 [11:26:22]line ФД: 165626 [11:26:22]line ФПД: 66654270878892 [11:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112633&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165626&fm=66654270878892&tin=02508201610067®Number=0000000000091764&sum=200000 [11:26:23]OFD Sender: Processing packet 165626 [packets to send 48, broken 47] [11:26:23]ProducePacketName [11:26:23]name=ofd_packets/00165626 [11:26:23]OFD Sender: To server: pG, [11:26:23]CommunicateWithHost lk.salyk.kg:30040 [11:26:23]ConnectInit lk.salyk.kg [11:26:23]written 0, free lines is 4095 [11:26:23]Connected sock=10 [11:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 14 56 04 01 06 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 6C 00 00 00 F4 03 04 00 E9 E8 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 86 02 00 35 04 06 00 3C 9F 28 23 74 AC DC 80 B8 EE 76 28 B8 A9 [11:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 20 C7 47 00 90 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 86 02 00 F4 03 04 00 5B 8F 14 67 B6 04 01 00 00 2D 87 4F 3E 06 C8 AD D4 [11:26:23]CommunicateWithHost err = 0 [11:26:23]CheckOFDResponse [11:26:23]1017 (14) - 77093643461234 [11:26:23]1041 (16) - 0000000000871759 [11:26:23]1040 (4) - 165626 [11:26:23]1012 (4) - 20.10.2024 05:04 [11:26:23]1206 (1) - 0 [11:26:23]OFD Sender: Remove packet 165626 [11:26:23]ProducePacketName [11:26:23]name=ofd_packets/00165626 [11:26:23]NVStorageDeleteData [11:26:23]Write to MH i2c: 01 00 00 50 DB 2B [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 50 DB 00 00 00 00 00 C6 0C 04 [11:26:23]RasterBufferAndPrint [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]written 0, free lines is 3277 [11:26:23]MH_Cut [11:26:23]Write to MH i2c: D1 01 00 57 DB 01 04 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 01 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 01 00 57 DB 00 03 [11:26:23]Write to MH i2c: 01 00 00 58 DB 33 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:24]OFD Sender: No OFD packet to send [11:26:24]*** Cut start [11:26:24]*** Partial cut [11:26:24]*** CUTSNS_PIN = 1 [11:26:24]*** CUTSNS_PIN = 0 [11:26:24]*** Brake cut motor [11:26:25]Read from MH i2c: 01 [11:26:25]MH_I2C_Read... [11:26:25]*** Stop cut motor [11:26:25]*** Cut end [11:26:25]Read from MH i2c: 01 07 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: 01 07 00 58 DB 00 00 00 00 00 FF 0F 48 [11:26:25]process_action close_receipt done [11:26:25]requested_data is exist [11:26:25]produce_requested_data [11:26:25]requested_item fm.sn is exist - process it [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 11 00 00 [11:26:25]Write to MH i2c: E2 08 00 59 DB 80 11 00 00 00 00 00 00 AE [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 17 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 17 00 59 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [11:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:26:25]wFMCommunicate OK [11:26:25]requested_item fd.num is exist - process it [11:26:25]SAM_PROTO_GetFieldsCounters [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 13 00 00 [11:26:25]Write to MH i2c: E2 08 00 5A DB 80 13 00 00 00 00 00 00 B1 [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 62 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 62 00 5A DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [11:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_GetFieldsCounters done [11:26:25]requested_item shift.num is exist - process it [11:26:25]requested_item shift.opened is exist - process it [11:26:25]req_shift_opened [11:26:25]FM_GetShiftState [11:26:25]SAM_PROTO_GetShiftState [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 13 01 00 [11:26:25]Write to MH i2c: E2 08 00 5B DB 80 13 01 00 00 00 00 00 B3 [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 5B DB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FB [11:26:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_GetShiftState done [11:26:25]FM_GetShiftState done [11:26:25]req_shift_opened done [11:26:25]requested_item shift.open_date is exist - process it [11:26:25]req_shift_open_date [11:26:25]req_shift_open_date done [11:26:25]produce_requested_data done [11:26:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165626,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:26:25]process_action_free close_receipt [11:26:25]json_value_free [11:26:25]json_value_free done [11:26:25]process_json_proto returns [11:26:25]Send response to host [11:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165626,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:26:25]free response buf [11:26:25]execute_script done [11:26:25]execute_script returns [11:26:25]free content buf [11:26:25]Sock 7.Close socket [11:26:25]Sock 7.Thread stoped [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:33]accept exits with 9 [11:28:33]New connection [11:28:33]New thread 3066920292 created [11:28:33]Thread 3066776932 joined [11:28:33]Waiting for new connection... [11:28:33] Sock 9.Parse request [11:28:33]Sock 9.Check first char [11:28:33]Sock 9.First char is OK [11:28:33]request: POST /json_proto HTTP/1.0 [11:28:33]Method: POST [11:28:33]URL: /json_proto [11:28:33]Method is POST - this is cgi request [11:28:33]url: /json_proto [11:28:33]query_string will be loaded in cgi processing [11:28:33]execute_cgi json_proto POST (null) [11:28:33]execute_cgi path=json_proto method=POST [11:28:33]POST find Content-Length [11:28:33]Host: 172.17.53.195:8080 [11:28:33]Content-Length: 682 [11:28:33]Content-Type: application/json [11:28:33] [11:28:33]POST finish read [11:28:33]Found Content-Length = 682 [11:28:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:33]execute_script... [11:28: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)220190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:33]POST & json_proto [11:28:33]process_json_proto [11:28:33]json parsed OK: [11:28:33]protocol is kg_v1.0 [11:28:33]action value=close_receipt [11:28:33]process_action close_receipt [11:28:33]cmd_close_receipt [11:28:33]MH_GetDate [11:28:33]Write to MH i2c: F0 00 00 5C DB 26 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: F0 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: F0 09 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: F0 09 00 5C DB 00 6E E9 14 67 21 48 4A 65 19 [11:28:33]GetLastDocTimeStamp 1729423593 [11:28:33]current date 1729423726 [11:28:33]FM_GetShiftState [11:28:33]SAM_PROTO_GetShiftState [11:28:33]wFMCommunicate request_size=4 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 13 01 00 [11:28:33]Write to MH i2c: E2 08 00 5D DB 80 13 01 00 00 00 00 00 B5 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:34]Read from MH i2c: E2 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 0E 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 0E 00 5D DB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FD [11:28:34]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:28:34]wFMCommunicate OK [11:28:34]SAM_PROTO_GetShiftState done [11:28:34]FM_GetShiftState done [11:28:34]opened in 1729384561 [11:28:34]opened+sec_in_day 1729470961 [11:28:34]quantity*price = 100021 [11:28:34]sum+1 = 100023 [11:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 109 20.10.2024 11:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165627 ФПД: 160075421398583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112846&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165627&fm=160075421398583&tin=02508201610067®Number=0000000000091764&sum=100000 [11:28:35]StoreToDocumentArchive [11:28:35]shift 534 fd 165627 [11:28:35]save to /storage/0534/doc_00165627 [11:28:35]save last doc name /storage/0534/doc_00165627 to /storage/kkm_last_doc_name [11:28:35]save OK [11:28:35]Clear old archive folders... [11:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:35]tlvbuf is 0166AF10 [11:28:35]SAM_PROTO_ClearQueue [11:28:35]wFMCommunicate request_size=4 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 09 00 00 [11:28:35]Write to MH i2c: E2 08 00 6A DB 80 09 00 00 00 00 00 00 B7 [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 6A DB 00 90 00 B9 [11:28:35]RAPDU: 90 00 [11:28:35]wFMCommunicate OK [11:28:35]SAM_PROTO_ClearQueue done [11:28:35]KKMCreateOFDPacket [11:28:35]OFDProtocolAddRootSTLVToBuf [11:28:35]FM_MakeSignedData [11:28:35]FM_MakeSignedData [11:28:35]SAM_PROTO_SignData [11:28:35]wFMCommunicate request_size=4 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 0D 01 02 [11:28:35]Write to MH i2c: E2 08 00 6B DB 80 0D 01 02 00 00 00 00 BF [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 6B DB 00 90 00 BA [11:28:35]RAPDU: 90 00 [11:28:35]wFMCommunicate OK [11:28:35]wFMCommunicate request_size=255 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6E E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 86 02 00 35 04 06 00 91 [11:28:35]Write to MH i2c: E2 02 01 6C DB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6E E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 86 02 00 35 04 06 00 91 00 00 DD [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 6C DB 00 90 00 BB [11:28:35]RAPDU: 90 00 [11:28:35]wFMCommunicate OK [11:28:35]wFMCommunicate request_size=10 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 0D 02 02 05 96 76 A1 36 37 [11:28:35]Write to MH i2c: E2 0D 00 6D DB 80 0D 02 02 05 00 96 76 A1 36 37 00 00 E6 [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 6D DB 00 90 00 BC [11:28:35]RAPDU: 90 00 [11:28:35]wFMCommunicate OK [11:28:35]wFMCommunicate request_size=4 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 0D 03 02 [11:28:35]Write to MH i2c: E2 08 00 6E DB 80 0D 03 02 00 00 00 00 C4 [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 0B 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 0B 00 6E DB 00 95 50 0F 6D 36 30 AB E0 90 00 17 [11:28:35]RAPDU: 95 50 0F 6D 36 30 AB E0 90 00 [11:28:35]wFMCommunicate OK [11:28:35]SAM_PROTO_SignData done [11:28:35]FM_MakeSignedData done [11:28:35]CreateOFDProtocolMessage [11:28:35]wFMCommunicate request_size=4 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 11 00 00 [11:28:35]Write to MH i2c: E2 08 00 6F DB 80 11 00 00 00 00 00 00 C4 [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 17 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 17 00 6F DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [11:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:28:35]wFMCommunicate OK [11:28:35]CreateOFDProtocolMessage done [11:28:35]OFDSenderStorePacket 165627 [11:28:35]StoreOFDPacket docnum=165627 [11:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 FD 07 01 3E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6E E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 86 02 00 35 04 06 00 91 96 76 A1 36 37 95 50 0F 6D 36 30 AB E0 [11:28:35]CheckFolder [11:28:35]dirname=/storage/ofd_packets [11:28:35]CheckFolder done [11:28:35]ProducePacketName [11:28:35]name=ofd_packets/00165627 [11:28:35]NVStorageSaveData ofd_packets/00165627 [11:28:35]File name is /storage/ofd_packets/00165627 [11:28:35]Write 301 bytes [11:28:35]NVStorageSaveData done [11:28:35]OFDSenderStorePacket done [11:28:35]KKMCreateOFDPacket done [11:28:35]NVStorageSaveData kkm_last_timestamp [11:28:35]File name is /storage/kkm_last_timestamp [11:28:35]Write 4 bytes [11:28:35]NVStorageSaveData done [11:28:35]ExternCall_PrintAddStr [11:28:35]wPrintStart [11:28:35]Write to MH i2c: 01 00 00 70 DB 4B [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: 01 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: 01 07 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: 01 07 00 70 DB 00 00 00 00 00 FF 0F 60 [11:28:35]RasterBufferAndPrint [11:28:35]line Счет N : (1)220190 [11:28:35]line ИНН: 02508201610067 [11:28:35]line Контрольно-Кассовый Чек [11:28:35]line ПРОДАЖА [11:28:35]line ТРК (МРК, ГНК) : 34 [11:28:35]line Товар: 2710124500 [11:28:35]line Аи-95-К-5 [11:28:35]line 13.480 * 74.20 [11:28:35]line = 1000.22 [11:28:35]line НДС 12% НСП 1% [11:28:35]line > о реализуемом товаре [11:28:35]line ОКРУГЛЕНИЕ: -0.22 [11:28:35]line ИТОГО: 1000.00 [11:28:35]line Внесено: 1000.00 [11:28:35]line СДАЧА: 0.00 [11:28:35]line НСП 1% : 8.85 [11:28:35]line НДС 12% : 106.22 [11:28:35]line Наличными: 1000.00 [11:28:35]line Безнал.: 0.00 [11:28:35]line Место: АЗС № 161 "Партнер Нефть" [11:28:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:28:35]line СНО: Общий режим [11:28:35]line Чек 109 20.10.2024 11:28 [11:28:35]line Смена: 534 ФФД: 1.0 [11:28:35]line ЗНМ: 0300000104 [11:28:35]line РНМ: 0000000000091764 [11:28:35]line Версия ККМ: 001 [11:28:35]line ФМ: 0000000000871759 [11:28:35]line ФД: 165627 [11:28:35]line ФПД: 160075421398583 [11:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112846&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165627&fm=160075421398583&tin=02508201610067®Number=0000000000091764&sum=100000 [11:28:36]OFD Sender: Processing packet 165627 [packets to send 48, broken 47] [11:28:36]ProducePacketName [11:28:36]name=ofd_packets/00165627 [11:28:36]OFD Sender: To server: pG, [11:28:36]CommunicateWithHost lk.salyk.kg:30040 [11:28:36]ConnectInit lk.salyk.kg [11:28:36]written 0, free lines is 4095 [11:28:36]Connected sock=10 [11:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 FD 07 01 3E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6E E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 86 02 00 35 04 06 00 91 96 76 A1 36 37 95 50 0F 6D 36 30 AB E0 [11:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 14 B1 47 00 30 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 31 37 35 39 10 04 04 00 FB 86 02 00 F4 03 04 00 E0 8F 14 67 B6 04 01 00 00 F4 9A 00 39 63 01 48 B7 [11:28:36]CommunicateWithHost err = 0 [11:28:36]CheckOFDResponse [11:28:36]1017 (14) - 77093643461234 [11:28:36]1041 (16) - 0000000000871759 [11:28:36]1040 (4) - 165627 [11:28:36]1012 (4) - 20.10.2024 05:06 [11:28:36]1206 (1) - 0 [11:28:36]OFD Sender: Remove packet 165627 [11:28:36]ProducePacketName [11:28:36]name=ofd_packets/00165627 [11:28:36]NVStorageDeleteData [11:28:36]Write to MH i2c: 01 00 00 9B DB 76 [11:28:36]Write i2c OK [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: 01 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: 01 07 00 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: 01 07 00 9B DB 00 00 00 00 00 C5 0C 4E [11:28:36]RasterBufferAndPrint [11:28:36]line [11:28:36]line [11:28:36]line [11:28:36]line [11:28:36]line [11:28:36]written 0, free lines is 3276 [11:28:36]MH_Cut [11:28:36]Write to MH i2c: D1 01 00 A2 DB 01 4F [11:28:36]Write i2c OK [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: D1 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: D1 01 00 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: D1 01 00 A2 DB 00 4E [11:28:36]Write to MH i2c: 01 00 00 A3 DB 7E [11:28:36]Write i2c OK [11:28:36]MH_I2C_Read... [11:28:36]OFD Sender: No OFD packet to send [11:28:37]*** Cut start [11:28:37]*** Partial cut [11:28:37]*** CUTSNS_PIN = 1 [11:28:37]*** CUTSNS_PIN = 0 [11:28:37]*** Brake cut motor [11:28:37]Read from MH i2c: 01 [11:28:37]MH_I2C_Read... [11:28:37]*** Stop cut motor [11:28:37]*** Cut end [11:28:37]Read from MH i2c: 01 07 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: 01 07 00 A3 DB 00 00 00 00 00 FF 0F 93 [11:28:37]process_action close_receipt done [11:28:37]requested_data is exist [11:28:37]produce_requested_data [11:28:37]requested_item fm.sn is exist - process it [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 11 00 00 [11:28:37]Write to MH i2c: E2 08 00 A4 DB 80 11 00 00 00 00 00 00 F9 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:37]Read from MH i2c: E2 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 17 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 17 00 A4 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [11:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:28:37]wFMCommunicate OK [11:28:37]requested_item fd.num is exist - process it [11:28:37]SAM_PROTO_GetFieldsCounters [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 13 00 00 [11:28:37]Write to MH i2c: E2 08 00 A5 DB 80 13 00 00 00 00 00 00 FC [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 62 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 62 00 A5 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [11:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:38]wFMCommunicate OK [11:28:38]SAM_PROTO_GetFieldsCounters done [11:28:38]requested_item shift.num is exist - process it [11:28:38]requested_item shift.opened is exist - process it [11:28:38]req_shift_opened [11:28:38]FM_GetShiftState [11:28:38]SAM_PROTO_GetShiftState [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 13 01 00 [11:28:38]Write to MH i2c: E2 08 00 A6 DB 80 13 01 00 00 00 00 00 FE [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 0E 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 0E 00 A6 DB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 46 [11:28:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:28:38]wFMCommunicate OK [11:28:38]SAM_PROTO_GetShiftState done [11:28:38]FM_GetShiftState done [11:28:38]req_shift_opened done [11:28:38]requested_item shift.open_date is exist - process it [11:28:38]req_shift_open_date [11:28:38]req_shift_open_date done [11:28:38]produce_requested_data done [11:28:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165627,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:28:38]process_action_free close_receipt [11:28:38]json_value_free [11:28:38]json_value_free done [11:28:38]process_json_proto returns [11:28:38]Send response to host [11:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165627,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:28:38]free response buf [11:28:38]execute_script done [11:28:38]execute_script returns [11:28:38]free content buf [11:28:38]Sock 9.Close socket [11:28:38]Sock 9.Thread stoped [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [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:30]accept exits with 7 [11:30:30]New connection [11:30:30]New thread 3066776932 created [11:30:30]Thread 3066920292 joined [11:30:30]Waiting for new connection... [11:30:30] Sock 7.Parse request [11:30:30]Sock 7.Check first char [11:30:30]Sock 7.First char is OK [11:30:30]request: POST /json_proto HTTP/1.0 [11:30:30]Method: POST [11:30:30]URL: /json_proto [11:30:30]Method is POST - this is cgi request [11:30:30]url: /json_proto [11:30:30]query_string will be loaded in cgi processing [11:30:30]execute_cgi json_proto POST (null) [11:30:30]execute_cgi path=json_proto method=POST [11:30:30]POST find Content-Length [11:30:30]Host: 172.17.53.195:8080 [11:30:30]Content-Length: 674 [11:30:30]Content-Type: application/json [11:30:30] [11:30:30]POST finish read [11:30:30]Found Content-Length = 674 [11:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220192", "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" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:30]execute_script... [11:30: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)220192", "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" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:30]POST & json_proto [11:30:30]process_json_proto [11:30:30]json parsed OK: [11:30:30]protocol is kg_v1.0 [11:30:30]action value=close_receipt [11:30:30]process_action close_receipt [11:30:30]cmd_close_receipt [11:30:30]MH_GetDate [11:30:30]Write to MH i2c: F0 00 00 A7 DB 71 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: F0 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: F0 09 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: F0 09 00 A7 DB 00 E3 E9 14 67 21 48 4A 65 D9 [11:30:30]GetLastDocTimeStamp 1729423726 [11:30:30]current date 1729423843 [11:30:30]FM_GetShiftState [11:30:30]SAM_PROTO_GetShiftState [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 13 01 00 [11:30:30]Write to MH i2c: E2 08 00 A8 DB 80 13 01 00 00 00 00 00 00 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 0E 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 0E 00 A8 DB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 48 [11:30:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:30:30]wFMCommunicate OK [11:30:30]SAM_PROTO_GetShiftState done [11:30:30]FM_GetShiftState done [11:30:30]opened in 1729384561 [11:30:30]opened+sec_in_day 1729470961 [11:30:30]quantity*price = 49987 [11:30:30]sum+1 = 49988 [11:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 110 20.10.2024 11:30 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165628 ФПД: 145249925336486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113043&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165628&fm=145249925336486&tin=02508201610067®Number=0000000000091764&sum=49900 [11:30:32]StoreToDocumentArchive [11:30:32]shift 534 fd 165628 [11:30:32]save to /storage/0534/doc_00165628 [11:30:32]save last doc name /storage/0534/doc_00165628 to /storage/kkm_last_doc_name [11:30:32]save OK [11:30:32]Clear old archive folders... [11:30:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:30:32]tlvbuf is 0162CBA0 [11:30:32]SAM_PROTO_ClearQueue [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 09 00 00 [11:30:32]Write to MH i2c: E2 08 00 B5 DB 80 09 00 00 00 00 00 00 02 [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 03 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 03 00 B5 DB 00 90 00 04 [11:30:32]RAPDU: 90 00 [11:30:32]wFMCommunicate OK [11:30:32]SAM_PROTO_ClearQueue done [11:30:32]KKMCreateOFDPacket [11:30:32]OFDProtocolAddRootSTLVToBuf [11:30:32]FM_MakeSignedData [11:30:32]FM_MakeSignedData [11:30:32]SAM_PROTO_SignData [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 0D 01 02 [11:30:32]Write to MH i2c: E2 08 00 B6 DB 80 0D 01 02 00 00 00 00 0A [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 03 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 03 00 B6 DB 00 90 00 05 [11:30:32]RAPDU: 90 00 [11:30:32]wFMCommunicate OK [11:30:32]wFMCommunicate request_size=255 [11:30:32]MH_SAM_APDU [11:30: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E3 E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 86 02 00 35 04 06 00 84 1A A2 34 [11:30:32]Write to MH i2c: E2 02 01 B7 DB 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E3 E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 86 02 00 35 04 06 00 84 1A A2 34 00 00 BA [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 03 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 03 00 B7 DB 00 90 00 06 [11:30:32]RAPDU: 90 00 [11:30:32]wFMCommunicate OK [11:30:32]wFMCommunicate request_size=7 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 0D 02 02 02 0D A6 [11:30:32]Write to MH i2c: E2 0A 00 B8 DB 80 0D 02 02 02 00 0D A6 00 00 C4 [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 03 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 03 00 B8 DB 00 90 00 07 [11:30:32]RAPDU: 90 00 [11:30:32]wFMCommunicate OK [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 0D 03 02 [11:30:32]Write to MH i2c: E2 08 00 B9 DB 80 0D 03 02 00 00 00 00 0F [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 0B 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 0B 00 B9 DB 00 57 37 63 A5 8A 8E 47 E5 90 00 EA [11:30:32]RAPDU: 57 37 63 A5 8A 8E 47 E5 90 00 [11:30:32]wFMCommunicate OK [11:30:32]SAM_PROTO_SignData done [11:30:32]FM_MakeSignedData done [11:30:32]CreateOFDProtocolMessage [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 11 00 00 [11:30:32]Write to MH i2c: E2 08 00 BA DB 80 11 00 00 00 00 00 00 0F [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 17 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 17 00 BA DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [11:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:30:32]wFMCommunicate OK [11:30:32]CreateOFDProtocolMessage done [11:30:32]OFDSenderStorePacket 165628 [11:30:32]StoreOFDPacket docnum=165628 [11:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 13 91 04 01 FA 94 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E3 E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 86 02 00 35 04 06 00 84 1A A2 34 0D A6 57 37 63 A5 8A 8E 47 E5 [11:30:32]CheckFolder [11:30:32]dirname=/storage/ofd_packets [11:30:32]CheckFolder done [11:30:32]ProducePacketName [11:30:32]name=ofd_packets/00165628 [11:30:32]NVStorageSaveData ofd_packets/00165628 [11:30:32]File name is /storage/ofd_packets/00165628 [11:30:32]Write 298 bytes [11:30:32]NVStorageSaveData done [11:30:32]OFDSenderStorePacket done [11:30:32]KKMCreateOFDPacket done [11:30:32]NVStorageSaveData kkm_last_timestamp [11:30:32]File name is /storage/kkm_last_timestamp [11:30:32]Write 4 bytes [11:30:32]NVStorageSaveData done [11:30:32]ExternCall_PrintAddStr [11:30:32]wPrintStart [11:30:32]Write to MH i2c: 01 00 00 BB DB 96 [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: 01 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: 01 07 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: 01 07 00 BB DB 00 00 00 00 00 FF 0F AB [11:30:32]RasterBufferAndPrint [11:30:32]line Счет N : (1)220192 [11:30:32]line ИНН: 02508201610067 [11:30:32]line Контрольно-Кассовый Чек [11:30:32]line ПРОДАЖА [11:30:32]line ТРК (МРК, ГНК) : 11 [11:30:32]line Товар: 2710194210 [11:30:32]line ДТ-К-5 [11:30:32]line 6.560 * 76.20 [11:30:32]line = 499.87 [11:30:32]line НДС 12% НСП 1% [11:30:32]line > о реализуемом товаре [11:30:32]line ОКРУГЛЕНИЕ: -0.87 [11:30:32]line ИТОГО: 499.00 [11:30:32]line Внесено: 500.00 [11:30:32]line СДАЧА: 1.00 [11:30:32]line НСП 1% : 4.42 [11:30:32]line НДС 12% : 53.08 [11:30:32]line Наличными: 499.00 [11:30:32]line Безнал.: 0.00 [11:30:32]line Место: АЗС № 161 "Партнер Нефть" [11:30:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:30:32]line СНО: Общий режим [11:30:32]line Чек 110 20.10.2024 11:30 [11:30:32]line Смена: 534 ФФД: 1.0 [11:30:32]line ЗНМ: 0300000104 [11:30:32]line РНМ: 0000000000091764 [11:30:32]line Версия ККМ: 001 [11:30:32]line ФМ: 0000000000871759 [11:30:32]line ФД: 165628 [11:30:32]line ФПД: 145249925336486 [11:30:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113043&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165628&fm=145249925336486&tin=02508201610067®Number=0000000000091764&sum=49900 [11:30:32]OFD Sender: Processing packet 165628 [packets to send 48, broken 47] [11:30:32]ProducePacketName [11:30:32]name=ofd_packets/00165628 [11:30:32]OFD Sender: To server: pG, [11:30:32]CommunicateWithHost lk.salyk.kg:30040 [11:30:32]ConnectInit lk.salyk.kg [11:30:32]written 0, free lines is 4095 [11:30:33]Connected sock=10 [11:30:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 13 91 04 01 FA 94 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E3 E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 86 02 00 35 04 06 00 84 1A A2 34 0D A6 57 37 63 A5 8A 8E 47 E5 [11:30:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E5 DA 47 00 2D 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 31 37 35 39 10 04 04 00 FC 86 02 00 F4 03 04 00 55 90 14 67 B6 04 01 00 00 34 4E 8F 3E 65 0E 56 43 [11:30:33]CommunicateWithHost err = 0 [11:30:33]CheckOFDResponse [11:30:33]1017 (14) - 77093643461234 [11:30:33]1041 (16) - 0000000000871759 [11:30:33]1040 (4) - 165628 [11:30:33]1012 (4) - 20.10.2024 05:08 [11:30:33]1206 (1) - 0 [11:30:33]OFD Sender: Remove packet 165628 [11:30:33]ProducePacketName [11:30:33]name=ofd_packets/00165628 [11:30:33]NVStorageDeleteData [11:30:33]Write to MH i2c: 01 00 00 E6 DB C1 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: 01 [11:30:33]MH_I2C_Read... [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 E6 DB 00 00 00 00 00 D4 0C A8 [11:30:33]RasterBufferAndPrint [11:30:33]line [11:30:33]line [11:30:33]line [11:30:33]line [11:30:33]line [11:30:33]written 0, free lines is 3292 [11:30:33]MH_Cut [11:30:33]Write to MH i2c: D1 01 00 ED DB 01 9A [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: D1 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: D1 01 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: D1 01 00 ED DB 00 99 [11:30:33]Write to MH i2c: 01 00 00 EE DB C9 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]OFD Sender: No OFD packet to send [11:30:34]*** Cut start [11:30:34]*** Partial cut [11:30:34]*** CUTSNS_PIN = 1 [11:30:34]*** CUTSNS_PIN = 0 [11:30:34]*** Brake cut motor [11:30:34]Read from MH i2c: 01 [11:30:34]MH_I2C_Read... [11:30:34]*** Stop cut motor [11:30:34]*** Cut end [11:30:34]Read from MH i2c: 01 07 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: 01 07 00 EE DB 00 00 00 00 00 FF 0F DE [11:30:34]process_action close_receipt done [11:30:34]requested_data is exist [11:30:34]produce_requested_data [11:30:34]requested_item fm.sn is exist - process it [11:30:34]wFMCommunicate request_size=4 [11:30:34]MH_SAM_APDU [11:30:34]CAPDU: 80 11 00 00 [11:30:34]Write to MH i2c: E2 08 00 EF DB 80 11 00 00 00 00 00 00 44 [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:34]Read from MH i2c: E2 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 17 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 17 00 EF DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [11:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:30:34]wFMCommunicate OK [11:30:34]requested_item fd.num is exist - process it [11:30:34]SAM_PROTO_GetFieldsCounters [11:30:34]wFMCommunicate request_size=4 [11:30:34]MH_SAM_APDU [11:30:34]CAPDU: 80 13 00 00 [11:30:34]Write to MH i2c: E2 08 00 F0 DB 80 13 00 00 00 00 00 00 47 [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 62 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 62 00 F0 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [11:30:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:35]wFMCommunicate OK [11:30:35]SAM_PROTO_GetFieldsCounters done [11:30:35]requested_item shift.num is exist - process it [11:30:35]requested_item shift.opened is exist - process it [11:30:35]req_shift_opened [11:30:35]FM_GetShiftState [11:30:35]SAM_PROTO_GetShiftState [11:30:35]wFMCommunicate request_size=4 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 13 01 00 [11:30:35]Write to MH i2c: E2 08 00 F1 DB 80 13 01 00 00 00 00 00 49 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 0E 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 0E 00 F1 DB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 91 [11:30:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:30:35]wFMCommunicate OK [11:30:35]SAM_PROTO_GetShiftState done [11:30:35]FM_GetShiftState done [11:30:35]req_shift_opened done [11:30:35]requested_item shift.open_date is exist - process it [11:30:35]req_shift_open_date [11:30:35]req_shift_open_date done [11:30:35]produce_requested_data done [11:30:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165628,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:30:35]process_action_free close_receipt [11:30:35]json_value_free [11:30:35]json_value_free done [11:30:35]process_json_proto returns [11:30:35]Send response to host [11:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165628,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:30:35]free response buf [11:30:35]execute_script done [11:30:35]execute_script returns [11:30:35]free content buf [11:30:35]Sock 7.Close socket [11:30:35]Sock 7.Thread stoped [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:52]accept exits with 9 [11:30:52]New connection [11:30:52]New thread 3066920292 created [11:30:52]Thread 3066776932 joined [11:30:52]Waiting for new connection... [11:30:52] Sock 9.Parse request [11:30:52]Sock 9.Check first char [11:30:52]Sock 9.First char is OK [11:30:52]request: POST /json_proto HTTP/1.0 [11:30:52]Method: POST [11:30:52]URL: /json_proto [11:30:52]Method is POST - this is cgi request [11:30:52]url: /json_proto [11:30:52]query_string will be loaded in cgi processing [11:30:52]execute_cgi json_proto POST (null) [11:30:52]execute_cgi path=json_proto method=POST [11:30:52]POST find Content-Length [11:30:52]Host: 172.17.53.195:8080 [11:30:52]Content-Length: 676 [11:30:52]Content-Type: application/json [11:30:52] [11:30:52]POST finish read [11:30:52]Found Content-Length = 676 [11:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:52]execute_script... [11:30: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)220191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:52]POST & json_proto [11:30:52]process_json_proto [11:30:52]json parsed OK: [11:30:52]protocol is kg_v1.0 [11:30:52]action value=close_receipt [11:30:52]process_action close_receipt [11:30:52]cmd_close_receipt [11:30:52]MH_GetDate [11:30:52]Write to MH i2c: F0 00 00 F2 DB BC [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: F0 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: F0 09 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: F0 09 00 F2 DB 00 F8 E9 14 67 21 48 4A 65 39 [11:30:52]GetLastDocTimeStamp 1729423843 [11:30:52]current date 1729423864 [11:30:52]FM_GetShiftState [11:30:52]SAM_PROTO_GetShiftState [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 13 01 00 [11:30:52]Write to MH i2c: E2 08 00 F3 DB 80 13 01 00 00 00 00 00 4B [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0E 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0E 00 F3 DB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 93 [11:30:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:30:52]wFMCommunicate OK [11:30:52]SAM_PROTO_GetShiftState done [11:30:52]FM_GetShiftState done [11:30:52]opened in 1729384561 [11:30:52]opened+sec_in_day 1729470961 [11:30:52]quantity*price = 99974 [11:30:52]sum+1 = 99975 [11:30:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 111 20.10.2024 11:31 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165629 ФПД: 183054896157805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113104&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165629&fm=183054896157805&tin=02508201610067®Number=0000000000091764&sum=99900 [11:30:53]StoreToDocumentArchive [11:30:53]shift 534 fd 165629 [11:30:53]save to /storage/0534/doc_00165629 [11:30:53]save last doc name /storage/0534/doc_00165629 to /storage/kkm_last_doc_name [11:30:53]save OK [11:30:53]Clear old archive folders... [11:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:30:53]tlvbuf is 015E96F0 [11:30:53]SAM_PROTO_ClearQueue [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 09 00 00 [11:30:53]Write to MH i2c: E2 08 00 00 DC 80 09 00 00 00 00 00 00 4E [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 00 DC 00 90 00 50 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]SAM_PROTO_ClearQueue done [11:30:53]KKMCreateOFDPacket [11:30:53]OFDProtocolAddRootSTLVToBuf [11:30:53]FM_MakeSignedData [11:30:53]FM_MakeSignedData [11:30:53]SAM_PROTO_SignData [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 01 02 [11:30:53]Write to MH i2c: E2 08 00 01 DC 80 0D 01 02 00 00 00 00 56 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]OFD Sender: No OFD packet to send [11:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 01 DC 00 90 00 51 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]wFMCommunicate request_size=255 [11:30:53]MH_SAM_APDU [11:30:53]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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 6F 00 00 00 F4 03 04 00 F8 E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 86 02 00 35 04 06 00 A6 7C CA 0F [11:30:53]Write to MH i2c: E2 02 01 02 DC 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 6F 00 00 00 F4 03 04 00 F8 E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 86 02 00 35 04 06 00 A6 7C CA 0F 00 00 1E [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:54]Read from MH i2c: E2 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 03 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 03 00 02 DC 00 90 00 52 [11:30:54]RAPDU: 90 00 [11:30:54]wFMCommunicate OK [11:30:54]wFMCommunicate request_size=7 [11:30:54]MH_SAM_APDU [11:30:54]CAPDU: 80 0D 02 02 02 54 6D [11:30:54]Write to MH i2c: E2 0A 00 03 DC 80 0D 02 02 02 00 54 6D 00 00 1E [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:54]Read from MH i2c: E2 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 03 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 03 00 03 DC 00 90 00 53 [11:30:54]RAPDU: 90 00 [11:30:54]wFMCommunicate OK [11:30:54]wFMCommunicate request_size=4 [11:30:54]MH_SAM_APDU [11:30:54]CAPDU: 80 0D 03 02 [11:30:54]Write to MH i2c: E2 08 00 04 DC 80 0D 03 02 00 00 00 00 5B [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:54]Read from MH i2c: E2 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 0B 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 0B 00 04 DC 00 1E B8 91 08 1C E6 25 C5 90 00 B7 [11:30:54]RAPDU: 1E B8 91 08 1C E6 25 C5 90 00 [11:30:54]wFMCommunicate OK [11:30:54]SAM_PROTO_SignData done [11:30:54]FM_MakeSignedData done [11:30:54]CreateOFDProtocolMessage [11:30:54]wFMCommunicate request_size=4 [11:30:54]MH_SAM_APDU [11:30:54]CAPDU: 80 11 00 00 [11:30:54]Write to MH i2c: E2 08 00 05 DC 80 11 00 00 00 00 00 00 5B [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:54]Read from MH i2c: E2 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 17 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 17 00 05 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [11:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:30:54]wFMCommunicate OK [11:30:54]CreateOFDProtocolMessage done [11:30:54]OFDSenderStorePacket 165629 [11:30:54]StoreOFDPacket docnum=165629 [11:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 35 1D 04 01 32 6F 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 6F 00 00 00 F4 03 04 00 F8 E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 86 02 00 35 04 06 00 A6 7C CA 0F 54 6D 1E B8 91 08 1C E6 25 C5 [11:30:54]CheckFolder [11:30:54]dirname=/storage/ofd_packets [11:30:54]CheckFolder done [11:30:54]ProducePacketName [11:30:54]name=ofd_packets/00165629 [11:30:54]NVStorageSaveData ofd_packets/00165629 [11:30:54]File name is /storage/ofd_packets/00165629 [11:30:54]Write 298 bytes [11:30:54]NVStorageSaveData done [11:30:54]OFDSenderStorePacket done [11:30:54]KKMCreateOFDPacket done [11:30:54]NVStorageSaveData kkm_last_timestamp [11:30:54]File name is /storage/kkm_last_timestamp [11:30:54]Write 4 bytes [11:30:54]NVStorageSaveData done [11:30:54]ExternCall_PrintAddStr [11:30:54]wPrintStart [11:30:54]Write to MH i2c: 01 00 00 06 DC E2 [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 07 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 07 00 06 DC 00 00 00 00 00 FF 0F F7 [11:30:54]RasterBufferAndPrint [11:30:54]line Счет N : (1)220191 [11:30:54]line ИНН: 02508201610067 [11:30:54]line Контрольно-Кассовый Чек [11:30:54]line ПРОДАЖА [11:30:54]line ТРК (МРК, ГНК) : 41 [11:30:54]line Товар: 2710194210 [11:30:54]line ДТ-К-5 [11:30:54]line 13.120 * 76.20 [11:30:54]line = 999.74 [11:30:54]line НДС 12% НСП 1% [11:30:54]line > о реализуемом товаре [11:30:54]line ОКРУГЛЕНИЕ: -0.74 [11:30:54]line ИТОГО: 999.00 [11:30:54]line Внесено: 1000.00 [11:30:54]line СДАЧА: 1.00 [11:30:54]line НСП 1% : 8.85 [11:30:54]line НДС 12% : 106.17 [11:30:54]line Наличными: 999.00 [11:30:54]line Безнал.: 0.00 [11:30:54]line Место: АЗС № 161 "Партнер Нефть" [11:30:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:30:54]line СНО: Общий режим [11:30:54]line Чек 111 20.10.2024 11:31 [11:30:54]line Смена: 534 ФФД: 1.0 [11:30:54]line ЗНМ: 0300000104 [11:30:54]line РНМ: 0000000000091764 [11:30:54]line Версия ККМ: 001 [11:30:54]line ФМ: 0000000000871759 [11:30:54]line ФД: 165629 [11:30:54]line ФПД: 183054896157805 [11:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113104&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165629&fm=183054896157805&tin=02508201610067®Number=0000000000091764&sum=99900 [11:30:54]OFD Sender: Processing packet 165629 [packets to send 48, broken 47] [11:30:54]ProducePacketName [11:30:54]name=ofd_packets/00165629 [11:30:54]OFD Sender: To server: pG, [11:30:54]CommunicateWithHost lk.salyk.kg:30040 [11:30:54]ConnectInit lk.salyk.kg [11:30:54]written 0, free lines is 4095 [11:30:54]Connected sock=10 [11:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 35 1D 04 01 32 6F 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 6F 00 00 00 F4 03 04 00 F8 E9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 86 02 00 35 04 06 00 A6 7C CA 0F 54 6D 1E B8 91 08 1C E6 25 C5 [11:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3B 51 47 00 77 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 31 37 35 39 10 04 04 00 FD 86 02 00 F4 03 04 00 6A 90 14 67 B6 04 01 00 00 C3 AD BA F8 5B F8 79 09 [11:30:54]CommunicateWithHost err = 0 [11:30:54]CheckOFDResponse [11:30:54]1017 (14) - 77093643461234 [11:30:54]1041 (16) - 0000000000871759 [11:30:54]1040 (4) - 165629 [11:30:54]1012 (4) - 20.10.2024 05:08 [11:30:54]1206 (1) - 0 [11:30:54]OFD Sender: Remove packet 165629 [11:30:54]ProducePacketName [11:30:54]name=ofd_packets/00165629 [11:30:54]NVStorageDeleteData [11:30:55]Write to MH i2c: 01 00 00 31 DC 0D [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: 01 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: 01 07 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: 01 07 00 31 DC 00 00 00 00 00 CB 0C EB [11:30:55]RasterBufferAndPrint [11:30:55]line [11:30:55]line [11:30:55]line [11:30:55]line [11:30:55]line [11:30:55]written 0, free lines is 3280 [11:30:55]MH_Cut [11:30:55]Write to MH i2c: D1 01 00 38 DC 01 E6 [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: D1 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: D1 01 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: D1 01 00 38 DC 00 E5 [11:30:55]Write to MH i2c: 01 00 00 39 DC 15 [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:55]OFD Sender: No OFD packet to send [11:30:55]*** Cut start [11:30:55]*** Partial cut [11:30:55]*** CUTSNS_PIN = 1 [11:30:55]*** CUTSNS_PIN = 0 [11:30:56]*** Brake cut motor [11:30:56]Read from MH i2c: 01 [11:30:56]MH_I2C_Read... [11:30:56]*** Stop cut motor [11:30:56]*** Cut end [11:30:56]Read from MH i2c: 01 07 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: 01 07 00 39 DC 00 00 00 00 00 FF 0F 2A [11:30:56]process_action close_receipt done [11:30:56]requested_data is exist [11:30:56]produce_requested_data [11:30:56]requested_item fm.sn is exist - process it [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 11 00 00 [11:30:56]Write to MH i2c: E2 08 00 3A DC 80 11 00 00 00 00 00 00 90 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 17 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 17 00 3A DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [11:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:30:56]wFMCommunicate OK [11:30:56]requested_item fd.num is exist - process it [11:30:56]SAM_PROTO_GetFieldsCounters [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 13 00 00 [11:30:56]Write to MH i2c: E2 08 00 3B DC 80 13 00 00 00 00 00 00 93 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 62 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 62 00 3B DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [11:30: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:56]wFMCommunicate OK [11:30:56]SAM_PROTO_GetFieldsCounters done [11:30:56]requested_item shift.num is exist - process it [11:30:56]requested_item shift.opened is exist - process it [11:30:56]req_shift_opened [11:30:56]FM_GetShiftState [11:30:56]SAM_PROTO_GetShiftState [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 13 01 00 [11:30:56]Write to MH i2c: E2 08 00 3C DC 80 13 01 00 00 00 00 00 95 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0E 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0E 00 3C DC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DD [11:30:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:30:56]wFMCommunicate OK [11:30:56]SAM_PROTO_GetShiftState done [11:30:56]FM_GetShiftState done [11:30:56]req_shift_opened done [11:30:56]requested_item shift.open_date is exist - process it [11:30:56]req_shift_open_date [11:30:56]req_shift_open_date done [11:30:56]produce_requested_data done [11:30:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165629,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:30:56]process_action_free close_receipt [11:30:56]json_value_free [11:30:56]json_value_free done [11:30:56]process_json_proto returns [11:30:56]Send response to host [11:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165629,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:30:56]free response buf [11:30:56]execute_script done [11:30:56]execute_script returns [11:30:56]free content buf [11:30:56]Sock 9.Close socket [11:30:56]Sock 9.Thread stoped [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:16]accept exits with 7 [11:32:16]New connection [11:32:16]New thread 3066776932 created [11:32:16]Thread 3066920292 joined [11:32:16]Waiting for new connection... [11:32:16] Sock 7.Parse request [11:32:16]Sock 7.Check first char [11:32:16]Sock 7.First char is OK [11:32:16]request: POST /json_proto HTTP/1.0 [11:32:16]Method: POST [11:32:16]URL: /json_proto [11:32:16]Method is POST - this is cgi request [11:32:16]url: /json_proto [11:32:16]query_string will be loaded in cgi processing [11:32:16]execute_cgi json_proto POST (null) [11:32:16]execute_cgi path=json_proto method=POST [11:32:16]POST find Content-Length [11:32:16]Host: 172.17.53.195:8080 [11:32:16]Content-Length: 676 [11:32:16]Content-Type: application/json [11:32:16] [11:32:16]POST finish read [11:32:16]Found Content-Length = 676 [11:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:16]execute_script... [11:32: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)220194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:16]POST & json_proto [11:32:16]process_json_proto [11:32:16]json parsed OK: [11:32:16]protocol is kg_v1.0 [11:32:16]action value=close_receipt [11:32:16]process_action close_receipt [11:32:16]cmd_close_receipt [11:32:16]MH_GetDate [11:32:16]Write to MH i2c: F0 00 00 3D DC 08 [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: F0 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: F0 09 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: F0 09 00 3D DC 00 4C EA 14 67 21 48 4A 65 DA [11:32:16]GetLastDocTimeStamp 1729423864 [11:32:16]current date 1729423948 [11:32:16]FM_GetShiftState [11:32:16]SAM_PROTO_GetShiftState [11:32:16]wFMCommunicate request_size=4 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 13 01 00 [11:32:16]Write to MH i2c: E2 08 00 3E DC 80 13 01 00 00 00 00 00 97 [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 0E 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 0E 00 3E DC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DF [11:32:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:32:16]wFMCommunicate OK [11:32:16]SAM_PROTO_GetShiftState done [11:32:16]FM_GetShiftState done [11:32:16]opened in 1729384561 [11:32:16]opened+sec_in_day 1729470961 [11:32:16]quantity*price = 99974 [11:32:16]sum+1 = 99975 [11:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 112 20.10.2024 11:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165630 ФПД: 75839581310809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113228&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165630&fm=75839581310809&tin=02508201610067®Number=0000000000091764&sum=99900 [11:32:17]StoreToDocumentArchive [11:32:17]shift 534 fd 165630 [11:32:17]save to /storage/0534/doc_00165630 [11:32:17]save last doc name /storage/0534/doc_00165630 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=248 [11:32:17]tlvbuf is 015BD010 [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 4B DC 80 09 00 00 00 00 00 00 99 [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 4B DC 00 90 00 9B [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 4C DC 80 0D 01 02 00 00 00 00 A1 [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 4C DC 00 90 00 9C [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 70 00 00 00 F4 03 04 00 4C EA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 86 02 00 35 04 06 00 44 F9 C7 4D [11:32:17]Write to MH i2c: E2 02 01 4D DC 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 70 00 00 00 F4 03 04 00 4C EA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 86 02 00 35 04 06 00 44 F9 C7 4D 00 00 16 [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 4D DC 00 90 00 9D [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]wFMCommunicate request_size=7 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 02 02 02 CF 59 [11:32:17]Write to MH i2c: E2 0A 00 4E DC 80 0D 02 02 02 00 CF 59 00 00 D0 [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 4E DC 00 90 00 9E [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 4F DC 80 0D 03 02 00 00 00 00 A6 [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 4F DC 00 AA 99 05 CE F9 52 53 69 90 00 C4 [11:32:17]RAPDU: AA 99 05 CE F9 52 53 69 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 50 DC 80 11 00 00 00 00 00 00 A6 [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 50 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [11:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:32:17]wFMCommunicate OK [11:32:17]CreateOFDProtocolMessage done [11:32:17]OFDSenderStorePacket 165630 [11:32:17]StoreOFDPacket docnum=165630 [11:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DC 70 04 01 E5 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 70 00 00 00 F4 03 04 00 4C EA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 86 02 00 35 04 06 00 44 F9 C7 4D CF 59 AA 99 05 CE F9 52 53 69 [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/00165630 [11:32:17]NVStorageSaveData ofd_packets/00165630 [11:32:17]File name is /storage/ofd_packets/00165630 [11:32:17]Write 298 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]ExternCall_PrintAddStr [11:32:17]wPrintStart [11:32:17]Write to MH i2c: 01 00 00 51 DC 2D [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 51 DC 00 00 00 00 00 FF 0F 42 [11:32:17]RasterBufferAndPrint [11:32:17]line Счет N : (1)220194 [11:32:17]line ИНН: 02508201610067 [11:32:17]line Контрольно-Кассовый Чек [11:32:17]line ПРОДАЖА [11:32:17]line ТРК (МРК, ГНК) : 41 [11:32:17]line Товар: 2710194210 [11:32:17]line ДТ-К-5 [11:32:17]line 13.120 * 76.20 [11:32:17]line = 999.74 [11:32:17]line НДС 12% НСП 1% [11:32:17]line > о реализуемом товаре [11:32:17]line ОКРУГЛЕНИЕ: -0.74 [11:32:17]line ИТОГО: 999.00 [11:32:17]line Внесено: 1000.00 [11:32:17]line СДАЧА: 1.00 [11:32:17]line НСП 1% : 8.85 [11:32:17]line НДС 12% : 106.17 [11:32:17]line Наличными: 999.00 [11:32:17]line Безнал.: 0.00 [11:32:17]line Место: АЗС № 161 "Партнер Нефть" [11:32:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:32:17]line СНО: Общий режим [11:32:17]line Чек 112 20.10.2024 11:32 [11:32:17]line Смена: 534 ФФД: 1.0 [11:32:17]line ЗНМ: 0300000104 [11:32:17]line РНМ: 0000000000091764 [11:32:17]line Версия ККМ: 001 [11:32:17]line ФМ: 0000000000871759 [11:32:17]line ФД: 165630 [11:32:17]line ФПД: 75839581310809 [11:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113228&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165630&fm=75839581310809&tin=02508201610067®Number=0000000000091764&sum=99900 [11:32:18]OFD Sender: Processing packet 165630 [packets to send 48, broken 47] [11:32:18]ProducePacketName [11:32:18]name=ofd_packets/00165630 [11:32:18]OFD Sender: To server: pG, [11:32:18]CommunicateWithHost lk.salyk.kg:30040 [11:32:18]ConnectInit lk.salyk.kg [11:32:18]written 0, free lines is 4095 [11:32:18]Connected sock=10 [11:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DC 70 04 01 E5 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 70 00 00 00 F4 03 04 00 4C EA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 86 02 00 35 04 06 00 44 F9 C7 4D CF 59 AA 99 05 CE F9 52 53 69 [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 31 37 35 39 4F 00 00 00 CC 48 47 00 1C 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 86 02 00 F4 03 04 00 BE 90 14 67 B6 04 01 00 00 EB FE 06 21 BD CA 75 71 [11:32:18]CommunicateWithHost err = 0 [11:32:18]CheckOFDResponse [11:32:18]1017 (14) - 77093643461234 [11:32:18]1041 (16) - 0000000000871759 [11:32:18]1040 (4) - 165630 [11:32:18]1012 (4) - 20.10.2024 05:10 [11:32:18]1206 (1) - 0 [11:32:18]OFD Sender: Remove packet 165630 [11:32:18]ProducePacketName [11:32:18]name=ofd_packets/00165630 [11:32:18]NVStorageDeleteData [11:32:18]Write to MH i2c: 01 00 00 7C DC 58 [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 7C DC 00 00 00 00 00 CF 0C 3A [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 3286 [11:32:18]MH_Cut [11:32:18]Write to MH i2c: D1 01 00 83 DC 01 31 [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 83 DC 00 30 [11:32:18]Write to MH i2c: 01 00 00 84 DC 60 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:19]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:20]Read from MH i2c: 01 [11:32:20]MH_I2C_Read... [11:32:20]*** Stop cut motor [11:32:20]*** Cut end [11:32:20]Read from MH i2c: 01 07 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: 01 07 00 84 DC 00 00 00 00 00 FF 0F 75 [11:32:20]process_action close_receipt done [11:32:20]requested_data is exist [11:32:20]produce_requested_data [11:32:20]requested_item fm.sn is exist - process it [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 11 00 00 [11:32:20]Write to MH i2c: E2 08 00 85 DC 80 11 00 00 00 00 00 00 DB [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 17 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 17 00 85 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [11:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:32:20]wFMCommunicate OK [11:32:20]requested_item fd.num is exist - process it [11:32:20]SAM_PROTO_GetFieldsCounters [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 13 00 00 [11:32:20]Write to MH i2c: E2 08 00 86 DC 80 13 00 00 00 00 00 00 DE [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 62 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 62 00 86 DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:32:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_GetFieldsCounters done [11:32:20]requested_item shift.num is exist - process it [11:32:20]requested_item shift.opened is exist - process it [11:32:20]req_shift_opened [11:32:20]FM_GetShiftState [11:32:20]SAM_PROTO_GetShiftState [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 13 01 00 [11:32:20]Write to MH i2c: E2 08 00 87 DC 80 13 01 00 00 00 00 00 E0 [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 87 DC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 28 [11:32:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_GetShiftState done [11:32:20]FM_GetShiftState done [11:32:20]req_shift_opened done [11:32:20]requested_item shift.open_date is exist - process it [11:32:20]req_shift_open_date [11:32:20]req_shift_open_date done [11:32:20]produce_requested_data done [11:32:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165630,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:32:20]process_action_free close_receipt [11:32:20]json_value_free [11:32:20]json_value_free done [11:32:20]process_json_proto returns [11:32:20]Send response to host [11:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165630,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:32:20]free response buf [11:32:20]execute_script done [11:32:20]execute_script returns [11:32:20]free content buf [11:32:20]Sock 7.Close socket [11:32:20]Sock 7.Thread stoped [11:32:20]accept exits with 9 [11:32:20]New connection [11:32:20]New thread 3066920292 created [11:32:20]Thread 3066776932 joined [11:32:20]Waiting for new connection... [11:32:20] Sock 9.Parse request [11:32:20]Sock 9.Check first char [11:32:20]Sock 9.First char is OK [11:32:20]request: POST /json_proto HTTP/1.0 [11:32:20]Method: POST [11:32:20]URL: /json_proto [11:32:20]Method is POST - this is cgi request [11:32:20]url: /json_proto [11:32:20]query_string will be loaded in cgi processing [11:32:20]execute_cgi json_proto POST (null) [11:32:20]execute_cgi path=json_proto method=POST [11:32:20]POST find Content-Length [11:32:20]Host: 172.17.53.195:8080 [11:32:20]Content-Length: 677 [11:32:20]Content-Type: application/json [11:32:20] [11:32:20]POST finish read [11:32:20]Found Content-Length = 677 [11:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:20]execute_script... [11:32: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)220193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:20]POST & json_proto [11:32:20]process_json_proto [11:32:20]json parsed OK: [11:32:20]protocol is kg_v1.0 [11:32:20]action value=close_receipt [11:32:20]process_action close_receipt [11:32:20]cmd_close_receipt [11:32:20]MH_GetDate [11:32:20]Write to MH i2c: F0 00 00 88 DC 53 [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: F0 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: F0 09 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: F0 09 00 88 DC 00 50 EA 14 67 21 48 4A 65 29 [11:32:20]GetLastDocTimeStamp 1729423948 [11:32:20]current date 1729423952 [11:32:20]FM_GetShiftState [11:32:20]SAM_PROTO_GetShiftState [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 13 01 00 [11:32:20]Write to MH i2c: E2 08 00 89 DC 80 13 01 00 00 00 00 00 E2 [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 89 DC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2A [11:32:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_GetShiftState done [11:32:20]FM_GetShiftState done [11:32:20]opened in 1729384561 [11:32:20]opened+sec_in_day 1729470961 [11:32:20]quantity*price = 60009 [11:32:20]sum+1 = 60010 [11:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 113 20.10.2024 11:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165631 ФПД: 67140196268127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113232&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165631&fm=67140196268127&tin=02508201610067®Number=0000000000091764&sum=60000 [11:32:22]StoreToDocumentArchive [11:32:22]shift 534 fd 165631 [11:32:22]save to /storage/0534/doc_00165631 [11:32:22]save last doc name /storage/0534/doc_00165631 to /storage/kkm_last_doc_name [11:32:22]save OK [11:32:22]Clear old archive folders... [11:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:22]tlvbuf is 01510720 [11:32:22]SAM_PROTO_ClearQueue [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 09 00 00 [11:32:22]Write to MH i2c: E2 08 00 96 DC 80 09 00 00 00 00 00 00 E4 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 96 DC 00 90 00 E6 [11:32:22]RAPDU: 90 00 [11:32:22]wFMCommunicate OK [11:32:22]SAM_PROTO_ClearQueue done [11:32:22]KKMCreateOFDPacket [11:32:22]OFDProtocolAddRootSTLVToBuf [11:32:22]FM_MakeSignedData [11:32:22]FM_MakeSignedData [11:32:22]SAM_PROTO_SignData [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 0D 01 02 [11:32:22]Write to MH i2c: E2 08 00 97 DC 80 0D 01 02 00 00 00 00 EC [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 97 DC 00 90 00 E7 [11:32:22]RAPDU: 90 00 [11:32:22]wFMCommunicate OK [11:32:22]wFMCommunicate request_size=255 [11:32:22]MH_SAM_APDU [11:32: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 50 EA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 86 02 00 35 04 06 00 3D [11:32:22]Write to MH i2c: E2 02 01 98 DC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 50 EA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 86 02 00 35 04 06 00 3D 00 00 61 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 98 DC 00 90 00 E8 [11:32:22]RAPDU: 90 00 [11:32:22]wFMCommunicate OK [11:32:22]wFMCommunicate request_size=10 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 0D 02 02 05 10 4B 8C 78 5F [11:32:22]Write to MH i2c: E2 0D 00 99 DC 80 0D 02 02 05 00 10 4B 8C 78 5F 00 00 B7 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 99 DC 00 90 00 E9 [11:32:22]RAPDU: 90 00 [11:32:22]wFMCommunicate OK [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 0D 03 02 [11:32:22]Write to MH i2c: E2 08 00 9A DC 80 0D 03 02 00 00 00 00 F1 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 0B 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 0B 00 9A DC 00 A1 14 DF 42 2E CD 37 49 90 00 43 [11:32:22]RAPDU: A1 14 DF 42 2E CD 37 49 90 00 [11:32:22]wFMCommunicate OK [11:32:22]SAM_PROTO_SignData done [11:32:22]FM_MakeSignedData done [11:32:22]CreateOFDProtocolMessage [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 11 00 00 [11:32:22]Write to MH i2c: E2 08 00 9B DC 80 11 00 00 00 00 00 00 F1 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 17 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 17 00 9B DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 49 [11:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:32:22]wFMCommunicate OK [11:32:22]CreateOFDProtocolMessage done [11:32:22]OFDSenderStorePacket 165631 [11:32:22]StoreOFDPacket docnum=165631 [11:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F5 36 07 01 C6 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 50 EA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 86 02 00 35 04 06 00 3D 10 4B 8C 78 5F A1 14 DF 42 2E CD 37 49 [11:32:22]CheckFolder [11:32:22]dirname=/storage/ofd_packets [11:32:22]CheckFolder done [11:32:22]ProducePacketName [11:32:22]name=ofd_packets/00165631 [11:32:22]NVStorageSaveData ofd_packets/00165631 [11:32:22]File name is /storage/ofd_packets/00165631 [11:32:22]Write 301 bytes [11:32:22]NVStorageSaveData done [11:32:22]OFDSenderStorePacket done [11:32:22]KKMCreateOFDPacket done [11:32:22]NVStorageSaveData kkm_last_timestamp [11:32:22]File name is /storage/kkm_last_timestamp [11:32:22]Write 4 bytes [11:32:22]NVStorageSaveData done [11:32:22]ExternCall_PrintAddStr [11:32:22]wPrintStart [11:32:22]Write to MH i2c: 01 00 00 9C DC 78 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 07 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 07 00 9C DC 00 00 00 00 00 FF 0F 8D [11:32:22]RasterBufferAndPrint [11:32:22]line Счет N : (1)220193 [11:32:22]line ИНН: 02508201610067 [11:32:22]line Контрольно-Кассовый Чек [11:32:22]line ПРОДАЖА [11:32:22]line ТРК (МРК, ГНК) : 23 [11:32:22]line Товар: 2710124130 [11:32:22]line Аи-92-К-5 [11:32:22]line 8.970 * 66.90 [11:32:22]line = 600.09 [11:32:22]line НДС 12% НСП 1% [11:32:22]line > о реализуемом товаре [11:32:22]line ОКРУГЛЕНИЕ: -0.09 [11:32:22]line ИТОГО: 600.00 [11:32:22]line Внесено: 600.00 [11:32:22]line СДАЧА: 0.00 [11:32:22]line НСП 1% : 5.31 [11:32:22]line НДС 12% : 63.73 [11:32:22]line Наличными: 600.00 [11:32:22]line Безнал.: 0.00 [11:32:22]line Место: АЗС № 161 "Партнер Нефть" [11:32:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:32:22]line СНО: Общий режим [11:32:22]line Чек 113 20.10.2024 11:32 [11:32:22]line Смена: 534 ФФД: 1.0 [11:32:22]line ЗНМ: 0300000104 [11:32:22]line РНМ: 0000000000091764 [11:32:22]line Версия ККМ: 001 [11:32:22]line ФМ: 0000000000871759 [11:32:22]line ФД: 165631 [11:32:22]line ФПД: 67140196268127 [11:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113232&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165631&fm=67140196268127&tin=02508201610067®Number=0000000000091764&sum=60000 [11:32:23]OFD Sender: Processing packet 165631 [packets to send 48, broken 47] [11:32:23]ProducePacketName [11:32:23]name=ofd_packets/00165631 [11:32:23]OFD Sender: To server: pG, [11:32:23]CommunicateWithHost lk.salyk.kg:30040 [11:32:23]ConnectInit lk.salyk.kg [11:32:23]written 0, free lines is 4095 [11:32:23]Connected sock=10 [11:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F5 36 07 01 C6 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 50 EA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 86 02 00 35 04 06 00 3D 10 4B 8C 78 5F A1 14 DF 42 2E CD 37 49 [11:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3B D3 47 00 95 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 31 37 35 39 10 04 04 00 FF 86 02 00 F4 03 04 00 C3 90 14 67 B6 04 01 00 00 FC 06 8A 8E B4 4A CA C3 [11:32:23]CommunicateWithHost err = 0 [11:32:23]CheckOFDResponse [11:32:23]1017 (14) - 77093643461234 [11:32:23]1041 (16) - 0000000000871759 [11:32:23]1040 (4) - 165631 [11:32:23]1012 (4) - 20.10.2024 05:10 [11:32:23]1206 (1) - 0 [11:32:23]OFD Sender: Remove packet 165631 [11:32:23]ProducePacketName [11:32:23]name=ofd_packets/00165631 [11:32:23]NVStorageDeleteData [11:32:23]Write to MH i2c: 01 00 00 C7 DC A3 [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 07 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 07 00 C7 DC 00 00 00 00 00 E3 0C 99 [11:32:23]RasterBufferAndPrint [11:32:23]line [11:32:23]line [11:32:23]line [11:32:23]line [11:32:23]line [11:32:23]written 0, free lines is 3314 [11:32:23]MH_Cut [11:32:23]Write to MH i2c: D1 01 00 CE DC 01 7C [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: D1 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: D1 01 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: D1 01 00 CE DC 00 7B [11:32:23]Write to MH i2c: 01 00 00 CF DC AB [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]OFD Sender: No OFD packet to send [11:32:24]*** Cut start [11:32:24]*** Partial cut [11:32:24]*** CUTSNS_PIN = 1 [11:32:24]*** CUTSNS_PIN = 0 [11:32:24]*** Brake cut motor [11:32:24]Read from MH i2c: 01 [11:32:24]MH_I2C_Read... [11:32:24]*** Stop cut motor [11:32:24]*** Cut end [11:32:24]Read from MH i2c: 01 07 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: 01 07 00 CF DC 00 00 00 00 00 FF 0F C0 [11:32:24]process_action close_receipt done [11:32:24]requested_data is exist [11:32:24]produce_requested_data [11:32:24]requested_item fm.sn is exist - process it [11:32:24]wFMCommunicate request_size=4 [11:32:24]MH_SAM_APDU [11:32:24]CAPDU: 80 11 00 00 [11:32:24]Write to MH i2c: E2 08 00 D0 DC 80 11 00 00 00 00 00 00 26 [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 17 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 17 00 D0 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [11:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:32:25]wFMCommunicate OK [11:32:25]requested_item fd.num is exist - process it [11:32:25]SAM_PROTO_GetFieldsCounters [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 13 00 00 [11:32:25]Write to MH i2c: E2 08 00 D1 DC 80 13 00 00 00 00 00 00 29 [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 62 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 62 00 D1 DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [11:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 86 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:25]wFMCommunicate OK [11:32:25]SAM_PROTO_GetFieldsCounters done [11:32:25]requested_item shift.num is exist - process it [11:32:25]requested_item shift.opened is exist - process it [11:32:25]req_shift_opened [11:32:25]FM_GetShiftState [11:32:25]SAM_PROTO_GetShiftState [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 13 01 00 [11:32:25]Write to MH i2c: E2 08 00 D2 DC 80 13 01 00 00 00 00 00 2B [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 0E 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 0E 00 D2 DC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 73 [11:32:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:32:25]wFMCommunicate OK [11:32:25]SAM_PROTO_GetShiftState done [11:32:25]FM_GetShiftState done [11:32:25]req_shift_opened done [11:32:25]requested_item shift.open_date is exist - process it [11:32:25]req_shift_open_date [11:32:25]req_shift_open_date done [11:32:25]produce_requested_data done [11:32:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165631,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:32:25]process_action_free close_receipt [11:32:25]json_value_free [11:32:25]json_value_free done [11:32:25]process_json_proto returns [11:32:25]Send response to host [11:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165631,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:32:25]free response buf [11:32:25]execute_script done [11:32:25]execute_script returns [11:32:25]free content buf [11:32:25]Sock 9.Close socket [11:32:25]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:41]accept exits with 7 [11:36:41]New connection [11:36:41]New thread 3066776932 created [11:36:41]Thread 3066920292 joined [11:36:41]Waiting for new connection... [11:36:41] Sock 7.Parse request [11:36:41]Sock 7.Check first char [11:36:41]Sock 7.First char is OK [11:36:41]request: POST /json_proto HTTP/1.0 [11:36:41]Method: POST [11:36:41]URL: /json_proto [11:36:41]Method is POST - this is cgi request [11:36:41]url: /json_proto [11:36:41]query_string will be loaded in cgi processing [11:36:41]execute_cgi json_proto POST (null) [11:36:41]execute_cgi path=json_proto method=POST [11:36:41]POST find Content-Length [11:36:41]Host: 172.17.53.195:8080 [11:36:41]Content-Length: 682 [11:36:41]Content-Type: application/json [11:36:41] [11:36:41]POST finish read [11:36:41]Found Content-Length = 682 [11:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "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:36:41]execute_script... [11:36: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)220195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "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:36:41]POST & json_proto [11:36:41]process_json_proto [11:36:41]json parsed OK: [11:36:41]protocol is kg_v1.0 [11:36:41]action value=close_receipt [11:36:41]process_action close_receipt [11:36:41]cmd_close_receipt [11:36:41]MH_GetDate [11:36:41]Write to MH i2c: F0 00 00 D3 DC 9E [11:36:41]Write i2c OK [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: F0 [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: F0 09 00 [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: F0 09 00 D3 DC 00 55 EB 14 67 21 48 4A 65 7A [11:36:41]GetLastDocTimeStamp 1729423952 [11:36:41]current date 1729424213 [11:36:41]FM_GetShiftState [11:36:41]SAM_PROTO_GetShiftState [11:36:41]wFMCommunicate request_size=4 [11:36:41]MH_SAM_APDU [11:36:41]CAPDU: 80 13 01 00 [11:36:41]Write to MH i2c: E2 08 00 D4 DC 80 13 01 00 00 00 00 00 2D [11:36:41]Write i2c OK [11:36:41]MH_I2C_Read... [11:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:41]Read from MH i2c: E2 [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: E2 0E 00 [11:36:41]MH_I2C_Read... [11:36:41]Read from MH i2c: E2 0E 00 D4 DC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 75 [11:36:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:36:41]wFMCommunicate OK [11:36:41]SAM_PROTO_GetShiftState done [11:36:41]FM_GetShiftState done [11:36:41]opened in 1729384561 [11:36:41]opened+sec_in_day 1729470961 [11:36:41]quantity*price = 130053 [11:36:41]sum+1 = 130055 [11:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 114 20.10.2024 11:36 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165632 ФПД: 80346839306003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113653&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165632&fm=80346839306003&tin=02508201610067®Number=0000000000091764&sum=130000 [11:36:42]StoreToDocumentArchive [11:36:42]shift 534 fd 165632 [11:36:42]save to /storage/0534/doc_00165632 [11:36:42]save last doc name /storage/0534/doc_00165632 to /storage/kkm_last_doc_name [11:36:42]save OK [11:36:42]Clear old archive folders... [11:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:42]tlvbuf is 014ED1F0 [11:36:42]SAM_PROTO_ClearQueue [11:36:42]wFMCommunicate request_size=4 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 09 00 00 [11:36:42]Write to MH i2c: E2 08 00 E1 DC 80 09 00 00 00 00 00 00 2F [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 E1 DC 00 90 00 31 [11:36:42]RAPDU: 90 00 [11:36:42]wFMCommunicate OK [11:36:42]SAM_PROTO_ClearQueue done [11:36:42]KKMCreateOFDPacket [11:36:42]OFDProtocolAddRootSTLVToBuf [11:36:42]FM_MakeSignedData [11:36:42]FM_MakeSignedData [11:36:42]SAM_PROTO_SignData [11:36:42]wFMCommunicate request_size=4 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 0D 01 02 [11:36:42]Write to MH i2c: E2 08 00 E2 DC 80 0D 01 02 00 00 00 00 37 [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:42]Read from MH i2c: E2 03 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 E2 DC 00 90 00 32 [11:36:42]RAPDU: 90 00 [11:36:42]wFMCommunicate OK [11:36:42]wFMCommunicate request_size=255 [11:36:42]MH_SAM_APDU [11:36: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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 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 F3 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 72 00 00 00 F4 03 04 00 55 EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 87 02 00 35 04 06 00 49 [11:36:42]Write to MH i2c: E2 02 01 E3 DC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 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 F3 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 72 00 00 00 F4 03 04 00 55 EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 87 02 00 35 04 06 00 49 00 00 1C [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 E3 DC 00 90 00 33 [11:36:42]RAPDU: 90 00 [11:36:42]wFMCommunicate OK [11:36:42]wFMCommunicate request_size=10 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 0D 02 02 05 13 34 D0 CF 13 [11:36:42]Write to MH i2c: E2 0D 00 E4 DC 80 0D 02 02 05 00 13 34 D0 CF 13 00 00 3D [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 03 00 E4 DC 00 90 00 34 [11:36:42]RAPDU: 90 00 [11:36:42]wFMCommunicate OK [11:36:42]wFMCommunicate request_size=4 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 0D 03 02 [11:36:42]Write to MH i2c: E2 08 00 E5 DC 80 0D 03 02 00 00 00 00 3C [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 0B 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 0B 00 E5 DC 00 DB EF 1F 72 78 F7 AE 21 90 00 D6 [11:36:42]RAPDU: DB EF 1F 72 78 F7 AE 21 90 00 [11:36:42]wFMCommunicate OK [11:36:42]SAM_PROTO_SignData done [11:36:42]FM_MakeSignedData done [11:36:42]CreateOFDProtocolMessage [11:36:42]wFMCommunicate request_size=4 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 11 00 00 [11:36:42]Write to MH i2c: E2 08 00 E6 DC 80 11 00 00 00 00 00 00 3C [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 17 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 17 00 E6 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [11:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:36:42]wFMCommunicate OK [11:36:42]CreateOFDProtocolMessage done [11:36:42]OFDSenderStorePacket 165632 [11:36:42]StoreOFDPacket docnum=165632 [11:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 52 07 01 A8 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 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 F3 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 72 00 00 00 F4 03 04 00 55 EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 87 02 00 35 04 06 00 49 13 34 D0 CF 13 DB EF 1F 72 78 F7 AE 21 [11:36:42]CheckFolder [11:36:42]dirname=/storage/ofd_packets [11:36:42]CheckFolder done [11:36:42]ProducePacketName [11:36:42]name=ofd_packets/00165632 [11:36:42]NVStorageSaveData ofd_packets/00165632 [11:36:42]File name is /storage/ofd_packets/00165632 [11:36:42]Write 301 bytes [11:36:42]NVStorageSaveData done [11:36:42]OFDSenderStorePacket done [11:36:42]KKMCreateOFDPacket done [11:36:42]NVStorageSaveData kkm_last_timestamp [11:36:42]File name is /storage/kkm_last_timestamp [11:36:42]Write 4 bytes [11:36:42]NVStorageSaveData done [11:36:42]ExternCall_PrintAddStr [11:36:42]wPrintStart [11:36:42]Write to MH i2c: 01 00 00 E7 DC C3 [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: 01 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: 01 07 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: 01 07 00 E7 DC 00 00 00 00 00 FF 0F D8 [11:36:42]RasterBufferAndPrint [11:36:42]line Счет N : (1)220195 [11:36:42]line ИНН: 02508201610067 [11:36:42]line Контрольно-Кассовый Чек [11:36:42]line ПРОДАЖА [11:36:42]line ТРК (МРК, ГНК) : 33 [11:36:42]line Товар: 2710124130 [11:36:42]line Аи-92-К-5 [11:36:42]line 19.440 * 66.90 [11:36:42]line = 1300.54 [11:36:42]line НДС 12% НСП 1% [11:36:42]line > о реализуемом товаре [11:36:42]line ОКРУГЛЕНИЕ: -0.54 [11:36:42]line ИТОГО: 1300.00 [11:36:42]line Внесено: 1300.00 [11:36:42]line СДАЧА: 0.00 [11:36:42]line НСП 1% : 11.51 [11:36:42]line НДС 12% : 138.11 [11:36:42]line Наличными: 1300.00 [11:36:42]line Безнал.: 0.00 [11:36:42]line Место: АЗС № 161 "Партнер Нефть" [11:36:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:36:42]line СНО: Общий режим [11:36:42]line Чек 114 20.10.2024 11:36 [11:36:42]line Смена: 534 ФФД: 1.0 [11:36:42]line ЗНМ: 0300000104 [11:36:42]line РНМ: 0000000000091764 [11:36:42]line Версия ККМ: 001 [11:36:42]line ФМ: 0000000000871759 [11:36:42]line ФД: 165632 [11:36:42]line ФПД: 80346839306003 [11:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113653&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165632&fm=80346839306003&tin=02508201610067®Number=0000000000091764&sum=130000 [11:36:42]written 0, free lines is 4095 [11:36:42]OFD Sender: Processing packet 165632 [packets to send 48, broken 47] [11:36:42]ProducePacketName [11:36:42]name=ofd_packets/00165632 [11:36:42]OFD Sender: To server: pG, [11:36:42]CommunicateWithHost lk.salyk.kg:30040 [11:36:42]ConnectInit lk.salyk.kg [11:36:43]Connected sock=11 [11:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 52 07 01 A8 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 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 F3 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 72 00 00 00 F4 03 04 00 55 EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 87 02 00 35 04 06 00 49 13 34 D0 CF 13 DB EF 1F 72 78 F7 AE 21 [11:36:43]Write to MH i2c: 01 00 00 12 DD EF [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 07 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 07 00 12 DD 00 00 00 00 00 CF 0C D1 [11:36:43]RasterBufferAndPrint [11:36:43]line [11:36:43]line [11:36:43]line [11:36:43]line [11:36:43]line [11:36:43]written 0, free lines is 3284 [11:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 52 10 47 00 32 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 31 37 35 39 10 04 04 00 00 87 02 00 F4 03 04 00 C7 91 14 67 B6 04 01 00 00 F1 B5 C9 DC 35 82 72 18 [11:36:43]CommunicateWithHost err = 0 [11:36:43]CheckOFDResponse [11:36:43]1017 (14) - 77093643461234 [11:36:43]1041 (16) - 0000000000871759 [11:36:43]1040 (4) - 165632 [11:36:43]1012 (4) - 20.10.2024 05:14 [11:36:43]1206 (1) - 0 [11:36:43]OFD Sender: Remove packet 165632 [11:36:43]ProducePacketName [11:36:43]name=ofd_packets/00165632 [11:36:43]NVStorageDeleteData [11:36:43]MH_Cut [11:36:43]Write to MH i2c: D1 01 00 19 DD 01 C8 [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: D1 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: D1 01 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: D1 01 00 19 DD 00 C7 [11:36:43]Write to MH i2c: 01 00 00 1A DD F7 [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]OFD Sender: No OFD packet to send [11:36:44]*** Cut start [11:36:44]*** Partial cut [11:36:44]*** CUTSNS_PIN = 1 [11:36:44]*** CUTSNS_PIN = 0 [11:36:44]*** Brake cut motor [11:36:44]Read from MH i2c: 01 [11:36:44]MH_I2C_Read... [11:36:44]*** Stop cut motor [11:36:44]*** Cut end [11:36:44]Read from MH i2c: 01 07 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: 01 07 00 1A DD 00 00 00 00 00 FF 0F 0C [11:36:44]process_action close_receipt done [11:36:44]requested_data is exist [11:36:44]produce_requested_data [11:36:44]requested_item fm.sn is exist - process it [11:36:44]wFMCommunicate request_size=4 [11:36:44]MH_SAM_APDU [11:36:44]CAPDU: 80 11 00 00 [11:36:44]Write to MH i2c: E2 08 00 1B DD 80 11 00 00 00 00 00 00 72 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:44]Read from MH i2c: E2 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 17 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 17 00 1B DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [11:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:36:44]wFMCommunicate OK [11:36:44]requested_item fd.num is exist - process it [11:36:44]SAM_PROTO_GetFieldsCounters [11:36:44]wFMCommunicate request_size=4 [11:36:44]MH_SAM_APDU [11:36:44]CAPDU: 80 13 00 00 [11:36:44]Write to MH i2c: E2 08 00 1C DD 80 13 00 00 00 00 00 00 75 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:44]Read from MH i2c: E2 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 62 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 62 00 1C DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [11:36: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:44]wFMCommunicate OK [11:36:44]SAM_PROTO_GetFieldsCounters done [11:36:44]requested_item shift.num is exist - process it [11:36:44]requested_item shift.opened is exist - process it [11:36:44]req_shift_opened [11:36:44]FM_GetShiftState [11:36:44]SAM_PROTO_GetShiftState [11:36:44]wFMCommunicate request_size=4 [11:36:44]MH_SAM_APDU [11:36:44]CAPDU: 80 13 01 00 [11:36:44]Write to MH i2c: E2 08 00 1D DD 80 13 01 00 00 00 00 00 77 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:44]Read from MH i2c: E2 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 0E 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 0E 00 1D DD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BF [11:36:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:36:44]wFMCommunicate OK [11:36:44]SAM_PROTO_GetShiftState done [11:36:44]FM_GetShiftState done [11:36:44]req_shift_opened done [11:36:44]requested_item shift.open_date is exist - process it [11:36:44]req_shift_open_date [11:36:44]req_shift_open_date done [11:36:44]produce_requested_data done [11:36:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165632,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:36:44]process_action_free close_receipt [11:36:44]json_value_free [11:36:44]json_value_free done [11:36:44]process_json_proto returns [11:36:44]Send response to host [11:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165632,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:36:44]free response buf [11:36:44]execute_script done [11:36:44]execute_script returns [11:36:44]free content buf [11:36:44]Sock 7.Close socket [11:36:44]Sock 7.Thread stoped [11:36:48]OFD Sender: No OFD packet to send [11:36:50]accept exits with 9 [11:36:50]New connection [11:36:50]New thread 3066920292 created [11:36:50]Thread 3066776932 joined [11:36:50]Waiting for new connection... [11:36:50] Sock 9.Parse request [11:36:50]Sock 9.Check first char [11:36:50]Sock 9.First char is OK [11:36:50]request: POST /json_proto HTTP/1.0 [11:36:50]Method: POST [11:36:50]URL: /json_proto [11:36:50]Method is POST - this is cgi request [11:36:50]url: /json_proto [11:36:50]query_string will be loaded in cgi processing [11:36:50]execute_cgi json_proto POST (null) [11:36:50]execute_cgi path=json_proto method=POST [11:36:50]POST find Content-Length [11:36:50]Host: 172.17.53.195:8080 [11:36:50]Content-Length: 678 [11:36:50]Content-Type: application/json [11:36:50] [11:36:50]POST finish read [11:36:50]Found Content-Length = 678 [11:36:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:50]execute_script... [11:36: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)220196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:50]POST & json_proto [11:36:50]process_json_proto [11:36:50]json parsed OK: [11:36:50]protocol is kg_v1.0 [11:36:50]action value=close_receipt [11:36:50]process_action close_receipt [11:36:50]cmd_close_receipt [11:36:50]MH_GetDate [11:36:50]Write to MH i2c: F0 00 00 1E DD EA [11:36:50]Write i2c OK [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: F0 [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: F0 09 00 [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: F0 09 00 1E DD 00 5E EB 14 67 21 48 4A 65 CF [11:36:50]GetLastDocTimeStamp 1729424213 [11:36:50]current date 1729424222 [11:36:50]FM_GetShiftState [11:36:50]SAM_PROTO_GetShiftState [11:36:50]wFMCommunicate request_size=4 [11:36:50]MH_SAM_APDU [11:36:50]CAPDU: 80 13 01 00 [11:36:50]Write to MH i2c: E2 08 00 1F DD 80 13 01 00 00 00 00 00 79 [11:36:50]Write i2c OK [11:36:50]MH_I2C_Read... [11:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:50]Read from MH i2c: E2 [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: E2 0E 00 [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: E2 0E 00 1F DD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C1 [11:36:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:36:50]wFMCommunicate OK [11:36:50]SAM_PROTO_GetShiftState done [11:36:50]FM_GetShiftState done [11:36:50]opened in 1729384561 [11:36:50]opened+sec_in_day 1729470961 [11:36:50]quantity*price = 70044 [11:36:50]sum+1 = 70045 [11:36:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 115 20.10.2024 11:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165633 ФПД: 233477749503176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113702&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165633&fm=233477749503176&tin=02508201610067®Number=0000000000091764&sum=70000 [11:36:51]StoreToDocumentArchive [11:36:51]shift 534 fd 165633 [11:36:51]save to /storage/0534/doc_00165633 [11:36:51]save last doc name /storage/0534/doc_00165633 to /storage/kkm_last_doc_name [11:36:51]save OK [11:36:51]Clear old archive folders... [11:36:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:51]tlvbuf is 01897040 [11:36:51]SAM_PROTO_ClearQueue [11:36:51]wFMCommunicate request_size=4 [11:36:51]MH_SAM_APDU [11:36:51]CAPDU: 80 09 00 00 [11:36:51]Write to MH i2c: E2 08 00 2C DD 80 09 00 00 00 00 00 00 7B [11:36:51]Write i2c OK [11:36:51]MH_I2C_Read... [11:36:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:51]Read from MH i2c: E2 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 03 00 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 03 00 2C DD 00 90 00 7D [11:36:51]RAPDU: 90 00 [11:36:51]wFMCommunicate OK [11:36:51]SAM_PROTO_ClearQueue done [11:36:51]KKMCreateOFDPacket [11:36:51]OFDProtocolAddRootSTLVToBuf [11:36:51]FM_MakeSignedData [11:36:51]FM_MakeSignedData [11:36:51]SAM_PROTO_SignData [11:36:51]wFMCommunicate request_size=4 [11:36:51]MH_SAM_APDU [11:36:51]CAPDU: 80 0D 01 02 [11:36:51]Write to MH i2c: E2 08 00 2D DD 80 0D 01 02 00 00 00 00 83 [11:36:51]Write i2c OK [11:36:51]MH_I2C_Read... [11:36:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:51]Read from MH i2c: E2 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 03 00 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 03 00 2D DD 00 90 00 7E [11:36:51]RAPDU: 90 00 [11:36:51]wFMCommunicate OK [11:36:51]wFMCommunicate request_size=255 [11:36:51]MH_SAM_APDU [11:36: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 5E EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 87 02 00 35 04 06 00 D4 [11:36:51]Write to MH i2c: E2 02 01 2E DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 5E EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 87 02 00 35 04 06 00 D4 00 00 D6 [11:36:51]Write i2c OK [11:36:51]MH_I2C_Read... [11:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:51]Read from MH i2c: E2 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 03 00 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 03 00 2E DD 00 90 00 7F [11:36:51]RAPDU: 90 00 [11:36:51]wFMCommunicate OK [11:36:51]wFMCommunicate request_size=10 [11:36:51]MH_SAM_APDU [11:36:51]CAPDU: 80 0D 02 02 05 58 C6 52 74 C8 [11:36:51]Write to MH i2c: E2 0D 00 2F DD 80 0D 02 02 05 00 58 C6 52 74 C8 00 00 3C [11:36:51]Write i2c OK [11:36:51]MH_I2C_Read... [11:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:51]Read from MH i2c: E2 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 03 00 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 03 00 2F DD 00 90 00 80 [11:36:51]RAPDU: 90 00 [11:36:51]wFMCommunicate OK [11:36:51]wFMCommunicate request_size=4 [11:36:51]MH_SAM_APDU [11:36:51]CAPDU: 80 0D 03 02 [11:36:51]Write to MH i2c: E2 08 00 30 DD 80 0D 03 02 00 00 00 00 88 [11:36:51]Write i2c OK [11:36:51]MH_I2C_Read... [11:36:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:52]Read from MH i2c: E2 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 0B 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 0B 00 30 DD 00 68 CA 54 EE 1D C5 A8 44 90 00 CB [11:36:52]RAPDU: 68 CA 54 EE 1D C5 A8 44 90 00 [11:36:52]wFMCommunicate OK [11:36:52]SAM_PROTO_SignData done [11:36:52]FM_MakeSignedData done [11:36:52]CreateOFDProtocolMessage [11:36:52]wFMCommunicate request_size=4 [11:36:52]MH_SAM_APDU [11:36:52]CAPDU: 80 11 00 00 [11:36:52]Write to MH i2c: E2 08 00 31 DD 80 11 00 00 00 00 00 00 88 [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:52]Read from MH i2c: E2 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 17 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 17 00 31 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [11:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:36:52]wFMCommunicate OK [11:36:52]CreateOFDProtocolMessage done [11:36:52]OFDSenderStorePacket 165633 [11:36:52]StoreOFDPacket docnum=165633 [11:36:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9C 44 07 01 1A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 5E EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 87 02 00 35 04 06 00 D4 58 C6 52 74 C8 68 CA 54 EE 1D C5 A8 44 [11:36:52]CheckFolder [11:36:52]dirname=/storage/ofd_packets [11:36:52]CheckFolder done [11:36:52]ProducePacketName [11:36:52]name=ofd_packets/00165633 [11:36:52]NVStorageSaveData ofd_packets/00165633 [11:36:52]File name is /storage/ofd_packets/00165633 [11:36:52]Write 301 bytes [11:36:52]NVStorageSaveData done [11:36:52]OFDSenderStorePacket done [11:36:52]KKMCreateOFDPacket done [11:36:52]NVStorageSaveData kkm_last_timestamp [11:36:52]File name is /storage/kkm_last_timestamp [11:36:52]Write 4 bytes [11:36:52]NVStorageSaveData done [11:36:52]ExternCall_PrintAddStr [11:36:52]wPrintStart [11:36:52]Write to MH i2c: 01 00 00 32 DD 0F [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 07 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 07 00 32 DD 00 00 00 00 00 FF 0F 24 [11:36:52]RasterBufferAndPrint [11:36:52]line Счет N : (1)220196 [11:36:52]line ИНН: 02508201610067 [11:36:52]line Контрольно-Кассовый Чек [11:36:52]line ПРОДАЖА [11:36:52]line ТРК (МРК, ГНК) : 23 [11:36:52]line Товар: 2710124130 [11:36:52]line Аи-92-К-5 [11:36:52]line 10.470 * 66.90 [11:36:52]line = 700.44 [11:36:52]line НДС 12% НСП 1% [11:36:52]line > о реализуемом товаре [11:36:52]line ОКРУГЛЕНИЕ: -0.44 [11:36:52]line ИТОГО: 700.00 [11:36:52]line Внесено: 700.00 [11:36:52]line СДАЧА: 0.00 [11:36:52]line НСП 1% : 6.20 [11:36:52]line НДС 12% : 74.38 [11:36:52]line Наличными: 700.00 [11:36:52]line Безнал.: 0.00 [11:36:52]line Место: АЗС № 161 "Партнер Нефть" [11:36:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:36:52]line СНО: Общий режим [11:36:52]line Чек 115 20.10.2024 11:37 [11:36:52]line Смена: 534 ФФД: 1.0 [11:36:52]line ЗНМ: 0300000104 [11:36:52]line РНМ: 0000000000091764 [11:36:52]line Версия ККМ: 001 [11:36:52]line ФМ: 0000000000871759 [11:36:52]line ФД: 165633 [11:36:52]line ФПД: 233477749503176 [11:36:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113702&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165633&fm=233477749503176&tin=02508201610067®Number=0000000000091764&sum=70000 [11:36:52]OFD Sender: Processing packet 165633 [packets to send 48, broken 47] [11:36:52]ProducePacketName [11:36:52]name=ofd_packets/00165633 [11:36:52]OFD Sender: To server: pG, [11:36:52]CommunicateWithHost lk.salyk.kg:30040 [11:36:52]ConnectInit lk.salyk.kg [11:36:52]written 0, free lines is 4095 [11:36:52]Connected sock=10 [11:36:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9C 44 07 01 1A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 5E EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 87 02 00 35 04 06 00 D4 58 C6 52 74 C8 68 CA 54 EE 1D C5 A8 44 [11:36:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B8 1B 47 00 FC 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 31 37 35 39 10 04 04 00 01 87 02 00 F4 03 04 00 D0 91 14 67 B6 04 01 00 00 F5 5F 98 2A 88 4B D9 B5 [11:36:52]CommunicateWithHost err = 0 [11:36:52]CheckOFDResponse [11:36:52]1017 (14) - 77093643461234 [11:36:52]1041 (16) - 0000000000871759 [11:36:52]1040 (4) - 165633 [11:36:52]1012 (4) - 20.10.2024 05:14 [11:36:52]1206 (1) - 0 [11:36:52]OFD Sender: Remove packet 165633 [11:36:52]ProducePacketName [11:36:52]name=ofd_packets/00165633 [11:36:52]NVStorageDeleteData [11:36:52]Write to MH i2c: 01 00 00 5D DD 3A [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 07 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 07 00 5D DD 00 00 00 00 00 D3 0C 20 [11:36:52]RasterBufferAndPrint [11:36:52]line [11:36:52]line [11:36:52]line [11:36:52]line [11:36:52]line [11:36:52]written 0, free lines is 3298 [11:36:52]MH_Cut [11:36:52]Write to MH i2c: D1 01 00 64 DD 01 13 [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: D1 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: D1 01 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: D1 01 00 64 DD 00 12 [11:36:52]Write to MH i2c: 01 00 00 65 DD 42 [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]OFD Sender: No OFD packet to send [11:36:53]*** Cut start [11:36:53]*** Partial cut [11:36:53]*** CUTSNS_PIN = 1 [11:36:53]*** CUTSNS_PIN = 0 [11:36:53]*** Brake cut motor [11:36:53]Read from MH i2c: 01 [11:36:53]MH_I2C_Read... [11:36:53]*** Stop cut motor [11:36:53]*** Cut end [11:36:53]Read from MH i2c: 01 07 00 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: 01 07 00 65 DD 00 00 00 00 00 FF 0F 57 [11:36:53]process_action close_receipt done [11:36:53]requested_data is exist [11:36:53]produce_requested_data [11:36:53]requested_item fm.sn is exist - process it [11:36:53]wFMCommunicate request_size=4 [11:36:53]MH_SAM_APDU [11:36:53]CAPDU: 80 11 00 00 [11:36:53]Write to MH i2c: E2 08 00 66 DD 80 11 00 00 00 00 00 00 BD [11:36:53]Write i2c OK [11:36:53]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 17 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 17 00 66 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [11:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:36:54]wFMCommunicate OK [11:36:54]requested_item fd.num is exist - process it [11:36:54]SAM_PROTO_GetFieldsCounters [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 13 00 00 [11:36:54]Write to MH i2c: E2 08 00 67 DD 80 13 00 00 00 00 00 00 C0 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 62 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 62 00 67 DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [11:36:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:54]wFMCommunicate OK [11:36:54]SAM_PROTO_GetFieldsCounters done [11:36:54]requested_item shift.num is exist - process it [11:36:54]requested_item shift.opened is exist - process it [11:36:54]req_shift_opened [11:36:54]FM_GetShiftState [11:36:54]SAM_PROTO_GetShiftState [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 13 01 00 [11:36:54]Write to MH i2c: E2 08 00 68 DD 80 13 01 00 00 00 00 00 C2 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 0E 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 0E 00 68 DD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0A [11:36:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:36:54]wFMCommunicate OK [11:36:54]SAM_PROTO_GetShiftState done [11:36:54]FM_GetShiftState done [11:36:54]req_shift_opened done [11:36:54]requested_item shift.open_date is exist - process it [11:36:54]req_shift_open_date [11:36:54]req_shift_open_date done [11:36:54]produce_requested_data done [11:36:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165633,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:36:54]process_action_free close_receipt [11:36:54]json_value_free [11:36:54]json_value_free done [11:36:54]process_json_proto returns [11:36:54]Send response to host [11:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165633,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:36:54]free response buf [11:36:54]execute_script done [11:36:54]execute_script returns [11:36:54]free content buf [11:36:54]Sock 9.Close socket [11:36:54]Sock 9.Thread stoped [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:38]accept exits with 7 [11:37:38]New connection [11:37:38]New thread 3066776932 created [11:37:38]Thread 3066920292 joined [11:37:38]Waiting for new connection... [11:37:38] Sock 7.Parse request [11:37:38]Sock 7.Check first char [11:37:38]Sock 7.First char is OK [11:37:38]request: POST /json_proto HTTP/1.0 [11:37:38]Method: POST [11:37:38]URL: /json_proto [11:37:38]Method is POST - this is cgi request [11:37:38]url: /json_proto [11:37:38]query_string will be loaded in cgi processing [11:37:38]execute_cgi json_proto POST (null) [11:37:38]execute_cgi path=json_proto method=POST [11:37:38]POST find Content-Length [11:37:38]Host: 172.17.53.195:8080 [11:37:38]Content-Length: 676 [11:37:38]Content-Type: application/json [11:37:38] [11:37:38]POST finish read [11:37:38]Found Content-Length = 676 [11:37:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220197", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:38]execute_script... [11:37: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)220197", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:38]POST & json_proto [11:37:38]process_json_proto [11:37:38]json parsed OK: [11:37:38]protocol is kg_v1.0 [11:37:38]action value=close_receipt [11:37:38]process_action close_receipt [11:37:38]cmd_close_receipt [11:37:38]MH_GetDate [11:37:38]Write to MH i2c: F0 00 00 69 DD 35 [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: F0 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: F0 09 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: F0 09 00 69 DD 00 8E EB 14 67 21 48 4A 65 4A [11:37:38]GetLastDocTimeStamp 1729424222 [11:37:38]current date 1729424270 [11:37:38]FM_GetShiftState [11:37:38]SAM_PROTO_GetShiftState [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 13 01 00 [11:37:38]Write to MH i2c: E2 08 00 6A DD 80 13 01 00 00 00 00 00 C4 [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 0E 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 0E 00 6A DD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0C [11:37:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:37:38]wFMCommunicate OK [11:37:38]SAM_PROTO_GetShiftState done [11:37:38]FM_GetShiftState done [11:37:38]opened in 1729384561 [11:37:38]opened+sec_in_day 1729470961 [11:37:38]quantity*price = 99974 [11:37:38]sum+1 = 99975 [11:37:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 116 20.10.2024 11:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165634 ФПД: 167972670361813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113750&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165634&fm=167972670361813&tin=02508201610067®Number=0000000000091764&sum=99900 [11:37:39]StoreToDocumentArchive [11:37:39]shift 534 fd 165634 [11:37:39]save to /storage/0534/doc_00165634 [11:37:39]save last doc name /storage/0534/doc_00165634 to /storage/kkm_last_doc_name [11:37:39]save OK [11:37:39]Clear old archive folders... [11:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:37:39]tlvbuf is 01710F60 [11:37:39]SAM_PROTO_ClearQueue [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 09 00 00 [11:37:39]Write to MH i2c: E2 08 00 77 DD 80 09 00 00 00 00 00 00 C6 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 77 DD 00 90 00 C8 [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]SAM_PROTO_ClearQueue done [11:37:39]KKMCreateOFDPacket [11:37:39]OFDProtocolAddRootSTLVToBuf [11:37:39]FM_MakeSignedData [11:37:39]FM_MakeSignedData [11:37:39]SAM_PROTO_SignData [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 0D 01 02 [11:37:39]Write to MH i2c: E2 08 00 78 DD 80 0D 01 02 00 00 00 00 CE [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 78 DD 00 90 00 C9 [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]wFMCommunicate request_size=255 [11:37:39]MH_SAM_APDU [11:37: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 74 00 00 00 F4 03 04 00 8E EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 87 02 00 35 04 06 00 98 C5 2F 59 [11:37:39]Write to MH i2c: E2 02 01 79 DD 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 74 00 00 00 F4 03 04 00 8E EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 87 02 00 35 04 06 00 98 C5 2F 59 00 00 23 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 03 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 03 00 79 DD 00 90 00 CA [11:37:40]RAPDU: 90 00 [11:37:40]wFMCommunicate OK [11:37:40]wFMCommunicate request_size=7 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 0D 02 02 02 50 D5 [11:37:40]Write to MH i2c: E2 0A 00 7A DD 80 0D 02 02 02 00 50 D5 00 00 FA [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 03 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 03 00 7A DD 00 90 00 CB [11:37:40]RAPDU: 90 00 [11:37:40]wFMCommunicate OK [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 0D 03 02 [11:37:40]Write to MH i2c: E2 08 00 7B DD 80 0D 03 02 00 00 00 00 D3 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0B 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0B 00 7B DD 00 74 1C 67 D4 1C B4 57 2B 90 00 F1 [11:37:40]RAPDU: 74 1C 67 D4 1C B4 57 2B 90 00 [11:37:40]wFMCommunicate OK [11:37:40]SAM_PROTO_SignData done [11:37:40]FM_MakeSignedData done [11:37:40]CreateOFDProtocolMessage [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 11 00 00 [11:37:40]Write to MH i2c: E2 08 00 7C DD 80 11 00 00 00 00 00 00 D3 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 17 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 17 00 7C DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [11:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:37:40]wFMCommunicate OK [11:37:40]CreateOFDProtocolMessage done [11:37:40]OFDSenderStorePacket 165634 [11:37:40]StoreOFDPacket docnum=165634 [11:37:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 07 1F 04 01 D0 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 74 00 00 00 F4 03 04 00 8E EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 87 02 00 35 04 06 00 98 C5 2F 59 50 D5 74 1C 67 D4 1C B4 57 2B [11:37:40]CheckFolder [11:37:40]dirname=/storage/ofd_packets [11:37:40]CheckFolder done [11:37:40]ProducePacketName [11:37:40]name=ofd_packets/00165634 [11:37:40]NVStorageSaveData ofd_packets/00165634 [11:37:40]File name is /storage/ofd_packets/00165634 [11:37:40]Write 298 bytes [11:37:40]NVStorageSaveData done [11:37:40]OFDSenderStorePacket done [11:37:40]KKMCreateOFDPacket done [11:37:40]NVStorageSaveData kkm_last_timestamp [11:37:40]File name is /storage/kkm_last_timestamp [11:37:40]Write 4 bytes [11:37:40]NVStorageSaveData done [11:37:40]ExternCall_PrintAddStr [11:37:40]wPrintStart [11:37:40]Write to MH i2c: 01 00 00 7D DD 5A [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 07 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 07 00 7D DD 00 00 00 00 00 FF 0F 6F [11:37:40]RasterBufferAndPrint [11:37:40]line Счет N : (1)220197 [11:37:40]line ИНН: 02508201610067 [11:37:40]line Контрольно-Кассовый Чек [11:37:40]line ПРОДАЖА [11:37:40]line ТРК (МРК, ГНК) : 11 [11:37:40]line Товар: 2710194210 [11:37:40]line ДТ-К-5 [11:37:40]line 13.120 * 76.20 [11:37:40]line = 999.74 [11:37:40]line НДС 12% НСП 1% [11:37:40]line > о реализуемом товаре [11:37:40]line ОКРУГЛЕНИЕ: -0.74 [11:37:40]line ИТОГО: 999.00 [11:37:40]line Внесено: 1000.00 [11:37:40]line СДАЧА: 1.00 [11:37:40]line НСП 1% : 8.85 [11:37:40]line НДС 12% : 106.17 [11:37:40]line Наличными: 999.00 [11:37:40]line Безнал.: 0.00 [11:37:40]line Место: АЗС № 161 "Партнер Нефть" [11:37:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:37:40]line СНО: Общий режим [11:37:40]line Чек 116 20.10.2024 11:37 [11:37:40]line Смена: 534 ФФД: 1.0 [11:37:40]line ЗНМ: 0300000104 [11:37:40]line РНМ: 0000000000091764 [11:37:40]line Версия ККМ: 001 [11:37:40]line ФМ: 0000000000871759 [11:37:40]line ФД: 165634 [11:37:40]line ФПД: 167972670361813 [11:37:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113750&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165634&fm=167972670361813&tin=02508201610067®Number=0000000000091764&sum=99900 [11:37:40]OFD Sender: Processing packet 165634 [packets to send 48, broken 47] [11:37:40]ProducePacketName [11:37:40]name=ofd_packets/00165634 [11:37:40]OFD Sender: To server: pG, [11:37:40]CommunicateWithHost lk.salyk.kg:30040 [11:37:40]ConnectInit lk.salyk.kg [11:37:40]written 0, free lines is 4095 [11:37:40]Connected sock=10 [11:37:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 07 1F 04 01 D0 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 74 00 00 00 F4 03 04 00 8E EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 87 02 00 35 04 06 00 98 C5 2F 59 50 D5 74 1C 67 D4 1C B4 57 2B [11:37:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F4 54 47 00 40 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 87 02 00 F4 03 04 00 00 92 14 67 B6 04 01 00 00 C7 81 C5 98 0B 2B A8 A5 [11:37:40]CommunicateWithHost err = 0 [11:37:40]CheckOFDResponse [11:37:40]1017 (14) - 77093643461234 [11:37:40]1041 (16) - 0000000000871759 [11:37:40]1040 (4) - 165634 [11:37:40]1012 (4) - 20.10.2024 05:15 [11:37:40]1206 (1) - 0 [11:37:40]OFD Sender: Remove packet 165634 [11:37:40]ProducePacketName [11:37:40]name=ofd_packets/00165634 [11:37:40]NVStorageDeleteData [11:37:40]Write to MH i2c: 01 00 00 A8 DD 85 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 07 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 07 00 A8 DD 00 00 00 00 00 D3 0C 6B [11:37:40]RasterBufferAndPrint [11:37:40]line [11:37:40]line [11:37:40]line [11:37:40]line [11:37:40]line [11:37:40]written 0, free lines is 3289 [11:37:40]MH_Cut [11:37:40]Write to MH i2c: D1 01 00 AF DD 01 5E [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: D1 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: D1 01 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: D1 01 00 AF DD 00 5D [11:37:41]Write to MH i2c: 01 00 00 B0 DD 8D [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]OFD Sender: No OFD packet to send [11:37:41]*** Cut start [11:37:41]*** Partial cut [11:37:41]*** CUTSNS_PIN = 1 [11:37:41]*** CUTSNS_PIN = 0 [11:37:42]*** Brake cut motor [11:37:42]Read from MH i2c: 01 [11:37:42]MH_I2C_Read... [11:37:42]*** Stop cut motor [11:37:42]*** Cut end [11:37:42]Read from MH i2c: 01 07 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 B0 DD 00 00 00 00 00 FF 0F A2 [11:37:42]process_action close_receipt done [11:37:42]requested_data is exist [11:37:42]produce_requested_data [11:37:42]requested_item fm.sn is exist - process it [11:37:42]wFMCommunicate request_size=4 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 11 00 00 [11:37:42]Write to MH i2c: E2 08 00 B1 DD 80 11 00 00 00 00 00 00 08 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 17 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 17 00 B1 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [11:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:37:42]wFMCommunicate OK [11:37:42]requested_item fd.num is exist - process it [11:37:42]SAM_PROTO_GetFieldsCounters [11:37:42]wFMCommunicate request_size=4 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 13 00 00 [11:37:42]Write to MH i2c: E2 08 00 B2 DD 80 13 00 00 00 00 00 00 0B [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 62 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 62 00 B2 DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [11:37: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:42]wFMCommunicate OK [11:37:42]SAM_PROTO_GetFieldsCounters done [11:37:42]requested_item shift.num is exist - process it [11:37:42]requested_item shift.opened is exist - process it [11:37:42]req_shift_opened [11:37:42]FM_GetShiftState [11:37:42]SAM_PROTO_GetShiftState [11:37:42]wFMCommunicate request_size=4 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 13 01 00 [11:37:42]Write to MH i2c: E2 08 00 B3 DD 80 13 01 00 00 00 00 00 0D [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 0E 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 0E 00 B3 DD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 55 [11:37:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:37:42]wFMCommunicate OK [11:37:42]SAM_PROTO_GetShiftState done [11:37:42]FM_GetShiftState done [11:37:42]req_shift_opened done [11:37:42]requested_item shift.open_date is exist - process it [11:37:42]req_shift_open_date [11:37:42]req_shift_open_date done [11:37:42]produce_requested_data done [11:37:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165634,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:37:42]process_action_free close_receipt [11:37:42]json_value_free [11:37:42]json_value_free done [11:37:42]process_json_proto returns [11:37:42]Send response to host [11:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165634,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:37:42]free response buf [11:37:42]execute_script done [11:37:42]execute_script returns [11:37:42]free content buf [11:37:42]Sock 7.Close socket [11:37:42]Sock 7.Thread stoped [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:08]accept exits with 9 [11:39:08]New connection [11:39:08]New thread 3066920292 created [11:39:08]Thread 3066776932 joined [11:39:08]Waiting for new connection... [11:39:08] Sock 9.Parse request [11:39:08]Sock 9.Check first char [11:39:08]Sock 9.First char is OK [11:39:08]request: POST /json_proto HTTP/1.0 [11:39:08]Method: POST [11:39:08]URL: /json_proto [11:39:08]Method is POST - this is cgi request [11:39:08]url: /json_proto [11:39:08]query_string will be loaded in cgi processing [11:39:08]execute_cgi json_proto POST (null) [11:39:08]execute_cgi path=json_proto method=POST [11:39:08]POST find Content-Length [11:39:08]Host: 172.17.53.195:8080 [11:39:08]Content-Length: 677 [11:39:08]Content-Type: application/json [11:39:08] [11:39:08]POST finish read [11:39:08]Found Content-Length = 677 [11:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:08]execute_script... [11:39: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)220198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:08]POST & json_proto [11:39:08]process_json_proto [11:39:08]json parsed OK: [11:39:08]protocol is kg_v1.0 [11:39:08]action value=close_receipt [11:39:08]process_action close_receipt [11:39:08]cmd_close_receipt [11:39:08]MH_GetDate [11:39:08]Write to MH i2c: F0 00 00 B4 DD 80 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 09 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 09 00 B4 DD 00 E9 EB 14 67 21 48 4A 65 F0 [11:39:08]GetLastDocTimeStamp 1729424270 [11:39:08]current date 1729424361 [11:39:08]FM_GetShiftState [11:39:08]SAM_PROTO_GetShiftState [11:39:08]wFMCommunicate request_size=4 [11:39:08]MH_SAM_APDU [11:39:08]CAPDU: 80 13 01 00 [11:39:08]Write to MH i2c: E2 08 00 B5 DD 80 13 01 00 00 00 00 00 0F [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0E 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0E 00 B5 DD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 57 [11:39:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:39:09]wFMCommunicate OK [11:39:09]SAM_PROTO_GetShiftState done [11:39:09]FM_GetShiftState done [11:39:09]opened in 1729384561 [11:39:09]opened+sec_in_day 1729470961 [11:39:09]quantity*price = 50010 [11:39:09]sum+1 = 50012 [11:39:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 117 20.10.2024 11:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165635 ФПД: 162746903369427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113921&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165635&fm=162746903369427&tin=02508201610067®Number=0000000000091764&sum=50000 [11:39:10]StoreToDocumentArchive [11:39:10]shift 534 fd 165635 [11:39:10]save to /storage/0534/doc_00165635 [11:39:10]save last doc name /storage/0534/doc_00165635 to /storage/kkm_last_doc_name [11:39:10]save OK [11:39:10]Clear old archive folders... [11:39:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:10]tlvbuf is 0169F740 [11:39:10]SAM_PROTO_ClearQueue [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 09 00 00 [11:39:10]Write to MH i2c: E2 08 00 C2 DD 80 09 00 00 00 00 00 00 11 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 C2 DD 00 90 00 13 [11:39:10]RAPDU: 90 00 [11:39:10]wFMCommunicate OK [11:39:10]SAM_PROTO_ClearQueue done [11:39:10]KKMCreateOFDPacket [11:39:10]OFDProtocolAddRootSTLVToBuf [11:39:10]FM_MakeSignedData [11:39:10]FM_MakeSignedData [11:39:10]SAM_PROTO_SignData [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 0D 01 02 [11:39:10]Write to MH i2c: E2 08 00 C3 DD 80 0D 01 02 00 00 00 00 19 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 C3 DD 00 90 00 14 [11:39:10]RAPDU: 90 00 [11:39:10]wFMCommunicate OK [11:39:10]wFMCommunicate request_size=255 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 87 02 00 35 04 06 00 94 [11:39:10]Write to MH i2c: E2 02 01 C4 DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 87 02 00 35 04 06 00 94 00 00 83 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 C4 DD 00 90 00 15 [11:39:10]RAPDU: 90 00 [11:39:10]wFMCommunicate OK [11:39:10]wFMCommunicate request_size=10 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 0D 02 02 05 04 77 5D 16 D3 [11:39:10]Write to MH i2c: E2 0D 00 C5 DD 80 0D 02 02 05 00 04 77 5D 16 D3 00 00 E7 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 C5 DD 00 90 00 16 [11:39:10]RAPDU: 90 00 [11:39:10]wFMCommunicate OK [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 0D 03 02 [11:39:10]Write to MH i2c: E2 08 00 C6 DD 80 0D 03 02 00 00 00 00 1E [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 0B 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 0B 00 C6 DD 00 12 12 F0 F7 9B D9 F0 BB 90 00 49 [11:39:10]RAPDU: 12 12 F0 F7 9B D9 F0 BB 90 00 [11:39:10]wFMCommunicate OK [11:39:10]SAM_PROTO_SignData done [11:39:10]FM_MakeSignedData done [11:39:10]CreateOFDProtocolMessage [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 11 00 00 [11:39:10]Write to MH i2c: E2 08 00 C7 DD 80 11 00 00 00 00 00 00 1E [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 17 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 17 00 C7 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [11:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:39:10]wFMCommunicate OK [11:39:10]CreateOFDProtocolMessage done [11:39:10]OFDSenderStorePacket 165635 [11:39:10]StoreOFDPacket docnum=165635 [11:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2C 80 07 01 43 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 87 02 00 35 04 06 00 94 04 77 5D 16 D3 12 12 F0 F7 9B D9 F0 BB [11:39:10]CheckFolder [11:39:10]dirname=/storage/ofd_packets [11:39:10]CheckFolder done [11:39:10]ProducePacketName [11:39:10]name=ofd_packets/00165635 [11:39:10]NVStorageSaveData ofd_packets/00165635 [11:39:10]File name is /storage/ofd_packets/00165635 [11:39:10]Write 301 bytes [11:39:10]NVStorageSaveData done [11:39:10]OFDSenderStorePacket done [11:39:10]KKMCreateOFDPacket done [11:39:10]NVStorageSaveData kkm_last_timestamp [11:39:10]File name is /storage/kkm_last_timestamp [11:39:10]Write 4 bytes [11:39:10]NVStorageSaveData done [11:39:10]ExternCall_PrintAddStr [11:39:10]wPrintStart [11:39:10]Write to MH i2c: 01 00 00 C8 DD A5 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 C8 DD 00 00 00 00 00 FF 0F BA [11:39:10]RasterBufferAndPrint [11:39:10]line Счет N : (1)220198 [11:39:10]line ИНН: 02508201610067 [11:39:10]line Контрольно-Кассовый Чек [11:39:10]line ПРОДАЖА [11:39:10]line ТРК (МРК, ГНК) : 34 [11:39:10]line Товар: 2710124500 [11:39:10]line Аи-95-К-5 [11:39:10]line 6.740 * 74.20 [11:39:10]line = 500.11 [11:39:10]line НДС 12% НСП 1% [11:39:10]line > о реализуемом товаре [11:39:10]line ОКРУГЛЕНИЕ: -0.11 [11:39:10]line ИТОГО: 500.00 [11:39:10]line Внесено: 500.00 [11:39:10]line СДАЧА: 0.00 [11:39:10]line НСП 1% : 4.43 [11:39:10]line НДС 12% : 53.11 [11:39:10]line Наличными: 500.00 [11:39:10]line Безнал.: 0.00 [11:39:10]line Место: АЗС № 161 "Партнер Нефть" [11:39:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:39:10]line СНО: Общий режим [11:39:10]line Чек 117 20.10.2024 11:39 [11:39:10]line Смена: 534 ФФД: 1.0 [11:39:10]line ЗНМ: 0300000104 [11:39:10]line РНМ: 0000000000091764 [11:39:10]line Версия ККМ: 001 [11:39:10]line ФМ: 0000000000871759 [11:39:10]line ФД: 165635 [11:39:10]line ФПД: 162746903369427 [11:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113921&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165635&fm=162746903369427&tin=02508201610067®Number=0000000000091764&sum=50000 [11:39:11]OFD Sender: Processing packet 165635 [packets to send 48, broken 47] [11:39:11]ProducePacketName [11:39:11]name=ofd_packets/00165635 [11:39:11]OFD Sender: To server: pG, [11:39:11]CommunicateWithHost lk.salyk.kg:30040 [11:39:11]ConnectInit lk.salyk.kg [11:39:11]written 0, free lines is 4095 [11:39:11]Connected sock=10 [11:39:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2C 80 07 01 43 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 EB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 87 02 00 35 04 06 00 94 04 77 5D 16 D3 12 12 F0 F7 9B D9 F0 BB [11:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 8E 47 00 2F 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 31 37 35 39 10 04 04 00 03 87 02 00 F4 03 04 00 5B 92 14 67 B6 04 01 00 00 34 95 A4 E0 72 2F A1 C7 [11:39:11]CommunicateWithHost err = 0 [11:39:11]CheckOFDResponse [11:39:11]1017 (14) - 77093643461234 [11:39:11]1041 (16) - 0000000000871759 [11:39:11]1040 (4) - 165635 [11:39:11]1012 (4) - 20.10.2024 05:17 [11:39:11]1206 (1) - 0 [11:39:11]OFD Sender: Remove packet 165635 [11:39:11]ProducePacketName [11:39:11]name=ofd_packets/00165635 [11:39:11]NVStorageDeleteData [11:39:11]Write to MH i2c: 01 00 00 F3 DD D0 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 07 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 07 00 F3 DD 00 00 00 00 00 CB 0C AE [11:39:11]RasterBufferAndPrint [11:39:11]line [11:39:11]line [11:39:11]line [11:39:11]line [11:39:11]line [11:39:11]written 0, free lines is 3281 [11:39:11]MH_Cut [11:39:11]Write to MH i2c: D1 01 00 FA DD 01 A9 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: D1 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: D1 01 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: D1 01 00 FA DD 00 A8 [11:39:11]Write to MH i2c: 01 00 00 FB DD D8 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]OFD Sender: No OFD packet to send [11:39:12]*** Cut start [11:39:12]*** Partial cut [11:39:12]*** CUTSNS_PIN = 1 [11:39:12]*** CUTSNS_PIN = 0 [11:39:12]*** Brake cut motor [11:39:12]Read from MH i2c: 01 [11:39:12]MH_I2C_Read... [11:39:12]*** Stop cut motor [11:39:12]*** Cut end [11:39:12]Read from MH i2c: 01 07 00 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: 01 07 00 FB DD 00 00 00 00 00 FF 0F ED [11:39:12]process_action close_receipt done [11:39:12]requested_data is exist [11:39:12]produce_requested_data [11:39:12]requested_item fm.sn is exist - process it [11:39:12]wFMCommunicate request_size=4 [11:39:12]MH_SAM_APDU [11:39:12]CAPDU: 80 11 00 00 [11:39:12]Write to MH i2c: E2 08 00 FC DD 80 11 00 00 00 00 00 00 53 [11:39:12]Write i2c OK [11:39:12]MH_I2C_Read... [11:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:12]Read from MH i2c: E2 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: E2 17 00 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: E2 17 00 FC DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [11:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:39:12]wFMCommunicate OK [11:39:12]requested_item fd.num is exist - process it [11:39:12]SAM_PROTO_GetFieldsCounters [11:39:12]wFMCommunicate request_size=4 [11:39:12]MH_SAM_APDU [11:39:12]CAPDU: 80 13 00 00 [11:39:12]Write to MH i2c: E2 08 00 FD DD 80 13 00 00 00 00 00 00 56 [11:39:12]Write i2c OK [11:39:12]MH_I2C_Read... [11:39:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:13]Read from MH i2c: E2 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 62 00 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 62 00 FD DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [11:39:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:13]wFMCommunicate OK [11:39:13]SAM_PROTO_GetFieldsCounters done [11:39:13]requested_item shift.num is exist - process it [11:39:13]requested_item shift.opened is exist - process it [11:39:13]req_shift_opened [11:39:13]FM_GetShiftState [11:39:13]SAM_PROTO_GetShiftState [11:39:13]wFMCommunicate request_size=4 [11:39:13]MH_SAM_APDU [11:39:13]CAPDU: 80 13 01 00 [11:39:13]Write to MH i2c: E2 08 00 FE DD 80 13 01 00 00 00 00 00 58 [11:39:13]Write i2c OK [11:39:13]MH_I2C_Read... [11:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:13]Read from MH i2c: E2 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 0E 00 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 0E 00 FE DD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A0 [11:39:13]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:39:13]wFMCommunicate OK [11:39:13]SAM_PROTO_GetShiftState done [11:39:13]FM_GetShiftState done [11:39:13]req_shift_opened done [11:39:13]requested_item shift.open_date is exist - process it [11:39:13]req_shift_open_date [11:39:13]req_shift_open_date done [11:39:13]produce_requested_data done [11:39:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165635,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:39:13]process_action_free close_receipt [11:39:13]json_value_free [11:39:13]json_value_free done [11:39:13]process_json_proto returns [11:39:13]Send response to host [11:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165635,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:39:13]free response buf [11:39:13]execute_script done [11:39:13]execute_script returns [11:39:13]free content buf [11:39:13]Sock 9.Close socket [11:39:13]Sock 9.Thread stoped [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:05]accept exits with 7 [11:43:05]New connection [11:43:05]New thread 3066776932 created [11:43:05]Thread 3066920292 joined [11:43:05]Waiting for new connection... [11:43:05] Sock 7.Parse request [11:43:05]Sock 7.Check first char [11:43:05]Sock 7.First char is OK [11:43:05]request: POST /json_proto HTTP/1.0 [11:43:05]Method: POST [11:43:05]URL: /json_proto [11:43:05]Method is POST - this is cgi request [11:43:05]url: /json_proto [11:43:05]query_string will be loaded in cgi processing [11:43:05]execute_cgi json_proto POST (null) [11:43:05]execute_cgi path=json_proto method=POST [11:43:05]POST find Content-Length [11:43:05]Host: 172.17.53.195:8080 [11:43:05]Content-Length: 677 [11:43:05]Content-Type: application/json [11:43:05] [11:43:05]POST finish read [11:43:05]Found Content-Length = 677 [11:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:05]execute_script... [11:43: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)220199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:05]POST & json_proto [11:43:05]process_json_proto [11:43:05]json parsed OK: [11:43:05]protocol is kg_v1.0 [11:43:05]action value=close_receipt [11:43:05]process_action close_receipt [11:43:05]cmd_close_receipt [11:43:05]MH_GetDate [11:43:05]Write to MH i2c: F0 00 00 FF DD CB [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: F0 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: F0 09 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: F0 09 00 FF DD 00 D5 EC 14 67 21 48 4A 65 28 [11:43:05]GetLastDocTimeStamp 1729424361 [11:43:05]current date 1729424597 [11:43:05]FM_GetShiftState [11:43:05]SAM_PROTO_GetShiftState [11:43:05]wFMCommunicate request_size=4 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 13 01 00 [11:43:05]Write to MH i2c: E2 08 00 00 DE 80 13 01 00 00 00 00 00 5B [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 0E 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 0E 00 00 DE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A3 [11:43:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:43:05]wFMCommunicate OK [11:43:05]SAM_PROTO_GetShiftState done [11:43:05]FM_GetShiftState done [11:43:05]opened in 1729384561 [11:43:05]opened+sec_in_day 1729470961 [11:43:05]quantity*price = 60027 [11:43:05]sum+1 = 60029 [11:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 118 20.10.2024 11:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165636 ФПД: 8485428539329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114317&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165636&fm=8485428539329&tin=02508201610067®Number=0000000000091764&sum=60000 [11:43:06]StoreToDocumentArchive [11:43:06]shift 534 fd 165636 [11:43:06]save to /storage/0534/doc_00165636 [11:43:06]save last doc name /storage/0534/doc_00165636 to /storage/kkm_last_doc_name [11:43:06]save OK [11:43:06]Clear old archive folders... [11:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:06]tlvbuf is 016C6FE0 [11:43:06]SAM_PROTO_ClearQueue [11:43:06]wFMCommunicate request_size=4 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 09 00 00 [11:43:06]Write to MH i2c: E2 08 00 0D DE 80 09 00 00 00 00 00 00 5D [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 0D DE 00 90 00 5F [11:43:06]RAPDU: 90 00 [11:43:06]wFMCommunicate OK [11:43:06]SAM_PROTO_ClearQueue done [11:43:06]KKMCreateOFDPacket [11:43:06]OFDProtocolAddRootSTLVToBuf [11:43:06]FM_MakeSignedData [11:43:06]FM_MakeSignedData [11:43:06]SAM_PROTO_SignData [11:43:06]wFMCommunicate request_size=4 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 0D 01 02 [11:43:06]Write to MH i2c: E2 08 00 0E DE 80 0D 01 02 00 00 00 00 65 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 0E DE 00 90 00 60 [11:43:06]RAPDU: 90 00 [11:43:06]wFMCommunicate OK [11:43:06]wFMCommunicate request_size=255 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 D5 EC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 87 02 00 35 04 06 00 07 [11:43:06]Write to MH i2c: E2 02 01 0F DE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 D5 EC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 87 02 00 35 04 06 00 07 00 00 B7 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:07]OFD Sender: No OFD packet to send [11:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 0F DE 00 90 00 61 [11:43:07]RAPDU: 90 00 [11:43:07]wFMCommunicate OK [11:43:07]wFMCommunicate request_size=10 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 0D 02 02 05 B7 AA F4 2F C1 [11:43:07]Write to MH i2c: E2 0D 00 10 DE 80 0D 02 02 05 00 B7 AA F4 2F C1 00 00 B7 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 10 DE 00 90 00 62 [11:43:07]RAPDU: 90 00 [11:43:07]wFMCommunicate OK [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 0D 03 02 [11:43:07]Write to MH i2c: E2 08 00 11 DE 80 0D 03 02 00 00 00 00 6A [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 0B 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 0B 00 11 DE 00 95 44 D1 55 B5 1B DA 88 90 00 9C [11:43:07]RAPDU: 95 44 D1 55 B5 1B DA 88 90 00 [11:43:07]wFMCommunicate OK [11:43:07]SAM_PROTO_SignData done [11:43:07]FM_MakeSignedData done [11:43:07]CreateOFDProtocolMessage [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 11 00 00 [11:43:07]Write to MH i2c: E2 08 00 12 DE 80 11 00 00 00 00 00 00 6A [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 17 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 17 00 12 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [11:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:43:07]wFMCommunicate OK [11:43:07]CreateOFDProtocolMessage done [11:43:07]OFDSenderStorePacket 165636 [11:43:07]StoreOFDPacket docnum=165636 [11:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 43 07 01 8E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 D5 EC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 87 02 00 35 04 06 00 07 B7 AA F4 2F C1 95 44 D1 55 B5 1B DA 88 [11:43:07]CheckFolder [11:43:07]dirname=/storage/ofd_packets [11:43:07]CheckFolder done [11:43:07]ProducePacketName [11:43:07]name=ofd_packets/00165636 [11:43:07]NVStorageSaveData ofd_packets/00165636 [11:43:07]File name is /storage/ofd_packets/00165636 [11:43:07]Write 301 bytes [11:43:07]NVStorageSaveData done [11:43:07]OFDSenderStorePacket done [11:43:07]KKMCreateOFDPacket done [11:43:07]NVStorageSaveData kkm_last_timestamp [11:43:07]File name is /storage/kkm_last_timestamp [11:43:07]Write 4 bytes [11:43:07]NVStorageSaveData done [11:43:07]ExternCall_PrintAddStr [11:43:07]wPrintStart [11:43:07]Write to MH i2c: 01 00 00 13 DE F1 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 07 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 07 00 13 DE 00 00 00 00 00 FF 0F 06 [11:43:07]RasterBufferAndPrint [11:43:07]line Счет N : (1)220199 [11:43:07]line ИНН: 02508201610067 [11:43:07]line Контрольно-Кассовый Чек [11:43:07]line ПРОДАЖА [11:43:07]line ТРК (МРК, ГНК) : 34 [11:43:07]line Товар: 2710124500 [11:43:07]line Аи-95-К-5 [11:43:07]line 8.090 * 74.20 [11:43:07]line = 600.28 [11:43:07]line НДС 12% НСП 1% [11:43:07]line > о реализуемом товаре [11:43:07]line ОКРУГЛЕНИЕ: -0.28 [11:43:07]line ИТОГО: 600.00 [11:43:07]line Внесено: 600.00 [11:43:07]line СДАЧА: 0.00 [11:43:07]line НСП 1% : 5.31 [11:43:07]line НДС 12% : 63.75 [11:43:07]line Наличными: 600.00 [11:43:07]line Безнал.: 0.00 [11:43:07]line Место: АЗС № 161 "Партнер Нефть" [11:43:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:43:07]line СНО: Общий режим [11:43:07]line Чек 118 20.10.2024 11:43 [11:43:07]line Смена: 534 ФФД: 1.0 [11:43:07]line ЗНМ: 0300000104 [11:43:07]line РНМ: 0000000000091764 [11:43:07]line Версия ККМ: 001 [11:43:07]line ФМ: 0000000000871759 [11:43:07]line ФД: 165636 [11:43:07]line ФПД: 8485428539329 [11:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114317&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165636&fm=8485428539329&tin=02508201610067®Number=0000000000091764&sum=60000 [11:43:07]OFD Sender: Processing packet 165636 [packets to send 48, broken 47] [11:43:07]ProducePacketName [11:43:07]name=ofd_packets/00165636 [11:43:07]OFD Sender: To server: pG, [11:43:07]CommunicateWithHost lk.salyk.kg:30040 [11:43:07]ConnectInit lk.salyk.kg [11:43:07]written 0, free lines is 4095 [11:43:07]Connected sock=10 [11:43:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 43 07 01 8E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 D5 EC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 87 02 00 35 04 06 00 07 B7 AA F4 2F C1 95 44 D1 55 B5 1B DA 88 [11:43:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9C 27 47 00 C8 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 31 37 35 39 10 04 04 00 04 87 02 00 F4 03 04 00 47 93 14 67 B6 04 01 00 00 38 DD EE 5E EC 75 BF 19 [11:43:07]CommunicateWithHost err = 0 [11:43:07]CheckOFDResponse [11:43:07]1017 (14) - 77093643461234 [11:43:07]1041 (16) - 0000000000871759 [11:43:07]1040 (4) - 165636 [11:43:07]1012 (4) - 20.10.2024 05:21 [11:43:07]1206 (1) - 0 [11:43:07]OFD Sender: Remove packet 165636 [11:43:07]ProducePacketName [11:43:07]name=ofd_packets/00165636 [11:43:07]NVStorageDeleteData [11:43:08]Write to MH i2c: 01 00 00 3E DE 1C [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 3E DE 00 00 00 00 00 E6 0C 15 [11:43:08]RasterBufferAndPrint [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]written 0, free lines is 3308 [11:43:08]MH_Cut [11:43:08]Write to MH i2c: D1 01 00 45 DE 01 F5 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 01 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 01 00 45 DE 00 F4 [11:43:08]Write to MH i2c: 01 00 00 46 DE 24 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]OFD Sender: No OFD packet to send [11:43:08]*** Cut start [11:43:08]*** Partial cut [11:43:08]*** CUTSNS_PIN = 1 [11:43:08]*** CUTSNS_PIN = 0 [11:43:09]*** Brake cut motor [11:43:09]Read from MH i2c: 01 [11:43:09]MH_I2C_Read... [11:43:09]*** Stop cut motor [11:43:09]*** Cut end [11:43:09]Read from MH i2c: 01 07 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 07 00 46 DE 00 00 00 00 00 FF 0F 39 [11:43:09]process_action close_receipt done [11:43:09]requested_data is exist [11:43:09]produce_requested_data [11:43:09]requested_item fm.sn is exist - process it [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 11 00 00 [11:43:09]Write to MH i2c: E2 08 00 47 DE 80 11 00 00 00 00 00 00 9F [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 17 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 17 00 47 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [11:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:43:09]wFMCommunicate OK [11:43:09]requested_item fd.num is exist - process it [11:43:09]SAM_PROTO_GetFieldsCounters [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 00 00 [11:43:09]Write to MH i2c: E2 08 00 48 DE 80 13 00 00 00 00 00 00 A2 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 62 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 62 00 48 DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [11:43:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetFieldsCounters done [11:43:09]requested_item shift.num is exist - process it [11:43:09]requested_item shift.opened is exist - process it [11:43:09]req_shift_opened [11:43:09]FM_GetShiftState [11:43:09]SAM_PROTO_GetShiftState [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 01 00 [11:43:09]Write to MH i2c: E2 08 00 49 DE 80 13 01 00 00 00 00 00 A4 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 49 DE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EC [11:43:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetShiftState done [11:43:09]FM_GetShiftState done [11:43:09]req_shift_opened done [11:43:09]requested_item shift.open_date is exist - process it [11:43:09]req_shift_open_date [11:43:09]req_shift_open_date done [11:43:09]produce_requested_data done [11:43:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165636,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:43:09]process_action_free close_receipt [11:43:09]json_value_free [11:43:09]json_value_free done [11:43:09]process_json_proto returns [11:43:09]Send response to host [11:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165636,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:43:09]free response buf [11:43:09]execute_script done [11:43:09]execute_script returns [11:43:09]free content buf [11:43:09]Sock 7.Close socket [11:43:09]Sock 7.Thread stoped [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:07]accept exits with 9 [11:45:07]New connection [11:45:07]New thread 3066920292 created [11:45:07]Thread 3066776932 joined [11:45:07]Waiting for new connection... [11:45:07] Sock 9.Parse request [11:45:07]Sock 9.Check first char [11:45:07]Sock 9.First char is OK [11:45:07]request: POST /json_proto HTTP/1.0 [11:45:07]Method: POST [11:45:07]URL: /json_proto [11:45:07]Method is POST - this is cgi request [11:45:07]url: /json_proto [11:45:07]query_string will be loaded in cgi processing [11:45:07]execute_cgi json_proto POST (null) [11:45:07]execute_cgi path=json_proto method=POST [11:45:07]POST find Content-Length [11:45:07]Host: 172.17.53.195:8080 [11:45:07]Content-Length: 682 [11:45:07]Content-Type: application/json [11:45:07] [11:45:07]POST finish read [11:45:07]Found Content-Length = 682 [11:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:07]execute_script... [11:45: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)220200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:07]POST & json_proto [11:45:07]process_json_proto [11:45:07]json parsed OK: [11:45:07]protocol is kg_v1.0 [11:45:07]action value=close_receipt [11:45:07]process_action close_receipt [11:45:07]cmd_close_receipt [11:45:07]MH_GetDate [11:45:07]Write to MH i2c: F0 00 00 4A DE 17 [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: F0 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: F0 09 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: F0 09 00 4A DE 00 4F ED 14 67 21 48 4A 65 EF [11:45:07]GetLastDocTimeStamp 1729424597 [11:45:07]current date 1729424719 [11:45:07]FM_GetShiftState [11:45:07]SAM_PROTO_GetShiftState [11:45:07]wFMCommunicate request_size=4 [11:45:07]MH_SAM_APDU [11:45:07]CAPDU: 80 13 01 00 [11:45:07]Write to MH i2c: E2 08 00 4B DE 80 13 01 00 00 00 00 00 A6 [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:07]Read from MH i2c: E2 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 0E 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 0E 00 4B DE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EE [11:45:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:45:07]wFMCommunicate OK [11:45:07]SAM_PROTO_GetShiftState done [11:45:07]FM_GetShiftState done [11:45:07]opened in 1729384561 [11:45:07]opened+sec_in_day 1729470961 [11:45:07]quantity*price = 100021 [11:45:07]sum+1 = 100023 [11:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 119 20.10.2024 11:45 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165637 ФПД: 38982500823699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114519&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165637&fm=38982500823699&tin=02508201610067®Number=0000000000091764&sum=100000 [11:45:08]StoreToDocumentArchive [11:45:08]shift 534 fd 165637 [11:45:08]save to /storage/0534/doc_00165637 [11:45:08]save last doc name /storage/0534/doc_00165637 to /storage/kkm_last_doc_name [11:45:08]save OK [11:45:08]Clear old archive folders... [11:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:08]tlvbuf is 0162CF50 [11:45:08]SAM_PROTO_ClearQueue [11:45:08]wFMCommunicate request_size=4 [11:45:08]MH_SAM_APDU [11:45:08]CAPDU: 80 09 00 00 [11:45:08]Write to MH i2c: E2 08 00 58 DE 80 09 00 00 00 00 00 00 A8 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 58 DE 00 90 00 AA [11:45:08]RAPDU: 90 00 [11:45:08]wFMCommunicate OK [11:45:08]SAM_PROTO_ClearQueue done [11:45:08]KKMCreateOFDPacket [11:45:08]OFDProtocolAddRootSTLVToBuf [11:45:08]FM_MakeSignedData [11:45:08]FM_MakeSignedData [11:45:08]SAM_PROTO_SignData [11:45:08]wFMCommunicate request_size=4 [11:45:08]MH_SAM_APDU [11:45:08]CAPDU: 80 0D 01 02 [11:45:08]Write to MH i2c: E2 08 00 59 DE 80 0D 01 02 00 00 00 00 B0 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 59 DE 00 90 00 AB [11:45:08]RAPDU: 90 00 [11:45:08]wFMCommunicate OK [11:45:08]wFMCommunicate request_size=255 [11:45:08]MH_SAM_APDU [11:45: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 4F ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 87 02 00 35 04 06 00 23 [11:45:08]Write to MH i2c: E2 02 01 5A DE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 4F ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 87 02 00 35 04 06 00 23 00 00 5A [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]OFD Sender: No OFD packet to send [11:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 5A DE 00 90 00 AC [11:45:08]RAPDU: 90 00 [11:45:08]wFMCommunicate OK [11:45:08]wFMCommunicate request_size=10 [11:45:08]MH_SAM_APDU [11:45:08]CAPDU: 80 0D 02 02 05 74 52 1D 32 93 [11:45:08]Write to MH i2c: E2 0D 00 5B DE 80 0D 02 02 05 00 74 52 1D 32 93 00 00 65 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 5B DE 00 90 00 AD [11:45:08]RAPDU: 90 00 [11:45:08]wFMCommunicate OK [11:45:08]wFMCommunicate request_size=4 [11:45:08]MH_SAM_APDU [11:45:08]CAPDU: 80 0D 03 02 [11:45:08]Write to MH i2c: E2 08 00 5C DE 80 0D 03 02 00 00 00 00 B5 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 0B 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 0B 00 5C DE 00 D7 87 94 C5 73 FA 1B 12 90 00 07 [11:45:08]RAPDU: D7 87 94 C5 73 FA 1B 12 90 00 [11:45:08]wFMCommunicate OK [11:45:08]SAM_PROTO_SignData done [11:45:08]FM_MakeSignedData done [11:45:08]CreateOFDProtocolMessage [11:45:08]wFMCommunicate request_size=4 [11:45:08]MH_SAM_APDU [11:45:08]CAPDU: 80 11 00 00 [11:45:08]Write to MH i2c: E2 08 00 5D DE 80 11 00 00 00 00 00 00 B5 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 17 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 17 00 5D DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [11:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:08]wFMCommunicate OK [11:45:08]CreateOFDProtocolMessage done [11:45:08]OFDSenderStorePacket 165637 [11:45:08]StoreOFDPacket docnum=165637 [11:45:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 AC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 4F ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 87 02 00 35 04 06 00 23 74 52 1D 32 93 D7 87 94 C5 73 FA 1B 12 [11:45:08]CheckFolder [11:45:08]dirname=/storage/ofd_packets [11:45:08]CheckFolder done [11:45:08]ProducePacketName [11:45:08]name=ofd_packets/00165637 [11:45:08]NVStorageSaveData ofd_packets/00165637 [11:45:08]File name is /storage/ofd_packets/00165637 [11:45:08]Write 301 bytes [11:45:08]NVStorageSaveData done [11:45:08]OFDSenderStorePacket done [11:45:08]KKMCreateOFDPacket done [11:45:08]NVStorageSaveData kkm_last_timestamp [11:45:08]File name is /storage/kkm_last_timestamp [11:45:08]Write 4 bytes [11:45:08]NVStorageSaveData done [11:45:08]ExternCall_PrintAddStr [11:45:08]wPrintStart [11:45:08]Write to MH i2c: 01 00 00 5E DE 3C [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 07 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 07 00 5E DE 00 00 00 00 00 FF 0F 51 [11:45:08]RasterBufferAndPrint [11:45:08]line Счет N : (1)220200 [11:45:08]line ИНН: 02508201610067 [11:45:08]line Контрольно-Кассовый Чек [11:45:08]line ПРОДАЖА [11:45:08]line ТРК (МРК, ГНК) : 14 [11:45:08]line Товар: 2710124500 [11:45:08]line Аи-95-К-5 [11:45:08]line 13.480 * 74.20 [11:45:08]line = 1000.22 [11:45:08]line НДС 12% НСП 1% [11:45:08]line > о реализуемом товаре [11:45:08]line ОКРУГЛЕНИЕ: -0.22 [11:45:08]line ИТОГО: 1000.00 [11:45:08]line Внесено: 1000.00 [11:45:08]line СДАЧА: 0.00 [11:45:08]line НСП 1% : 8.85 [11:45:08]line НДС 12% : 106.22 [11:45:08]line Наличными: 1000.00 [11:45:08]line Безнал.: 0.00 [11:45:08]line Место: АЗС № 161 "Партнер Нефть" [11:45:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:45:08]line СНО: Общий режим [11:45:08]line Чек 119 20.10.2024 11:45 [11:45:08]line Смена: 534 ФФД: 1.0 [11:45:08]line ЗНМ: 0300000104 [11:45:08]line РНМ: 0000000000091764 [11:45:08]line Версия ККМ: 001 [11:45:08]line ФМ: 0000000000871759 [11:45:08]line ФД: 165637 [11:45:08]line ФПД: 38982500823699 [11:45:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114519&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165637&fm=38982500823699&tin=02508201610067®Number=0000000000091764&sum=100000 [11:45:09]OFD Sender: Processing packet 165637 [packets to send 48, broken 47] [11:45:09]ProducePacketName [11:45:09]name=ofd_packets/00165637 [11:45:09]OFD Sender: To server: pG, [11:45:09]CommunicateWithHost lk.salyk.kg:30040 [11:45:09]ConnectInit lk.salyk.kg [11:45:09]written 0, free lines is 4095 [11:45:09]Connected sock=10 [11:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 AC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 4F ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 87 02 00 35 04 06 00 23 74 52 1D 32 93 D7 87 94 C5 73 FA 1B 12 [11:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 35 1E 47 00 3B 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 31 37 35 39 10 04 04 00 05 87 02 00 F4 03 04 00 C1 93 14 67 B6 04 01 00 00 88 28 5F EC 57 FC C4 A4 [11:45:09]CommunicateWithHost err = 0 [11:45:09]CheckOFDResponse [11:45:09]1017 (14) - 77093643461234 [11:45:09]1041 (16) - 0000000000871759 [11:45:09]1040 (4) - 165637 [11:45:09]1012 (4) - 20.10.2024 05:23 [11:45:09]1206 (1) - 0 [11:45:09]OFD Sender: Remove packet 165637 [11:45:09]ProducePacketName [11:45:09]name=ofd_packets/00165637 [11:45:09]NVStorageDeleteData [11:45:09]Write to MH i2c: 01 00 00 89 DE 67 [11:45:09]Write i2c OK [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: 01 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: 01 07 00 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: 01 07 00 89 DE 00 00 00 00 00 D2 0C 4C [11:45:09]RasterBufferAndPrint [11:45:09]line [11:45:09]line [11:45:09]line [11:45:09]line [11:45:09]line [11:45:09]written 0, free lines is 3288 [11:45:09]MH_Cut [11:45:09]Write to MH i2c: D1 01 00 90 DE 01 40 [11:45:09]Write i2c OK [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: D1 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: D1 01 00 [11:45:09]MH_I2C_Read... [11:45:09]Read from MH i2c: D1 01 00 90 DE 00 3F [11:45:09]Write to MH i2c: 01 00 00 91 DE 6F [11:45:09]Write i2c OK [11:45:09]MH_I2C_Read... [11:45:10]OFD Sender: No OFD packet to send [11:45:10]*** Cut start [11:45:10]*** Partial cut [11:45:10]*** CUTSNS_PIN = 1 [11:45:10]*** CUTSNS_PIN = 0 [11:45:10]*** Brake cut motor [11:45:11]Read from MH i2c: 01 [11:45:11]MH_I2C_Read... [11:45:11]*** Stop cut motor [11:45:11]*** Cut end [11:45:11]Read from MH i2c: 01 07 00 [11:45:11]MH_I2C_Read... [11:45:11]Read from MH i2c: 01 07 00 91 DE 00 00 00 00 00 FF 0F 84 [11:45:11]process_action close_receipt done [11:45:11]requested_data is exist [11:45:11]produce_requested_data [11:45:11]requested_item fm.sn is exist - process it [11:45:11]wFMCommunicate request_size=4 [11:45:11]MH_SAM_APDU [11:45:11]CAPDU: 80 11 00 00 [11:45:11]Write to MH i2c: E2 08 00 92 DE 80 11 00 00 00 00 00 00 EA [11:45:11]Write i2c OK [11:45:11]MH_I2C_Read... [11:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:11]Read from MH i2c: E2 [11:45:11]MH_I2C_Read... [11:45:11]Read from MH i2c: E2 17 00 [11:45:11]MH_I2C_Read... [11:45:11]Read from MH i2c: E2 17 00 92 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [11:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:11]wFMCommunicate OK [11:45:11]requested_item fd.num is exist - process it [11:45:11]SAM_PROTO_GetFieldsCounters [11:45:11]wFMCommunicate request_size=4 [11:45:11]MH_SAM_APDU [11:45:11]CAPDU: 80 13 00 00 [11:45:11]Write to MH i2c: E2 08 00 93 DE 80 13 00 00 00 00 00 00 ED [11:45:11]Write i2c OK [11:45:11]MH_I2C_Read... [11:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:11]Read from MH i2c: E2 [11:45:11]MH_I2C_Read... [11:45:11]Read from MH i2c: E2 62 00 [11:45:11]MH_I2C_Read... [11:45:11]Read from MH i2c: E2 62 00 93 DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [11:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:11]wFMCommunicate OK [11:45:11]SAM_PROTO_GetFieldsCounters done [11:45:11]requested_item shift.num is exist - process it [11:45:11]requested_item shift.opened is exist - process it [11:45:11]req_shift_opened [11:45:11]FM_GetShiftState [11:45:11]SAM_PROTO_GetShiftState [11:45:11]wFMCommunicate request_size=4 [11:45:11]MH_SAM_APDU [11:45:11]CAPDU: 80 13 01 00 [11:45:11]Write to MH i2c: E2 08 00 94 DE 80 13 01 00 00 00 00 00 EF [11:45:11]Write i2c OK [11:45:11]MH_I2C_Read... [11:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:11]Read from MH i2c: E2 [11:45:11]MH_I2C_Read... [11:45:11]Read from MH i2c: E2 0E 00 [11:45:11]MH_I2C_Read... [11:45:11]Read from MH i2c: E2 0E 00 94 DE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 37 [11:45:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:45:11]wFMCommunicate OK [11:45:11]SAM_PROTO_GetShiftState done [11:45:11]FM_GetShiftState done [11:45:11]req_shift_opened done [11:45:11]requested_item shift.open_date is exist - process it [11:45:11]req_shift_open_date [11:45:11]req_shift_open_date done [11:45:11]produce_requested_data done [11:45:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165637,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:45:11]process_action_free close_receipt [11:45:11]json_value_free [11:45:11]json_value_free done [11:45:11]process_json_proto returns [11:45:11]Send response to host [11:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165637,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:45:11]free response buf [11:45:11]execute_script done [11:45:11]execute_script returns [11:45:11]free content buf [11:45:11]Sock 9.Close socket [11:45:11]Sock 9.Thread stoped [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:39]accept exits with 7 [11:45:39]New connection [11:45:39]New thread 3066776932 created [11:45:39]Thread 3066920292 joined [11:45:39]Waiting for new connection... [11:45:39] Sock 7.Parse request [11:45:39]Sock 7.Check first char [11:45:39]Sock 7.First char is OK [11:45:39]request: POST /json_proto HTTP/1.0 [11:45:39]Method: POST [11:45:39]URL: /json_proto [11:45:39]Method is POST - this is cgi request [11:45:39]url: /json_proto [11:45:39]query_string will be loaded in cgi processing [11:45:39]execute_cgi json_proto POST (null) [11:45:39]execute_cgi path=json_proto method=POST [11:45:39]POST find Content-Length [11:45:39]Host: 172.17.53.195:8080 [11:45:39]Content-Length: 674 [11:45:39]Content-Type: application/json [11:45:39] [11:45:39]POST finish read [11:45:39]Found Content-Length = 674 [11:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:45:39]execute_script... [11:45: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)220201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:45:39]POST & json_proto [11:45:39]process_json_proto [11:45:39]json parsed OK: [11:45:39]protocol is kg_v1.0 [11:45:39]action value=close_receipt [11:45:39]process_action close_receipt [11:45:39]cmd_close_receipt [11:45:39]MH_GetDate [11:45:39]Write to MH i2c: F0 00 00 95 DE 62 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: F0 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: F0 09 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: F0 09 00 95 DE 00 6F ED 14 67 21 48 4A 65 5A [11:45:39]GetLastDocTimeStamp 1729424719 [11:45:39]current date 1729424751 [11:45:39]FM_GetShiftState [11:45:39]SAM_PROTO_GetShiftState [11:45:39]wFMCommunicate request_size=4 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 13 01 00 [11:45:39]Write to MH i2c: E2 08 00 96 DE 80 13 01 00 00 00 00 00 F1 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 0E 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 0E 00 96 DE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 39 [11:45:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:45:39]wFMCommunicate OK [11:45:39]SAM_PROTO_GetShiftState done [11:45:39]FM_GetShiftState done [11:45:39]opened in 1729384561 [11:45:39]opened+sec_in_day 1729470961 [11:45:39]quantity*price = 50063 [11:45:39]sum+1 = 50064 [11:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 120 20.10.2024 11:45 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165638 ФПД: 62765529996337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114551&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165638&fm=62765529996337&tin=02508201610067®Number=0000000000091764&sum=50000 [11:45:40]StoreToDocumentArchive [11:45:40]shift 534 fd 165638 [11:45:40]save to /storage/0534/doc_00165638 [11:45:40]save last doc name /storage/0534/doc_00165638 to /storage/kkm_last_doc_name [11:45:40]save OK [11:45:40]Clear old archive folders... [11:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:45:40]tlvbuf is 014DA5C0 [11:45:40]SAM_PROTO_ClearQueue [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 09 00 00 [11:45:40]Write to MH i2c: E2 08 00 A3 DE 80 09 00 00 00 00 00 00 F3 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 A3 DE 00 90 00 F5 [11:45:40]RAPDU: 90 00 [11:45:40]wFMCommunicate OK [11:45:40]SAM_PROTO_ClearQueue done [11:45:40]KKMCreateOFDPacket [11:45:40]OFDProtocolAddRootSTLVToBuf [11:45:40]FM_MakeSignedData [11:45:40]FM_MakeSignedData [11:45:40]SAM_PROTO_SignData [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 0D 01 02 [11:45:40]Write to MH i2c: E2 08 00 A4 DE 80 0D 01 02 00 00 00 00 FB [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 A4 DE 00 90 00 F6 [11:45:41]RAPDU: 90 00 [11:45:41]wFMCommunicate OK [11:45:41]wFMCommunicate request_size=255 [11:45:41]MH_SAM_APDU [11:45: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 78 00 00 00 F4 03 04 00 6F ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 87 02 00 35 04 06 00 39 15 BD 1E [11:45:41]Write to MH i2c: E2 02 01 A5 DE 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 78 00 00 00 F4 03 04 00 6F ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 87 02 00 35 04 06 00 39 15 BD 1E 00 00 2E [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 A5 DE 00 90 00 F7 [11:45:41]RAPDU: 90 00 [11:45:41]wFMCommunicate OK [11:45:41]wFMCommunicate request_size=7 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 0D 02 02 02 9C 31 [11:45:41]Write to MH i2c: E2 0A 00 A6 DE 80 0D 02 02 02 00 9C 31 00 00 CF [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 A6 DE 00 90 00 F8 [11:45:41]RAPDU: 90 00 [11:45:41]wFMCommunicate OK [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 0D 03 02 [11:45:41]Write to MH i2c: E2 08 00 A7 DE 80 0D 03 02 00 00 00 00 00 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 0B 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 0B 00 A7 DE 00 A5 23 E3 60 09 01 00 AE 90 00 C4 [11:45:41]RAPDU: A5 23 E3 60 09 01 00 AE 90 00 [11:45:41]wFMCommunicate OK [11:45:41]SAM_PROTO_SignData done [11:45:41]FM_MakeSignedData done [11:45:41]CreateOFDProtocolMessage [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 11 00 00 [11:45:41]Write to MH i2c: E2 08 00 A8 DE 80 11 00 00 00 00 00 00 00 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 17 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 17 00 A8 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [11:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:41]wFMCommunicate OK [11:45:41]CreateOFDProtocolMessage done [11:45:41]OFDSenderStorePacket 165638 [11:45:41]StoreOFDPacket docnum=165638 [11:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E 5D 04 01 C1 57 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 78 00 00 00 F4 03 04 00 6F ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 87 02 00 35 04 06 00 39 15 BD 1E 9C 31 A5 23 E3 60 09 01 00 AE [11:45:41]CheckFolder [11:45:41]dirname=/storage/ofd_packets [11:45:41]CheckFolder done [11:45:41]ProducePacketName [11:45:41]name=ofd_packets/00165638 [11:45:41]NVStorageSaveData ofd_packets/00165638 [11:45:41]File name is /storage/ofd_packets/00165638 [11:45:41]Write 298 bytes [11:45:41]NVStorageSaveData done [11:45:41]OFDSenderStorePacket done [11:45:41]KKMCreateOFDPacket done [11:45:41]NVStorageSaveData kkm_last_timestamp [11:45:41]File name is /storage/kkm_last_timestamp [11:45:41]Write 4 bytes [11:45:41]NVStorageSaveData done [11:45:41]ExternCall_PrintAddStr [11:45:41]wPrintStart [11:45:41]Write to MH i2c: 01 00 00 A9 DE 87 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 07 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 07 00 A9 DE 00 00 00 00 00 FF 0F 9C [11:45:41]RasterBufferAndPrint [11:45:41]line Счет N : (1)220201 [11:45:41]line ИНН: 02508201610067 [11:45:41]line Контрольно-Кассовый Чек [11:45:41]line ПРОДАЖА [11:45:41]line ТРК (МРК, ГНК) : 41 [11:45:41]line Товар: 2710194210 [11:45:41]line ДТ-К-5 [11:45:41]line 6.570 * 76.20 [11:45:41]line = 500.63 [11:45:41]line НДС 12% НСП 1% [11:45:41]line > о реализуемом товаре [11:45:41]line ОКРУГЛЕНИЕ: -0.63 [11:45:41]line ИТОГО: 500.00 [11:45:41]line Внесено: 500.00 [11:45:41]line СДАЧА: 0.00 [11:45:41]line НСП 1% : 4.43 [11:45:41]line НДС 12% : 53.16 [11:45:41]line Наличными: 500.00 [11:45:41]line Безнал.: 0.00 [11:45:41]line Место: АЗС № 161 "Партнер Нефть" [11:45:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:45:41]line СНО: Общий режим [11:45:41]line Чек 120 20.10.2024 11:45 [11:45:41]line Смена: 534 ФФД: 1.0 [11:45:41]line ЗНМ: 0300000104 [11:45:41]line РНМ: 0000000000091764 [11:45:41]line Версия ККМ: 001 [11:45:41]line ФМ: 0000000000871759 [11:45:41]line ФД: 165638 [11:45:41]line ФПД: 62765529996337 [11:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114551&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165638&fm=62765529996337&tin=02508201610067®Number=0000000000091764&sum=50000 [11:45:41]OFD Sender: Processing packet 165638 [packets to send 48, broken 47] [11:45:41]ProducePacketName [11:45:41]name=ofd_packets/00165638 [11:45:41]OFD Sender: To server: pG, [11:45:41]CommunicateWithHost lk.salyk.kg:30040 [11:45:41]ConnectInit lk.salyk.kg [11:45:41]written 0, free lines is 4095 [11:45:41]Connected sock=10 [11:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E 5D 04 01 C1 57 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 78 00 00 00 F4 03 04 00 6F ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 87 02 00 35 04 06 00 39 15 BD 1E 9C 31 A5 23 E3 60 09 01 00 AE [11:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1A 7C 47 00 BD 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 31 37 35 39 10 04 04 00 06 87 02 00 F4 03 04 00 E1 93 14 67 B6 04 01 00 00 C3 F1 48 8D 6B 5D 16 BA [11:45:42]CommunicateWithHost err = 0 [11:45:42]CheckOFDResponse [11:45:42]1017 (14) - 77093643461234 [11:45:42]1041 (16) - 0000000000871759 [11:45:42]1040 (4) - 165638 [11:45:42]1012 (4) - 20.10.2024 05:23 [11:45:42]1206 (1) - 0 [11:45:42]OFD Sender: Remove packet 165638 [11:45:42]ProducePacketName [11:45:42]name=ofd_packets/00165638 [11:45:42]NVStorageDeleteData [11:45:42]Write to MH i2c: 01 00 00 D4 DE B2 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 07 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 07 00 D4 DE 00 00 00 00 00 C6 0C 8B [11:45:42]RasterBufferAndPrint [11:45:42]line [11:45:42]line [11:45:42]line [11:45:42]line [11:45:42]line [11:45:42]written 0, free lines is 3276 [11:45:42]MH_Cut [11:45:42]Write to MH i2c: D1 01 00 DB DE 01 8B [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: D1 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: D1 01 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: D1 01 00 DB DE 00 8A [11:45:42]Write to MH i2c: 01 00 00 DC DE BA [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]OFD Sender: No OFD packet to send [11:45:43]*** Cut start [11:45:43]*** Partial cut [11:45:43]*** CUTSNS_PIN = 1 [11:45:43]*** CUTSNS_PIN = 0 [11:45:43]*** Brake cut motor [11:45:43]Read from MH i2c: 01 [11:45:43]MH_I2C_Read... [11:45:43]*** Stop cut motor [11:45:43]*** Cut end [11:45:43]Read from MH i2c: 01 07 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 07 00 DC DE 00 00 00 00 00 FF 0F CF [11:45:43]process_action close_receipt done [11:45:43]requested_data is exist [11:45:43]produce_requested_data [11:45:43]requested_item fm.sn is exist - process it [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 11 00 00 [11:45:43]Write to MH i2c: E2 08 00 DD DE 80 11 00 00 00 00 00 00 35 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 DD DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [11:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:43]wFMCommunicate OK [11:45:43]requested_item fd.num is exist - process it [11:45:43]SAM_PROTO_GetFieldsCounters [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 13 00 00 [11:45:43]Write to MH i2c: E2 08 00 DE DE 80 13 00 00 00 00 00 00 38 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 62 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 62 00 DE DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [11:45:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:43]wFMCommunicate OK [11:45:43]SAM_PROTO_GetFieldsCounters done [11:45:43]requested_item shift.num is exist - process it [11:45:43]requested_item shift.opened is exist - process it [11:45:43]req_shift_opened [11:45:43]FM_GetShiftState [11:45:43]SAM_PROTO_GetShiftState [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 13 01 00 [11:45:43]Write to MH i2c: E2 08 00 DF DE 80 13 01 00 00 00 00 00 3A [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 0E 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 0E 00 DF DE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 82 [11:45:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:45:43]wFMCommunicate OK [11:45:43]SAM_PROTO_GetShiftState done [11:45:43]FM_GetShiftState done [11:45:43]req_shift_opened done [11:45:43]requested_item shift.open_date is exist - process it [11:45:43]req_shift_open_date [11:45:43]req_shift_open_date done [11:45:43]produce_requested_data done [11:45:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165638,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:45:43]process_action_free close_receipt [11:45:43]json_value_free [11:45:43]json_value_free done [11:45:43]process_json_proto returns [11:45:43]Send response to host [11:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165638,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:45:43]free response buf [11:45:43]execute_script done [11:45:43]execute_script returns [11:45:43]free content buf [11:45:43]Sock 7.Close socket [11:45:43]Sock 7.Thread stoped [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:31]accept exits with 9 [11:46:31]New connection [11:46:31]New thread 3066920292 created [11:46:31]Thread 3066776932 joined [11:46:31]Waiting for new connection... [11:46:31] Sock 9.Parse request [11:46:31]Sock 9.Check first char [11:46:31]Sock 9.First char is OK [11:46:31]request: POST /json_proto HTTP/1.0 [11:46:31]Method: POST [11:46:31]URL: /json_proto [11:46:31]Method is POST - this is cgi request [11:46:31]url: /json_proto [11:46:31]query_string will be loaded in cgi processing [11:46:31]execute_cgi json_proto POST (null) [11:46:31]execute_cgi path=json_proto method=POST [11:46:31]POST find Content-Length [11:46:31]Host: 172.17.53.195:8080 [11:46:31]Content-Length: 766 [11:46:31]Content-Type: application/json [11:46:31] [11:46:31]POST finish read [11:46:31]Found Content-Length = 766 [11:46:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220202", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:31]execute_script... [11:46: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)220202", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:31]POST & json_proto [11:46:31]process_json_proto [11:46:31]json parsed OK: [11:46:31]protocol is kg_v1.0 [11:46:31]action value=close_receipt [11:46:31]process_action close_receipt [11:46:31]cmd_close_receipt [11:46:31]MH_GetDate [11:46:31]Write to MH i2c: F0 00 00 E0 DE AD [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: F0 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: F0 09 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: F0 09 00 E0 DE 00 A3 ED 14 67 21 48 4A 65 D9 [11:46:31]GetLastDocTimeStamp 1729424751 [11:46:31]current date 1729424803 [11:46:31]FM_GetShiftState [11:46:31]SAM_PROTO_GetShiftState [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 13 01 00 [11:46:31]Write to MH i2c: E2 08 00 E1 DE 80 13 01 00 00 00 00 00 3C [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 0E 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 0E 00 E1 DE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 84 [11:46:31]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:46:31]wFMCommunicate OK [11:46:31]SAM_PROTO_GetShiftState done [11:46:31]FM_GetShiftState done [11:46:31]opened in 1729384561 [11:46:31]opened+sec_in_day 1729470961 [11:46:31]quantity*price = 200025 [11:46:31]sum+1 = 200026 [11:46:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 121 20.10.2024 11:46 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165639 ФПД: 131469739062188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165639&fm=131469739062188&tin=02508201610067®Number=0000000000091764&sum=200025 [11:46:32]StoreToDocumentArchive [11:46:32]shift 534 fd 165639 [11:46:32]save to /storage/0534/doc_00165639 [11:46:32]save last doc name /storage/0534/doc_00165639 to /storage/kkm_last_doc_name [11:46:32]save OK [11:46:32]Clear old archive folders... [11:46:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:46:32]tlvbuf is 0177A8B0 [11:46:32]SAM_PROTO_ClearQueue [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 09 00 00 [11:46:32]Write to MH i2c: E2 08 00 EE DE 80 09 00 00 00 00 00 00 3E [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 03 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 03 00 EE DE 00 90 00 40 [11:46:32]RAPDU: 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_ClearQueue done [11:46:32]KKMCreateOFDPacket [11:46:32]OFDProtocolAddRootSTLVToBuf [11:46:32]FM_MakeSignedData [11:46:32]FM_MakeSignedData [11:46:32]SAM_PROTO_SignData [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 0D 01 02 [11:46:32]Write to MH i2c: E2 08 00 EF DE 80 0D 01 02 00 00 00 00 46 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 03 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 03 00 EF DE 00 90 00 41 [11:46:32]RAPDU: 90 00 [11:46:32]wFMCommunicate OK [11:46:32]wFMCommunicate request_size=255 [11:46:32]MH_SAM_APDU [11:46: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A3 ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 87 02 00 35 04 06 00 77 92 2F 18 [11:46:32]Write to MH i2c: E2 02 01 F0 DE 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A3 ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 87 02 00 35 04 06 00 77 92 2F 18 00 00 6E [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 F0 DE 00 90 00 42 [11:46:33]RAPDU: 90 00 [11:46:33]wFMCommunicate OK [11:46:33]wFMCommunicate request_size=7 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 0D 02 02 02 73 AC [11:46:33]Write to MH i2c: E2 0A 00 F1 DE 80 0D 02 02 02 00 73 AC 00 00 6C [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 F1 DE 00 90 00 43 [11:46:33]RAPDU: 90 00 [11:46:33]wFMCommunicate OK [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 0D 03 02 [11:46:33]Write to MH i2c: E2 08 00 F2 DE 80 0D 03 02 00 00 00 00 4B [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 0B 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 0B 00 F2 DE 00 10 96 67 7E FC AF 58 D3 90 00 AD [11:46:33]RAPDU: 10 96 67 7E FC AF 58 D3 90 00 [11:46:33]wFMCommunicate OK [11:46:33]SAM_PROTO_SignData done [11:46:33]FM_MakeSignedData done [11:46:33]CreateOFDProtocolMessage [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 11 00 00 [11:46:33]Write to MH i2c: E2 08 00 F3 DE 80 11 00 00 00 00 00 00 4B [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 17 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 17 00 F3 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [11:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:46:33]wFMCommunicate OK [11:46:33]CreateOFDProtocolMessage done [11:46:33]OFDSenderStorePacket 165639 [11:46:33]StoreOFDPacket docnum=165639 [11:46:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1A A4 04 01 49 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A3 ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 87 02 00 35 04 06 00 77 92 2F 18 73 AC 10 96 67 7E FC AF 58 D3 [11:46:33]CheckFolder [11:46:33]dirname=/storage/ofd_packets [11:46:33]CheckFolder done [11:46:33]ProducePacketName [11:46:33]name=ofd_packets/00165639 [11:46:33]NVStorageSaveData ofd_packets/00165639 [11:46:33]File name is /storage/ofd_packets/00165639 [11:46:33]Write 298 bytes [11:46:33]NVStorageSaveData done [11:46:33]OFDSenderStorePacket done [11:46:33]KKMCreateOFDPacket done [11:46:33]NVStorageSaveData kkm_last_timestamp [11:46:33]File name is /storage/kkm_last_timestamp [11:46:33]Write 4 bytes [11:46:33]NVStorageSaveData done [11:46:33]ExternCall_PrintAddStr [11:46:33]wPrintStart [11:46:33]Write to MH i2c: 01 00 00 F4 DE D2 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: 01 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: 01 07 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: 01 07 00 F4 DE 00 00 00 00 00 FF 0F E7 [11:46:33]RasterBufferAndPrint [11:46:33]line Счет N : (1)220202 [11:46:33]line ИНН: 02508201610067 [11:46:33]line Контрольно-Кассовый Чек [11:46:33]line ПРОДАЖА [11:46:33]line ТРК (МРК, ГНК) : 21 [11:46:33]line Товар: 2710194210 [11:46:33]line ДТ-К-5 [11:46:33]line 26.250 * 76.20 [11:46:33]line = 2000.25 [11:46:33]line НДС 12% НСП 1% [11:46:33]line > о реализуемом товаре [11:46:33]line ИТОГО: 2000.25 [11:46:33]line НСП 1% : 17.70 [11:46:33]line НДС 12% : 212.42 [11:46:33]line Наличными: 0.00 [11:46:33]line Безнал.: 2000.25 [11:46:33]line Место: АЗС № 161 "Партнер Нефть" [11:46:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:46:33]line СНО: Общий режим [11:46:33]line Чек 121 20.10.2024 11:46 [11:46:33]line Смена: 534 ФФД: 1.0 [11:46:33]line ЗНМ: 0300000104 [11:46:33]line РНМ: 0000000000091764 [11:46:33]line Версия ККМ: 001 [11:46:33]line Платежная система: Mbank [11:46:33]line ФМ: 0000000000871759 [11:46:33]line ФД: 165639 [11:46:33]line ФПД: 131469739062188 [11:46:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165639&fm=131469739062188&tin=02508201610067®Number=0000000000091764&sum=200025 [11:46:33]OFD Sender: Processing packet 165639 [packets to send 48, broken 47] [11:46:33]ProducePacketName [11:46:33]name=ofd_packets/00165639 [11:46:33]OFD Sender: To server: pG, [11:46:33]CommunicateWithHost lk.salyk.kg:30040 [11:46:33]ConnectInit lk.salyk.kg [11:46:33]written 0, free lines is 4095 [11:46:33]Connected sock=10 [11:46:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1A A4 04 01 49 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A3 ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 87 02 00 35 04 06 00 77 92 2F 18 73 AC 10 96 67 7E FC AF 58 D3 [11:46:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 17 3C 47 00 99 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 31 37 35 39 10 04 04 00 07 87 02 00 F4 03 04 00 15 94 14 67 B6 04 01 00 00 A2 A9 0B 4B 82 F3 75 7B [11:46:33]CommunicateWithHost err = 0 [11:46:33]CheckOFDResponse [11:46:33]1017 (14) - 77093643461234 [11:46:33]1041 (16) - 0000000000871759 [11:46:33]1040 (4) - 165639 [11:46:33]1012 (4) - 20.10.2024 05:24 [11:46:33]1206 (1) - 0 [11:46:33]OFD Sender: Remove packet 165639 [11:46:33]ProducePacketName [11:46:33]name=ofd_packets/00165639 [11:46:33]NVStorageDeleteData [11:46:34]Write to MH i2c: 01 00 00 1D DF FC [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 07 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 07 00 1D DF 00 00 00 00 00 08 0D 18 [11:46:34]RasterBufferAndPrint [11:46:34]line [11:46:34]line [11:46:34]line [11:46:34]line [11:46:34]line [11:46:34]written 0, free lines is 3343 [11:46:34]MH_Cut [11:46:34]Write to MH i2c: D1 01 00 24 DF 01 D5 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: D1 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: D1 01 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: D1 01 00 24 DF 00 D4 [11:46:34]Write to MH i2c: 01 00 00 25 DF 04 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]OFD Sender: No OFD packet to send [11:46:34]*** Cut start [11:46:34]*** Partial cut [11:46:34]*** CUTSNS_PIN = 1 [11:46:34]*** CUTSNS_PIN = 0 [11:46:35]*** Brake cut motor [11:46:35]Read from MH i2c: 01 [11:46:35]MH_I2C_Read... [11:46:35]*** Stop cut motor [11:46:35]*** Cut end [11:46:35]Read from MH i2c: 01 07 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 25 DF 00 00 00 00 00 FF 0F 19 [11:46:35]process_action close_receipt done [11:46:35]requested_data is exist [11:46:35]produce_requested_data [11:46:35]requested_item fm.sn is exist - process it [11:46:35]wFMCommunicate request_size=4 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 11 00 00 [11:46:35]Write to MH i2c: E2 08 00 26 DF 80 11 00 00 00 00 00 00 7F [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 17 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 17 00 26 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [11:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:46:35]wFMCommunicate OK [11:46:35]requested_item fd.num is exist - process it [11:46:35]SAM_PROTO_GetFieldsCounters [11:46:35]wFMCommunicate request_size=4 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 13 00 00 [11:46:35]Write to MH i2c: E2 08 00 27 DF 80 13 00 00 00 00 00 00 82 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 62 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 62 00 27 DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [11:46:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:35]wFMCommunicate OK [11:46:35]SAM_PROTO_GetFieldsCounters done [11:46:35]requested_item shift.num is exist - process it [11:46:35]requested_item shift.opened is exist - process it [11:46:35]req_shift_opened [11:46:35]FM_GetShiftState [11:46:35]SAM_PROTO_GetShiftState [11:46:35]wFMCommunicate request_size=4 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 13 01 00 [11:46:35]Write to MH i2c: E2 08 00 28 DF 80 13 01 00 00 00 00 00 84 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 0E 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 0E 00 28 DF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CC [11:46:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:46:35]wFMCommunicate OK [11:46:35]SAM_PROTO_GetShiftState done [11:46:35]FM_GetShiftState done [11:46:35]req_shift_opened done [11:46:35]requested_item shift.open_date is exist - process it [11:46:35]req_shift_open_date [11:46:35]req_shift_open_date done [11:46:35]produce_requested_data done [11:46:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165639,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:46:35]process_action_free close_receipt [11:46:35]json_value_free [11:46:35]json_value_free done [11:46:35]process_json_proto returns [11:46:35]Send response to host [11:46:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165639,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:46:35]free response buf [11:46:35]execute_script done [11:46:35]execute_script returns [11:46:35]free content buf [11:46:35]Sock 9.Close socket [11:46:35]Sock 9.Thread stoped [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:18]accept exits with 7 [11:47:18]New connection [11:47:18]New thread 3066776932 created [11:47:18]Thread 3066920292 joined [11:47:18]Waiting for new connection... [11:47:18] Sock 7.Parse request [11:47:18]Sock 7.Check first char [11:47:18]Sock 7.First char is OK [11:47:18]request: POST /json_proto HTTP/1.0 [11:47:18]Method: POST [11:47:18]URL: /json_proto [11:47:18]Method is POST - this is cgi request [11:47:18]url: /json_proto [11:47:18]query_string will be loaded in cgi processing [11:47:18]execute_cgi json_proto POST (null) [11:47:18]execute_cgi path=json_proto method=POST [11:47:18]POST find Content-Length [11:47:18]Host: 172.17.53.195:8080 [11:47:18]Content-Length: 682 [11:47:18]Content-Type: application/json [11:47:18] [11:47:18]POST finish read [11:47:18]Found Content-Length = 682 [11:47:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:18]execute_script... [11:47: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)220203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:18]POST & json_proto [11:47:18]process_json_proto [11:47:18]json parsed OK: [11:47:18]protocol is kg_v1.0 [11:47:18]action value=close_receipt [11:47:18]process_action close_receipt [11:47:18]cmd_close_receipt [11:47:18]MH_GetDate [11:47:18]Write to MH i2c: F0 00 00 29 DF F7 [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: F0 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: F0 09 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: F0 09 00 29 DF 00 D2 ED 14 67 21 48 4A 65 52 [11:47:18]GetLastDocTimeStamp 1729424803 [11:47:18]current date 1729424850 [11:47:18]FM_GetShiftState [11:47:18]SAM_PROTO_GetShiftState [11:47:18]wFMCommunicate request_size=4 [11:47:18]MH_SAM_APDU [11:47:18]CAPDU: 80 13 01 00 [11:47:18]Write to MH i2c: E2 08 00 2A DF 80 13 01 00 00 00 00 00 86 [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:18]Read from MH i2c: E2 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 0E 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: E2 0E 00 2A DF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CE [11:47:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:47:18]wFMCommunicate OK [11:47:18]SAM_PROTO_GetShiftState done [11:47:18]FM_GetShiftState done [11:47:18]opened in 1729384561 [11:47:18]opened+sec_in_day 1729470961 [11:47:18]quantity*price = 100021 [11:47:18]sum+1 = 100023 [11:47:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 122 20.10.2024 11:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165640 ФПД: 2129365415226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114730&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165640&fm=2129365415226&tin=02508201610067®Number=0000000000091764&sum=100000 [11:47:19]StoreToDocumentArchive [11:47:19]shift 534 fd 165640 [11:47:19]save to /storage/0534/doc_00165640 [11:47:19]save last doc name /storage/0534/doc_00165640 to /storage/kkm_last_doc_name [11:47:19]save OK [11:47:19]Clear old archive folders... [11:47:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:19]tlvbuf is 016AB090 [11:47:19]SAM_PROTO_ClearQueue [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 09 00 00 [11:47:19]Write to MH i2c: E2 08 00 37 DF 80 09 00 00 00 00 00 00 88 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 03 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 03 00 37 DF 00 90 00 8A [11:47:19]RAPDU: 90 00 [11:47:19]wFMCommunicate OK [11:47:19]SAM_PROTO_ClearQueue done [11:47:19]KKMCreateOFDPacket [11:47:19]OFDProtocolAddRootSTLVToBuf [11:47:19]FM_MakeSignedData [11:47:19]FM_MakeSignedData [11:47:19]SAM_PROTO_SignData [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 0D 01 02 [11:47:19]Write to MH i2c: E2 08 00 38 DF 80 0D 01 02 00 00 00 00 90 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 03 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 03 00 38 DF 00 90 00 8B [11:47:19]RAPDU: 90 00 [11:47:19]wFMCommunicate OK [11:47:19]wFMCommunicate request_size=255 [11:47:19]MH_SAM_APDU [11:47: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D2 ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 87 02 00 35 04 06 00 01 [11:47:19]Write to MH i2c: E2 02 01 39 DF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D2 ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 87 02 00 35 04 06 00 01 00 00 A1 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 03 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 03 00 39 DF 00 90 00 8C [11:47:19]RAPDU: 90 00 [11:47:19]wFMCommunicate OK [11:47:19]wFMCommunicate request_size=10 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 0D 02 02 05 EF C8 11 B5 3A [11:47:19]Write to MH i2c: E2 0D 00 3A DF 80 0D 02 02 05 00 EF C8 11 B5 3A 00 00 54 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 03 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 03 00 3A DF 00 90 00 8D [11:47:20]RAPDU: 90 00 [11:47:20]wFMCommunicate OK [11:47:20]wFMCommunicate request_size=4 [11:47:20]MH_SAM_APDU [11:47:20]CAPDU: 80 0D 03 02 [11:47:20]Write to MH i2c: E2 08 00 3B DF 80 0D 03 02 00 00 00 00 95 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0B 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0B 00 3B DF 00 BE 60 06 31 9F BF F5 5B 90 00 99 [11:47:20]RAPDU: BE 60 06 31 9F BF F5 5B 90 00 [11:47:20]wFMCommunicate OK [11:47:20]SAM_PROTO_SignData done [11:47:20]FM_MakeSignedData done [11:47:20]CreateOFDProtocolMessage [11:47:20]wFMCommunicate request_size=4 [11:47:20]MH_SAM_APDU [11:47:20]CAPDU: 80 11 00 00 [11:47:20]Write to MH i2c: E2 08 00 3C DF 80 11 00 00 00 00 00 00 95 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 17 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 17 00 3C DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [11:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:47:20]wFMCommunicate OK [11:47:20]CreateOFDProtocolMessage done [11:47:20]OFDSenderStorePacket 165640 [11:47:20]StoreOFDPacket docnum=165640 [11:47:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 22 07 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D2 ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 87 02 00 35 04 06 00 01 EF C8 11 B5 3A BE 60 06 31 9F BF F5 5B [11:47:20]CheckFolder [11:47:20]dirname=/storage/ofd_packets [11:47:20]CheckFolder done [11:47:20]ProducePacketName [11:47:20]name=ofd_packets/00165640 [11:47:20]NVStorageSaveData ofd_packets/00165640 [11:47:20]File name is /storage/ofd_packets/00165640 [11:47:20]Write 301 bytes [11:47:20]NVStorageSaveData done [11:47:20]OFDSenderStorePacket done [11:47:20]KKMCreateOFDPacket done [11:47:20]NVStorageSaveData kkm_last_timestamp [11:47:20]File name is /storage/kkm_last_timestamp [11:47:20]Write 4 bytes [11:47:20]NVStorageSaveData done [11:47:20]ExternCall_PrintAddStr [11:47:20]wPrintStart [11:47:20]Write to MH i2c: 01 00 00 3D DF 1C [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: 01 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: 01 07 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: 01 07 00 3D DF 00 00 00 00 00 FF 0F 31 [11:47:20]RasterBufferAndPrint [11:47:20]line Счет N : (1)220203 [11:47:20]line ИНН: 02508201610067 [11:47:20]line Контрольно-Кассовый Чек [11:47:20]line ПРОДАЖА [11:47:20]line ТРК (МРК, ГНК) : 34 [11:47:20]line Товар: 2710124500 [11:47:20]line Аи-95-К-5 [11:47:20]line 13.480 * 74.20 [11:47:20]line = 1000.22 [11:47:20]line НДС 12% НСП 1% [11:47:20]line > о реализуемом товаре [11:47:20]line ОКРУГЛЕНИЕ: -0.22 [11:47:20]line ИТОГО: 1000.00 [11:47:20]line Внесено: 1000.00 [11:47:20]line СДАЧА: 0.00 [11:47:20]line НСП 1% : 8.85 [11:47:20]line НДС 12% : 106.22 [11:47:20]line Наличными: 1000.00 [11:47:20]line Безнал.: 0.00 [11:47:20]line Место: АЗС № 161 "Партнер Нефть" [11:47:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:47:20]line СНО: Общий режим [11:47:20]line Чек 122 20.10.2024 11:47 [11:47:20]line Смена: 534 ФФД: 1.0 [11:47:20]line ЗНМ: 0300000104 [11:47:20]line РНМ: 0000000000091764 [11:47:20]line Версия ККМ: 001 [11:47:20]line ФМ: 0000000000871759 [11:47:20]line ФД: 165640 [11:47:20]line ФПД: 2129365415226 [11:47:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114730&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165640&fm=2129365415226&tin=02508201610067®Number=0000000000091764&sum=100000 [11:47:20]OFD Sender: Processing packet 165640 [packets to send 48, broken 47] [11:47:20]ProducePacketName [11:47:20]name=ofd_packets/00165640 [11:47:20]OFD Sender: To server: pG, [11:47:20]CommunicateWithHost lk.salyk.kg:30040 [11:47:20]ConnectInit lk.salyk.kg [11:47:20]written 0, free lines is 4095 [11:47:20]Connected sock=10 [11:47:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 22 07 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D2 ED 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 87 02 00 35 04 06 00 01 EF C8 11 B5 3A BE 60 06 31 9F BF F5 5B [11:47:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F5 E7 47 00 9B C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 87 02 00 F4 03 04 00 44 94 14 67 B6 04 01 00 00 AB 45 5E 83 4C D8 28 D0 [11:47:20]CommunicateWithHost err = 0 [11:47:20]CheckOFDResponse [11:47:20]1017 (14) - 77093643461234 [11:47:20]1041 (16) - 0000000000871759 [11:47:20]1040 (4) - 165640 [11:47:20]1012 (4) - 20.10.2024 05:25 [11:47:20]1206 (1) - 0 [11:47:20]OFD Sender: Remove packet 165640 [11:47:20]ProducePacketName [11:47:20]name=ofd_packets/00165640 [11:47:20]NVStorageDeleteData [11:47:20]Write to MH i2c: 01 00 00 68 DF 47 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: 01 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: 01 07 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: 01 07 00 68 DF 00 00 00 00 00 D1 0C 2B [11:47:20]RasterBufferAndPrint [11:47:20]line [11:47:20]line [11:47:20]line [11:47:20]line [11:47:20]line [11:47:20]written 0, free lines is 3287 [11:47:20]MH_Cut [11:47:20]Write to MH i2c: D1 01 00 6F DF 01 20 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: D1 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: D1 01 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: D1 01 00 6F DF 00 1F [11:47:20]Write to MH i2c: 01 00 00 70 DF 4F [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:21]OFD Sender: No OFD packet to send [11:47:21]*** Cut start [11:47:21]*** Partial cut [11:47:21]*** CUTSNS_PIN = 1 [11:47:21]*** CUTSNS_PIN = 0 [11:47:22]*** Brake cut motor [11:47:22]Read from MH i2c: 01 [11:47:22]MH_I2C_Read... [11:47:22]*** Stop cut motor [11:47:22]*** Cut end [11:47:22]Read from MH i2c: 01 07 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 07 00 70 DF 00 00 00 00 00 FF 0F 64 [11:47:22]process_action close_receipt done [11:47:22]requested_data is exist [11:47:22]produce_requested_data [11:47:22]requested_item fm.sn is exist - process it [11:47:22]wFMCommunicate request_size=4 [11:47:22]MH_SAM_APDU [11:47:22]CAPDU: 80 11 00 00 [11:47:22]Write to MH i2c: E2 08 00 71 DF 80 11 00 00 00 00 00 00 CA [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:22]Read from MH i2c: E2 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 17 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 17 00 71 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [11:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:47:22]wFMCommunicate OK [11:47:22]requested_item fd.num is exist - process it [11:47:22]SAM_PROTO_GetFieldsCounters [11:47:22]wFMCommunicate request_size=4 [11:47:22]MH_SAM_APDU [11:47:22]CAPDU: 80 13 00 00 [11:47:22]Write to MH i2c: E2 08 00 72 DF 80 13 00 00 00 00 00 00 CD [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:22]Read from MH i2c: E2 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 62 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 62 00 72 DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:47:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:22]wFMCommunicate OK [11:47:22]SAM_PROTO_GetFieldsCounters done [11:47:22]requested_item shift.num is exist - process it [11:47:22]requested_item shift.opened is exist - process it [11:47:22]req_shift_opened [11:47:22]FM_GetShiftState [11:47:22]SAM_PROTO_GetShiftState [11:47:22]wFMCommunicate request_size=4 [11:47:22]MH_SAM_APDU [11:47:22]CAPDU: 80 13 01 00 [11:47:22]Write to MH i2c: E2 08 00 73 DF 80 13 01 00 00 00 00 00 CF [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:22]Read from MH i2c: E2 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 0E 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 0E 00 73 DF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 17 [11:47:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:47:22]wFMCommunicate OK [11:47:22]SAM_PROTO_GetShiftState done [11:47:22]FM_GetShiftState done [11:47:22]req_shift_opened done [11:47:22]requested_item shift.open_date is exist - process it [11:47:22]req_shift_open_date [11:47:22]req_shift_open_date done [11:47:22]produce_requested_data done [11:47:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165640,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:47:22]process_action_free close_receipt [11:47:22]json_value_free [11:47:22]json_value_free done [11:47:22]process_json_proto returns [11:47:22]Send response to host [11:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165640,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:47:22]free response buf [11:47:22]execute_script done [11:47:22]execute_script returns [11:47:22]free content buf [11:47:22]Sock 7.Close socket [11:47:22]Sock 7.Thread stoped [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:29]accept exits with 9 [11:48:29]New connection [11:48:29]New thread 3066920292 created [11:48:29]Thread 3066776932 joined [11:48:29]Waiting for new connection... [11:48:29] Sock 9.Parse request [11:48:29]Sock 9.Check first char [11:48:29]Sock 9.First char is OK [11:48:29]request: POST /json_proto HTTP/1.0 [11:48:29]Method: POST [11:48:29]URL: /json_proto [11:48:29]Method is POST - this is cgi request [11:48:29]url: /json_proto [11:48:29]query_string will be loaded in cgi processing [11:48:29]execute_cgi json_proto POST (null) [11:48:29]execute_cgi path=json_proto method=POST [11:48:29]POST find Content-Length [11:48:29]Host: 172.17.53.195:8080 [11:48:29]Content-Length: 674 [11:48:29]Content-Type: application/json [11:48:29] [11:48:29]POST finish read [11:48:29]Found Content-Length = 674 [11:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220204", "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" : 76.20, "quantity" : 8.540, "sum" : 650.75, "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:48:29]execute_script... [11:48:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220204", "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" : 76.20, "quantity" : 8.540, "sum" : 650.75, "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:48:29]POST & json_proto [11:48:29]process_json_proto [11:48:29]json parsed OK: [11:48:29]protocol is kg_v1.0 [11:48:29]action value=close_receipt [11:48:29]process_action close_receipt [11:48:29]cmd_close_receipt [11:48:29]MH_GetDate [11:48:29]Write to MH i2c: F0 00 00 74 DF 42 [11:48:29]Write i2c OK [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: F0 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: F0 09 00 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: F0 09 00 74 DF 00 19 EE 14 67 21 48 4A 65 E5 [11:48:29]GetLastDocTimeStamp 1729424850 [11:48:29]current date 1729424921 [11:48:29]FM_GetShiftState [11:48:29]SAM_PROTO_GetShiftState [11:48:29]wFMCommunicate request_size=4 [11:48:29]MH_SAM_APDU [11:48:29]CAPDU: 80 13 01 00 [11:48:29]Write to MH i2c: E2 08 00 75 DF 80 13 01 00 00 00 00 00 D1 [11:48:29]Write i2c OK [11:48:29]MH_I2C_Read... [11:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:29]Read from MH i2c: E2 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: E2 0E 00 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: E2 0E 00 75 DF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 19 [11:48:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:48:29]wFMCommunicate OK [11:48:29]SAM_PROTO_GetShiftState done [11:48:29]FM_GetShiftState done [11:48:29]opened in 1729384561 [11:48:29]opened+sec_in_day 1729470961 [11:48:29]quantity*price = 65074 [11:48:29]sum+1 = 65076 [11:48:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.11 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 123 20.10.2024 11:48 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165641 ФПД: 72654156865209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165641&fm=72654156865209&tin=02508201610067®Number=0000000000091764&sum=65000 [11:48:30]StoreToDocumentArchive [11:48:30]shift 534 fd 165641 [11:48:30]save to /storage/0534/doc_00165641 [11:48:30]save last doc name /storage/0534/doc_00165641 to /storage/kkm_last_doc_name [11:48:30]save OK [11:48:30]Clear old archive folders... [11:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:48:30]tlvbuf is 018A2A70 [11:48:30]SAM_PROTO_ClearQueue [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 09 00 00 [11:48:30]Write to MH i2c: E2 08 00 82 DF 80 09 00 00 00 00 00 00 D3 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 03 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 03 00 82 DF 00 90 00 D5 [11:48:30]RAPDU: 90 00 [11:48:30]wFMCommunicate OK [11:48:30]SAM_PROTO_ClearQueue done [11:48:30]KKMCreateOFDPacket [11:48:30]OFDProtocolAddRootSTLVToBuf [11:48:30]FM_MakeSignedData [11:48:30]FM_MakeSignedData [11:48:30]SAM_PROTO_SignData [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 0D 01 02 [11:48:30]Write to MH i2c: E2 08 00 83 DF 80 0D 01 02 00 00 00 00 DB [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 03 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 03 00 83 DF 00 90 00 D6 [11:48:30]RAPDU: 90 00 [11:48:30]wFMCommunicate OK [11:48:30]wFMCommunicate request_size=255 [11:48:30]MH_SAM_APDU [11:48: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 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 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 FF 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 7B 00 00 00 F4 03 04 00 19 EE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 87 02 00 35 04 06 00 42 14 1D 36 [11:48:30]Write to MH i2c: E2 02 01 84 DF 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 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 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 FF 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 7B 00 00 00 F4 03 04 00 19 EE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 87 02 00 35 04 06 00 42 14 1D 36 00 00 43 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 84 DF 00 90 00 D7 [11:48:31]RAPDU: 90 00 [11:48:31]wFMCommunicate OK [11:48:31]wFMCommunicate request_size=7 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 0D 02 02 02 1E B9 [11:48:31]Write to MH i2c: E2 0A 00 85 DF 80 0D 02 02 02 00 1E B9 00 00 B9 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 85 DF 00 90 00 D8 [11:48:31]RAPDU: 90 00 [11:48:31]wFMCommunicate OK [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 0D 03 02 [11:48:31]Write to MH i2c: E2 08 00 86 DF 80 0D 03 02 00 00 00 00 E0 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 0B 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 0B 00 86 DF 00 2D AF 18 88 28 E6 CF BB 90 00 F5 [11:48:31]RAPDU: 2D AF 18 88 28 E6 CF BB 90 00 [11:48:31]wFMCommunicate OK [11:48:31]SAM_PROTO_SignData done [11:48:31]FM_MakeSignedData done [11:48:31]CreateOFDProtocolMessage [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 11 00 00 [11:48:31]Write to MH i2c: E2 08 00 87 DF 80 11 00 00 00 00 00 00 E0 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 17 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 17 00 87 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [11:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:48:31]wFMCommunicate OK [11:48:31]CreateOFDProtocolMessage done [11:48:31]OFDSenderStorePacket 165641 [11:48:31]StoreOFDPacket docnum=165641 [11:48:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 CF 12 04 01 8D 3D 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 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 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 FF 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 7B 00 00 00 F4 03 04 00 19 EE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 87 02 00 35 04 06 00 42 14 1D 36 1E B9 2D AF 18 88 28 E6 CF BB [11:48:31]CheckFolder [11:48:31]dirname=/storage/ofd_packets [11:48:31]CheckFolder done [11:48:31]ProducePacketName [11:48:31]name=ofd_packets/00165641 [11:48:31]NVStorageSaveData ofd_packets/00165641 [11:48:31]File name is /storage/ofd_packets/00165641 [11:48:31]Write 298 bytes [11:48:31]NVStorageSaveData done [11:48:31]OFDSenderStorePacket done [11:48:31]KKMCreateOFDPacket done [11:48:31]NVStorageSaveData kkm_last_timestamp [11:48:31]File name is /storage/kkm_last_timestamp [11:48:31]Write 4 bytes [11:48:31]NVStorageSaveData done [11:48:31]ExternCall_PrintAddStr [11:48:31]wPrintStart [11:48:31]Write to MH i2c: 01 00 00 88 DF 67 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: 01 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: 01 07 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: 01 07 00 88 DF 00 00 00 00 00 FF 0F 7C [11:48:31]RasterBufferAndPrint [11:48:31]line Счет N : (1)220204 [11:48:31]line ИНН: 02508201610067 [11:48:31]line Контрольно-Кассовый Чек [11:48:31]line ПРОДАЖА [11:48:31]line ТРК (МРК, ГНК) : 21 [11:48:31]line Товар: 2710194210 [11:48:31]line ДТ-К-5 [11:48:31]line 8.540 * 76.20 [11:48:31]line = 650.75 [11:48:31]line НДС 12% НСП 1% [11:48:31]line > о реализуемом товаре [11:48:31]line ОКРУГЛЕНИЕ: -0.75 [11:48:31]line ИТОГО: 650.00 [11:48:31]line Внесено: 650.00 [11:48:31]line СДАЧА: 0.00 [11:48:31]line НСП 1% : 5.76 [11:48:31]line НДС 12% : 69.11 [11:48:31]line Наличными: 650.00 [11:48:31]line Безнал.: 0.00 [11:48:31]line Место: АЗС № 161 "Партнер Нефть" [11:48:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:48:31]line СНО: Общий режим [11:48:31]line Чек 123 20.10.2024 11:48 [11:48:31]line Смена: 534 ФФД: 1.0 [11:48:31]line ЗНМ: 0300000104 [11:48:31]line РНМ: 0000000000091764 [11:48:31]line Версия ККМ: 001 [11:48:31]line ФМ: 0000000000871759 [11:48:31]line ФД: 165641 [11:48:31]line ФПД: 72654156865209 [11:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165641&fm=72654156865209&tin=02508201610067®Number=0000000000091764&sum=65000 [11:48:31]OFD Sender: Processing packet 165641 [packets to send 48, broken 47] [11:48:31]ProducePacketName [11:48:31]name=ofd_packets/00165641 [11:48:31]OFD Sender: To server: pG, [11:48:31]CommunicateWithHost lk.salyk.kg:30040 [11:48:31]ConnectInit lk.salyk.kg [11:48:31]written 0, free lines is 4095 [11:48:31]Connected sock=10 [11:48:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 CF 12 04 01 8D 3D 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 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 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 FF 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 7B 00 00 00 F4 03 04 00 19 EE 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 87 02 00 35 04 06 00 42 14 1D 36 1E B9 2D AF 18 88 28 E6 CF BB [11:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1C FB 47 00 28 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 87 02 00 F4 03 04 00 8B 94 14 67 B6 04 01 00 00 48 05 E5 54 FA 53 BC 1D [11:48:31]CommunicateWithHost err = 0 [11:48:31]CheckOFDResponse [11:48:31]1017 (14) - 77093643461234 [11:48:31]1041 (16) - 0000000000871759 [11:48:31]1040 (4) - 165641 [11:48:31]1012 (4) - 20.10.2024 05:26 [11:48:31]1206 (1) - 0 [11:48:31]OFD Sender: Remove packet 165641 [11:48:31]ProducePacketName [11:48:31]name=ofd_packets/00165641 [11:48:31]NVStorageDeleteData [11:48:32]Write to MH i2c: 01 00 00 B3 DF 92 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 07 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 07 00 B3 DF 00 00 00 00 00 BE 0C 63 [11:48:32]RasterBufferAndPrint [11:48:32]line [11:48:32]line [11:48:32]line [11:48:32]line [11:48:32]line [11:48:32]written 0, free lines is 3268 [11:48:32]MH_Cut [11:48:32]Write to MH i2c: D1 01 00 BA DF 01 6B [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: D1 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: D1 01 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: D1 01 00 BA DF 00 6A [11:48:32]Write to MH i2c: 01 00 00 BB DF 9A [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]OFD Sender: No OFD packet to send [11:48:32]*** Cut start [11:48:32]*** Partial cut [11:48:32]*** CUTSNS_PIN = 1 [11:48:32]*** CUTSNS_PIN = 0 [11:48:33]*** Brake cut motor [11:48:33]Read from MH i2c: 01 [11:48:33]MH_I2C_Read... [11:48:33]*** Stop cut motor [11:48:33]*** Cut end [11:48:33]Read from MH i2c: 01 07 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 BB DF 00 00 00 00 00 FF 0F AF [11:48:33]process_action close_receipt done [11:48:33]requested_data is exist [11:48:33]produce_requested_data [11:48:33]requested_item fm.sn is exist - process it [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 11 00 00 [11:48:33]Write to MH i2c: E2 08 00 BC DF 80 11 00 00 00 00 00 00 15 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 17 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 17 00 BC DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [11:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:48:33]wFMCommunicate OK [11:48:33]requested_item fd.num is exist - process it [11:48:33]SAM_PROTO_GetFieldsCounters [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 13 00 00 [11:48:33]Write to MH i2c: E2 08 00 BD DF 80 13 00 00 00 00 00 00 18 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 62 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 62 00 BD DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [11:48:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:33]wFMCommunicate OK [11:48:33]SAM_PROTO_GetFieldsCounters done [11:48:33]requested_item shift.num is exist - process it [11:48:33]requested_item shift.opened is exist - process it [11:48:33]req_shift_opened [11:48:33]FM_GetShiftState [11:48:33]SAM_PROTO_GetShiftState [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 13 01 00 [11:48:33]Write to MH i2c: E2 08 00 BE DF 80 13 01 00 00 00 00 00 1A [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 BE DF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 62 [11:48:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:48:33]wFMCommunicate OK [11:48:33]SAM_PROTO_GetShiftState done [11:48:33]FM_GetShiftState done [11:48:33]req_shift_opened done [11:48:33]requested_item shift.open_date is exist - process it [11:48:33]req_shift_open_date [11:48:33]req_shift_open_date done [11:48:33]produce_requested_data done [11:48:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165641,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:48:33]process_action_free close_receipt [11:48:33]json_value_free [11:48:33]json_value_free done [11:48:33]process_json_proto returns [11:48:33]Send response to host [11:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165641,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:48:33]free response buf [11:48:33]execute_script done [11:48:33]execute_script returns [11:48:33]free content buf [11:48:33]Sock 9.Close socket [11:48:33]Sock 9.Thread stoped [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:23]accept exits with 7 [11:52:23]New connection [11:52:23]New thread 3066776932 created [11:52:23]Thread 3066920292 joined [11:52:23]Waiting for new connection... [11:52:23] Sock 7.Parse request [11:52:23]Sock 7.Check first char [11:52:23]Sock 7.First char is OK [11:52:23]request: POST /json_proto HTTP/1.0 [11:52:23]Method: POST [11:52:23]URL: /json_proto [11:52:23]Method is POST - this is cgi request [11:52:23]url: /json_proto [11:52:23]query_string will be loaded in cgi processing [11:52:23]execute_cgi json_proto POST (null) [11:52:23]execute_cgi path=json_proto method=POST [11:52:23]POST find Content-Length [11:52:23]Host: 172.17.53.195:8080 [11:52:23]Content-Length: 677 [11:52:23]Content-Type: application/json [11:52:23] [11:52:23]POST finish read [11:52:23]Found Content-Length = 677 [11:52:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:23]execute_script... [11:52: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)220205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:23]POST & json_proto [11:52:23]process_json_proto [11:52:23]json parsed OK: [11:52:23]protocol is kg_v1.0 [11:52:23]action value=close_receipt [11:52:23]process_action close_receipt [11:52:23]cmd_close_receipt [11:52:23]MH_GetDate [11:52:23]Write to MH i2c: F0 00 00 BF DF 8D [11:52:23]Write i2c OK [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: F0 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: F0 09 00 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: F0 09 00 BF DF 00 04 EF 14 67 21 48 4A 65 1C [11:52:23]GetLastDocTimeStamp 1729424921 [11:52:23]current date 1729425156 [11:52:23]FM_GetShiftState [11:52:23]SAM_PROTO_GetShiftState [11:52:23]wFMCommunicate request_size=4 [11:52:23]MH_SAM_APDU [11:52:23]CAPDU: 80 13 01 00 [11:52:23]Write to MH i2c: E2 08 00 C0 DF 80 13 01 00 00 00 00 00 1C [11:52:23]Write i2c OK [11:52:23]MH_I2C_Read... [11:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:23]Read from MH i2c: E2 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: E2 0E 00 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: E2 0E 00 C0 DF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 64 [11:52:23]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:52:23]wFMCommunicate OK [11:52:23]SAM_PROTO_GetShiftState done [11:52:23]FM_GetShiftState done [11:52:23]opened in 1729384561 [11:52:23]opened+sec_in_day 1729470961 [11:52:23]quantity*price = 50010 [11:52:23]sum+1 = 50012 [11:52:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 124 20.10.2024 11:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165642 ФПД: 237953153127591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115236&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165642&fm=237953153127591&tin=02508201610067®Number=0000000000091764&sum=50000 [11:52:25]StoreToDocumentArchive [11:52:25]shift 534 fd 165642 [11:52:25]save to /storage/0534/doc_00165642 [11:52:25]save last doc name /storage/0534/doc_00165642 to /storage/kkm_last_doc_name [11:52:25]save OK [11:52:25]Clear old archive folders... [11:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:25]tlvbuf is 0162CB10 [11:52:25]SAM_PROTO_ClearQueue [11:52:25]wFMCommunicate request_size=4 [11:52:25]MH_SAM_APDU [11:52:25]CAPDU: 80 09 00 00 [11:52:25]Write to MH i2c: E2 08 00 CD DF 80 09 00 00 00 00 00 00 1E [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:25]Read from MH i2c: E2 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 03 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 03 00 CD DF 00 90 00 20 [11:52:25]RAPDU: 90 00 [11:52:25]wFMCommunicate OK [11:52:25]SAM_PROTO_ClearQueue done [11:52:25]KKMCreateOFDPacket [11:52:25]OFDProtocolAddRootSTLVToBuf [11:52:25]FM_MakeSignedData [11:52:25]FM_MakeSignedData [11:52:25]SAM_PROTO_SignData [11:52:25]wFMCommunicate request_size=4 [11:52:25]MH_SAM_APDU [11:52:25]CAPDU: 80 0D 01 02 [11:52:25]Write to MH i2c: E2 08 00 CE DF 80 0D 01 02 00 00 00 00 26 [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:25]Read from MH i2c: E2 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 03 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 03 00 CE DF 00 90 00 21 [11:52:25]RAPDU: 90 00 [11:52:25]wFMCommunicate OK [11:52:25]wFMCommunicate request_size=255 [11:52:25]MH_SAM_APDU [11:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 04 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 87 02 00 35 04 06 00 D8 [11:52:25]Write to MH i2c: E2 02 01 CF DF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 04 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 87 02 00 35 04 06 00 D8 00 00 01 [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:25]Read from MH i2c: E2 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 03 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 03 00 CF DF 00 90 00 22 [11:52:25]RAPDU: 90 00 [11:52:25]wFMCommunicate OK [11:52:25]wFMCommunicate request_size=10 [11:52:25]MH_SAM_APDU [11:52:25]CAPDU: 80 0D 02 02 05 6A C9 2A 54 A7 [11:52:25]Write to MH i2c: E2 0D 00 D0 DF 80 0D 02 02 05 00 6A C9 2A 54 A7 00 00 8B [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:25]Read from MH i2c: E2 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 03 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 03 00 D0 DF 00 90 00 23 [11:52:25]RAPDU: 90 00 [11:52:25]wFMCommunicate OK [11:52:25]wFMCommunicate request_size=4 [11:52:25]MH_SAM_APDU [11:52:25]CAPDU: 80 0D 03 02 [11:52:25]Write to MH i2c: E2 08 00 D1 DF 80 0D 03 02 00 00 00 00 2B [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:25]Read from MH i2c: E2 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 0B 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 0B 00 D1 DF 00 88 48 F3 78 95 72 96 38 90 00 3C [11:52:25]RAPDU: 88 48 F3 78 95 72 96 38 90 00 [11:52:25]wFMCommunicate OK [11:52:25]SAM_PROTO_SignData done [11:52:25]FM_MakeSignedData done [11:52:25]CreateOFDProtocolMessage [11:52:25]wFMCommunicate request_size=4 [11:52:25]MH_SAM_APDU [11:52:25]CAPDU: 80 11 00 00 [11:52:25]Write to MH i2c: E2 08 00 D2 DF 80 11 00 00 00 00 00 00 2B [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:25]Read from MH i2c: E2 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 17 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: E2 17 00 D2 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [11:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:52:25]wFMCommunicate OK [11:52:25]CreateOFDProtocolMessage done [11:52:25]OFDSenderStorePacket 165642 [11:52:25]StoreOFDPacket docnum=165642 [11:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 8F 07 01 EA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 04 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 87 02 00 35 04 06 00 D8 6A C9 2A 54 A7 88 48 F3 78 95 72 96 38 [11:52:25]CheckFolder [11:52:25]dirname=/storage/ofd_packets [11:52:25]CheckFolder done [11:52:25]ProducePacketName [11:52:25]name=ofd_packets/00165642 [11:52:25]NVStorageSaveData ofd_packets/00165642 [11:52:25]File name is /storage/ofd_packets/00165642 [11:52:25]Write 301 bytes [11:52:25]NVStorageSaveData done [11:52:25]OFDSenderStorePacket done [11:52:25]KKMCreateOFDPacket done [11:52:25]NVStorageSaveData kkm_last_timestamp [11:52:25]File name is /storage/kkm_last_timestamp [11:52:25]Write 4 bytes [11:52:25]NVStorageSaveData done [11:52:25]ExternCall_PrintAddStr [11:52:25]wPrintStart [11:52:25]Write to MH i2c: 01 00 00 D3 DF B2 [11:52:25]Write i2c OK [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: 01 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: 01 07 00 [11:52:25]MH_I2C_Read... [11:52:25]Read from MH i2c: 01 07 00 D3 DF 00 00 00 00 00 FF 0F C7 [11:52:25]RasterBufferAndPrint [11:52:25]line Счет N : (1)220205 [11:52:25]line ИНН: 02508201610067 [11:52:25]line Контрольно-Кассовый Чек [11:52:25]line ПРОДАЖА [11:52:25]line ТРК (МРК, ГНК) : 24 [11:52:25]line Товар: 2710124500 [11:52:25]line Аи-95-К-5 [11:52:25]line 6.740 * 74.20 [11:52:25]line = 500.11 [11:52:25]line НДС 12% НСП 1% [11:52:25]line > о реализуемом товаре [11:52:25]line ОКРУГЛЕНИЕ: -0.11 [11:52:25]line ИТОГО: 500.00 [11:52:25]line Внесено: 500.00 [11:52:25]line СДАЧА: 0.00 [11:52:25]line НСП 1% : 4.43 [11:52:25]line НДС 12% : 53.11 [11:52:25]line Наличными: 500.00 [11:52:25]line Безнал.: 0.00 [11:52:25]line Место: АЗС № 161 "Партнер Нефть" [11:52:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:52:25]line СНО: Общий режим [11:52:25]line Чек 124 20.10.2024 11:52 [11:52:25]line Смена: 534 ФФД: 1.0 [11:52:25]line ЗНМ: 0300000104 [11:52:25]line РНМ: 0000000000091764 [11:52:25]line Версия ККМ: 001 [11:52:25]line ФМ: 0000000000871759 [11:52:25]line ФД: 165642 [11:52:25]line ФПД: 237953153127591 [11:52:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115236&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165642&fm=237953153127591&tin=02508201610067®Number=0000000000091764&sum=50000 [11:52:25]OFD Sender: Processing packet 165642 [packets to send 48, broken 47] [11:52:25]ProducePacketName [11:52:25]name=ofd_packets/00165642 [11:52:25]OFD Sender: To server: pG, [11:52:25]CommunicateWithHost lk.salyk.kg:30040 [11:52:26]ConnectInit lk.salyk.kg [11:52:26]written 0, free lines is 4095 [11:52:26]Connected sock=10 [11:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 8F 07 01 EA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 04 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 87 02 00 35 04 06 00 D8 6A C9 2A 54 A7 88 48 F3 78 95 72 96 38 [11:52:26]Write to MH i2c: 01 00 00 FE DF DD [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 07 00 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 07 00 FE DF 00 00 00 00 00 C6 0C B6 [11:52:26]RasterBufferAndPrint [11:52:26]line [11:52:26]line [11:52:26]line [11:52:26]line [11:52:26]line [11:52:26]written 0, free lines is 3279 [11:52:26]MH_Cut [11:52:26]Write to MH i2c: D1 01 00 05 E0 01 B7 [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: D1 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: D1 01 00 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: D1 01 00 05 E0 00 B6 [11:52:26]Write to MH i2c: 01 00 00 06 E0 E6 [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 EE 47 00 20 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 31 37 35 39 10 04 04 00 0A 87 02 00 F4 03 04 00 76 95 14 67 B6 04 01 00 00 E8 69 FE 34 69 8B E8 BD [11:52:26]CommunicateWithHost err = 0 [11:52:26]CheckOFDResponse [11:52:26]1017 (14) - 77093643461234 [11:52:26]1041 (16) - 0000000000871759 [11:52:26]1040 (4) - 165642 [11:52:26]1012 (4) - 20.10.2024 05:30 [11:52:26]1206 (1) - 0 [11:52:26]OFD Sender: Remove packet 165642 [11:52:26]ProducePacketName [11:52:26]name=ofd_packets/00165642 [11:52:26]NVStorageDeleteData [11:52:27]OFD Sender: No OFD packet to send [11:52:27]*** Cut start [11:52:27]*** Partial cut [11:52:27]*** CUTSNS_PIN = 1 [11:52:27]*** CUTSNS_PIN = 0 [11:52:27]*** Brake cut motor [11:52:27]Read from MH i2c: 01 [11:52:27]MH_I2C_Read... [11:52:27]*** Stop cut motor [11:52:27]*** Cut end [11:52:27]Read from MH i2c: 01 07 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: 01 07 00 06 E0 00 00 00 00 00 FF 0F FB [11:52:27]process_action close_receipt done [11:52:27]requested_data is exist [11:52:27]produce_requested_data [11:52:27]requested_item fm.sn is exist - process it [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 11 00 00 [11:52:27]Write to MH i2c: E2 08 00 07 E0 80 11 00 00 00 00 00 00 61 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 17 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 17 00 07 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [11:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:52:27]wFMCommunicate OK [11:52:27]requested_item fd.num is exist - process it [11:52:27]SAM_PROTO_GetFieldsCounters [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 13 00 00 [11:52:27]Write to MH i2c: E2 08 00 08 E0 80 13 00 00 00 00 00 00 64 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:28]Read from MH i2c: E2 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 62 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 62 00 08 E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [11:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:28]wFMCommunicate OK [11:52:28]SAM_PROTO_GetFieldsCounters done [11:52:28]requested_item shift.num is exist - process it [11:52:28]requested_item shift.opened is exist - process it [11:52:28]req_shift_opened [11:52:28]FM_GetShiftState [11:52:28]SAM_PROTO_GetShiftState [11:52:28]wFMCommunicate request_size=4 [11:52:28]MH_SAM_APDU [11:52:28]CAPDU: 80 13 01 00 [11:52:28]Write to MH i2c: E2 08 00 09 E0 80 13 01 00 00 00 00 00 66 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:28]Read from MH i2c: E2 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 0E 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 0E 00 09 E0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AE [11:52:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:52:28]wFMCommunicate OK [11:52:28]SAM_PROTO_GetShiftState done [11:52:28]FM_GetShiftState done [11:52:28]req_shift_opened done [11:52:28]requested_item shift.open_date is exist - process it [11:52:28]req_shift_open_date [11:52:28]req_shift_open_date done [11:52:28]produce_requested_data done [11:52:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165642,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:52:28]process_action_free close_receipt [11:52:28]json_value_free [11:52:28]json_value_free done [11:52:28]process_json_proto returns [11:52:28]Send response to host [11:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165642,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:52:28]free response buf [11:52:28]execute_script done [11:52:28]execute_script returns [11:52:28]free content buf [11:52:28]Sock 7.Close socket [11:52:28]Sock 7.Thread stoped [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:28]accept exits with 9 [11:53:28]New connection [11:53:28]New thread 3066920292 created [11:53:28]Thread 3066776932 joined [11:53:28]Waiting for new connection... [11:53:28] Sock 9.Parse request [11:53:28]Sock 9.Check first char [11:53:28]Sock 9.First char is OK [11:53:28]request: POST /json_proto HTTP/1.0 [11:53:28]Method: POST [11:53:28]URL: /json_proto [11:53:28]Method is POST - this is cgi request [11:53:28]url: /json_proto [11:53:28]query_string will be loaded in cgi processing [11:53:28]execute_cgi json_proto POST (null) [11:53:28]execute_cgi path=json_proto method=POST [11:53:28]POST find Content-Length [11:53:28]Host: 172.17.53.195:8080 [11:53:28]Content-Length: 676 [11:53:28]Content-Type: application/json [11:53:28] [11:53:28]POST finish read [11:53:28]Found Content-Length = 676 [11:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:28]execute_script... [11:53: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)220206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:28]POST & json_proto [11:53:28]process_json_proto [11:53:28]json parsed OK: [11:53:28]protocol is kg_v1.0 [11:53:28]action value=close_receipt [11:53:28]process_action close_receipt [11:53:28]cmd_close_receipt [11:53:28]MH_GetDate [11:53:28]Write to MH i2c: F0 00 00 0A E0 D9 [11:53:28]Write i2c OK [11:53:28]MH_I2C_Read... [11:53:28]Read from MH i2c: F0 [11:53:28]MH_I2C_Read... [11:53:28]Read from MH i2c: F0 09 00 [11:53:28]MH_I2C_Read... [11:53:28]Read from MH i2c: F0 09 00 0A E0 00 44 EF 14 67 21 48 4A 65 A8 [11:53:28]GetLastDocTimeStamp 1729425156 [11:53:28]current date 1729425220 [11:53:28]FM_GetShiftState [11:53:28]SAM_PROTO_GetShiftState [11:53:28]wFMCommunicate request_size=4 [11:53:28]MH_SAM_APDU [11:53:28]CAPDU: 80 13 01 00 [11:53:28]Write to MH i2c: E2 08 00 0B E0 80 13 01 00 00 00 00 00 68 [11:53:28]Write i2c OK [11:53:28]MH_I2C_Read... [11:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:28]Read from MH i2c: E2 [11:53:28]MH_I2C_Read... [11:53:28]Read from MH i2c: E2 0E 00 [11:53:28]MH_I2C_Read... [11:53:28]Read from MH i2c: E2 0E 00 0B E0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B0 [11:53:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:53:28]wFMCommunicate OK [11:53:28]SAM_PROTO_GetShiftState done [11:53:28]FM_GetShiftState done [11:53:28]opened in 1729384561 [11:53:28]opened+sec_in_day 1729470961 [11:53:28]quantity*price = 99974 [11:53:28]sum+1 = 99975 [11:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 125 20.10.2024 11:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165643 ФПД: 76481852152822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115341&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165643&fm=76481852152822&tin=02508201610067®Number=0000000000091764&sum=99900 [11:53:29]StoreToDocumentArchive [11:53:29]shift 534 fd 165643 [11:53:29]save to /storage/0534/doc_00165643 [11:53:29]save last doc name /storage/0534/doc_00165643 to /storage/kkm_last_doc_name [11:53:29]save OK [11:53:29]Clear old archive folders... [11:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:53:30]tlvbuf is 01485020 [11:53:30]SAM_PROTO_ClearQueue [11:53:30]wFMCommunicate request_size=4 [11:53:30]MH_SAM_APDU [11:53:30]CAPDU: 80 09 00 00 [11:53:30]Write to MH i2c: E2 08 00 18 E0 80 09 00 00 00 00 00 00 6A [11:53:30]Write i2c OK [11:53:30]MH_I2C_Read... [11:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:30]Read from MH i2c: E2 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 03 00 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 03 00 18 E0 00 90 00 6C [11:53:30]RAPDU: 90 00 [11:53:30]wFMCommunicate OK [11:53:30]SAM_PROTO_ClearQueue done [11:53:30]KKMCreateOFDPacket [11:53:30]OFDProtocolAddRootSTLVToBuf [11:53:30]FM_MakeSignedData [11:53:30]FM_MakeSignedData [11:53:30]SAM_PROTO_SignData [11:53:30]wFMCommunicate request_size=4 [11:53:30]MH_SAM_APDU [11:53:30]CAPDU: 80 0D 01 02 [11:53:30]Write to MH i2c: E2 08 00 19 E0 80 0D 01 02 00 00 00 00 72 [11:53:30]Write i2c OK [11:53:30]MH_I2C_Read... [11:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:30]Read from MH i2c: E2 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 03 00 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 03 00 19 E0 00 90 00 6D [11:53:30]RAPDU: 90 00 [11:53:30]wFMCommunicate OK [11:53:30]wFMCommunicate request_size=255 [11:53:30]MH_SAM_APDU [11:53: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 7D 00 00 00 F4 03 04 00 45 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 87 02 00 35 04 06 00 45 8F 51 A1 [11:53:30]Write to MH i2c: E2 02 01 1A E0 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 7D 00 00 00 F4 03 04 00 45 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 87 02 00 35 04 06 00 45 8F 51 A1 00 00 75 [11:53:30]Write i2c OK [11:53:30]MH_I2C_Read... [11:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:30]Read from MH i2c: E2 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 03 00 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 03 00 1A E0 00 90 00 6E [11:53:30]RAPDU: 90 00 [11:53:30]wFMCommunicate OK [11:53:30]wFMCommunicate request_size=7 [11:53:30]MH_SAM_APDU [11:53:30]CAPDU: 80 0D 02 02 02 1B F6 [11:53:30]Write to MH i2c: E2 0A 00 1B E0 80 0D 02 02 02 00 1B F6 00 00 8A [11:53:30]Write i2c OK [11:53:30]MH_I2C_Read... [11:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:30]Read from MH i2c: E2 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 03 00 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 03 00 1B E0 00 90 00 6F [11:53:30]RAPDU: 90 00 [11:53:30]wFMCommunicate OK [11:53:30]wFMCommunicate request_size=4 [11:53:30]MH_SAM_APDU [11:53:30]CAPDU: 80 0D 03 02 [11:53:30]Write to MH i2c: E2 08 00 1C E0 80 0D 03 02 00 00 00 00 77 [11:53:30]Write i2c OK [11:53:30]MH_I2C_Read... [11:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:30]Read from MH i2c: E2 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 0B 00 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 0B 00 1C E0 00 F4 6A D3 F9 7F F6 21 A9 90 00 E1 [11:53:30]RAPDU: F4 6A D3 F9 7F F6 21 A9 90 00 [11:53:30]wFMCommunicate OK [11:53:30]SAM_PROTO_SignData done [11:53:30]FM_MakeSignedData done [11:53:30]CreateOFDProtocolMessage [11:53:30]wFMCommunicate request_size=4 [11:53:30]MH_SAM_APDU [11:53:30]CAPDU: 80 11 00 00 [11:53:30]Write to MH i2c: E2 08 00 1D E0 80 11 00 00 00 00 00 00 77 [11:53:30]Write i2c OK [11:53:30]MH_I2C_Read... [11:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:30]Read from MH i2c: E2 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 17 00 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: E2 17 00 1D E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [11:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:53:30]wFMCommunicate OK [11:53:30]CreateOFDProtocolMessage done [11:53:30]OFDSenderStorePacket 165643 [11:53:30]StoreOFDPacket docnum=165643 [11:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A1 92 04 01 27 6E 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 7D 00 00 00 F4 03 04 00 45 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 87 02 00 35 04 06 00 45 8F 51 A1 1B F6 F4 6A D3 F9 7F F6 21 A9 [11:53:30]CheckFolder [11:53:30]dirname=/storage/ofd_packets [11:53:30]CheckFolder done [11:53:30]ProducePacketName [11:53:30]name=ofd_packets/00165643 [11:53:30]NVStorageSaveData ofd_packets/00165643 [11:53:30]File name is /storage/ofd_packets/00165643 [11:53:30]Write 298 bytes [11:53:30]NVStorageSaveData done [11:53:30]OFDSenderStorePacket done [11:53:30]KKMCreateOFDPacket done [11:53:30]NVStorageSaveData kkm_last_timestamp [11:53:30]File name is /storage/kkm_last_timestamp [11:53:30]Write 4 bytes [11:53:30]NVStorageSaveData done [11:53:30]ExternCall_PrintAddStr [11:53:30]wPrintStart [11:53:30]Write to MH i2c: 01 00 00 1E E0 FE [11:53:30]Write i2c OK [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: 01 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: 01 07 00 [11:53:30]MH_I2C_Read... [11:53:30]Read from MH i2c: 01 07 00 1E E0 00 00 00 00 00 FF 0F 13 [11:53:30]RasterBufferAndPrint [11:53:30]line Счет N : (1)220206 [11:53:30]line ИНН: 02508201610067 [11:53:30]line Контрольно-Кассовый Чек [11:53:30]line ПРОДАЖА [11:53:30]line ТРК (МРК, ГНК) : 41 [11:53:30]line Товар: 2710194210 [11:53:30]line ДТ-К-5 [11:53:30]line 13.120 * 76.20 [11:53:30]line = 999.74 [11:53:30]line НДС 12% НСП 1% [11:53:30]line > о реализуемом товаре [11:53:30]line ОКРУГЛЕНИЕ: -0.74 [11:53:30]line ИТОГО: 999.00 [11:53:30]line Внесено: 1000.00 [11:53:30]line СДАЧА: 1.00 [11:53:30]line НСП 1% : 8.85 [11:53:30]line НДС 12% : 106.17 [11:53:30]line Наличными: 999.00 [11:53:30]line Безнал.: 0.00 [11:53:30]line Место: АЗС № 161 "Партнер Нефть" [11:53:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:53:30]line СНО: Общий режим [11:53:30]line Чек 125 20.10.2024 11:53 [11:53:30]line Смена: 534 ФФД: 1.0 [11:53:30]line ЗНМ: 0300000104 [11:53:30]line РНМ: 0000000000091764 [11:53:30]line Версия ККМ: 001 [11:53:30]line ФМ: 0000000000871759 [11:53:30]line ФД: 165643 [11:53:30]line ФПД: 76481852152822 [11:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115341&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165643&fm=76481852152822&tin=02508201610067®Number=0000000000091764&sum=99900 [11:53:30]OFD Sender: Processing packet 165643 [packets to send 48, broken 47] [11:53:30]ProducePacketName [11:53:30]name=ofd_packets/00165643 [11:53:30]OFD Sender: To server: pG, [11:53:30]CommunicateWithHost lk.salyk.kg:30040 [11:53:30]ConnectInit lk.salyk.kg [11:53:30]written 0, free lines is 4095 [11:53:30]Connected sock=10 [11:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A1 92 04 01 27 6E 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 7D 00 00 00 F4 03 04 00 45 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 87 02 00 35 04 06 00 45 8F 51 A1 1B F6 F4 6A D3 F9 7F F6 21 A9 [11:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DD 60 47 00 F1 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 87 02 00 F4 03 04 00 B7 95 14 67 B6 04 01 00 00 F2 7D 82 2F 08 2A 9B DF [11:53:31]CommunicateWithHost err = 0 [11:53:31]CheckOFDResponse [11:53:31]1017 (14) - 77093643461234 [11:53:31]1041 (16) - 0000000000871759 [11:53:31]1040 (4) - 165643 [11:53:31]1012 (4) - 20.10.2024 05:31 [11:53:31]1206 (1) - 0 [11:53:31]OFD Sender: Remove packet 165643 [11:53:31]ProducePacketName [11:53:31]name=ofd_packets/00165643 [11:53:31]NVStorageDeleteData [11:53:31]Write to MH i2c: 01 00 00 49 E0 29 [11:53:31]Write i2c OK [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: 01 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: 01 07 00 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: 01 07 00 49 E0 00 00 00 00 00 D0 0C 0C [11:53:31]RasterBufferAndPrint [11:53:31]line [11:53:31]line [11:53:31]line [11:53:31]line [11:53:31]line [11:53:31]written 0, free lines is 3287 [11:53:31]MH_Cut [11:53:31]Write to MH i2c: D1 01 00 50 E0 01 02 [11:53:31]Write i2c OK [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: D1 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: D1 01 00 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: D1 01 00 50 E0 00 01 [11:53:31]Write to MH i2c: 01 00 00 51 E0 31 [11:53:31]Write i2c OK [11:53:31]MH_I2C_Read... [11:53:31]OFD Sender: No OFD packet to send [11:53:32]*** Cut start [11:53:32]*** Partial cut [11:53:32]*** CUTSNS_PIN = 1 [11:53:32]*** CUTSNS_PIN = 0 [11:53:32]*** Brake cut motor [11:53:32]Read from MH i2c: 01 [11:53:32]MH_I2C_Read... [11:53:32]*** Stop cut motor [11:53:32]*** Cut end [11:53:32]Read from MH i2c: 01 07 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: 01 07 00 51 E0 00 00 00 00 00 FF 0F 46 [11:53:32]process_action close_receipt done [11:53:32]requested_data is exist [11:53:32]produce_requested_data [11:53:32]requested_item fm.sn is exist - process it [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 11 00 00 [11:53:32]Write to MH i2c: E2 08 00 52 E0 80 11 00 00 00 00 00 00 AC [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 17 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 17 00 52 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [11:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:53:32]wFMCommunicate OK [11:53:32]requested_item fd.num is exist - process it [11:53:32]SAM_PROTO_GetFieldsCounters [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 13 00 00 [11:53:32]Write to MH i2c: E2 08 00 53 E0 80 13 00 00 00 00 00 00 AF [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 62 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 62 00 53 E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [11:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:32]wFMCommunicate OK [11:53:32]SAM_PROTO_GetFieldsCounters done [11:53:32]requested_item shift.num is exist - process it [11:53:32]requested_item shift.opened is exist - process it [11:53:32]req_shift_opened [11:53:32]FM_GetShiftState [11:53:32]SAM_PROTO_GetShiftState [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 13 01 00 [11:53:32]Write to MH i2c: E2 08 00 54 E0 80 13 01 00 00 00 00 00 B1 [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:33]Read from MH i2c: E2 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 0E 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 0E 00 54 E0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F9 [11:53:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:53:33]wFMCommunicate OK [11:53:33]SAM_PROTO_GetShiftState done [11:53:33]FM_GetShiftState done [11:53:33]req_shift_opened done [11:53:33]requested_item shift.open_date is exist - process it [11:53:33]req_shift_open_date [11:53:33]req_shift_open_date done [11:53:33]produce_requested_data done [11:53:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165643,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:53:33]process_action_free close_receipt [11:53:33]json_value_free [11:53:33]json_value_free done [11:53:33]process_json_proto returns [11:53:33]Send response to host [11:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165643,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:53:33]free response buf [11:53:33]execute_script done [11:53:33]execute_script returns [11:53:33]free content buf [11:53:33]Sock 9.Close socket [11:53:33]Sock 9.Thread stoped [11:53:36]OFD Sender: No OFD packet to send [11:53:39]accept exits with 7 [11:53:39]New connection [11:53:39]New thread 3066776932 created [11:53:39]Thread 3066920292 joined [11:53:39]Waiting for new connection... [11:53:39] Sock 7.Parse request [11:53:39]Sock 7.Check first char [11:53:39]Sock 7.First char is OK [11:53:39]request: POST /json_proto HTTP/1.0 [11:53:39]Method: POST [11:53:39]URL: /json_proto [11:53:39]Method is POST - this is cgi request [11:53:39]url: /json_proto [11:53:39]query_string will be loaded in cgi processing [11:53:39]execute_cgi json_proto POST (null) [11:53:39]execute_cgi path=json_proto method=POST [11:53:39]POST find Content-Length [11:53:39]Host: 172.17.53.195:8080 [11:53:39]Content-Length: 677 [11:53:39]Content-Type: application/json [11:53:39] [11:53:39]POST finish read [11:53:39]Found Content-Length = 677 [11:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [11:53:39]execute_script... [11:53: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)220207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [11:53:39]POST & json_proto [11:53:39]process_json_proto [11:53:39]json parsed OK: [11:53:39]protocol is kg_v1.0 [11:53:39]action value=close_receipt [11:53:39]process_action close_receipt [11:53:39]cmd_close_receipt [11:53:39]MH_GetDate [11:53:39]Write to MH i2c: F0 00 00 55 E0 24 [11:53:39]Write i2c OK [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: F0 [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: F0 09 00 [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: F0 09 00 55 E0 00 4F EF 14 67 21 48 4A 65 FE [11:53:39]GetLastDocTimeStamp 1729425221 [11:53:39]current date 1729425231 [11:53:39]FM_GetShiftState [11:53:39]SAM_PROTO_GetShiftState [11:53:39]wFMCommunicate request_size=4 [11:53:39]MH_SAM_APDU [11:53:39]CAPDU: 80 13 01 00 [11:53:39]Write to MH i2c: E2 08 00 56 E0 80 13 01 00 00 00 00 00 B3 [11:53:39]Write i2c OK [11:53:39]MH_I2C_Read... [11:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:39]Read from MH i2c: E2 [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: E2 0E 00 [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: E2 0E 00 56 E0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FB [11:53:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:53:39]wFMCommunicate OK [11:53:39]SAM_PROTO_GetShiftState done [11:53:39]FM_GetShiftState done [11:53:39]opened in 1729384561 [11:53:39]opened+sec_in_day 1729470961 [11:53:39]quantity*price = 25020 [11:53:39]sum+1 = 25022 [11:53:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 126 20.10.2024 11:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165644 ФПД: 132989951045370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165644&fm=132989951045370&tin=02508201610067®Number=0000000000091764&sum=25000 [11:53:40]StoreToDocumentArchive [11:53:40]shift 534 fd 165644 [11:53:40]save to /storage/0534/doc_00165644 [11:53:40]save last doc name /storage/0534/doc_00165644 to /storage/kkm_last_doc_name [11:53:40]save OK [11:53:40]Clear old archive folders... [11:53:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:40]tlvbuf is 01839EC0 [11:53:40]SAM_PROTO_ClearQueue [11:53:40]wFMCommunicate request_size=4 [11:53:40]MH_SAM_APDU [11:53:40]CAPDU: 80 09 00 00 [11:53:40]Write to MH i2c: E2 08 00 63 E0 80 09 00 00 00 00 00 00 B5 [11:53:40]Write i2c OK [11:53:40]MH_I2C_Read... [11:53:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:40]Read from MH i2c: E2 [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: E2 03 00 [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: E2 03 00 63 E0 00 90 00 B7 [11:53:40]RAPDU: 90 00 [11:53:40]wFMCommunicate OK [11:53:40]SAM_PROTO_ClearQueue done [11:53:40]KKMCreateOFDPacket [11:53:40]OFDProtocolAddRootSTLVToBuf [11:53:40]FM_MakeSignedData [11:53:40]FM_MakeSignedData [11:53:40]SAM_PROTO_SignData [11:53:40]wFMCommunicate request_size=4 [11:53:40]MH_SAM_APDU [11:53:40]CAPDU: 80 0D 01 02 [11:53:40]Write to MH i2c: E2 08 00 64 E0 80 0D 01 02 00 00 00 00 BD [11:53:40]Write i2c OK [11:53:40]MH_I2C_Read... [11:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:40]Read from MH i2c: E2 [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: E2 03 00 [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: E2 03 00 64 E0 00 90 00 B8 [11:53:40]RAPDU: 90 00 [11:53:40]wFMCommunicate OK [11:53:40]wFMCommunicate request_size=255 [11:53:40]MH_SAM_APDU [11:53: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 7E 00 00 00 F4 03 04 00 4F EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 87 02 00 35 04 06 00 78 [11:53:40]Write to MH i2c: E2 02 01 65 E0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0E 00 00 00 00 00 37 04 06 00 22 1A 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 7E 00 00 00 F4 03 04 00 4F EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 87 02 00 35 04 06 00 78 00 00 88 [11:53:40]Write i2c OK [11:53:40]MH_I2C_Read... [11:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:41]Read from MH i2c: E2 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 03 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 03 00 65 E0 00 90 00 B9 [11:53:41]RAPDU: 90 00 [11:53:41]wFMCommunicate OK [11:53:41]wFMCommunicate request_size=10 [11:53:41]MH_SAM_APDU [11:53:41]CAPDU: 80 0D 02 02 05 F4 22 CA 6E FA [11:53:41]Write to MH i2c: E2 0D 00 66 E0 80 0D 02 02 05 00 F4 22 CA 6E FA 00 00 12 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:41]Read from MH i2c: E2 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 03 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 03 00 66 E0 00 90 00 BA [11:53:41]RAPDU: 90 00 [11:53:41]wFMCommunicate OK [11:53:41]wFMCommunicate request_size=4 [11:53:41]MH_SAM_APDU [11:53:41]CAPDU: 80 0D 03 02 [11:53:41]Write to MH i2c: E2 08 00 67 E0 80 0D 03 02 00 00 00 00 C2 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:41]Read from MH i2c: E2 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 0B 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 0B 00 67 E0 00 B8 B6 FF 8D 50 2A 15 D9 90 00 25 [11:53:41]RAPDU: B8 B6 FF 8D 50 2A 15 D9 90 00 [11:53:41]wFMCommunicate OK [11:53:41]SAM_PROTO_SignData done [11:53:41]FM_MakeSignedData done [11:53:41]CreateOFDProtocolMessage [11:53:41]wFMCommunicate request_size=4 [11:53:41]MH_SAM_APDU [11:53:41]CAPDU: 80 11 00 00 [11:53:41]Write to MH i2c: E2 08 00 68 E0 80 11 00 00 00 00 00 00 C2 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:41]Read from MH i2c: E2 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 17 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 17 00 68 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [11:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:53:41]wFMCommunicate OK [11:53:41]CreateOFDProtocolMessage done [11:53:41]OFDSenderStorePacket 165644 [11:53:41]StoreOFDPacket docnum=165644 [11:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F1 F7 07 01 4D 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 7E 00 00 00 F4 03 04 00 4F EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 87 02 00 35 04 06 00 78 F4 22 CA 6E FA B8 B6 FF 8D 50 2A 15 D9 [11:53:41]CheckFolder [11:53:41]dirname=/storage/ofd_packets [11:53:41]CheckFolder done [11:53:41]ProducePacketName [11:53:41]name=ofd_packets/00165644 [11:53:41]NVStorageSaveData ofd_packets/00165644 [11:53:41]File name is /storage/ofd_packets/00165644 [11:53:41]Write 301 bytes [11:53:41]NVStorageSaveData done [11:53:41]OFDSenderStorePacket done [11:53:41]KKMCreateOFDPacket done [11:53:41]NVStorageSaveData kkm_last_timestamp [11:53:41]File name is /storage/kkm_last_timestamp [11:53:41]Write 4 bytes [11:53:41]NVStorageSaveData done [11:53:41]ExternCall_PrintAddStr [11:53:41]wPrintStart [11:53:41]Write to MH i2c: 01 00 00 69 E0 49 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: 01 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: 01 07 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: 01 07 00 69 E0 00 00 00 00 00 FF 0F 5E [11:53:41]RasterBufferAndPrint [11:53:41]line Счет N : (1)220207 [11:53:41]line ИНН: 02508201610067 [11:53:41]line Контрольно-Кассовый Чек [11:53:41]line ПРОДАЖА [11:53:41]line ТРК (МРК, ГНК) : 13 [11:53:41]line Товар: 2710124130 [11:53:41]line Аи-92-К-5 [11:53:41]line 3.740 * 66.90 [11:53:41]line = 250.21 [11:53:41]line НДС 12% НСП 1% [11:53:41]line > о реализуемом товаре [11:53:41]line ОКРУГЛЕНИЕ: -0.21 [11:53:41]line ИТОГО: 250.00 [11:53:41]line Внесено: 250.00 [11:53:41]line СДАЧА: 0.00 [11:53:41]line НСП 1% : 2.21 [11:53:41]line НДС 12% : 26.57 [11:53:41]line Наличными: 250.00 [11:53:41]line Безнал.: 0.00 [11:53:41]line Место: АЗС № 161 "Партнер Нефть" [11:53:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:53:41]line СНО: Общий режим [11:53:41]line Чек 126 20.10.2024 11:53 [11:53:41]line Смена: 534 ФФД: 1.0 [11:53:41]line ЗНМ: 0300000104 [11:53:41]line РНМ: 0000000000091764 [11:53:41]line Версия ККМ: 001 [11:53:41]line ФМ: 0000000000871759 [11:53:41]line ФД: 165644 [11:53:41]line ФПД: 132989951045370 [11:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165644&fm=132989951045370&tin=02508201610067®Number=0000000000091764&sum=25000 [11:53:41]OFD Sender: Processing packet 165644 [packets to send 48, broken 47] [11:53:41]ProducePacketName [11:53:41]name=ofd_packets/00165644 [11:53:41]OFD Sender: To server: pG, [11:53:41]CommunicateWithHost lk.salyk.kg:30040 [11:53:41]ConnectInit lk.salyk.kg [11:53:41]written 0, free lines is 4095 [11:53:41]Connected sock=10 [11:53:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F1 F7 07 01 4D 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 7E 00 00 00 F4 03 04 00 4F EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 87 02 00 35 04 06 00 78 F4 22 CA 6E FA B8 B6 FF 8D 50 2A 15 D9 [11:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A6 B4 47 00 F9 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 31 37 35 39 10 04 04 00 0C 87 02 00 F4 03 04 00 C1 95 14 67 B6 04 01 00 00 8C AC 70 08 1F 7C A2 F4 [11:53:41]CommunicateWithHost err = 0 [11:53:41]CheckOFDResponse [11:53:41]1017 (14) - 77093643461234 [11:53:41]1041 (16) - 0000000000871759 [11:53:41]1040 (4) - 165644 [11:53:41]1012 (4) - 20.10.2024 05:31 [11:53:41]1206 (1) - 0 [11:53:41]OFD Sender: Remove packet 165644 [11:53:41]ProducePacketName [11:53:41]name=ofd_packets/00165644 [11:53:41]NVStorageDeleteData [11:53:41]Write to MH i2c: 01 00 00 94 E0 74 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: 01 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: 01 07 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: 01 07 00 94 E0 00 00 00 00 00 D4 0C 5B [11:53:41]RasterBufferAndPrint [11:53:41]line [11:53:41]line [11:53:41]line [11:53:41]line [11:53:41]line [11:53:41]written 0, free lines is 3295 [11:53:41]MH_Cut [11:53:41]Write to MH i2c: D1 01 00 9B E0 01 4D [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: D1 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: D1 01 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: D1 01 00 9B E0 00 4C [11:53:41]Write to MH i2c: 01 00 00 9C E0 7C [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:42]OFD Sender: No OFD packet to send [11:53:42]*** Cut start [11:53:42]*** Partial cut [11:53:42]*** CUTSNS_PIN = 1 [11:53:42]*** CUTSNS_PIN = 0 [11:53:42]*** Brake cut motor [11:53:43]Read from MH i2c: 01 [11:53:43]MH_I2C_Read... [11:53:43]*** Stop cut motor [11:53:43]*** Cut end [11:53:43]Read from MH i2c: 01 07 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 07 00 9C E0 00 00 00 00 00 FF 0F 91 [11:53:43]process_action close_receipt done [11:53:43]requested_data is exist [11:53:43]produce_requested_data [11:53:43]requested_item fm.sn is exist - process it [11:53:43]wFMCommunicate request_size=4 [11:53:43]MH_SAM_APDU [11:53:43]CAPDU: 80 11 00 00 [11:53:43]Write to MH i2c: E2 08 00 9D E0 80 11 00 00 00 00 00 00 F7 [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 17 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 17 00 9D E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4F [11:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:53:43]wFMCommunicate OK [11:53:43]requested_item fd.num is exist - process it [11:53:43]SAM_PROTO_GetFieldsCounters [11:53:43]wFMCommunicate request_size=4 [11:53:43]MH_SAM_APDU [11:53:43]CAPDU: 80 13 00 00 [11:53:43]Write to MH i2c: E2 08 00 9E E0 80 13 00 00 00 00 00 00 FA [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 62 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 62 00 9E E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [11:53:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:43]wFMCommunicate OK [11:53:43]SAM_PROTO_GetFieldsCounters done [11:53:43]requested_item shift.num is exist - process it [11:53:43]requested_item shift.opened is exist - process it [11:53:43]req_shift_opened [11:53:43]FM_GetShiftState [11:53:43]SAM_PROTO_GetShiftState [11:53:43]wFMCommunicate request_size=4 [11:53:43]MH_SAM_APDU [11:53:43]CAPDU: 80 13 01 00 [11:53:43]Write to MH i2c: E2 08 00 9F E0 80 13 01 00 00 00 00 00 FC [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 0E 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 0E 00 9F E0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 44 [11:53:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:53:43]wFMCommunicate OK [11:53:43]SAM_PROTO_GetShiftState done [11:53:43]FM_GetShiftState done [11:53:43]req_shift_opened done [11:53:43]requested_item shift.open_date is exist - process it [11:53:43]req_shift_open_date [11:53:43]req_shift_open_date done [11:53:43]produce_requested_data done [11:53:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165644,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:53:43]process_action_free close_receipt [11:53:43]json_value_free [11:53:43]json_value_free done [11:53:43]process_json_proto returns [11:53:43]Send response to host [11:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165644,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:53:43]free response buf [11:53:43]execute_script done [11:53:43]execute_script returns [11:53:43]free content buf [11:53:43]Sock 7.Close socket [11:53:43]Sock 7.Thread stoped [11:53:46]accept exits with 9 [11:53:46]New connection [11:53:46]New thread 3066920292 created [11:53:46]Thread 3066776932 joined [11:53:46]Waiting for new connection... [11:53:46] Sock 9.Parse request [11:53:46]Sock 9.Check first char [11:53:46]Sock 9.First char is OK [11:53:46]request: POST /json_proto HTTP/1.0 [11:53:46]Method: POST [11:53:46]URL: /json_proto [11:53:46]Method is POST - this is cgi request [11:53:46]url: /json_proto [11:53:46]query_string will be loaded in cgi processing [11:53:46]execute_cgi json_proto POST (null) [11:53:46]execute_cgi path=json_proto method=POST [11:53:46]POST find Content-Length [11:53:46]Host: 172.17.53.195:8080 [11:53:46]Content-Length: 677 [11:53:46]Content-Type: application/json [11:53:46] [11:53:46]POST finish read [11:53:46]Found Content-Length = 677 [11:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:46]execute_script... [11:53: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)220208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:46]POST & json_proto [11:53:46]process_json_proto [11:53:46]json parsed OK: [11:53:46]protocol is kg_v1.0 [11:53:46]action value=close_receipt [11:53:46]process_action close_receipt [11:53:46]cmd_close_receipt [11:53:46]MH_GetDate [11:53:46]Write to MH i2c: F0 00 00 A0 E0 6F [11:53:46]Write i2c OK [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: F0 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: F0 09 00 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: F0 09 00 A0 E0 00 56 EF 14 67 21 48 4A 65 50 [11:53:46]GetLastDocTimeStamp 1729425231 [11:53:46]current date 1729425238 [11:53:46]FM_GetShiftState [11:53:46]SAM_PROTO_GetShiftState [11:53:46]wFMCommunicate request_size=4 [11:53:46]MH_SAM_APDU [11:53:46]CAPDU: 80 13 01 00 [11:53:46]Write to MH i2c: E2 08 00 A1 E0 80 13 01 00 00 00 00 00 FE [11:53:46]Write i2c OK [11:53:46]MH_I2C_Read... [11:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:46]Read from MH i2c: E2 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: E2 0E 00 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: E2 0E 00 A1 E0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 46 [11:53:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:53:46]wFMCommunicate OK [11:53:46]SAM_PROTO_GetShiftState done [11:53:46]FM_GetShiftState done [11:53:46]opened in 1729384561 [11:53:46]opened+sec_in_day 1729470961 [11:53:46]quantity*price = 50041 [11:53:46]sum+1 = 50042 [11:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 127 20.10.2024 11:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165645 ФПД: 109458864881030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115358&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165645&fm=109458864881030&tin=02508201610067®Number=0000000000091764&sum=50000 [11:53:47]StoreToDocumentArchive [11:53:47]shift 534 fd 165645 [11:53:47]save to /storage/0534/doc_00165645 [11:53:47]save last doc name /storage/0534/doc_00165645 to /storage/kkm_last_doc_name [11:53:47]save OK [11:53:47]Clear old archive folders... [11:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:47]tlvbuf is 014ED710 [11:53:47]SAM_PROTO_ClearQueue [11:53:47]wFMCommunicate request_size=4 [11:53:47]MH_SAM_APDU [11:53:47]CAPDU: 80 09 00 00 [11:53:47]Write to MH i2c: E2 08 00 AE E0 80 09 00 00 00 00 00 00 00 [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 [11:53:47]MH_I2C_Read... [11:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:47]Read from MH i2c: E2 03 00 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 03 00 AE E0 00 90 00 02 [11:53:47]RAPDU: 90 00 [11:53:47]wFMCommunicate OK [11:53:47]SAM_PROTO_ClearQueue done [11:53:47]KKMCreateOFDPacket [11:53:47]OFDProtocolAddRootSTLVToBuf [11:53:47]FM_MakeSignedData [11:53:47]FM_MakeSignedData [11:53:47]SAM_PROTO_SignData [11:53:47]wFMCommunicate request_size=4 [11:53:47]MH_SAM_APDU [11:53:47]CAPDU: 80 0D 01 02 [11:53:47]Write to MH i2c: E2 08 00 AF E0 80 0D 01 02 00 00 00 00 08 [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:47]Read from MH i2c: E2 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 03 00 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 03 00 AF E0 00 90 00 03 [11:53:47]RAPDU: 90 00 [11:53:47]wFMCommunicate OK [11:53:47]wFMCommunicate request_size=255 [11:53:47]MH_SAM_APDU [11:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 56 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 87 02 00 35 04 06 00 63 [11:53:47]Write to MH i2c: E2 02 01 B0 E0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 56 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 87 02 00 35 04 06 00 63 00 00 EE [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:47]Read from MH i2c: E2 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 03 00 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 03 00 B0 E0 00 90 00 04 [11:53:47]RAPDU: 90 00 [11:53:47]wFMCommunicate OK [11:53:47]wFMCommunicate request_size=10 [11:53:47]MH_SAM_APDU [11:53:47]CAPDU: 80 0D 02 02 05 8D 60 C2 3D 86 [11:53:47]Write to MH i2c: E2 0D 00 B1 E0 80 0D 02 02 05 00 8D 60 C2 3D 86 00 00 87 [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:47]Read from MH i2c: E2 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 03 00 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 03 00 B1 E0 00 90 00 05 [11:53:47]RAPDU: 90 00 [11:53:47]wFMCommunicate OK [11:53:47]wFMCommunicate request_size=4 [11:53:47]MH_SAM_APDU [11:53:47]CAPDU: 80 0D 03 02 [11:53:47]Write to MH i2c: E2 08 00 B2 E0 80 0D 03 02 00 00 00 00 0D [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:48]Read from MH i2c: E2 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 0B 00 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 0B 00 B2 E0 00 93 E7 40 74 BC 69 84 60 90 00 45 [11:53:48]RAPDU: 93 E7 40 74 BC 69 84 60 90 00 [11:53:48]wFMCommunicate OK [11:53:48]SAM_PROTO_SignData done [11:53:48]FM_MakeSignedData done [11:53:48]CreateOFDProtocolMessage [11:53:48]wFMCommunicate request_size=4 [11:53:48]MH_SAM_APDU [11:53:48]CAPDU: 80 11 00 00 [11:53:48]Write to MH i2c: E2 08 00 B3 E0 80 11 00 00 00 00 00 00 0D [11:53:48]Write i2c OK [11:53:48]MH_I2C_Read... [11:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:48]Read from MH i2c: E2 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 17 00 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 17 00 B3 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 65 [11:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:53:48]wFMCommunicate OK [11:53:48]CreateOFDProtocolMessage done [11:53:48]OFDSenderStorePacket 165645 [11:53:48]StoreOFDPacket docnum=165645 [11:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F3 BD 07 01 07 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 56 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 87 02 00 35 04 06 00 63 8D 60 C2 3D 86 93 E7 40 74 BC 69 84 60 [11:53:48]CheckFolder [11:53:48]dirname=/storage/ofd_packets [11:53:48]CheckFolder done [11:53:48]ProducePacketName [11:53:48]name=ofd_packets/00165645 [11:53:48]NVStorageSaveData ofd_packets/00165645 [11:53:48]File name is /storage/ofd_packets/00165645 [11:53:48]Write 301 bytes [11:53:48]NVStorageSaveData done [11:53:48]OFDSenderStorePacket done [11:53:48]KKMCreateOFDPacket done [11:53:48]NVStorageSaveData kkm_last_timestamp [11:53:48]File name is /storage/kkm_last_timestamp [11:53:48]Write 4 bytes [11:53:48]NVStorageSaveData done [11:53:48]ExternCall_PrintAddStr [11:53:48]wPrintStart [11:53:48]Write to MH i2c: 01 00 00 B4 E0 94 [11:53:48]Write i2c OK [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: 01 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: 01 07 00 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: 01 07 00 B4 E0 00 00 00 00 00 FF 0F A9 [11:53:48]RasterBufferAndPrint [11:53:48]line Счет N : (1)220208 [11:53:48]OFD Sender: Processing packet 165645 [packets to send 48, broken 47] [11:53:48]ProducePacketName [11:53:48]name=ofd_packets/00165645 [11:53:48]OFD Sender: To server: pG, [11:53:48]CommunicateWithHost lk.salyk.kg:30040 [11:53:48]ConnectInit lk.salyk.kg [11:53:48]line ИНН: 02508201610067 [11:53:48]line Контрольно-Кассовый Чек [11:53:48]line ПРОДАЖА [11:53:48]line ТРК (МРК, ГНК) : 33 [11:53:48]line Товар: 2710124130 [11:53:48]line Аи-92-К-5 [11:53:48]line 7.480 * 66.90 [11:53:48]line = 500.41 [11:53:48]line НДС 12% НСП 1% [11:53:48]line > о реализуемом товаре [11:53:48]line ОКРУГЛЕНИЕ: -0.41 [11:53:48]line ИТОГО: 500.00 [11:53:48]line Внесено: 500.00 [11:53:48]line СДАЧА: 0.00 [11:53:48]line НСП 1% : 4.43 [11:53:48]line НДС 12% : 53.14 [11:53:48]line Наличными: 500.00 [11:53:48]line Безнал.: 0.00 [11:53:48]line Место: АЗС № 161 "Партнер Нефть" [11:53:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:53:48]line СНО: Общий режим [11:53:48]line Чек 127 20.10.2024 11:53 [11:53:48]line Смена: 534 ФФД: 1.0 [11:53:48]line ЗНМ: 0300000104 [11:53:48]line РНМ: 0000000000091764 [11:53:48]line Версия ККМ: 001 [11:53:48]line ФМ: 0000000000871759 [11:53:48]line ФД: 165645 [11:53:48]line ФПД: 109458864881030 [11:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115358&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165645&fm=109458864881030&tin=02508201610067®Number=0000000000091764&sum=50000 [11:53:48]Connected sock=10 [11:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F3 BD 07 01 07 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 56 EF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 87 02 00 35 04 06 00 63 8D 60 C2 3D 86 93 E7 40 74 BC 69 84 60 [11:53:48]written 0, free lines is 4095 [11:53:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7B E1 47 00 0C 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 31 37 35 39 10 04 04 00 0D 87 02 00 F4 03 04 00 C8 95 14 67 B6 04 01 00 00 66 8F FB 53 BC 81 5C 10 [11:53:48]CommunicateWithHost err = 0 [11:53:48]CheckOFDResponse [11:53:48]1017 (14) - 77093643461234 [11:53:48]1041 (16) - 0000000000871759 [11:53:48]1040 (4) - 165645 [11:53:48]1012 (4) - 20.10.2024 05:31 [11:53:48]1206 (1) - 0 [11:53:48]OFD Sender: Remove packet 165645 [11:53:48]ProducePacketName [11:53:48]name=ofd_packets/00165645 [11:53:48]NVStorageDeleteData [11:53:49]Write to MH i2c: 01 00 00 DF E0 BF [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: 01 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: 01 07 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: 01 07 00 DF E0 00 00 00 00 00 D7 0C A9 [11:53:49]RasterBufferAndPrint [11:53:49]line [11:53:49]line [11:53:49]line [11:53:49]line [11:53:49]line [11:53:49]written 0, free lines is 3303 [11:53:49]MH_Cut [11:53:49]Write to MH i2c: D1 01 00 E6 E0 01 98 [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: D1 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: D1 01 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: D1 01 00 E6 E0 00 97 [11:53:49]Write to MH i2c: 01 00 00 E7 E0 C7 [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]OFD Sender: No OFD packet to send [11:53:49]*** Cut start [11:53:49]*** Partial cut [11:53:49]*** CUTSNS_PIN = 1 [11:53:49]*** CUTSNS_PIN = 0 [11:53:50]*** Brake cut motor [11:53:50]Read from MH i2c: 01 [11:53:50]MH_I2C_Read... [11:53:50]*** Stop cut motor [11:53:50]*** Cut end [11:53:50]Read from MH i2c: 01 07 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: 01 07 00 E7 E0 00 00 00 00 00 FF 0F DC [11:53:50]process_action close_receipt done [11:53:50]requested_data is exist [11:53:50]produce_requested_data [11:53:50]requested_item fm.sn is exist - process it [11:53:50]wFMCommunicate request_size=4 [11:53:50]MH_SAM_APDU [11:53:50]CAPDU: 80 11 00 00 [11:53:50]Write to MH i2c: E2 08 00 E8 E0 80 11 00 00 00 00 00 00 42 [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:50]Read from MH i2c: E2 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 17 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 17 00 E8 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9A [11:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:53:50]wFMCommunicate OK [11:53:50]requested_item fd.num is exist - process it [11:53:50]SAM_PROTO_GetFieldsCounters [11:53:50]wFMCommunicate request_size=4 [11:53:50]MH_SAM_APDU [11:53:50]CAPDU: 80 13 00 00 [11:53:50]Write to MH i2c: E2 08 00 E9 E0 80 13 00 00 00 00 00 00 45 [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:50]Read from MH i2c: E2 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 62 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 62 00 E9 E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [11:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:50]wFMCommunicate OK [11:53:50]SAM_PROTO_GetFieldsCounters done [11:53:50]requested_item shift.num is exist - process it [11:53:50]requested_item shift.opened is exist - process it [11:53:50]req_shift_opened [11:53:50]FM_GetShiftState [11:53:50]SAM_PROTO_GetShiftState [11:53:50]wFMCommunicate request_size=4 [11:53:50]MH_SAM_APDU [11:53:50]CAPDU: 80 13 01 00 [11:53:50]Write to MH i2c: E2 08 00 EA E0 80 13 01 00 00 00 00 00 47 [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:50]Read from MH i2c: E2 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 0E 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: E2 0E 00 EA E0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8F [11:53:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:53:50]wFMCommunicate OK [11:53:50]SAM_PROTO_GetShiftState done [11:53:50]FM_GetShiftState done [11:53:50]req_shift_opened done [11:53:50]requested_item shift.open_date is exist - process it [11:53:50]req_shift_open_date [11:53:50]req_shift_open_date done [11:53:50]produce_requested_data done [11:53:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165645,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:53:50]process_action_free close_receipt [11:53:50]json_value_free [11:53:50]json_value_free done [11:53:50]process_json_proto returns [11:53:50]Send response to host [11:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165645,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:53:50]free response buf [11:53:50]execute_script done [11:53:50]execute_script returns [11:53:50]free content buf [11:53:50]Sock 9.Close socket [11:53:50]Sock 9.Thread stoped [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:44]accept exits with 7 [11:57:44]New connection [11:57:44]New thread 3066776932 created [11:57:44]Thread 3066920292 joined [11:57:44]Waiting for new connection... [11:57:44] Sock 7.Parse request [11:57:44]Sock 7.Check first char [11:57:44]Sock 7.First char is OK [11:57:44]request: POST /json_proto HTTP/1.0 [11:57:44]Method: POST [11:57:44]URL: /json_proto [11:57:44]Method is POST - this is cgi request [11:57:44]url: /json_proto [11:57:44]query_string will be loaded in cgi processing [11:57:44]execute_cgi json_proto POST (null) [11:57:44]execute_cgi path=json_proto method=POST [11:57:44]POST find Content-Length [11:57:44]Host: 172.17.53.195:8080 [11:57:44]Content-Length: 682 [11:57:44]Content-Type: application/json [11:57:44] [11:57:44]POST finish read [11:57:44]Found Content-Length = 682 [11:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:44]execute_script... [11:57: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)220209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:44]POST & json_proto [11:57:44]process_json_proto [11:57:44]json parsed OK: [11:57:44]protocol is kg_v1.0 [11:57:44]action value=close_receipt [11:57:44]process_action close_receipt [11:57:44]cmd_close_receipt [11:57:44]MH_GetDate [11:57:44]Write to MH i2c: F0 00 00 EB E0 BA [11:57:44]Write i2c OK [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: F0 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: F0 09 00 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: F0 09 00 EB E0 00 45 F0 14 67 21 48 4A 65 8B [11:57:44]GetLastDocTimeStamp 1729425238 [11:57:44]current date 1729425477 [11:57:44]FM_GetShiftState [11:57:44]SAM_PROTO_GetShiftState [11:57:44]wFMCommunicate request_size=4 [11:57:44]MH_SAM_APDU [11:57:44]CAPDU: 80 13 01 00 [11:57:44]Write to MH i2c: E2 08 00 EC E0 80 13 01 00 00 00 00 00 49 [11:57:44]Write i2c OK [11:57:44]MH_I2C_Read... [11:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:44]Read from MH i2c: E2 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: E2 0E 00 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: E2 0E 00 EC E0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 91 [11:57:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:57:44]wFMCommunicate OK [11:57:44]SAM_PROTO_GetShiftState done [11:57:44]FM_GetShiftState done [11:57:44]opened in 1729384561 [11:57:44]opened+sec_in_day 1729470961 [11:57:44]quantity*price = 100015 [11:57:44]sum+1 = 100017 [11:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 128 20.10.2024 11:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165646 ФПД: 202825670820625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115757&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165646&fm=202825670820625&tin=02508201610067®Number=0000000000091764&sum=100000 [11:57:46]StoreToDocumentArchive [11:57:46]shift 534 fd 165646 [11:57:46]save to /storage/0534/doc_00165646 [11:57:46]save last doc name /storage/0534/doc_00165646 to /storage/kkm_last_doc_name [11:57:46]save OK [11:57:46]Clear old archive folders... [11:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:46]tlvbuf is 015BD1F0 [11:57:46]SAM_PROTO_ClearQueue [11:57:46]wFMCommunicate request_size=4 [11:57:46]MH_SAM_APDU [11:57:46]CAPDU: 80 09 00 00 [11:57:46]Write to MH i2c: E2 08 00 F9 E0 80 09 00 00 00 00 00 00 4B [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 03 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 03 00 F9 E0 00 90 00 4D [11:57:46]RAPDU: 90 00 [11:57:46]wFMCommunicate OK [11:57:46]SAM_PROTO_ClearQueue done [11:57:46]KKMCreateOFDPacket [11:57:46]OFDProtocolAddRootSTLVToBuf [11:57:46]FM_MakeSignedData [11:57:46]FM_MakeSignedData [11:57:46]SAM_PROTO_SignData [11:57:46]wFMCommunicate request_size=4 [11:57:46]MH_SAM_APDU [11:57:46]CAPDU: 80 0D 01 02 [11:57:46]Write to MH i2c: E2 08 00 FA E0 80 0D 01 02 00 00 00 00 53 [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 03 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 03 00 FA E0 00 90 00 4E [11:57:46]RAPDU: 90 00 [11:57:46]wFMCommunicate OK [11:57:46]wFMCommunicate request_size=255 [11:57:46]MH_SAM_APDU [11: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 45 F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 87 02 00 35 04 06 00 B8 [11:57:46]Write to MH i2c: E2 02 01 FB E0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 45 F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 87 02 00 35 04 06 00 B8 00 00 7A [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 03 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 03 00 FB E0 00 90 00 4F [11:57:46]RAPDU: 90 00 [11:57:46]wFMCommunicate OK [11:57:46]wFMCommunicate request_size=10 [11:57:46]MH_SAM_APDU [11:57:46]CAPDU: 80 0D 02 02 05 78 08 0F 83 11 [11:57:46]Write to MH i2c: E2 0D 00 FC E0 80 0D 02 02 05 00 78 08 0F 83 11 00 00 83 [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 03 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 03 00 FC E0 00 90 00 50 [11:57:46]RAPDU: 90 00 [11:57:46]wFMCommunicate OK [11:57:46]wFMCommunicate request_size=4 [11:57:46]MH_SAM_APDU [11:57:46]CAPDU: 80 0D 03 02 [11:57:46]Write to MH i2c: E2 08 00 FD E0 80 0D 03 02 00 00 00 00 58 [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 0B 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 0B 00 FD E0 00 61 03 CC E0 B3 F2 0D 53 90 00 6E [11:57:46]RAPDU: 61 03 CC E0 B3 F2 0D 53 90 00 [11:57:46]wFMCommunicate OK [11:57:46]SAM_PROTO_SignData done [11:57:46]FM_MakeSignedData done [11:57:46]CreateOFDProtocolMessage [11:57:46]wFMCommunicate request_size=4 [11:57:46]MH_SAM_APDU [11:57:46]CAPDU: 80 11 00 00 [11:57:46]Write to MH i2c: E2 08 00 FE E0 80 11 00 00 00 00 00 00 58 [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:46]Read from MH i2c: E2 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 17 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: E2 17 00 FE E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B0 [11:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:46]wFMCommunicate OK [11:57:46]CreateOFDProtocolMessage done [11:57:46]OFDSenderStorePacket 165646 [11:57:46]StoreOFDPacket docnum=165646 [11:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC 88 07 01 13 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 45 F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 87 02 00 35 04 06 00 B8 78 08 0F 83 11 61 03 CC E0 B3 F2 0D 53 [11:57:46]CheckFolder [11:57:46]dirname=/storage/ofd_packets [11:57:46]CheckFolder done [11:57:46]ProducePacketName [11:57:46]name=ofd_packets/00165646 [11:57:46]NVStorageSaveData ofd_packets/00165646 [11:57:46]File name is /storage/ofd_packets/00165646 [11:57:46]Write 301 bytes [11:57:46]NVStorageSaveData done [11:57:46]OFDSenderStorePacket done [11:57:46]KKMCreateOFDPacket done [11:57:46]NVStorageSaveData kkm_last_timestamp [11:57:46]File name is /storage/kkm_last_timestamp [11:57:46]Write 4 bytes [11:57:46]NVStorageSaveData done [11:57:46]ExternCall_PrintAddStr [11:57:46]wPrintStart [11:57:46]Write to MH i2c: 01 00 00 FF E0 DF [11:57:46]Write i2c OK [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: 01 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: 01 07 00 [11:57:46]MH_I2C_Read... [11:57:46]Read from MH i2c: 01 07 00 FF E0 00 00 00 00 00 FF 0F F4 [11:57:46]RasterBufferAndPrint [11:57:46]line Счет N : (1)220209 [11:57:46]line ИНН: 02508201610067 [11:57:46]line Контрольно-Кассовый Чек [11:57:46]line ПРОДАЖА [11:57:46]line ТРК (МРК, ГНК) : 33 [11:57:46]line Товар: 2710124130 [11:57:46]line Аи-92-К-5 [11:57:46]line 14.950 * 66.90 [11:57:46]line = 1000.16 [11:57:46]line НДС 12% НСП 1% [11:57:46]line > о реализуемом товаре [11:57:46]line ОКРУГЛЕНИЕ: -0.16 [11:57:46]line ИТОГО: 1000.00 [11:57:46]line Внесено: 1000.00 [11:57:46]line СДАЧА: 0.00 [11:57:46]line НСП 1% : 8.85 [11:57:46]line НДС 12% : 106.21 [11:57:46]line Наличными: 1000.00 [11:57:46]line Безнал.: 0.00 [11:57:46]line Место: АЗС № 161 "Партнер Нефть" [11:57:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:57:46]line СНО: Общий режим [11:57:46]line Чек 128 20.10.2024 11:57 [11:57:46]line Смена: 534 ФФД: 1.0 [11:57:46]line ЗНМ: 0300000104 [11:57:46]line РНМ: 0000000000091764 [11:57:46]line Версия ККМ: 001 [11:57:46]line ФМ: 0000000000871759 [11:57:46]line ФД: 165646 [11:57:46]line ФПД: 202825670820625 [11:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115757&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165646&fm=202825670820625&tin=02508201610067®Number=0000000000091764&sum=100000 [11:57:46]OFD Sender: Processing packet 165646 [packets to send 48, broken 47] [11:57:46]ProducePacketName [11:57:46]name=ofd_packets/00165646 [11:57:46]OFD Sender: To server: pG, [11:57:46]CommunicateWithHost lk.salyk.kg:30040 [11:57:46]ConnectInit lk.salyk.kg [11:57:46]written 0, free lines is 4095 [11:57:47]Connected sock=10 [11: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 31 37 35 39 0F 01 00 00 CC 88 07 01 13 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 45 F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 87 02 00 35 04 06 00 B8 78 08 0F 83 11 61 03 CC E0 B3 F2 0D 53 [11:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EE 84 47 00 BC 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 31 37 35 39 10 04 04 00 0E 87 02 00 F4 03 04 00 B7 96 14 67 B6 04 01 00 00 2B CF 9C F2 AD 6F FB BC [11:57:47]CommunicateWithHost err = 0 [11:57:47]CheckOFDResponse [11:57:47]1017 (14) - 77093643461234 [11:57:47]1041 (16) - 0000000000871759 [11:57:47]1040 (4) - 165646 [11:57:47]1012 (4) - 20.10.2024 05:35 [11:57:47]1206 (1) - 0 [11:57:47]OFD Sender: Remove packet 165646 [11:57:47]ProducePacketName [11:57:47]name=ofd_packets/00165646 [11:57:47]NVStorageDeleteData [11:57:47]Write to MH i2c: 01 00 00 2A E1 0B [11:57:47]Write i2c OK [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: 01 [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: 01 07 00 [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: 01 07 00 2A E1 00 00 00 00 00 C4 0C E2 [11:57:47]RasterBufferAndPrint [11:57:47]line [11:57:47]line [11:57:47]line [11:57:47]line [11:57:47]line [11:57:47]written 0, free lines is 3275 [11:57:47]MH_Cut [11:57:47]Write to MH i2c: D1 01 00 31 E1 01 E4 [11:57:47]Write i2c OK [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: D1 [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: D1 01 00 [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: D1 01 00 31 E1 00 E3 [11:57:47]Write to MH i2c: 01 00 00 32 E1 13 [11:57:47]Write i2c OK [11:57:47]MH_I2C_Read... [11:57:47]OFD Sender: No OFD packet to send [11:57:48]*** Cut start [11:57:48]*** Partial cut [11:57:48]*** CUTSNS_PIN = 1 [11:57:48]*** CUTSNS_PIN = 0 [11:57:48]*** Brake cut motor [11:57:48]Read from MH i2c: 01 [11:57:48]MH_I2C_Read... [11:57:48]*** Stop cut motor [11:57:48]*** Cut end [11:57:48]Read from MH i2c: 01 07 00 [11:57:48]MH_I2C_Read... [11:57:48]Read from MH i2c: 01 07 00 32 E1 00 00 00 00 00 FF 0F 28 [11:57:48]process_action close_receipt done [11:57:48]requested_data is exist [11:57:48]produce_requested_data [11:57:48]requested_item fm.sn is exist - process it [11:57:48]wFMCommunicate request_size=4 [11:57:48]MH_SAM_APDU [11:57:48]CAPDU: 80 11 00 00 [11:57:48]Write to MH i2c: E2 08 00 33 E1 80 11 00 00 00 00 00 00 8E [11:57:48]Write i2c OK [11:57:48]MH_I2C_Read... [11:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:48]Read from MH i2c: E2 [11:57:48]MH_I2C_Read... [11:57:48]Read from MH i2c: E2 17 00 [11:57:48]MH_I2C_Read... [11:57:48]Read from MH i2c: E2 17 00 33 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [11:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:48]wFMCommunicate OK [11:57:48]requested_item fd.num is exist - process it [11:57:48]SAM_PROTO_GetFieldsCounters [11:57:48]wFMCommunicate request_size=4 [11:57:48]MH_SAM_APDU [11:57:48]CAPDU: 80 13 00 00 [11:57:48]Write to MH i2c: E2 08 00 34 E1 80 13 00 00 00 00 00 00 91 [11:57:48]Write i2c OK [11:57:48]MH_I2C_Read... [11:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:49]Read from MH i2c: E2 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 62 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 62 00 34 E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [11: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:49]wFMCommunicate OK [11:57:49]SAM_PROTO_GetFieldsCounters done [11:57:49]requested_item shift.num is exist - process it [11:57:49]requested_item shift.opened is exist - process it [11:57:49]req_shift_opened [11:57:49]FM_GetShiftState [11:57:49]SAM_PROTO_GetShiftState [11:57:49]wFMCommunicate request_size=4 [11:57:49]MH_SAM_APDU [11:57:49]CAPDU: 80 13 01 00 [11:57:49]Write to MH i2c: E2 08 00 35 E1 80 13 01 00 00 00 00 00 93 [11:57:49]Write i2c OK [11:57:49]MH_I2C_Read... [11:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:49]Read from MH i2c: E2 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 0E 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 0E 00 35 E1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DB [11:57:49]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [11:57:49]wFMCommunicate OK [11:57:49]SAM_PROTO_GetShiftState done [11:57:49]FM_GetShiftState done [11:57:49]req_shift_opened done [11:57:49]requested_item shift.open_date is exist - process it [11:57:49]req_shift_open_date [11:57:49]req_shift_open_date done [11:57:49]produce_requested_data done [11:57:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165646,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [11:57:49]process_action_free close_receipt [11:57:49]json_value_free [11:57:49]json_value_free done [11:57:49]process_json_proto returns [11:57:49]Send response to host [11:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165646,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [11:57:49]free response buf [11:57:49]execute_script done [11:57:49]execute_script returns [11:57:49]free content buf [11:57:49]Sock 7.Close socket [11:57:49]Sock 7.Thread stoped [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:29]accept exits with 9 [12:00:29]New connection [12:00:29]New thread 3066920292 created [12:00:29]Thread 3066776932 joined [12:00:29]Waiting for new connection... [12:00:29] Sock 9.Parse request [12:00:29]Sock 9.Check first char [12:00:29]Sock 9.First char is OK [12:00:29]request: POST /json_proto HTTP/1.0 [12:00:29]Method: POST [12:00:29]URL: /json_proto [12:00:29]Method is POST - this is cgi request [12:00:29]url: /json_proto [12:00:29]query_string will be loaded in cgi processing [12:00:29]execute_cgi json_proto POST (null) [12:00:29]execute_cgi path=json_proto method=POST [12:00:29]POST find Content-Length [12:00:29]Host: 172.17.53.195:8080 [12:00:29]Content-Length: 682 [12:00:29]Content-Type: application/json [12:00:29] [12:00:29]POST finish read [12:00:29]Found Content-Length = 682 [12:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:29]execute_script... [12:00: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)220210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:29]POST & json_proto [12:00:29]process_json_proto [12:00:29]json parsed OK: [12:00:29]protocol is kg_v1.0 [12:00:29]action value=close_receipt [12:00:29]process_action close_receipt [12:00:29]cmd_close_receipt [12:00:29]MH_GetDate [12:00:29]Write to MH i2c: F0 00 00 36 E1 06 [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: F0 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: F0 09 00 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: F0 09 00 36 E1 00 E9 F0 14 67 21 48 4A 65 7B [12:00:29]GetLastDocTimeStamp 1729425477 [12:00:29]current date 1729425641 [12:00:29]FM_GetShiftState [12:00:29]SAM_PROTO_GetShiftState [12:00:29]wFMCommunicate request_size=4 [12:00:29]MH_SAM_APDU [12:00:29]CAPDU: 80 13 01 00 [12:00:29]Write to MH i2c: E2 08 00 37 E1 80 13 01 00 00 00 00 00 95 [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:29]Read from MH i2c: E2 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: E2 0E 00 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: E2 0E 00 37 E1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DD [12:00:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:00:29]wFMCommunicate OK [12:00:29]SAM_PROTO_GetShiftState done [12:00:29]FM_GetShiftState done [12:00:29]opened in 1729384561 [12:00:29]opened+sec_in_day 1729470961 [12:00:29]quantity*price = 100015 [12:00:29]sum+1 = 100017 [12:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 129 20.10.2024 12:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165647 ФПД: 241842809781281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120041&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165647&fm=241842809781281&tin=02508201610067®Number=0000000000091764&sum=100000 [12:00:30]StoreToDocumentArchive [12:00:30]shift 534 fd 165647 [12:00:30]save to /storage/0534/doc_00165647 [12:00:30]save last doc name /storage/0534/doc_00165647 to /storage/kkm_last_doc_name [12:00:30]save OK [12:00:30]Clear old archive folders... [12:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:30]tlvbuf is 0166B2C0 [12:00:30]SAM_PROTO_ClearQueue [12:00:30]wFMCommunicate request_size=4 [12:00:30]MH_SAM_APDU [12:00:30]CAPDU: 80 09 00 00 [12:00:30]Write to MH i2c: E2 08 00 44 E1 80 09 00 00 00 00 00 00 97 [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:30]Read from MH i2c: E2 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 03 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 03 00 44 E1 00 90 00 99 [12:00:30]RAPDU: 90 00 [12:00:30]wFMCommunicate OK [12:00:30]SAM_PROTO_ClearQueue done [12:00:30]KKMCreateOFDPacket [12:00:30]OFDProtocolAddRootSTLVToBuf [12:00:30]FM_MakeSignedData [12:00:30]FM_MakeSignedData [12:00:30]SAM_PROTO_SignData [12:00:30]wFMCommunicate request_size=4 [12:00:30]MH_SAM_APDU [12:00:30]CAPDU: 80 0D 01 02 [12:00:30]Write to MH i2c: E2 08 00 45 E1 80 0D 01 02 00 00 00 00 9F [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:30]Read from MH i2c: E2 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 03 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 03 00 45 E1 00 90 00 9A [12:00:30]RAPDU: 90 00 [12:00:30]wFMCommunicate OK [12:00:30]wFMCommunicate request_size=255 [12:00:30]MH_SAM_APDU [12:00: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E9 F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 87 02 00 35 04 06 00 DB [12:00:30]Write to MH i2c: E2 02 01 46 E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E9 F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 87 02 00 35 04 06 00 DB 00 00 8F [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 03 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 03 00 46 E1 00 90 00 9B [12:00:31]RAPDU: 90 00 [12:00:31]wFMCommunicate OK [12:00:31]wFMCommunicate request_size=10 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 0D 02 02 05 F4 6A C4 BC 21 [12:00:31]Write to MH i2c: E2 0D 00 47 E1 80 0D 02 02 05 00 F4 6A C4 BC 21 00 00 AB [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 03 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 03 00 47 E1 00 90 00 9C [12:00:31]RAPDU: 90 00 [12:00:31]wFMCommunicate OK [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 0D 03 02 [12:00:31]Write to MH i2c: E2 08 00 48 E1 80 0D 03 02 00 00 00 00 A4 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0B 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0B 00 48 E1 00 84 F5 99 32 55 9E 1D 9A 90 00 93 [12:00:31]RAPDU: 84 F5 99 32 55 9E 1D 9A 90 00 [12:00:31]wFMCommunicate OK [12:00:31]SAM_PROTO_SignData done [12:00:31]FM_MakeSignedData done [12:00:31]CreateOFDProtocolMessage [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 11 00 00 [12:00:31]Write to MH i2c: E2 08 00 49 E1 80 11 00 00 00 00 00 00 A4 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 17 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 17 00 49 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [12:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:00:31]wFMCommunicate OK [12:00:31]CreateOFDProtocolMessage done [12:00:31]OFDSenderStorePacket 165647 [12:00:31]StoreOFDPacket docnum=165647 [12:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0C 82 07 01 29 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E9 F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 87 02 00 35 04 06 00 DB F4 6A C4 BC 21 84 F5 99 32 55 9E 1D 9A [12:00:31]CheckFolder [12:00:31]dirname=/storage/ofd_packets [12:00:31]CheckFolder done [12:00:31]ProducePacketName [12:00:31]name=ofd_packets/00165647 [12:00:31]NVStorageSaveData ofd_packets/00165647 [12:00:31]File name is /storage/ofd_packets/00165647 [12:00:31]Write 301 bytes [12:00:31]NVStorageSaveData done [12:00:31]OFDSenderStorePacket done [12:00:31]KKMCreateOFDPacket done [12:00:31]NVStorageSaveData kkm_last_timestamp [12:00:31]File name is /storage/kkm_last_timestamp [12:00:31]Write 4 bytes [12:00:31]NVStorageSaveData done [12:00:31]ExternCall_PrintAddStr [12:00:31]wPrintStart [12:00:31]Write to MH i2c: 01 00 00 4A E1 2B [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 4A E1 00 00 00 00 00 FF 0F 40 [12:00:31]RasterBufferAndPrint [12:00:31]line Счет N : (1)220210 [12:00:31]line ИНН: 02508201610067 [12:00:31]line Контрольно-Кассовый Чек [12:00:31]line ПРОДАЖА [12:00:31]line ТРК (МРК, ГНК) : 43 [12:00:31]line Товар: 2710124130 [12:00:31]line Аи-92-К-5 [12:00:31]line 14.950 * 66.90 [12:00:31]line = 1000.16 [12:00:31]line НДС 12% НСП 1% [12:00:31]line > о реализуемом товаре [12:00:31]line ОКРУГЛЕНИЕ: -0.16 [12:00:31]line ИТОГО: 1000.00 [12:00:31]line Внесено: 1000.00 [12:00:31]line СДАЧА: 0.00 [12:00:31]line НСП 1% : 8.85 [12:00:31]line НДС 12% : 106.21 [12:00:31]line Наличными: 1000.00 [12:00:31]line Безнал.: 0.00 [12:00:31]line Место: АЗС № 161 "Партнер Нефть" [12:00:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:00:31]line СНО: Общий режим [12:00:31]line Чек 129 20.10.2024 12:00 [12:00:31]line Смена: 534 ФФД: 1.0 [12:00:31]line ЗНМ: 0300000104 [12:00:31]line РНМ: 0000000000091764 [12:00:31]line Версия ККМ: 001 [12:00:31]line ФМ: 0000000000871759 [12:00:31]line ФД: 165647 [12:00:31]line ФПД: 241842809781281 [12:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120041&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165647&fm=241842809781281&tin=02508201610067®Number=0000000000091764&sum=100000 [12:00:31]OFD Sender: Processing packet 165647 [packets to send 48, broken 47] [12:00:31]ProducePacketName [12:00:31]name=ofd_packets/00165647 [12:00:31]OFD Sender: To server: pG, [12:00:31]CommunicateWithHost lk.salyk.kg:30040 [12:00:31]ConnectInit lk.salyk.kg [12:00:31]written 0, free lines is 4095 [12:00:31]Connected sock=10 [12:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0C 82 07 01 29 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E9 F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 87 02 00 35 04 06 00 DB F4 6A C4 BC 21 84 F5 99 32 55 9E 1D 9A [12:00:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9F 00 47 00 9F 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 31 37 35 39 10 04 04 00 0F 87 02 00 F4 03 04 00 5B 97 14 67 B6 04 01 00 00 28 E9 20 DD F0 E6 08 75 [12:00:31]CommunicateWithHost err = 0 [12:00:31]CheckOFDResponse [12:00:31]1017 (14) - 77093643461234 [12:00:31]1041 (16) - 0000000000871759 [12:00:31]1040 (4) - 165647 [12:00:31]1012 (4) - 20.10.2024 05:38 [12:00:31]1206 (1) - 0 [12:00:31]OFD Sender: Remove packet 165647 [12:00:31]ProducePacketName [12:00:31]name=ofd_packets/00165647 [12:00:31]NVStorageDeleteData [12:00:32]Write to MH i2c: 01 00 00 75 E1 56 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: 01 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: 01 07 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: 01 07 00 75 E1 00 00 00 00 00 C8 0C 31 [12:00:32]RasterBufferAndPrint [12:00:32]line [12:00:32]line [12:00:32]line [12:00:32]line [12:00:32]line [12:00:32]written 0, free lines is 3279 [12:00:32]MH_Cut [12:00:32]Write to MH i2c: D1 01 00 7C E1 01 2F [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: D1 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: D1 01 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: D1 01 00 7C E1 00 2E [12:00:32]Write to MH i2c: 01 00 00 7D E1 5E [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]OFD Sender: No OFD packet to send [12:00:32]*** Cut start [12:00:32]*** Partial cut [12:00:32]*** CUTSNS_PIN = 1 [12:00:32]*** CUTSNS_PIN = 0 [12:00:33]*** Brake cut motor [12:00:33]Read from MH i2c: 01 [12:00:33]MH_I2C_Read... [12:00:33]*** Stop cut motor [12:00:33]*** Cut end [12:00:33]Read from MH i2c: 01 07 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 7D E1 00 00 00 00 00 FF 0F 73 [12:00:33]process_action close_receipt done [12:00:33]requested_data is exist [12:00:33]produce_requested_data [12:00:33]requested_item fm.sn is exist - process it [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 11 00 00 [12:00:33]Write to MH i2c: E2 08 00 7E E1 80 11 00 00 00 00 00 00 D9 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 17 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 17 00 7E E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 31 [12:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:00:33]wFMCommunicate OK [12:00:33]requested_item fd.num is exist - process it [12:00:33]SAM_PROTO_GetFieldsCounters [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 13 00 00 [12:00:33]Write to MH i2c: E2 08 00 7F E1 80 13 00 00 00 00 00 00 DC [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 62 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 62 00 7F E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [12:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:33]wFMCommunicate OK [12:00:33]SAM_PROTO_GetFieldsCounters done [12:00:33]requested_item shift.num is exist - process it [12:00:33]requested_item shift.opened is exist - process it [12:00:33]req_shift_opened [12:00:33]FM_GetShiftState [12:00:33]SAM_PROTO_GetShiftState [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 13 01 00 [12:00:33]Write to MH i2c: E2 08 00 80 E1 80 13 01 00 00 00 00 00 DE [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 0E 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 0E 00 80 E1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 26 [12:00:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:00:33]wFMCommunicate OK [12:00:33]SAM_PROTO_GetShiftState done [12:00:33]FM_GetShiftState done [12:00:33]req_shift_opened done [12:00:33]requested_item shift.open_date is exist - process it [12:00:33]req_shift_open_date [12:00:33]req_shift_open_date done [12:00:33]produce_requested_data done [12:00:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165647,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:00:33]process_action_free close_receipt [12:00:33]json_value_free [12:00:33]json_value_free done [12:00:33]process_json_proto returns [12:00:33]Send response to host [12:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165647,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:00:33]free response buf [12:00:33]execute_script done [12:00:33]execute_script returns [12:00:33]free content buf [12:00:33]Sock 9.Close socket [12:00:33]Sock 9.Thread stoped [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]accept exits with 7 [12:00:47]New connection [12:00:47]New thread 3066776932 created [12:00:47]Thread 3066920292 joined [12:00:47]Waiting for new connection... [12:00:47] Sock 7.Parse request [12:00:47]Sock 7.Check first char [12:00:47]Sock 7.First char is OK [12:00:47]request: POST /json_proto HTTP/1.0 [12:00:47]Method: POST [12:00:47]URL: /json_proto [12:00:47]Method is POST - this is cgi request [12:00:47]url: /json_proto [12:00:47]query_string will be loaded in cgi processing [12:00:47]execute_cgi json_proto POST (null) [12:00:47]execute_cgi path=json_proto method=POST [12:00:47]POST find Content-Length [12:00:47]Host: 172.17.53.195:8080 [12:00:47]Content-Length: 677 [12:00:47]Content-Type: application/json [12:00:47] [12:00:47]POST finish read [12:00:47]Found Content-Length = 677 [12:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:47]execute_script... [12:00: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)220211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:47]POST & json_proto [12:00:47]process_json_proto [12:00:47]json parsed OK: [12:00:47]protocol is kg_v1.0 [12:00:47]action value=close_receipt [12:00:47]process_action close_receipt [12:00:47]cmd_close_receipt [12:00:47]MH_GetDate [12:00:47]Write to MH i2c: F0 00 00 81 E1 51 [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: F0 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: F0 09 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: F0 09 00 81 E1 00 FB F0 14 67 21 48 4A 65 D8 [12:00:47]GetLastDocTimeStamp 1729425641 [12:00:47]current date 1729425659 [12:00:47]FM_GetShiftState [12:00:47]SAM_PROTO_GetShiftState [12:00:47]wFMCommunicate request_size=4 [12:00:47]MH_SAM_APDU [12:00:47]CAPDU: 80 13 01 00 [12:00:47]Write to MH i2c: E2 08 00 82 E1 80 13 01 00 00 00 00 00 E0 [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:47]Read from MH i2c: E2 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: E2 0E 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: E2 0E 00 82 E1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 28 [12:00:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:00:47]wFMCommunicate OK [12:00:47]SAM_PROTO_GetShiftState done [12:00:47]FM_GetShiftState done [12:00:47]opened in 1729384561 [12:00:47]opened+sec_in_day 1729470961 [12:00:47]quantity*price = 30038 [12:00:47]sum+1 = 30039 [12:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 130 20.10.2024 12:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165648 ФПД: 193992303866543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120059&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165648&fm=193992303866543&tin=02508201610067®Number=0000000000091764&sum=30000 [12:00:48]StoreToDocumentArchive [12:00:48]shift 534 fd 165648 [12:00:48]save to /storage/0534/doc_00165648 [12:00:48]save last doc name /storage/0534/doc_00165648 to /storage/kkm_last_doc_name [12:00:48]save OK [12:00:48]Clear old archive folders... [12:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:48]tlvbuf is 01697290 [12:00:48]SAM_PROTO_ClearQueue [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 09 00 00 [12:00:48]Write to MH i2c: E2 08 00 8F E1 80 09 00 00 00 00 00 00 E2 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 8F E1 00 90 00 E4 [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_ClearQueue done [12:00:48]KKMCreateOFDPacket [12:00:48]OFDProtocolAddRootSTLVToBuf [12:00:48]FM_MakeSignedData [12:00:48]FM_MakeSignedData [12:00:48]SAM_PROTO_SignData [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 01 02 [12:00:48]Write to MH i2c: E2 08 00 90 E1 80 0D 01 02 00 00 00 00 EA [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 90 E1 00 90 00 E5 [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]wFMCommunicate request_size=255 [12:00:48]MH_SAM_APDU [12:00: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FB F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 87 02 00 35 04 06 00 B0 [12:00:48]Write to MH i2c: E2 02 01 91 E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FB F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 87 02 00 35 04 06 00 B0 00 00 BD [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 91 E1 00 90 00 E6 [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]wFMCommunicate request_size=10 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 02 02 05 6F 5A 5C 72 AF [12:00:48]Write to MH i2c: E2 0D 00 92 E1 80 0D 02 02 05 00 6F 5A 5C 72 AF 00 00 3D [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 92 E1 00 90 00 E7 [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 03 02 [12:00:48]Write to MH i2c: E2 08 00 93 E1 80 0D 03 02 00 00 00 00 EF [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:49]Read from MH i2c: E2 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 0B 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 0B 00 93 E1 00 0C 4B AF 17 B9 99 E0 DE 90 00 1D [12:00:49]RAPDU: 0C 4B AF 17 B9 99 E0 DE 90 00 [12:00:49]wFMCommunicate OK [12:00:49]SAM_PROTO_SignData done [12:00:49]FM_MakeSignedData done [12:00:49]CreateOFDProtocolMessage [12:00:49]wFMCommunicate request_size=4 [12:00:49]MH_SAM_APDU [12:00:49]CAPDU: 80 11 00 00 [12:00:49]Write to MH i2c: E2 08 00 94 E1 80 11 00 00 00 00 00 00 EF [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:49]Read from MH i2c: E2 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 17 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 17 00 94 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [12:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:00:49]wFMCommunicate OK [12:00:49]CreateOFDProtocolMessage done [12:00:49]OFDSenderStorePacket 165648 [12:00:49]StoreOFDPacket docnum=165648 [12:00:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9E EC 07 01 D7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FB F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 87 02 00 35 04 06 00 B0 6F 5A 5C 72 AF 0C 4B AF 17 B9 99 E0 DE [12:00:49]CheckFolder [12:00:49]dirname=/storage/ofd_packets [12:00:49]CheckFolder done [12:00:49]ProducePacketName [12:00:49]name=ofd_packets/00165648 [12:00:49]NVStorageSaveData ofd_packets/00165648 [12:00:49]File name is /storage/ofd_packets/00165648 [12:00:49]Write 301 bytes [12:00:49]NVStorageSaveData done [12:00:49]OFDSenderStorePacket done [12:00:49]KKMCreateOFDPacket done [12:00:49]NVStorageSaveData kkm_last_timestamp [12:00:49]File name is /storage/kkm_last_timestamp [12:00:49]Write 4 bytes [12:00:49]NVStorageSaveData done [12:00:49]ExternCall_PrintAddStr [12:00:49]wPrintStart [12:00:49]Write to MH i2c: 01 00 00 95 E1 76 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 07 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 07 00 95 E1 00 00 00 00 00 FF 0F 8B [12:00:49]RasterBufferAndPrint [12:00:49]line Счет N : (1)220211 [12:00:49]line ИНН: 02508201610067 [12:00:49]line Контрольно-Кассовый Чек [12:00:49]line ПРОДАЖА [12:00:49]line ТРК (МРК, ГНК) : 23 [12:00:49]line Товар: 2710124130 [12:00:49]line Аи-92-К-5 [12:00:49]line 4.490 * 66.90 [12:00:49]line = 300.38 [12:00:49]line НДС 12% НСП 1% [12:00:49]line > о реализуемом товаре [12:00:49]line ОКРУГЛЕНИЕ: -0.38 [12:00:49]line ИТОГО: 300.00 [12:00:49]line Внесено: 300.00 [12:00:49]line СДАЧА: 0.00 [12:00:49]line НСП 1% : 2.66 [12:00:49]line НДС 12% : 31.90 [12:00:49]line Наличными: 300.00 [12:00:49]line Безнал.: 0.00 [12:00:49]line Место: АЗС № 161 "Партнер Нефть" [12:00:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:00:49]line СНО: Общий режим [12:00:49]line Чек 130 20.10.2024 12:00 [12:00:49]line Смена: 534 ФФД: 1.0 [12:00:49]line ЗНМ: 0300000104 [12:00:49]line РНМ: 0000000000091764 [12:00:49]line Версия ККМ: 001 [12:00:49]line ФМ: 0000000000871759 [12:00:49]line ФД: 165648 [12:00:49]line ФПД: 193992303866543 [12:00:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120059&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165648&fm=193992303866543&tin=02508201610067®Number=0000000000091764&sum=30000 [12:00:49]OFD Sender: Processing packet 165648 [packets to send 48, broken 47] [12:00:49]ProducePacketName [12:00:49]name=ofd_packets/00165648 [12:00:49]OFD Sender: To server: pG, [12:00:49]CommunicateWithHost lk.salyk.kg:30040 [12:00:49]ConnectInit lk.salyk.kg [12:00:49]written 0, free lines is 4095 [12:00:49]Connected sock=10 [12:00:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9E EC 07 01 D7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FB F0 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 87 02 00 35 04 06 00 B0 6F 5A 5C 72 AF 0C 4B AF 17 B9 99 E0 DE [12:00:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF 26 47 00 4E E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 87 02 00 F4 03 04 00 6D 97 14 67 B6 04 01 00 00 48 3A A0 B5 B8 0B 7F B8 [12:00:49]CommunicateWithHost err = 0 [12:00:49]CheckOFDResponse [12:00:49]1017 (14) - 77093643461234 [12:00:49]1041 (16) - 0000000000871759 [12:00:49]1040 (4) - 165648 [12:00:49]1012 (4) - 20.10.2024 05:38 [12:00:49]1206 (1) - 0 [12:00:49]OFD Sender: Remove packet 165648 [12:00:49]ProducePacketName [12:00:49]name=ofd_packets/00165648 [12:00:49]NVStorageDeleteData [12:00:49]Write to MH i2c: 01 00 00 C0 E1 A1 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 07 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 07 00 C0 E1 00 00 00 00 00 C1 0C 75 [12:00:49]RasterBufferAndPrint [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]written 0, free lines is 3271 [12:00:49]MH_Cut [12:00:49]Write to MH i2c: D1 01 00 C7 E1 01 7A [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 01 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 01 00 C7 E1 00 79 [12:00:49]Write to MH i2c: 01 00 00 C8 E1 A9 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:50]OFD Sender: No OFD packet to send [12:00:50]*** Cut start [12:00:50]*** Partial cut [12:00:50]*** CUTSNS_PIN = 1 [12:00:50]*** CUTSNS_PIN = 0 [12:00:50]*** Brake cut motor [12:00:51]Read from MH i2c: 01 [12:00:51]MH_I2C_Read... [12:00:51]*** Stop cut motor [12:00:51]*** Cut end [12:00:51]Read from MH i2c: 01 07 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 07 00 C8 E1 00 00 00 00 00 FF 0F BE [12:00:51]process_action close_receipt done [12:00:51]requested_data is exist [12:00:51]produce_requested_data [12:00:51]requested_item fm.sn is exist - process it [12:00:51]wFMCommunicate request_size=4 [12:00:51]MH_SAM_APDU [12:00:51]CAPDU: 80 11 00 00 [12:00:51]Write to MH i2c: E2 08 00 C9 E1 80 11 00 00 00 00 00 00 24 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:51]Read from MH i2c: E2 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: E2 17 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: E2 17 00 C9 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7C [12:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:00:51]wFMCommunicate OK [12:00:51]requested_item fd.num is exist - process it [12:00:51]SAM_PROTO_GetFieldsCounters [12:00:51]wFMCommunicate request_size=4 [12:00:51]MH_SAM_APDU [12:00:51]CAPDU: 80 13 00 00 [12:00:51]Write to MH i2c: E2 08 00 CA E1 80 13 00 00 00 00 00 00 27 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:51]Read from MH i2c: E2 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: E2 62 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: E2 62 00 CA E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [12:00:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:51]wFMCommunicate OK [12:00:51]SAM_PROTO_GetFieldsCounters done [12:00:51]requested_item shift.num is exist - process it [12:00:51]requested_item shift.opened is exist - process it [12:00:51]req_shift_opened [12:00:51]FM_GetShiftState [12:00:51]SAM_PROTO_GetShiftState [12:00:51]wFMCommunicate request_size=4 [12:00:51]MH_SAM_APDU [12:00:51]CAPDU: 80 13 01 00 [12:00:51]Write to MH i2c: E2 08 00 CB E1 80 13 01 00 00 00 00 00 29 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:51]Read from MH i2c: E2 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: E2 0E 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: E2 0E 00 CB E1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 71 [12:00:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:00:51]wFMCommunicate OK [12:00:51]SAM_PROTO_GetShiftState done [12:00:51]FM_GetShiftState done [12:00:51]req_shift_opened done [12:00:51]requested_item shift.open_date is exist - process it [12:00:51]req_shift_open_date [12:00:51]req_shift_open_date done [12:00:51]produce_requested_data done [12:00:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165648,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:00:51]process_action_free close_receipt [12:00:51]json_value_free [12:00:51]json_value_free done [12:00:51]process_json_proto returns [12:00:51]Send response to host [12:00:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165648,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:00:51]free response buf [12:00:51]execute_script done [12:00:51]execute_script returns [12:00:51]free content buf [12:00:51]Sock 7.Close socket [12:00:51]Sock 7.Thread stoped [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:50]accept exits with 9 [12:01:50]New connection [12:01:50]New thread 3066920292 created [12:01:50]Thread 3066776932 joined [12:01:50]Waiting for new connection... [12:01:50] Sock 9.Parse request [12:01:50]Sock 9.Check first char [12:01:50]Sock 9.First char is OK [12:01:50]request: POST /json_proto HTTP/1.0 [12:01:50]Method: POST [12:01:50]URL: /json_proto [12:01:50]Method is POST - this is cgi request [12:01:50]url: /json_proto [12:01:50]query_string will be loaded in cgi processing [12:01:50]execute_cgi json_proto POST (null) [12:01:50]execute_cgi path=json_proto method=POST [12:01:50]POST find Content-Length [12:01:50]Host: 172.17.53.195:8080 [12:01:50]Content-Length: 677 [12:01:50]Content-Type: application/json [12:01:50] [12:01:50]POST finish read [12:01:50]Found Content-Length = 677 [12:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:50]execute_script... [12:01: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)220212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:50]POST & json_proto [12:01:50]process_json_proto [12:01:50]json parsed OK: [12:01:50]protocol is kg_v1.0 [12:01:50]action value=close_receipt [12:01:50]process_action close_receipt [12:01:50]cmd_close_receipt [12:01:50]MH_GetDate [12:01:50]Write to MH i2c: F0 00 00 CC E1 9C [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: F0 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: F0 09 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: F0 09 00 CC E1 00 3A F1 14 67 21 48 4A 65 63 [12:01:50]GetLastDocTimeStamp 1729425659 [12:01:50]current date 1729425722 [12:01:50]FM_GetShiftState [12:01:50]SAM_PROTO_GetShiftState [12:01:50]wFMCommunicate request_size=4 [12:01:50]MH_SAM_APDU [12:01:50]CAPDU: 80 13 01 00 [12:01:50]Write to MH i2c: E2 08 00 CD E1 80 13 01 00 00 00 00 00 2B [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:50]Read from MH i2c: E2 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 0E 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 0E 00 CD E1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 73 [12:01:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:01:50]wFMCommunicate OK [12:01:50]SAM_PROTO_GetShiftState done [12:01:50]FM_GetShiftState done [12:01:50]opened in 1729384561 [12:01:50]opened+sec_in_day 1729470961 [12:01:50]quantity*price = 50041 [12:01:50]sum+1 = 50042 [12:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 131 20.10.2024 12:02 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165649 ФПД: 78547879087637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120202&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165649&fm=78547879087637&tin=02508201610067®Number=0000000000091764&sum=50000 [12:01:51]StoreToDocumentArchive [12:01:51]shift 534 fd 165649 [12:01:51]save to /storage/0534/doc_00165649 [12:01:51]save last doc name /storage/0534/doc_00165649 to /storage/kkm_last_doc_name [12:01:51]save OK [12:01:51]Clear old archive folders... [12:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:51]tlvbuf is 0161BE80 [12:01:51]SAM_PROTO_ClearQueue [12:01:51]wFMCommunicate request_size=4 [12:01:51]MH_SAM_APDU [12:01:51]CAPDU: 80 09 00 00 [12:01:51]Write to MH i2c: E2 08 00 DA E1 80 09 00 00 00 00 00 00 2D [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:51]Read from MH i2c: E2 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 03 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 03 00 DA E1 00 90 00 2F [12:01:51]RAPDU: 90 00 [12:01:51]wFMCommunicate OK [12:01:51]SAM_PROTO_ClearQueue done [12:01:51]KKMCreateOFDPacket [12:01:51]OFDProtocolAddRootSTLVToBuf [12:01:51]FM_MakeSignedData [12:01:51]FM_MakeSignedData [12:01:51]SAM_PROTO_SignData [12:01:51]wFMCommunicate request_size=4 [12:01:51]MH_SAM_APDU [12:01:51]CAPDU: 80 0D 01 02 [12:01:51]Write to MH i2c: E2 08 00 DB E1 80 0D 01 02 00 00 00 00 35 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:51]Read from MH i2c: E2 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 03 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 03 00 DB E1 00 90 00 30 [12:01:51]RAPDU: 90 00 [12:01:51]wFMCommunicate OK [12:01:51]wFMCommunicate request_size=255 [12:01:51]MH_SAM_APDU [12:01: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 87 02 00 35 04 06 00 47 [12:01:51]Write to MH i2c: E2 02 01 DC E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 87 02 00 35 04 06 00 47 00 00 ED [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 DC E1 00 90 00 31 [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]wFMCommunicate request_size=10 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 02 02 05 70 5A 6E 4E 15 [12:01:52]Write to MH i2c: E2 0D 00 DD E1 80 0D 02 02 05 00 70 5A 6E 4E 15 00 00 DD [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 DD E1 00 90 00 32 [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 03 02 [12:01:52]Write to MH i2c: E2 08 00 DE E1 80 0D 03 02 00 00 00 00 3A [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0B 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0B 00 DE E1 00 93 31 1F 70 D2 B6 86 E2 90 00 7E [12:01:52]RAPDU: 93 31 1F 70 D2 B6 86 E2 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_SignData done [12:01:52]FM_MakeSignedData done [12:01:52]CreateOFDProtocolMessage [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 11 00 00 [12:01:52]Write to MH i2c: E2 08 00 DF E1 80 11 00 00 00 00 00 00 3A [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 DF E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [12:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:01:52]wFMCommunicate OK [12:01:52]CreateOFDProtocolMessage done [12:01:52]OFDSenderStorePacket 165649 [12:01:52]StoreOFDPacket docnum=165649 [12:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 53 0C 07 01 5F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 87 02 00 35 04 06 00 47 70 5A 6E 4E 15 93 31 1F 70 D2 B6 86 E2 [12:01:52]CheckFolder [12:01:52]dirname=/storage/ofd_packets [12:01:52]CheckFolder done [12:01:52]ProducePacketName [12:01:52]name=ofd_packets/00165649 [12:01:52]NVStorageSaveData ofd_packets/00165649 [12:01:52]File name is /storage/ofd_packets/00165649 [12:01:52]Write 301 bytes [12:01:52]NVStorageSaveData done [12:01:52]OFDSenderStorePacket done [12:01:52]KKMCreateOFDPacket done [12:01:52]NVStorageSaveData kkm_last_timestamp [12:01:52]File name is /storage/kkm_last_timestamp [12:01:52]Write 4 bytes [12:01:52]NVStorageSaveData done [12:01:52]ExternCall_PrintAddStr [12:01:52]wPrintStart [12:01:52]Write to MH i2c: 01 00 00 E0 E1 C1 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 07 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 07 00 E0 E1 00 00 00 00 00 FF 0F D6 [12:01:52]RasterBufferAndPrint [12:01:52]line Счет N : (1)220212 [12:01:52]line ИНН: 02508201610067 [12:01:52]line Контрольно-Кассовый Чек [12:01:52]line ПРОДАЖА [12:01:52]line ТРК (МРК, ГНК) : 33 [12:01:52]line Товар: 2710124130 [12:01:52]line Аи-92-К-5 [12:01:52]line 7.480 * 66.90 [12:01:52]line = 500.41 [12:01:52]line НДС 12% НСП 1% [12:01:52]line > о реализуемом товаре [12:01:52]line ОКРУГЛЕНИЕ: -0.41 [12:01:52]line ИТОГО: 500.00 [12:01:52]line Внесено: 500.00 [12:01:52]line СДАЧА: 0.00 [12:01:52]line НСП 1% : 4.43 [12:01:52]line НДС 12% : 53.14 [12:01:52]line Наличными: 500.00 [12:01:52]line Безнал.: 0.00 [12:01:52]line Место: АЗС № 161 "Партнер Нефть" [12:01:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:01:52]line СНО: Общий режим [12:01:52]line Чек 131 20.10.2024 12:02 [12:01:52]line Смена: 534 ФФД: 1.0 [12:01:52]line ЗНМ: 0300000104 [12:01:52]line РНМ: 0000000000091764 [12:01:52]line Версия ККМ: 001 [12:01:52]line ФМ: 0000000000871759 [12:01:52]line ФД: 165649 [12:01:52]line ФПД: 78547879087637 [12:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120202&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165649&fm=78547879087637&tin=02508201610067®Number=0000000000091764&sum=50000 [12:01:52]OFD Sender: Processing packet 165649 [packets to send 48, broken 47] [12:01:52]ProducePacketName [12:01:52]name=ofd_packets/00165649 [12:01:52]OFD Sender: To server: pG, [12:01:52]CommunicateWithHost lk.salyk.kg:30040 [12:01:52]ConnectInit lk.salyk.kg [12:01:52]written 0, free lines is 4095 [12:01:52]Connected sock=10 [12:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 53 0C 07 01 5F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 87 02 00 35 04 06 00 47 70 5A 6E 4E 15 93 31 1F 70 D2 B6 86 E2 [12:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 80 58 47 00 BD 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 31 37 35 39 10 04 04 00 11 87 02 00 F4 03 04 00 AC 97 14 67 B6 04 01 00 00 F3 11 62 22 23 CD 80 BC [12:01:52]CommunicateWithHost err = 0 [12:01:52]CheckOFDResponse [12:01:52]1017 (14) - 77093643461234 [12:01:52]1041 (16) - 0000000000871759 [12:01:52]1040 (4) - 165649 [12:01:52]1012 (4) - 20.10.2024 05:39 [12:01:52]1206 (1) - 0 [12:01:52]OFD Sender: Remove packet 165649 [12:01:52]ProducePacketName [12:01:52]name=ofd_packets/00165649 [12:01:52]NVStorageDeleteData [12:01:53]Write to MH i2c: 01 00 00 0B E2 ED [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 07 00 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 07 00 0B E2 00 00 00 00 00 C1 0C C1 [12:01:53]RasterBufferAndPrint [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]written 0, free lines is 3274 [12:01:53]MH_Cut [12:01:53]Write to MH i2c: D1 01 00 12 E2 01 C6 [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 01 00 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 01 00 12 E2 00 C5 [12:01:53]Write to MH i2c: 01 00 00 13 E2 F5 [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:53]OFD Sender: No OFD packet to send [12:01:53]*** Cut start [12:01:53]*** Partial cut [12:01:53]*** CUTSNS_PIN = 1 [12:01:53]*** CUTSNS_PIN = 0 [12:01:54]*** Brake cut motor [12:01:54]Read from MH i2c: 01 [12:01:54]MH_I2C_Read... [12:01:54]*** Stop cut motor [12:01:54]*** Cut end [12:01:54]Read from MH i2c: 01 07 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: 01 07 00 13 E2 00 00 00 00 00 FF 0F 0A [12:01:54]process_action close_receipt done [12:01:54]requested_data is exist [12:01:54]produce_requested_data [12:01:54]requested_item fm.sn is exist - process it [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 11 00 00 [12:01:54]Write to MH i2c: E2 08 00 14 E2 80 11 00 00 00 00 00 00 70 [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 17 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 17 00 14 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C8 [12:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:01:54]wFMCommunicate OK [12:01:54]requested_item fd.num is exist - process it [12:01:54]SAM_PROTO_GetFieldsCounters [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 13 00 00 [12:01:54]Write to MH i2c: E2 08 00 15 E2 80 13 00 00 00 00 00 00 73 [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 62 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 62 00 15 E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [12:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:54]wFMCommunicate OK [12:01:54]SAM_PROTO_GetFieldsCounters done [12:01:54]requested_item shift.num is exist - process it [12:01:54]requested_item shift.opened is exist - process it [12:01:54]req_shift_opened [12:01:54]FM_GetShiftState [12:01:54]SAM_PROTO_GetShiftState [12:01:54]wFMCommunicate request_size=4 [12:01:54]MH_SAM_APDU [12:01:54]CAPDU: 80 13 01 00 [12:01:54]Write to MH i2c: E2 08 00 16 E2 80 13 01 00 00 00 00 00 75 [12:01:54]Write i2c OK [12:01:54]MH_I2C_Read... [12:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:54]Read from MH i2c: E2 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 0E 00 [12:01:54]MH_I2C_Read... [12:01:54]Read from MH i2c: E2 0E 00 16 E2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BD [12:01:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:01:54]wFMCommunicate OK [12:01:54]SAM_PROTO_GetShiftState done [12:01:54]FM_GetShiftState done [12:01:54]req_shift_opened done [12:01:54]requested_item shift.open_date is exist - process it [12:01:54]req_shift_open_date [12:01:54]req_shift_open_date done [12:01:54]produce_requested_data done [12:01:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165649,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:01:54]process_action_free close_receipt [12:01:54]json_value_free [12:01:54]json_value_free done [12:01:54]process_json_proto returns [12:01:54]Send response to host [12:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165649,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:01:54]free response buf [12:01:54]execute_script done [12:01:54]execute_script returns [12:01:54]free content buf [12:01:54]Sock 9.Close socket [12:01:54]Sock 9.Thread stoped [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:05]accept exits with 7 [12:03:05]New connection [12:03:05]New thread 3066776932 created [12:03:05]Thread 3066920292 joined [12:03:05]Waiting for new connection... [12:03:05] Sock 7.Parse request [12:03:05]Sock 7.Check first char [12:03:05]Sock 7.First char is OK [12:03:05]request: POST /json_proto HTTP/1.0 [12:03:05]Method: POST [12:03:05]URL: /json_proto [12:03:05]Method is POST - this is cgi request [12:03:05]url: /json_proto [12:03:05]query_string will be loaded in cgi processing [12:03:05]execute_cgi json_proto POST (null) [12:03:05]execute_cgi path=json_proto method=POST [12:03:05]POST find Content-Length [12:03:05]Host: 172.17.53.195:8080 [12:03:05]Content-Length: 682 [12:03:05]Content-Type: application/json [12:03:05] [12:03:05]POST finish read [12:03:05]Found Content-Length = 682 [12:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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:03:05]execute_script... [12:03: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)220213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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:03:05]POST & json_proto [12:03:05]process_json_proto [12:03:05]json parsed OK: [12:03:05]protocol is kg_v1.0 [12:03:05]action value=close_receipt [12:03:05]process_action close_receipt [12:03:05]cmd_close_receipt [12:03:05]MH_GetDate [12:03:05]Write to MH i2c: F0 00 00 17 E2 E8 [12:03:05]Write i2c OK [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: F0 [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: F0 09 00 [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: F0 09 00 17 E2 00 85 F1 14 67 21 48 4A 65 FA [12:03:05]GetLastDocTimeStamp 1729425722 [12:03:05]current date 1729425797 [12:03:05]FM_GetShiftState [12:03:05]SAM_PROTO_GetShiftState [12:03:05]wFMCommunicate request_size=4 [12:03:05]MH_SAM_APDU [12:03:05]CAPDU: 80 13 01 00 [12:03:05]Write to MH i2c: E2 08 00 18 E2 80 13 01 00 00 00 00 00 77 [12:03:05]Write i2c OK [12:03:05]MH_I2C_Read... [12:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:05]Read from MH i2c: E2 [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: E2 0E 00 [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: E2 0E 00 18 E2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BF [12:03:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:03:05]wFMCommunicate OK [12:03:05]SAM_PROTO_GetShiftState done [12:03:05]FM_GetShiftState done [12:03:05]opened in 1729384561 [12:03:05]opened+sec_in_day 1729470961 [12:03:05]quantity*price = 200031 [12:03:05]sum+1 = 200032 [12:03:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 132 20.10.2024 12:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165650 ФПД: 211228843214698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120317&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165650&fm=211228843214698&tin=02508201610067®Number=0000000000091764&sum=200000 [12:03:06]StoreToDocumentArchive [12:03:06]shift 534 fd 165650 [12:03:06]save to /storage/0534/doc_00165650 [12:03:06]save last doc name /storage/0534/doc_00165650 to /storage/kkm_last_doc_name [12:03:06]save OK [12:03:06]Clear old archive folders... [12:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:06]tlvbuf is 016AB280 [12:03:06]SAM_PROTO_ClearQueue [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 09 00 00 [12:03:06]Write to MH i2c: E2 08 00 25 E2 80 09 00 00 00 00 00 00 79 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 03 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 03 00 25 E2 00 90 00 7B [12:03:06]RAPDU: 90 00 [12:03:06]wFMCommunicate OK [12:03:06]SAM_PROTO_ClearQueue done [12:03:06]KKMCreateOFDPacket [12:03:06]OFDProtocolAddRootSTLVToBuf [12:03:06]FM_MakeSignedData [12:03:06]FM_MakeSignedData [12:03:06]SAM_PROTO_SignData [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 0D 01 02 [12:03:06]Write to MH i2c: E2 08 00 26 E2 80 0D 01 02 00 00 00 00 81 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 03 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 03 00 26 E2 00 90 00 7C [12:03:06]RAPDU: 90 00 [12:03:06]wFMCommunicate OK [12:03:06]wFMCommunicate request_size=255 [12:03:06]MH_SAM_APDU [12:03: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 84 00 00 00 F4 03 04 00 85 F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 87 02 00 35 04 06 00 C0 [12:03:06]Write to MH i2c: E2 02 01 27 E2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 84 00 00 00 F4 03 04 00 85 F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 87 02 00 35 04 06 00 C0 00 00 41 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 03 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 03 00 27 E2 00 90 00 7D [12:03:06]RAPDU: 90 00 [12:03:06]wFMCommunicate OK [12:03:06]wFMCommunicate request_size=10 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 0D 02 02 05 1C 8C 2A 87 6A [12:03:06]Write to MH i2c: E2 0D 00 28 E2 80 0D 02 02 05 00 1C 8C 2A 87 6A 00 00 51 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 03 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 03 00 28 E2 00 90 00 7E [12:03:06]RAPDU: 90 00 [12:03:06]wFMCommunicate OK [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 0D 03 02 [12:03:06]Write to MH i2c: E2 08 00 29 E2 80 0D 03 02 00 00 00 00 86 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 0B 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 0B 00 29 E2 00 0C C9 8D 95 8C 0A 56 27 90 00 91 [12:03:06]RAPDU: 0C C9 8D 95 8C 0A 56 27 90 00 [12:03:06]wFMCommunicate OK [12:03:06]SAM_PROTO_SignData done [12:03:06]FM_MakeSignedData done [12:03:06]CreateOFDProtocolMessage [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 11 00 00 [12:03:06]Write to MH i2c: E2 08 00 2A E2 80 11 00 00 00 00 00 00 86 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 17 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 17 00 2A E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [12:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:03:06]wFMCommunicate OK [12:03:06]CreateOFDProtocolMessage done [12:03:06]OFDSenderStorePacket 165650 [12:03:06]StoreOFDPacket docnum=165650 [12:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE 53 07 01 64 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 84 00 00 00 F4 03 04 00 85 F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 87 02 00 35 04 06 00 C0 1C 8C 2A 87 6A 0C C9 8D 95 8C 0A 56 27 [12:03:06]CheckFolder [12:03:06]dirname=/storage/ofd_packets [12:03:06]CheckFolder done [12:03:06]ProducePacketName [12:03:06]name=ofd_packets/00165650 [12:03:06]NVStorageSaveData ofd_packets/00165650 [12:03:06]File name is /storage/ofd_packets/00165650 [12:03:06]Write 301 bytes [12:03:06]NVStorageSaveData done [12:03:06]OFDSenderStorePacket done [12:03:06]KKMCreateOFDPacket done [12:03:06]NVStorageSaveData kkm_last_timestamp [12:03:06]File name is /storage/kkm_last_timestamp [12:03:06]Write 4 bytes [12:03:06]NVStorageSaveData done [12:03:06]ExternCall_PrintAddStr [12:03:06]wPrintStart [12:03:06]Write to MH i2c: 01 00 00 2B E2 0D [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: 01 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: 01 07 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: 01 07 00 2B E2 00 00 00 00 00 FF 0F 22 [12:03:06]RasterBufferAndPrint [12:03:06]line Счет N : (1)220213 [12:03:06]line ИНН: 02508201610067 [12:03:06]line Контрольно-Кассовый Чек [12:03:06]line ПРОДАЖА [12:03:06]line ТРК (МРК, ГНК) : 43 [12:03:06]line Товар: 2710124130 [12:03:06]line Аи-92-К-5 [12:03:06]line 29.900 * 66.90 [12:03:06]line = 2000.31 [12:03:06]line НДС 12% НСП 1% [12:03:06]line > о реализуемом товаре [12:03:06]line ОКРУГЛЕНИЕ: -0.31 [12:03:06]line ИТОГО: 2000.00 [12:03:06]line Внесено: 2000.00 [12:03:06]line СДАЧА: 0.00 [12:03:06]line НСП 1% : 17.70 [12:03:06]line НДС 12% : 212.42 [12:03:06]line Наличными: 2000.00 [12:03:06]line Безнал.: 0.00 [12:03:06]line Место: АЗС № 161 "Партнер Нефть" [12:03:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:03:06]line СНО: Общий режим [12:03:06]line Чек 132 20.10.2024 12:03 [12:03:06]line Смена: 534 ФФД: 1.0 [12:03:06]line ЗНМ: 0300000104 [12:03:06]line РНМ: 0000000000091764 [12:03:06]line Версия ККМ: 001 [12:03:06]line ФМ: 0000000000871759 [12:03:06]line ФД: 165650 [12:03:06]line ФПД: 211228843214698 [12:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120317&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165650&fm=211228843214698&tin=02508201610067®Number=0000000000091764&sum=200000 [12:03:07]OFD Sender: Processing packet 165650 [packets to send 48, broken 47] [12:03:07]ProducePacketName [12:03:07]name=ofd_packets/00165650 [12:03:07]OFD Sender: To server: pG, [12:03:07]CommunicateWithHost lk.salyk.kg:30040 [12:03:07]ConnectInit lk.salyk.kg [12:03:07]written 0, free lines is 4095 [12:03:07]Connected sock=11 [12:03:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE 53 07 01 64 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 84 00 00 00 F4 03 04 00 85 F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 87 02 00 35 04 06 00 C0 1C 8C 2A 87 6A 0C C9 8D 95 8C 0A 56 27 [12:03:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1F 8F 47 00 79 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 31 37 35 39 10 04 04 00 12 87 02 00 F4 03 04 00 F7 97 14 67 B6 04 01 00 00 D5 65 9C 47 48 0B DC 26 [12:03:07]CommunicateWithHost err = 0 [12:03:07]CheckOFDResponse [12:03:07]1017 (14) - 77093643461234 [12:03:07]1041 (16) - 0000000000871759 [12:03:07]1040 (4) - 165650 [12:03:07]1012 (4) - 20.10.2024 05:41 [12:03:07]1206 (1) - 0 [12:03:07]OFD Sender: Remove packet 165650 [12:03:07]ProducePacketName [12:03:07]name=ofd_packets/00165650 [12:03:07]NVStorageDeleteData [12:03:07]Write to MH i2c: 01 00 00 56 E2 38 [12:03:07]Write i2c OK [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: 01 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: 01 07 00 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: 01 07 00 56 E2 00 00 00 00 00 CB 0C 16 [12:03:07]RasterBufferAndPrint [12:03:07]line [12:03:07]line [12:03:07]line [12:03:07]line [12:03:07]line [12:03:07]written 0, free lines is 3280 [12:03:07]MH_Cut [12:03:07]Write to MH i2c: D1 01 00 5D E2 01 11 [12:03:07]Write i2c OK [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: D1 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: D1 01 00 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: D1 01 00 5D E2 00 10 [12:03:07]Write to MH i2c: 01 00 00 5E E2 40 [12:03:07]Write i2c OK [12:03:07]MH_I2C_Read... [12:03:07]OFD Sender: No OFD packet to send [12:03:08]*** Cut start [12:03:08]*** Partial cut [12:03:08]*** CUTSNS_PIN = 1 [12:03:08]*** CUTSNS_PIN = 0 [12:03:08]*** Brake cut motor [12:03:08]Read from MH i2c: 01 [12:03:09]MH_I2C_Read... [12:03:09]*** Stop cut motor [12:03:09]*** Cut end [12:03:09]Read from MH i2c: 01 07 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: 01 07 00 5E E2 00 00 00 00 00 FF 0F 55 [12:03:09]process_action close_receipt done [12:03:09]requested_data is exist [12:03:09]produce_requested_data [12:03:09]requested_item fm.sn is exist - process it [12:03:09]wFMCommunicate request_size=4 [12:03:09]MH_SAM_APDU [12:03:09]CAPDU: 80 11 00 00 [12:03:09]Write to MH i2c: E2 08 00 5F E2 80 11 00 00 00 00 00 00 BB [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:09]Read from MH i2c: E2 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 17 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 17 00 5F E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [12:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:03:09]wFMCommunicate OK [12:03:09]requested_item fd.num is exist - process it [12:03:09]SAM_PROTO_GetFieldsCounters [12:03:09]wFMCommunicate request_size=4 [12:03:09]MH_SAM_APDU [12:03:09]CAPDU: 80 13 00 00 [12:03:09]Write to MH i2c: E2 08 00 60 E2 80 13 00 00 00 00 00 00 BE [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:09]Read from MH i2c: E2 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 62 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 62 00 60 E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [12:03:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:09]wFMCommunicate OK [12:03:09]SAM_PROTO_GetFieldsCounters done [12:03:09]requested_item shift.num is exist - process it [12:03:09]requested_item shift.opened is exist - process it [12:03:09]req_shift_opened [12:03:09]FM_GetShiftState [12:03:09]SAM_PROTO_GetShiftState [12:03:09]wFMCommunicate request_size=4 [12:03:09]MH_SAM_APDU [12:03:09]CAPDU: 80 13 01 00 [12:03:09]Write to MH i2c: E2 08 00 61 E2 80 13 01 00 00 00 00 00 C0 [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:09]Read from MH i2c: E2 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 0E 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 0E 00 61 E2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 08 [12:03:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:03:09]wFMCommunicate OK [12:03:09]SAM_PROTO_GetShiftState done [12:03:09]FM_GetShiftState done [12:03:09]req_shift_opened done [12:03:09]requested_item shift.open_date is exist - process it [12:03:09]req_shift_open_date [12:03:09]req_shift_open_date done [12:03:09]produce_requested_data done [12:03:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165650,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:03:09]process_action_free close_receipt [12:03:09]json_value_free [12:03:09]json_value_free done [12:03:09]process_json_proto returns [12:03:09]Send response to host [12:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165650,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:03:09]free response buf [12:03:09]execute_script done [12:03:09]execute_script returns [12:03:09]free content buf [12:03:09]Sock 7.Close socket [12:03:09]Sock 7.Thread stoped [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:30]accept exits with 9 [12:04:30]New connection [12:04:30]New thread 3066920292 created [12:04:30]Thread 3066776932 joined [12:04:30]Waiting for new connection... [12:04:30] Sock 9.Parse request [12:04:30]Sock 9.Check first char [12:04:30]Sock 9.First char is OK [12:04:30]request: POST /json_proto HTTP/1.0 [12:04:30]Method: POST [12:04:30]URL: /json_proto [12:04:30]Method is POST - this is cgi request [12:04:30]url: /json_proto [12:04:30]query_string will be loaded in cgi processing [12:04:30]execute_cgi json_proto POST (null) [12:04:30]execute_cgi path=json_proto method=POST [12:04:30]POST find Content-Length [12:04:30]Host: 172.17.53.195:8080 [12:04:30]Content-Length: 678 [12:04:30]Content-Type: application/json [12:04:30] [12:04:30]POST finish read [12:04:30]Found Content-Length = 678 [12:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.800, "sum" : 856.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:30]execute_script... [12: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)220214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.800, "sum" : 856.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:30]POST & json_proto [12:04:30]process_json_proto [12:04:30]json parsed OK: [12:04:30]protocol is kg_v1.0 [12:04:30]action value=close_receipt [12:04:30]process_action close_receipt [12:04:30]cmd_close_receipt [12:04:30]MH_GetDate [12:04:30]Write to MH i2c: F0 00 00 62 E2 33 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: F0 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: F0 09 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: F0 09 00 62 E2 00 DA F1 14 67 21 48 4A 65 9A [12:04:30]GetLastDocTimeStamp 1729425797 [12:04:30]current date 1729425882 [12:04:30]FM_GetShiftState [12:04:30]SAM_PROTO_GetShiftState [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 13 01 00 [12:04:30]Write to MH i2c: E2 08 00 63 E2 80 13 01 00 00 00 00 00 C2 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 0E 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 0E 00 63 E2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0A [12:04:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:04:30]wFMCommunicate OK [12:04:30]SAM_PROTO_GetShiftState done [12:04:30]FM_GetShiftState done [12:04:30]opened in 1729384561 [12:04:30]opened+sec_in_day 1729470961 [12:04:30]quantity*price = 85632 [12:04:30]sum+1 = 85633 [12:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 856.00 Внесено: 856.00 СДАЧА: 0.00 НСП 1% : 7.58 НДС 12% : 90.94 Наличными: 856.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 133 20.10.2024 12:04 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165651 ФПД: 264299954207823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120442&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165651&fm=264299954207823&tin=02508201610067®Number=0000000000091764&sum=85600 [12:04:31]StoreToDocumentArchive [12:04:31]shift 534 fd 165651 [12:04:31]save to /storage/0534/doc_00165651 [12:04:31]save last doc name /storage/0534/doc_00165651 to /storage/kkm_last_doc_name [12:04:31]save OK [12:04:31]Clear old archive folders... [12:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:31]tlvbuf is 016C7860 [12:04:31]SAM_PROTO_ClearQueue [12:04:31]wFMCommunicate request_size=4 [12:04:31]MH_SAM_APDU [12:04:31]CAPDU: 80 09 00 00 [12:04:31]Write to MH i2c: E2 08 00 70 E2 80 09 00 00 00 00 00 00 C4 [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 70 E2 00 90 00 C6 [12:04:31]RAPDU: 90 00 [12:04:31]wFMCommunicate OK [12:04:31]SAM_PROTO_ClearQueue done [12:04:31]KKMCreateOFDPacket [12:04:31]OFDProtocolAddRootSTLVToBuf [12:04:31]FM_MakeSignedData [12:04:31]FM_MakeSignedData [12:04:31]SAM_PROTO_SignData [12:04:31]wFMCommunicate request_size=4 [12:04:31]MH_SAM_APDU [12:04:31]CAPDU: 80 0D 01 02 [12:04:31]Write to MH i2c: E2 08 00 71 E2 80 0D 01 02 00 00 00 00 CC [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 71 E2 00 90 00 C7 [12:04:31]RAPDU: 90 00 [12:04:31]wFMCommunicate OK [12:04:31]wFMCommunicate request_size=255 [12:04:31]MH_SAM_APDU [12: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 00 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 80 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 23 00 00 00 00 07 04 06 00 60 4E 01 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 DA F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 87 02 00 35 04 06 00 F0 [12:04:31]Write to MH i2c: E2 02 01 72 E2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 80 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 23 00 00 00 00 07 04 06 00 60 4E 01 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 DA F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 87 02 00 35 04 06 00 F0 00 00 88 [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 72 E2 00 90 00 C8 [12:04:31]RAPDU: 90 00 [12:04:31]wFMCommunicate OK [12:04:31]wFMCommunicate request_size=10 [12:04:31]MH_SAM_APDU [12:04:31]CAPDU: 80 0D 02 02 05 61 20 E2 7C 4F [12:04:31]Write to MH i2c: E2 0D 00 73 E2 80 0D 02 02 05 00 61 20 E2 7C 4F 00 00 07 [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 03 00 73 E2 00 90 00 C9 [12:04:31]RAPDU: 90 00 [12:04:31]wFMCommunicate OK [12:04:31]wFMCommunicate request_size=4 [12:04:31]MH_SAM_APDU [12:04:31]CAPDU: 80 0D 03 02 [12:04:31]Write to MH i2c: E2 08 00 74 E2 80 0D 03 02 00 00 00 00 D1 [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 0B 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 0B 00 74 E2 00 BB 1B 1A A5 A2 65 B5 16 90 00 39 [12:04:31]RAPDU: BB 1B 1A A5 A2 65 B5 16 90 00 [12:04:31]wFMCommunicate OK [12:04:31]SAM_PROTO_SignData done [12:04:31]FM_MakeSignedData done [12:04:31]CreateOFDProtocolMessage [12:04:31]wFMCommunicate request_size=4 [12:04:31]MH_SAM_APDU [12:04:31]CAPDU: 80 11 00 00 [12:04:31]Write to MH i2c: E2 08 00 75 E2 80 11 00 00 00 00 00 00 D1 [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:31]Read from MH i2c: E2 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 17 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: E2 17 00 75 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [12:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:04:31]wFMCommunicate OK [12:04:31]CreateOFDProtocolMessage done [12:04:31]OFDSenderStorePacket 165651 [12:04:31]StoreOFDPacket docnum=165651 [12:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D6 EC 07 01 CA 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 00 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 80 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 23 00 00 00 00 07 04 06 00 60 4E 01 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 DA F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 87 02 00 35 04 06 00 F0 61 20 E2 7C 4F BB 1B 1A A5 A2 65 B5 16 [12:04:31]CheckFolder [12:04:31]dirname=/storage/ofd_packets [12:04:31]CheckFolder done [12:04:31]ProducePacketName [12:04:31]name=ofd_packets/00165651 [12:04:31]NVStorageSaveData ofd_packets/00165651 [12:04:31]File name is /storage/ofd_packets/00165651 [12:04:31]Write 301 bytes [12:04:31]NVStorageSaveData done [12:04:31]OFDSenderStorePacket done [12:04:31]KKMCreateOFDPacket done [12:04:31]NVStorageSaveData kkm_last_timestamp [12:04:31]File name is /storage/kkm_last_timestamp [12:04:31]Write 4 bytes [12:04:31]NVStorageSaveData done [12:04:31]ExternCall_PrintAddStr [12:04:31]wPrintStart [12:04:31]Write to MH i2c: 01 00 00 76 E2 58 [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: 01 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: 01 07 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: 01 07 00 76 E2 00 00 00 00 00 FF 0F 6D [12:04:31]RasterBufferAndPrint [12:04:31]line Счет N : (1)220214 [12:04:31]line ИНН: 02508201610067 [12:04:31]line Контрольно-Кассовый Чек [12:04:31]line ПРОДАЖА [12:04:31]line ТРК (МРК, ГНК) : 33 [12:04:31]line Товар: 2710124130 [12:04:31]line Аи-92-К-5 [12:04:31]line 12.800 * 66.90 [12:04:31]line = 856.32 [12:04:31]line НДС 12% НСП 1% [12:04:31]line > о реализуемом товаре [12:04:31]line ОКРУГЛЕНИЕ: -0.32 [12:04:31]line ИТОГО: 856.00 [12:04:31]line Внесено: 856.00 [12:04:31]line СДАЧА: 0.00 [12:04:31]line НСП 1% : 7.58 [12:04:31]line НДС 12% : 90.94 [12:04:31]line Наличными: 856.00 [12:04:31]line Безнал.: 0.00 [12:04:31]line Место: АЗС № 161 "Партнер Нефть" [12:04:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:04:31]line СНО: Общий режим [12:04:31]line Чек 133 20.10.2024 12:04 [12:04:31]line Смена: 534 ФФД: 1.0 [12:04:31]line ЗНМ: 0300000104 [12:04:31]line РНМ: 0000000000091764 [12:04:31]line Версия ККМ: 001 [12:04:31]line ФМ: 0000000000871759 [12:04:31]line ФД: 165651 [12:04:31]line ФПД: 264299954207823 [12:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120442&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165651&fm=264299954207823&tin=02508201610067®Number=0000000000091764&sum=85600 [12:04:32]OFD Sender: Processing packet 165651 [packets to send 48, broken 47] [12:04:32]ProducePacketName [12:04:32]name=ofd_packets/00165651 [12:04:32]OFD Sender: To server: pG, [12:04:32]CommunicateWithHost lk.salyk.kg:30040 [12:04:32]ConnectInit lk.salyk.kg [12:04:32]written 0, free lines is 4095 [12:04:32]Connected sock=10 [12: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 31 37 35 39 0F 01 00 00 D6 EC 07 01 CA 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 00 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 80 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 23 00 00 00 00 07 04 06 00 60 4E 01 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 DA F1 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 87 02 00 35 04 06 00 F0 61 20 E2 7C 4F BB 1B 1A A5 A2 65 B5 16 [12:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9C F9 47 00 C3 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 31 37 35 39 10 04 04 00 13 87 02 00 F4 03 04 00 4C 98 14 67 B6 04 01 00 00 47 7F DF E0 AA FF DB 6A [12:04:32]CommunicateWithHost err = 0 [12:04:32]CheckOFDResponse [12:04:32]1017 (14) - 77093643461234 [12:04:32]1041 (16) - 0000000000871759 [12:04:32]1040 (4) - 165651 [12:04:32]1012 (4) - 20.10.2024 05:42 [12:04:32]1206 (1) - 0 [12:04:32]OFD Sender: Remove packet 165651 [12:04:32]ProducePacketName [12:04:32]name=ofd_packets/00165651 [12:04:32]NVStorageDeleteData [12:04:32]Write to MH i2c: 01 00 00 A1 E2 83 [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: 01 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: 01 07 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: 01 07 00 A1 E2 00 00 00 00 00 CE 0C 64 [12:04:32]RasterBufferAndPrint [12:04:32]line [12:04:32]line [12:04:32]line [12:04:32]line [12:04:32]line [12:04:32]written 0, free lines is 3285 [12:04:32]MH_Cut [12:04:32]Write to MH i2c: D1 01 00 A8 E2 01 5C [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: D1 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: D1 01 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: D1 01 00 A8 E2 00 5B [12:04:32]Write to MH i2c: 01 00 00 A9 E2 8B [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]OFD Sender: No OFD packet to send [12:04:33]*** Cut start [12:04:33]*** Partial cut [12:04:33]*** CUTSNS_PIN = 1 [12:04:33]*** CUTSNS_PIN = 0 [12:04:33]*** Brake cut motor [12:04:34]Read from MH i2c: 01 [12:04:34]MH_I2C_Read... [12:04:34]*** Stop cut motor [12:04:34]*** Cut end [12:04:34]Read from MH i2c: 01 07 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: 01 07 00 A9 E2 00 00 00 00 00 FF 0F A0 [12:04:34]process_action close_receipt done [12:04:34]requested_data is exist [12:04:34]produce_requested_data [12:04:34]requested_item fm.sn is exist - process it [12:04:34]wFMCommunicate request_size=4 [12:04:34]MH_SAM_APDU [12:04:34]CAPDU: 80 11 00 00 [12:04:34]Write to MH i2c: E2 08 00 AA E2 80 11 00 00 00 00 00 00 06 [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 17 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 17 00 AA E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5E [12:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:04:34]wFMCommunicate OK [12:04:34]requested_item fd.num is exist - process it [12:04:34]SAM_PROTO_GetFieldsCounters [12:04:34]wFMCommunicate request_size=4 [12:04:34]MH_SAM_APDU [12:04:34]CAPDU: 80 13 00 00 [12:04:34]Write to MH i2c: E2 08 00 AB E2 80 13 00 00 00 00 00 00 09 [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 62 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 62 00 AB E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:34]wFMCommunicate OK [12:04:34]SAM_PROTO_GetFieldsCounters done [12:04:34]requested_item shift.num is exist - process it [12:04:34]requested_item shift.opened is exist - process it [12:04:34]req_shift_opened [12:04:34]FM_GetShiftState [12:04:34]SAM_PROTO_GetShiftState [12:04:34]wFMCommunicate request_size=4 [12:04:34]MH_SAM_APDU [12:04:34]CAPDU: 80 13 01 00 [12:04:34]Write to MH i2c: E2 08 00 AC E2 80 13 01 00 00 00 00 00 0B [12:04:34]Write i2c OK [12:04:34]MH_I2C_Read... [12:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:34]Read from MH i2c: E2 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 0E 00 [12:04:34]MH_I2C_Read... [12:04:34]Read from MH i2c: E2 0E 00 AC E2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 53 [12:04:34]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:04:34]wFMCommunicate OK [12:04:34]SAM_PROTO_GetShiftState done [12:04:34]FM_GetShiftState done [12:04:34]req_shift_opened done [12:04:34]requested_item shift.open_date is exist - process it [12:04:34]req_shift_open_date [12:04:34]req_shift_open_date done [12:04:34]produce_requested_data done [12:04:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165651,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:04:34]process_action_free close_receipt [12:04:34]json_value_free [12:04:34]json_value_free done [12:04:34]process_json_proto returns [12:04:34]Send response to host [12:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165651,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:04:34]free response buf [12:04:34]execute_script done [12:04:34]execute_script returns [12:04:34]free content buf [12:04:34]Sock 9.Close socket [12:04:34]Sock 9.Thread stoped [12:04:37]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:15]accept exits with 7 [12:05:15]New connection [12:05:15]New thread 3066776932 created [12:05:15]Thread 3066920292 joined [12:05:15]Waiting for new connection... [12:05:15] Sock 7.Parse request [12:05:15]Sock 7.Check first char [12:05:15]Sock 7.First char is OK [12:05:15]request: POST /json_proto HTTP/1.0 [12:05:15]Method: POST [12:05:15]URL: /json_proto [12:05:15]Method is POST - this is cgi request [12:05:15]url: /json_proto [12:05:15]query_string will be loaded in cgi processing [12:05:15]execute_cgi json_proto POST (null) [12:05:15]execute_cgi path=json_proto method=POST [12:05:15]POST find Content-Length [12:05:15]Host: 172.17.53.195:8080 [12:05:15]Content-Length: 679 [12:05:15]Content-Type: application/json [12:05:15] [12:05:15]POST finish read [12:05:15]Found Content-Length = 679 [12:05:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220215", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:05:15]execute_script... [12:05: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)220215", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:05:15]POST & json_proto [12:05:15]process_json_proto [12:05:15]json parsed OK: [12:05:15]protocol is kg_v1.0 [12:05:15]action value=close_receipt [12:05:15]process_action close_receipt [12:05:15]cmd_close_receipt [12:05:15]MH_GetDate [12:05:15]Write to MH i2c: F0 00 00 AD E2 7E [12:05:15]Write i2c OK [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: F0 [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: F0 09 00 [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: F0 09 00 AD E2 00 07 F2 14 67 21 48 4A 65 13 [12:05:15]GetLastDocTimeStamp 1729425882 [12:05:15]current date 1729425927 [12:05:15]FM_GetShiftState [12:05:15]SAM_PROTO_GetShiftState [12:05:15]wFMCommunicate request_size=4 [12:05:15]MH_SAM_APDU [12:05:15]CAPDU: 80 13 01 00 [12:05:15]Write to MH i2c: E2 08 00 AE E2 80 13 01 00 00 00 00 00 0D [12:05:15]Write i2c OK [12:05:15]MH_I2C_Read... [12:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:15]Read from MH i2c: E2 [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: E2 0E 00 [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: E2 0E 00 AE E2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 55 [12:05:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:05:15]wFMCommunicate OK [12:05:15]SAM_PROTO_GetShiftState done [12:05:15]FM_GetShiftState done [12:05:15]opened in 1729384561 [12:05:15]opened+sec_in_day 1729470961 [12:05:15]quantity*price = 100050 [12:05:15]sum+1 = 100052 [12:05:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 134 20.10.2024 12:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165652 ФПД: 42178379731522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120527&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165652&fm=42178379731522&tin=02508201610067®Number=0000000000091764&sum=100000 [12:05:16]StoreToDocumentArchive [12:05:16]shift 534 fd 165652 [12:05:16]save to /storage/0534/doc_00165652 [12:05:16]save last doc name /storage/0534/doc_00165652 to /storage/kkm_last_doc_name [12:05:16]save OK [12:05:16]Clear old archive folders... [12:05:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:16]tlvbuf is 0162F160 [12:05:16]SAM_PROTO_ClearQueue [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 09 00 00 [12:05:16]Write to MH i2c: E2 08 00 BB E2 80 09 00 00 00 00 00 00 0F [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 BB E2 00 90 00 11 [12:05:16]RAPDU: 90 00 [12:05:16]wFMCommunicate OK [12:05:16]SAM_PROTO_ClearQueue done [12:05:16]KKMCreateOFDPacket [12:05:16]OFDProtocolAddRootSTLVToBuf [12:05:16]FM_MakeSignedData [12:05:16]FM_MakeSignedData [12:05:16]SAM_PROTO_SignData [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 0D 01 02 [12:05:16]Write to MH i2c: E2 08 00 BC E2 80 0D 01 02 00 00 00 00 17 [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 BC E2 00 90 00 12 [12:05:16]RAPDU: 90 00 [12:05:16]wFMCommunicate OK [12:05:16]wFMCommunicate request_size=255 [12:05:16]MH_SAM_APDU [12:05: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 07 F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 87 02 00 35 04 06 00 26 5C 6B 57 [12:05:16]Write to MH i2c: E2 02 01 BD E2 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 07 F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 87 02 00 35 04 06 00 26 5C 6B 57 00 00 96 [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:17]Read from MH i2c: E2 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 03 00 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 03 00 BD E2 00 90 00 13 [12:05:17]RAPDU: 90 00 [12:05:17]wFMCommunicate OK [12:05:17]wFMCommunicate request_size=7 [12:05:17]MH_SAM_APDU [12:05:17]CAPDU: 80 0D 02 02 02 52 42 [12:05:17]Write to MH i2c: E2 0A 00 BE E2 80 0D 02 02 02 00 52 42 00 00 B2 [12:05:17]Write i2c OK [12:05:17]MH_I2C_Read... [12:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:17]Read from MH i2c: E2 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 03 00 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 03 00 BE E2 00 90 00 14 [12:05:17]RAPDU: 90 00 [12:05:17]wFMCommunicate OK [12:05:17]wFMCommunicate request_size=4 [12:05:17]MH_SAM_APDU [12:05:17]CAPDU: 80 0D 03 02 [12:05:17]Write to MH i2c: E2 08 00 BF E2 80 0D 03 02 00 00 00 00 1C [12:05:17]Write i2c OK [12:05:17]MH_I2C_Read... [12:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:17]Read from MH i2c: E2 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 0B 00 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 0B 00 BF E2 00 0B 6D EC DC 76 FA ED 9A 90 00 54 [12:05:17]RAPDU: 0B 6D EC DC 76 FA ED 9A 90 00 [12:05:17]wFMCommunicate OK [12:05:17]SAM_PROTO_SignData done [12:05:17]FM_MakeSignedData done [12:05:17]CreateOFDProtocolMessage [12:05:17]wFMCommunicate request_size=4 [12:05:17]MH_SAM_APDU [12:05:17]CAPDU: 80 11 00 00 [12:05:17]Write to MH i2c: E2 08 00 C0 E2 80 11 00 00 00 00 00 00 1C [12:05:17]Write i2c OK [12:05:17]MH_I2C_Read... [12:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:17]Read from MH i2c: E2 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 17 00 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 17 00 C0 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [12:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:05:17]wFMCommunicate OK [12:05:17]CreateOFDProtocolMessage done [12:05:17]OFDSenderStorePacket 165652 [12:05:17]StoreOFDPacket docnum=165652 [12:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AD 6D 04 01 49 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 07 F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 87 02 00 35 04 06 00 26 5C 6B 57 52 42 0B 6D EC DC 76 FA ED 9A [12:05:17]CheckFolder [12:05:17]dirname=/storage/ofd_packets [12:05:17]CheckFolder done [12:05:17]ProducePacketName [12:05:17]name=ofd_packets/00165652 [12:05:17]NVStorageSaveData ofd_packets/00165652 [12:05:17]File name is /storage/ofd_packets/00165652 [12:05:17]Write 298 bytes [12:05:17]NVStorageSaveData done [12:05:17]OFDSenderStorePacket done [12:05:17]KKMCreateOFDPacket done [12:05:17]NVStorageSaveData kkm_last_timestamp [12:05:17]File name is /storage/kkm_last_timestamp [12:05:17]Write 4 bytes [12:05:17]NVStorageSaveData done [12:05:17]ExternCall_PrintAddStr [12:05:17]wPrintStart [12:05:17]Write to MH i2c: 01 00 00 C1 E2 A3 [12:05:17]Write i2c OK [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: 01 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: 01 07 00 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: 01 07 00 C1 E2 00 00 00 00 00 FF 0F B8 [12:05:17]RasterBufferAndPrint [12:05:17]line Счет N : (1)220215 [12:05:17]line ИНН: 02508201610067 [12:05:17]line Контрольно-Кассовый Чек [12:05:17]line ПРОДАЖА [12:05:17]line ТРК (МРК, ГНК) : 21 [12:05:17]line Товар: 2710194210 [12:05:17]line ДТ-К-5 [12:05:17]line 13.130 * 76.20 [12:05:17]line = 1000.51 [12:05:17]line НДС 12% НСП 1% [12:05:17]line > о реализуемом товаре [12:05:17]line ОКРУГЛЕНИЕ: -0.51 [12:05:17]line ИТОГО: 1000.00 [12:05:17]line Внесено: 1000.00 [12:05:17]line СДАЧА: 0.00 [12:05:17]line НСП 1% : 8.85 [12:05:17]line НДС 12% : 106.25 [12:05:17]line Наличными: 1000.00 [12:05:17]line Безнал.: 0.00 [12:05:17]line Место: АЗС № 161 "Партнер Нефть" [12:05:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:05:17]line СНО: Общий режим [12:05:17]line Чек 134 20.10.2024 12:05 [12:05:17]line Смена: 534 ФФД: 1.0 [12:05:17]line ЗНМ: 0300000104 [12:05:17]line РНМ: 0000000000091764 [12:05:17]line Версия ККМ: 001 [12:05:17]line ФМ: 0000000000871759 [12:05:17]line ФД: 165652 [12:05:17]line ФПД: 42178379731522 [12:05:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120527&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165652&fm=42178379731522&tin=02508201610067®Number=0000000000091764&sum=100000 [12:05:17]OFD Sender: Processing packet 165652 [packets to send 48, broken 47] [12:05:17]ProducePacketName [12:05:17]name=ofd_packets/00165652 [12:05:17]OFD Sender: To server: pG, [12:05:17]CommunicateWithHost lk.salyk.kg:30040 [12:05:17]ConnectInit lk.salyk.kg [12:05:17]written 0, free lines is 4095 [12:05:17]Connected sock=10 [12:05:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AD 6D 04 01 49 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 07 F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 87 02 00 35 04 06 00 26 5C 6B 57 52 42 0B 6D EC DC 76 FA ED 9A [12:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 19 E5 47 00 7F 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 31 37 35 39 10 04 04 00 14 87 02 00 F4 03 04 00 79 98 14 67 B6 04 01 00 00 1D 9C B1 7E 63 60 A4 4C [12:05:18]CommunicateWithHost err = 0 [12:05:18]CheckOFDResponse [12:05:18]1017 (14) - 77093643461234 [12:05:18]1041 (16) - 0000000000871759 [12:05:18]1040 (4) - 165652 [12:05:18]1012 (4) - 20.10.2024 05:43 [12:05:18]1206 (1) - 0 [12:05:18]OFD Sender: Remove packet 165652 [12:05:18]ProducePacketName [12:05:18]name=ofd_packets/00165652 [12:05:18]NVStorageDeleteData [12:05:18]Write to MH i2c: 01 00 00 EC E2 CE [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: 01 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: 01 07 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: 01 07 00 EC E2 00 00 00 00 00 C0 0C A1 [12:05:18]RasterBufferAndPrint [12:05:18]line [12:05:18]line [12:05:18]line [12:05:18]line [12:05:18]line [12:05:18]written 0, free lines is 3271 [12:05:18]MH_Cut [12:05:18]Write to MH i2c: D1 01 00 F3 E2 01 A7 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: D1 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: D1 01 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: D1 01 00 F3 E2 00 A6 [12:05:18]Write to MH i2c: 01 00 00 F4 E2 D6 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]OFD Sender: No OFD packet to send [12:05:18]*** Cut start [12:05:18]*** Partial cut [12:05:18]*** CUTSNS_PIN = 1 [12:05:19]*** CUTSNS_PIN = 0 [12:05:19]*** Brake cut motor [12:05:19]Read from MH i2c: 01 [12:05:19]MH_I2C_Read... [12:05:19]*** Stop cut motor [12:05:19]*** Cut end [12:05:19]Read from MH i2c: 01 07 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: 01 07 00 F4 E2 00 00 00 00 00 FF 0F EB [12:05:19]process_action close_receipt done [12:05:19]requested_data is exist [12:05:19]produce_requested_data [12:05:19]requested_item fm.sn is exist - process it [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 11 00 00 [12:05:19]Write to MH i2c: E2 08 00 F5 E2 80 11 00 00 00 00 00 00 51 [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 17 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 17 00 F5 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A9 [12:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:05:19]wFMCommunicate OK [12:05:19]requested_item fd.num is exist - process it [12:05:19]SAM_PROTO_GetFieldsCounters [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 13 00 00 [12:05:19]Write to MH i2c: E2 08 00 F6 E2 80 13 00 00 00 00 00 00 54 [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 62 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 62 00 F6 E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [12:05:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:19]wFMCommunicate OK [12:05:19]SAM_PROTO_GetFieldsCounters done [12:05:19]requested_item shift.num is exist - process it [12:05:19]requested_item shift.opened is exist - process it [12:05:19]req_shift_opened [12:05:19]FM_GetShiftState [12:05:19]SAM_PROTO_GetShiftState [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 13 01 00 [12:05:19]Write to MH i2c: E2 08 00 F7 E2 80 13 01 00 00 00 00 00 56 [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 0E 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 0E 00 F7 E2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9E [12:05:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:05:19]wFMCommunicate OK [12:05:19]SAM_PROTO_GetShiftState done [12:05:19]FM_GetShiftState done [12:05:19]req_shift_opened done [12:05:19]requested_item shift.open_date is exist - process it [12:05:19]req_shift_open_date [12:05:19]req_shift_open_date done [12:05:19]produce_requested_data done [12:05:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165652,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:05:19]process_action_free close_receipt [12:05:19]json_value_free [12:05:19]json_value_free done [12:05:19]process_json_proto returns [12:05:19]Send response to host [12:05:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165652,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:05:19]free response buf [12:05:19]execute_script done [12:05:19]execute_script returns [12:05:19]free content buf [12:05:19]Sock 7.Close socket [12:05:19]Sock 7.Thread stoped [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:40]accept exits with 9 [12:06:40]New connection [12:06:40]New thread 3066920292 created [12:06:40]Thread 3066776932 joined [12:06:40]Waiting for new connection... [12:06:40] Sock 9.Parse request [12:06:40]Sock 9.Check first char [12:06:40]Sock 9.First char is OK [12:06:40]request: POST /json_proto HTTP/1.0 [12:06:40]Method: POST [12:06:40]URL: /json_proto [12:06:40]Method is POST - this is cgi request [12:06:40]url: /json_proto [12:06:40]query_string will be loaded in cgi processing [12:06:40]execute_cgi json_proto POST (null) [12:06:40]execute_cgi path=json_proto method=POST [12:06:40]POST find Content-Length [12:06:40]Host: 172.17.53.195:8080 [12:06:40]Content-Length: 677 [12:06:40]Content-Type: application/json [12:06:40] [12:06:40]POST finish read [12:06:40]Found Content-Length = 677 [12:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:40]execute_script... [12:06: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)220216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:40]POST & json_proto [12:06:40]process_json_proto [12:06:40]json parsed OK: [12:06:40]protocol is kg_v1.0 [12:06:40]action value=close_receipt [12:06:40]process_action close_receipt [12:06:40]cmd_close_receipt [12:06:40]MH_GetDate [12:06:40]Write to MH i2c: F0 00 00 F8 E2 C9 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 09 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 09 00 F8 E2 00 5C F2 14 67 21 48 4A 65 B3 [12:06:40]GetLastDocTimeStamp 1729425927 [12:06:40]current date 1729426012 [12:06:40]FM_GetShiftState [12:06:40]SAM_PROTO_GetShiftState [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 13 01 00 [12:06:40]Write to MH i2c: E2 08 00 F9 E2 80 13 01 00 00 00 00 00 58 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 0E 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 0E 00 F9 E2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A0 [12:06:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:06:40]wFMCommunicate OK [12:06:40]SAM_PROTO_GetShiftState done [12:06:40]FM_GetShiftState done [12:06:40]opened in 1729384561 [12:06:40]opened+sec_in_day 1729470961 [12:06:40]quantity*price = 49974 [12:06:40]sum+1 = 49975 [12:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 135 20.10.2024 12:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165653 ФПД: 91097235219570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120652&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165653&fm=91097235219570&tin=02508201610067®Number=0000000000091764&sum=49900 [12:06:41]StoreToDocumentArchive [12:06:41]shift 534 fd 165653 [12:06:41]save to /storage/0534/doc_00165653 [12:06:41]save last doc name /storage/0534/doc_00165653 to /storage/kkm_last_doc_name [12:06:41]save OK [12:06:41]Clear old archive folders... [12:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:41]tlvbuf is 01616550 [12:06:41]SAM_PROTO_ClearQueue [12:06:41]wFMCommunicate request_size=4 [12:06:41]MH_SAM_APDU [12:06:41]CAPDU: 80 09 00 00 [12:06:41]Write to MH i2c: E2 08 00 06 E3 80 09 00 00 00 00 00 00 5B [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:41]Read from MH i2c: E2 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 06 E3 00 90 00 5D [12:06:41]RAPDU: 90 00 [12:06:41]wFMCommunicate OK [12:06:41]SAM_PROTO_ClearQueue done [12:06:41]KKMCreateOFDPacket [12:06:41]OFDProtocolAddRootSTLVToBuf [12:06:41]FM_MakeSignedData [12:06:41]FM_MakeSignedData [12:06:41]SAM_PROTO_SignData [12:06:41]wFMCommunicate request_size=4 [12:06:41]MH_SAM_APDU [12:06:41]CAPDU: 80 0D 01 02 [12:06:41]Write to MH i2c: E2 08 00 07 E3 80 0D 01 02 00 00 00 00 63 [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:41]Read from MH i2c: E2 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 07 E3 00 90 00 5E [12:06:41]RAPDU: 90 00 [12:06:41]wFMCommunicate OK [12:06:41]wFMCommunicate request_size=255 [12:06:41]MH_SAM_APDU [12:06: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 5C F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 87 02 00 35 04 06 00 52 [12:06:41]Write to MH i2c: E2 02 01 08 E3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 5C F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 87 02 00 35 04 06 00 52 00 00 32 [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 08 E3 00 90 00 5F [12:06:42]RAPDU: 90 00 [12:06:42]wFMCommunicate OK [12:06:42]wFMCommunicate request_size=10 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 0D 02 02 05 DA 3A 58 64 72 [12:06:42]Write to MH i2c: E2 0D 00 09 E3 80 0D 02 02 05 00 DA 3A 58 64 72 00 00 B2 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 09 E3 00 90 00 60 [12:06:42]RAPDU: 90 00 [12:06:42]wFMCommunicate OK [12:06:42]wFMCommunicate request_size=4 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 0D 03 02 [12:06:42]Write to MH i2c: E2 08 00 0A E3 80 0D 03 02 00 00 00 00 68 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 0B 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 0B 00 0A E3 00 12 34 5C 93 5E 4B D2 39 90 00 52 [12:06:42]RAPDU: 12 34 5C 93 5E 4B D2 39 90 00 [12:06:42]wFMCommunicate OK [12:06:42]SAM_PROTO_SignData done [12:06:42]FM_MakeSignedData done [12:06:42]CreateOFDProtocolMessage [12:06:42]wFMCommunicate request_size=4 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 11 00 00 [12:06:42]Write to MH i2c: E2 08 00 0B E3 80 11 00 00 00 00 00 00 68 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 17 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 17 00 0B E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C0 [12:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:06:42]wFMCommunicate OK [12:06:42]CreateOFDProtocolMessage done [12:06:42]OFDSenderStorePacket 165653 [12:06:42]StoreOFDPacket docnum=165653 [12:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8D 87 07 01 3E A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 5C F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 87 02 00 35 04 06 00 52 DA 3A 58 64 72 12 34 5C 93 5E 4B D2 39 [12:06:42]CheckFolder [12:06:42]dirname=/storage/ofd_packets [12:06:42]CheckFolder done [12:06:42]ProducePacketName [12:06:42]name=ofd_packets/00165653 [12:06:42]NVStorageSaveData ofd_packets/00165653 [12:06:42]File name is /storage/ofd_packets/00165653 [12:06:42]Write 301 bytes [12:06:42]NVStorageSaveData done [12:06:42]OFDSenderStorePacket done [12:06:42]KKMCreateOFDPacket done [12:06:42]NVStorageSaveData kkm_last_timestamp [12:06:42]File name is /storage/kkm_last_timestamp [12:06:42]Write 4 bytes [12:06:42]NVStorageSaveData done [12:06:42]ExternCall_PrintAddStr [12:06:42]wPrintStart [12:06:42]Write to MH i2c: 01 00 00 0C E3 EF [12:06:42]OFD Sender: Processing packet 165653 [packets to send 48, broken 47] [12:06:42]ProducePacketName [12:06:42]name=ofd_packets/00165653 [12:06:42]OFD Sender: To server: pG, [12:06:42]CommunicateWithHost lk.salyk.kg:30040 [12:06:42]ConnectInit lk.salyk.kg [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 07 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 07 00 0C E3 00 00 00 00 00 FF 0F 04 [12:06:42]RasterBufferAndPrint [12:06:42]line Счет N : (1)220216 [12:06:42]line ИНН: 02508201610067 [12:06:42]line Контрольно-Кассовый Чек [12:06:42]line ПРОДАЖА [12:06:42]line ТРК (МРК, ГНК) : 13 [12:06:42]line Товар: 2710124130 [12:06:42]line Аи-92-К-5 [12:06:42]line 7.470 * 66.90 [12:06:42]line = 499.74 [12:06:42]line НДС 12% НСП 1% [12:06:42]line > о реализуемом товаре [12:06:42]line ОКРУГЛЕНИЕ: -0.74 [12:06:42]line ИТОГО: 499.00 [12:06:42]line Внесено: 500.00 [12:06:42]line СДАЧА: 1.00 [12:06:42]line НСП 1% : 4.42 [12:06:42]line НДС 12% : 53.07 [12:06:42]line Наличными: 499.00 [12:06:42]line Безнал.: 0.00 [12:06:42]line Место: АЗС № 161 "Партнер Нефть" [12:06:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:06:42]line СНО: Общий режим [12:06:42]line Чек 135 20.10.2024 12:06 [12:06:42]line Смена: 534 ФФД: 1.0 [12:06:42]line ЗНМ: 0300000104 [12:06:42]line РНМ: 0000000000091764 [12:06:42]line Версия ККМ: 001 [12:06:42]line ФМ: 0000000000871759 [12:06:42]line ФД: 165653 [12:06:42]line ФПД: 91097235219570 [12:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120652&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165653&fm=91097235219570&tin=02508201610067®Number=0000000000091764&sum=49900 [12:06:42]written 0, free lines is 4095 [12:06:42]Connected sock=10 [12:06:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8D 87 07 01 3E A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 5C F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 87 02 00 35 04 06 00 52 DA 3A 58 64 72 12 34 5C 93 5E 4B D2 39 [12:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EC 8A 47 00 A2 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 87 02 00 F4 03 04 00 CE 98 14 67 B6 04 01 00 00 03 9A 23 19 50 D4 51 17 [12:06:42]CommunicateWithHost err = 0 [12:06:42]CheckOFDResponse [12:06:42]1017 (14) - 77093643461234 [12:06:42]1041 (16) - 0000000000871759 [12:06:42]1040 (4) - 165653 [12:06:42]1012 (4) - 20.10.2024 05:44 [12:06:42]1206 (1) - 0 [12:06:42]OFD Sender: Remove packet 165653 [12:06:42]ProducePacketName [12:06:42]name=ofd_packets/00165653 [12:06:42]NVStorageDeleteData [12:06:42]Write to MH i2c: 01 00 00 37 E3 1A [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 07 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 07 00 37 E3 00 00 00 00 00 C7 0C F4 [12:06:42]RasterBufferAndPrint [12:06:42]line [12:06:42]line [12:06:42]line [12:06:42]line [12:06:42]line [12:06:42]written 0, free lines is 3277 [12:06:42]MH_Cut [12:06:42]Write to MH i2c: D1 01 00 3E E3 01 F3 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: D1 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: D1 01 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: D1 01 00 3E E3 00 F2 [12:06:42]Write to MH i2c: 01 00 00 3F E3 22 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:43]OFD Sender: No OFD packet to send [12:06:43]*** Cut start [12:06:43]*** Partial cut [12:06:43]*** CUTSNS_PIN = 1 [12:06:43]*** CUTSNS_PIN = 0 [12:06:43]*** Brake cut motor [12:06:44]Read from MH i2c: 01 [12:06:44]MH_I2C_Read... [12:06:44]*** Stop cut motor [12:06:44]*** Cut end [12:06:44]Read from MH i2c: 01 07 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: 01 07 00 3F E3 00 00 00 00 00 FF 0F 37 [12:06:44]process_action close_receipt done [12:06:44]requested_data is exist [12:06:44]produce_requested_data [12:06:44]requested_item fm.sn is exist - process it [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 11 00 00 [12:06:44]Write to MH i2c: E2 08 00 40 E3 80 11 00 00 00 00 00 00 9D [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:44]Read from MH i2c: E2 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 17 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 17 00 40 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [12:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:06:44]wFMCommunicate OK [12:06:44]requested_item fd.num is exist - process it [12:06:44]SAM_PROTO_GetFieldsCounters [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 13 00 00 [12:06:44]Write to MH i2c: E2 08 00 41 E3 80 13 00 00 00 00 00 00 A0 [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:44]Read from MH i2c: E2 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 62 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 62 00 41 E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [12:06: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:44]wFMCommunicate OK [12:06:44]SAM_PROTO_GetFieldsCounters done [12:06:44]requested_item shift.num is exist - process it [12:06:44]requested_item shift.opened is exist - process it [12:06:44]req_shift_opened [12:06:44]FM_GetShiftState [12:06:44]SAM_PROTO_GetShiftState [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 13 01 00 [12:06:44]Write to MH i2c: E2 08 00 42 E3 80 13 01 00 00 00 00 00 A2 [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:44]Read from MH i2c: E2 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 0E 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 0E 00 42 E3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EA [12:06:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:06:44]wFMCommunicate OK [12:06:44]SAM_PROTO_GetShiftState done [12:06:44]FM_GetShiftState done [12:06:44]req_shift_opened done [12:06:44]requested_item shift.open_date is exist - process it [12:06:44]req_shift_open_date [12:06:44]req_shift_open_date done [12:06:44]produce_requested_data done [12:06:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165653,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:06:44]process_action_free close_receipt [12:06:44]json_value_free [12:06:44]json_value_free done [12:06:44]process_json_proto returns [12:06:44]Send response to host [12:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165653,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:06:44]free response buf [12:06:44]execute_script done [12:06:44]execute_script returns [12:06:44]free content buf [12:06:44]Sock 9.Close socket [12:06:44]Sock 9.Thread stoped [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:53]accept exits with 7 [12:06:53]New connection [12:06:53]New thread 3066776932 created [12:06:53]Thread 3066920292 joined [12:06:53]Waiting for new connection... [12:06:53] Sock 7.Parse request [12:06:53]Sock 7.Check first char [12:06:53]Sock 7.First char is OK [12:06:53]request: POST /json_proto HTTP/1.0 [12:06:53]Method: POST [12:06:53]URL: /json_proto [12:06:53]Method is POST - this is cgi request [12:06:53]url: /json_proto [12:06:53]query_string will be loaded in cgi processing [12:06:53]execute_cgi json_proto POST (null) [12:06:53]execute_cgi path=json_proto method=POST [12:06:53]POST find Content-Length [12:06:53]Host: 172.17.53.195:8080 [12:06:53]Content-Length: 679 [12:06:53]Content-Type: application/json [12:06:53] [12:06:53]POST finish read [12:06:53]Found Content-Length = 679 [12:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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:06:53]execute_script... [12:06: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)220217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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:06:53]POST & json_proto [12:06:53]process_json_proto [12:06:53]json parsed OK: [12:06:53]protocol is kg_v1.0 [12:06:53]action value=close_receipt [12:06:53]process_action close_receipt [12:06:53]cmd_close_receipt [12:06:53]MH_GetDate [12:06:53]Write to MH i2c: F0 00 00 43 E3 15 [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: F0 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: F0 09 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: F0 09 00 43 E3 00 69 F2 14 67 21 48 4A 65 0C [12:06:53]GetLastDocTimeStamp 1729426012 [12:06:53]current date 1729426025 [12:06:53]FM_GetShiftState [12:06:53]SAM_PROTO_GetShiftState [12:06:53]wFMCommunicate request_size=4 [12:06:53]MH_SAM_APDU [12:06:53]CAPDU: 80 13 01 00 [12:06:53]Write to MH i2c: E2 08 00 44 E3 80 13 01 00 00 00 00 00 A4 [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:53]Read from MH i2c: E2 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 0E 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 0E 00 44 E3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EC [12:06:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:06:53]wFMCommunicate OK [12:06:53]SAM_PROTO_GetShiftState done [12:06:53]FM_GetShiftState done [12:06:53]opened in 1729384561 [12:06:53]opened+sec_in_day 1729470961 [12:06:53]quantity*price = 200025 [12:06:53]sum+1 = 200026 [12:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 136 20.10.2024 12:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165654 ФПД: 8935749306321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165654&fm=8935749306321&tin=02508201610067®Number=0000000000091764&sum=200000 [12:06:54]StoreToDocumentArchive [12:06:54]shift 534 fd 165654 [12:06:54]save to /storage/0534/doc_00165654 [12:06:54]save last doc name /storage/0534/doc_00165654 to /storage/kkm_last_doc_name [12:06:54]save OK [12:06:54]Clear old archive folders... [12:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:06:54]tlvbuf is 0157E6C0 [12:06:54]SAM_PROTO_ClearQueue [12:06:54]wFMCommunicate request_size=4 [12:06:54]MH_SAM_APDU [12:06:54]CAPDU: 80 09 00 00 [12:06:54]Write to MH i2c: E2 08 00 51 E3 80 09 00 00 00 00 00 00 A6 [12:06:54]Write i2c OK [12:06:54]MH_I2C_Read... [12:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:54]Read from MH i2c: E2 [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: E2 03 00 [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: E2 03 00 51 E3 00 90 00 A8 [12:06:54]RAPDU: 90 00 [12:06:54]wFMCommunicate OK [12:06:54]SAM_PROTO_ClearQueue done [12:06:54]KKMCreateOFDPacket [12:06:54]OFDProtocolAddRootSTLVToBuf [12:06:54]FM_MakeSignedData [12:06:54]FM_MakeSignedData [12:06:54]SAM_PROTO_SignData [12:06:54]wFMCommunicate request_size=4 [12:06:54]MH_SAM_APDU [12:06:54]CAPDU: 80 0D 01 02 [12:06:54]Write to MH i2c: E2 08 00 52 E3 80 0D 01 02 00 00 00 00 AE [12:06:54]Write i2c OK [12:06:54]MH_I2C_Read... [12:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:54]Read from MH i2c: E2 [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: E2 03 00 [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: E2 03 00 52 E3 00 90 00 A9 [12:06:54]RAPDU: 90 00 [12:06:54]wFMCommunicate OK [12:06:54]wFMCommunicate request_size=255 [12:06:54]MH_SAM_APDU [12:06: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 88 00 00 00 F4 03 04 00 69 F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 87 02 00 35 04 06 00 08 20 84 29 [12:06:54]Write to MH i2c: E2 02 01 53 E3 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 88 00 00 00 F4 03 04 00 69 F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 87 02 00 35 04 06 00 08 20 84 29 00 00 12 [12:06:54]Write i2c OK [12:06:54]MH_I2C_Read... [12:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:55]Read from MH i2c: E2 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 03 00 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 03 00 53 E3 00 90 00 AA [12:06:55]RAPDU: 90 00 [12:06:55]wFMCommunicate OK [12:06:55]wFMCommunicate request_size=7 [12:06:55]MH_SAM_APDU [12:06:55]CAPDU: 80 0D 02 02 02 C7 D1 [12:06:55]Write to MH i2c: E2 0A 00 54 E3 80 0D 02 02 02 00 C7 D1 00 00 4D [12:06:55]Write i2c OK [12:06:55]MH_I2C_Read... [12:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:55]Read from MH i2c: E2 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 03 00 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 03 00 54 E3 00 90 00 AB [12:06:55]RAPDU: 90 00 [12:06:55]wFMCommunicate OK [12:06:55]wFMCommunicate request_size=4 [12:06:55]MH_SAM_APDU [12:06:55]CAPDU: 80 0D 03 02 [12:06:55]Write to MH i2c: E2 08 00 55 E3 80 0D 03 02 00 00 00 00 B3 [12:06:55]Write i2c OK [12:06:55]MH_I2C_Read... [12:06:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:55]Read from MH i2c: E2 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 0B 00 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 0B 00 55 E3 00 5C BE 80 24 A5 F5 84 5E 90 00 EE [12:06:55]RAPDU: 5C BE 80 24 A5 F5 84 5E 90 00 [12:06:55]wFMCommunicate OK [12:06:55]SAM_PROTO_SignData done [12:06:55]FM_MakeSignedData done [12:06:55]CreateOFDProtocolMessage [12:06:55]wFMCommunicate request_size=4 [12:06:55]MH_SAM_APDU [12:06:55]CAPDU: 80 11 00 00 [12:06:55]Write to MH i2c: E2 08 00 56 E3 80 11 00 00 00 00 00 00 B3 [12:06:55]Write i2c OK [12:06:55]MH_I2C_Read... [12:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:55]Read from MH i2c: E2 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 17 00 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 17 00 56 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [12:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:06:55]wFMCommunicate OK [12:06:55]CreateOFDProtocolMessage done [12:06:55]OFDSenderStorePacket 165654 [12:06:55]StoreOFDPacket docnum=165654 [12:06:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 02 97 04 01 9B 13 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 88 00 00 00 F4 03 04 00 69 F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 87 02 00 35 04 06 00 08 20 84 29 C7 D1 5C BE 80 24 A5 F5 84 5E [12:06:55]CheckFolder [12:06:55]dirname=/storage/ofd_packets [12:06:55]CheckFolder done [12:06:55]ProducePacketName [12:06:55]name=ofd_packets/00165654 [12:06:55]NVStorageSaveData ofd_packets/00165654 [12:06:55]File name is /storage/ofd_packets/00165654 [12:06:55]Write 298 bytes [12:06:55]NVStorageSaveData done [12:06:55]OFDSenderStorePacket done [12:06:55]KKMCreateOFDPacket done [12:06:55]NVStorageSaveData kkm_last_timestamp [12:06:55]File name is /storage/kkm_last_timestamp [12:06:55]Write 4 bytes [12:06:55]NVStorageSaveData done [12:06:55]ExternCall_PrintAddStr [12:06:55]wPrintStart [12:06:55]Write to MH i2c: 01 00 00 57 E3 3A [12:06:55]Write i2c OK [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: 01 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: 01 07 00 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: 01 07 00 57 E3 00 00 00 00 00 FF 0F 4F [12:06:55]RasterBufferAndPrint [12:06:55]line Счет N : (1)220217 [12:06:55]line ИНН: 02508201610067 [12:06:55]line Контрольно-Кассовый Чек [12:06:55]line ПРОДАЖА [12:06:55]line ТРК (МРК, ГНК) : 31 [12:06:55]line Товар: 2710194210 [12:06:55]line ДТ-К-5 [12:06:55]line 26.250 * 76.20 [12:06:55]line = 2000.25 [12:06:55]line НДС 12% НСП 1% [12:06:55]line > о реализуемом товаре [12:06:55]line ОКРУГЛЕНИЕ: -0.25 [12:06:55]line ИТОГО: 2000.00 [12:06:55]line Внесено: 2000.00 [12:06:55]line СДАЧА: 0.00 [12:06:55]line НСП 1% : 17.70 [12:06:55]line НДС 12% : 212.42 [12:06:55]line Наличными: 2000.00 [12:06:55]line Безнал.: 0.00 [12:06:55]line Место: АЗС № 161 "Партнер Нефть" [12:06:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:06:55]line СНО: Общий режим [12:06:55]line Чек 136 20.10.2024 12:07 [12:06:55]line Смена: 534 ФФД: 1.0 [12:06:55]line ЗНМ: 0300000104 [12:06:55]line РНМ: 0000000000091764 [12:06:55]line Версия ККМ: 001 [12:06:55]line ФМ: 0000000000871759 [12:06:55]line ФД: 165654 [12:06:55]line ФПД: 8935749306321 [12:06:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165654&fm=8935749306321&tin=02508201610067®Number=0000000000091764&sum=200000 [12:06:55]OFD Sender: Processing packet 165654 [packets to send 48, broken 47] [12:06:55]ProducePacketName [12:06:55]name=ofd_packets/00165654 [12:06:55]OFD Sender: To server: pG, [12:06:55]CommunicateWithHost lk.salyk.kg:30040 [12:06:55]ConnectInit lk.salyk.kg [12:06:55]written 0, free lines is 4095 [12:06:55]Connected sock=10 [12:06:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 02 97 04 01 9B 13 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 88 00 00 00 F4 03 04 00 69 F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 87 02 00 35 04 06 00 08 20 84 29 C7 D1 5C BE 80 24 A5 F5 84 5E [12:06:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BD AC 47 00 C4 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 31 37 35 39 10 04 04 00 16 87 02 00 F4 03 04 00 DB 98 14 67 B6 04 01 00 00 8E F3 B3 3D 4F 48 9B 2E [12:06:55]CommunicateWithHost err = 0 [12:06:55]CheckOFDResponse [12:06:55]1017 (14) - 77093643461234 [12:06:55]1041 (16) - 0000000000871759 [12:06:55]1040 (4) - 165654 [12:06:55]1012 (4) - 20.10.2024 05:44 [12:06:55]1206 (1) - 0 [12:06:55]OFD Sender: Remove packet 165654 [12:06:55]ProducePacketName [12:06:55]name=ofd_packets/00165654 [12:06:55]NVStorageDeleteData [12:06:56]Write to MH i2c: 01 00 00 82 E3 65 [12:06:56]Write i2c OK [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: 01 [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: 01 07 00 [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: 01 07 00 82 E3 00 00 00 00 00 BC 0C 34 [12:06:56]RasterBufferAndPrint [12:06:56]line [12:06:56]line [12:06:56]line [12:06:56]line [12:06:56]line [12:06:56]written 0, free lines is 3268 [12:06:56]MH_Cut [12:06:56]Write to MH i2c: D1 01 00 89 E3 01 3E [12:06:56]Write i2c OK [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: D1 [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: D1 01 00 [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: D1 01 00 89 E3 00 3D [12:06:56]Write to MH i2c: 01 00 00 8A E3 6D [12:06:56]Write i2c OK [12:06:56]MH_I2C_Read... [12:06:56]OFD Sender: No OFD packet to send [12:06:56]*** Cut start [12:06:56]*** Partial cut [12:06:56]*** CUTSNS_PIN = 1 [12:06:56]*** CUTSNS_PIN = 0 [12:06:57]*** Brake cut motor [12:06:57]Read from MH i2c: 01 [12:06:57]MH_I2C_Read... [12:06:57]*** Stop cut motor [12:06:57]*** Cut end [12:06:57]Read from MH i2c: 01 07 00 [12:06:57]MH_I2C_Read... [12:06:57]Read from MH i2c: 01 07 00 8A E3 00 00 00 00 00 FF 0F 82 [12:06:57]process_action close_receipt done [12:06:57]requested_data is exist [12:06:57]produce_requested_data [12:06:57]requested_item fm.sn is exist - process it [12:06:57]wFMCommunicate request_size=4 [12:06:57]MH_SAM_APDU [12:06:57]CAPDU: 80 11 00 00 [12:06:57]Write to MH i2c: E2 08 00 8B E3 80 11 00 00 00 00 00 00 E8 [12:06:57]Write i2c OK [12:06:57]MH_I2C_Read... [12:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:57]Read from MH i2c: E2 [12:06:57]MH_I2C_Read... [12:06:57]Read from MH i2c: E2 17 00 [12:06:57]MH_I2C_Read... [12:06:57]Read from MH i2c: E2 17 00 8B E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [12:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:06:57]wFMCommunicate OK [12:06:57]requested_item fd.num is exist - process it [12:06:57]SAM_PROTO_GetFieldsCounters [12:06:57]wFMCommunicate request_size=4 [12:06:57]MH_SAM_APDU [12:06:57]CAPDU: 80 13 00 00 [12:06:57]Write to MH i2c: E2 08 00 8C E3 80 13 00 00 00 00 00 00 EB [12:06:57]Write i2c OK [12:06:57]MH_I2C_Read... [12:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:57]Read from MH i2c: E2 [12:06:57]MH_I2C_Read... [12:06:57]Read from MH i2c: E2 62 00 [12:06:57]MH_I2C_Read... [12:06:57]Read from MH i2c: E2 62 00 8C E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:06:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:57]wFMCommunicate OK [12:06:57]SAM_PROTO_GetFieldsCounters done [12:06:57]requested_item shift.num is exist - process it [12:06:57]requested_item shift.opened is exist - process it [12:06:57]req_shift_opened [12:06:57]FM_GetShiftState [12:06:57]SAM_PROTO_GetShiftState [12:06:57]wFMCommunicate request_size=4 [12:06:57]MH_SAM_APDU [12:06:57]CAPDU: 80 13 01 00 [12:06:57]Write to MH i2c: E2 08 00 8D E3 80 13 01 00 00 00 00 00 ED [12:06:57]Write i2c OK [12:06:57]MH_I2C_Read... [12:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:57]Read from MH i2c: E2 [12:06:57]MH_I2C_Read... [12:06:57]Read from MH i2c: E2 0E 00 [12:06:57]MH_I2C_Read... [12:06:57]Read from MH i2c: E2 0E 00 8D E3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 35 [12:06:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:06:57]wFMCommunicate OK [12:06:57]SAM_PROTO_GetShiftState done [12:06:57]FM_GetShiftState done [12:06:57]req_shift_opened done [12:06:57]requested_item shift.open_date is exist - process it [12:06:57]req_shift_open_date [12:06:57]req_shift_open_date done [12:06:57]produce_requested_data done [12:06:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165654,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:06:57]process_action_free close_receipt [12:06:57]json_value_free [12:06:57]json_value_free done [12:06:57]process_json_proto returns [12:06:57]Send response to host [12:06:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165654,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:06:57]free response buf [12:06:57]execute_script done [12:06:57]execute_script returns [12:06:57]free content buf [12:06:57]Sock 7.Close socket [12:06:57]Sock 7.Thread stoped [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:13]accept exits with 9 [12:07:13]New connection [12:07:13]New thread 3066920292 created [12:07:13]Thread 3066776932 joined [12:07:13]Waiting for new connection... [12:07:13] Sock 9.Parse request [12:07:13]Sock 9.Check first char [12:07:13]Sock 9.First char is OK [12:07:13]request: POST /json_proto HTTP/1.0 [12:07:13]Method: POST [12:07:13]URL: /json_proto [12:07:13]Method is POST - this is cgi request [12:07:13]url: /json_proto [12:07:13]query_string will be loaded in cgi processing [12:07:13]execute_cgi json_proto POST (null) [12:07:13]execute_cgi path=json_proto method=POST [12:07:13]POST find Content-Length [12:07:13]Host: 172.17.53.195:8080 [12:07:13]Content-Length: 677 [12:07:13]Content-Type: application/json [12:07:13] [12:07:13]POST finish read [12:07:13]Found Content-Length = 677 [12:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:13]execute_script... [12:07: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)220218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:13]POST & json_proto [12:07:13]process_json_proto [12:07:13]json parsed OK: [12:07:13]protocol is kg_v1.0 [12:07:13]action value=close_receipt [12:07:13]process_action close_receipt [12:07:13]cmd_close_receipt [12:07:13]MH_GetDate [12:07:13]Write to MH i2c: F0 00 00 8E E3 60 [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: F0 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: F0 09 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: F0 09 00 8E E3 00 7D F2 14 67 21 48 4A 65 6B [12:07:13]GetLastDocTimeStamp 1729426025 [12:07:13]current date 1729426045 [12:07:13]FM_GetShiftState [12:07:13]SAM_PROTO_GetShiftState [12:07:13]wFMCommunicate request_size=4 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 13 01 00 [12:07:13]Write to MH i2c: E2 08 00 8F E3 80 13 01 00 00 00 00 00 EF [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 0E 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 0E 00 8F E3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 37 [12:07:13]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:07:13]wFMCommunicate OK [12:07:13]SAM_PROTO_GetShiftState done [12:07:13]FM_GetShiftState done [12:07:13]opened in 1729384561 [12:07:13]opened+sec_in_day 1729470961 [12:07:13]quantity*price = 50010 [12:07:13]sum+1 = 50012 [12:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 137 20.10.2024 12:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165655 ФПД: 140968230931582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120725&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165655&fm=140968230931582&tin=02508201610067®Number=0000000000091764&sum=50000 [12:07:14]StoreToDocumentArchive [12:07:14]shift 534 fd 165655 [12:07:14]save to /storage/0534/doc_00165655 [12:07:14]save last doc name /storage/0534/doc_00165655 to /storage/kkm_last_doc_name [12:07:14]save OK [12:07:14]Clear old archive folders... [12:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:14]tlvbuf is 0169F560 [12:07:14]SAM_PROTO_ClearQueue [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 09 00 00 [12:07:14]Write to MH i2c: E2 08 00 9C E3 80 09 00 00 00 00 00 00 F1 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 03 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 03 00 9C E3 00 90 00 F3 [12:07:14]RAPDU: 90 00 [12:07:14]wFMCommunicate OK [12:07:14]SAM_PROTO_ClearQueue done [12:07:14]KKMCreateOFDPacket [12:07:14]OFDProtocolAddRootSTLVToBuf [12:07:14]FM_MakeSignedData [12:07:14]FM_MakeSignedData [12:07:14]SAM_PROTO_SignData [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 0D 01 02 [12:07:14]Write to MH i2c: E2 08 00 9D E3 80 0D 01 02 00 00 00 00 F9 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 03 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 03 00 9D E3 00 90 00 F4 [12:07:14]RAPDU: 90 00 [12:07:14]wFMCommunicate OK [12:07:14]wFMCommunicate request_size=255 [12:07:14]MH_SAM_APDU [12:07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7D F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 87 02 00 35 04 06 00 80 [12:07:14]Write to MH i2c: E2 02 01 9E E3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7D F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 87 02 00 35 04 06 00 80 00 00 12 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 9E E3 00 90 00 F5 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=10 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 02 02 05 35 B9 54 4C 7E [12:07:15]Write to MH i2c: E2 0D 00 9F E3 80 0D 02 02 05 00 35 B9 54 4C 7E 00 00 12 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 9F E3 00 90 00 F6 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 03 02 [12:07:15]Write to MH i2c: E2 08 00 A0 E3 80 0D 03 02 00 00 00 00 FE [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0B 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0B 00 A0 E3 00 69 0B DC 50 E0 CF A7 88 90 00 7D [12:07:15]RAPDU: 69 0B DC 50 E0 CF A7 88 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_SignData done [12:07:15]FM_MakeSignedData done [12:07:15]CreateOFDProtocolMessage [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 11 00 00 [12:07:15]Write to MH i2c: E2 08 00 A1 E3 80 11 00 00 00 00 00 00 FE [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 17 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 17 00 A1 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 56 [12:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:07:15]wFMCommunicate OK [12:07:15]CreateOFDProtocolMessage done [12:07:15]OFDSenderStorePacket 165655 [12:07:15]StoreOFDPacket docnum=165655 [12:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D5 DC 07 01 C4 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7D F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 87 02 00 35 04 06 00 80 35 B9 54 4C 7E 69 0B DC 50 E0 CF A7 88 [12:07:15]CheckFolder [12:07:15]dirname=/storage/ofd_packets [12:07:15]CheckFolder done [12:07:15]ProducePacketName [12:07:15]name=ofd_packets/00165655 [12:07:15]NVStorageSaveData ofd_packets/00165655 [12:07:15]File name is /storage/ofd_packets/00165655 [12:07:15]Write 301 bytes [12:07:15]NVStorageSaveData done [12:07:15]OFDSenderStorePacket done [12:07:15]KKMCreateOFDPacket done [12:07:15]NVStorageSaveData kkm_last_timestamp [12:07:15]File name is /storage/kkm_last_timestamp [12:07:15]Write 4 bytes [12:07:15]NVStorageSaveData done [12:07:15]ExternCall_PrintAddStr [12:07:15]wPrintStart [12:07:15]Write to MH i2c: 01 00 00 A2 E3 85 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 A2 E3 00 00 00 00 00 FF 0F 9A [12:07:15]RasterBufferAndPrint [12:07:15]line Счет N : (1)220218 [12:07:15]line ИНН: 02508201610067 [12:07:15]line Контрольно-Кассовый Чек [12:07:15]line ПРОДАЖА [12:07:15]line ТРК (МРК, ГНК) : 24 [12:07:15]line Товар: 2710124500 [12:07:15]line Аи-95-К-5 [12:07:15]line 6.740 * 74.20 [12:07:15]line = 500.11 [12:07:15]line НДС 12% НСП 1% [12:07:15]line > о реализуемом товаре [12:07:15]line ОКРУГЛЕНИЕ: -0.11 [12:07:15]line ИТОГО: 500.00 [12:07:15]line Внесено: 500.00 [12:07:15]line СДАЧА: 0.00 [12:07:15]line НСП 1% : 4.43 [12:07:15]line НДС 12% : 53.11 [12:07:15]line Наличными: 500.00 [12:07:15]line Безнал.: 0.00 [12:07:15]line Место: АЗС № 161 "Партнер Нефть" [12:07:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:07:15]line СНО: Общий режим [12:07:15]line Чек 137 20.10.2024 12:07 [12:07:15]line Смена: 534 ФФД: 1.0 [12:07:15]line ЗНМ: 0300000104 [12:07:15]line РНМ: 0000000000091764 [12:07:15]line Версия ККМ: 001 [12:07:15]line ФМ: 0000000000871759 [12:07:15]line ФД: 165655 [12:07:15]line ФПД: 140968230931582 [12:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120725&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165655&fm=140968230931582&tin=02508201610067®Number=0000000000091764&sum=50000 [12:07:15]written 0, free lines is 4095 [12:07:15]OFD Sender: Processing packet 165655 [packets to send 48, broken 47] [12:07:15]ProducePacketName [12:07:15]name=ofd_packets/00165655 [12:07:15]OFD Sender: To server: pG, [12:07:15]CommunicateWithHost lk.salyk.kg:30040 [12:07:15]ConnectInit lk.salyk.kg [12:07:15]Connected sock=11 [12:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D5 DC 07 01 C4 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7D F2 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 87 02 00 35 04 06 00 80 35 B9 54 4C 7E 69 0B DC 50 E0 CF A7 88 [12:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3A 53 47 00 90 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 31 37 35 39 10 04 04 00 17 87 02 00 F4 03 04 00 EF 98 14 67 B6 04 01 00 00 42 E8 0C C1 80 4E 78 2E [12:07:15]CommunicateWithHost err = 0 [12:07:15]CheckOFDResponse [12:07:15]1017 (14) - 77093643461234 [12:07:15]1041 (16) - 0000000000871759 [12:07:15]1040 (4) - 165655 [12:07:15]1012 (4) - 20.10.2024 05:45 [12:07:15]1206 (1) - 0 [12:07:15]OFD Sender: Remove packet 165655 [12:07:15]ProducePacketName [12:07:15]name=ofd_packets/00165655 [12:07:15]NVStorageDeleteData [12:07:15]Write to MH i2c: 01 00 00 CD E3 B0 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 CD E3 00 00 00 00 00 CD 0C 90 [12:07:15]RasterBufferAndPrint [12:07:15]line [12:07:15]line [12:07:15]line [12:07:15]line [12:07:15]line [12:07:15]written 0, free lines is 3281 [12:07:15]MH_Cut [12:07:15]Write to MH i2c: D1 01 00 D4 E3 01 89 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: D1 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: D1 01 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: D1 01 00 D4 E3 00 88 [12:07:15]Write to MH i2c: 01 00 00 D5 E3 B8 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:16]OFD Sender: No OFD packet to send [12:07:16]*** Cut start [12:07:16]*** Partial cut [12:07:16]*** CUTSNS_PIN = 1 [12:07:16]*** CUTSNS_PIN = 0 [12:07:16]*** Brake cut motor [12:07:17]Read from MH i2c: 01 [12:07:17]MH_I2C_Read... [12:07:17]*** Stop cut motor [12:07:17]*** Cut end [12:07:17]Read from MH i2c: 01 07 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: 01 07 00 D5 E3 00 00 00 00 00 FF 0F CD [12:07:17]process_action close_receipt done [12:07:17]requested_data is exist [12:07:17]produce_requested_data [12:07:17]requested_item fm.sn is exist - process it [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 11 00 00 [12:07:17]Write to MH i2c: E2 08 00 D6 E3 80 11 00 00 00 00 00 00 33 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 17 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 17 00 D6 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [12:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:07:17]wFMCommunicate OK [12:07:17]requested_item fd.num is exist - process it [12:07:17]SAM_PROTO_GetFieldsCounters [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 13 00 00 [12:07:17]Write to MH i2c: E2 08 00 D7 E3 80 13 00 00 00 00 00 00 36 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 62 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 62 00 D7 E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_GetFieldsCounters done [12:07:17]requested_item shift.num is exist - process it [12:07:17]requested_item shift.opened is exist - process it [12:07:17]req_shift_opened [12:07:17]FM_GetShiftState [12:07:17]SAM_PROTO_GetShiftState [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 13 01 00 [12:07:17]Write to MH i2c: E2 08 00 D8 E3 80 13 01 00 00 00 00 00 38 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 D8 E3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 80 [12:07:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_GetShiftState done [12:07:17]FM_GetShiftState done [12:07:17]req_shift_opened done [12:07:17]requested_item shift.open_date is exist - process it [12:07:17]req_shift_open_date [12:07:17]req_shift_open_date done [12:07:17]produce_requested_data done [12:07:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165655,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:07:17]process_action_free close_receipt [12:07:17]json_value_free [12:07:17]json_value_free done [12:07:17]process_json_proto returns [12:07:17]Send response to host [12:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165655,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:07:17]free response buf [12:07:17]execute_script done [12:07:17]execute_script returns [12:07:17]free content buf [12:07:17]Sock 9.Close socket [12:07:17]Sock 9.Thread stoped [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:54]accept exits with 7 [12:09:54]New connection [12:09:54]New thread 3066776932 created [12:09:54]Thread 3066920292 joined [12:09:54]Waiting for new connection... [12:09:54] Sock 7.Parse request [12:09:54]Sock 7.Check first char [12:09:54]Sock 7.First char is OK [12:09:54]request: POST /json_proto HTTP/1.0 [12:09:54]Method: POST [12:09:54]URL: /json_proto [12:09:54]Method is POST - this is cgi request [12:09:54]url: /json_proto [12:09:54]query_string will be loaded in cgi processing [12:09:54]execute_cgi json_proto POST (null) [12:09:54]execute_cgi path=json_proto method=POST [12:09:54]POST find Content-Length [12:09:54]Host: 172.17.53.195:8080 [12:09:54]Content-Length: 677 [12:09:54]Content-Type: application/json [12:09:54] [12:09:54]POST finish read [12:09:54]Found Content-Length = 677 [12:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:54]execute_script... [12:09: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)220219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:54]POST & json_proto [12:09:54]process_json_proto [12:09:54]json parsed OK: [12:09:54]protocol is kg_v1.0 [12:09:54]action value=close_receipt [12:09:54]process_action close_receipt [12:09:54]cmd_close_receipt [12:09:54]MH_GetDate [12:09:54]Write to MH i2c: F0 00 00 D9 E3 AB [12:09:54]Write i2c OK [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: F0 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: F0 09 00 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: F0 09 00 D9 E3 00 1E F3 14 67 21 48 4A 65 58 [12:09:54]GetLastDocTimeStamp 1729426045 [12:09:54]current date 1729426206 [12:09:54]FM_GetShiftState [12:09:54]SAM_PROTO_GetShiftState [12:09:54]wFMCommunicate request_size=4 [12:09:54]MH_SAM_APDU [12:09:54]CAPDU: 80 13 01 00 [12:09:54]Write to MH i2c: E2 08 00 DA E3 80 13 01 00 00 00 00 00 3A [12:09:54]Write i2c OK [12:09:54]MH_I2C_Read... [12:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:54]Read from MH i2c: E2 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: E2 0E 00 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: E2 0E 00 DA E3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 82 [12:09:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:09:54]wFMCommunicate OK [12:09:54]SAM_PROTO_GetShiftState done [12:09:54]FM_GetShiftState done [12:09:54]opened in 1729384561 [12:09:54]opened+sec_in_day 1729470961 [12:09:54]quantity*price = 50041 [12:09:54]sum+1 = 50042 [12:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 138 20.10.2024 12:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165656 ФПД: 111486791796830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121006&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165656&fm=111486791796830&tin=02508201610067®Number=0000000000091764&sum=50000 [12:09:55]StoreToDocumentArchive [12:09:55]shift 534 fd 165656 [12:09:55]save to /storage/0534/doc_00165656 [12:09:55]save last doc name /storage/0534/doc_00165656 to /storage/kkm_last_doc_name [12:09:55]save OK [12:09:55]Clear old archive folders... [12:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:55]tlvbuf is 0166B370 [12:09:55]SAM_PROTO_ClearQueue [12:09:55]wFMCommunicate request_size=4 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 09 00 00 [12:09:55]Write to MH i2c: E2 08 00 E7 E3 80 09 00 00 00 00 00 00 3C [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 E7 E3 00 90 00 3E [12:09:55]RAPDU: 90 00 [12:09:55]wFMCommunicate OK [12:09:55]SAM_PROTO_ClearQueue done [12:09:55]KKMCreateOFDPacket [12:09:55]OFDProtocolAddRootSTLVToBuf [12:09:55]FM_MakeSignedData [12:09:55]FM_MakeSignedData [12:09:55]SAM_PROTO_SignData [12:09:55]wFMCommunicate request_size=4 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 0D 01 02 [12:09:55]Write to MH i2c: E2 08 00 E8 E3 80 0D 01 02 00 00 00 00 44 [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 E8 E3 00 90 00 3F [12:09:55]RAPDU: 90 00 [12:09:55]wFMCommunicate OK [12:09:55]wFMCommunicate request_size=255 [12:09:55]MH_SAM_APDU [12:09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 1E F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 87 02 00 35 04 06 00 65 [12:09:55]Write to MH i2c: E2 02 01 E9 E3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 1E F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 87 02 00 35 04 06 00 65 00 00 0E [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 E9 E3 00 90 00 40 [12:09:55]RAPDU: 90 00 [12:09:55]wFMCommunicate OK [12:09:55]wFMCommunicate request_size=10 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 0D 02 02 05 65 8A 9F 48 5E [12:09:55]Write to MH i2c: E2 0D 00 EA E3 80 0D 02 02 05 00 65 8A 9F 48 5E 00 00 85 [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 EA E3 00 90 00 41 [12:09:55]RAPDU: 90 00 [12:09:55]wFMCommunicate OK [12:09:55]wFMCommunicate request_size=4 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 0D 03 02 [12:09:55]Write to MH i2c: E2 08 00 EB E3 80 0D 03 02 00 00 00 00 49 [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 0B 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 0B 00 EB E3 00 46 C7 1C CB E0 A3 76 7A 90 00 B1 [12:09:55]RAPDU: 46 C7 1C CB E0 A3 76 7A 90 00 [12:09:55]wFMCommunicate OK [12:09:55]SAM_PROTO_SignData done [12:09:55]FM_MakeSignedData done [12:09:55]CreateOFDProtocolMessage [12:09:55]wFMCommunicate request_size=4 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 11 00 00 [12:09:55]Write to MH i2c: E2 08 00 EC E3 80 11 00 00 00 00 00 00 49 [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:56]Read from MH i2c: E2 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 17 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 17 00 EC E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [12:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:09:56]wFMCommunicate OK [12:09:56]CreateOFDProtocolMessage done [12:09:56]OFDSenderStorePacket 165656 [12:09:56]StoreOFDPacket docnum=165656 [12:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A6 A0 07 01 61 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 1E F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 87 02 00 35 04 06 00 65 65 8A 9F 48 5E 46 C7 1C CB E0 A3 76 7A [12:09:56]CheckFolder [12:09:56]dirname=/storage/ofd_packets [12:09:56]CheckFolder done [12:09:56]ProducePacketName [12:09:56]name=ofd_packets/00165656 [12:09:56]NVStorageSaveData ofd_packets/00165656 [12:09:56]File name is /storage/ofd_packets/00165656 [12:09:56]Write 301 bytes [12:09:56]NVStorageSaveData done [12:09:56]OFDSenderStorePacket done [12:09:56]KKMCreateOFDPacket done [12:09:56]NVStorageSaveData kkm_last_timestamp [12:09:56]File name is /storage/kkm_last_timestamp [12:09:56]Write 4 bytes [12:09:56]NVStorageSaveData done [12:09:56]ExternCall_PrintAddStr [12:09:56]wPrintStart [12:09:56]Write to MH i2c: 01 00 00 ED E3 D0 [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 07 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 07 00 ED E3 00 00 00 00 00 FF 0F E5 [12:09:56]RasterBufferAndPrint [12:09:56]line Счет N : (1)220219 [12:09:56]line ИНН: 02508201610067 [12:09:56]line Контрольно-Кассовый Чек [12:09:56]line ПРОДАЖА [12:09:56]line ТРК (МРК, ГНК) : 23 [12:09:56]line Товар: 2710124130 [12:09:56]line Аи-92-К-5 [12:09:56]line 7.480 * 66.90 [12:09:56]line = 500.41 [12:09:56]line НДС 12% НСП 1% [12:09:56]line > о реализуемом товаре [12:09:56]line ОКРУГЛЕНИЕ: -0.41 [12:09:56]line ИТОГО: 500.00 [12:09:56]line Внесено: 500.00 [12:09:56]line СДАЧА: 0.00 [12:09:56]line НСП 1% : 4.43 [12:09:56]line НДС 12% : 53.14 [12:09:56]line Наличными: 500.00 [12:09:56]line Безнал.: 0.00 [12:09:56]line Место: АЗС № 161 "Партнер Нефть" [12:09:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:09:56]line СНО: Общий режим [12:09:56]line Чек 138 20.10.2024 12:10 [12:09:56]line Смена: 534 ФФД: 1.0 [12:09:56]line ЗНМ: 0300000104 [12:09:56]line РНМ: 0000000000091764 [12:09:56]line Версия ККМ: 001 [12:09:56]line ФМ: 0000000000871759 [12:09:56]line ФД: 165656 [12:09:56]line ФПД: 111486791796830 [12:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121006&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165656&fm=111486791796830&tin=02508201610067®Number=0000000000091764&sum=50000 [12:09:56]OFD Sender: Processing packet 165656 [packets to send 48, broken 47] [12:09:56]ProducePacketName [12:09:56]name=ofd_packets/00165656 [12:09:56]OFD Sender: To server: pG, [12:09:56]CommunicateWithHost lk.salyk.kg:30040 [12:09:56]ConnectInit lk.salyk.kg [12:09:56]written 0, free lines is 4095 [12:09:56]Connected sock=10 [12:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A6 A0 07 01 61 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 1E F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 87 02 00 35 04 06 00 65 65 8A 9F 48 5E 46 C7 1C CB E0 A3 76 7A [12:09:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0A F3 47 00 E0 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 31 37 35 39 10 04 04 00 18 87 02 00 F4 03 04 00 90 99 14 67 B6 04 01 00 00 8E A8 C1 CD EB 18 4E C0 [12:09:56]CommunicateWithHost err = 0 [12:09:56]CheckOFDResponse [12:09:56]1017 (14) - 77093643461234 [12:09:56]1041 (16) - 0000000000871759 [12:09:56]1040 (4) - 165656 [12:09:56]1012 (4) - 20.10.2024 05:48 [12:09:56]1206 (1) - 0 [12:09:56]OFD Sender: Remove packet 165656 [12:09:56]ProducePacketName [12:09:56]name=ofd_packets/00165656 [12:09:56]NVStorageDeleteData [12:09:56]Write to MH i2c: 01 00 00 18 E4 FC [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 07 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 07 00 18 E4 00 00 00 00 00 CD 0C DC [12:09:56]RasterBufferAndPrint [12:09:56]line [12:09:56]line [12:09:56]line [12:09:56]line [12:09:56]line [12:09:56]written 0, free lines is 3287 [12:09:56]MH_Cut [12:09:56]Write to MH i2c: D1 01 00 1F E4 01 D5 [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: D1 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: D1 01 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: D1 01 00 1F E4 00 D4 [12:09:56]Write to MH i2c: 01 00 00 20 E4 04 [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:57]OFD Sender: No OFD packet to send [12:09:57]*** Cut start [12:09:57]*** Partial cut [12:09:57]*** CUTSNS_PIN = 1 [12:09:57]*** CUTSNS_PIN = 0 [12:09:57]*** Brake cut motor [12:09:58]Read from MH i2c: 01 [12:09:58]MH_I2C_Read... [12:09:58]*** Stop cut motor [12:09:58]*** Cut end [12:09:58]Read from MH i2c: 01 07 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: 01 07 00 20 E4 00 00 00 00 00 FF 0F 19 [12:09:58]process_action close_receipt done [12:09:58]requested_data is exist [12:09:58]produce_requested_data [12:09:58]requested_item fm.sn is exist - process it [12:09:58]wFMCommunicate request_size=4 [12:09:58]MH_SAM_APDU [12:09:58]CAPDU: 80 11 00 00 [12:09:58]Write to MH i2c: E2 08 00 21 E4 80 11 00 00 00 00 00 00 7F [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:58]Read from MH i2c: E2 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 17 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 17 00 21 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [12:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:09:58]wFMCommunicate OK [12:09:58]requested_item fd.num is exist - process it [12:09:58]SAM_PROTO_GetFieldsCounters [12:09:58]wFMCommunicate request_size=4 [12:09:58]MH_SAM_APDU [12:09:58]CAPDU: 80 13 00 00 [12:09:58]Write to MH i2c: E2 08 00 22 E4 80 13 00 00 00 00 00 00 82 [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:58]Read from MH i2c: E2 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 62 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 62 00 22 E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [12:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:58]wFMCommunicate OK [12:09:58]SAM_PROTO_GetFieldsCounters done [12:09:58]requested_item shift.num is exist - process it [12:09:58]requested_item shift.opened is exist - process it [12:09:58]req_shift_opened [12:09:58]FM_GetShiftState [12:09:58]SAM_PROTO_GetShiftState [12:09:58]wFMCommunicate request_size=4 [12:09:58]MH_SAM_APDU [12:09:58]CAPDU: 80 13 01 00 [12:09:58]Write to MH i2c: E2 08 00 23 E4 80 13 01 00 00 00 00 00 84 [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:58]Read from MH i2c: E2 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 0E 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 0E 00 23 E4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CC [12:09:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:09:58]wFMCommunicate OK [12:09:58]SAM_PROTO_GetShiftState done [12:09:58]FM_GetShiftState done [12:09:58]req_shift_opened done [12:09:58]requested_item shift.open_date is exist - process it [12:09:58]req_shift_open_date [12:09:58]req_shift_open_date done [12:09:58]produce_requested_data done [12:09:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165656,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:09:58]process_action_free close_receipt [12:09:58]json_value_free [12:09:58]json_value_free done [12:09:58]process_json_proto returns [12:09:58]Send response to host [12:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165656,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:09:58]free response buf [12:09:58]execute_script done [12:09:58]execute_script returns [12:09:58]free content buf [12:09:58]Sock 7.Close socket [12:09:58]Sock 7.Thread stoped [12:09:58]accept exits with 9 [12:09:58]New connection [12:09:58]New thread 3066920292 created [12:09:58]Thread 3066776932 joined [12:09:58]Waiting for new connection... [12:09:58] Sock 9.Parse request [12:09:58]Sock 9.Check first char [12:09:58]Sock 9.First char is OK [12:09:58]request: POST /json_proto HTTP/1.0 [12:09:58]Method: POST [12:09:58]URL: /json_proto [12:09:58]Method is POST - this is cgi request [12:09:58]url: /json_proto [12:09:58]query_string will be loaded in cgi processing [12:09:58]execute_cgi json_proto POST (null) [12:09:58]execute_cgi path=json_proto method=POST [12:09:58]POST find Content-Length [12:09:58]Host: 172.17.53.195:8080 [12:09:58]Content-Length: 677 [12:09:58]Content-Type: application/json [12:09:58] [12:09:58]POST finish read [12:09:58]Found Content-Length = 677 [12:09:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:58]execute_script... [12:09: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)220220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:58]POST & json_proto [12:09:58]process_json_proto [12:09:58]json parsed OK: [12:09:58]protocol is kg_v1.0 [12:09:58]action value=close_receipt [12:09:58]process_action close_receipt [12:09:58]cmd_close_receipt [12:09:58]MH_GetDate [12:09:58]Write to MH i2c: F0 00 00 24 E4 F7 [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: F0 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: F0 09 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: F0 09 00 24 E4 00 23 F3 14 67 21 48 4A 65 A9 [12:09:58]GetLastDocTimeStamp 1729426206 [12:09:58]current date 1729426211 [12:09:58]FM_GetShiftState [12:09:58]SAM_PROTO_GetShiftState [12:09:58]wFMCommunicate request_size=4 [12:09:58]MH_SAM_APDU [12:09:58]CAPDU: 80 13 01 00 [12:09:58]Write to MH i2c: E2 08 00 25 E4 80 13 01 00 00 00 00 00 86 [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:58]Read from MH i2c: E2 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 0E 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 0E 00 25 E4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CE [12:09:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:09:58]wFMCommunicate OK [12:09:58]SAM_PROTO_GetShiftState done [12:09:58]FM_GetShiftState done [12:09:59]opened in 1729384561 [12:09:59]opened+sec_in_day 1729470961 [12:09:59]quantity*price = 30038 [12:09:59]sum+1 = 30039 [12:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 139 20.10.2024 12:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165657 ФПД: 267390526726802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121011&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165657&fm=267390526726802&tin=02508201610067®Number=0000000000091764&sum=30000 [12:09:59]StoreToDocumentArchive [12:09:59]shift 534 fd 165657 [12:09:59]save to /storage/0534/doc_00165657 [12:09:59]save last doc name /storage/0534/doc_00165657 to /storage/kkm_last_doc_name [12:09:59]save OK [12:09:59]Clear old archive folders... [12:09:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:59]tlvbuf is 016E4AD0 [12:09:59]SAM_PROTO_ClearQueue [12:09:59]wFMCommunicate request_size=4 [12:09:59]MH_SAM_APDU [12:09:59]CAPDU: 80 09 00 00 [12:09:59]Write to MH i2c: E2 08 00 32 E4 80 09 00 00 00 00 00 00 88 [12:09:59]Write i2c OK [12:09:59]MH_I2C_Read... [12:09:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:59]Read from MH i2c: E2 [12:09:59]MH_I2C_Read... [12:09:59]Read from MH i2c: E2 03 00 [12:09:59]MH_I2C_Read... [12:09:59]Read from MH i2c: E2 03 00 32 E4 00 90 00 8A [12:09:59]RAPDU: 90 00 [12:09:59]wFMCommunicate OK [12:09:59]SAM_PROTO_ClearQueue done [12:09:59]KKMCreateOFDPacket [12:09:59]OFDProtocolAddRootSTLVToBuf [12:09:59]FM_MakeSignedData [12:09:59]FM_MakeSignedData [12:09:59]SAM_PROTO_SignData [12:09:59]wFMCommunicate request_size=4 [12:09:59]MH_SAM_APDU [12:09:59]CAPDU: 80 0D 01 02 [12:09:59]Write to MH i2c: E2 08 00 33 E4 80 0D 01 02 00 00 00 00 90 [12:09:59]Write i2c OK [12:09:59]MH_I2C_Read... [12:09:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:59]Read from MH i2c: E2 [12:09:59]MH_I2C_Read... [12:09:59]Read from MH i2c: E2 03 00 [12:09:59]MH_I2C_Read... [12:09:59]Read from MH i2c: E2 03 00 33 E4 00 90 00 8B [12:09:59]RAPDU: 90 00 [12:09:59]wFMCommunicate OK [12:09:59]wFMCommunicate request_size=255 [12:09:59]MH_SAM_APDU [12:09: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 23 F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 87 02 00 35 04 06 00 F3 [12:09:59]Write to MH i2c: E2 02 01 34 E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 23 F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 87 02 00 35 04 06 00 F3 00 00 E3 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:00]Read from MH i2c: E2 03 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 03 00 34 E4 00 90 00 8C [12:10:00]RAPDU: 90 00 [12:10:00]wFMCommunicate OK [12:10:00]wFMCommunicate request_size=10 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 0D 02 02 05 30 B5 5C A2 92 [12:10:00]Write to MH i2c: E2 0D 00 35 E4 80 0D 02 02 05 00 30 B5 5C A2 92 00 00 12 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:00]Read from MH i2c: E2 03 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 03 00 35 E4 00 90 00 8D [12:10:00]RAPDU: 90 00 [12:10:00]wFMCommunicate OK [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 0D 03 02 [12:10:00]Write to MH i2c: E2 08 00 36 E4 80 0D 03 02 00 00 00 00 95 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0B 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0B 00 36 E4 00 FC 42 21 6C B8 D8 2A 74 90 00 8F [12:10:00]RAPDU: FC 42 21 6C B8 D8 2A 74 90 00 [12:10:00]wFMCommunicate OK [12:10:00]SAM_PROTO_SignData done [12:10:00]FM_MakeSignedData done [12:10:00]CreateOFDProtocolMessage [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 11 00 00 [12:10:00]Write to MH i2c: E2 08 00 37 E4 80 11 00 00 00 00 00 00 95 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 17 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 17 00 37 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [12:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:10:00]wFMCommunicate OK [12:10:00]CreateOFDProtocolMessage done [12:10:00]OFDSenderStorePacket 165657 [12:10:00]StoreOFDPacket docnum=165657 [12:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 72 07 01 8D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 23 F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 87 02 00 35 04 06 00 F3 30 B5 5C A2 92 FC 42 21 6C B8 D8 2A 74 [12:10:01]CheckFolder [12:10:01]dirname=/storage/ofd_packets [12:10:01]CheckFolder done [12:10:01]ProducePacketName [12:10:01]name=ofd_packets/00165657 [12:10:01]NVStorageSaveData ofd_packets/00165657 [12:10:01]File name is /storage/ofd_packets/00165657 [12:10:01]Write 301 bytes [12:10:01]NVStorageSaveData done [12:10:01]OFDSenderStorePacket done [12:10:01]KKMCreateOFDPacket done [12:10:01]NVStorageSaveData kkm_last_timestamp [12:10:01]File name is /storage/kkm_last_timestamp [12:10:01]Write 4 bytes [12:10:01]NVStorageSaveData done [12:10:01]ExternCall_PrintAddStr [12:10:01]wPrintStart [12:10:01]Write to MH i2c: 01 00 00 38 E4 1C [12:10:01]Write i2c OK [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: 01 [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: 01 07 00 [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: 01 07 00 38 E4 00 00 00 00 00 FF 0F 31 [12:10:01]RasterBufferAndPrint [12:10:01]line Счет N : (1)220220 [12:10:01]line ИНН: 02508201610067 [12:10:01]line Контрольно-Кассовый Чек [12:10:01]line ПРОДАЖА [12:10:01]line ТРК (МРК, ГНК) : 13 [12:10:01]line Товар: 2710124130 [12:10:01]line Аи-92-К-5 [12:10:01]line 4.490 * 66.90 [12:10:01]line = 300.38 [12:10:01]line НДС 12% НСП 1% [12:10:01]line > о реализуемом товаре [12:10:01]line ОКРУГЛЕНИЕ: -0.38 [12:10:01]line ИТОГО: 300.00 [12:10:01]line Внесено: 300.00 [12:10:01]line СДАЧА: 0.00 [12:10:01]line НСП 1% : 2.66 [12:10:01]line НДС 12% : 31.90 [12:10:01]line Наличными: 300.00 [12:10:01]line Безнал.: 0.00 [12:10:01]line Место: АЗС № 161 "Партнер Нефть" [12:10:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:10:01]line СНО: Общий режим [12:10:01]line Чек 139 20.10.2024 12:10 [12:10:01]line Смена: 534 ФФД: 1.0 [12:10:01]line ЗНМ: 0300000104 [12:10:01]line РНМ: 0000000000091764 [12:10:01]line Версия ККМ: 001 [12:10:01]line ФМ: 0000000000871759 [12:10:01]line ФД: 165657 [12:10:01]line ФПД: 267390526726802 [12:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121011&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165657&fm=267390526726802&tin=02508201610067®Number=0000000000091764&sum=30000 [12:10:01]OFD Sender: Processing packet 165657 [packets to send 48, broken 47] [12:10:01]ProducePacketName [12:10:01]name=ofd_packets/00165657 [12:10:01]OFD Sender: To server: pG, [12:10:01]CommunicateWithHost lk.salyk.kg:30040 [12:10:01]ConnectInit lk.salyk.kg [12:10:01]written 0, free lines is 4095 [12:10:01]Connected sock=10 [12:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 72 07 01 8D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 23 F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 87 02 00 35 04 06 00 F3 30 B5 5C A2 92 FC 42 21 6C B8 D8 2A 74 [12:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FE 5B 47 00 76 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 87 02 00 F4 03 04 00 95 99 14 67 B6 04 01 00 00 7A C3 3F D5 72 32 9D 64 [12:10:01]CommunicateWithHost err = 0 [12:10:01]CheckOFDResponse [12:10:01]1017 (14) - 77093643461234 [12:10:01]1041 (16) - 0000000000871759 [12:10:01]1040 (4) - 165657 [12:10:01]1012 (4) - 20.10.2024 05:48 [12:10:01]1206 (1) - 0 [12:10:01]OFD Sender: Remove packet 165657 [12:10:01]ProducePacketName [12:10:01]name=ofd_packets/00165657 [12:10:01]NVStorageDeleteData [12:10:01]Write to MH i2c: 01 00 00 63 E4 47 [12:10:01]Write i2c OK [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: 01 [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: 01 07 00 [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: 01 07 00 63 E4 00 00 00 00 00 DC 0C 36 [12:10:01]RasterBufferAndPrint [12:10:01]line [12:10:01]line [12:10:01]line [12:10:01]line [12:10:01]line [12:10:01]written 0, free lines is 3307 [12:10:01]MH_Cut [12:10:01]Write to MH i2c: D1 01 00 6A E4 01 20 [12:10:01]Write i2c OK [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: D1 [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: D1 01 00 [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: D1 01 00 6A E4 00 1F [12:10:01]Write to MH i2c: 01 00 00 6B E4 4F [12:10:01]Write i2c OK [12:10:01]MH_I2C_Read... [12:10:01]int [12:10:01]*** FLAG_PRN_PAP2 set [12:10:01]*** Cut start [12:10:01]*** Partial cut [12:10:01]*** CUTSNS_PIN = 1 [12:10:01]*** CUTSNS_PIN = 0 [12:10:02]*** Brake cut motor [12:10:02]OFD Sender: No OFD packet to send [12:10:02]Read from MH i2c: 01 *** Stop cut motor [12:10:02] [12:10:02]*** Cut end [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 6B E4 00 02 00 00 00 FF 0F 66 [12:10:02]process_action close_receipt done [12:10:02]requested_data is exist [12:10:02]produce_requested_data [12:10:02]requested_item fm.sn is exist - process it [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 11 00 00 [12:10:02]Write to MH i2c: 01 00 00 6C E4 50 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 6C E4 00 02 00 00 00 FF 0F 67 [12:10:02]state=0 [12:10:02]Cover opened [12:10:02]Write to MH i2c: E2 08 00 6D E4 80 11 00 00 00 00 00 00 CB [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 17 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 17 00 6D E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [12:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:10:02]wFMCommunicate OK [12:10:02]requested_item fd.num is exist - process it [12:10:02]SAM_PROTO_GetFieldsCounters [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 13 00 00 [12:10:02]Write to MH i2c: E2 08 00 6E E4 80 13 00 00 00 00 00 00 CE [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 62 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 62 00 6E E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:10:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:02]wFMCommunicate OK [12:10:02]SAM_PROTO_GetFieldsCounters done [12:10:02]requested_item shift.num is exist - process it [12:10:02]requested_item shift.opened is exist - process it [12:10:02]req_shift_opened [12:10:02]FM_GetShiftState [12:10:02]SAM_PROTO_GetShiftState [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 13 01 00 [12:10:02]Write to MH i2c: E2 08 00 6F E4 80 13 01 00 00 00 00 00 D0 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 0E 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 0E 00 6F E4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 18 [12:10:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:10:02]wFMCommunicate OK [12:10:02]SAM_PROTO_GetShiftState done [12:10:02]FM_GetShiftState done [12:10:02]req_shift_opened done [12:10:02]requested_item shift.open_date is exist - process it [12:10:02]req_shift_open_date [12:10:02]req_shift_open_date done [12:10:02]produce_requested_data done [12:10:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165657,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:10:02]process_action_free close_receipt [12:10:02]json_value_free [12:10:02]json_value_free done [12:10:02]process_json_proto returns [12:10:02]Send response to host [12:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165657,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:10:02]free response buf [12:10:02]execute_script done [12:10:02]execute_script returns [12:10:02]free content buf [12:10:02]Sock 9.Close socket [12:10:02]Sock 9.Thread stoped [12:10:07]OFD Sender: No OFD packet to send [12:10:07]Write to MH i2c: 01 00 00 70 E4 54 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: 01 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: 01 07 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: 01 07 00 70 E4 00 02 00 00 00 FF 0F 6B [12:10:07]state=3 [12:10:07]Cover opened [12:10:12]OFD Sender: No OFD packet to send [12:10:12]Write to MH i2c: 01 00 00 71 E4 55 [12:10:12]Write i2c OK [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: 01 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: 01 07 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: 01 07 00 71 E4 00 02 00 00 00 FF 0F 6C [12:10:12]state=3 [12:10:12]Cover opened [12:10:17]OFD Sender: No OFD packet to send [12:10:17]Write to MH i2c: 01 00 00 72 E4 56 [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 07 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 07 00 72 E4 00 02 00 00 00 FF 0F 6D [12:10:17]state=3 [12:10:17]Cover opened [12:10:22]OFD Sender: No OFD packet to send [12:10:22]Write to MH i2c: 01 00 00 73 E4 57 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 73 E4 00 02 00 00 00 FF 0F 6E [12:10:22]state=3 [12:10:22]Cover opened [12:10:22]int [12:10:22]Write to MH i2c: 01 00 00 74 E4 58 [12:10:22]*** FLAG_PRN_PAP1 set [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 74 E4 00 03 00 00 00 FF 0F 70 [12:10:22]state=3 [12:10:22]No paper [12:10:22]Cover opened [12:10:27]OFD Sender: No OFD packet to send [12:10:27]Write to MH i2c: 01 00 00 75 E4 59 [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 75 E4 00 03 00 00 00 FF 0F 71 [12:10:27]state=3 [12:10:27]No paper [12:10:27]Cover opened [12:10:32]OFD Sender: No OFD packet to send [12:10:32]Write to MH i2c: 01 00 00 76 E4 5A [12:10:32]Write i2c OK [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: 01 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: 01 07 00 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: 01 07 00 76 E4 00 03 00 00 00 FF 0F 72 [12:10:32]state=3 [12:10:32]No paper [12:10:32]Cover opened [12:10:37]OFD Sender: No OFD packet to send [12:10:37]Write to MH i2c: 01 00 00 77 E4 5B [12:10:37]Write i2c OK [12:10:37]MH_I2C_Read... [12:10:37]Read from MH i2c: 01 [12:10:37]MH_I2C_Read... [12:10:37]Read from MH i2c: 01 07 00 [12:10:37]MH_I2C_Read... [12:10:37]Read from MH i2c: 01 07 00 77 E4 00 03 00 00 00 FF 0F 73 [12:10:37]state=3 [12:10:37]No paper [12:10:37]Cover opened [12:10:42]OFD Sender: No OFD packet to send [12:10:42]Write to MH i2c: 01 00 00 78 E4 5C [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: 01 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: 01 07 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: 01 07 00 78 E4 00 03 00 00 00 FF 0F 74 [12:10:42]state=3 [12:10:42]No paper [12:10:42]Cover opened [12:10:47]OFD Sender: No OFD packet to send [12:10:47]Write to MH i2c: 01 00 00 79 E4 5D [12:10:47]Write i2c OK [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: 01 [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: 01 07 00 [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: 01 07 00 79 E4 00 03 00 00 00 FF 0F 75 [12:10:47]state=3 [12:10:47]No paper [12:10:47]Cover opened [12:10:52]OFD Sender: No OFD packet to send [12:10:52]Write to MH i2c: 01 00 00 7A E4 5E [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 07 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 07 00 7A E4 00 03 00 00 00 FF 0F 76 [12:10:52]state=3 [12:10:52]No paper [12:10:52]Cover opened [12:10:56]int [12:10:56]Write to MH i2c: 01 00 00 7B E4 5F [12:10:56]*** FLAG_PRN_PAP2 reset [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: 01 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: 01 07 00 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: 01 07 00 7B E4 00 01 00 00 00 FF 0F 75 [12:10:56]state=3 [12:10:56]No paper [12:10:56]Cover closed [12:10:57]OFD Sender: No OFD packet to send [12:10:59]int [12:10:59]Write to MH i2c: 01 00 00 7C E4 60 [12:10:59]*** FLAG_PRN_PAP2 set [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: 01 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: 01 07 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: 01 07 00 7C E4 00 03 00 00 00 FF 0F 78 [12:10:59]state=0 [12:10:59]No paper [12:10:59]Cover opened [12:11:00]int [12:11:00]Write to MH i2c: 01 00 00 7D E4 61 [12:11:00]*** FLAG_PRN_PAP2 reset [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 07 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 07 00 7D E4 00 01 00 00 00 FF 0F 77 [12:11:00]state=3 [12:11:00]No paper [12:11:00]Cover closed [12:11:00]int [12:11:00]Write to MH i2c: 01 00 00 7E E4 62 [12:11:00]*** FLAG_PRN_PAP1 reset [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 07 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 07 00 7E E4 00 00 00 00 00 FF 0F 77 [12:11:00]state=0 [12:11:02]OFD Sender: No OFD packet to send [12:11:05]accept exits with 7 [12:11:05]New connection [12:11:05]New thread 3066776932 created [12:11:05]Thread 3066920292 joined [12:11:05]Waiting for new connection... [12:11:05] Sock 7.Parse request [12:11:05]Sock 7.Check first char [12:11:05]Sock 7.First char is OK [12:11:05]request: POST /json_proto HTTP/1.0 [12:11:05]Method: POST [12:11:05]URL: /json_proto [12:11:05]Method is POST - this is cgi request [12:11:05]url: /json_proto [12:11:05]query_string will be loaded in cgi processing [12:11:05]execute_cgi json_proto POST (null) [12:11:05]execute_cgi path=json_proto method=POST [12:11:05]POST find Content-Length [12:11:05]Host: 172.17.53.195:8080 [12:11:05]Content-Length: 215 [12:11:05]Content-Type: application/json [12:11:05] [12:11:05]POST finish read [12:11:05]Found Content-Length = 215 [12:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:05]execute_script... [12:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:05]POST & json_proto [12:11:05]process_json_proto [12:11:05]json parsed OK: [12:11:05]protocol is kg_v1.0 [12:11:05]action value=get_value [12:11:05]process_action get_value [12:11:05]cmd_get_value [12:11:05]process_action get_value done [12:11:05]requested_data is exist [12:11:05]produce_requested_data [12:11:05]requested_item kkm.sn is exist - process it [12:11:05]requested_item kkm.ver is exist - process it [12:11:05]requested_item fm.sn is exist - process it [12:11:05]wFMCommunicate request_size=4 [12:11:05]MH_SAM_APDU [12:11:05]CAPDU: 80 11 00 00 [12:11:05]Write to MH i2c: E2 08 00 7F E4 80 11 00 00 00 00 00 00 DD [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:05]Read from MH i2c: E2 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: E2 17 00 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: E2 17 00 7F E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [12:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:11:05]wFMCommunicate OK [12:11:05]requested_item fd.num is exist - process it [12:11:05]SAM_PROTO_GetFieldsCounters [12:11:05]wFMCommunicate request_size=4 [12:11:05]MH_SAM_APDU [12:11:05]CAPDU: 80 13 00 00 [12:11:05]Write to MH i2c: E2 08 00 80 E4 80 13 00 00 00 00 00 00 E0 [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:05]Read from MH i2c: E2 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: E2 62 00 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: E2 62 00 80 E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [12:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:05]wFMCommunicate OK [12:11:05]SAM_PROTO_GetFieldsCounters done [12:11:05]requested_item shift.num is exist - process it [12:11:05]requested_item shift.opened is exist - process it [12:11:05]req_shift_opened [12:11:05]FM_GetShiftState [12:11:05]SAM_PROTO_GetShiftState [12:11:05]wFMCommunicate request_size=4 [12:11:05]MH_SAM_APDU [12:11:05]CAPDU: 80 13 01 00 [12:11:05]Write to MH i2c: E2 08 00 81 E4 80 13 01 00 00 00 00 00 E2 [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:05]Read from MH i2c: E2 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: E2 0E 00 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: E2 0E 00 81 E4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2A [12:11:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:11:05]wFMCommunicate OK [12:11:05]SAM_PROTO_GetShiftState done [12:11:05]FM_GetShiftState done [12:11:05]req_shift_opened done [12:11:05]requested_item shift.open_date is exist - process it [12:11:05]req_shift_open_date [12:11:05]req_shift_open_date done [12:11:05]produce_requested_data done [12:11:05]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165657,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:11:05]process_action_free get_value [12:11:05]json_value_free [12:11:05]json_value_free done [12:11:05]process_json_proto returns [12:11:05]Send response to host [12:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165657,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:11:05]free response buf [12:11:05]execute_script done [12:11:05]execute_script returns [12:11:05]free content buf [12:11:05]Sock 7.Close socket [12:11:05]Sock 7.Thread stoped [12:11:05]accept exits with 9 [12:11:05]New connection [12:11:05]New thread 3066920292 created [12:11:05]Thread 3066776932 joined [12:11:05]Waiting for new connection... [12:11:05] Sock 9.Parse request [12:11:05]Sock 9.Check first char [12:11:05]Sock 9.First char is OK [12:11:05]request: POST /json_proto HTTP/1.0 [12:11:05]Method: POST [12:11:05]URL: /json_proto [12:11:05]Method is POST - this is cgi request [12:11:05]url: /json_proto [12:11:05]query_string will be loaded in cgi processing [12:11:05]execute_cgi json_proto POST (null) [12:11:05]execute_cgi path=json_proto method=POST [12:11:05]POST find Content-Length [12:11:05]Host: 172.17.53.195:8080 [12:11:05]Content-Length: 331 [12:11:05]Content-Type: application/json [12:11:05] [12:11:05]POST finish read [12:11:05]Found Content-Length = 331 [12:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:11:05]execute_script... [12:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:11:05]POST & json_proto [12:11:05]process_json_proto [12:11:05]json parsed OK: [12:11:05]protocol is kg_v1.0 [12:11:05]action value=get_value [12:11:05]process_action get_value [12:11:05]cmd_get_value [12:11:05]process_action get_value done [12:11:05]requested_data is exist [12:11:05]produce_requested_data [12:11:05]requested_item fm.sale.total is exist - process it [12:11:05]SAM_PROTO_GetFMData [12:11:05]wFMCommunicate request_size=4 [12:11:05]MH_SAM_APDU [12:11:05]CAPDU: 80 13 03 00 [12:11:05]Write to MH i2c: E2 08 00 82 E4 80 13 03 00 00 00 00 00 E5 [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 FD 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 FD 00 82 E4 00 C5 04 85 04 C1 04 6E 04 04 00 ED 82 02 00 69 04 A3 00 6F 04 04 00 EE 81 02 00 B1 04 05 00 0A AF 38 AF 03 70 04 05 00 AC 6A 6F 26 03 72 04 04 00 5E 44 C9 88 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 20 35 64 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 2A AA 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 D8 [12:11:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 ED 82 02 00 69 04 A3 00 6F 04 04 00 EE 81 02 00 B1 04 05 00 0A AF 38 AF 03 70 04 05 00 AC 6A 6F 26 03 72 04 04 00 5E 44 C9 88 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 20 35 64 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 2A AA 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [12:11:06]wFMCommunicate OK [12:11:06]wFMCommunicate request_size=4 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 17 00 00 [12:11:06]Write to MH i2c: E2 08 00 83 E4 80 17 00 00 00 00 00 00 E7 [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 FD 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 FD 00 83 E4 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [12:11:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:11:06]wFMCommunicate OK [12:11:06]wFMCommunicate request_size=4 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 17 00 00 [12:11:06]Write to MH i2c: E2 08 00 84 E4 80 17 00 00 00 00 00 00 E8 [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 FD 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 FD 00 84 E4 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 90 00 FA [12:11:06]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:11:06]wFMCommunicate OK [12:11:06]wFMCommunicate request_size=4 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 17 00 00 [12:11:06]Write to MH i2c: E2 08 00 85 E4 80 17 00 00 00 00 00 00 E9 [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:11:07]Read from MH i2c: E2 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 FD 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 FD 00 85 E4 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [12:11:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:11:07]wFMCommunicate OK [12:11:07]wFMCommunicate request_size=4 [12:11:07]MH_SAM_APDU [12:11:07]CAPDU: 80 17 00 00 [12:11:07]Write to MH i2c: E2 08 00 86 E4 80 17 00 00 00 00 00 00 EA [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]OFD Sender: No OFD packet to send [12:11:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:11:07]Read from MH i2c: E2 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 E2 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 E2 00 86 E4 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [12:11:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:11:07]wFMCommunicate OK [12:11:07]SAM_PROTO_GetFMData done [12:11:07]requested_item fm.sale_refund.total is exist - process it [12:11:07]requested_item fm.buy.total is exist - process it [12:11:07]requested_item shift.sale.total is exist - process it [12:11:07]SAM_PROTO_GetShiftData [12:11:07]wFMCommunicate request_size=4 [12:11:07]MH_SAM_APDU [12:11:07]CAPDU: 80 13 02 00 [12:11:07]Write to MH i2c: E2 08 00 87 E4 80 13 02 00 00 00 00 00 E9 [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:11:07]Read from MH i2c: E2 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 FD 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 FD 00 87 E4 00 AF 04 AA 04 AB 04 6E 04 04 00 8B 00 00 00 69 04 9C 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 57 38 FE 70 04 03 00 90 3B CF 72 04 03 00 C7 FC 2E 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 50 01 1B 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 15 40 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 01 90 00 AA [12:11:07]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8B 00 00 00 69 04 9C 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 57 38 FE 70 04 03 00 90 3B CF 72 04 03 00 C7 FC 2E 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 50 01 1B 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 15 40 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 01 90 00 [12:11:07]wFMCommunicate OK [12:11:07]wFMCommunicate request_size=4 [12:11:07]MH_SAM_APDU [12:11:07]CAPDU: 80 17 00 00 [12:11:07]Write to MH i2c: E2 08 00 88 E4 80 17 00 00 00 00 00 00 EC [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 FD 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 FD 00 88 E4 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 05 [12:11:08]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:11:08]wFMCommunicate OK [12:11:08]wFMCommunicate request_size=4 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 17 00 00 [12:11:08]Write to MH i2c: E2 08 00 89 E4 80 17 00 00 00 00 00 00 ED [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 FD 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 FD 00 89 E4 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [12:11:08]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:11:08]wFMCommunicate OK [12:11:08]wFMCommunicate request_size=4 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 17 00 00 [12:11:08]Write to MH i2c: E2 08 00 8A E4 80 17 00 00 00 00 00 00 EE [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 FD 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 FD 00 8A E4 00 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 90 00 6C [12:11:08]RAPDU: 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 90 00 [12:11:08]wFMCommunicate OK [12:11:08]wFMCommunicate request_size=4 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 17 00 00 [12:11:08]Write to MH i2c: E2 08 00 8B E4 80 17 00 00 00 00 00 00 EF [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:11:09]Read from MH i2c: E2 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 CC 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 CC 00 8B E4 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [12:11:09]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:11:09]wFMCommunicate OK [12:11:09]SAM_PROTO_GetShiftData done [12:11:09]requested_item shift.sale.total_cash is exist - process it [12:11:09]requested_item shift.sale_refund.total is exist - process it [12:11:09]requested_item shift.sale_refund.total_cash is exist - process it [12:11:09]requested_item shift.buy.total is exist - process it [12:11:09]requested_item shift.buy.total_cash is exist - process it [12:11:09]produce_requested_data done [12:11:09]produce_requested_data return {"fm.sale.total":158246295.14,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":166605.67,"shift.sale.total_cash":135812.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:11:09]process_action_free get_value [12:11:09]json_value_free [12:11:09]json_value_free done [12:11:09]process_json_proto returns [12:11:09]Send response to host [12:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158246295.14,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":166605.67,"shift.sale.total_cash":135812.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:11:09]free response buf [12:11:09]execute_script done [12:11:09]execute_script returns [12:11:09]free content buf [12:11:09]Sock 9.Close socket [12:11:09]Sock 9.Thread stoped [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:18]int [12:11:18]Write to MH i2c: 01 00 00 8C E4 70 [12:11:18]*** FLAG_PRN_KEY set [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 8C E4 00 08 00 00 00 FF 0F 8D [12:11:18]state=0 [12:11:18]Key pressed [12:11:18]Feed [12:11:18]Write to MH i2c: D8 00 00 8D E4 48 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D8 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D8 01 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D8 01 00 8D E4 00 49 [12:11:18]int [12:11:18]Write to MH i2c: 01 00 00 8E E4 72 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 8E E4 00 48 00 00 00 3C 00 FD [12:11:18]state=2 [12:11:18]Key pressed [12:11:18]int [12:11:18]Write to MH i2c: 01 00 00 8F E4 73 [12:11:18]*** FLAG_PRN_KEY reset [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 8F E4 00 00 00 00 00 F6 0F 7F [12:11:18]state=2 [12:11:18]Stop feed [12:11:18]int [12:11:18]Write to MH i2c: 01 00 00 90 E4 74 [12:11:18]*** FLAG_PRN_KEY set [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 90 E4 00 08 00 00 00 FF 0F 91 [12:11:18]state=0 [12:11:18]Key pressed [12:11:18]Feed [12:11:18]Write to MH i2c: D8 00 00 91 E4 4C [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D8 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D8 01 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D8 01 00 91 E4 00 4D [12:11:18]int [12:11:18]Write to MH i2c: 01 00 00 92 E4 76 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 92 E4 00 48 00 00 00 3C 00 01 [12:11:18]state=2 [12:11:18]Key pressed [12:11:18]int [12:11:18]Write to MH i2c: 01 00 00 93 E4 77 [12:11:18]*** FLAG_PRN_KEY reset [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 93 E4 00 00 00 00 00 F6 0F 83 [12:11:18]state=2 [12:11:18]Stop feed [12:11:22]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]accept exits with 7 [12:13:27]New connection [12:13:27]New thread 3066776932 created [12:13:27]Thread 3066920292 joined [12:13:27]Waiting for new connection... [12:13:27] Sock 7.Parse request [12:13:27]Sock 7.Check first char [12:13:27]Sock 7.First char is OK [12:13:27]request: POST /json_proto HTTP/1.0 [12:13:27]Method: POST [12:13:27]URL: /json_proto [12:13:27]Method is POST - this is cgi request [12:13:27]url: /json_proto [12:13:27]query_string will be loaded in cgi processing [12:13:27]execute_cgi json_proto POST (null) [12:13:27]execute_cgi path=json_proto method=POST [12:13:27]POST find Content-Length [12:13:27]Host: 172.17.53.195:8080 [12:13:27]Content-Length: 682 [12:13:27]Content-Type: application/json [12:13:27] [12:13:27]POST finish read [12:13:27]Found Content-Length = 682 [12:13:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 29.650, "sum" : 2200.03, "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" ] } } [12:13:27]execute_script... [12: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)220221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 29.650, "sum" : 2200.03, "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" ] } } [12:13:27]POST & json_proto [12:13:27]process_json_proto [12:13:27]json parsed OK: [12:13:27]protocol is kg_v1.0 [12:13:27]action value=close_receipt [12:13:27]process_action close_receipt [12:13:27]cmd_close_receipt [12:13:27]MH_GetDate [12:13:27]Write to MH i2c: F0 00 00 94 E4 67 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: F0 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: F0 09 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: F0 09 00 94 E4 00 F3 F3 14 67 21 48 4A 65 E9 [12:13:27]GetLastDocTimeStamp 1729426211 [12:13:27]current date 1729426419 [12:13:27]FM_GetShiftState [12:13:27]SAM_PROTO_GetShiftState [12:13:27]wFMCommunicate request_size=4 [12:13:27]MH_SAM_APDU [12:13:27]CAPDU: 80 13 01 00 [12:13:27]Write to MH i2c: E2 08 00 95 E4 80 13 01 00 00 00 00 00 F6 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:27]Read from MH i2c: E2 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 0E 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 0E 00 95 E4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3E [12:13:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:13:27]wFMCommunicate OK [12:13:27]SAM_PROTO_GetShiftState done [12:13:27]FM_GetShiftState done [12:13:27]opened in 1729384561 [12:13:27]opened+sec_in_day 1729470961 [12:13:27]quantity*price = 220003 [12:13:27]sum+1 = 220004 [12:13:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.63 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 140 20.10.2024 12:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165658 ФПД: 12807564475793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121339&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165658&fm=12807564475793&tin=02508201610067®Number=0000000000091764&sum=220000 [12:13:28]StoreToDocumentArchive [12:13:28]shift 534 fd 165658 [12:13:28]save to /storage/0534/doc_00165658 [12:13:28]save last doc name /storage/0534/doc_00165658 to /storage/kkm_last_doc_name [12:13:28]save OK [12:13:28]Clear old archive folders... [12:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:28]tlvbuf is 0166ADC0 [12:13:28]SAM_PROTO_ClearQueue [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 09 00 00 [12:13:28]Write to MH i2c: E2 08 00 A2 E4 80 09 00 00 00 00 00 00 F8 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 A2 E4 00 90 00 FA [12:13:28]RAPDU: 90 00 [12:13:28]wFMCommunicate OK [12:13:28]SAM_PROTO_ClearQueue done [12:13:28]KKMCreateOFDPacket [12:13:28]OFDProtocolAddRootSTLVToBuf [12:13:28]FM_MakeSignedData [12:13:28]FM_MakeSignedData [12:13:28]SAM_PROTO_SignData [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 0D 01 02 [12:13:28]Write to MH i2c: E2 08 00 A3 E4 80 0D 01 02 00 00 00 00 00 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 A3 E4 00 90 00 FB [12:13:28]RAPDU: 90 00 [12:13:28]wFMCommunicate OK [12:13:28]wFMCommunicate request_size=255 [12:13:28]MH_SAM_APDU [12:13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 43 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 8C 00 00 00 F4 03 04 00 F3 F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 87 02 00 35 04 06 00 0B [12:13:28]Write to MH i2c: E2 02 01 A4 E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 43 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 8C 00 00 00 F4 03 04 00 F3 F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 87 02 00 35 04 06 00 0B 00 00 A2 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 A4 E4 00 90 00 FC [12:13:28]RAPDU: 90 00 [12:13:28]wFMCommunicate OK [12:13:28]wFMCommunicate request_size=10 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 0D 02 02 05 A5 FE 54 BD 91 [12:13:28]Write to MH i2c: E2 0D 00 A5 E4 80 0D 02 02 05 00 A5 FE 54 BD 91 00 00 52 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 A5 E4 00 90 00 FD [12:13:28]RAPDU: 90 00 [12:13:28]wFMCommunicate OK [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 0D 03 02 [12:13:28]Write to MH i2c: E2 08 00 A6 E4 80 0D 03 02 00 00 00 00 05 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 0B 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 0B 00 A6 E4 00 A0 E8 57 D7 62 77 2E 48 90 00 0B [12:13:28]RAPDU: A0 E8 57 D7 62 77 2E 48 90 00 [12:13:28]wFMCommunicate OK [12:13:28]SAM_PROTO_SignData done [12:13:28]FM_MakeSignedData done [12:13:28]CreateOFDProtocolMessage [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 11 00 00 [12:13:28]Write to MH i2c: E2 08 00 A7 E4 80 11 00 00 00 00 00 00 05 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 17 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 17 00 A7 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [12:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:13:28]wFMCommunicate OK [12:13:28]CreateOFDProtocolMessage done [12:13:28]OFDSenderStorePacket 165658 [12:13:28]StoreOFDPacket docnum=165658 [12:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A1 5D 07 01 B0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 43 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 8C 00 00 00 F4 03 04 00 F3 F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 87 02 00 35 04 06 00 0B A5 FE 54 BD 91 A0 E8 57 D7 62 77 2E 48 [12:13:28]CheckFolder [12:13:28]dirname=/storage/ofd_packets [12:13:28]CheckFolder done [12:13:28]ProducePacketName [12:13:28]name=ofd_packets/00165658 [12:13:28]NVStorageSaveData ofd_packets/00165658 [12:13:28]File name is /storage/ofd_packets/00165658 [12:13:28]Write 301 bytes [12:13:28]NVStorageSaveData done [12:13:28]OFDSenderStorePacket done [12:13:28]KKMCreateOFDPacket done [12:13:28]NVStorageSaveData kkm_last_timestamp [12:13:28]File name is /storage/kkm_last_timestamp [12:13:28]Write 4 bytes [12:13:28]NVStorageSaveData done [12:13:28]ExternCall_PrintAddStr [12:13:28]wPrintStart [12:13:28]Write to MH i2c: 01 00 00 A8 E4 8C [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 07 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 07 00 A8 E4 00 00 00 00 00 FF 0F A1 [12:13:28]RasterBufferAndPrint [12:13:28]line Счет N : (1)220221 [12:13:28]line ИНН: 02508201610067 [12:13:28]line Контрольно-Кассовый Чек [12:13:28]line ПРОДАЖА [12:13:28]line ТРК (МРК, ГНК) : 44 [12:13:28]line Товар: 2710124500 [12:13:28]line Аи-95-К-5 [12:13:28]line 29.650 * 74.20 [12:13:28]line = 2200.03 [12:13:28]line НДС 12% НСП 1% [12:13:28]line > о реализуемом товаре [12:13:28]line ОКРУГЛЕНИЕ: -0.03 [12:13:28]line ИТОГО: 2200.00 [12:13:28]line Внесено: 2200.00 [12:13:28]line СДАЧА: 0.00 [12:13:28]line НСП 1% : 19.47 [12:13:28]line НДС 12% : 233.63 [12:13:28]line Наличными: 2200.00 [12:13:28]line Безнал.: 0.00 [12:13:28]line Место: АЗС № 161 "Партнер Нефть" [12:13:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:13:28]line СНО: Общий режим [12:13:28]line Чек 140 20.10.2024 12:13 [12:13:28]line Смена: 534 ФФД: 1.0 [12:13:28]line ЗНМ: 0300000104 [12:13:28]line РНМ: 0000000000091764 [12:13:28]line Версия ККМ: 001 [12:13:28]line ФМ: 0000000000871759 [12:13:28]line ФД: 165658 [12:13:28]line ФПД: 12807564475793 [12:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121339&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165658&fm=12807564475793&tin=02508201610067®Number=0000000000091764&sum=220000 [12:13:29]OFD Sender: Processing packet 165658 [packets to send 48, broken 47] [12:13:29]ProducePacketName [12:13:29]name=ofd_packets/00165658 [12:13:29]OFD Sender: To server: pG, [12:13:29]CommunicateWithHost lk.salyk.kg:30040 [12:13:29]ConnectInit lk.salyk.kg [12:13:29]written 0, free lines is 4095 [12:13:29]Connected sock=10 [12: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 31 37 35 39 0F 01 00 00 A1 5D 07 01 B0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 43 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 8C 00 00 00 F4 03 04 00 F3 F3 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 87 02 00 35 04 06 00 0B A5 FE 54 BD 91 A0 E8 57 D7 62 77 2E 48 [12:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D7 A9 47 00 D9 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 31 37 35 39 10 04 04 00 1A 87 02 00 F4 03 04 00 65 9A 14 67 B6 04 01 00 00 57 6F 23 DF 1B 99 91 F8 [12:13:29]CommunicateWithHost err = 0 [12:13:29]CheckOFDResponse [12:13:29]1017 (14) - 77093643461234 [12:13:29]1041 (16) - 0000000000871759 [12:13:29]1040 (4) - 165658 [12:13:29]1012 (4) - 20.10.2024 05:51 [12:13:29]1206 (1) - 0 [12:13:29]OFD Sender: Remove packet 165658 [12:13:29]ProducePacketName [12:13:29]name=ofd_packets/00165658 [12:13:29]NVStorageDeleteData [12:13:29]Write to MH i2c: 01 00 00 D3 E4 B7 [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: 01 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: 01 07 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: 01 07 00 D3 E4 00 00 00 00 00 CF 0C 99 [12:13:29]RasterBufferAndPrint [12:13:29]line [12:13:29]line [12:13:29]line [12:13:29]line [12:13:29]line [12:13:29]written 0, free lines is 3286 [12:13:29]MH_Cut [12:13:29]Write to MH i2c: D1 01 00 DA E4 01 90 [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: D1 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: D1 01 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: D1 01 00 DA E4 00 8F [12:13:29]Write to MH i2c: 01 00 00 DB E4 BF [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:30]OFD Sender: No OFD packet to send [12:13:30]*** Cut start [12:13:30]*** Partial cut [12:13:30]*** CUTSNS_PIN = 1 [12:13:30]*** CUTSNS_PIN = 0 [12:13:30]*** Brake cut motor [12:13:31]Read from MH i2c: 01 [12:13:31]MH_I2C_Read... [12:13:31]*** Stop cut motor [12:13:31]*** Cut end [12:13:31]Read from MH i2c: 01 07 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: 01 07 00 DB E4 00 00 00 00 00 FF 0F D4 [12:13:31]process_action close_receipt done [12:13:31]requested_data is exist [12:13:31]produce_requested_data [12:13:31]requested_item fm.sn is exist - process it [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 11 00 00 [12:13:31]Write to MH i2c: E2 08 00 DC E4 80 11 00 00 00 00 00 00 3A [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 17 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 17 00 DC E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [12:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:13:31]wFMCommunicate OK [12:13:31]requested_item fd.num is exist - process it [12:13:31]SAM_PROTO_GetFieldsCounters [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 13 00 00 [12:13:31]Write to MH i2c: E2 08 00 DD E4 80 13 00 00 00 00 00 00 3D [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 62 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 62 00 DD E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:31]wFMCommunicate OK [12:13:31]SAM_PROTO_GetFieldsCounters done [12:13:31]requested_item shift.num is exist - process it [12:13:31]requested_item shift.opened is exist - process it [12:13:31]req_shift_opened [12:13:31]FM_GetShiftState [12:13:31]SAM_PROTO_GetShiftState [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 13 01 00 [12:13:31]Write to MH i2c: E2 08 00 DE E4 80 13 01 00 00 00 00 00 3F [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 0E 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 0E 00 DE E4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 87 [12:13:31]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:13:31]wFMCommunicate OK [12:13:31]SAM_PROTO_GetShiftState done [12:13:31]FM_GetShiftState done [12:13:31]req_shift_opened done [12:13:31]requested_item shift.open_date is exist - process it [12:13:31]req_shift_open_date [12:13:31]req_shift_open_date done [12:13:31]produce_requested_data done [12:13:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165658,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:13:31]process_action_free close_receipt [12:13:31]json_value_free [12:13:31]json_value_free done [12:13:31]process_json_proto returns [12:13:31]Send response to host [12:13:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165658,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:13:31]free response buf [12:13:31]execute_script done [12:13:31]execute_script returns [12:13:31]free content buf [12:13:31]Sock 7.Close socket [12:13:31]Sock 7.Thread stoped [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:36]accept exits with 9 [12:14:36]New connection [12:14:36]New thread 3066920292 created [12:14:36]Thread 3066776932 joined [12:14:36]Waiting for new connection... [12:14:36] Sock 9.Parse request [12:14:36]Sock 9.Check first char [12:14:36]Sock 9.First char is OK [12:14:36]request: POST /json_proto HTTP/1.0 [12:14:36]Method: POST [12:14:36]URL: /json_proto [12:14:36]Method is POST - this is cgi request [12:14:36]url: /json_proto [12:14:36]query_string will be loaded in cgi processing [12:14:36]execute_cgi json_proto POST (null) [12:14:36]execute_cgi path=json_proto method=POST [12:14:36]POST find Content-Length [12:14:36]Host: 172.17.53.195:8080 [12:14:36]Content-Length: 677 [12:14:36]Content-Type: application/json [12:14:36] [12:14:36]POST finish read [12:14:36]Found Content-Length = 677 [12:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:36]execute_script... [12:14: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)220222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:36]POST & json_proto [12:14:36]process_json_proto [12:14:36]json parsed OK: [12:14:36]protocol is kg_v1.0 [12:14:36]action value=close_receipt [12:14:36]process_action close_receipt [12:14:36]cmd_close_receipt [12:14:36]MH_GetDate [12:14:36]Write to MH i2c: F0 00 00 DF E4 B2 [12:14:36]Write i2c OK [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: F0 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: F0 09 00 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: F0 09 00 DF E4 00 39 F4 14 67 21 48 4A 65 7B [12:14:36]GetLastDocTimeStamp 1729426419 [12:14:36]current date 1729426489 [12:14:36]FM_GetShiftState [12:14:36]SAM_PROTO_GetShiftState [12:14:36]wFMCommunicate request_size=4 [12:14:36]MH_SAM_APDU [12:14:36]CAPDU: 80 13 01 00 [12:14:36]Write to MH i2c: E2 08 00 E0 E4 80 13 01 00 00 00 00 00 41 [12:14:36]Write i2c OK [12:14:36]MH_I2C_Read... [12:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:36]Read from MH i2c: E2 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 0E 00 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 0E 00 E0 E4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 89 [12:14:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:14:36]wFMCommunicate OK [12:14:36]SAM_PROTO_GetShiftState done [12:14:36]FM_GetShiftState done [12:14:36]opened in 1729384561 [12:14:36]opened+sec_in_day 1729470961 [12:14:36]quantity*price = 20003 [12:14:36]sum+1 = 20004 [12:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 141 20.10.2024 12:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165659 ФПД: 131598750546255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121449&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165659&fm=131598750546255&tin=02508201610067®Number=0000000000091764&sum=20000 [12:14:38]StoreToDocumentArchive [12:14:38]shift 534 fd 165659 [12:14:38]save to /storage/0534/doc_00165659 [12:14:38]save last doc name /storage/0534/doc_00165659 to /storage/kkm_last_doc_name [12:14:38]save OK [12:14:38]Clear old archive folders... [12:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:38]tlvbuf is 01484EC0 [12:14:38]SAM_PROTO_ClearQueue [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 09 00 00 [12:14:38]Write to MH i2c: E2 08 00 ED E4 80 09 00 00 00 00 00 00 43 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 ED E4 00 90 00 45 [12:14:38]RAPDU: 90 00 [12:14:38]wFMCommunicate OK [12:14:38]SAM_PROTO_ClearQueue done [12:14:38]KKMCreateOFDPacket [12:14:38]OFDProtocolAddRootSTLVToBuf [12:14:38]FM_MakeSignedData [12:14:38]FM_MakeSignedData [12:14:38]SAM_PROTO_SignData [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 0D 01 02 [12:14:38]Write to MH i2c: E2 08 00 EE E4 80 0D 01 02 00 00 00 00 4B [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 EE E4 00 90 00 46 [12:14:38]RAPDU: 90 00 [12:14:38]wFMCommunicate OK [12:14:38]wFMCommunicate request_size=255 [12:14:38]MH_SAM_APDU [12:14: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 39 F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 87 02 00 35 04 06 00 77 [12:14:38]Write to MH i2c: E2 02 01 EF E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 39 F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 87 02 00 35 04 06 00 77 00 00 0B [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 EF E4 00 90 00 47 [12:14:38]RAPDU: 90 00 [12:14:38]wFMCommunicate OK [12:14:38]wFMCommunicate request_size=10 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 0D 02 02 05 B0 38 C7 79 4F [12:14:38]Write to MH i2c: E2 0D 00 F0 E4 80 0D 02 02 05 00 B0 38 C7 79 4F 00 00 CF [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 F0 E4 00 90 00 48 [12:14:38]RAPDU: 90 00 [12:14:38]wFMCommunicate OK [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 0D 03 02 [12:14:38]Write to MH i2c: E2 08 00 F1 E4 80 0D 03 02 00 00 00 00 50 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 0B 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 0B 00 F1 E4 00 92 9E 1E 32 06 94 95 E4 90 00 E4 [12:14:38]RAPDU: 92 9E 1E 32 06 94 95 E4 90 00 [12:14:38]wFMCommunicate OK [12:14:38]SAM_PROTO_SignData done [12:14:38]FM_MakeSignedData done [12:14:38]CreateOFDProtocolMessage [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 11 00 00 [12:14:38]Write to MH i2c: E2 08 00 F2 E4 80 11 00 00 00 00 00 00 50 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 17 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 17 00 F2 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [12:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:14:38]wFMCommunicate OK [12:14:38]CreateOFDProtocolMessage done [12:14:38]OFDSenderStorePacket 165659 [12:14:38]StoreOFDPacket docnum=165659 [12:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 19 07 01 8E 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 39 F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 87 02 00 35 04 06 00 77 B0 38 C7 79 4F 92 9E 1E 32 06 94 95 E4 [12:14:38]CheckFolder [12:14:38]dirname=/storage/ofd_packets [12:14:38]CheckFolder done [12:14:38]ProducePacketName [12:14:38]name=ofd_packets/00165659 [12:14:38]NVStorageSaveData ofd_packets/00165659 [12:14:38]File name is /storage/ofd_packets/00165659 [12:14:38]Write 301 bytes [12:14:38]NVStorageSaveData done [12:14:38]OFDSenderStorePacket done [12:14:38]KKMCreateOFDPacket done [12:14:38]NVStorageSaveData kkm_last_timestamp [12:14:38]File name is /storage/kkm_last_timestamp [12:14:38]Write 4 bytes [12:14:38]NVStorageSaveData done [12:14:38]ExternCall_PrintAddStr [12:14:38]wPrintStart [12:14:38]Write to MH i2c: 01 00 00 F3 E4 D7 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 07 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 07 00 F3 E4 00 00 00 00 00 FF 0F EC [12:14:38]RasterBufferAndPrint [12:14:38]line Счет N : (1)220222 [12:14:38]line ИНН: 02508201610067 [12:14:38]line Контрольно-Кассовый Чек [12:14:38]line ПРОДАЖА [12:14:38]line ТРК (МРК, ГНК) : 13 [12:14:38]line Товар: 2710124130 [12:14:38]line Аи-92-К-5 [12:14:38]line 2.990 * 66.90 [12:14:38]line = 200.03 [12:14:38]line НДС 12% НСП 1% [12:14:38]line > о реализуемом товаре [12:14:38]line ОКРУГЛЕНИЕ: -0.03 [12:14:38]line ИТОГО: 200.00 [12:14:38]line Внесено: 200.00 [12:14:38]line СДАЧА: 0.00 [12:14:38]line НСП 1% : 1.77 [12:14:38]line НДС 12% : 21.24 [12:14:38]line Наличными: 200.00 [12:14:38]line Безнал.: 0.00 [12:14:38]line Место: АЗС № 161 "Партнер Нефть" [12:14:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:14:38]line СНО: Общий режим [12:14:38]line Чек 141 20.10.2024 12:14 [12:14:38]line Смена: 534 ФФД: 1.0 [12:14:38]line ЗНМ: 0300000104 [12:14:38]line РНМ: 0000000000091764 [12:14:38]line Версия ККМ: 001 [12:14:38]line ФМ: 0000000000871759 [12:14:38]line ФД: 165659 [12:14:38]line ФПД: 131598750546255 [12:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121449&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165659&fm=131598750546255&tin=02508201610067®Number=0000000000091764&sum=20000 [12:14:39]OFD Sender: Processing packet 165659 [packets to send 48, broken 47] [12:14:39]ProducePacketName [12:14:39]name=ofd_packets/00165659 [12:14:39]OFD Sender: To server: pG, [12:14:39]CommunicateWithHost lk.salyk.kg:30040 [12:14:39]ConnectInit lk.salyk.kg [12:14:39]written 0, free lines is 4095 [12:14:39]Connected sock=11 [12:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 19 07 01 8E 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 39 F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 87 02 00 35 04 06 00 77 B0 38 C7 79 4F 92 9E 1E 32 06 94 95 E4 [12:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C BF 47 00 37 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 87 02 00 F4 03 04 00 AB 9A 14 67 B6 04 01 00 00 E5 51 19 3C 98 84 58 81 [12:14:39]CommunicateWithHost err = 0 [12:14:39]CheckOFDResponse [12:14:39]1017 (14) - 77093643461234 [12:14:39]1041 (16) - 0000000000871759 [12:14:39]1040 (4) - 165659 [12:14:39]1012 (4) - 20.10.2024 05:52 [12:14:39]1206 (1) - 0 [12:14:39]OFD Sender: Remove packet 165659 [12:14:39]ProducePacketName [12:14:39]name=ofd_packets/00165659 [12:14:39]NVStorageDeleteData [12:14:39]Write to MH i2c: 01 00 00 1E E5 03 [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: 01 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: 01 07 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: 01 07 00 1E E5 00 00 00 00 00 BF 0C D5 [12:14:39]RasterBufferAndPrint [12:14:39]line [12:14:39]line [12:14:39]line [12:14:39]line [12:14:39]line [12:14:39]written 0, free lines is 3269 [12:14:39]MH_Cut [12:14:39]Write to MH i2c: D1 01 00 25 E5 01 DC [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: D1 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: D1 01 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: D1 01 00 25 E5 00 DB [12:14:39]Write to MH i2c: 01 00 00 26 E5 0B [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]OFD Sender: No OFD packet to send [12:14:40]*** Cut start [12:14:40]*** Partial cut [12:14:40]*** CUTSNS_PIN = 1 [12:14:40]*** CUTSNS_PIN = 0 [12:14:40]*** Brake cut motor [12:14:40]Read from MH i2c: 01 [12:14:40]MH_I2C_Read... [12:14:40]*** Stop cut motor [12:14:40]*** Cut end [12:14:40]Read from MH i2c: 01 07 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 26 E5 00 00 00 00 00 FF 0F 20 [12:14:40]process_action close_receipt done [12:14:40]requested_data is exist [12:14:40]produce_requested_data [12:14:40]requested_item fm.sn is exist - process it [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 11 00 00 [12:14:40]Write to MH i2c: E2 08 00 27 E5 80 11 00 00 00 00 00 00 86 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:40]Read from MH i2c: E2 17 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 17 00 27 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [12:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:14:40]wFMCommunicate OK [12:14:40]requested_item fd.num is exist - process it [12:14:40]SAM_PROTO_GetFieldsCounters [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 13 00 00 [12:14:40]Write to MH i2c: E2 08 00 28 E5 80 13 00 00 00 00 00 00 89 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 62 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 62 00 28 E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [12:14: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:41]wFMCommunicate OK [12:14:41]SAM_PROTO_GetFieldsCounters done [12:14:41]requested_item shift.num is exist - process it [12:14:41]requested_item shift.opened is exist - process it [12:14:41]req_shift_opened [12:14:41]FM_GetShiftState [12:14:41]SAM_PROTO_GetShiftState [12:14:41]wFMCommunicate request_size=4 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 13 01 00 [12:14:41]Write to MH i2c: E2 08 00 29 E5 80 13 01 00 00 00 00 00 8B [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 0E 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 0E 00 29 E5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D3 [12:14:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:14:41]wFMCommunicate OK [12:14:41]SAM_PROTO_GetShiftState done [12:14:41]FM_GetShiftState done [12:14:41]req_shift_opened done [12:14:41]requested_item shift.open_date is exist - process it [12:14:41]req_shift_open_date [12:14:41]req_shift_open_date done [12:14:41]produce_requested_data done [12:14:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165659,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:14:41]process_action_free close_receipt [12:14:41]json_value_free [12:14:41]json_value_free done [12:14:41]process_json_proto returns [12:14:41]Send response to host [12:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165659,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:14:41]free response buf [12:14:41]execute_script done [12:14:41]execute_script returns [12:14:41]free content buf [12:14:41]Sock 9.Close socket [12:14:41]Sock 9.Thread stoped [12:14:41]accept exits with 7 [12:14:41]New connection [12:14:41]New thread 3066776932 created [12:14:41]Thread 3066920292 joined [12:14:41]Waiting for new connection... [12:14:41] Sock 7.Parse request [12:14:41]Sock 7.Check first char [12:14:41]Sock 7.First char is OK [12:14:41]request: POST /json_proto HTTP/1.0 [12:14:41]Method: POST [12:14:41]URL: /json_proto [12:14:41]Method is POST - this is cgi request [12:14:41]url: /json_proto [12:14:41]query_string will be loaded in cgi processing [12:14:41]execute_cgi json_proto POST (null) [12:14:41]execute_cgi path=json_proto method=POST [12:14:41]POST find Content-Length [12:14:41]Host: 172.17.53.195:8080 [12:14:41]Content-Length: 682 [12:14:41]Content-Type: application/json [12:14:41] [12:14:41]POST finish read [12:14:41]Found Content-Length = 682 [12:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:41]execute_script... [12:14: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)220223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:41]POST & json_proto [12:14:41]process_json_proto [12:14:41]json parsed OK: [12:14:41]protocol is kg_v1.0 [12:14:41]action value=close_receipt [12:14:41]process_action close_receipt [12:14:41]cmd_close_receipt [12:14:41]MH_GetDate [12:14:41]Write to MH i2c: F0 00 00 2A E5 FE [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: F0 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: F0 09 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: F0 09 00 2A E5 00 3E F4 14 67 21 48 4A 65 CC [12:14:41]GetLastDocTimeStamp 1729426489 [12:14:41]current date 1729426494 [12:14:41]FM_GetShiftState [12:14:41]SAM_PROTO_GetShiftState [12:14:41]wFMCommunicate request_size=4 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 13 01 00 [12:14:41]Write to MH i2c: E2 08 00 2B E5 80 13 01 00 00 00 00 00 8D [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:42]Read from MH i2c: E2 0E 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0E 00 2B E5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D5 [12:14:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:14:42]wFMCommunicate OK [12:14:42]SAM_PROTO_GetShiftState done [12:14:42]FM_GetShiftState done [12:14:42]opened in 1729384561 [12:14:42]opened+sec_in_day 1729470961 [12:14:42]quantity*price = 100015 [12:14:42]sum+1 = 100017 [12:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 142 20.10.2024 12:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165660 ФПД: 208581521228874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165660&fm=208581521228874&tin=02508201610067®Number=0000000000091764&sum=100000 [12:14:43]StoreToDocumentArchive [12:14:43]shift 534 fd 165660 [12:14:43]save to /storage/0534/doc_00165660 [12:14:43]save last doc name /storage/0534/doc_00165660 to /storage/kkm_last_doc_name [12:14:43]save OK [12:14:43]Clear old archive folders... [12:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:43]tlvbuf is 017FE550 [12:14:43]SAM_PROTO_ClearQueue [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 09 00 00 [12:14:43]Write to MH i2c: E2 08 00 38 E5 80 09 00 00 00 00 00 00 8F [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 38 E5 00 90 00 91 [12:14:43]RAPDU: 90 00 [12:14:43]wFMCommunicate OK [12:14:43]SAM_PROTO_ClearQueue done [12:14:43]KKMCreateOFDPacket [12:14:43]OFDProtocolAddRootSTLVToBuf [12:14:43]FM_MakeSignedData [12:14:43]FM_MakeSignedData [12:14:43]SAM_PROTO_SignData [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 0D 01 02 [12:14:43]Write to MH i2c: E2 08 00 39 E5 80 0D 01 02 00 00 00 00 97 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 39 E5 00 90 00 92 [12:14:43]RAPDU: 90 00 [12:14:43]wFMCommunicate OK [12:14:43]wFMCommunicate request_size=255 [12:14:43]MH_SAM_APDU [12:14: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 3E F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 87 02 00 35 04 06 00 BD [12:14:43]Write to MH i2c: E2 02 01 3A E5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 3E F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 87 02 00 35 04 06 00 BD 00 00 DC [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 3A E5 00 90 00 93 [12:14:43]RAPDU: 90 00 [12:14:43]wFMCommunicate OK [12:14:43]wFMCommunicate request_size=10 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 0D 02 02 05 B4 2B 7A C4 4A [12:14:43]Write to MH i2c: E2 0D 00 3B E5 80 0D 02 02 05 00 B4 2B 7A C4 4A 00 00 0B [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 3B E5 00 90 00 94 [12:14:43]RAPDU: 90 00 [12:14:43]wFMCommunicate OK [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 0D 03 02 [12:14:43]Write to MH i2c: E2 08 00 3C E5 80 0D 03 02 00 00 00 00 9C [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 0B 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 0B 00 3C E5 00 2F 06 F2 DA 97 6D 1A 51 90 00 0D [12:14:43]RAPDU: 2F 06 F2 DA 97 6D 1A 51 90 00 [12:14:43]wFMCommunicate OK [12:14:43]SAM_PROTO_SignData done [12:14:43]FM_MakeSignedData done [12:14:43]CreateOFDProtocolMessage [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 11 00 00 [12:14:43]Write to MH i2c: E2 08 00 3D E5 80 11 00 00 00 00 00 00 9C [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 17 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 17 00 3D E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [12:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:14:43]wFMCommunicate OK [12:14:43]CreateOFDProtocolMessage done [12:14:43]OFDSenderStorePacket 165660 [12:14:43]StoreOFDPacket docnum=165660 [12:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 5B 07 01 8A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 3E F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 87 02 00 35 04 06 00 BD B4 2B 7A C4 4A 2F 06 F2 DA 97 6D 1A 51 [12:14:43]CheckFolder [12:14:43]dirname=/storage/ofd_packets [12:14:43]CheckFolder done [12:14:43]ProducePacketName [12:14:43]name=ofd_packets/00165660 [12:14:43]NVStorageSaveData ofd_packets/00165660 [12:14:43]File name is /storage/ofd_packets/00165660 [12:14:43]Write 301 bytes [12:14:43]NVStorageSaveData done [12:14:43]OFDSenderStorePacket done [12:14:43]KKMCreateOFDPacket done [12:14:43]NVStorageSaveData kkm_last_timestamp [12:14:43]File name is /storage/kkm_last_timestamp [12:14:43]Write 4 bytes [12:14:43]NVStorageSaveData done [12:14:43]ExternCall_PrintAddStr [12:14:43]wPrintStart [12:14:43]Write to MH i2c: 01 00 00 3E E5 23 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: 01 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: 01 07 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: 01 07 00 3E E5 00 00 00 00 00 FF 0F 38 [12:14:43]RasterBufferAndPrint [12:14:43]line Счет N : (1)220223 [12:14:43]line ИНН: 02508201610067 [12:14:43]line Контрольно-Кассовый Чек [12:14:43]line ПРОДАЖА [12:14:43]line ТРК (МРК, ГНК) : 23 [12:14:43]line Товар: 2710124130 [12:14:43]line Аи-92-К-5 [12:14:43]line 14.950 * 66.90 [12:14:43]line = 1000.16 [12:14:43]line НДС 12% НСП 1% [12:14:43]line > о реализуемом товаре [12:14:43]line ОКРУГЛЕНИЕ: -0.16 [12:14:43]line ИТОГО: 1000.00 [12:14:43]line Внесено: 1000.00 [12:14:43]line СДАЧА: 0.00 [12:14:43]line НСП 1% : 8.85 [12:14:43]line НДС 12% : 106.21 [12:14:43]line Наличными: 1000.00 [12:14:43]line Безнал.: 0.00 [12:14:43]line Место: АЗС № 161 "Партнер Нефть" [12:14:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:14:43]line СНО: Общий режим [12:14:43]line Чек 142 20.10.2024 12:14 [12:14:43]line Смена: 534 ФФД: 1.0 [12:14:43]line ЗНМ: 0300000104 [12:14:43]line РНМ: 0000000000091764 [12:14:43]line Версия ККМ: 001 [12:14:43]line ФМ: 0000000000871759 [12:14:43]line ФД: 165660 [12:14:43]line ФПД: 208581521228874 [12:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165660&fm=208581521228874&tin=02508201610067®Number=0000000000091764&sum=100000 [12:14:44]OFD Sender: Processing packet 165660 [packets to send 48, broken 47] [12:14:44]ProducePacketName [12:14:44]name=ofd_packets/00165660 [12:14:44]OFD Sender: To server: pG, [12:14:44]CommunicateWithHost lk.salyk.kg:30040 [12:14:44]ConnectInit lk.salyk.kg [12:14:44]written 0, free lines is 4095 [12:14:44]Connected sock=11 [12:14:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 5B 07 01 8A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 3E F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 87 02 00 35 04 06 00 BD B4 2B 7A C4 4A 2F 06 F2 DA 97 6D 1A 51 [12:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 45 A7 47 00 5F 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 31 37 35 39 10 04 04 00 1C 87 02 00 F4 03 04 00 B0 9A 14 67 B6 04 01 00 00 04 D6 9B B7 40 25 37 D6 [12:14:44]CommunicateWithHost err = 0 [12:14:44]CheckOFDResponse [12:14:44]1017 (14) - 77093643461234 [12:14:44]1041 (16) - 0000000000871759 [12:14:44]1040 (4) - 165660 [12:14:44]1012 (4) - 20.10.2024 05:52 [12:14:44]1206 (1) - 0 [12:14:44]OFD Sender: Remove packet 165660 [12:14:44]ProducePacketName [12:14:44]name=ofd_packets/00165660 [12:14:44]NVStorageDeleteData [12:14:44]Write to MH i2c: 01 00 00 69 E5 4E [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 69 E5 00 00 00 00 00 D7 0C 38 [12:14:44]RasterBufferAndPrint [12:14:44]line [12:14:44]line [12:14:44]line [12:14:44]line [12:14:44]line [12:14:44]written 0, free lines is 3299 [12:14:44]MH_Cut [12:14:44]Write to MH i2c: D1 01 00 70 E5 01 27 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: D1 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: D1 01 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: D1 01 00 70 E5 00 26 [12:14:44]Write to MH i2c: 01 00 00 71 E5 56 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:45]OFD Sender: No OFD packet to send [12:14:45]*** Cut start [12:14:45]*** Partial cut [12:14:45]*** CUTSNS_PIN = 1 [12:14:45]*** CUTSNS_PIN = 0 [12:14:45]*** Brake cut motor [12:14:46]Read from MH i2c: 01 [12:14:46]MH_I2C_Read... [12:14:46]*** Stop cut motor [12:14:46]*** Cut end [12:14:46]Read from MH i2c: 01 07 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: 01 07 00 71 E5 00 00 00 00 00 FF 0F 6B [12:14:46]process_action close_receipt done [12:14:46]requested_data is exist [12:14:46]produce_requested_data [12:14:46]requested_item fm.sn is exist - process it [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 11 00 00 [12:14:46]Write to MH i2c: E2 08 00 72 E5 80 11 00 00 00 00 00 00 D1 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 17 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 17 00 72 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [12:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:14:46]wFMCommunicate OK [12:14:46]requested_item fd.num is exist - process it [12:14:46]SAM_PROTO_GetFieldsCounters [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 13 00 00 [12:14:46]Write to MH i2c: E2 08 00 73 E5 80 13 00 00 00 00 00 00 D4 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 62 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 62 00 73 E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [12:14:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:46]wFMCommunicate OK [12:14:46]SAM_PROTO_GetFieldsCounters done [12:14:46]requested_item shift.num is exist - process it [12:14:46]requested_item shift.opened is exist - process it [12:14:46]req_shift_opened [12:14:46]FM_GetShiftState [12:14:46]SAM_PROTO_GetShiftState [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 13 01 00 [12:14:46]Write to MH i2c: E2 08 00 74 E5 80 13 01 00 00 00 00 00 D6 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:46]Read from MH i2c: E2 0E 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 0E 00 74 E5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1E [12:14:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:14:46]wFMCommunicate OK [12:14:46]SAM_PROTO_GetShiftState done [12:14:46]FM_GetShiftState done [12:14:46]req_shift_opened done [12:14:46]requested_item shift.open_date is exist - process it [12:14:46]req_shift_open_date [12:14:46]req_shift_open_date done [12:14:46]produce_requested_data done [12:14:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165660,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:14:46]process_action_free close_receipt [12:14:46]json_value_free [12:14:46]json_value_free done [12:14:46]process_json_proto returns [12:14:46]Send response to host [12:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165660,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:14:46]free response buf [12:14:46]execute_script done [12:14:46]execute_script returns [12:14:46]free content buf [12:14:46]Sock 7.Close socket [12:14:46]Sock 7.Thread stoped [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:14:57]accept exits with 9 [12:14:57]New connection [12:14:57]New thread 3066920292 created [12:14:57]Thread 3066776932 joined [12:14:57]Waiting for new connection... [12:14:57] Sock 9.Parse request [12:14:57]Sock 9.Check first char [12:14:57]Sock 9.First char is OK [12:14:57]request: POST /json_proto HTTP/1.0 [12:14:57]Method: POST [12:14:57]URL: /json_proto [12:14:57]Method is POST - this is cgi request [12:14:57]url: /json_proto [12:14:57]query_string will be loaded in cgi processing [12:14:57]execute_cgi json_proto POST (null) [12:14:57]execute_cgi path=json_proto method=POST [12:14:57]POST find Content-Length [12:14:57]Host: 172.17.53.195:8080 [12:14:57]Content-Length: 766 [12:14:57]Content-Type: application/json [12:14:57] [12:14:57]POST finish read [12:14:57]Found Content-Length = 766 [12:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 100.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:57]execute_script... [12:14: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)220224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 100.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:57]POST & json_proto [12:14:57]process_json_proto [12:14:57]json parsed OK: [12:14:57]protocol is kg_v1.0 [12:14:57]action value=close_receipt [12:14:57]process_action close_receipt [12:14:57]cmd_close_receipt [12:14:57]MH_GetDate [12:14:57]Write to MH i2c: F0 00 00 75 E5 49 [12:14:57]Write i2c OK [12:14:57]MH_I2C_Read... [12:14:57]Read from MH i2c: F0 [12:14:57]MH_I2C_Read... [12:14:57]Read from MH i2c: F0 09 00 [12:14:57]MH_I2C_Read... [12:14:57]Read from MH i2c: F0 09 00 75 E5 00 4D F4 14 67 21 48 4A 65 26 [12:14:57]GetLastDocTimeStamp 1729426494 [12:14:57]current date 1729426509 [12:14:57]FM_GetShiftState [12:14:57]SAM_PROTO_GetShiftState [12:14:57]wFMCommunicate request_size=4 [12:14:57]MH_SAM_APDU [12:14:57]CAPDU: 80 13 01 00 [12:14:57]Write to MH i2c: E2 08 00 76 E5 80 13 01 00 00 00 00 00 D8 [12:14:57]Write i2c OK [12:14:57]MH_I2C_Read... [12:14:57]Read from MH i2c: E2 [12:14:57]MH_I2C_Read... [12:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:57]Read from MH i2c: E2 0E 00 [12:14:57]MH_I2C_Read... [12:14:57]Read from MH i2c: E2 0E 00 76 E5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 20 [12:14:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:14:57]wFMCommunicate OK [12:14:57]SAM_PROTO_GetShiftState done [12:14:57]FM_GetShiftState done [12:14:57]opened in 1729384561 [12:14:57]opened+sec_in_day 1729470961 [12:14:57]quantity*price = 10035 [12:14:57]sum+1 = 10036 [12:14:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.35 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 0.00 Безнал.: 100.35 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 143 20.10.2024 12:15 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165661 ФПД: 2614261474791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165661&fm=2614261474791&tin=02508201610067®Number=0000000000091764&sum=10035 [12:14:58]StoreToDocumentArchive [12:14:58]shift 534 fd 165661 [12:14:58]save to /storage/0534/doc_00165661 [12:14:58]save last doc name /storage/0534/doc_00165661 to /storage/kkm_last_doc_name [12:14:58]save OK [12:14:58]Clear old archive folders... [12:14:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:58]tlvbuf is 014569F0 [12:14:58]SAM_PROTO_ClearQueue [12:14:58]wFMCommunicate request_size=4 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 09 00 00 [12:14:58]Write to MH i2c: E2 08 00 83 E5 80 09 00 00 00 00 00 00 DA [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 83 E5 00 90 00 DC [12:14:59]RAPDU: 90 00 [12:14:59]wFMCommunicate OK [12:14:59]SAM_PROTO_ClearQueue done [12:14:59]KKMCreateOFDPacket [12:14:59]OFDProtocolAddRootSTLVToBuf [12:14:59]FM_MakeSignedData [12:14:59]FM_MakeSignedData [12:14:59]SAM_PROTO_SignData [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 0D 01 02 [12:14:59]Write to MH i2c: E2 08 00 84 E5 80 0D 01 02 00 00 00 00 E2 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 84 E5 00 90 00 DD [12:14:59]RAPDU: 90 00 [12:14:59]wFMCommunicate OK [12:14:59]wFMCommunicate request_size=255 [12:14:59]MH_SAM_APDU [12:14: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4E F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 87 02 00 35 04 06 00 02 [12:14:59]Write to MH i2c: E2 02 01 85 E5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4E F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 87 02 00 35 04 06 00 02 00 00 B1 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 85 E5 00 90 00 DE [12:14:59]RAPDU: 90 00 [12:14:59]wFMCommunicate OK [12:14:59]wFMCommunicate request_size=10 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 0D 02 02 05 60 AE 20 65 E7 [12:14:59]Write to MH i2c: E2 0D 00 86 E5 80 0D 02 02 05 00 60 AE 20 65 E7 00 00 69 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 86 E5 00 90 00 DF [12:14:59]RAPDU: 90 00 [12:14:59]wFMCommunicate OK [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 0D 03 02 [12:14:59]Write to MH i2c: E2 08 00 87 E5 80 0D 03 02 00 00 00 00 E7 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 0B 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 0B 00 87 E5 00 60 D0 D1 83 32 31 A5 E6 90 00 5A [12:14:59]RAPDU: 60 D0 D1 83 32 31 A5 E6 90 00 [12:14:59]wFMCommunicate OK [12:14:59]SAM_PROTO_SignData done [12:14:59]FM_MakeSignedData done [12:14:59]CreateOFDProtocolMessage [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 11 00 00 [12:14:59]Write to MH i2c: E2 08 00 88 E5 80 11 00 00 00 00 00 00 E7 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 17 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 17 00 88 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3F [12:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:14:59]wFMCommunicate OK [12:14:59]CreateOFDProtocolMessage done [12:14:59]OFDSenderStorePacket 165661 [12:14:59]StoreOFDPacket docnum=165661 [12:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 28 21 07 01 00 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4E F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 87 02 00 35 04 06 00 02 60 AE 20 65 E7 60 D0 D1 83 32 31 A5 E6 [12:14:59]CheckFolder [12:14:59]dirname=/storage/ofd_packets [12:14:59]CheckFolder done [12:14:59]ProducePacketName [12:14:59]name=ofd_packets/00165661 [12:14:59]NVStorageSaveData ofd_packets/00165661 [12:14:59]File name is /storage/ofd_packets/00165661 [12:14:59]Write 301 bytes [12:14:59]NVStorageSaveData done [12:14:59]OFDSenderStorePacket done [12:14:59]KKMCreateOFDPacket done [12:14:59]NVStorageSaveData kkm_last_timestamp [12:14:59]File name is /storage/kkm_last_timestamp [12:14:59]Write 4 bytes [12:14:59]NVStorageSaveData done [12:14:59]OFD Sender: Processing packet 165661 [packets to send 48, broken 47] [12:14:59]ProducePacketName [12:14:59]name=ofd_packets/00165661 [12:14:59]OFD Sender: To server: pG, [12:14:59]CommunicateWithHost lk.salyk.kg:30040 [12:14:59]ConnectInit lk.salyk.kg [12:14:59]ExternCall_PrintAddStr [12:14:59]wPrintStart [12:14:59]Write to MH i2c: 01 00 00 89 E5 6E [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 07 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 07 00 89 E5 00 00 00 00 00 FF 0F 83 [12:14:59]RasterBufferAndPrint [12:14:59]line Счет N : (1)220224 [12:14:59]line ИНН: 02508201610067 [12:14:59]line Контрольно-Кассовый Чек [12:14:59]line ПРОДАЖА [12:14:59]line ТРК (МРК, ГНК) : 13 [12:14:59]line Товар: 2710124130 [12:14:59]line Аи-92-К-5 [12:14:59]line 1.500 * 66.90 [12:14:59]line = 100.35 [12:14:59]line НДС 12% НСП 1% [12:14:59]line > о реализуемом товаре [12:14:59]line ИТОГО: 100.35 [12:14:59]line НСП 1% : 0.89 [12:14:59]line НДС 12% : 10.66 [12:14:59]line Наличными: 0.00 [12:14:59]line Безнал.: 100.35 [12:14:59]line Место: АЗС № 161 "Партнер Нефть" [12:14:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:14:59]line СНО: Общий режим [12:14:59]line Чек 143 20.10.2024 12:15 [12:14:59]line Смена: 534 ФФД: 1.0 [12:14:59]line ЗНМ: 0300000104 [12:14:59]line РНМ: 0000000000091764 [12:14:59]line Версия ККМ: 001 [12:14:59]line Платежная система: Mbank [12:14:59]line ФМ: 0000000000871759 [12:14:59]line ФД: 165661 [12:14:59]line ФПД: 2614261474791 [12:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165661&fm=2614261474791&tin=02508201610067®Number=0000000000091764&sum=10035 [12:14:59]written 0, free lines is 4095 [12:14:59]Connected sock=11 [12:14:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 28 21 07 01 00 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4E F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 87 02 00 35 04 06 00 02 60 AE 20 65 E7 60 D0 D1 83 32 31 A5 E6 [12:14:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CF E1 47 00 B2 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 31 37 35 39 10 04 04 00 1D 87 02 00 F4 03 04 00 BF 9A 14 67 B6 04 01 00 00 1A 98 78 F4 B3 00 8A 2B [12:14:59]CommunicateWithHost err = 0 [12:14:59]CheckOFDResponse [12:14:59]1017 (14) - 77093643461234 [12:14:59]1041 (16) - 0000000000871759 [12:14:59]1040 (4) - 165661 [12:14:59]1012 (4) - 20.10.2024 05:53 [12:14:59]1206 (1) - 0 [12:14:59]OFD Sender: Remove packet 165661 [12:14:59]ProducePacketName [12:14:59]name=ofd_packets/00165661 [12:14:59]NVStorageDeleteData [12:15:00]Write to MH i2c: 01 00 00 B2 E5 97 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 B2 E5 00 00 00 00 00 F7 0C A1 [12:15:00]RasterBufferAndPrint [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]written 0, free lines is 3329 [12:15:00]MH_Cut [12:15:00]Write to MH i2c: D1 01 00 B9 E5 01 70 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 01 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 01 00 B9 E5 00 6F [12:15:00]Write to MH i2c: 01 00 00 BA E5 9F [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]OFD Sender: No OFD packet to send [12:15:00]*** Cut start [12:15:00]*** Partial cut [12:15:00]*** CUTSNS_PIN = 1 [12:15:00]*** CUTSNS_PIN = 0 [12:15:01]*** Brake cut motor [12:15:01]Read from MH i2c: 01 [12:15:01]MH_I2C_Read... [12:15:01]*** Stop cut motor [12:15:01]*** Cut end [12:15:01]Read from MH i2c: 01 07 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 BA E5 00 00 00 00 00 FF 0F B4 [12:15:01]process_action close_receipt done [12:15:01]requested_data is exist [12:15:01]produce_requested_data [12:15:01]requested_item fm.sn is exist - process it [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 11 00 00 [12:15:01]Write to MH i2c: E2 08 00 BB E5 80 11 00 00 00 00 00 00 1A [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 BB E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [12:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:15:01]wFMCommunicate OK [12:15:01]requested_item fd.num is exist - process it [12:15:01]SAM_PROTO_GetFieldsCounters [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 13 00 00 [12:15:01]Write to MH i2c: E2 08 00 BC E5 80 13 00 00 00 00 00 00 1D [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 62 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 62 00 BC E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [12:15:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:01]wFMCommunicate OK [12:15:01]SAM_PROTO_GetFieldsCounters done [12:15:01]requested_item shift.num is exist - process it [12:15:01]requested_item shift.opened is exist - process it [12:15:01]req_shift_opened [12:15:01]FM_GetShiftState [12:15:01]SAM_PROTO_GetShiftState [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 13 01 00 [12:15:01]Write to MH i2c: E2 08 00 BD E5 80 13 01 00 00 00 00 00 1F [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 0E 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 0E 00 BD E5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 67 [12:15:01]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:15:01]wFMCommunicate OK [12:15:01]SAM_PROTO_GetShiftState done [12:15:01]FM_GetShiftState done [12:15:01]req_shift_opened done [12:15:01]requested_item shift.open_date is exist - process it [12:15:01]req_shift_open_date [12:15:01]req_shift_open_date done [12:15:01]produce_requested_data done [12:15:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165661,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:15:01]process_action_free close_receipt [12:15:01]json_value_free [12:15:01]json_value_free done [12:15:01]process_json_proto returns [12:15:01]Send response to host [12:15:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165661,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:15:01]free response buf [12:15:01]execute_script done [12:15:01]execute_script returns [12:15:01]free content buf [12:15:01]Sock 9.Close socket [12:15:01]Sock 9.Thread stoped [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:12]accept exits with 7 [12:16:12]New connection [12:16:12]New thread 3066776932 created [12:16:12]Thread 3066920292 joined [12:16:12]Waiting for new connection... [12:16:12] Sock 7.Parse request [12:16:12]Sock 7.Check first char [12:16:12]Sock 7.First char is OK [12:16:12]request: POST /json_proto HTTP/1.0 [12:16:12]Method: POST [12:16:12]URL: /json_proto [12:16:12]Method is POST - this is cgi request [12:16:12]url: /json_proto [12:16:12]query_string will be loaded in cgi processing [12:16:12]execute_cgi json_proto POST (null) [12:16:12]execute_cgi path=json_proto method=POST [12:16:12]POST find Content-Length [12:16:12]Host: 172.17.53.195:8080 [12:16:12]Content-Length: 682 [12:16:12]Content-Type: application/json [12:16:12] [12:16:12]POST finish read [12:16:12]Found Content-Length = 682 [12:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:12]execute_script... [12:16: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)220225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:12]POST & json_proto [12:16:12]process_json_proto [12:16:12]json parsed OK: [12:16:12]protocol is kg_v1.0 [12:16:12]action value=close_receipt [12:16:12]process_action close_receipt [12:16:12]cmd_close_receipt [12:16:12]MH_GetDate [12:16:12]Write to MH i2c: F0 00 00 BE E5 92 [12:16:12]Write i2c OK [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: F0 [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: F0 09 00 [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: F0 09 00 BE E5 00 98 F4 14 67 21 48 4A 65 BA [12:16:12]GetLastDocTimeStamp 1729426510 [12:16:12]current date 1729426584 [12:16:12]FM_GetShiftState [12:16:12]SAM_PROTO_GetShiftState [12:16:12]wFMCommunicate request_size=4 [12:16:12]MH_SAM_APDU [12:16:12]CAPDU: 80 13 01 00 [12:16:12]Write to MH i2c: E2 08 00 BF E5 80 13 01 00 00 00 00 00 21 [12:16:12]Write i2c OK [12:16:12]MH_I2C_Read... [12:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:12]Read from MH i2c: E2 [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: E2 0E 00 [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: E2 0E 00 BF E5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 69 [12:16:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:16:12]wFMCommunicate OK [12:16:12]SAM_PROTO_GetShiftState done [12:16:12]FM_GetShiftState done [12:16:12]opened in 1729384561 [12:16:12]opened+sec_in_day 1729470961 [12:16:12]quantity*price = 100021 [12:16:12]sum+1 = 100023 [12:16:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 144 20.10.2024 12:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165662 ФПД: 99068451323833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121624&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165662&fm=99068451323833&tin=02508201610067®Number=0000000000091764&sum=100000 [12:16:13]StoreToDocumentArchive [12:16:13]shift 534 fd 165662 [12:16:13]save to /storage/0534/doc_00165662 [12:16:13]save last doc name /storage/0534/doc_00165662 to /storage/kkm_last_doc_name [12:16:13]save OK [12:16:13]Clear old archive folders... [12:16:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:13]tlvbuf is 016AB860 [12:16:13]SAM_PROTO_ClearQueue [12:16:13]wFMCommunicate request_size=4 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 09 00 00 [12:16:13]Write to MH i2c: E2 08 00 CC E5 80 09 00 00 00 00 00 00 23 [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 CC E5 00 90 00 25 [12:16:13]RAPDU: 90 00 [12:16:13]wFMCommunicate OK [12:16:13]SAM_PROTO_ClearQueue done [12:16:13]KKMCreateOFDPacket [12:16:13]OFDProtocolAddRootSTLVToBuf [12:16:13]FM_MakeSignedData [12:16:13]FM_MakeSignedData [12:16:13]SAM_PROTO_SignData [12:16:13]wFMCommunicate request_size=4 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 0D 01 02 [12:16:13]Write to MH i2c: E2 08 00 CD E5 80 0D 01 02 00 00 00 00 2B [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 CD E5 00 90 00 26 [12:16:13]RAPDU: 90 00 [12:16:13]wFMCommunicate OK [12:16:13]wFMCommunicate request_size=255 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 98 F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 87 02 00 35 04 06 00 5A [12:16:13]Write to MH i2c: E2 02 01 CE E5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 98 F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 87 02 00 35 04 06 00 5A 00 00 8E [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 CE E5 00 90 00 27 [12:16:13]RAPDU: 90 00 [12:16:13]wFMCommunicate OK [12:16:13]wFMCommunicate request_size=10 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 0D 02 02 05 1A 2B D9 7F B9 [12:16:13]Write to MH i2c: E2 0D 00 CF E5 80 0D 02 02 05 00 1A 2B D9 7F B9 00 00 8E [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 CF E5 00 90 00 28 [12:16:13]RAPDU: 90 00 [12:16:13]wFMCommunicate OK [12:16:13]wFMCommunicate request_size=4 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 0D 03 02 [12:16:13]Write to MH i2c: E2 08 00 D0 E5 80 0D 03 02 00 00 00 00 30 [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 0B 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 0B 00 D0 E5 00 AD 07 60 9D DC E2 51 F9 90 00 EA [12:16:13]RAPDU: AD 07 60 9D DC E2 51 F9 90 00 [12:16:13]wFMCommunicate OK [12:16:13]SAM_PROTO_SignData done [12:16:13]FM_MakeSignedData done [12:16:13]CreateOFDProtocolMessage [12:16:13]wFMCommunicate request_size=4 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 11 00 00 [12:16:13]Write to MH i2c: E2 08 00 D1 E5 80 11 00 00 00 00 00 00 30 [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 17 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 17 00 D1 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [12:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:16:13]wFMCommunicate OK [12:16:13]CreateOFDProtocolMessage done [12:16:13]OFDSenderStorePacket 165662 [12:16:13]StoreOFDPacket docnum=165662 [12:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 0B 07 01 45 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 98 F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 87 02 00 35 04 06 00 5A 1A 2B D9 7F B9 AD 07 60 9D DC E2 51 F9 [12:16:13]CheckFolder [12:16:13]dirname=/storage/ofd_packets [12:16:13]CheckFolder done [12:16:13]ProducePacketName [12:16:13]name=ofd_packets/00165662 [12:16:13]NVStorageSaveData ofd_packets/00165662 [12:16:13]File name is /storage/ofd_packets/00165662 [12:16:13]Write 301 bytes [12:16:13]NVStorageSaveData done [12:16:13]OFDSenderStorePacket done [12:16:13]KKMCreateOFDPacket done [12:16:13]NVStorageSaveData kkm_last_timestamp [12:16:13]File name is /storage/kkm_last_timestamp [12:16:13]Write 4 bytes [12:16:13]NVStorageSaveData done [12:16:13]ExternCall_PrintAddStr [12:16:13]wPrintStart [12:16:13]Write to MH i2c: 01 00 00 D2 E5 B7 [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: 01 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: 01 07 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: 01 07 00 D2 E5 00 00 00 00 00 FF 0F CC [12:16:13]RasterBufferAndPrint [12:16:13]line Счет N : (1)220225 [12:16:13]line ИНН: 02508201610067 [12:16:13]line Контрольно-Кассовый Чек [12:16:13]line ПРОДАЖА [12:16:13]line ТРК (МРК, ГНК) : 34 [12:16:13]line Товар: 2710124500 [12:16:13]line Аи-95-К-5 [12:16:13]line 13.480 * 74.20 [12:16:13]line = 1000.22 [12:16:13]line НДС 12% НСП 1% [12:16:13]line > о реализуемом товаре [12:16:13]line ОКРУГЛЕНИЕ: -0.22 [12:16:13]line ИТОГО: 1000.00 [12:16:13]line Внесено: 1000.00 [12:16:13]line СДАЧА: 0.00 [12:16:13]line НСП 1% : 8.85 [12:16:13]line НДС 12% : 106.22 [12:16:13]line Наличными: 1000.00 [12:16:13]line Безнал.: 0.00 [12:16:13]line Место: АЗС № 161 "Партнер Нефть" [12:16:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:16:13]line СНО: Общий режим [12:16:13]line Чек 144 20.10.2024 12:16 [12:16:13]line Смена: 534 ФФД: 1.0 [12:16:13]line ЗНМ: 0300000104 [12:16:13]line РНМ: 0000000000091764 [12:16:13]line Версия ККМ: 001 [12:16:13]line ФМ: 0000000000871759 [12:16:13]line ФД: 165662 [12:16:13]line ФПД: 99068451323833 [12:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121624&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165662&fm=99068451323833&tin=02508201610067®Number=0000000000091764&sum=100000 [12:16:14]OFD Sender: Processing packet 165662 [packets to send 48, broken 47] [12:16:14]ProducePacketName [12:16:14]name=ofd_packets/00165662 [12:16:14]OFD Sender: To server: pG, [12:16:14]CommunicateWithHost lk.salyk.kg:30040 [12:16:14]ConnectInit lk.salyk.kg [12:16:14]written 0, free lines is 4095 [12:16:14]Connected sock=11 [12:16:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 0B 07 01 45 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 98 F4 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 87 02 00 35 04 06 00 5A 1A 2B D9 7F B9 AD 07 60 9D DC E2 51 F9 [12:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF 58 47 00 16 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 31 37 35 39 10 04 04 00 1E 87 02 00 F4 03 04 00 0A 9B 14 67 B6 04 01 00 00 DE 82 E2 92 E7 CB 46 DA [12:16:14]CommunicateWithHost err = 0 [12:16:14]CheckOFDResponse [12:16:14]1017 (14) - 77093643461234 [12:16:14]1041 (16) - 0000000000871759 [12:16:14]1040 (4) - 165662 [12:16:14]1012 (4) - 20.10.2024 05:54 [12:16:14]1206 (1) - 0 [12:16:14]OFD Sender: Remove packet 165662 [12:16:14]ProducePacketName [12:16:14]name=ofd_packets/00165662 [12:16:14]NVStorageDeleteData [12:16:14]Write to MH i2c: 01 00 00 FD E5 E2 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: 01 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: 01 07 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: 01 07 00 FD E5 00 00 00 00 00 CB 0C C0 [12:16:14]RasterBufferAndPrint [12:16:14]line [12:16:14]line [12:16:14]line [12:16:14]line [12:16:14]line [12:16:14]written 0, free lines is 3281 [12:16:14]MH_Cut [12:16:14]Write to MH i2c: D1 01 00 04 E6 01 BC [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: D1 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: D1 01 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: D1 01 00 04 E6 00 BB [12:16:14]Write to MH i2c: 01 00 00 05 E6 EB [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]OFD Sender: No OFD packet to send [12:16:15]*** Cut start [12:16:15]*** Partial cut [12:16:15]*** CUTSNS_PIN = 1 [12:16:15]*** CUTSNS_PIN = 0 [12:16:15]*** Brake cut motor [12:16:15]Read from MH i2c: 01 [12:16:15]MH_I2C_Read... [12:16:15]*** Stop cut motor [12:16:15]*** Cut end [12:16:15]Read from MH i2c: 01 07 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 07 00 05 E6 00 00 00 00 00 FF 0F 00 [12:16:15]process_action close_receipt done [12:16:15]requested_data is exist [12:16:15]produce_requested_data [12:16:15]requested_item fm.sn is exist - process it [12:16:15]wFMCommunicate request_size=4 [12:16:15]MH_SAM_APDU [12:16:15]CAPDU: 80 11 00 00 [12:16:15]Write to MH i2c: E2 08 00 06 E6 80 11 00 00 00 00 00 00 66 [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 17 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 17 00 06 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [12:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:16:16]wFMCommunicate OK [12:16:16]requested_item fd.num is exist - process it [12:16:16]SAM_PROTO_GetFieldsCounters [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 13 00 00 [12:16:16]Write to MH i2c: E2 08 00 07 E6 80 13 00 00 00 00 00 00 69 [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 62 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 62 00 07 E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:16:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:16]wFMCommunicate OK [12:16:16]SAM_PROTO_GetFieldsCounters done [12:16:16]requested_item shift.num is exist - process it [12:16:16]requested_item shift.opened is exist - process it [12:16:16]req_shift_opened [12:16:16]FM_GetShiftState [12:16:16]SAM_PROTO_GetShiftState [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 13 01 00 [12:16:16]Write to MH i2c: E2 08 00 08 E6 80 13 01 00 00 00 00 00 6B [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 0E 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 0E 00 08 E6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B3 [12:16:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:16:16]wFMCommunicate OK [12:16:16]SAM_PROTO_GetShiftState done [12:16:16]FM_GetShiftState done [12:16:16]req_shift_opened done [12:16:16]requested_item shift.open_date is exist - process it [12:16:16]req_shift_open_date [12:16:16]req_shift_open_date done [12:16:16]produce_requested_data done [12:16:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165662,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:16:16]process_action_free close_receipt [12:16:16]json_value_free [12:16:16]json_value_free done [12:16:16]process_json_proto returns [12:16:16]Send response to host [12:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165662,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:16:16]free response buf [12:16:16]execute_script done [12:16:16]execute_script returns [12:16:16]free content buf [12:16:16]Sock 7.Close socket [12:16:16]Sock 7.Thread stoped [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:51]accept exits with 9 [12:18:51]New connection [12:18:51]New thread 3066920292 created [12:18:51]Thread 3066776932 joined [12:18:51]Waiting for new connection... [12:18:51] Sock 9.Parse request [12:18:51]Sock 9.Check first char [12:18:51]Sock 9.First char is OK [12:18:51]request: POST /json_proto HTTP/1.0 [12:18:51]Method: POST [12:18:51]URL: /json_proto [12:18:51]Method is POST - this is cgi request [12:18:51]url: /json_proto [12:18:51]query_string will be loaded in cgi processing [12:18:51]execute_cgi json_proto POST (null) [12:18:51]execute_cgi path=json_proto method=POST [12:18:51]POST find Content-Length [12:18:51]Host: 172.17.53.195:8080 [12:18:51]Content-Length: 678 [12:18:51]Content-Type: application/json [12:18:51] [12:18:51]POST finish read [12:18:51]Found Content-Length = 678 [12:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "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:18:51]execute_script... [12:18: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)220226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "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:18:51]POST & json_proto [12:18:51]process_json_proto [12:18:51]json parsed OK: [12:18:51]protocol is kg_v1.0 [12:18:51]action value=close_receipt [12:18:51]process_action close_receipt [12:18:51]cmd_close_receipt [12:18:51]MH_GetDate [12:18:51]Write to MH i2c: F0 00 00 09 E6 DE [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: F0 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: F0 09 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: F0 09 00 09 E6 00 37 F5 14 67 21 48 4A 65 A6 [12:18:51]GetLastDocTimeStamp 1729426584 [12:18:51]current date 1729426743 [12:18:51]FM_GetShiftState [12:18:51]SAM_PROTO_GetShiftState [12:18:51]wFMCommunicate request_size=4 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 13 01 00 [12:18:51]Write to MH i2c: E2 08 00 0A E6 80 13 01 00 00 00 00 00 6D [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 0E 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 0E 00 0A E6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B5 [12:18:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:18:51]wFMCommunicate OK [12:18:51]SAM_PROTO_GetShiftState done [12:18:51]FM_GetShiftState done [12:18:51]opened in 1729384561 [12:18:51]opened+sec_in_day 1729470961 [12:18:51]quantity*price = 72051 [12:18:51]sum+1 = 72052 [12:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 145 20.10.2024 12:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165663 ФПД: 178262362341575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165663&fm=178262362341575&tin=02508201610067®Number=0000000000091764&sum=72000 [12:18:52]StoreToDocumentArchive [12:18:52]shift 534 fd 165663 [12:18:52]save to /storage/0534/doc_00165663 [12:18:52]save last doc name /storage/0534/doc_00165663 to /storage/kkm_last_doc_name [12:18:52]save OK [12:18:52]Clear old archive folders... [12:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:52]tlvbuf is 0162F380 [12:18:52]SAM_PROTO_ClearQueue [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 09 00 00 [12:18:52]Write to MH i2c: E2 08 00 17 E6 80 09 00 00 00 00 00 00 6F [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 17 E6 00 90 00 71 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_ClearQueue done [12:18:52]KKMCreateOFDPacket [12:18:52]OFDProtocolAddRootSTLVToBuf [12:18:52]FM_MakeSignedData [12:18:52]FM_MakeSignedData [12:18:52]SAM_PROTO_SignData [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 01 02 [12:18:52]Write to MH i2c: E2 08 00 18 E6 80 0D 01 02 00 00 00 00 77 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 18 E6 00 90 00 72 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=255 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 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 91 00 00 00 F4 03 04 00 37 F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 87 02 00 35 04 06 00 A2 [12:18:52]Write to MH i2c: E2 02 01 19 E6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 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 91 00 00 00 F4 03 04 00 37 F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 87 02 00 35 04 06 00 A2 00 00 5B [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 19 E6 00 90 00 73 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=10 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 02 02 05 20 F0 C8 C0 C7 [12:18:52]Write to MH i2c: E2 0D 00 1A E6 80 0D 02 02 05 00 20 F0 C8 C0 C7 00 00 E3 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 1A E6 00 90 00 74 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 03 02 [12:18:52]Write to MH i2c: E2 08 00 1B E6 80 0D 03 02 00 00 00 00 7C [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 0B 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 0B 00 1B E6 00 E0 10 6E 22 4F 1A 61 EA 90 00 B1 [12:18:52]RAPDU: E0 10 6E 22 4F 1A 61 EA 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_SignData done [12:18:52]FM_MakeSignedData done [12:18:52]CreateOFDProtocolMessage [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 11 00 00 [12:18:52]Write to MH i2c: E2 08 00 1C E6 80 11 00 00 00 00 00 00 7C [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 17 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 17 00 1C E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [12:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:18:52]wFMCommunicate OK [12:18:52]CreateOFDProtocolMessage done [12:18:52]OFDSenderStorePacket 165663 [12:18:52]StoreOFDPacket docnum=165663 [12:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E6 F4 07 01 23 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 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 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 91 00 00 00 F4 03 04 00 37 F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 87 02 00 35 04 06 00 A2 20 F0 C8 C0 C7 E0 10 6E 22 4F 1A 61 EA [12:18:52]CheckFolder [12:18:52]dirname=/storage/ofd_packets [12:18:52]CheckFolder done [12:18:52]ProducePacketName [12:18:52]name=ofd_packets/00165663 [12:18:52]NVStorageSaveData ofd_packets/00165663 [12:18:52]File name is /storage/ofd_packets/00165663 [12:18:52]Write 301 bytes [12:18:52]NVStorageSaveData done [12:18:52]OFDSenderStorePacket done [12:18:52]KKMCreateOFDPacket done [12:18:52]NVStorageSaveData kkm_last_timestamp [12:18:52]File name is /storage/kkm_last_timestamp [12:18:52]Write 4 bytes [12:18:52]NVStorageSaveData done [12:18:52]ExternCall_PrintAddStr [12:18:52]wPrintStart [12:18:52]Write to MH i2c: 01 00 00 1D E6 03 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: 01 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: 01 07 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: 01 07 00 1D E6 00 00 00 00 00 FF 0F 18 [12:18:52]RasterBufferAndPrint [12:18:52]line Счет N : (1)220226 [12:18:52]line ИНН: 02508201610067 [12:18:52]line Контрольно-Кассовый Чек [12:18:52]line ПРОДАЖА [12:18:52]line ТРК (МРК, ГНК) : 23 [12:18:52]line Товар: 2710124130 [12:18:52]line Аи-92-К-5 [12:18:52]line 10.770 * 66.90 [12:18:52]line = 720.51 [12:18:52]line НДС 12% НСП 1% [12:18:52]line > о реализуемом товаре [12:18:52]line ОКРУГЛЕНИЕ: -0.51 [12:18:52]line ИТОГО: 720.00 [12:18:52]line Внесено: 720.00 [12:18:52]line СДАЧА: 0.00 [12:18:52]line НСП 1% : 6.38 [12:18:52]line НДС 12% : 76.51 [12:18:52]line Наличными: 720.00 [12:18:52]line Безнал.: 0.00 [12:18:52]line Место: АЗС № 161 "Партнер Нефть" [12:18:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:18:52]line СНО: Общий режим [12:18:52]line Чек 145 20.10.2024 12:19 [12:18:52]line Смена: 534 ФФД: 1.0 [12:18:52]line ЗНМ: 0300000104 [12:18:52]line РНМ: 0000000000091764 [12:18:52]line Версия ККМ: 001 [12:18:52]line ФМ: 0000000000871759 [12:18:52]line ФД: 165663 [12:18:52]line ФПД: 178262362341575 [12:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165663&fm=178262362341575&tin=02508201610067®Number=0000000000091764&sum=72000 [12:18:53]OFD Sender: Processing packet 165663 [packets to send 48, broken 47] [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00165663 [12:18:53]OFD Sender: To server: pG, [12:18:53]CommunicateWithHost lk.salyk.kg:30040 [12:18:53]ConnectInit lk.salyk.kg [12:18:53]written 0, free lines is 4095 [12:18:53]Connected sock=10 [12:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E6 F4 07 01 23 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 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 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 91 00 00 00 F4 03 04 00 37 F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 87 02 00 35 04 06 00 A2 20 F0 C8 C0 C7 E0 10 6E 22 4F 1A 61 EA [12:18:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0C 53 47 00 A5 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 87 02 00 F4 03 04 00 A9 9B 14 67 B6 04 01 00 00 A3 1D 35 95 82 C7 02 CC [12:18:53]CommunicateWithHost err = 0 [12:18:53]CheckOFDResponse [12:18:53]1017 (14) - 77093643461234 [12:18:53]1041 (16) - 0000000000871759 [12:18:53]1040 (4) - 165663 [12:18:53]1012 (4) - 20.10.2024 05:56 [12:18:53]1206 (1) - 0 [12:18:53]OFD Sender: Remove packet 165663 [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00165663 [12:18:53]NVStorageDeleteData [12:18:53]Write to MH i2c: 01 00 00 48 E6 2E [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 48 E6 00 00 00 00 00 CD 0C 0E [12:18:53]RasterBufferAndPrint [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]written 0, free lines is 3283 [12:18:53]MH_Cut [12:18:53]Write to MH i2c: D1 01 00 4F E6 01 07 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 01 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 01 00 4F E6 00 06 [12:18:53]Write to MH i2c: 01 00 00 50 E6 36 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]OFD Sender: No OFD packet to send [12:18:54]*** Cut start [12:18:54]*** Partial cut [12:18:54]*** CUTSNS_PIN = 1 [12:18:54]*** CUTSNS_PIN = 0 [12:18:54]*** Brake cut motor [12:18:54]Read from MH i2c: 01 [12:18:54]MH_I2C_Read... [12:18:54]*** Stop cut motor [12:18:54]*** Cut end [12:18:54]Read from MH i2c: 01 07 00 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: 01 07 00 50 E6 00 00 00 00 00 FF 0F 4B [12:18:54]process_action close_receipt done [12:18:54]requested_data is exist [12:18:54]produce_requested_data [12:18:54]requested_item fm.sn is exist - process it [12:18:54]wFMCommunicate request_size=4 [12:18:54]MH_SAM_APDU [12:18:54]CAPDU: 80 11 00 00 [12:18:54]Write to MH i2c: E2 08 00 51 E6 80 11 00 00 00 00 00 00 B1 [12:18:54]Write i2c OK [12:18:54]MH_I2C_Read... [12:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:54]Read from MH i2c: E2 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: E2 17 00 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: E2 17 00 51 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 09 [12:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:18:54]wFMCommunicate OK [12:18:54]requested_item fd.num is exist - process it [12:18:54]SAM_PROTO_GetFieldsCounters [12:18:54]wFMCommunicate request_size=4 [12:18:54]MH_SAM_APDU [12:18:54]CAPDU: 80 13 00 00 [12:18:54]Write to MH i2c: E2 08 00 52 E6 80 13 00 00 00 00 00 00 B4 [12:18:54]Write i2c OK [12:18:54]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 62 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 62 00 52 E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [12:18:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:55]wFMCommunicate OK [12:18:55]SAM_PROTO_GetFieldsCounters done [12:18:55]requested_item shift.num is exist - process it [12:18:55]requested_item shift.opened is exist - process it [12:18:55]req_shift_opened [12:18:55]FM_GetShiftState [12:18:55]SAM_PROTO_GetShiftState [12:18:55]wFMCommunicate request_size=4 [12:18:55]MH_SAM_APDU [12:18:55]CAPDU: 80 13 01 00 [12:18:55]Write to MH i2c: E2 08 00 53 E6 80 13 01 00 00 00 00 00 B6 [12:18:55]Write i2c OK [12:18:55]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 0E 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 0E 00 53 E6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FE [12:18:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:18:55]wFMCommunicate OK [12:18:55]SAM_PROTO_GetShiftState done [12:18:55]FM_GetShiftState done [12:18:55]req_shift_opened done [12:18:55]requested_item shift.open_date is exist - process it [12:18:55]req_shift_open_date [12:18:55]req_shift_open_date done [12:18:55]produce_requested_data done [12:18:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165663,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:18:55]process_action_free close_receipt [12:18:55]json_value_free [12:18:55]json_value_free done [12:18:55]process_json_proto returns [12:18:55]Send response to host [12:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165663,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:18:55]free response buf [12:18:55]execute_script done [12:18:55]execute_script returns [12:18:55]free content buf [12:18:55]Sock 9.Close socket [12:18:55]Sock 9.Thread stoped [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:39]accept exits with 7 [12:20:39]New connection [12:20:39]New thread 3066776932 created [12:20:39]Thread 3066920292 joined [12:20:39]Waiting for new connection... [12:20:39] Sock 7.Parse request [12:20:39]Sock 7.Check first char [12:20:39]Sock 7.First char is OK [12:20:39]request: POST /json_proto HTTP/1.0 [12:20:39]Method: POST [12:20:39]URL: /json_proto [12:20:39]Method is POST - this is cgi request [12:20:39]url: /json_proto [12:20:39]query_string will be loaded in cgi processing [12:20:39]execute_cgi json_proto POST (null) [12:20:39]execute_cgi path=json_proto method=POST [12:20:39]POST find Content-Length [12:20:39]Host: 172.17.53.195:8080 [12:20:39]Content-Length: 674 [12:20:39]Content-Type: application/json [12:20:39] [12:20:39]POST finish read [12:20:39]Found Content-Length = 674 [12:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:39]execute_script... [12:20:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:39]POST & json_proto [12:20:39]process_json_proto [12:20:39]json parsed OK: [12:20:39]protocol is kg_v1.0 [12:20:39]action value=close_receipt [12:20:39]process_action close_receipt [12:20:39]cmd_close_receipt [12:20:39]MH_GetDate [12:20:39]Write to MH i2c: F0 00 00 54 E6 29 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 09 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 09 00 54 E6 00 A3 F5 14 67 21 48 4A 65 5D [12:20:39]GetLastDocTimeStamp 1729426743 [12:20:39]current date 1729426851 [12:20:39]FM_GetShiftState [12:20:39]SAM_PROTO_GetShiftState [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 13 01 00 [12:20:39]Write to MH i2c: E2 08 00 55 E6 80 13 01 00 00 00 00 00 B8 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 55 E6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 00 [12:20:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:20:39]wFMCommunicate OK [12:20:39]SAM_PROTO_GetShiftState done [12:20:39]FM_GetShiftState done [12:20:39]opened in 1729384561 [12:20:39]opened+sec_in_day 1729470961 [12:20:39]quantity*price = 49987 [12:20:39]sum+1 = 49988 [12:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 146 20.10.2024 12:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165664 ФПД: 116002685313296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122051&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165664&fm=116002685313296&tin=02508201610067®Number=0000000000091764&sum=49900 [12:20:40]StoreToDocumentArchive [12:20:40]shift 534 fd 165664 [12:20:40]save to /storage/0534/doc_00165664 [12:20:40]save last doc name /storage/0534/doc_00165664 to /storage/kkm_last_doc_name [12:20:40]save OK [12:20:40]Clear old archive folders... [12:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:40]tlvbuf is 016C7900 [12:20:40]SAM_PROTO_ClearQueue [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 09 00 00 [12:20:40]Write to MH i2c: E2 08 00 62 E6 80 09 00 00 00 00 00 00 BA [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 62 E6 00 90 00 BC [12:20:40]RAPDU: 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_ClearQueue done [12:20:40]KKMCreateOFDPacket [12:20:40]OFDProtocolAddRootSTLVToBuf [12:20:40]FM_MakeSignedData [12:20:40]FM_MakeSignedData [12:20:40]SAM_PROTO_SignData [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 0D 01 02 [12:20:40]Write to MH i2c: E2 08 00 63 E6 80 0D 01 02 00 00 00 00 C2 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 63 E6 00 90 00 BD [12:20:40]RAPDU: 90 00 [12:20:40]wFMCommunicate OK [12:20:40]wFMCommunicate request_size=255 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 A3 F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 87 02 00 35 04 06 00 69 80 FA D9 [12:20:40]Write to MH i2c: E2 02 01 64 E6 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 A3 F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 87 02 00 35 04 06 00 69 80 FA D9 00 00 CF [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 64 E6 00 90 00 BE [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=7 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 02 02 02 E1 10 [12:20:41]Write to MH i2c: E2 0A 00 65 E6 80 0D 02 02 02 00 E1 10 00 00 BA [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 65 E6 00 90 00 BF [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 03 02 [12:20:41]Write to MH i2c: E2 08 00 66 E6 80 0D 03 02 00 00 00 00 C7 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0B 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0B 00 66 E6 00 CD 8C D6 F1 BC E7 BE 69 90 00 B2 [12:20:41]RAPDU: CD 8C D6 F1 BC E7 BE 69 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_SignData done [12:20:41]FM_MakeSignedData done [12:20:41]CreateOFDProtocolMessage [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 11 00 00 [12:20:41]Write to MH i2c: E2 08 00 67 E6 80 11 00 00 00 00 00 00 C7 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 67 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [12:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:20:41]wFMCommunicate OK [12:20:41]CreateOFDProtocolMessage done [12:20:41]OFDSenderStorePacket 165664 [12:20:41]StoreOFDPacket docnum=165664 [12:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 2B 04 01 98 EE 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 A3 F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 87 02 00 35 04 06 00 69 80 FA D9 E1 10 CD 8C D6 F1 BC E7 BE 69 [12:20:41]CheckFolder [12:20:41]dirname=/storage/ofd_packets [12:20:41]CheckFolder done [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00165664 [12:20:41]NVStorageSaveData ofd_packets/00165664 [12:20:41]File name is /storage/ofd_packets/00165664 [12:20:41]Write 298 bytes [12:20:41]NVStorageSaveData done [12:20:41]OFDSenderStorePacket done [12:20:41]KKMCreateOFDPacket done [12:20:41]NVStorageSaveData kkm_last_timestamp [12:20:41]File name is /storage/kkm_last_timestamp [12:20:41]Write 4 bytes [12:20:41]NVStorageSaveData done [12:20:41]ExternCall_PrintAddStr [12:20:41]wPrintStart [12:20:41]Write to MH i2c: 01 00 00 68 E6 4E [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 68 E6 00 00 00 00 00 FF 0F 63 [12:20:41]RasterBufferAndPrint [12:20:41]line Счет N : (1)220227 [12:20:41]line ИНН: 02508201610067 [12:20:41]line Контрольно-Кассовый Чек [12:20:41]line ПРОДАЖА [12:20:41]line ТРК (МРК, ГНК) : 41 [12:20:41]line Товар: 2710194210 [12:20:41]line ДТ-К-5 [12:20:41]line 6.560 * 76.20 [12:20:41]line = 499.87 [12:20:41]line НДС 12% НСП 1% [12:20:41]line > о реализуемом товаре [12:20:41]line ОКРУГЛЕНИЕ: -0.87 [12:20:41]line ИТОГО: 499.00 [12:20:41]line Внесено: 500.00 [12:20:41]line СДАЧА: 1.00 [12:20:41]line НСП 1% : 4.42 [12:20:41]line НДС 12% : 53.08 [12:20:41]line Наличными: 499.00 [12:20:41]line Безнал.: 0.00 [12:20:41]line Место: АЗС № 161 "Партнер Нефть" [12:20:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:20:41]line СНО: Общий режим [12:20:41]line Чек 146 20.10.2024 12:20 [12:20:41]line Смена: 534 ФФД: 1.0 [12:20:41]line ЗНМ: 0300000104 [12:20:41]line РНМ: 0000000000091764 [12:20:41]line Версия ККМ: 001 [12:20:41]line ФМ: 0000000000871759 [12:20:41]line ФД: 165664 [12:20:41]line ФПД: 116002685313296 [12:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122051&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165664&fm=116002685313296&tin=02508201610067®Number=0000000000091764&sum=49900 [12:20:41]OFD Sender: Processing packet 165664 [packets to send 48, broken 47] [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00165664 [12:20:41]OFD Sender: To server: pG, [12:20:41]CommunicateWithHost lk.salyk.kg:30040 [12:20:41]ConnectInit lk.salyk.kg [12:20:41]written 0, free lines is 4095 [12:20:41]Connected sock=10 [12:20:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 2B 04 01 98 EE 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 A3 F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 87 02 00 35 04 06 00 69 80 FA D9 E1 10 CD 8C D6 F1 BC E7 BE 69 [12:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 50 93 47 00 21 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 31 37 35 39 10 04 04 00 20 87 02 00 F4 03 04 00 15 9C 14 67 B6 04 01 00 00 69 7D F3 4A 1A 18 4C 84 [12:20:41]CommunicateWithHost err = 0 [12:20:41]CheckOFDResponse [12:20:41]1017 (14) - 77093643461234 [12:20:41]1041 (16) - 0000000000871759 [12:20:41]1040 (4) - 165664 [12:20:41]1012 (4) - 20.10.2024 05:58 [12:20:41]1206 (1) - 0 [12:20:41]OFD Sender: Remove packet 165664 [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00165664 [12:20:41]NVStorageDeleteData [12:20:42]Write to MH i2c: 01 00 00 93 E6 79 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 07 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 07 00 93 E6 00 00 00 00 00 D6 0C 62 [12:20:42]RasterBufferAndPrint [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]written 0, free lines is 3293 [12:20:42]MH_Cut [12:20:42]Write to MH i2c: D1 01 00 9A E6 01 52 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 01 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 01 00 9A E6 00 51 [12:20:42]Write to MH i2c: 01 00 00 9B E6 81 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]OFD Sender: No OFD packet to send [12:20:42]*** Cut start [12:20:42]*** Partial cut [12:20:42]*** CUTSNS_PIN = 1 [12:20:42]*** CUTSNS_PIN = 0 [12:20:43]*** Brake cut motor [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]*** Stop cut motor [12:20:43]*** Cut end [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 9B E6 00 00 00 00 00 FF 0F 96 [12:20:43]process_action close_receipt done [12:20:43]requested_data is exist [12:20:43]produce_requested_data [12:20:43]requested_item fm.sn is exist - process it [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 9C E6 80 11 00 00 00 00 00 00 FC [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 9C E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:20:43]wFMCommunicate OK [12:20:43]requested_item fd.num is exist - process it [12:20:43]SAM_PROTO_GetFieldsCounters [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 00 00 [12:20:43]Write to MH i2c: E2 08 00 9D E6 80 13 00 00 00 00 00 00 FF [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 9D E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [12:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetFieldsCounters done [12:20:43]requested_item shift.num is exist - process it [12:20:43]requested_item shift.opened is exist - process it [12:20:43]req_shift_opened [12:20:43]FM_GetShiftState [12:20:43]SAM_PROTO_GetShiftState [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 01 00 [12:20:43]Write to MH i2c: E2 08 00 9E E6 80 13 01 00 00 00 00 00 01 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 9E E6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 49 [12:20:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetShiftState done [12:20:43]FM_GetShiftState done [12:20:43]req_shift_opened done [12:20:43]requested_item shift.open_date is exist - process it [12:20:43]req_shift_open_date [12:20:43]req_shift_open_date done [12:20:43]produce_requested_data done [12:20:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165664,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:20:43]process_action_free close_receipt [12:20:43]json_value_free [12:20:43]json_value_free done [12:20:43]process_json_proto returns [12:20:43]Send response to host [12:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165664,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:20:43]free response buf [12:20:43]execute_script done [12:20:43]execute_script returns [12:20:43]free content buf [12:20:43]Sock 7.Close socket [12:20:43]Sock 7.Thread stoped [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:11]accept exits with 9 [12:22:11]New connection [12:22:11]New thread 3066920292 created [12:22:11]Thread 3066776932 joined [12:22:11]Waiting for new connection... [12:22:11] Sock 9.Parse request [12:22:11]Sock 9.Check first char [12:22:11]Sock 9.First char is OK [12:22:11]request: POST /json_proto HTTP/1.0 [12:22:11]Method: POST [12:22:11]URL: /json_proto [12:22:11]Method is POST - this is cgi request [12:22:11]url: /json_proto [12:22:11]query_string will be loaded in cgi processing [12:22:11]execute_cgi json_proto POST (null) [12:22:11]execute_cgi path=json_proto method=POST [12:22:11]POST find Content-Length [12:22:11]Host: 172.17.53.195:8080 [12:22:11]Content-Length: 682 [12:22:11]Content-Type: application/json [12:22:11] [12:22:11]POST finish read [12:22:11]Found Content-Length = 682 [12:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:11]execute_script... [12:22: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)220228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:11]POST & json_proto [12:22:11]process_json_proto [12:22:11]json parsed OK: [12:22:11]protocol is kg_v1.0 [12:22:11]action value=close_receipt [12:22:11]process_action close_receipt [12:22:11]cmd_close_receipt [12:22:11]MH_GetDate [12:22:11]Write to MH i2c: F0 00 00 9F E6 74 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: F0 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: F0 09 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: F0 09 00 9F E6 00 FF F5 14 67 21 48 4A 65 04 [12:22:11]GetLastDocTimeStamp 1729426851 [12:22:11]current date 1729426943 [12:22:11]FM_GetShiftState [12:22:11]SAM_PROTO_GetShiftState [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 13 01 00 [12:22:11]Write to MH i2c: E2 08 00 A0 E6 80 13 01 00 00 00 00 00 03 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 0E 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 0E 00 A0 E6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4B [12:22:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:22:11]wFMCommunicate OK [12:22:11]SAM_PROTO_GetShiftState done [12:22:11]FM_GetShiftState done [12:22:11]opened in 1729384561 [12:22:11]opened+sec_in_day 1729470961 [12:22:11]quantity*price = 100015 [12:22:11]sum+1 = 100017 [12:22:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 147 20.10.2024 12:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165665 ФПД: 83195248607057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122223&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165665&fm=83195248607057&tin=02508201610067®Number=0000000000091764&sum=100000 [12:22:12]StoreToDocumentArchive [12:22:12]shift 534 fd 165665 [12:22:12]save to /storage/0534/doc_00165665 [12:22:12]save last doc name /storage/0534/doc_00165665 to /storage/kkm_last_doc_name [12:22:12]save OK [12:22:12]Clear old archive folders... [12:22:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:12]tlvbuf is 01456BC0 [12:22:12]SAM_PROTO_ClearQueue [12:22:12]wFMCommunicate request_size=4 [12:22:12]MH_SAM_APDU [12:22:12]CAPDU: 80 09 00 00 [12:22:12]Write to MH i2c: E2 08 00 AD E6 80 09 00 00 00 00 00 00 05 [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:12]Read from MH i2c: E2 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 03 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 03 00 AD E6 00 90 00 07 [12:22:12]RAPDU: 90 00 [12:22:12]wFMCommunicate OK [12:22:12]SAM_PROTO_ClearQueue done [12:22:12]KKMCreateOFDPacket [12:22:12]OFDProtocolAddRootSTLVToBuf [12:22:12]FM_MakeSignedData [12:22:12]FM_MakeSignedData [12:22:12]SAM_PROTO_SignData [12:22:12]wFMCommunicate request_size=4 [12:22:12]MH_SAM_APDU [12:22:12]CAPDU: 80 0D 01 02 [12:22:12]Write to MH i2c: E2 08 00 AE E6 80 0D 01 02 00 00 00 00 0D [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:12]Read from MH i2c: E2 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 03 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 03 00 AE E6 00 90 00 08 [12:22:12]RAPDU: 90 00 [12:22:12]wFMCommunicate OK [12:22:12]wFMCommunicate request_size=255 [12:22:12]MH_SAM_APDU [12:22: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 FF F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 87 02 00 35 04 06 00 4B [12:22:12]Write to MH i2c: E2 02 01 AF E6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 FF F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 87 02 00 35 04 06 00 4B 00 00 AC [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:13]Read from MH i2c: E2 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 03 00 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 03 00 AF E6 00 90 00 09 [12:22:13]RAPDU: 90 00 [12:22:13]wFMCommunicate OK [12:22:13]wFMCommunicate request_size=10 [12:22:13]MH_SAM_APDU [12:22:13]CAPDU: 80 0D 02 02 05 AA 67 3D 7F 51 [12:22:13]Write to MH i2c: E2 0D 00 B0 E6 80 0D 02 02 05 00 AA 67 3D 7F 51 00 00 38 [12:22:13]Write i2c OK [12:22:13]MH_I2C_Read... [12:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:13]Read from MH i2c: E2 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 03 00 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 03 00 B0 E6 00 90 00 0A [12:22:13]RAPDU: 90 00 [12:22:13]wFMCommunicate OK [12:22:13]wFMCommunicate request_size=4 [12:22:13]MH_SAM_APDU [12:22:13]CAPDU: 80 0D 03 02 [12:22:13]Write to MH i2c: E2 08 00 B1 E6 80 0D 03 02 00 00 00 00 12 [12:22:13]Write i2c OK [12:22:13]MH_I2C_Read... [12:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:13]Read from MH i2c: E2 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 0B 00 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 0B 00 B1 E6 00 71 28 71 DE CA 99 33 42 90 00 D3 [12:22:13]RAPDU: 71 28 71 DE CA 99 33 42 90 00 [12:22:13]wFMCommunicate OK [12:22:13]SAM_PROTO_SignData done [12:22:13]FM_MakeSignedData done [12:22:13]CreateOFDProtocolMessage [12:22:13]wFMCommunicate request_size=4 [12:22:13]MH_SAM_APDU [12:22:13]CAPDU: 80 11 00 00 [12:22:13]Write to MH i2c: E2 08 00 B2 E6 80 11 00 00 00 00 00 00 12 [12:22:13]Write i2c OK [12:22:13]MH_I2C_Read... [12:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:13]Read from MH i2c: E2 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 17 00 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 17 00 B2 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [12:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:22:13]wFMCommunicate OK [12:22:13]CreateOFDProtocolMessage done [12:22:13]OFDSenderStorePacket 165665 [12:22:13]StoreOFDPacket docnum=165665 [12:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 29 B0 07 01 B5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 FF F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 87 02 00 35 04 06 00 4B AA 67 3D 7F 51 71 28 71 DE CA 99 33 42 [12:22:13]CheckFolder [12:22:13]dirname=/storage/ofd_packets [12:22:13]CheckFolder done [12:22:13]ProducePacketName [12:22:13]name=ofd_packets/00165665 [12:22:13]NVStorageSaveData ofd_packets/00165665 [12:22:13]File name is /storage/ofd_packets/00165665 [12:22:13]Write 301 bytes [12:22:13]NVStorageSaveData done [12:22:13]OFDSenderStorePacket done [12:22:13]KKMCreateOFDPacket done [12:22:13]NVStorageSaveData kkm_last_timestamp [12:22:13]File name is /storage/kkm_last_timestamp [12:22:13]Write 4 bytes [12:22:13]NVStorageSaveData done [12:22:13]ExternCall_PrintAddStr [12:22:13]wPrintStart [12:22:13]Write to MH i2c: 01 00 00 B3 E6 99 [12:22:13]Write i2c OK [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: 01 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: 01 07 00 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: 01 07 00 B3 E6 00 00 00 00 00 FF 0F AE [12:22:13]RasterBufferAndPrint [12:22:13]line Счет N : (1)220228 [12:22:13]line ИНН: 02508201610067 [12:22:13]line Контрольно-Кассовый Чек [12:22:13]line ПРОДАЖА [12:22:13]line ТРК (МРК, ГНК) : 23 [12:22:13]line Товар: 2710124130 [12:22:13]line Аи-92-К-5 [12:22:13]line 14.950 * 66.90 [12:22:13]line = 1000.16 [12:22:13]line НДС 12% НСП 1% [12:22:13]line > о реализуемом товаре [12:22:13]line ОКРУГЛЕНИЕ: -0.16 [12:22:13]line ИТОГО: 1000.00 [12:22:13]line Внесено: 1000.00 [12:22:13]line СДАЧА: 0.00 [12:22:13]line НСП 1% : 8.85 [12:22:13]line НДС 12% : 106.21 [12:22:13]line Наличными: 1000.00 [12:22:13]line Безнал.: 0.00 [12:22:13]line Место: АЗС № 161 "Партнер Нефть" [12:22:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:22:13]line СНО: Общий режим [12:22:13]line Чек 147 20.10.2024 12:22 [12:22:13]line Смена: 534 ФФД: 1.0 [12:22:13]line ЗНМ: 0300000104 [12:22:13]line РНМ: 0000000000091764 [12:22:13]line Версия ККМ: 001 [12:22:13]line ФМ: 0000000000871759 [12:22:13]line ФД: 165665 [12:22:13]line ФПД: 83195248607057 [12:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122223&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165665&fm=83195248607057&tin=02508201610067®Number=0000000000091764&sum=100000 [12:22:13]OFD Sender: Processing packet 165665 [packets to send 48, broken 47] [12:22:13]ProducePacketName [12:22:13]name=ofd_packets/00165665 [12:22:13]OFD Sender: To server: pG, [12:22:13]CommunicateWithHost lk.salyk.kg:30040 [12:22:13]ConnectInit lk.salyk.kg [12:22:13]written 0, free lines is 4095 [12:22:13]Connected sock=10 [12:22:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 29 B0 07 01 B5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 FF F5 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 87 02 00 35 04 06 00 4B AA 67 3D 7F 51 71 28 71 DE CA 99 33 42 [12:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2E 55 47 00 23 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 87 02 00 F4 03 04 00 71 9C 14 67 B6 04 01 00 00 33 33 E2 51 81 32 4B F6 [12:22:13]CommunicateWithHost err = 0 [12:22:13]CheckOFDResponse [12:22:13]1017 (14) - 77093643461234 [12:22:13]1041 (16) - 0000000000871759 [12:22:13]1040 (4) - 165665 [12:22:13]1012 (4) - 20.10.2024 06:00 [12:22:13]1206 (1) - 0 [12:22:13]OFD Sender: Remove packet 165665 [12:22:13]ProducePacketName [12:22:13]name=ofd_packets/00165665 [12:22:13]NVStorageDeleteData [12:22:14]Write to MH i2c: 01 00 00 DE E6 C4 [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: 01 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: 01 07 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: 01 07 00 DE E6 00 00 00 00 00 C5 0C 9C [12:22:14]RasterBufferAndPrint [12:22:14]line [12:22:14]line [12:22:14]line [12:22:14]line [12:22:14]line [12:22:14]written 0, free lines is 3275 [12:22:14]MH_Cut [12:22:14]Write to MH i2c: D1 01 00 E5 E6 01 9D [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: D1 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: D1 01 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: D1 01 00 E5 E6 00 9C [12:22:14]Write to MH i2c: 01 00 00 E6 E6 CC [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]OFD Sender: No OFD packet to send [12:22:14]*** Cut start [12:22:14]*** Partial cut [12:22:14]*** CUTSNS_PIN = 1 [12:22:14]*** CUTSNS_PIN = 0 [12:22:15]*** Brake cut motor [12:22:15]Read from MH i2c: 01 [12:22:15]MH_I2C_Read... [12:22:15]*** Stop cut motor [12:22:15]*** Cut end [12:22:15]Read from MH i2c: 01 07 00 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: 01 07 00 E6 E6 00 00 00 00 00 FF 0F E1 [12:22:15]process_action close_receipt done [12:22:15]requested_data is exist [12:22:15]produce_requested_data [12:22:15]requested_item fm.sn is exist - process it [12:22:15]wFMCommunicate request_size=4 [12:22:15]MH_SAM_APDU [12:22:15]CAPDU: 80 11 00 00 [12:22:15]Write to MH i2c: E2 08 00 E7 E6 80 11 00 00 00 00 00 00 47 [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:15]Read from MH i2c: E2 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 17 00 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 17 00 E7 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [12:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:22:15]wFMCommunicate OK [12:22:15]requested_item fd.num is exist - process it [12:22:15]SAM_PROTO_GetFieldsCounters [12:22:15]wFMCommunicate request_size=4 [12:22:15]MH_SAM_APDU [12:22:15]CAPDU: 80 13 00 00 [12:22:15]Write to MH i2c: E2 08 00 E8 E6 80 13 00 00 00 00 00 00 4A [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:15]Read from MH i2c: E2 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 62 00 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 62 00 E8 E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [12:22:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:15]wFMCommunicate OK [12:22:15]SAM_PROTO_GetFieldsCounters done [12:22:15]requested_item shift.num is exist - process it [12:22:15]requested_item shift.opened is exist - process it [12:22:15]req_shift_opened [12:22:15]FM_GetShiftState [12:22:15]SAM_PROTO_GetShiftState [12:22:15]wFMCommunicate request_size=4 [12:22:15]MH_SAM_APDU [12:22:15]CAPDU: 80 13 01 00 [12:22:15]Write to MH i2c: E2 08 00 E9 E6 80 13 01 00 00 00 00 00 4C [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:15]Read from MH i2c: E2 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 0E 00 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: E2 0E 00 E9 E6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 94 [12:22:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:22:15]wFMCommunicate OK [12:22:15]SAM_PROTO_GetShiftState done [12:22:15]FM_GetShiftState done [12:22:15]req_shift_opened done [12:22:15]requested_item shift.open_date is exist - process it [12:22:15]req_shift_open_date [12:22:15]req_shift_open_date done [12:22:15]produce_requested_data done [12:22:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165665,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:22:15]process_action_free close_receipt [12:22:15]json_value_free [12:22:15]json_value_free done [12:22:15]process_json_proto returns [12:22:15]Send response to host [12:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165665,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:22:15]free response buf [12:22:15]execute_script done [12:22:15]execute_script returns [12:22:15]free content buf [12:22:15]Sock 9.Close socket [12:22:15]Sock 9.Thread stoped [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:00]accept exits with 7 [12:23:00]New connection [12:23:00]New thread 3066776932 created [12:23:00]Thread 3066920292 joined [12:23:00]Waiting for new connection... [12:23:00] Sock 7.Parse request [12:23:00]Sock 7.Check first char [12:23:00]Sock 7.First char is OK [12:23:00]request: POST /json_proto HTTP/1.0 [12:23:00]Method: POST [12:23:00]URL: /json_proto [12:23:00]Method is POST - this is cgi request [12:23:00]url: /json_proto [12:23:00]query_string will be loaded in cgi processing [12:23:00]execute_cgi json_proto POST (null) [12:23:00]execute_cgi path=json_proto method=POST [12:23:00]POST find Content-Length [12:23:00]Host: 172.17.53.195:8080 [12:23:00]Content-Length: 674 [12:23:00]Content-Type: application/json [12:23:00] [12:23:00]POST finish read [12:23:00]Found Content-Length = 674 [12:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220229", "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" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:23:00]execute_script... [12:23: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)220229", "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" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:23:00]POST & json_proto [12:23:00]process_json_proto [12:23:00]json parsed OK: [12:23:00]protocol is kg_v1.0 [12:23:00]action value=close_receipt [12:23:00]process_action close_receipt [12:23:00]cmd_close_receipt [12:23:00]MH_GetDate [12:23:00]Write to MH i2c: F0 00 00 EA E6 BF [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: F0 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: F0 09 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: F0 09 00 EA E6 00 31 F6 14 67 21 48 4A 65 82 [12:23:00]GetLastDocTimeStamp 1729426943 [12:23:00]current date 1729426993 [12:23:00]FM_GetShiftState [12:23:00]SAM_PROTO_GetShiftState [12:23:00]wFMCommunicate request_size=4 [12:23:00]MH_SAM_APDU [12:23:00]CAPDU: 80 13 01 00 [12:23:00]Write to MH i2c: E2 08 00 EB E6 80 13 01 00 00 00 00 00 4E [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:00]Read from MH i2c: E2 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 0E 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 0E 00 EB E6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 96 [12:23:00]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:23:00]wFMCommunicate OK [12:23:00]SAM_PROTO_GetShiftState done [12:23:00]FM_GetShiftState done [12:23:00]opened in 1729384561 [12:23:00]opened+sec_in_day 1729470961 [12:23:00]quantity*price = 70027 [12:23:00]sum+1 = 70029 [12:23:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 148 20.10.2024 12:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165666 ФПД: 255133470719940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122313&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165666&fm=255133470719940&tin=02508201610067®Number=0000000000091764&sum=70000 [12:23:02]StoreToDocumentArchive [12:23:02]shift 534 fd 165666 [12:23:02]save to /storage/0534/doc_00165666 [12:23:02]save last doc name /storage/0534/doc_00165666 to /storage/kkm_last_doc_name [12:23:02]save OK [12:23:02]Clear old archive folders... [12:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:23:02]tlvbuf is 01839BF0 [12:23:02]SAM_PROTO_ClearQueue [12:23:02]wFMCommunicate request_size=4 [12:23:02]MH_SAM_APDU [12:23:02]CAPDU: 80 09 00 00 [12:23:02]Write to MH i2c: E2 08 00 F8 E6 80 09 00 00 00 00 00 00 50 [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:02]Read from MH i2c: E2 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 03 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 03 00 F8 E6 00 90 00 52 [12:23:02]RAPDU: 90 00 [12:23:02]wFMCommunicate OK [12:23:02]SAM_PROTO_ClearQueue done [12:23:02]KKMCreateOFDPacket [12:23:02]OFDProtocolAddRootSTLVToBuf [12:23:02]FM_MakeSignedData [12:23:02]FM_MakeSignedData [12:23:02]SAM_PROTO_SignData [12:23:02]wFMCommunicate request_size=4 [12:23:02]MH_SAM_APDU [12:23:02]CAPDU: 80 0D 01 02 [12:23:02]Write to MH i2c: E2 08 00 F9 E6 80 0D 01 02 00 00 00 00 58 [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:02]Read from MH i2c: E2 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 03 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 03 00 F9 E6 00 90 00 53 [12:23:02]RAPDU: 90 00 [12:23:02]wFMCommunicate OK [12:23:02]wFMCommunicate request_size=255 [12:23:02]MH_SAM_APDU [12:23: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 94 00 00 00 F4 03 04 00 31 F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 87 02 00 35 04 06 00 E8 0A E3 E4 [12:23:02]Write to MH i2c: E2 02 01 FA E6 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 94 00 00 00 F4 03 04 00 31 F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 87 02 00 35 04 06 00 E8 0A E3 E4 00 00 92 [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:02]Read from MH i2c: E2 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 03 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 03 00 FA E6 00 90 00 54 [12:23:02]RAPDU: 90 00 [12:23:02]wFMCommunicate OK [12:23:02]wFMCommunicate request_size=7 [12:23:02]MH_SAM_APDU [12:23:02]CAPDU: 80 0D 02 02 02 7F C4 [12:23:02]Write to MH i2c: E2 0A 00 FB E6 80 0D 02 02 02 00 7F C4 00 00 A2 [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:02]Read from MH i2c: E2 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 03 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 03 00 FB E6 00 90 00 55 [12:23:02]RAPDU: 90 00 [12:23:02]wFMCommunicate OK [12:23:02]wFMCommunicate request_size=4 [12:23:02]MH_SAM_APDU [12:23:02]CAPDU: 80 0D 03 02 [12:23:02]Write to MH i2c: E2 08 00 FC E6 80 0D 03 02 00 00 00 00 5D [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:02]Read from MH i2c: E2 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 0B 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 0B 00 FC E6 00 92 D3 D9 29 7E 85 3B 3E 90 00 41 [12:23:02]RAPDU: 92 D3 D9 29 7E 85 3B 3E 90 00 [12:23:02]wFMCommunicate OK [12:23:02]SAM_PROTO_SignData done [12:23:02]FM_MakeSignedData done [12:23:02]CreateOFDProtocolMessage [12:23:02]wFMCommunicate request_size=4 [12:23:02]MH_SAM_APDU [12:23:02]CAPDU: 80 11 00 00 [12:23:02]Write to MH i2c: E2 08 00 FD E6 80 11 00 00 00 00 00 00 5D [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:02]Read from MH i2c: E2 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 17 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: E2 17 00 FD E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [12:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:23:02]wFMCommunicate OK [12:23:02]CreateOFDProtocolMessage done [12:23:02]OFDSenderStorePacket 165666 [12:23:02]StoreOFDPacket docnum=165666 [12:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 28 4D 04 01 D9 F4 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 94 00 00 00 F4 03 04 00 31 F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 87 02 00 35 04 06 00 E8 0A E3 E4 7F C4 92 D3 D9 29 7E 85 3B 3E [12:23:02]CheckFolder [12:23:02]dirname=/storage/ofd_packets [12:23:02]CheckFolder done [12:23:02]ProducePacketName [12:23:02]name=ofd_packets/00165666 [12:23:02]NVStorageSaveData ofd_packets/00165666 [12:23:02]File name is /storage/ofd_packets/00165666 [12:23:02]Write 298 bytes [12:23:02]NVStorageSaveData done [12:23:02]OFDSenderStorePacket done [12:23:02]KKMCreateOFDPacket done [12:23:02]NVStorageSaveData kkm_last_timestamp [12:23:02]File name is /storage/kkm_last_timestamp [12:23:02]Write 4 bytes [12:23:02]NVStorageSaveData done [12:23:02]ExternCall_PrintAddStr [12:23:02]wPrintStart [12:23:02]Write to MH i2c: 01 00 00 FE E6 E4 [12:23:02]Write i2c OK [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: 01 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: 01 07 00 [12:23:02]MH_I2C_Read... [12:23:02]Read from MH i2c: 01 07 00 FE E6 00 00 00 00 00 FF 0F F9 [12:23:02]RasterBufferAndPrint [12:23:02]line Счет N : (1)220229 [12:23:02]line ИНН: 02508201610067 [12:23:02]line Контрольно-Кассовый Чек [12:23:02]line ПРОДАЖА [12:23:02]line ТРК (МРК, ГНК) : 11 [12:23:02]line Товар: 2710194210 [12:23:02]line ДТ-К-5 [12:23:02]line 9.190 * 76.20 [12:23:02]line = 700.28 [12:23:02]line НДС 12% НСП 1% [12:23:02]line > о реализуемом товаре [12:23:02]line ОКРУГЛЕНИЕ: -0.28 [12:23:02]line ИТОГО: 700.00 [12:23:02]line Внесено: 700.00 [12:23:02]line СДАЧА: 0.00 [12:23:02]line НСП 1% : 6.20 [12:23:02]line НДС 12% : 74.37 [12:23:02]line Наличными: 700.00 [12:23:02]line Безнал.: 0.00 [12:23:02]line Место: АЗС № 161 "Партнер Нефть" [12:23:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:23:02]line СНО: Общий режим [12:23:02]line Чек 148 20.10.2024 12:23 [12:23:02]line Смена: 534 ФФД: 1.0 [12:23:02]line ЗНМ: 0300000104 [12:23:02]line РНМ: 0000000000091764 [12:23:02]line Версия ККМ: 001 [12:23:02]line ФМ: 0000000000871759 [12:23:02]line ФД: 165666 [12:23:02]line ФПД: 255133470719940 [12:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122313&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165666&fm=255133470719940&tin=02508201610067®Number=0000000000091764&sum=70000 [12:23:02]OFD Sender: Processing packet 165666 [packets to send 48, broken 47] [12:23:02]ProducePacketName [12:23:02]name=ofd_packets/00165666 [12:23:02]OFD Sender: To server: pG, [12:23:02]CommunicateWithHost lk.salyk.kg:30040 [12:23:02]ConnectInit lk.salyk.kg [12:23:02]written 0, free lines is 4095 [12:23:03]Connected sock=10 [12: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 31 37 35 39 0C 01 00 00 28 4D 04 01 D9 F4 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 94 00 00 00 F4 03 04 00 31 F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 87 02 00 35 04 06 00 E8 0A E3 E4 7F C4 92 D3 D9 29 7E 85 3B 3E [12:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3F 05 47 00 66 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 31 37 35 39 10 04 04 00 22 87 02 00 F4 03 04 00 A3 9C 14 67 B6 04 01 00 00 80 9F ED A9 F8 92 58 65 [12:23:03]CommunicateWithHost err = 0 [12:23:03]CheckOFDResponse [12:23:03]1017 (14) - 77093643461234 [12:23:03]1041 (16) - 0000000000871759 [12:23:03]1040 (4) - 165666 [12:23:03]1012 (4) - 20.10.2024 06:01 [12:23:03]1206 (1) - 0 [12:23:03]OFD Sender: Remove packet 165666 [12:23:03]ProducePacketName [12:23:03]name=ofd_packets/00165666 [12:23:03]NVStorageDeleteData [12:23:03]Write to MH i2c: 01 00 00 29 E7 10 [12:23:03]Write i2c OK [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: 01 [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: 01 07 00 [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: 01 07 00 29 E7 00 00 00 00 00 C8 0C EB [12:23:03]RasterBufferAndPrint [12:23:03]line [12:23:03]line [12:23:03]line [12:23:03]line [12:23:03]line [12:23:03]written 0, free lines is 3278 [12:23:03]MH_Cut [12:23:03]Write to MH i2c: D1 01 00 30 E7 01 E9 [12:23:03]Write i2c OK [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: D1 [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: D1 01 00 [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: D1 01 00 30 E7 00 E8 [12:23:03]Write to MH i2c: 01 00 00 31 E7 18 [12:23:03]Write i2c OK [12:23:03]MH_I2C_Read... [12:23:03]OFD Sender: No OFD packet to send [12:23:04]*** Cut start [12:23:04]*** Partial cut [12:23:04]*** CUTSNS_PIN = 1 [12:23:04]*** CUTSNS_PIN = 0 [12:23:04]*** Brake cut motor [12:23:04]Read from MH i2c: 01 [12:23:04]MH_I2C_Read... [12:23:04]*** Stop cut motor [12:23:04]*** Cut end [12:23:04]Read from MH i2c: 01 07 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: 01 07 00 31 E7 00 00 00 00 00 FF 0F 2D [12:23:04]process_action close_receipt done [12:23:04]requested_data is exist [12:23:04]produce_requested_data [12:23:04]requested_item fm.sn is exist - process it [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 11 00 00 [12:23:04]Write to MH i2c: E2 08 00 32 E7 80 11 00 00 00 00 00 00 93 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 17 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 17 00 32 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EB [12:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:23:04]wFMCommunicate OK [12:23:04]requested_item fd.num is exist - process it [12:23:04]SAM_PROTO_GetFieldsCounters [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 13 00 00 [12:23:04]Write to MH i2c: E2 08 00 33 E7 80 13 00 00 00 00 00 00 96 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:05]Read from MH i2c: E2 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 62 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 62 00 33 E7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 87 02 00 0E 04 04 00 16 02 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 3D [12: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 87 02 00 0E 04 04 00 16 02 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:23:05]wFMCommunicate OK [12:23:05]SAM_PROTO_GetFieldsCounters done [12:23:05]requested_item shift.num is exist - process it [12:23:05]requested_item shift.opened is exist - process it [12:23:05]req_shift_opened [12:23:05]FM_GetShiftState [12:23:05]SAM_PROTO_GetShiftState [12:23:05]wFMCommunicate request_size=4 [12:23:05]MH_SAM_APDU [12:23:05]CAPDU: 80 13 01 00 [12:23:05]Write to MH i2c: E2 08 00 34 E7 80 13 01 00 00 00 00 00 98 [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:05]Read from MH i2c: E2 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 0E 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 0E 00 34 E7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E0 [12:23:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:23:05]wFMCommunicate OK [12:23:05]SAM_PROTO_GetShiftState done [12:23:05]FM_GetShiftState done [12:23:05]req_shift_opened done [12:23:05]requested_item shift.open_date is exist - process it [12:23:05]req_shift_open_date [12:23:05]req_shift_open_date done [12:23:05]produce_requested_data done [12:23:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165666,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:23:05]process_action_free close_receipt [12:23:05]json_value_free [12:23:05]json_value_free done [12:23:05]process_json_proto returns [12:23:05]Send response to host [12:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165666,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:23:05]free response buf [12:23:05]execute_script done [12:23:05]execute_script returns [12:23:05]free content buf [12:23:05]Sock 7.Close socket [12:23:05]Sock 7.Thread stoped [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:01]accept exits with 9 [12:24:01]New connection [12:24:01]New thread 3066920292 created [12:24:01]Thread 3066776932 joined [12:24:01]Waiting for new connection... [12:24:01] Sock 9.Parse request [12:24:01]Sock 9.Check first char [12:24:01]Sock 9.First char is OK [12:24:01]request: POST /json_proto HTTP/1.0 [12:24:01]Method: POST [12:24:01]URL: /json_proto [12:24:01]Method is POST - this is cgi request [12:24:01]url: /json_proto [12:24:01]query_string will be loaded in cgi processing [12:24:01]execute_cgi json_proto POST (null) [12:24:01]execute_cgi path=json_proto method=POST [12:24:01]POST find Content-Length [12:24:01]Host: 172.17.53.195:8080 [12:24:01]Content-Length: 674 [12:24:01]Content-Type: application/json [12:24:01] [12:24:01]POST finish read [12:24:01]Found Content-Length = 674 [12:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.630, "sum" : 505.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 505.00, "total" : 505.00, "payments": [ { "type": 0, "sum" : 505.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:01]execute_script... [12:24: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)220230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.630, "sum" : 505.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 505.00, "total" : 505.00, "payments": [ { "type": 0, "sum" : 505.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:01]POST & json_proto [12:24:01]process_json_proto [12:24:01]json parsed OK: [12:24:01]protocol is kg_v1.0 [12:24:01]action value=close_receipt [12:24:01]process_action close_receipt [12:24:01]cmd_close_receipt [12:24:01]MH_GetDate [12:24:01]Write to MH i2c: F0 00 00 35 E7 0B [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 09 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 09 00 35 E7 00 6E F6 14 67 21 48 4A 65 0B [12:24:01]GetLastDocTimeStamp 1729426993 [12:24:01]current date 1729427054 [12:24:01]FM_GetShiftState [12:24:01]SAM_PROTO_GetShiftState [12:24:01]wFMCommunicate request_size=4 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 13 01 00 [12:24:01]Write to MH i2c: E2 08 00 36 E7 80 13 01 00 00 00 00 00 9A [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0E 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0E 00 36 E7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E2 [12:24:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_GetShiftState done [12:24:02]FM_GetShiftState done [12:24:02]opened in 1729384561 [12:24:02]opened+sec_in_day 1729470961 [12:24:02]quantity*price = 50520 [12:24:02]sum+1 = 50522 [12:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 505.00 Внесено: 505.00 СДАЧА: 0.00 НСП 1% : 4.47 НДС 12% : 53.65 Наличными: 505.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 149 20.10.2024 12:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165667 ФПД: 268591952978259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165667&fm=268591952978259&tin=02508201610067®Number=0000000000091764&sum=50500 [12:24:03]StoreToDocumentArchive [12:24:03]shift 534 fd 165667 [12:24:03]save to /storage/0534/doc_00165667 [12:24:03]save last doc name /storage/0534/doc_00165667 to /storage/kkm_last_doc_name [12:24:03]save OK [12:24:03]Clear old archive folders... [12:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:03]tlvbuf is 0162F3B0 [12:24:03]SAM_PROTO_ClearQueue [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 09 00 00 [12:24:03]Write to MH i2c: E2 08 00 43 E7 80 09 00 00 00 00 00 00 9C [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 43 E7 00 90 00 9E [12:24:03]RAPDU: 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_ClearQueue done [12:24:03]KKMCreateOFDPacket [12:24:03]OFDProtocolAddRootSTLVToBuf [12:24:03]FM_MakeSignedData [12:24:03]FM_MakeSignedData [12:24:03]SAM_PROTO_SignData [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 0D 01 02 [12:24:03]Write to MH i2c: E2 08 00 44 E7 80 0D 01 02 00 00 00 00 A4 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 44 E7 00 90 00 9F [12:24:03]RAPDU: 90 00 [12:24:03]wFMCommunicate OK [12:24:03]wFMCommunicate request_size=255 [12:24:03]MH_SAM_APDU [12:24: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 E6 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 14 00 00 00 00 07 04 06 00 44 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 6E F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 87 02 00 35 04 06 00 F4 48 6F F2 [12:24:03]Write to MH i2c: E2 02 01 45 E7 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 14 00 00 00 00 07 04 06 00 44 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 6E F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 87 02 00 35 04 06 00 F4 48 6F F2 00 00 B6 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 45 E7 00 90 00 A0 [12:24:03]RAPDU: 90 00 [12:24:03]wFMCommunicate OK [12:24:03]wFMCommunicate request_size=7 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 0D 02 02 02 61 53 [12:24:03]Write to MH i2c: E2 0A 00 46 E7 80 0D 02 02 02 00 61 53 00 00 5F [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 46 E7 00 90 00 A1 [12:24:03]RAPDU: 90 00 [12:24:03]wFMCommunicate OK [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 0D 03 02 [12:24:03]Write to MH i2c: E2 08 00 47 E7 80 0D 03 02 00 00 00 00 A9 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0B 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0B 00 47 E7 00 B1 6B 04 08 BA 9A 68 C9 90 00 57 [12:24:03]RAPDU: B1 6B 04 08 BA 9A 68 C9 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_SignData done [12:24:03]FM_MakeSignedData done [12:24:03]CreateOFDProtocolMessage [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 11 00 00 [12:24:03]Write to MH i2c: E2 08 00 48 E7 80 11 00 00 00 00 00 00 A9 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 17 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 17 00 48 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [12:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:24:03]wFMCommunicate OK [12:24:03]CreateOFDProtocolMessage done [12:24:03]OFDSenderStorePacket 165667 [12:24:03]StoreOFDPacket docnum=165667 [12:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 63 71 04 01 8B 9A 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 14 00 00 00 00 07 04 06 00 44 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 6E F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 87 02 00 35 04 06 00 F4 48 6F F2 61 53 B1 6B 04 08 BA 9A 68 C9 [12:24:03]CheckFolder [12:24:03]dirname=/storage/ofd_packets [12:24:03]CheckFolder done [12:24:03]ProducePacketName [12:24:03]name=ofd_packets/00165667 [12:24:03]NVStorageSaveData ofd_packets/00165667 [12:24:03]File name is /storage/ofd_packets/00165667 [12:24:03]Write 298 bytes [12:24:03]NVStorageSaveData done [12:24:03]OFDSenderStorePacket done [12:24:03]KKMCreateOFDPacket done [12:24:03]NVStorageSaveData kkm_last_timestamp [12:24:03]File name is /storage/kkm_last_timestamp [12:24:03]Write 4 bytes [12:24:03]NVStorageSaveData done [12:24:03]ExternCall_PrintAddStr [12:24:03]wPrintStart [12:24:03]Write to MH i2c: 01 00 00 49 E7 30 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 49 E7 00 00 00 00 00 FF 0F 45 [12:24:03]RasterBufferAndPrint [12:24:03]line Счет N : (1)220230 [12:24:03]line ИНН: 02508201610067 [12:24:03]line Контрольно-Кассовый Чек [12:24:03]line ПРОДАЖА [12:24:03]line ТРК (МРК, ГНК) : 41 [12:24:03]line Товар: 2710194210 [12:24:03]line ДТ-К-5 [12:24:03]line 6.630 * 76.20 [12:24:03]line = 505.21 [12:24:03]line НДС 12% НСП 1% [12:24:03]line > о реализуемом товаре [12:24:03]line ОКРУГЛЕНИЕ: -0.21 [12:24:03]line ИТОГО: 505.00 [12:24:03]line Внесено: 505.00 [12:24:03]line СДАЧА: 0.00 [12:24:03]line НСП 1% : 4.47 [12:24:03]line НДС 12% : 53.65 [12:24:03]line Наличными: 505.00 [12:24:03]line Безнал.: 0.00 [12:24:03]line Место: АЗС № 161 "Партнер Нефть" [12:24:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:24:03]line СНО: Общий режим [12:24:03]line Чек 149 20.10.2024 12:24 [12:24:03]line Смена: 534 ФФД: 1.0 [12:24:03]line ЗНМ: 0300000104 [12:24:03]line РНМ: 0000000000091764 [12:24:03]line Версия ККМ: 001 [12:24:03]line ФМ: 0000000000871759 [12:24:03]line ФД: 165667 [12:24:03]line ФПД: 268591952978259 [12:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165667&fm=268591952978259&tin=02508201610067®Number=0000000000091764&sum=50500 [12:24:04]OFD Sender: Processing packet 165667 [packets to send 48, broken 47] [12:24:04]ProducePacketName [12:24:04]name=ofd_packets/00165667 [12:24:04]OFD Sender: To server: pG, [12:24:04]CommunicateWithHost lk.salyk.kg:30040 [12:24:04]ConnectInit lk.salyk.kg [12:24:04]written 0, free lines is 4095 [12:24:04]Connected sock=11 [12:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 63 71 04 01 8B 9A 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 14 00 00 00 00 07 04 06 00 44 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 6E F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 87 02 00 35 04 06 00 F4 48 6F F2 61 53 B1 6B 04 08 BA 9A 68 C9 [12:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 51 70 47 00 6D 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 31 37 35 39 10 04 04 00 23 87 02 00 F4 03 04 00 E0 9C 14 67 B6 04 01 00 00 E5 3E 69 2E 75 53 DF AF [12:24:04]CommunicateWithHost err = 0 [12:24:04]CheckOFDResponse [12:24:04]1017 (14) - 77093643461234 [12:24:04]1041 (16) - 0000000000871759 [12:24:04]1040 (4) - 165667 [12:24:04]1012 (4) - 20.10.2024 06:02 [12:24:04]1206 (1) - 0 [12:24:04]OFD Sender: Remove packet 165667 [12:24:04]ProducePacketName [12:24:04]name=ofd_packets/00165667 [12:24:04]NVStorageDeleteData [12:24:04]Write to MH i2c: 01 00 00 74 E7 5B [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: 01 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: 01 07 00 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: 01 07 00 74 E7 00 00 00 00 00 D9 0C 47 [12:24:04]RasterBufferAndPrint [12:24:04]line [12:24:04]line [12:24:04]line [12:24:04]line [12:24:04]line [12:24:04]written 0, free lines is 3296 [12:24:04]MH_Cut [12:24:04]Write to MH i2c: D1 01 00 7B E7 01 34 [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: D1 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: D1 01 00 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: D1 01 00 7B E7 00 33 [12:24:04]Write to MH i2c: 01 00 00 7C E7 63 [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:04]OFD Sender: No OFD packet to send [12:24:05]*** Cut start [12:24:05]*** Partial cut [12:24:05]*** CUTSNS_PIN = 1 [12:24:05]*** CUTSNS_PIN = 0 [12:24:05]*** Brake cut motor [12:24:05]Read from MH i2c: 01 [12:24:05]MH_I2C_Read... [12:24:05]*** Stop cut motor [12:24:05]*** Cut end [12:24:05]Read from MH i2c: 01 07 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: 01 07 00 7C E7 00 00 00 00 00 FF 0F 78 [12:24:05]process_action close_receipt done [12:24:05]requested_data is exist [12:24:05]produce_requested_data [12:24:05]requested_item fm.sn is exist - process it [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 11 00 00 [12:24:05]Write to MH i2c: E2 08 00 7D E7 80 11 00 00 00 00 00 00 DE [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 17 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 17 00 7D E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [12:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:24:05]wFMCommunicate OK [12:24:05]requested_item fd.num is exist - process it [12:24:05]SAM_PROTO_GetFieldsCounters [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 13 00 00 [12:24:05]Write to MH i2c: E2 08 00 7E E7 80 13 00 00 00 00 00 00 E1 [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:06]Read from MH i2c: E2 [12:24:06]MH_I2C_Read... [12:24:06]Read from MH i2c: E2 62 00 [12:24:06]MH_I2C_Read... [12:24:06]Read from MH i2c: E2 62 00 7E E7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 87 02 00 0E 04 04 00 16 02 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 8C [12:24:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 87 02 00 0E 04 04 00 16 02 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:24:06]wFMCommunicate OK [12:24:06]SAM_PROTO_GetFieldsCounters done [12:24:06]requested_item shift.num is exist - process it [12:24:06]requested_item shift.opened is exist - process it [12:24:06]req_shift_opened [12:24:06]FM_GetShiftState [12:24:06]SAM_PROTO_GetShiftState [12:24:06]wFMCommunicate request_size=4 [12:24:06]MH_SAM_APDU [12:24:06]CAPDU: 80 13 01 00 [12:24:06]Write to MH i2c: E2 08 00 7F E7 80 13 01 00 00 00 00 00 E3 [12:24:06]Write i2c OK [12:24:06]MH_I2C_Read... [12:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:06]Read from MH i2c: E2 [12:24:06]MH_I2C_Read... [12:24:06]Read from MH i2c: E2 0E 00 [12:24:06]MH_I2C_Read... [12:24:06]Read from MH i2c: E2 0E 00 7F E7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2B [12:24:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:24:06]wFMCommunicate OK [12:24:06]SAM_PROTO_GetShiftState done [12:24:06]FM_GetShiftState done [12:24:06]req_shift_opened done [12:24:06]requested_item shift.open_date is exist - process it [12:24:06]req_shift_open_date [12:24:06]req_shift_open_date done [12:24:06]produce_requested_data done [12:24:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165667,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:24:06]process_action_free close_receipt [12:24:06]json_value_free [12:24:06]json_value_free done [12:24:06]process_json_proto returns [12:24:06]Send response to host [12:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165667,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:24:06]free response buf [12:24:06]execute_script done [12:24:06]execute_script returns [12:24:06]free content buf [12:24:06]Sock 9.Close socket [12:24:06]Sock 9.Thread stoped [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:22]accept exits with 7 [12:24:22]New connection [12:24:22]New thread 3066776932 created [12:24:22]Thread 3066920292 joined [12:24:22]Waiting for new connection... [12:24:22] Sock 7.Parse request [12:24:22]Sock 7.Check first char [12:24:22]Sock 7.First char is OK [12:24:22]request: POST /json_proto HTTP/1.0 [12:24:22]Method: POST [12:24:22]URL: /json_proto [12:24:22]Method is POST - this is cgi request [12:24:22]url: /json_proto [12:24:22]query_string will be loaded in cgi processing [12:24:22]execute_cgi json_proto POST (null) [12:24:22]execute_cgi path=json_proto method=POST [12:24:22]POST find Content-Length [12:24:22]Host: 172.17.53.195:8080 [12:24:22]Content-Length: 677 [12:24:22]Content-Type: application/json [12:24:22] [12:24:22]POST finish read [12:24:22]Found Content-Length = 677 [12:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:22]execute_script... [12:24: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)220231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:22]POST & json_proto [12:24:22]process_json_proto [12:24:22]json parsed OK: [12:24:22]protocol is kg_v1.0 [12:24:22]action value=close_receipt [12:24:22]process_action close_receipt [12:24:22]cmd_close_receipt [12:24:22]MH_GetDate [12:24:22]Write to MH i2c: F0 00 00 80 E7 56 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 09 00 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 09 00 80 E7 00 82 F6 14 67 21 48 4A 65 6A [12:24:22]GetLastDocTimeStamp 1729427054 [12:24:22]current date 1729427074 [12:24:22]FM_GetShiftState [12:24:22]SAM_PROTO_GetShiftState [12:24:22]wFMCommunicate request_size=4 [12:24:22]MH_SAM_APDU [12:24:22]CAPDU: 80 13 01 00 [12:24:22]Write to MH i2c: E2 08 00 81 E7 80 13 01 00 00 00 00 00 E5 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:22]Read from MH i2c: E2 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: E2 0E 00 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: E2 0E 00 81 E7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2D [12:24:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:24:22]wFMCommunicate OK [12:24:22]SAM_PROTO_GetShiftState done [12:24:22]FM_GetShiftState done [12:24:22]opened in 1729384561 [12:24:22]opened+sec_in_day 1729470961 [12:24:22]quantity*price = 30038 [12:24:22]sum+1 = 30039 [12:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 150 20.10.2024 12:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165668 ФПД: 3649996172834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122434&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165668&fm=3649996172834&tin=02508201610067®Number=0000000000091764&sum=30000 [12:24:23]StoreToDocumentArchive [12:24:23]shift 534 fd 165668 [12:24:23]save to /storage/0534/doc_00165668 [12:24:23]save last doc name /storage/0534/doc_00165668 to /storage/kkm_last_doc_name [12:24:23]save OK [12:24:23]Clear old archive folders... [12:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:23]tlvbuf is 01469E80 [12:24:23]SAM_PROTO_ClearQueue [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 09 00 00 [12:24:23]Write to MH i2c: E2 08 00 8E E7 80 09 00 00 00 00 00 00 E7 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 8E E7 00 90 00 E9 [12:24:23]RAPDU: 90 00 [12:24:23]wFMCommunicate OK [12:24:23]SAM_PROTO_ClearQueue done [12:24:23]KKMCreateOFDPacket [12:24:23]OFDProtocolAddRootSTLVToBuf [12:24:23]FM_MakeSignedData [12:24:23]FM_MakeSignedData [12:24:23]SAM_PROTO_SignData [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 0D 01 02 [12:24:23]Write to MH i2c: E2 08 00 8F E7 80 0D 01 02 00 00 00 00 EF [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 8F E7 00 90 00 EA [12:24:23]RAPDU: 90 00 [12:24:23]wFMCommunicate OK [12:24:23]wFMCommunicate request_size=255 [12:24:23]MH_SAM_APDU [12:24: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 82 F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 87 02 00 35 04 06 00 03 [12:24:23]Write to MH i2c: E2 02 01 90 E7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 82 F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 87 02 00 35 04 06 00 03 00 00 CA [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 90 E7 00 90 00 EB [12:24:23]RAPDU: 90 00 [12:24:23]wFMCommunicate OK [12:24:23]wFMCommunicate request_size=10 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 0D 02 02 05 51 D4 B9 AE 22 [12:24:23]Write to MH i2c: E2 0D 00 91 E7 80 0D 02 02 05 00 51 D4 B9 AE 22 00 00 AA [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 91 E7 00 90 00 EC [12:24:23]RAPDU: 90 00 [12:24:23]wFMCommunicate OK [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 0D 03 02 [12:24:23]Write to MH i2c: E2 08 00 92 E7 80 0D 03 02 00 00 00 00 F4 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 0B 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 0B 00 92 E7 00 09 03 89 38 CF 1F CD A1 90 00 1E [12:24:24]RAPDU: 09 03 89 38 CF 1F CD A1 90 00 [12:24:24]wFMCommunicate OK [12:24:24]SAM_PROTO_SignData done [12:24:24]FM_MakeSignedData done [12:24:24]CreateOFDProtocolMessage [12:24:24]wFMCommunicate request_size=4 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 11 00 00 [12:24:24]Write to MH i2c: E2 08 00 93 E7 80 11 00 00 00 00 00 00 F4 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 17 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 17 00 93 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [12:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:24:24]wFMCommunicate OK [12:24:24]CreateOFDProtocolMessage done [12:24:24]OFDSenderStorePacket 165668 [12:24:24]StoreOFDPacket docnum=165668 [12:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BA 32 07 01 BC 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 82 F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 87 02 00 35 04 06 00 03 51 D4 B9 AE 22 09 03 89 38 CF 1F CD A1 [12:24:24]CheckFolder [12:24:24]dirname=/storage/ofd_packets [12:24:24]CheckFolder done [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00165668 [12:24:24]NVStorageSaveData ofd_packets/00165668 [12:24:24]File name is /storage/ofd_packets/00165668 [12:24:24]Write 301 bytes [12:24:24]NVStorageSaveData done [12:24:24]OFDSenderStorePacket done [12:24:24]KKMCreateOFDPacket done [12:24:24]NVStorageSaveData kkm_last_timestamp [12:24:24]File name is /storage/kkm_last_timestamp [12:24:24]Write 4 bytes [12:24:24]NVStorageSaveData done [12:24:24]ExternCall_PrintAddStr [12:24:24]wPrintStart [12:24:24]Write to MH i2c: 01 00 00 94 E7 7B [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 94 E7 00 00 00 00 00 FF 0F 90 [12:24:24]RasterBufferAndPrint [12:24:24]line Счет N : (1)220231 [12:24:24]line ИНН: 02508201610067 [12:24:24]line Контрольно-Кассовый Чек [12:24:24]line ПРОДАЖА [12:24:24]line ТРК (МРК, ГНК) : 23 [12:24:24]line Товар: 2710124130 [12:24:24]line Аи-92-К-5 [12:24:24]line 4.490 * 66.90 [12:24:24]line = 300.38 [12:24:24]line НДС 12% НСП 1% [12:24:24]line > о реализуемом товаре [12:24:24]line ОКРУГЛЕНИЕ: -0.38 [12:24:24]line ИТОГО: 300.00 [12:24:24]line Внесено: 300.00 [12:24:24]line СДАЧА: 0.00 [12:24:24]line НСП 1% : 2.66 [12:24:24]line НДС 12% : 31.90 [12:24:24]line Наличными: 300.00 [12:24:24]line Безнал.: 0.00 [12:24:24]line Место: АЗС № 161 "Партнер Нефть" [12:24:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:24:24]line СНО: Общий режим [12:24:24]line Чек 150 20.10.2024 12:24 [12:24:24]line Смена: 534 ФФД: 1.0 [12:24:24]line ЗНМ: 0300000104 [12:24:24]line РНМ: 0000000000091764 [12:24:24]line Версия ККМ: 001 [12:24:24]line ФМ: 0000000000871759 [12:24:24]line ФД: 165668 [12:24:24]line ФПД: 3649996172834 [12:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122434&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165668&fm=3649996172834&tin=02508201610067®Number=0000000000091764&sum=30000 [12:24:24]OFD Sender: Processing packet 165668 [packets to send 48, broken 47] [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00165668 [12:24:24]OFD Sender: To server: pG, [12:24:24]CommunicateWithHost lk.salyk.kg:30040 [12:24:24]ConnectInit lk.salyk.kg [12:24:24]written 0, free lines is 4095 [12:24:24]Connected sock=10 [12:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BA 32 07 01 BC 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 82 F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 87 02 00 35 04 06 00 03 51 D4 B9 AE 22 09 03 89 38 CF 1F CD A1 [12:24:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CB CD 47 00 4D 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 31 37 35 39 10 04 04 00 24 87 02 00 F4 03 04 00 F4 9C 14 67 B6 04 01 00 00 7F FE B3 92 95 D5 0A 3F [12:24:24]CommunicateWithHost err = 0 [12:24:24]CheckOFDResponse [12:24:24]1017 (14) - 77093643461234 [12:24:24]1041 (16) - 0000000000871759 [12:24:24]1040 (4) - 165668 [12:24:24]1012 (4) - 20.10.2024 06:02 [12:24:24]1206 (1) - 0 [12:24:24]OFD Sender: Remove packet 165668 [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00165668 [12:24:24]NVStorageDeleteData [12:24:24]Write to MH i2c: 01 00 00 BF E7 A6 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 BF E7 00 00 00 00 00 D5 0C 8E [12:24:24]RasterBufferAndPrint [12:24:24]line [12:24:24]line [12:24:24]line [12:24:24]line [12:24:24]line [12:24:24]written 0, free lines is 3292 [12:24:24]MH_Cut [12:24:24]Write to MH i2c: D1 01 00 C6 E7 01 7F [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: D1 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: D1 01 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: D1 01 00 C6 E7 00 7E [12:24:24]Write to MH i2c: 01 00 00 C7 E7 AE [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:25]OFD Sender: No OFD packet to send [12:24:25]*** Cut start [12:24:25]*** Partial cut [12:24:25]*** CUTSNS_PIN = 1 [12:24:25]*** CUTSNS_PIN = 0 [12:24:25]*** Brake cut motor [12:24:26]Read from MH i2c: 01 [12:24:26]MH_I2C_Read... [12:24:26]*** Stop cut motor [12:24:26]*** Cut end [12:24:26]Read from MH i2c: 01 07 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: 01 07 00 C7 E7 00 00 00 00 00 FF 0F C3 [12:24:26]process_action close_receipt done [12:24:26]requested_data is exist [12:24:26]produce_requested_data [12:24:26]requested_item fm.sn is exist - process it [12:24:26]wFMCommunicate request_size=4 [12:24:26]MH_SAM_APDU [12:24:26]CAPDU: 80 11 00 00 [12:24:26]Write to MH i2c: E2 08 00 C8 E7 80 11 00 00 00 00 00 00 29 [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:26]Read from MH i2c: E2 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 17 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 17 00 C8 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [12:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:24:26]wFMCommunicate OK [12:24:26]requested_item fd.num is exist - process it [12:24:26]SAM_PROTO_GetFieldsCounters [12:24:26]wFMCommunicate request_size=4 [12:24:26]MH_SAM_APDU [12:24:26]CAPDU: 80 13 00 00 [12:24:26]Write to MH i2c: E2 08 00 C9 E7 80 13 00 00 00 00 00 00 2C [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:26]Read from MH i2c: E2 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 62 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 62 00 C9 E7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 87 02 00 0E 04 04 00 16 02 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 DB [12:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 87 02 00 0E 04 04 00 16 02 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:24:26]wFMCommunicate OK [12:24:26]SAM_PROTO_GetFieldsCounters done [12:24:26]requested_item shift.num is exist - process it [12:24:26]requested_item shift.opened is exist - process it [12:24:26]req_shift_opened [12:24:26]FM_GetShiftState [12:24:26]SAM_PROTO_GetShiftState [12:24:26]wFMCommunicate request_size=4 [12:24:26]MH_SAM_APDU [12:24:26]CAPDU: 80 13 01 00 [12:24:26]Write to MH i2c: E2 08 00 CA E7 80 13 01 00 00 00 00 00 2E [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:26]Read from MH i2c: E2 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 0E 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 0E 00 CA E7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 76 [12:24:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:24:26]wFMCommunicate OK [12:24:26]SAM_PROTO_GetShiftState done [12:24:26]FM_GetShiftState done [12:24:26]req_shift_opened done [12:24:26]requested_item shift.open_date is exist - process it [12:24:26]req_shift_open_date [12:24:26]req_shift_open_date done [12:24:26]produce_requested_data done [12:24:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165668,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:24:26]process_action_free close_receipt [12:24:26]json_value_free [12:24:26]json_value_free done [12:24:26]process_json_proto returns [12:24:26]Send response to host [12:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165668,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:24:26]free response buf [12:24:26]execute_script done [12:24:26]execute_script returns [12:24:26]free content buf [12:24:26]Sock 7.Close socket [12:24:26]Sock 7.Thread stoped [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:54]accept exits with 9 [12:25:54]New connection [12:25:54]New thread 3066920292 created [12:25:54]Thread 3066776932 joined [12:25:54]Waiting for new connection... [12:25:54] Sock 9.Parse request [12:25:54]Sock 9.Check first char [12:25:54]Sock 9.First char is OK [12:25:54]request: POST /json_proto HTTP/1.0 [12:25:54]Method: POST [12:25:54]URL: /json_proto [12:25:54]Method is POST - this is cgi request [12:25:54]url: /json_proto [12:25:54]query_string will be loaded in cgi processing [12:25:54]execute_cgi json_proto POST (null) [12:25:54]execute_cgi path=json_proto method=POST [12:25:54]POST find Content-Length [12:25:54]Host: 172.17.53.195:8080 [12:25:54]Content-Length: 677 [12:25:54]Content-Type: application/json [12:25:54] [12:25:54]POST finish read [12:25:54]Found Content-Length = 677 [12:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:54]execute_script... [12:25: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)220232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:54]POST & json_proto [12:25:54]process_json_proto [12:25:54]json parsed OK: [12:25:54]protocol is kg_v1.0 [12:25:54]action value=close_receipt [12:25:54]process_action close_receipt [12:25:54]cmd_close_receipt [12:25:54]MH_GetDate [12:25:54]Write to MH i2c: F0 00 00 CB E7 A1 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 09 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 09 00 CB E7 00 DF F6 14 67 21 48 4A 65 12 [12:25:54]GetLastDocTimeStamp 1729427074 [12:25:54]current date 1729427167 [12:25:54]FM_GetShiftState [12:25:54]SAM_PROTO_GetShiftState [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 13 01 00 [12:25:54]Write to MH i2c: E2 08 00 CC E7 80 13 01 00 00 00 00 00 30 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0E 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0E 00 CC E7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 78 [12:25:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:25:55]wFMCommunicate OK [12:25:55]SAM_PROTO_GetShiftState done [12:25:55]FM_GetShiftState done [12:25:55]opened in 1729384561 [12:25:55]opened+sec_in_day 1729470961 [12:25:55]quantity*price = 60009 [12:25:55]sum+1 = 60010 [12:25:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 151 20.10.2024 12:26 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165669 ФПД: 23549634974288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122607&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165669&fm=23549634974288&tin=02508201610067®Number=0000000000091764&sum=60000 [12:25:56]StoreToDocumentArchive [12:25:56]shift 534 fd 165669 [12:25:56]save to /storage/0534/doc_00165669 [12:25:56]save last doc name /storage/0534/doc_00165669 to /storage/kkm_last_doc_name [12:25:56]save OK [12:25:56]Clear old archive folders... [12:25:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:56]tlvbuf is 01469E50 [12:25:56]SAM_PROTO_ClearQueue [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 09 00 00 [12:25:56]Write to MH i2c: E2 08 00 D9 E7 80 09 00 00 00 00 00 00 32 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 D9 E7 00 90 00 34 [12:25:56]RAPDU: 90 00 [12:25:56]wFMCommunicate OK [12:25:56]SAM_PROTO_ClearQueue done [12:25:56]KKMCreateOFDPacket [12:25:56]OFDProtocolAddRootSTLVToBuf [12:25:56]FM_MakeSignedData [12:25:56]FM_MakeSignedData [12:25:56]SAM_PROTO_SignData [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 0D 01 02 [12:25:56]Write to MH i2c: E2 08 00 DA E7 80 0D 01 02 00 00 00 00 3A [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 DA E7 00 90 00 35 [12:25:56]RAPDU: 90 00 [12:25:56]wFMCommunicate OK [12:25:56]wFMCommunicate request_size=255 [12:25:56]MH_SAM_APDU [12:25: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DF F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 87 02 00 35 04 06 00 15 [12:25:56]Write to MH i2c: E2 02 01 DB E7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DF F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 87 02 00 35 04 06 00 15 00 00 6F [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 DB E7 00 90 00 36 [12:25:56]RAPDU: 90 00 [12:25:56]wFMCommunicate OK [12:25:56]wFMCommunicate request_size=10 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 0D 02 02 05 6B 13 A0 92 50 [12:25:56]Write to MH i2c: E2 0D 00 DC E7 80 0D 02 02 05 00 6B 13 A0 92 50 00 00 47 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 DC E7 00 90 00 37 [12:25:56]RAPDU: 90 00 [12:25:56]wFMCommunicate OK [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 0D 03 02 [12:25:56]Write to MH i2c: E2 08 00 DD E7 80 0D 03 02 00 00 00 00 3F [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 0B 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 0B 00 DD E7 00 C5 1A 1B B8 7A 6C 22 AF 90 00 A9 [12:25:56]RAPDU: C5 1A 1B B8 7A 6C 22 AF 90 00 [12:25:56]wFMCommunicate OK [12:25:56]SAM_PROTO_SignData done [12:25:56]FM_MakeSignedData done [12:25:56]CreateOFDProtocolMessage [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 11 00 00 [12:25:56]Write to MH i2c: E2 08 00 DE E7 80 11 00 00 00 00 00 00 3F [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 17 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 17 00 DE E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [12:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:25:56]wFMCommunicate OK [12:25:56]CreateOFDProtocolMessage done [12:25:56]OFDSenderStorePacket 165669 [12:25:56]StoreOFDPacket docnum=165669 [12:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E7 DB 07 01 FF 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DF F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 87 02 00 35 04 06 00 15 6B 13 A0 92 50 C5 1A 1B B8 7A 6C 22 AF [12:25:56]CheckFolder [12:25:56]dirname=/storage/ofd_packets [12:25:56]CheckFolder done [12:25:56]ProducePacketName [12:25:56]name=ofd_packets/00165669 [12:25:56]NVStorageSaveData ofd_packets/00165669 [12:25:56]File name is /storage/ofd_packets/00165669 [12:25:56]Write 301 bytes [12:25:56]NVStorageSaveData done [12:25:56]OFDSenderStorePacket done [12:25:56]KKMCreateOFDPacket done [12:25:56]NVStorageSaveData kkm_last_timestamp [12:25:56]File name is /storage/kkm_last_timestamp [12:25:56]Write 4 bytes [12:25:56]NVStorageSaveData done [12:25:56]ExternCall_PrintAddStr [12:25:56]wPrintStart [12:25:56]Write to MH i2c: 01 00 00 DF E7 C6 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 DF E7 00 00 00 00 00 FF 0F DB [12:25:56]RasterBufferAndPrint [12:25:56]line Счет N : (1)220232 [12:25:56]line ИНН: 02508201610067 [12:25:56]line Контрольно-Кассовый Чек [12:25:56]line ПРОДАЖА [12:25:56]line ТРК (МРК, ГНК) : 23 [12:25:56]line Товар: 2710124130 [12:25:56]line Аи-92-К-5 [12:25:56]line 8.970 * 66.90 [12:25:56]line = 600.09 [12:25:56]line НДС 12% НСП 1% [12:25:56]line > о реализуемом товаре [12:25:56]line ОКРУГЛЕНИЕ: -0.09 [12:25:56]line ИТОГО: 600.00 [12:25:56]line Внесено: 600.00 [12:25:56]line СДАЧА: 0.00 [12:25:56]line НСП 1% : 5.31 [12:25:56]line НДС 12% : 63.73 [12:25:56]line Наличными: 600.00 [12:25:56]line Безнал.: 0.00 [12:25:56]line Место: АЗС № 161 "Партнер Нефть" [12:25:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:25:56]line СНО: Общий режим [12:25:56]line Чек 151 20.10.2024 12:26 [12:25:56]line Смена: 534 ФФД: 1.0 [12:25:56]line ЗНМ: 0300000104 [12:25:56]line РНМ: 0000000000091764 [12:25:56]line Версия ККМ: 001 [12:25:56]line ФМ: 0000000000871759 [12:25:56]line ФД: 165669 [12:25:56]line ФПД: 23549634974288 [12:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122607&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165669&fm=23549634974288&tin=02508201610067®Number=0000000000091764&sum=60000 [12:25:57]OFD Sender: Processing packet 165669 [packets to send 48, broken 47] [12:25:57]ProducePacketName [12:25:57]name=ofd_packets/00165669 [12:25:57]OFD Sender: To server: pG, [12:25:57]CommunicateWithHost lk.salyk.kg:30040 [12:25:57]ConnectInit lk.salyk.kg [12:25:57]written 0, free lines is 4095 [12:25:57]Connected sock=7 [12:25:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E7 DB 07 01 FF 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DF F6 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 87 02 00 35 04 06 00 15 6B 13 A0 92 50 C5 1A 1B B8 7A 6C 22 AF [12:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 99 C3 47 00 93 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 31 37 35 39 10 04 04 00 25 87 02 00 F4 03 04 00 51 9D 14 67 B6 04 01 00 00 39 1C E2 BC 05 C1 2D 6A [12:25:57]CommunicateWithHost err = 0 [12:25:57]CheckOFDResponse [12:25:57]1017 (14) - 77093643461234 [12:25:57]1041 (16) - 0000000000871759 [12:25:57]1040 (4) - 165669 [12:25:57]1012 (4) - 20.10.2024 06:04 [12:25:57]1206 (1) - 0 [12:25:57]OFD Sender: Remove packet 165669 [12:25:57]ProducePacketName [12:25:57]name=ofd_packets/00165669 [12:25:57]NVStorageDeleteData [12:25:57]Write to MH i2c: 01 00 00 0A E8 F2 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 07 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 07 00 0A E8 00 00 00 00 00 CD 0C D2 [12:25:57]RasterBufferAndPrint [12:25:57]line [12:25:57]line [12:25:57]line [12:25:57]line [12:25:57]line [12:25:57]written 0, free lines is 3286 [12:25:57]MH_Cut [12:25:57]Write to MH i2c: D1 01 00 11 E8 01 CB [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: D1 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: D1 01 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: D1 01 00 11 E8 00 CA [12:25:57]Write to MH i2c: 01 00 00 12 E8 FA [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]OFD Sender: No OFD packet to send [12:25:58]*** Cut start [12:25:58]*** Partial cut [12:25:58]*** CUTSNS_PIN = 1 [12:25:58]*** CUTSNS_PIN = 0 [12:25:58]*** Brake cut motor [12:25:58]Read from MH i2c: 01 [12:25:58]MH_I2C_Read... [12:25:58]*** Stop cut motor [12:25:58]*** Cut end [12:25:58]Read from MH i2c: 01 07 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: 01 07 00 12 E8 00 00 00 00 00 FF 0F 0F [12:25:58]process_action close_receipt done [12:25:58]requested_data is exist [12:25:58]produce_requested_data [12:25:58]requested_item fm.sn is exist - process it [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 11 00 00 [12:25:58]Write to MH i2c: E2 08 00 13 E8 80 11 00 00 00 00 00 00 75 [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 17 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 17 00 13 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [12:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:25:58]wFMCommunicate OK [12:25:58]requested_item fd.num is exist - process it [12:25:58]SAM_PROTO_GetFieldsCounters [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 13 00 00 [12:25:58]Write to MH i2c: E2 08 00 14 E8 80 13 00 00 00 00 00 00 78 [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:59]Read from MH i2c: E2 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 62 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 62 00 14 E8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 87 02 00 0E 04 04 00 16 02 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 2B [12:25: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 87 02 00 0E 04 04 00 16 02 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:25:59]wFMCommunicate OK [12:25:59]SAM_PROTO_GetFieldsCounters done [12:25:59]requested_item shift.num is exist - process it [12:25:59]requested_item shift.opened is exist - process it [12:25:59]req_shift_opened [12:25:59]FM_GetShiftState [12:25:59]SAM_PROTO_GetShiftState [12:25:59]wFMCommunicate request_size=4 [12:25:59]MH_SAM_APDU [12:25:59]CAPDU: 80 13 01 00 [12:25:59]Write to MH i2c: E2 08 00 15 E8 80 13 01 00 00 00 00 00 7A [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:59]Read from MH i2c: E2 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 0E 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 0E 00 15 E8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C2 [12:25:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:25:59]wFMCommunicate OK [12:25:59]SAM_PROTO_GetShiftState done [12:25:59]FM_GetShiftState done [12:25:59]req_shift_opened done [12:25:59]requested_item shift.open_date is exist - process it [12:25:59]req_shift_open_date [12:25:59]req_shift_open_date done [12:25:59]produce_requested_data done [12:25:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165669,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:25:59]process_action_free close_receipt [12:25:59]json_value_free [12:25:59]json_value_free done [12:25:59]process_json_proto returns [12:25:59]Send response to host [12:25:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165669,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:25:59]free response buf [12:25:59]execute_script done [12:25:59]execute_script returns [12:25:59]free content buf [12:25:59]Sock 9.Close socket [12:25:59]Sock 9.Thread stoped [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:01]accept exits with 10 [12:27:01]New connection [12:27:01]New thread 3066776932 created [12:27:01]Thread 3066920292 joined [12:27:01]Waiting for new connection... [12:27:01] Sock 10.Parse request [12:27:01]Sock 10.Check first char [12:27:01]Sock 10.First char is OK [12:27:01]request: POST /json_proto HTTP/1.0 [12:27:01]Method: POST [12:27:01]URL: /json_proto [12:27:01]Method is POST - this is cgi request [12:27:01]url: /json_proto [12:27:01]query_string will be loaded in cgi processing [12:27:01]execute_cgi json_proto POST (null) [12:27:01]execute_cgi path=json_proto method=POST [12:27:01]POST find Content-Length [12:27:01]Host: 172.17.53.195:8080 [12:27:01]Content-Length: 682 [12:27:01]Content-Type: application/json [12:27:01] [12:27:01]POST finish read [12:27:01]Found Content-Length = 682 [12:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:01]execute_script... [12:27: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)220233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:01]POST & json_proto [12:27:01]process_json_proto [12:27:01]json parsed OK: [12:27:01]protocol is kg_v1.0 [12:27:01]action value=close_receipt [12:27:01]process_action close_receipt [12:27:01]cmd_close_receipt [12:27:01]MH_GetDate [12:27:01]Write to MH i2c: F0 00 00 16 E8 ED [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: F0 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: F0 09 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: F0 09 00 16 E8 00 21 F7 14 67 21 48 4A 65 A1 [12:27:01]GetLastDocTimeStamp 1729427167 [12:27:01]current date 1729427233 [12:27:01]FM_GetShiftState [12:27:01]SAM_PROTO_GetShiftState [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 13 01 00 [12:27:01]Write to MH i2c: E2 08 00 17 E8 80 13 01 00 00 00 00 00 7C [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 0E 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 0E 00 17 E8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C4 [12:27:01]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:27:01]wFMCommunicate OK [12:27:01]SAM_PROTO_GetShiftState done [12:27:01]FM_GetShiftState done [12:27:01]opened in 1729384561 [12:27:01]opened+sec_in_day 1729470961 [12:27:01]quantity*price = 100021 [12:27:01]sum+1 = 100023 [12:27:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 152 20.10.2024 12:27 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165670 ФПД: 139335998261356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122713&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165670&fm=139335998261356&tin=02508201610067®Number=0000000000091764&sum=100000 [12:27:02]StoreToDocumentArchive [12:27:02]shift 534 fd 165670 [12:27:02]save to /storage/0534/doc_00165670 [12:27:02]save last doc name /storage/0534/doc_00165670 to /storage/kkm_last_doc_name [12:27:02]save OK [12:27:02]Clear old archive folders... [12:27:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:02]tlvbuf is 014B2D20 [12:27:02]SAM_PROTO_ClearQueue [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 09 00 00 [12:27:02]Write to MH i2c: E2 08 00 24 E8 80 09 00 00 00 00 00 00 7E [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 24 E8 00 90 00 80 [12:27:02]RAPDU: 90 00 [12:27:02]wFMCommunicate OK [12:27:02]SAM_PROTO_ClearQueue done [12:27:02]KKMCreateOFDPacket [12:27:02]OFDProtocolAddRootSTLVToBuf [12:27:02]FM_MakeSignedData [12:27:02]FM_MakeSignedData [12:27:02]SAM_PROTO_SignData [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 0D 01 02 [12:27:02]Write to MH i2c: E2 08 00 25 E8 80 0D 01 02 00 00 00 00 86 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 25 E8 00 90 00 81 [12:27:02]RAPDU: 90 00 [12:27:02]wFMCommunicate OK [12:27:02]wFMCommunicate request_size=255 [12:27:02]MH_SAM_APDU [12:27: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 21 F7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 87 02 00 35 04 06 00 7E [12:27:02]Write to MH i2c: E2 02 01 26 E8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 21 F7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 87 02 00 35 04 06 00 7E 00 00 A9 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]OFD Sender: No OFD packet to send [12:27:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 03 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 03 00 26 E8 00 90 00 82 [12:27:03]RAPDU: 90 00 [12:27:03]wFMCommunicate OK [12:27:03]wFMCommunicate request_size=10 [12:27:03]MH_SAM_APDU [12:27:03]CAPDU: 80 0D 02 02 05 B9 B0 AE 48 6C [12:27:03]Write to MH i2c: E2 0D 00 27 E8 80 0D 02 02 05 00 B9 B0 AE 48 6C 00 00 5E [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 03 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 03 00 27 E8 00 90 00 83 [12:27:03]RAPDU: 90 00 [12:27:03]wFMCommunicate OK [12:27:03]wFMCommunicate request_size=4 [12:27:03]MH_SAM_APDU [12:27:03]CAPDU: 80 0D 03 02 [12:27:03]Write to MH i2c: E2 08 00 28 E8 80 0D 03 02 00 00 00 00 8B [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 0B 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 0B 00 28 E8 00 E2 30 F1 AC EF 27 C7 DE 90 00 F6 [12:27:03]RAPDU: E2 30 F1 AC EF 27 C7 DE 90 00 [12:27:03]wFMCommunicate OK [12:27:03]SAM_PROTO_SignData done [12:27:03]FM_MakeSignedData done [12:27:03]CreateOFDProtocolMessage [12:27:03]wFMCommunicate request_size=4 [12:27:03]MH_SAM_APDU [12:27:03]CAPDU: 80 11 00 00 [12:27:03]Write to MH i2c: E2 08 00 29 E8 80 11 00 00 00 00 00 00 8B [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 17 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 17 00 29 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E3 [12:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:27:03]wFMCommunicate OK [12:27:03]CreateOFDProtocolMessage done [12:27:03]OFDSenderStorePacket 165670 [12:27:03]StoreOFDPacket docnum=165670 [12:27:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 02 07 01 CF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 21 F7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 87 02 00 35 04 06 00 7E B9 B0 AE 48 6C E2 30 F1 AC EF 27 C7 DE [12:27:03]CheckFolder [12:27:03]dirname=/storage/ofd_packets [12:27:03]CheckFolder done [12:27:03]ProducePacketName [12:27:03]name=ofd_packets/00165670 [12:27:03]NVStorageSaveData ofd_packets/00165670 [12:27:03]File name is /storage/ofd_packets/00165670 [12:27:03]Write 301 bytes [12:27:03]NVStorageSaveData done [12:27:03]OFDSenderStorePacket done [12:27:03]KKMCreateOFDPacket done [12:27:03]NVStorageSaveData kkm_last_timestamp [12:27:03]File name is /storage/kkm_last_timestamp [12:27:03]Write 4 bytes [12:27:03]NVStorageSaveData done [12:27:03]ExternCall_PrintAddStr [12:27:03]wPrintStart [12:27:03]Write to MH i2c: 01 00 00 2A E8 12 [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: 01 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: 01 07 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: 01 07 00 2A E8 00 00 00 00 00 FF 0F 27 [12:27:03]RasterBufferAndPrint [12:27:03]line Счет N : (1)220233 [12:27:03]line ИНН: 02508201610067 [12:27:03]line Контрольно-Кассовый Чек [12:27:03]line ПРОДАЖА [12:27:03]line ТРК (МРК, ГНК) : 44 [12:27:03]line Товар: 2710124500 [12:27:03]line Аи-95-К-5 [12:27:03]line 13.480 * 74.20 [12:27:03]line = 1000.22 [12:27:03]line НДС 12% НСП 1% [12:27:03]line > о реализуемом товаре [12:27:03]line ОКРУГЛЕНИЕ: -0.22 [12:27:03]line ИТОГО: 1000.00 [12:27:03]line Внесено: 1000.00 [12:27:03]line СДАЧА: 0.00 [12:27:03]line НСП 1% : 8.85 [12:27:03]line НДС 12% : 106.22 [12:27:03]line Наличными: 1000.00 [12:27:03]line Безнал.: 0.00 [12:27:03]line Место: АЗС № 161 "Партнер Нефть" [12:27:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:27:03]line СНО: Общий режим [12:27:03]line Чек 152 20.10.2024 12:27 [12:27:03]line Смена: 534 ФФД: 1.0 [12:27:03]line ЗНМ: 0300000104 [12:27:03]line РНМ: 0000000000091764 [12:27:03]line Версия ККМ: 001 [12:27:03]line ФМ: 0000000000871759 [12:27:03]line ФД: 165670 [12:27:03]line ФПД: 139335998261356 [12:27:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122713&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165670&fm=139335998261356&tin=02508201610067®Number=0000000000091764&sum=100000 [12:27:03]OFD Sender: Processing packet 165670 [packets to send 48, broken 47] [12:27:03]ProducePacketName [12:27:03]name=ofd_packets/00165670 [12:27:03]OFD Sender: To server: pG, [12:27:03]CommunicateWithHost lk.salyk.kg:30040 [12:27:03]ConnectInit lk.salyk.kg [12:27:03]written 0, free lines is 4095 [12:27:03]Connected sock=11 [12:27:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 02 07 01 CF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 21 F7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 87 02 00 35 04 06 00 7E B9 B0 AE 48 6C E2 30 F1 AC EF 27 C7 DE [12:27:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 25 AE 47 00 E5 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 31 37 35 39 10 04 04 00 26 87 02 00 F4 03 04 00 93 9D 14 67 B6 04 01 00 00 FF E1 9D E4 FA AD 86 4F [12:27:03]CommunicateWithHost err = 0 [12:27:03]CheckOFDResponse [12:27:03]1017 (14) - 77093643461234 [12:27:03]1041 (16) - 0000000000871759 [12:27:03]1040 (4) - 165670 [12:27:03]1012 (4) - 20.10.2024 06:05 [12:27:03]1206 (1) - 0 [12:27:03]OFD Sender: Remove packet 165670 [12:27:03]ProducePacketName [12:27:03]name=ofd_packets/00165670 [12:27:03]NVStorageDeleteData [12:27:04]Write to MH i2c: 01 00 00 55 E8 3D [12:27:04]Write i2c OK [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: 01 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: 01 07 00 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: 01 07 00 55 E8 00 00 00 00 00 D4 0C 24 [12:27:04]RasterBufferAndPrint [12:27:04]line [12:27:04]line [12:27:04]line [12:27:04]line [12:27:04]line [12:27:04]written 0, free lines is 3289 [12:27:04]MH_Cut [12:27:04]Write to MH i2c: D1 01 00 5C E8 01 16 [12:27:04]Write i2c OK [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: D1 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: D1 01 00 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: D1 01 00 5C E8 00 15 [12:27:04]Write to MH i2c: 01 00 00 5D E8 45 [12:27:04]Write i2c OK [12:27:04]MH_I2C_Read... [12:27:04]OFD Sender: No OFD packet to send [12:27:04]*** Cut start [12:27:04]*** Partial cut [12:27:04]*** CUTSNS_PIN = 1 [12:27:04]*** CUTSNS_PIN = 0 [12:27:05]*** Brake cut motor [12:27:05]Read from MH i2c: 01 [12:27:05]MH_I2C_Read... [12:27:05]*** Stop cut motor [12:27:05]*** Cut end [12:27:05]Read from MH i2c: 01 07 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: 01 07 00 5D E8 00 00 00 00 00 FF 0F 5A [12:27:05]process_action close_receipt done [12:27:05]requested_data is exist [12:27:05]produce_requested_data [12:27:05]requested_item fm.sn is exist - process it [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 11 00 00 [12:27:05]Write to MH i2c: E2 08 00 5E E8 80 11 00 00 00 00 00 00 C0 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 17 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 17 00 5E E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [12:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:27:05]wFMCommunicate OK [12:27:05]requested_item fd.num is exist - process it [12:27:05]SAM_PROTO_GetFieldsCounters [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 13 00 00 [12:27:05]Write to MH i2c: E2 08 00 5F E8 80 13 00 00 00 00 00 00 C3 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 62 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 62 00 5F E8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 87 02 00 0E 04 04 00 16 02 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 7A [12:27:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 87 02 00 0E 04 04 00 16 02 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:27:05]wFMCommunicate OK [12:27:05]SAM_PROTO_GetFieldsCounters done [12:27:05]requested_item shift.num is exist - process it [12:27:05]requested_item shift.opened is exist - process it [12:27:05]req_shift_opened [12:27:05]FM_GetShiftState [12:27:05]SAM_PROTO_GetShiftState [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 13 01 00 [12:27:05]Write to MH i2c: E2 08 00 60 E8 80 13 01 00 00 00 00 00 C5 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 0E 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 0E 00 60 E8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0D [12:27:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:27:05]wFMCommunicate OK [12:27:05]SAM_PROTO_GetShiftState done [12:27:05]FM_GetShiftState done [12:27:05]req_shift_opened done [12:27:05]requested_item shift.open_date is exist - process it [12:27:05]req_shift_open_date [12:27:05]req_shift_open_date done [12:27:05]produce_requested_data done [12:27:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165670,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:27:05]process_action_free close_receipt [12:27:05]json_value_free [12:27:05]json_value_free done [12:27:05]process_json_proto returns [12:27:05]Send response to host [12:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165670,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:27:05]free response buf [12:27:05]execute_script done [12:27:05]execute_script returns [12:27:05]free content buf [12:27:05]Sock 10.Close socket [12:27:05]Sock 10.Thread stoped [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:43]accept exits with 7 [12:30:43]New connection [12:30:43]New thread 3066920292 created [12:30:43]Thread 3066776932 joined [12:30:43]Waiting for new connection... [12:30:43] Sock 7.Parse request [12:30:43]Sock 7.Check first char [12:30:43]Sock 7.First char is OK [12:30:43]request: POST /json_proto HTTP/1.0 [12:30:43]Method: POST [12:30:43]URL: /json_proto [12:30:43]Method is POST - this is cgi request [12:30:43]url: /json_proto [12:30:43]query_string will be loaded in cgi processing [12:30:43]execute_cgi json_proto POST (null) [12:30:43]execute_cgi path=json_proto method=POST [12:30:43]POST find Content-Length [12:30:43]Host: 172.17.53.195:8080 [12:30:43]Content-Length: 677 [12:30:43]Content-Type: application/json [12:30:43] [12:30:43]POST finish read [12:30:43]Found Content-Length = 677 [12:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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:30:43]execute_script... [12:30: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)220234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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:30:43]POST & json_proto [12:30:43]process_json_proto [12:30:43]json parsed OK: [12:30:43]protocol is kg_v1.0 [12:30:43]action value=close_receipt [12:30:43]process_action close_receipt [12:30:43]cmd_close_receipt [12:30:43]MH_GetDate [12:30:43]Write to MH i2c: F0 00 00 61 E8 38 [12:30:43]Write i2c OK [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: F0 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: F0 09 00 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: F0 09 00 61 E8 00 FF F7 14 67 21 48 4A 65 CA [12:30:43]GetLastDocTimeStamp 1729427233 [12:30:43]current date 1729427455 [12:30:43]FM_GetShiftState [12:30:43]SAM_PROTO_GetShiftState [12:30:43]wFMCommunicate request_size=4 [12:30:43]MH_SAM_APDU [12:30:43]CAPDU: 80 13 01 00 [12:30:43]Write to MH i2c: E2 08 00 62 E8 80 13 01 00 00 00 00 00 C7 [12:30:43]Write i2c OK [12:30:43]MH_I2C_Read... [12:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:43]Read from MH i2c: E2 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 0E 00 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 0E 00 62 E8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0F [12:30:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:30:43]wFMCommunicate OK [12:30:43]SAM_PROTO_GetShiftState done [12:30:43]FM_GetShiftState done [12:30:43]opened in 1729384561 [12:30:43]opened+sec_in_day 1729470961 [12:30:43]quantity*price = 70044 [12:30:43]sum+1 = 70046 [12:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 153 20.10.2024 12:30 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165671 ФПД: 23380737667647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123055&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165671&fm=23380737667647&tin=02508201610067®Number=0000000000091764&sum=70000 [12:30:44]StoreToDocumentArchive [12:30:44]shift 534 fd 165671 [12:30:44]save to /storage/0534/doc_00165671 [12:30:44]save last doc name /storage/0534/doc_00165671 to /storage/kkm_last_doc_name [12:30:44]save OK [12:30:44]Clear old archive folders... [12:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:44]tlvbuf is 014650E0 [12:30:44]SAM_PROTO_ClearQueue [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 09 00 00 [12:30:44]Write to MH i2c: E2 08 00 6F E8 80 09 00 00 00 00 00 00 C9 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 6F E8 00 90 00 CB [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]SAM_PROTO_ClearQueue done [12:30:44]KKMCreateOFDPacket [12:30:44]OFDProtocolAddRootSTLVToBuf [12:30:44]FM_MakeSignedData [12:30:44]FM_MakeSignedData [12:30:44]SAM_PROTO_SignData [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 01 02 [12:30:44]Write to MH i2c: E2 08 00 70 E8 80 0D 01 02 00 00 00 00 D1 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 70 E8 00 90 00 CC [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]wFMCommunicate request_size=255 [12:30:44]MH_SAM_APDU [12:30: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FF F7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 87 02 00 35 04 06 00 15 [12:30:44]Write to MH i2c: E2 02 01 71 E8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FF F7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 87 02 00 35 04 06 00 15 00 00 35 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]OFD Sender: No OFD packet to send [12:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 71 E8 00 90 00 CD [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]wFMCommunicate request_size=10 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 02 02 05 43 C0 90 32 3F [12:30:44]Write to MH i2c: E2 0D 00 72 E8 80 0D 02 02 05 00 43 C0 90 32 3F 00 00 E2 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 72 E8 00 90 00 CE [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 03 02 [12:30:44]Write to MH i2c: E2 08 00 73 E8 80 0D 03 02 00 00 00 00 D6 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 0B 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 0B 00 73 E8 00 49 DF 93 03 96 AD 35 2E 90 00 3B [12:30:44]RAPDU: 49 DF 93 03 96 AD 35 2E 90 00 [12:30:44]wFMCommunicate OK [12:30:44]SAM_PROTO_SignData done [12:30:44]FM_MakeSignedData done [12:30:44]CreateOFDProtocolMessage [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 11 00 00 [12:30:44]Write to MH i2c: E2 08 00 74 E8 80 11 00 00 00 00 00 00 D6 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 17 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 17 00 74 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [12:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:44]wFMCommunicate OK [12:30:44]CreateOFDProtocolMessage done [12:30:44]OFDSenderStorePacket 165671 [12:30:44]StoreOFDPacket docnum=165671 [12:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F 1A 07 01 1E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FF F7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 87 02 00 35 04 06 00 15 43 C0 90 32 3F 49 DF 93 03 96 AD 35 2E [12:30:44]CheckFolder [12:30:44]dirname=/storage/ofd_packets [12:30:44]CheckFolder done [12:30:44]ProducePacketName [12:30:44]name=ofd_packets/00165671 [12:30:44]NVStorageSaveData ofd_packets/00165671 [12:30:44]File name is /storage/ofd_packets/00165671 [12:30:44]Write 301 bytes [12:30:44]NVStorageSaveData done [12:30:44]OFDSenderStorePacket done [12:30:44]KKMCreateOFDPacket done [12:30:44]NVStorageSaveData kkm_last_timestamp [12:30:44]File name is /storage/kkm_last_timestamp [12:30:44]Write 4 bytes [12:30:44]NVStorageSaveData done [12:30:44]ExternCall_PrintAddStr [12:30:44]wPrintStart [12:30:44]Write to MH i2c: 01 00 00 75 E8 5D [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 07 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 07 00 75 E8 00 00 00 00 00 FF 0F 72 [12:30:44]RasterBufferAndPrint [12:30:44]line Счет N : (1)220234 [12:30:44]line ИНН: 02508201610067 [12:30:44]line Контрольно-Кассовый Чек [12:30:44]line ПРОДАЖА [12:30:44]line ТРК (МРК, ГНК) : 44 [12:30:44]line Товар: 2710124500 [12:30:44]line Аи-95-К-5 [12:30:44]line 9.440 * 74.20 [12:30:44]line = 700.45 [12:30:44]line НДС 12% НСП 1% [12:30:44]line > о реализуемом товаре [12:30:44]line ОКРУГЛЕНИЕ: -0.45 [12:30:44]line ИТОГО: 700.00 [12:30:44]line Внесено: 700.00 [12:30:44]line СДАЧА: 0.00 [12:30:44]line НСП 1% : 6.20 [12:30:44]line НДС 12% : 74.38 [12:30:44]line Наличными: 700.00 [12:30:44]line Безнал.: 0.00 [12:30:44]line Место: АЗС № 161 "Партнер Нефть" [12:30:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:30:44]line СНО: Общий режим [12:30:44]line Чек 153 20.10.2024 12:30 [12:30:44]line Смена: 534 ФФД: 1.0 [12:30:44]line ЗНМ: 0300000104 [12:30:44]line РНМ: 0000000000091764 [12:30:44]line Версия ККМ: 001 [12:30:44]line ФМ: 0000000000871759 [12:30:44]line ФД: 165671 [12:30:44]line ФПД: 23380737667647 [12:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123055&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165671&fm=23380737667647&tin=02508201610067®Number=0000000000091764&sum=70000 [12:30:45]OFD Sender: Processing packet 165671 [packets to send 48, broken 47] [12:30:45]ProducePacketName [12:30:45]name=ofd_packets/00165671 [12:30:45]OFD Sender: To server: pG, [12:30:45]CommunicateWithHost lk.salyk.kg:30040 [12:30:45]ConnectInit lk.salyk.kg [12:30:45]written 0, free lines is 4095 [12:30:45]Connected sock=11 [12:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F 1A 07 01 1E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FF F7 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 87 02 00 35 04 06 00 15 43 C0 90 32 3F 49 DF 93 03 96 AD 35 2E [12:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AA 30 47 00 62 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 87 02 00 F4 03 04 00 71 9E 14 67 B6 04 01 00 00 BF 31 42 44 7D 17 3E D0 [12:30:45]CommunicateWithHost err = 0 [12:30:45]CheckOFDResponse [12:30:45]1017 (14) - 77093643461234 [12:30:45]1041 (16) - 0000000000871759 [12:30:45]1040 (4) - 165671 [12:30:45]1012 (4) - 20.10.2024 06:08 [12:30:45]1206 (1) - 0 [12:30:45]OFD Sender: Remove packet 165671 [12:30:45]ProducePacketName [12:30:45]name=ofd_packets/00165671 [12:30:45]NVStorageDeleteData [12:30:45]Write to MH i2c: 01 00 00 A0 E8 88 [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 07 00 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 07 00 A0 E8 00 00 00 00 00 BB 0C 56 [12:30:45]RasterBufferAndPrint [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]written 0, free lines is 3267 [12:30:45]MH_Cut [12:30:45]Write to MH i2c: D1 01 00 A7 E8 01 61 [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 01 00 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 01 00 A7 E8 00 60 [12:30:45]Write to MH i2c: 01 00 00 A8 E8 90 [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:46]OFD Sender: No OFD packet to send [12:30:46]*** Cut start [12:30:46]*** Partial cut [12:30:46]*** CUTSNS_PIN = 1 [12:30:46]*** CUTSNS_PIN = 0 [12:30:46]*** Brake cut motor [12:30:47]Read from MH i2c: 01 [12:30:47]MH_I2C_Read... [12:30:47]*** Stop cut motor [12:30:47]*** Cut end [12:30:47]Read from MH i2c: 01 07 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: 01 07 00 A8 E8 00 00 00 00 00 FF 0F A5 [12:30:47]process_action close_receipt done [12:30:47]requested_data is exist [12:30:47]produce_requested_data [12:30:47]requested_item fm.sn is exist - process it [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 11 00 00 [12:30:47]Write to MH i2c: E2 08 00 A9 E8 80 11 00 00 00 00 00 00 0B [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 17 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 17 00 A9 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [12:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:47]wFMCommunicate OK [12:30:47]requested_item fd.num is exist - process it [12:30:47]SAM_PROTO_GetFieldsCounters [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 13 00 00 [12:30:47]Write to MH i2c: E2 08 00 AA E8 80 13 00 00 00 00 00 00 0E [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 62 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 62 00 AA E8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 87 02 00 0E 04 04 00 16 02 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 C9 [12:30: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 87 02 00 0E 04 04 00 16 02 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:30:47]wFMCommunicate OK [12:30:47]SAM_PROTO_GetFieldsCounters done [12:30:47]requested_item shift.num is exist - process it [12:30:47]requested_item shift.opened is exist - process it [12:30:47]req_shift_opened [12:30:47]FM_GetShiftState [12:30:47]SAM_PROTO_GetShiftState [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 13 01 00 [12:30:47]Write to MH i2c: E2 08 00 AB E8 80 13 01 00 00 00 00 00 10 [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 0E 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 0E 00 AB E8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 58 [12:30:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:30:47]wFMCommunicate OK [12:30:47]SAM_PROTO_GetShiftState done [12:30:47]FM_GetShiftState done [12:30:47]req_shift_opened done [12:30:47]requested_item shift.open_date is exist - process it [12:30:47]req_shift_open_date [12:30:47]req_shift_open_date done [12:30:47]produce_requested_data done [12:30:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165671,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:30:47]process_action_free close_receipt [12:30:47]json_value_free [12:30:47]json_value_free done [12:30:47]process_json_proto returns [12:30:47]Send response to host [12:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165671,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:30:47]free response buf [12:30:47]execute_script done [12:30:47]execute_script returns [12:30:47]free content buf [12:30:47]Sock 7.Close socket [12:30:47]Sock 7.Thread stoped [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [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:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [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:43]accept exits with 9 [12:38:43]New connection [12:38:43]New thread 3066776932 created [12:38:43]Thread 3066920292 joined [12:38:43]Waiting for new connection... [12:38:43] Sock 9.Parse request [12:38:43]Sock 9.Check first char [12:38:43]Sock 9.First char is OK [12:38:43]request: POST /json_proto HTTP/1.0 [12:38:43]Method: POST [12:38:43]URL: /json_proto [12:38:43]Method is POST - this is cgi request [12:38:43]url: /json_proto [12:38:43]query_string will be loaded in cgi processing [12:38:43]execute_cgi json_proto POST (null) [12:38:43]execute_cgi path=json_proto method=POST [12:38:43]POST find Content-Length [12:38:43]Host: 172.17.53.195:8080 [12:38:43]Content-Length: 682 [12:38:43]Content-Type: application/json [12:38:43] [12:38:43]POST finish read [12:38:43]Found Content-Length = 682 [12:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:43]execute_script... [12:38: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)220235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:43]POST & json_proto [12:38:43]process_json_proto [12:38:43]json parsed OK: [12:38:43]protocol is kg_v1.0 [12:38:43]action value=close_receipt [12:38:43]process_action close_receipt [12:38:43]cmd_close_receipt [12:38:43]MH_GetDate [12:38:43]Write to MH i2c: F0 00 00 AC E8 83 [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 09 00 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 09 00 AC E8 00 DF F9 14 67 21 48 4A 65 F7 [12:38:43]GetLastDocTimeStamp 1729427455 [12:38:43]current date 1729427935 [12:38:43]FM_GetShiftState [12:38:43]SAM_PROTO_GetShiftState [12:38:43]wFMCommunicate request_size=4 [12:38:43]MH_SAM_APDU [12:38:43]CAPDU: 80 13 01 00 [12:38:43]Write to MH i2c: E2 08 00 AD E8 80 13 01 00 00 00 00 00 12 [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:43]Read from MH i2c: E2 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: E2 0E 00 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: E2 0E 00 AD E8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5A [12:38:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:38:43]wFMCommunicate OK [12:38:43]SAM_PROTO_GetShiftState done [12:38:43]FM_GetShiftState done [12:38:43]opened in 1729384561 [12:38:43]opened+sec_in_day 1729470961 [12:38:43]quantity*price = 100015 [12:38:43]sum+1 = 100017 [12:38: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 154 20.10.2024 12:38 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165672 ФПД: 158205915206965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123855&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165672&fm=158205915206965&tin=02508201610067®Number=0000000000091764&sum=100000 [12:38:44]StoreToDocumentArchive [12:38:44]shift 534 fd 165672 [12:38:44]save to /storage/0534/doc_00165672 [12:38:44]save last doc name /storage/0534/doc_00165672 to /storage/kkm_last_doc_name [12:38:44]save OK [12:38:44]Clear old archive folders... [12:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:44]tlvbuf is 0184B9F0 [12:38:44]SAM_PROTO_ClearQueue [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 09 00 00 [12:38:44]Write to MH i2c: E2 08 00 BA E8 80 09 00 00 00 00 00 00 14 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 BA E8 00 90 00 16 [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]SAM_PROTO_ClearQueue done [12:38:44]KKMCreateOFDPacket [12:38:44]OFDProtocolAddRootSTLVToBuf [12:38:44]FM_MakeSignedData [12:38:44]FM_MakeSignedData [12:38:44]SAM_PROTO_SignData [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 0D 01 02 [12:38:44]Write to MH i2c: E2 08 00 BB E8 80 0D 01 02 00 00 00 00 1C [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 BB E8 00 90 00 17 [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]wFMCommunicate request_size=255 [12:38:44]MH_SAM_APDU [12:38: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 DF F9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 87 02 00 35 04 06 00 8F [12:38:44]Write to MH i2c: E2 02 01 BC E8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 DF F9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 87 02 00 35 04 06 00 8F 00 00 F1 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 BC E8 00 90 00 18 [12:38:45]RAPDU: 90 00 [12:38:45]wFMCommunicate OK [12:38:45]wFMCommunicate request_size=10 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 0D 02 02 05 E3 2F 60 95 35 [12:38:45]Write to MH i2c: E2 0D 00 BD E8 80 0D 02 02 05 00 E3 2F 60 95 35 00 00 65 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 BD E8 00 90 00 19 [12:38:45]RAPDU: 90 00 [12:38:45]wFMCommunicate OK [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 0D 03 02 [12:38:45]Write to MH i2c: E2 08 00 BE E8 80 0D 03 02 00 00 00 00 21 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0B 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0B 00 BE E8 00 EE 16 04 39 B8 E8 7B 16 90 00 94 [12:38:45]RAPDU: EE 16 04 39 B8 E8 7B 16 90 00 [12:38:45]wFMCommunicate OK [12:38:45]SAM_PROTO_SignData done [12:38:45]FM_MakeSignedData done [12:38:45]CreateOFDProtocolMessage [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 11 00 00 [12:38:45]Write to MH i2c: E2 08 00 BF E8 80 11 00 00 00 00 00 00 21 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 17 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 17 00 BF E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [12:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:38:45]wFMCommunicate OK [12:38:45]CreateOFDProtocolMessage done [12:38:45]OFDSenderStorePacket 165672 [12:38:45]StoreOFDPacket docnum=165672 [12:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE 9F 07 01 05 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 DF F9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 87 02 00 35 04 06 00 8F E3 2F 60 95 35 EE 16 04 39 B8 E8 7B 16 [12:38:45]CheckFolder [12:38:45]dirname=/storage/ofd_packets [12:38:45]CheckFolder done [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00165672 [12:38:45]NVStorageSaveData ofd_packets/00165672 [12:38:45]File name is /storage/ofd_packets/00165672 [12:38:45]Write 301 bytes [12:38:45]NVStorageSaveData done [12:38:45]OFDSenderStorePacket done [12:38:45]KKMCreateOFDPacket done [12:38:45]NVStorageSaveData kkm_last_timestamp [12:38:45]File name is /storage/kkm_last_timestamp [12:38:45]Write 4 bytes [12:38:45]NVStorageSaveData done [12:38:45]ExternCall_PrintAddStr [12:38:45]wPrintStart [12:38:45]Write to MH i2c: 01 00 00 C0 E8 A8 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 C0 E8 00 00 00 00 00 FF 0F BD [12:38:45]RasterBufferAndPrint [12:38:45]line Счет N : (1)220235 [12:38:45]line ИНН: 02508201610067 [12:38:45]line Контрольно-Кассовый Чек [12:38:45]line ПРОДАЖА [12:38:45]line ТРК (МРК, ГНК) : 23 [12:38:45]line Товар: 2710124130 [12:38:45]line Аи-92-К-5 [12:38:45]line 14.950 * 66.90 [12:38:45]line = 1000.16 [12:38:45]line НДС 12% НСП 1% [12:38:45]line > о реализуемом товаре [12:38:45]line ОКРУГЛЕНИЕ: -0.16 [12:38:45]line ИТОГО: 1000.00 [12:38:45]line Внесено: 1000.00 [12:38:45]line СДАЧА: 0.00 [12:38:45]line НСП 1% : 8.85 [12:38:45]line НДС 12% : 106.21 [12:38:45]line Наличными: 1000.00 [12:38:45]line Безнал.: 0.00 [12:38:45]line Место: АЗС № 161 "Партнер Нефть" [12:38:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:38:45]line СНО: Общий режим [12:38:45]line Чек 154 20.10.2024 12:38 [12:38:45]line Смена: 534 ФФД: 1.0 [12:38:45]line ЗНМ: 0300000104 [12:38:45]line РНМ: 0000000000091764 [12:38:45]line Версия ККМ: 001 [12:38:45]line ФМ: 0000000000871759 [12:38:45]line ФД: 165672 [12:38:45]line ФПД: 158205915206965 [12:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123855&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165672&fm=158205915206965&tin=02508201610067®Number=0000000000091764&sum=100000 [12:38:45]OFD Sender: Processing packet 165672 [packets to send 48, broken 47] [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00165672 [12:38:45]OFD Sender: To server: pG, [12:38:45]CommunicateWithHost lk.salyk.kg:30040 [12:38:45]ConnectInit lk.salyk.kg [12:38:45]written 0, free lines is 4095 [12:38:45]Connected sock=10 [12:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE 9F 07 01 05 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 DF F9 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 87 02 00 35 04 06 00 8F E3 2F 60 95 35 EE 16 04 39 B8 E8 7B 16 [12:38:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 95 81 47 00 50 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 31 37 35 39 10 04 04 00 28 87 02 00 F4 03 04 00 51 A0 14 67 B6 04 01 00 00 49 EF 53 5A EE CE 2A 8D [12:38:45]CommunicateWithHost err = 0 [12:38:45]CheckOFDResponse [12:38:45]1017 (14) - 77093643461234 [12:38:45]1041 (16) - 0000000000871759 [12:38:45]1040 (4) - 165672 [12:38:45]1012 (4) - 20.10.2024 06:16 [12:38:45]1206 (1) - 0 [12:38:45]OFD Sender: Remove packet 165672 [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00165672 [12:38:45]NVStorageDeleteData [12:38:45]Write to MH i2c: 01 00 00 EB E8 D3 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 EB E8 00 00 00 00 00 BC 0C A2 [12:38:45]RasterBufferAndPrint [12:38:45]line [12:38:45]line [12:38:45]line [12:38:45]line [12:38:45]line [12:38:45]written 0, free lines is 3267 [12:38:45]MH_Cut [12:38:45]Write to MH i2c: D1 01 00 F2 E8 01 AC [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: D1 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: D1 01 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: D1 01 00 F2 E8 00 AB [12:38:45]Write to MH i2c: 01 00 00 F3 E8 DB [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:46]OFD Sender: No OFD packet to send [12:38:46]*** Cut start [12:38:46]*** Partial cut [12:38:46]*** CUTSNS_PIN = 1 [12:38:46]*** CUTSNS_PIN = 0 [12:38:47]*** Brake cut motor [12:38:47]Read from MH i2c: 01 [12:38:47]MH_I2C_Read... [12:38:47]*** Stop cut motor [12:38:47]*** Cut end [12:38:47]Read from MH i2c: 01 07 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 07 00 F3 E8 00 00 00 00 00 FF 0F F0 [12:38:47]process_action close_receipt done [12:38:47]requested_data is exist [12:38:47]produce_requested_data [12:38:47]requested_item fm.sn is exist - process it [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 11 00 00 [12:38:47]Write to MH i2c: E2 08 00 F4 E8 80 11 00 00 00 00 00 00 56 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 17 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 17 00 F4 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [12:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:38:47]wFMCommunicate OK [12:38:47]requested_item fd.num is exist - process it [12:38:47]SAM_PROTO_GetFieldsCounters [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 13 00 00 [12:38:47]Write to MH i2c: E2 08 00 F5 E8 80 13 00 00 00 00 00 00 59 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 62 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 62 00 F5 E8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 87 02 00 0E 04 04 00 16 02 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 18 [12:38: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 87 02 00 0E 04 04 00 16 02 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:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_GetFieldsCounters done [12:38:47]requested_item shift.num is exist - process it [12:38:47]requested_item shift.opened is exist - process it [12:38:47]req_shift_opened [12:38:47]FM_GetShiftState [12:38:47]SAM_PROTO_GetShiftState [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 13 01 00 [12:38:47]Write to MH i2c: E2 08 00 F6 E8 80 13 01 00 00 00 00 00 5B [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 0E 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 0E 00 F6 E8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A3 [12:38:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_GetShiftState done [12:38:47]FM_GetShiftState done [12:38:47]req_shift_opened done [12:38:47]requested_item shift.open_date is exist - process it [12:38:47]req_shift_open_date [12:38:47]req_shift_open_date done [12:38:47]produce_requested_data done [12:38:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165672,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:38:47]process_action_free close_receipt [12:38:47]json_value_free [12:38:47]json_value_free done [12:38:47]process_json_proto returns [12:38:47]Send response to host [12:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165672,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:38:47]free response buf [12:38:47]execute_script done [12:38:47]execute_script returns [12:38:47]free content buf [12:38:47]Sock 9.Close socket [12:38:47]Sock 9.Thread stoped [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:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:53]accept exits with 7 [12:41:53]New connection [12:41:53]New thread 3066920292 created [12:41:53]Thread 3066776932 joined [12:41:53]Waiting for new connection... [12:41:53] Sock 7.Parse request [12:41:53]Sock 7.Check first char [12:41:53]Sock 7.First char is OK [12:41:53]request: POST /json_proto HTTP/1.0 [12:41:53]Method: POST [12:41:53]URL: /json_proto [12:41:53]Method is POST - this is cgi request [12:41:53]url: /json_proto [12:41:53]query_string will be loaded in cgi processing [12:41:53]execute_cgi json_proto POST (null) [12:41:53]execute_cgi path=json_proto method=POST [12:41:53]POST find Content-Length [12:41:53]Host: 172.17.53.195:8080 [12:41:53]Content-Length: 682 [12:41:53]Content-Type: application/json [12:41:53] [12:41:53]POST finish read [12:41:53]Found Content-Length = 682 [12:41:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.970, "sum" : 2004.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2005.00, "total" : 2004.00, "payments": [ { "type": 0, "sum" : 2004.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:53]execute_script... [12:41: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)220236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.970, "sum" : 2004.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2005.00, "total" : 2004.00, "payments": [ { "type": 0, "sum" : 2004.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:53]POST & json_proto [12:41:53]process_json_proto [12:41:53]json parsed OK: [12:41:53]protocol is kg_v1.0 [12:41:53]action value=close_receipt [12:41:53]process_action close_receipt [12:41:53]cmd_close_receipt [12:41:53]MH_GetDate [12:41:53]Write to MH i2c: F0 00 00 F7 E8 CE [12:41:53]Write i2c OK [12:41:53]MH_I2C_Read... [12:41:53]Read from MH i2c: F0 [12:41:53]MH_I2C_Read... [12:41:53]Read from MH i2c: F0 09 00 [12:41:53]MH_I2C_Read... [12:41:53]Read from MH i2c: F0 09 00 F7 E8 00 9E FA 14 67 21 48 4A 65 02 [12:41:53]GetLastDocTimeStamp 1729427935 [12:41:53]current date 1729428126 [12:41:53]FM_GetShiftState [12:41:53]SAM_PROTO_GetShiftState [12:41:53]wFMCommunicate request_size=4 [12:41:53]MH_SAM_APDU [12:41:53]CAPDU: 80 13 01 00 [12:41:53]Write to MH i2c: E2 08 00 F8 E8 80 13 01 00 00 00 00 00 5D [12:41:53]Write i2c OK [12:41:53]MH_I2C_Read... [12:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:53]Read from MH i2c: E2 [12:41:53]MH_I2C_Read... [12:41:53]Read from MH i2c: E2 0E 00 [12:41:53]MH_I2C_Read... [12:41:53]Read from MH i2c: E2 0E 00 F8 E8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A5 [12:41:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:41:53]wFMCommunicate OK [12:41:53]SAM_PROTO_GetShiftState done [12:41:53]FM_GetShiftState done [12:41:53]opened in 1729384561 [12:41:53]opened+sec_in_day 1729470961 [12:41:53]quantity*price = 200499 [12:41:53]sum+1 = 200500 [12:41:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 2004.00 Внесено: 2005.00 СДАЧА: 1.00 НСП 1% : 17.74 НДС 12% : 212.92 Наличными: 2004.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 155 20.10.2024 12:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165673 ФПД: 205625580620418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124206&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165673&fm=205625580620418&tin=02508201610067®Number=0000000000091764&sum=200400 [12:41:54]StoreToDocumentArchive [12:41:54]shift 534 fd 165673 [12:41:54]save to /storage/0534/doc_00165673 [12:41:54]save last doc name /storage/0534/doc_00165673 to /storage/kkm_last_doc_name [12:41:54]save OK [12:41:54]Clear old archive folders... [12:41:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:54]tlvbuf is 0184C300 [12:41:54]SAM_PROTO_ClearQueue [12:41:54]wFMCommunicate request_size=4 [12:41:54]MH_SAM_APDU [12:41:54]CAPDU: 80 09 00 00 [12:41:54]Write to MH i2c: E2 08 00 05 E9 80 09 00 00 00 00 00 00 60 [12:41:54]Write i2c OK [12:41:54]MH_I2C_Read... [12:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:54]Read from MH i2c: E2 [12:41:54]MH_I2C_Read... [12:41:54]Read from MH i2c: E2 03 00 [12:41:54]MH_I2C_Read... [12:41:54]Read from MH i2c: E2 03 00 05 E9 00 90 00 62 [12:41:54]RAPDU: 90 00 [12:41:54]wFMCommunicate OK [12:41:54]SAM_PROTO_ClearQueue done [12:41:54]KKMCreateOFDPacket [12:41:54]OFDProtocolAddRootSTLVToBuf [12:41:54]FM_MakeSignedData [12:41:54]FM_MakeSignedData [12:41:54]SAM_PROTO_SignData [12:41:54]wFMCommunicate request_size=4 [12:41:54]MH_SAM_APDU [12:41:54]CAPDU: 80 0D 01 02 [12:41:54]Write to MH i2c: E2 08 00 06 E9 80 0D 01 02 00 00 00 00 68 [12:41:54]Write i2c OK [12:41:54]MH_I2C_Read... [12:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:54]Read from MH i2c: E2 [12:41:54]MH_I2C_Read... [12:41:54]Read from MH i2c: E2 03 00 [12:41:54]MH_I2C_Read... [12:41:54]Read from MH i2c: E2 03 00 06 E9 00 90 00 63 [12:41:54]RAPDU: 90 00 [12:41:54]wFMCommunicate OK [12:41:54]wFMCommunicate request_size=255 [12:41:54]MH_SAM_APDU [12: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 12 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 0E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 53 00 00 00 00 07 04 06 00 D0 0E 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 9E FA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 87 02 00 35 04 06 00 BB [12:41:54]Write to MH i2c: E2 02 01 07 E9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 0E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 53 00 00 00 00 07 04 06 00 D0 0E 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 9E FA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 87 02 00 35 04 06 00 BB 00 00 E9 [12:41:55]Write i2c OK [12:41:55]MH_I2C_Read... [12:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:55]Read from MH i2c: E2 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: E2 03 00 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: E2 03 00 07 E9 00 90 00 64 [12:41:55]RAPDU: 90 00 [12:41:55]wFMCommunicate OK [12:41:55]wFMCommunicate request_size=10 [12:41:55]MH_SAM_APDU [12:41:55]CAPDU: 80 0D 02 02 05 03 EF B0 8A 82 [12:41:55]Write to MH i2c: E2 0D 00 08 E9 80 0D 02 02 05 00 03 EF B0 8A 82 00 00 23 [12:41:55]Write i2c OK [12:41:55]MH_I2C_Read... [12:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:55]Read from MH i2c: E2 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: E2 03 00 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: E2 03 00 08 E9 00 90 00 65 [12:41:55]RAPDU: 90 00 [12:41:55]wFMCommunicate OK [12:41:55]wFMCommunicate request_size=4 [12:41:55]MH_SAM_APDU [12:41:55]CAPDU: 80 0D 03 02 [12:41:55]Write to MH i2c: E2 08 00 09 E9 80 0D 03 02 00 00 00 00 6D [12:41:55]Write i2c OK [12:41:55]MH_I2C_Read... [12:41:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:55]Read from MH i2c: E2 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: E2 0B 00 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: E2 0B 00 09 E9 00 B0 67 1E 70 09 6C 7E DE 90 00 E4 [12:41:55]RAPDU: B0 67 1E 70 09 6C 7E DE 90 00 [12:41:55]wFMCommunicate OK [12:41:55]SAM_PROTO_SignData done [12:41:55]FM_MakeSignedData done [12:41:55]CreateOFDProtocolMessage [12:41:55]wFMCommunicate request_size=4 [12:41:55]MH_SAM_APDU [12:41:55]CAPDU: 80 11 00 00 [12:41:55]Write to MH i2c: E2 08 00 0A E9 80 11 00 00 00 00 00 00 6D [12:41:55]Write i2c OK [12:41:55]MH_I2C_Read... [12:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:55]Read from MH i2c: E2 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: E2 17 00 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: E2 17 00 0A E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [12:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:41:55]wFMCommunicate OK [12:41:55]CreateOFDProtocolMessage done [12:41:55]OFDSenderStorePacket 165673 [12:41:55]StoreOFDPacket docnum=165673 [12:41:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 EB 07 01 A7 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 12 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 0E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 53 00 00 00 00 07 04 06 00 D0 0E 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 9E FA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 87 02 00 35 04 06 00 BB 03 EF B0 8A 82 B0 67 1E 70 09 6C 7E DE [12:41:55]CheckFolder [12:41:55]dirname=/storage/ofd_packets [12:41:55]CheckFolder done [12:41:55]ProducePacketName [12:41:55]name=ofd_packets/00165673 [12:41:55]NVStorageSaveData ofd_packets/00165673 [12:41:55]File name is /storage/ofd_packets/00165673 [12:41:55]Write 301 bytes [12:41:55]NVStorageSaveData done [12:41:55]OFDSenderStorePacket done [12:41:55]KKMCreateOFDPacket done [12:41:55]NVStorageSaveData kkm_last_timestamp [12:41:55]File name is /storage/kkm_last_timestamp [12:41:55]Write 4 bytes [12:41:55]NVStorageSaveData done [12:41:55]ExternCall_PrintAddStr [12:41:55]wPrintStart [12:41:55]Write to MH i2c: 01 00 00 0B E9 F4 [12:41:55]Write i2c OK [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: 01 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: 01 07 00 [12:41:55]MH_I2C_Read... [12:41:55]Read from MH i2c: 01 07 00 0B E9 00 00 00 00 00 FF 0F 09 [12:41:55]RasterBufferAndPrint [12:41:55]line Счет N : (1)220236 [12:41:55]line ИНН: 02508201610067 [12:41:55]line Контрольно-Кассовый Чек [12:41:55]line ПРОДАЖА [12:41:55]line ТРК (МРК, ГНК) : 13 [12:41:55]line Товар: 2710124130 [12:41:55]line Аи-92-К-5 [12:41:55]line 29.970 * 66.90 [12:41:55]line = 2004.99 [12:41:55]line НДС 12% НСП 1% [12:41:55]line > о реализуемом товаре [12:41:55]line ОКРУГЛЕНИЕ: -0.99 [12:41:55]line ИТОГО: 2004.00 [12:41:55]line Внесено: 2005.00 [12:41:55]line СДАЧА: 1.00 [12:41:55]line НСП 1% : 17.74 [12:41:55]line НДС 12% : 212.92 [12:41:55]line Наличными: 2004.00 [12:41:55]line Безнал.: 0.00 [12:41:55]line Место: АЗС № 161 "Партнер Нефть" [12:41:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:41:55]line СНО: Общий режим [12:41:55]line Чек 155 20.10.2024 12:42 [12:41:55]line Смена: 534 ФФД: 1.0 [12:41:55]line ЗНМ: 0300000104 [12:41:55]line РНМ: 0000000000091764 [12:41:55]line Версия ККМ: 001 [12:41:55]line ФМ: 0000000000871759 [12:41:55]line ФД: 165673 [12:41:55]line ФПД: 205625580620418 [12:41:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124206&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165673&fm=205625580620418&tin=02508201610067®Number=0000000000091764&sum=200400 [12:41:55]OFD Sender: Processing packet 165673 [packets to send 48, broken 47] [12:41:55]ProducePacketName [12:41:55]name=ofd_packets/00165673 [12:41:55]OFD Sender: To server: pG, [12:41:55]CommunicateWithHost lk.salyk.kg:30040 [12:41:55]ConnectInit lk.salyk.kg [12:41:55]written 0, free lines is 4095 [12:41:55]Connected sock=10 [12: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 31 37 35 39 0F 01 00 00 82 EB 07 01 A7 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 12 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 0E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 53 00 00 00 00 07 04 06 00 D0 0E 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 9E FA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 87 02 00 35 04 06 00 BB 03 EF B0 8A 82 B0 67 1E 70 09 6C 7E DE [12:41:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DC A8 47 00 13 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 87 02 00 F4 03 04 00 10 A1 14 67 B6 04 01 00 00 09 9D 4E 29 C2 0E 96 7D [12:41:56]CommunicateWithHost err = 0 [12:41:56]CheckOFDResponse [12:41:56]1017 (14) - 77093643461234 [12:41:56]1041 (16) - 0000000000871759 [12:41:56]1040 (4) - 165673 [12:41:56]1012 (4) - 20.10.2024 06:20 [12:41:56]1206 (1) - 0 [12:41:56]OFD Sender: Remove packet 165673 [12:41:56]ProducePacketName [12:41:56]name=ofd_packets/00165673 [12:41:56]NVStorageDeleteData [12:41:56]Write to MH i2c: 01 00 00 36 E9 1F [12:41:56]Write i2c OK [12:41:56]MH_I2C_Read... [12:41:56]Read from MH i2c: 01 [12:41:56]MH_I2C_Read... [12:41:56]Read from MH i2c: 01 07 00 [12:41:56]MH_I2C_Read... [12:41:56]Read from MH i2c: 01 07 00 36 E9 00 00 00 00 00 C1 0C F3 [12:41:56]RasterBufferAndPrint [12:41:56]line [12:41:56]line [12:41:56]line [12:41:56]line [12:41:56]line [12:41:56]written 0, free lines is 3270 [12:41:56]MH_Cut [12:41:56]Write to MH i2c: D1 01 00 3D E9 01 F8 [12:41:56]Write i2c OK [12:41:56]MH_I2C_Read... [12:41:56]Read from MH i2c: D1 [12:41:56]MH_I2C_Read... [12:41:56]Read from MH i2c: D1 01 00 [12:41:56]MH_I2C_Read... [12:41:56]Read from MH i2c: D1 01 00 3D E9 00 F7 [12:41:56]Write to MH i2c: 01 00 00 3E E9 27 [12:41:56]Write i2c OK [12:41:56]MH_I2C_Read... [12:41:56]OFD Sender: No OFD packet to send [12:41:57]*** Cut start [12:41:57]*** Partial cut [12:41:57]*** CUTSNS_PIN = 1 [12:41:57]*** CUTSNS_PIN = 0 [12:41:57]*** Brake cut motor [12:41:57]Read from MH i2c: 01 [12:41:57]MH_I2C_Read... [12:41:57]*** Stop cut motor [12:41:57]*** Cut end [12:41:57]Read from MH i2c: 01 07 00 [12:41:57]MH_I2C_Read... [12:41:57]Read from MH i2c: 01 07 00 3E E9 00 00 00 00 00 FF 0F 3C [12:41:57]process_action close_receipt done [12:41:57]requested_data is exist [12:41:57]produce_requested_data [12:41:57]requested_item fm.sn is exist - process it [12:41:57]wFMCommunicate request_size=4 [12:41:57]MH_SAM_APDU [12:41:57]CAPDU: 80 11 00 00 [12:41:57]Write to MH i2c: E2 08 00 3F E9 80 11 00 00 00 00 00 00 A2 [12:41:57]Write i2c OK [12:41:57]MH_I2C_Read... [12:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:57]Read from MH i2c: E2 [12:41:57]MH_I2C_Read... [12:41:57]Read from MH i2c: E2 17 00 [12:41:57]MH_I2C_Read... [12:41:57]Read from MH i2c: E2 17 00 3F E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [12:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:41:57]wFMCommunicate OK [12:41:57]requested_item fd.num is exist - process it [12:41:57]SAM_PROTO_GetFieldsCounters [12:41:57]wFMCommunicate request_size=4 [12:41:57]MH_SAM_APDU [12:41:57]CAPDU: 80 13 00 00 [12:41:57]Write to MH i2c: E2 08 00 40 E9 80 13 00 00 00 00 00 00 A5 [12:41:57]Write i2c OK [12:41:57]MH_I2C_Read... [12:41:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:57]Read from MH i2c: E2 [12:41:57]MH_I2C_Read... [12:41:57]Read from MH i2c: E2 62 00 [12:41:57]MH_I2C_Read... [12:41:57]Read from MH i2c: E2 62 00 40 E9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 87 02 00 0E 04 04 00 16 02 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 68 [12:41:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 87 02 00 0E 04 04 00 16 02 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:41:57]wFMCommunicate OK [12:41:57]SAM_PROTO_GetFieldsCounters done [12:41:57]requested_item shift.num is exist - process it [12:41:57]requested_item shift.opened is exist - process it [12:41:57]req_shift_opened [12:41:57]FM_GetShiftState [12:41:57]SAM_PROTO_GetShiftState [12:41:57]wFMCommunicate request_size=4 [12:41:57]MH_SAM_APDU [12:41:57]CAPDU: 80 13 01 00 [12:41:57]Write to MH i2c: E2 08 00 41 E9 80 13 01 00 00 00 00 00 A7 [12:41:57]Write i2c OK [12:41:57]MH_I2C_Read... [12:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:57]Read from MH i2c: E2 [12:41:57]MH_I2C_Read... [12:41:57]Read from MH i2c: E2 0E 00 [12:41:57]MH_I2C_Read... [12:41:57]Read from MH i2c: E2 0E 00 41 E9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EF [12:41:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:41:57]wFMCommunicate OK [12:41:57]SAM_PROTO_GetShiftState done [12:41:57]FM_GetShiftState done [12:41:57]req_shift_opened done [12:41:57]requested_item shift.open_date is exist - process it [12:41:57]req_shift_open_date [12:41:57]req_shift_open_date done [12:41:57]produce_requested_data done [12:41:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165673,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:41:57]process_action_free close_receipt [12:41:57]json_value_free [12:41:57]json_value_free done [12:41:57]process_json_proto returns [12:41:57]Send response to host [12:41:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165673,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:41:57]free response buf [12:41:57]execute_script done [12:41:57]execute_script returns [12:41:57]free content buf [12:41:57]Sock 7.Close socket [12:41:57]Sock 7.Thread stoped [12:41:58]accept exits with 9 [12:41:58]New connection [12:41:58]New thread 3066776932 created [12:41:58]Thread 3066920292 joined [12:41:58]Waiting for new connection... [12:41:58] Sock 9.Parse request [12:41:58]Sock 9.Check first char [12:41:58]Sock 9.First char is OK [12:41:58]request: POST /json_proto HTTP/1.0 [12:41:58]Method: POST [12:41:58]URL: /json_proto [12:41:58]Method is POST - this is cgi request [12:41:58]url: /json_proto [12:41:58]query_string will be loaded in cgi processing [12:41:58]execute_cgi json_proto POST (null) [12:41:58]execute_cgi path=json_proto method=POST [12:41:58]POST find Content-Length [12:41:58]Host: 172.17.53.195:8080 [12:41:58]Content-Length: 677 [12:41:58]Content-Type: application/json [12:41:58] [12:41:58]POST finish read [12:41:58]Found Content-Length = 677 [12:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.500, "sum" : 630.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:58]execute_script... [12:41: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)220237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.500, "sum" : 630.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:58]POST & json_proto [12:41:58]process_json_proto [12:41:58]json parsed OK: [12:41:58]protocol is kg_v1.0 [12:41:58]action value=close_receipt [12:41:58]process_action close_receipt [12:41:58]cmd_close_receipt [12:41:58]MH_GetDate [12:41:58]Write to MH i2c: F0 00 00 42 E9 1A [12:41:58]Write i2c OK [12:41:58]MH_I2C_Read... [12:41:58]Read from MH i2c: F0 [12:41:58]MH_I2C_Read... [12:41:58]Read from MH i2c: F0 09 00 [12:41:58]MH_I2C_Read... [12:41:58]Read from MH i2c: F0 09 00 42 E9 00 A3 FA 14 67 21 48 4A 65 53 [12:41:58]GetLastDocTimeStamp 1729428126 [12:41:58]current date 1729428131 [12:41:58]FM_GetShiftState [12:41:58]SAM_PROTO_GetShiftState [12:41:58]wFMCommunicate request_size=4 [12:41:58]MH_SAM_APDU [12:41:58]CAPDU: 80 13 01 00 [12:41:58]Write to MH i2c: E2 08 00 43 E9 80 13 01 00 00 00 00 00 A9 [12:41:58]Write i2c OK [12:41:58]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 [12:41:59]MH_I2C_Read... [12:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:59]Read from MH i2c: E2 0E 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 0E 00 43 E9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F1 [12:41:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:41:59]wFMCommunicate OK [12:41:59]SAM_PROTO_GetShiftState done [12:41:59]FM_GetShiftState done [12:41:59]opened in 1729384561 [12:41:59]opened+sec_in_day 1729470961 [12:41:59]quantity*price = 63070 [12:41:59]sum+1 = 63071 [12:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.98 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 156 20.10.2024 12:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165674 ФПД: 187129749872664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124211&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165674&fm=187129749872664&tin=02508201610067®Number=0000000000091764&sum=63000 [12:42:00]StoreToDocumentArchive [12:42:00]shift 534 fd 165674 [12:42:00]save to /storage/0534/doc_00165674 [12:42:00]save last doc name /storage/0534/doc_00165674 to /storage/kkm_last_doc_name [12:42:00]save OK [12:42:00]Clear old archive folders... [12:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:00]tlvbuf is 01731DC0 [12:42:00]SAM_PROTO_ClearQueue [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 09 00 00 [12:42:00]Write to MH i2c: E2 08 00 50 E9 80 09 00 00 00 00 00 00 AB [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 50 E9 00 90 00 AD [12:42:00]RAPDU: 90 00 [12:42:00]wFMCommunicate OK [12:42:00]SAM_PROTO_ClearQueue done [12:42:00]KKMCreateOFDPacket [12:42:00]OFDProtocolAddRootSTLVToBuf [12:42:00]FM_MakeSignedData [12:42:00]FM_MakeSignedData [12:42:00]SAM_PROTO_SignData [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 0D 01 02 [12:42:00]Write to MH i2c: E2 08 00 51 E9 80 0D 01 02 00 00 00 00 B3 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 51 E9 00 90 00 AE [12:42:00]RAPDU: 90 00 [12:42:00]wFMCommunicate OK [12:42:00]wFMCommunicate request_size=255 [12:42:00]MH_SAM_APDU [12:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 21 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5E F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 1A 00 00 00 00 07 04 06 00 18 F6 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 A3 FA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 87 02 00 35 04 06 00 AA [12:42:00]Write to MH i2c: E2 02 01 52 E9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 21 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5E F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 1A 00 00 00 00 07 04 06 00 18 F6 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 A3 FA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 87 02 00 35 04 06 00 AA 00 00 42 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 52 E9 00 90 00 AF [12:42:00]RAPDU: 90 00 [12:42:00]wFMCommunicate OK [12:42:00]wFMCommunicate request_size=10 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 0D 02 02 05 31 8A 44 A0 18 [12:42:00]Write to MH i2c: E2 0D 00 53 E9 80 0D 02 02 05 00 31 8A 44 A0 18 00 00 77 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 53 E9 00 90 00 B0 [12:42:00]RAPDU: 90 00 [12:42:00]wFMCommunicate OK [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 0D 03 02 [12:42:00]Write to MH i2c: E2 08 00 54 E9 80 0D 03 02 00 00 00 00 B8 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 0B 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 0B 00 54 E9 00 68 8E 4B 2B FF 26 78 59 90 00 1B [12:42:00]RAPDU: 68 8E 4B 2B FF 26 78 59 90 00 [12:42:00]wFMCommunicate OK [12:42:00]SAM_PROTO_SignData done [12:42:00]FM_MakeSignedData done [12:42:00]CreateOFDProtocolMessage [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 11 00 00 [12:42:00]Write to MH i2c: E2 08 00 55 E9 80 11 00 00 00 00 00 00 B8 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 17 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 17 00 55 E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [12:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:42:01]wFMCommunicate OK [12:42:01]CreateOFDProtocolMessage done [12:42:01]OFDSenderStorePacket 165674 [12:42:01]StoreOFDPacket docnum=165674 [12:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DB 5F 07 01 B4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 21 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5E F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 1A 00 00 00 00 07 04 06 00 18 F6 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 A3 FA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 87 02 00 35 04 06 00 AA 31 8A 44 A0 18 68 8E 4B 2B FF 26 78 59 [12:42:01]CheckFolder [12:42:01]dirname=/storage/ofd_packets [12:42:01]CheckFolder done [12:42:01]ProducePacketName [12:42:01]name=ofd_packets/00165674 [12:42:01]NVStorageSaveData ofd_packets/00165674 [12:42:01]File name is /storage/ofd_packets/00165674 [12:42:01]Write 301 bytes [12:42:01]NVStorageSaveData done [12:42:01]OFDSenderStorePacket done [12:42:01]KKMCreateOFDPacket done [12:42:01]NVStorageSaveData kkm_last_timestamp [12:42:01]File name is /storage/kkm_last_timestamp [12:42:01]Write 4 bytes [12:42:01]NVStorageSaveData done [12:42:01]ExternCall_PrintAddStr [12:42:01]wPrintStart [12:42:01]Write to MH i2c: 01 00 00 56 E9 3F [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 56 E9 00 00 00 00 00 FF 0F 54 [12:42:01]RasterBufferAndPrint [12:42:01]line Счет N : (1)220237 [12:42:01]line ИНН: 02508201610067 [12:42:01]line Контрольно-Кассовый Чек [12:42:01]line ПРОДАЖА [12:42:01]line ТРК (МРК, ГНК) : 34 [12:42:01]line Товар: 2710124500 [12:42:01]line Аи-95-К-5 [12:42:01]line 8.500 * 74.20 [12:42:01]line = 630.70 [12:42:01]line НДС 12% НСП 1% [12:42:01]line > о реализуемом товаре [12:42:01]line ОКРУГЛЕНИЕ: -0.70 [12:42:01]line ИТОГО: 630.00 [12:42:01]line Внесено: 630.00 [12:42:01]line СДАЧА: 0.00 [12:42:01]line НСП 1% : 5.58 [12:42:01]line НДС 12% : 66.98 [12:42:01]line Наличными: 630.00 [12:42:01]line Безнал.: 0.00 [12:42:01]line Место: АЗС № 161 "Партнер Нефть" [12:42:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:42:01]line СНО: Общий режим [12:42:01]line Чек 156 20.10.2024 12:42 [12:42:01]line Смена: 534 ФФД: 1.0 [12:42:01]line ЗНМ: 0300000104 [12:42:01]line РНМ: 0000000000091764 [12:42:01]line Версия ККМ: 001 [12:42:01]line ФМ: 0000000000871759 [12:42:01]line ФД: 165674 [12:42:01]line ФПД: 187129749872664 [12:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124211&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165674&fm=187129749872664&tin=02508201610067®Number=0000000000091764&sum=63000 [12:42:01]written 0, free lines is 4095 [12:42:01]OFD Sender: Processing packet 165674 [packets to send 48, broken 47] [12:42:01]ProducePacketName [12:42:01]name=ofd_packets/00165674 [12:42:01]OFD Sender: To server: pG, [12:42:01]CommunicateWithHost lk.salyk.kg:30040 [12:42:01]ConnectInit lk.salyk.kg [12:42:01]Connected sock=10 [12:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DB 5F 07 01 B4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 21 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5E F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 1A 00 00 00 00 07 04 06 00 18 F6 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 A3 FA 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 87 02 00 35 04 06 00 AA 31 8A 44 A0 18 68 8E 4B 2B FF 26 78 59 [12:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E8 33 47 00 45 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 31 37 35 39 10 04 04 00 2A 87 02 00 F4 03 04 00 15 A1 14 67 B6 04 01 00 00 07 2F 54 FF 76 C0 05 B8 [12:42:01]CommunicateWithHost err = 0 [12:42:01]CheckOFDResponse [12:42:01]1017 (14) - 77093643461234 [12:42:01]1041 (16) - 0000000000871759 [12:42:01]1040 (4) - 165674 [12:42:01]1012 (4) - 20.10.2024 06:20 [12:42:01]1206 (1) - 0 [12:42:01]OFD Sender: Remove packet 165674 [12:42:01]ProducePacketName [12:42:01]name=ofd_packets/00165674 [12:42:01]NVStorageDeleteData [12:42:01]Write to MH i2c: 01 00 00 81 E9 6A [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 81 E9 00 00 00 00 00 DD 0C 5A [12:42:01]RasterBufferAndPrint [12:42:01]line [12:42:01]line [12:42:01]line [12:42:01]line [12:42:01]line [12:42:01]written 0, free lines is 3305 [12:42:01]MH_Cut [12:42:01]Write to MH i2c: D1 01 00 88 E9 01 43 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: D1 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: D1 01 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: D1 01 00 88 E9 00 42 [12:42:01]Write to MH i2c: 01 00 00 89 E9 72 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]OFD Sender: No OFD packet to send [12:42:02]*** Cut start [12:42:02]*** Partial cut [12:42:02]*** CUTSNS_PIN = 1 [12:42:02]*** CUTSNS_PIN = 0 [12:42:02]*** Brake cut motor [12:42:02]Read from MH i2c: 01 [12:42:02]MH_I2C_Read... [12:42:02]*** Stop cut motor [12:42:02]*** Cut end [12:42:02]Read from MH i2c: 01 07 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 07 00 89 E9 00 00 00 00 00 FF 0F 87 [12:42:02]process_action close_receipt done [12:42:02]requested_data is exist [12:42:02]produce_requested_data [12:42:02]requested_item fm.sn is exist - process it [12:42:02]wFMCommunicate request_size=4 [12:42:02]MH_SAM_APDU [12:42:02]CAPDU: 80 11 00 00 [12:42:02]Write to MH i2c: E2 08 00 8A E9 80 11 00 00 00 00 00 00 ED [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:02]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 17 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 17 00 8A E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [12:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:42:03]wFMCommunicate OK [12:42:03]requested_item fd.num is exist - process it [12:42:03]SAM_PROTO_GetFieldsCounters [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 13 00 00 [12:42:03]Write to MH i2c: E2 08 00 8B E9 80 13 00 00 00 00 00 00 F0 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 62 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 62 00 8B E9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 87 02 00 0E 04 04 00 16 02 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 B7 [12:42: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 87 02 00 0E 04 04 00 16 02 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:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_GetFieldsCounters done [12:42:03]requested_item shift.num is exist - process it [12:42:03]requested_item shift.opened is exist - process it [12:42:03]req_shift_opened [12:42:03]FM_GetShiftState [12:42:03]SAM_PROTO_GetShiftState [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 13 01 00 [12:42:03]Write to MH i2c: E2 08 00 8C E9 80 13 01 00 00 00 00 00 F2 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 8C E9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3A [12:42:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_GetShiftState done [12:42:03]FM_GetShiftState done [12:42:03]req_shift_opened done [12:42:03]requested_item shift.open_date is exist - process it [12:42:03]req_shift_open_date [12:42:03]req_shift_open_date done [12:42:03]produce_requested_data done [12:42:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165674,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:42:03]process_action_free close_receipt [12:42:03]json_value_free [12:42:03]json_value_free done [12:42:03]process_json_proto returns [12:42:03]Send response to host [12:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165674,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:42:03]free response buf [12:42:03]execute_script done [12:42:03]execute_script returns [12:42:03]free content buf [12:42:03]Sock 9.Close socket [12:42:03]Sock 9.Thread stoped [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:34]accept exits with 7 [12:46:34]New connection [12:46:34]New thread 3066920292 created [12:46:34]Thread 3066776932 joined [12:46:34]Waiting for new connection... [12:46:34] Sock 7.Parse request [12:46:34]Sock 7.Check first char [12:46:34]Sock 7.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.53.195:8080 [12:46:34]Content-Length: 682 [12:46:34]Content-Type: application/json [12:46:34] [12:46:34]POST finish read [12:46:34]Found Content-Length = 682 [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)220238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)220238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 8D E9 65 [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 8D E9 00 B6 FB 14 67 21 48 4A 65 B2 [12:46:34]GetLastDocTimeStamp 1729428131 [12:46:34]current date 1729428406 [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 8E E9 80 13 01 00 00 00 00 00 F4 [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 8E E9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3C [12:46:34]RAPDU: 09 00 01 71 50 14 67 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 1729384561 [12:46:34]opened+sec_in_day 1729470961 [12:46:34]quantity*price = 100015 [12:46:34]sum+1 = 100017 [12:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 157 20.10.2024 12:46 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165675 ФПД: 258747076246076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124646&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165675&fm=258747076246076&tin=02508201610067®Number=0000000000091764&sum=100000 [12:46:35]StoreToDocumentArchive [12:46:35]shift 534 fd 165675 [12:46:35]save to /storage/0534/doc_00165675 [12:46:35]save last doc name /storage/0534/doc_00165675 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 01464E80 [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 9B E9 80 09 00 00 00 00 00 00 F6 [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 9B E9 00 90 00 F8 [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 9C E9 80 0D 01 02 00 00 00 00 FE [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 9C E9 00 90 00 F9 [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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B6 FB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 87 02 00 35 04 06 00 EB [12:46:35]Write to MH i2c: E2 02 01 9D E9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B6 FB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 87 02 00 35 04 06 00 EB 00 00 0E [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 02 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 9D E9 00 90 00 FA [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=10 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 02 02 05 54 3F 90 FA 3C [12:46:35]Write to MH i2c: E2 0D 00 9E E9 80 0D 02 02 05 00 54 3F 90 FA 3C 00 00 64 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 02 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 9E E9 00 90 00 FB [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 03 02 [12:46:35]Write to MH i2c: E2 08 00 9F E9 80 0D 03 02 00 00 00 00 03 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 0B 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 0B 00 9F E9 00 0C 36 63 B3 3E 79 00 35 90 00 48 [12:46:35]RAPDU: 0C 36 63 B3 3E 79 00 35 90 00 [12:46:35]wFMCommunicate OK [12:46:35]SAM_PROTO_SignData done [12:46:35]FM_MakeSignedData done [12:46:35]CreateOFDProtocolMessage [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 11 00 00 [12:46:35]Write to MH i2c: E2 08 00 A0 E9 80 11 00 00 00 00 00 00 03 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 17 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 17 00 A0 E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [12:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:35]wFMCommunicate OK [12:46:35]CreateOFDProtocolMessage done [12:46:35]OFDSenderStorePacket 165675 [12:46:35]StoreOFDPacket docnum=165675 [12:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 19 AE 07 01 60 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B6 FB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 87 02 00 35 04 06 00 EB 54 3F 90 FA 3C 0C 36 63 B3 3E 79 00 35 [12:46:35]CheckFolder [12:46:35]dirname=/storage/ofd_packets [12:46:35]CheckFolder done [12:46:35]ProducePacketName [12:46:35]name=ofd_packets/00165675 [12:46:35]NVStorageSaveData ofd_packets/00165675 [12:46:35]File name is /storage/ofd_packets/00165675 [12:46:35]Write 301 bytes [12:46:35]NVStorageSaveData done [12:46:35]OFDSenderStorePacket done [12:46:35]KKMCreateOFDPacket done [12:46:35]NVStorageSaveData kkm_last_timestamp [12:46:35]File name is /storage/kkm_last_timestamp [12:46:35]Write 4 bytes [12:46:35]NVStorageSaveData done [12:46:35]ExternCall_PrintAddStr [12:46:35]wPrintStart [12:46:35]Write to MH i2c: 01 00 00 A1 E9 8A [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 A1 E9 00 00 00 00 00 FF 0F 9F [12:46:35]RasterBufferAndPrint [12:46:35]line Счет N : (1)220238 [12:46:35]line ИНН: 02508201610067 [12:46:35]line Контрольно-Кассовый Чек [12:46:35]line ПРОДАЖА [12:46:35]line ТРК (МРК, ГНК) : 43 [12:46:35]line Товар: 2710124130 [12:46:35]line Аи-92-К-5 [12:46:35]line 14.950 * 66.90 [12:46:35]line = 1000.16 [12:46:35]line НДС 12% НСП 1% [12:46:35]line > о реализуемом товаре [12:46:35]line ОКРУГЛЕНИЕ: -0.16 [12:46:35]line ИТОГО: 1000.00 [12:46:35]line Внесено: 1000.00 [12:46:35]line СДАЧА: 0.00 [12:46:35]line НСП 1% : 8.85 [12:46:35]line НДС 12% : 106.21 [12:46:35]line Наличными: 1000.00 [12:46:35]line Безнал.: 0.00 [12:46:35]line Место: АЗС № 161 "Партнер Нефть" [12:46:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:46:35]line СНО: Общий режим [12:46:35]line Чек 157 20.10.2024 12:46 [12:46:35]line Смена: 534 ФФД: 1.0 [12:46:35]line ЗНМ: 0300000104 [12:46:35]line РНМ: 0000000000091764 [12:46:35]line Версия ККМ: 001 [12:46:35]line ФМ: 0000000000871759 [12:46:35]line ФД: 165675 [12:46:35]line ФПД: 258747076246076 [12:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124646&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165675&fm=258747076246076&tin=02508201610067®Number=0000000000091764&sum=100000 [12:46:36]OFD Sender: Processing packet 165675 [packets to send 48, broken 47] [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00165675 [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]written 0, free lines is 4095 [12:46:36]Connected sock=11 [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 31 37 35 39 0F 01 00 00 19 AE 07 01 60 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B6 FB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 87 02 00 35 04 06 00 EB 54 3F 90 FA 3C 0C 36 63 B3 3E 79 00 35 [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 31 37 35 39 4F 00 00 00 F0 27 47 00 A2 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 87 02 00 F4 03 04 00 28 A2 14 67 B6 04 01 00 00 CE 15 00 42 F0 02 B4 D9 [12:46:36]CommunicateWithHost err = 0 [12:46:36]CheckOFDResponse [12:46:36]1017 (14) - 77093643461234 [12:46:36]1041 (16) - 0000000000871759 [12:46:36]1040 (4) - 165675 [12:46:36]1012 (4) - 20.10.2024 06:24 [12:46:36]1206 (1) - 0 [12:46:36]OFD Sender: Remove packet 165675 [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00165675 [12:46:36]NVStorageDeleteData [12:46:36]Write to MH i2c: 01 00 00 CC E9 B5 [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 CC E9 00 00 00 00 00 C0 0C 88 [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 3269 [12:46:36]MH_Cut [12:46:36]Write to MH i2c: D1 01 00 D3 E9 01 8E [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 D3 E9 00 8D [12:46:36]Write to MH i2c: 01 00 00 D4 E9 BD [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 D4 E9 00 00 00 00 00 FF 0F D2 [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 D5 E9 80 11 00 00 00 00 00 00 38 [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 D5 E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 90 [12:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 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 D6 E9 80 13 00 00 00 00 00 00 3B [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 D6 E9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 87 02 00 0E 04 04 00 16 02 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 06 [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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 87 02 00 0E 04 04 00 16 02 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: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 D7 E9 80 13 01 00 00 00 00 00 3D [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 D7 E9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 85 [12:46:38]RAPDU: 09 00 01 71 50 14 67 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":"0000000000871759","fd.num":165675,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [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":"0000000000871759","fd.num":165675,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [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 7.Close socket [12:46:38]Sock 7.Thread stoped [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:48]accept exits with 9 [12:46:48]New connection [12:46:48]New thread 3066776932 created [12:46:48]Thread 3066920292 joined [12:46:48]Waiting for new connection... [12:46:48] Sock 9.Parse request [12:46:48]Sock 9.Check first char [12:46:48]Sock 9.First char is OK [12:46:48]request: POST /json_proto HTTP/1.0 [12:46:48]Method: POST [12:46:48]URL: /json_proto [12:46:48]Method is POST - this is cgi request [12:46:48]url: /json_proto [12:46:48]query_string will be loaded in cgi processing [12:46:48]execute_cgi json_proto POST (null) [12:46:48]execute_cgi path=json_proto method=POST [12:46:48]POST find Content-Length [12:46:48]Host: 172.17.53.195:8080 [12:46:48]Content-Length: 682 [12:46:48]Content-Type: application/json [12:46:48] [12:46:48]POST finish read [12:46:48]Found Content-Length = 682 [12:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [12:46:48]execute_script... [12:46: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)220239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [12:46:48]POST & json_proto [12:46:48]process_json_proto [12:46:48]json parsed OK: [12:46:48]protocol is kg_v1.0 [12:46:48]action value=close_receipt [12:46:48]process_action close_receipt [12:46:48]cmd_close_receipt [12:46:48]MH_GetDate [12:46:48]Write to MH i2c: F0 00 00 D8 E9 B0 [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: F0 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: F0 09 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: F0 09 00 D8 E9 00 C4 FB 14 67 21 48 4A 65 0B [12:46:48]GetLastDocTimeStamp 1729428406 [12:46:48]current date 1729428420 [12:46:48]FM_GetShiftState [12:46:48]SAM_PROTO_GetShiftState [12:46:48]wFMCommunicate request_size=4 [12:46:48]MH_SAM_APDU [12:46:48]CAPDU: 80 13 01 00 [12:46:48]Write to MH i2c: E2 08 00 D9 E9 80 13 01 00 00 00 00 00 3F [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:48]Read from MH i2c: E2 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 0E 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 0E 00 D9 E9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 87 [12:46:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:46:48]wFMCommunicate OK [12:46:48]SAM_PROTO_GetShiftState done [12:46:48]FM_GetShiftState done [12:46:48]opened in 1729384561 [12:46:48]opened+sec_in_day 1729470961 [12:46:48]quantity*price = 150032 [12:46:48]sum+1 = 150033 [12:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 158 20.10.2024 12:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165676 ФПД: 252948222855859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124700&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165676&fm=252948222855859&tin=02508201610067®Number=0000000000091764&sum=150000 [12:46:49]StoreToDocumentArchive [12:46:49]shift 534 fd 165676 [12:46:49]save to /storage/0534/doc_00165676 [12:46:49]save last doc name /storage/0534/doc_00165676 to /storage/kkm_last_doc_name [12:46:49]save OK [12:46:49]Clear old archive folders... [12:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:49]tlvbuf is 015BD350 [12:46:49]SAM_PROTO_ClearQueue [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 09 00 00 [12:46:49]Write to MH i2c: E2 08 00 E6 E9 80 09 00 00 00 00 00 00 41 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 03 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 03 00 E6 E9 00 90 00 43 [12:46:49]RAPDU: 90 00 [12:46:49]wFMCommunicate OK [12:46:49]SAM_PROTO_ClearQueue done [12:46:49]KKMCreateOFDPacket [12:46:49]OFDProtocolAddRootSTLVToBuf [12:46:49]FM_MakeSignedData [12:46:49]FM_MakeSignedData [12:46:49]SAM_PROTO_SignData [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 0D 01 02 [12:46:49]Write to MH i2c: E2 08 00 E7 E9 80 0D 01 02 00 00 00 00 49 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 03 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 03 00 E7 E9 00 90 00 44 [12:46:49]RAPDU: 90 00 [12:46:49]wFMCommunicate OK [12:46:49]wFMCommunicate request_size=255 [12:46:49]MH_SAM_APDU [12:46: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 9E 00 00 00 F4 03 04 00 C4 FB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 87 02 00 35 04 06 00 E6 [12:46:49]Write to MH i2c: E2 02 01 E8 E9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 9E 00 00 00 F4 03 04 00 C4 FB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 87 02 00 35 04 06 00 E6 00 00 CD [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 03 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 03 00 E8 E9 00 90 00 45 [12:46:49]RAPDU: 90 00 [12:46:49]wFMCommunicate OK [12:46:49]wFMCommunicate request_size=10 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 0D 02 02 05 0E 18 F8 4A B3 [12:46:49]Write to MH i2c: E2 0D 00 E9 E9 80 0D 02 02 05 00 0E 18 F8 4A B3 00 00 71 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 03 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 03 00 E9 E9 00 90 00 46 [12:46:49]RAPDU: 90 00 [12:46:49]wFMCommunicate OK [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 0D 03 02 [12:46:49]Write to MH i2c: E2 08 00 EA E9 80 0D 03 02 00 00 00 00 4E [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 0B 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 0B 00 EA E9 00 53 19 2C BD 76 AD 97 A4 90 00 02 [12:46:49]RAPDU: 53 19 2C BD 76 AD 97 A4 90 00 [12:46:49]wFMCommunicate OK [12:46:49]SAM_PROTO_SignData done [12:46:49]FM_MakeSignedData done [12:46:49]CreateOFDProtocolMessage [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 11 00 00 [12:46:49]Write to MH i2c: E2 08 00 EB E9 80 11 00 00 00 00 00 00 4E [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 17 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 17 00 EB E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [12:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:49]wFMCommunicate OK [12:46:49]CreateOFDProtocolMessage done [12:46:49]OFDSenderStorePacket 165676 [12:46:49]StoreOFDPacket docnum=165676 [12:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 29 4A 07 01 1D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 9E 00 00 00 F4 03 04 00 C4 FB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 87 02 00 35 04 06 00 E6 0E 18 F8 4A B3 53 19 2C BD 76 AD 97 A4 [12:46:49]CheckFolder [12:46:49]dirname=/storage/ofd_packets [12:46:49]CheckFolder done [12:46:49]ProducePacketName [12:46:49]name=ofd_packets/00165676 [12:46:49]NVStorageSaveData ofd_packets/00165676 [12:46:49]File name is /storage/ofd_packets/00165676 [12:46:49]Write 301 bytes [12:46:49]NVStorageSaveData done [12:46:49]OFDSenderStorePacket done [12:46:49]KKMCreateOFDPacket done [12:46:49]NVStorageSaveData kkm_last_timestamp [12:46:49]File name is /storage/kkm_last_timestamp [12:46:49]Write 4 bytes [12:46:49]NVStorageSaveData done [12:46:49]ExternCall_PrintAddStr [12:46:49]wPrintStart [12:46:49]Write to MH i2c: 01 00 00 EC E9 D5 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: 01 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: 01 07 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: 01 07 00 EC E9 00 00 00 00 00 FF 0F EA [12:46:49]RasterBufferAndPrint [12:46:49]line Счет N : (1)220239 [12:46:49]line ИНН: 02508201610067 [12:46:49]line Контрольно-Кассовый Чек [12:46:49]line ПРОДАЖА [12:46:49]line ТРК (МРК, ГНК) : 24 [12:46:49]line Товар: 2710124500 [12:46:49]line Аи-95-К-5 [12:46:49]line 20.220 * 74.20 [12:46:49]line = 1500.32 [12:46:49]line НДС 12% НСП 1% [12:46:49]line > о реализуемом товаре [12:46:49]line ОКРУГЛЕНИЕ: -0.32 [12:46:49]line ИТОГО: 1500.00 [12:46:49]line Внесено: 1500.00 [12:46:49]line СДАЧА: 0.00 [12:46:49]line НСП 1% : 13.28 [12:46:49]line НДС 12% : 159.33 [12:46:49]line Наличными: 1500.00 [12:46:49]line Безнал.: 0.00 [12:46:49]line Место: АЗС № 161 "Партнер Нефть" [12:46:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:46:49]line СНО: Общий режим [12:46:49]line Чек 158 20.10.2024 12:47 [12:46:49]line Смена: 534 ФФД: 1.0 [12:46:49]line ЗНМ: 0300000104 [12:46:49]line РНМ: 0000000000091764 [12:46:49]line Версия ККМ: 001 [12:46:49]line ФМ: 0000000000871759 [12:46:49]line ФД: 165676 [12:46:49]line ФПД: 252948222855859 [12:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124700&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165676&fm=252948222855859&tin=02508201610067®Number=0000000000091764&sum=150000 [12:46:50]OFD Sender: Processing packet 165676 [packets to send 48, broken 47] [12:46:50]ProducePacketName [12:46:50]name=ofd_packets/00165676 [12:46:50]OFD Sender: To server: pG, [12:46:50]CommunicateWithHost lk.salyk.kg:30040 [12:46:50]ConnectInit lk.salyk.kg [12:46:50]written 0, free lines is 4095 [12:46:50]Connected sock=10 [12:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 29 4A 07 01 1D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 9E 00 00 00 F4 03 04 00 C4 FB 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 87 02 00 35 04 06 00 E6 0E 18 F8 4A B3 53 19 2C BD 76 AD 97 A4 [12:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9A 42 47 00 44 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 31 37 35 39 10 04 04 00 2C 87 02 00 F4 03 04 00 36 A2 14 67 B6 04 01 00 00 88 DA 9D D6 54 16 98 CD [12:46:50]CommunicateWithHost err = 0 [12:46:50]CheckOFDResponse [12:46:50]1017 (14) - 77093643461234 [12:46:50]1041 (16) - 0000000000871759 [12:46:50]1040 (4) - 165676 [12:46:50]1012 (4) - 20.10.2024 06:24 [12:46:50]1206 (1) - 0 [12:46:50]OFD Sender: Remove packet 165676 [12:46:50]ProducePacketName [12:46:50]name=ofd_packets/00165676 [12:46:50]NVStorageDeleteData [12:46:50]Write to MH i2c: 01 00 00 17 EA 01 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: 01 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: 01 07 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: 01 07 00 17 EA 00 00 00 00 00 C3 0C D7 [12:46:50]RasterBufferAndPrint [12:46:50]line [12:46:50]line [12:46:50]line [12:46:50]line [12:46:50]line [12:46:50]written 0, free lines is 3274 [12:46:50]MH_Cut [12:46:50]Write to MH i2c: D1 01 00 1E EA 01 DA [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: D1 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: D1 01 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: D1 01 00 1E EA 00 D9 [12:46:50]Write to MH i2c: 01 00 00 1F EA 09 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]OFD Sender: No OFD packet to send [12:46:51]*** Cut start [12:46:51]*** Partial cut [12:46:51]*** CUTSNS_PIN = 1 [12:46:51]*** CUTSNS_PIN = 0 [12:46:51]*** Brake cut motor [12:46:52]Read from MH i2c: 01 [12:46:52]MH_I2C_Read... [12:46:52]*** Stop cut motor [12:46:52]*** Cut end [12:46:52]Read from MH i2c: 01 07 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 07 00 1F EA 00 00 00 00 00 FF 0F 1E [12:46:52]process_action close_receipt done [12:46:52]requested_data is exist [12:46:52]produce_requested_data [12:46:52]requested_item fm.sn is exist - process it [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 11 00 00 [12:46:52]Write to MH i2c: E2 08 00 20 EA 80 11 00 00 00 00 00 00 84 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 17 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 17 00 20 EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [12:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:52]wFMCommunicate OK [12:46:52]requested_item fd.num is exist - process it [12:46:52]SAM_PROTO_GetFieldsCounters [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 13 00 00 [12:46:52]Write to MH i2c: E2 08 00 21 EA 80 13 00 00 00 00 00 00 87 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 62 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 62 00 21 EA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 87 02 00 0E 04 04 00 16 02 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 56 [12:46:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 87 02 00 0E 04 04 00 16 02 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:46:52]wFMCommunicate OK [12:46:52]SAM_PROTO_GetFieldsCounters done [12:46:52]requested_item shift.num is exist - process it [12:46:52]requested_item shift.opened is exist - process it [12:46:52]req_shift_opened [12:46:52]FM_GetShiftState [12:46:52]SAM_PROTO_GetShiftState [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 13 01 00 [12:46:52]Write to MH i2c: E2 08 00 22 EA 80 13 01 00 00 00 00 00 89 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 0E 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 0E 00 22 EA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D1 [12:46:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:46:52]wFMCommunicate OK [12:46:52]SAM_PROTO_GetShiftState done [12:46:52]FM_GetShiftState done [12:46:52]req_shift_opened done [12:46:52]requested_item shift.open_date is exist - process it [12:46:52]req_shift_open_date [12:46:52]req_shift_open_date done [12:46:52]produce_requested_data done [12:46:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165676,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:46:52]process_action_free close_receipt [12:46:52]json_value_free [12:46:52]json_value_free done [12:46:52]process_json_proto returns [12:46:52]Send response to host [12:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165676,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:46:52]free response buf [12:46:52]execute_script done [12:46:52]execute_script returns [12:46:52]free content buf [12:46:52]Sock 9.Close socket [12:46:52]Sock 9.Thread stoped [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [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:06]accept exits with 7 [12:49:06]New connection [12:49:06]New thread 3066920292 created [12:49:06]Thread 3066776932 joined [12:49:06]Waiting for new connection... [12:49:06] Sock 7.Parse request [12:49:06]Sock 7.Check first char [12:49:06]Sock 7.First char is OK [12:49:06]request: POST /json_proto HTTP/1.0 [12:49:06]Method: POST [12:49:06]URL: /json_proto [12:49:06]Method is POST - this is cgi request [12:49:06]url: /json_proto [12:49:06]query_string will be loaded in cgi processing [12:49:06]execute_cgi json_proto POST (null) [12:49:06]execute_cgi path=json_proto method=POST [12:49:06]POST find Content-Length [12:49:06]Host: 172.17.53.195:8080 [12:49:06]Content-Length: 679 [12:49:06]Content-Type: application/json [12:49:06] [12:49:06]POST finish read [12:49:06]Found Content-Length = 679 [12:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220241", "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" : 76.20, "quantity" : 13.190, "sum" : 1005.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:06]execute_script... [12:49: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)220241", "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" : 76.20, "quantity" : 13.190, "sum" : 1005.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:06]POST & json_proto [12:49:06]process_json_proto [12:49:06]json parsed OK: [12:49:06]protocol is kg_v1.0 [12:49:06]action value=close_receipt [12:49:06]process_action close_receipt [12:49:06]cmd_close_receipt [12:49:06]MH_GetDate [12:49:06]Write to MH i2c: F0 00 00 23 EA FC [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: F0 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: F0 09 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: F0 09 00 23 EA 00 4F FC 14 67 21 48 4A 65 E3 [12:49:06]GetLastDocTimeStamp 1729428420 [12:49:06]current date 1729428559 [12:49:06]FM_GetShiftState [12:49:06]SAM_PROTO_GetShiftState [12:49:06]wFMCommunicate request_size=4 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 13 01 00 [12:49:06]Write to MH i2c: E2 08 00 24 EA 80 13 01 00 00 00 00 00 8B [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:06]Read from MH i2c: E2 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 0E 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 0E 00 24 EA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D3 [12:49:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:49:06]wFMCommunicate OK [12:49:06]SAM_PROTO_GetShiftState done [12:49:06]FM_GetShiftState done [12:49:06]opened in 1729384561 [12:49:06]opened+sec_in_day 1729470961 [12:49:06]quantity*price = 100507 [12:49:06]sum+1 = 100509 [12:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.89 НДС 12% : 106.73 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 159 20.10.2024 12:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165677 ФПД: 124656037117598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165677&fm=124656037117598&tin=02508201610067®Number=0000000000091764&sum=100500 [12:49:07]StoreToDocumentArchive [12:49:07]shift 534 fd 165677 [12:49:07]save to /storage/0534/doc_00165677 [12:49:07]save last doc name /storage/0534/doc_00165677 to /storage/kkm_last_doc_name [12:49:07]save OK [12:49:07]Clear old archive folders... [12:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:49:07]tlvbuf is 015BCE10 [12:49:07]SAM_PROTO_ClearQueue [12:49:07]wFMCommunicate request_size=4 [12:49:07]MH_SAM_APDU [12:49:07]CAPDU: 80 09 00 00 [12:49:07]Write to MH i2c: E2 08 00 31 EA 80 09 00 00 00 00 00 00 8D [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 03 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 03 00 31 EA 00 90 00 8F [12:49:07]RAPDU: 90 00 [12:49:07]wFMCommunicate OK [12:49:07]SAM_PROTO_ClearQueue done [12:49:07]KKMCreateOFDPacket [12:49:07]OFDProtocolAddRootSTLVToBuf [12:49:07]FM_MakeSignedData [12:49:07]FM_MakeSignedData [12:49:07]SAM_PROTO_SignData [12:49:07]wFMCommunicate request_size=4 [12:49:07]MH_SAM_APDU [12:49:07]CAPDU: 80 0D 01 02 [12:49:07]Write to MH i2c: E2 08 00 32 EA 80 0D 01 02 00 00 00 00 95 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 03 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 03 00 32 EA 00 90 00 90 [12:49:07]RAPDU: 90 00 [12:49:07]wFMCommunicate OK [12:49:07]wFMCommunicate request_size=255 [12:49:07]MH_SAM_APDU [12:49: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 86 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 29 00 00 00 00 07 04 06 00 94 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 9F 00 00 00 F4 03 04 00 4F FC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 87 02 00 35 04 06 00 71 5F BE CF [12:49:07]Write to MH i2c: E2 02 01 33 EA 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 29 00 00 00 00 07 04 06 00 94 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 9F 00 00 00 F4 03 04 00 4F FC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 87 02 00 35 04 06 00 71 5F BE CF 00 00 D8 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:08]Read from MH i2c: E2 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 03 00 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 03 00 33 EA 00 90 00 91 [12:49:08]RAPDU: 90 00 [12:49:08]wFMCommunicate OK [12:49:08]wFMCommunicate request_size=7 [12:49:08]MH_SAM_APDU [12:49:08]CAPDU: 80 0D 02 02 02 BE 9E [12:49:08]Write to MH i2c: E2 0A 00 34 EA 80 0D 02 02 02 00 BE 9E 00 00 F8 [12:49:08]Write i2c OK [12:49:08]MH_I2C_Read... [12:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:08]Read from MH i2c: E2 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 03 00 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 03 00 34 EA 00 90 00 92 [12:49:08]RAPDU: 90 00 [12:49:08]wFMCommunicate OK [12:49:08]wFMCommunicate request_size=4 [12:49:08]MH_SAM_APDU [12:49:08]CAPDU: 80 0D 03 02 [12:49:08]Write to MH i2c: E2 08 00 35 EA 80 0D 03 02 00 00 00 00 9A [12:49:08]Write i2c OK [12:49:08]MH_I2C_Read... [12:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:08]Read from MH i2c: E2 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 0B 00 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 0B 00 35 EA 00 CF E9 6C 11 5E 91 43 93 90 00 95 [12:49:08]RAPDU: CF E9 6C 11 5E 91 43 93 90 00 [12:49:08]wFMCommunicate OK [12:49:08]SAM_PROTO_SignData done [12:49:08]FM_MakeSignedData done [12:49:08]CreateOFDProtocolMessage [12:49:08]wFMCommunicate request_size=4 [12:49:08]MH_SAM_APDU [12:49:08]CAPDU: 80 11 00 00 [12:49:08]Write to MH i2c: E2 08 00 36 EA 80 11 00 00 00 00 00 00 9A [12:49:08]Write i2c OK [12:49:08]MH_I2C_Read... [12:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:08]Read from MH i2c: E2 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 17 00 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 17 00 36 EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [12:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:49:08]wFMCommunicate OK [12:49:08]CreateOFDProtocolMessage done [12:49:08]OFDSenderStorePacket 165677 [12:49:08]StoreOFDPacket docnum=165677 [12:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3D 38 04 01 91 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 86 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 29 00 00 00 00 07 04 06 00 94 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 9F 00 00 00 F4 03 04 00 4F FC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 87 02 00 35 04 06 00 71 5F BE CF BE 9E CF E9 6C 11 5E 91 43 93 [12:49:08]CheckFolder [12:49:08]dirname=/storage/ofd_packets [12:49:08]CheckFolder done [12:49:08]ProducePacketName [12:49:08]name=ofd_packets/00165677 [12:49:08]NVStorageSaveData ofd_packets/00165677 [12:49:08]File name is /storage/ofd_packets/00165677 [12:49:08]Write 298 bytes [12:49:08]NVStorageSaveData done [12:49:08]OFDSenderStorePacket done [12:49:08]KKMCreateOFDPacket done [12:49:08]NVStorageSaveData kkm_last_timestamp [12:49:08]File name is /storage/kkm_last_timestamp [12:49:08]Write 4 bytes [12:49:08]NVStorageSaveData done [12:49:08]ExternCall_PrintAddStr [12:49:08]wPrintStart [12:49:08]Write to MH i2c: 01 00 00 37 EA 21 [12:49:08]Write i2c OK [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: 01 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: 01 07 00 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: 01 07 00 37 EA 00 00 00 00 00 FF 0F 36 [12:49:08]RasterBufferAndPrint [12:49:08]line Счет N : (1)220241 [12:49:08]line ИНН: 02508201610067 [12:49:08]line Контрольно-Кассовый Чек [12:49:08]line ПРОДАЖА [12:49:08]line ТРК (МРК, ГНК) : 21 [12:49:08]line Товар: 2710194210 [12:49:08]line ДТ-К-5 [12:49:08]line 13.190 * 76.20 [12:49:08]line = 1005.08 [12:49:08]line НДС 12% НСП 1% [12:49:08]line > о реализуемом товаре [12:49:08]line ОКРУГЛЕНИЕ: -0.08 [12:49:08]line ИТОГО: 1005.00 [12:49:08]line Внесено: 1005.00 [12:49:08]line СДАЧА: 0.00 [12:49:08]line НСП 1% : 8.89 [12:49:08]line НДС 12% : 106.73 [12:49:08]line Наличными: 1005.00 [12:49:08]line Безнал.: 0.00 [12:49:08]line Место: АЗС № 161 "Партнер Нефть" [12:49:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:49:08]line СНО: Общий режим [12:49:08]line Чек 159 20.10.2024 12:49 [12:49:08]line Смена: 534 ФФД: 1.0 [12:49:08]line ЗНМ: 0300000104 [12:49:08]line РНМ: 0000000000091764 [12:49:08]line Версия ККМ: 001 [12:49:08]line ФМ: 0000000000871759 [12:49:08]line ФД: 165677 [12:49:08]line ФПД: 124656037117598 [12:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165677&fm=124656037117598&tin=02508201610067®Number=0000000000091764&sum=100500 [12:49:08]OFD Sender: Processing packet 165677 [packets to send 48, broken 47] [12:49:08]ProducePacketName [12:49:08]name=ofd_packets/00165677 [12:49:08]OFD Sender: To server: pG, [12:49:08]CommunicateWithHost lk.salyk.kg:30040 [12:49:08]ConnectInit lk.salyk.kg [12:49:08]written 0, free lines is 4095 [12:49:08]Connected sock=10 [12:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3D 38 04 01 91 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 86 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 29 00 00 00 00 07 04 06 00 94 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 9F 00 00 00 F4 03 04 00 4F FC 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 87 02 00 35 04 06 00 71 5F BE CF BE 9E CF E9 6C 11 5E 91 43 93 [12:49:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5A 1E 47 00 F5 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 31 37 35 39 10 04 04 00 2D 87 02 00 F4 03 04 00 C1 A2 14 67 B6 04 01 00 00 7E 12 7E 27 43 FB 19 CB [12:49:09]CommunicateWithHost err = 0 [12:49:09]CheckOFDResponse [12:49:09]1017 (14) - 77093643461234 [12:49:09]1041 (16) - 0000000000871759 [12:49:09]1040 (4) - 165677 [12:49:09]1012 (4) - 20.10.2024 06:27 [12:49:09]1206 (1) - 0 [12:49:09]OFD Sender: Remove packet 165677 [12:49:09]ProducePacketName [12:49:09]name=ofd_packets/00165677 [12:49:09]NVStorageDeleteData [12:49:09]Write to MH i2c: 01 00 00 62 EA 4C [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 62 EA 00 00 00 00 00 BC 0C 1B [12:49:09]RasterBufferAndPrint [12:49:09]line [12:49:09]line [12:49:09]line [12:49:09]line [12:49:09]line [12:49:09]written 0, free lines is 3268 [12:49:09]MH_Cut [12:49:09]Write to MH i2c: D1 01 00 69 EA 01 25 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D1 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D1 01 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D1 01 00 69 EA 00 24 [12:49:09]Write to MH i2c: 01 00 00 6A EA 54 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]OFD Sender: No OFD packet to send [12:49:09]*** Cut start [12:49:09]*** Partial cut [12:49:09]*** CUTSNS_PIN = 1 [12:49:10]*** CUTSNS_PIN = 0 [12:49:10]*** Brake cut motor [12:49:10]Read from MH i2c: 01 [12:49:10]MH_I2C_Read... [12:49:10]*** Stop cut motor [12:49:10]*** Cut end [12:49:10]Read from MH i2c: 01 07 00 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: 01 07 00 6A EA 00 00 00 00 00 FF 0F 69 [12:49:10]process_action close_receipt done [12:49:10]requested_data is exist [12:49:10]produce_requested_data [12:49:10]requested_item fm.sn is exist - process it [12:49:10]wFMCommunicate request_size=4 [12:49:10]MH_SAM_APDU [12:49:10]CAPDU: 80 11 00 00 [12:49:10]Write to MH i2c: E2 08 00 6B EA 80 11 00 00 00 00 00 00 CF [12:49:10]Write i2c OK [12:49:10]MH_I2C_Read... [12:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:10]Read from MH i2c: E2 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: E2 17 00 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: E2 17 00 6B EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [12:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:49:10]wFMCommunicate OK [12:49:10]requested_item fd.num is exist - process it [12:49:10]SAM_PROTO_GetFieldsCounters [12:49:10]wFMCommunicate request_size=4 [12:49:10]MH_SAM_APDU [12:49:10]CAPDU: 80 13 00 00 [12:49:10]Write to MH i2c: E2 08 00 6C EA 80 13 00 00 00 00 00 00 D2 [12:49:10]Write i2c OK [12:49:10]MH_I2C_Read... [12:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:10]Read from MH i2c: E2 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: E2 62 00 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: E2 62 00 6C EA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 87 02 00 0E 04 04 00 16 02 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 A5 [12:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 87 02 00 0E 04 04 00 16 02 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 [12:49:10]wFMCommunicate OK [12:49:10]SAM_PROTO_GetFieldsCounters done [12:49:10]requested_item shift.num is exist - process it [12:49:10]requested_item shift.opened is exist - process it [12:49:10]req_shift_opened [12:49:10]FM_GetShiftState [12:49:10]SAM_PROTO_GetShiftState [12:49:10]wFMCommunicate request_size=4 [12:49:10]MH_SAM_APDU [12:49:10]CAPDU: 80 13 01 00 [12:49:10]Write to MH i2c: E2 08 00 6D EA 80 13 01 00 00 00 00 00 D4 [12:49:10]Write i2c OK [12:49:10]MH_I2C_Read... [12:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:10]Read from MH i2c: E2 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: E2 0E 00 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: E2 0E 00 6D EA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1C [12:49:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:49:10]wFMCommunicate OK [12:49:10]SAM_PROTO_GetShiftState done [12:49:10]FM_GetShiftState done [12:49:10]req_shift_opened done [12:49:10]requested_item shift.open_date is exist - process it [12:49:10]req_shift_open_date [12:49:10]req_shift_open_date done [12:49:10]produce_requested_data done [12:49:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165677,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:49:10]process_action_free close_receipt [12:49:10]json_value_free [12:49:10]json_value_free done [12:49:10]process_json_proto returns [12:49:10]Send response to host [12:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165677,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:49:10]free response buf [12:49:10]execute_script done [12:49:10]execute_script returns [12:49:10]free content buf [12:49:10]Sock 7.Close socket [12:49:10]Sock 7.Thread stoped [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50: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:41]accept exits with 9 [12:53:41]New connection [12:53:41]New thread 3066776932 created [12:53:41]Thread 3066920292 joined [12:53:41]Waiting for new connection... [12:53:41] Sock 9.Parse request [12:53:41]Sock 9.Check first char [12:53:41]Sock 9.First char is OK [12:53:41]request: POST /json_proto HTTP/1.0 [12:53:41]Method: POST [12:53:41]URL: /json_proto [12:53:41]Method is POST - this is cgi request [12:53:41]url: /json_proto [12:53:41]query_string will be loaded in cgi processing [12:53:41]execute_cgi json_proto POST (null) [12:53:41]execute_cgi path=json_proto method=POST [12:53:41]POST find Content-Length [12:53:41]Host: 172.17.53.195:8080 [12:53:41]Content-Length: 676 [12:53:41]Content-Type: application/json [12:53:41] [12:53:41]POST finish read [12:53:41]Found Content-Length = 676 [12:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220243", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:41]execute_script... [12:53: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)220243", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:41]POST & json_proto [12:53:41]process_json_proto [12:53:41]json parsed OK: [12:53:41]protocol is kg_v1.0 [12:53:41]action value=close_receipt [12:53:41]process_action close_receipt [12:53:41]cmd_close_receipt [12:53:41]MH_GetDate [12:53:41]Write to MH i2c: F0 00 00 6E EA 47 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: F0 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: F0 09 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: F0 09 00 6E EA 00 62 FD 14 67 21 48 4A 65 42 [12:53:41]GetLastDocTimeStamp 1729428559 [12:53:41]current date 1729428834 [12:53:41]FM_GetShiftState [12:53:41]SAM_PROTO_GetShiftState [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 13 01 00 [12:53:41]Write to MH i2c: E2 08 00 6F EA 80 13 01 00 00 00 00 00 D6 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 0E 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 0E 00 6F EA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1E [12:53:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:53:41]wFMCommunicate OK [12:53:41]SAM_PROTO_GetShiftState done [12:53:41]FM_GetShiftState done [12:53:41]opened in 1729384561 [12:53:41]opened+sec_in_day 1729470961 [12:53:41]quantity*price = 99974 [12:53:41]sum+1 = 99975 [12:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 160 20.10.2024 12:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165678 ФПД: 24177328252019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125354&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165678&fm=24177328252019&tin=02508201610067®Number=0000000000091764&sum=99900 [12:53:42]StoreToDocumentArchive [12:53:42]shift 534 fd 165678 [12:53:42]save to /storage/0534/doc_00165678 [12:53:42]save last doc name /storage/0534/doc_00165678 to /storage/kkm_last_doc_name [12:53:42]save OK [12:53:42]Clear old archive folders... [12:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:53:42]tlvbuf is 015DD8D0 [12:53:42]SAM_PROTO_ClearQueue [12:53:42]wFMCommunicate request_size=4 [12:53:42]MH_SAM_APDU [12:53:42]CAPDU: 80 09 00 00 [12:53:42]Write to MH i2c: E2 08 00 7C EA 80 09 00 00 00 00 00 00 D8 [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 7C EA 00 90 00 DA [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]SAM_PROTO_ClearQueue done [12:53:43]KKMCreateOFDPacket [12:53:43]OFDProtocolAddRootSTLVToBuf [12:53:43]FM_MakeSignedData [12:53:43]FM_MakeSignedData [12:53:43]SAM_PROTO_SignData [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 0D 01 02 [12:53:43]Write to MH i2c: E2 08 00 7D EA 80 0D 01 02 00 00 00 00 E0 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 7D EA 00 90 00 DB [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]wFMCommunicate request_size=255 [12:53:43]MH_SAM_APDU [12:53: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 A0 00 00 00 F4 03 04 00 62 FD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 87 02 00 35 04 06 00 15 FD 39 0F [12:53:43]Write to MH i2c: E2 02 01 7E EA 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 A0 00 00 00 F4 03 04 00 62 FD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 87 02 00 35 04 06 00 15 FD 39 0F 00 00 E8 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 7E EA 00 90 00 DC [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]wFMCommunicate request_size=7 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 0D 02 02 02 E4 73 [12:53:43]Write to MH i2c: E2 0A 00 7F EA 80 0D 02 02 02 00 E4 73 00 00 3E [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 7F EA 00 90 00 DD [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 0D 03 02 [12:53:43]Write to MH i2c: E2 08 00 80 EA 80 0D 03 02 00 00 00 00 E5 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0B 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0B 00 80 EA 00 CB 7B FC 51 57 E6 A9 D7 90 00 36 [12:53:43]RAPDU: CB 7B FC 51 57 E6 A9 D7 90 00 [12:53:43]wFMCommunicate OK [12:53:43]SAM_PROTO_SignData done [12:53:43]FM_MakeSignedData done [12:53:43]CreateOFDProtocolMessage [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 11 00 00 [12:53:43]Write to MH i2c: E2 08 00 81 EA 80 11 00 00 00 00 00 00 E5 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 17 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 17 00 81 EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [12:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:53:43]wFMCommunicate OK [12:53:43]CreateOFDProtocolMessage done [12:53:43]OFDSenderStorePacket 165678 [12:53:43]StoreOFDPacket docnum=165678 [12:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 05 FC 04 01 C4 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 A0 00 00 00 F4 03 04 00 62 FD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 87 02 00 35 04 06 00 15 FD 39 0F E4 73 CB 7B FC 51 57 E6 A9 D7 [12:53:43]CheckFolder [12:53:43]dirname=/storage/ofd_packets [12:53:43]CheckFolder done [12:53:43]ProducePacketName [12:53:43]name=ofd_packets/00165678 [12:53:43]NVStorageSaveData ofd_packets/00165678 [12:53:43]File name is /storage/ofd_packets/00165678 [12:53:43]Write 298 bytes [12:53:43]NVStorageSaveData done [12:53:43]OFDSenderStorePacket done [12:53:43]KKMCreateOFDPacket done [12:53:43]NVStorageSaveData kkm_last_timestamp [12:53:43]File name is /storage/kkm_last_timestamp [12:53:43]Write 4 bytes [12:53:43]NVStorageSaveData done [12:53:43]ExternCall_PrintAddStr [12:53:43]wPrintStart [12:53:43]Write to MH i2c: 01 00 00 82 EA 6C [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 82 EA 00 00 00 00 00 FF 0F 81 [12:53:43]RasterBufferAndPrint [12:53:43]line Счет N : (1)220243 [12:53:43]line ИНН: 02508201610067 [12:53:43]line Контрольно-Кассовый Чек [12:53:43]line ПРОДАЖА [12:53:43]line ТРК (МРК, ГНК) : 11 [12:53:43]line Товар: 2710194210 [12:53:43]line ДТ-К-5 [12:53:43]line 13.120 * 76.20 [12:53:43]line = 999.74 [12:53:43]line НДС 12% НСП 1% [12:53:43]line > о реализуемом товаре [12:53:43]line ОКРУГЛЕНИЕ: -0.74 [12:53:43]line ИТОГО: 999.00 [12:53:43]line Внесено: 1000.00 [12:53:43]line СДАЧА: 1.00 [12:53:43]line НСП 1% : 8.85 [12:53:43]line НДС 12% : 106.17 [12:53:43]line Наличными: 999.00 [12:53:43]line Безнал.: 0.00 [12:53:43]line Место: АЗС № 161 "Партнер Нефть" [12:53:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:53:43]line СНО: Общий режим [12:53:43]line Чек 160 20.10.2024 12:53 [12:53:43]line Смена: 534 ФФД: 1.0 [12:53:43]line ЗНМ: 0300000104 [12:53:43]line РНМ: 0000000000091764 [12:53:43]line Версия ККМ: 001 [12:53:43]line ФМ: 0000000000871759 [12:53:43]line ФД: 165678 [12:53:43]line ФПД: 24177328252019 [12:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125354&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165678&fm=24177328252019&tin=02508201610067®Number=0000000000091764&sum=99900 [12:53:43]OFD Sender: Processing packet 165678 [packets to send 48, broken 47] [12:53:43]ProducePacketName [12:53:43]name=ofd_packets/00165678 [12:53:43]OFD Sender: To server: pG, [12:53:43]CommunicateWithHost lk.salyk.kg:30040 [12:53:43]ConnectInit lk.salyk.kg [12:53:43]written 0, free lines is 4095 [12:53:43]Connected sock=10 [12:53:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 05 FC 04 01 C4 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 A0 00 00 00 F4 03 04 00 62 FD 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 87 02 00 35 04 06 00 15 FD 39 0F E4 73 CB 7B FC 51 57 E6 A9 D7 [12:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EE 6A 47 00 DB 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 31 37 35 39 10 04 04 00 2E 87 02 00 F4 03 04 00 D4 A3 14 67 B6 04 01 00 00 A4 59 87 6F 80 C8 47 24 [12:53:44]CommunicateWithHost err = 0 [12:53:44]CheckOFDResponse [12:53:44]1017 (14) - 77093643461234 [12:53:44]1041 (16) - 0000000000871759 [12:53:44]1040 (4) - 165678 [12:53:44]1012 (4) - 20.10.2024 06:31 [12:53:44]1206 (1) - 0 [12:53:44]OFD Sender: Remove packet 165678 [12:53:44]ProducePacketName [12:53:44]name=ofd_packets/00165678 [12:53:44]NVStorageDeleteData [12:53:44]Write to MH i2c: 01 00 00 AD EA 97 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: 01 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: 01 07 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: 01 07 00 AD EA 00 00 00 00 00 C0 0C 6A [12:53:44]RasterBufferAndPrint [12:53:44]line [12:53:44]line [12:53:44]line [12:53:44]line [12:53:44]line [12:53:44]written 0, free lines is 3270 [12:53:44]MH_Cut [12:53:44]Write to MH i2c: D1 01 00 B4 EA 01 70 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: D1 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: D1 01 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: D1 01 00 B4 EA 00 6F [12:53:44]Write to MH i2c: 01 00 00 B5 EA 9F [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]OFD Sender: No OFD packet to send [12:53:45]*** Cut start [12:53:45]*** Partial cut [12:53:45]*** CUTSNS_PIN = 1 [12:53:45]*** CUTSNS_PIN = 0 [12:53:45]*** Brake cut motor [12:53:45]Read from MH i2c: 01 [12:53:45]MH_I2C_Read... [12:53:45]*** Stop cut motor [12:53:45]*** Cut end [12:53:45]Read from MH i2c: 01 07 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: 01 07 00 B5 EA 00 00 00 00 00 FF 0F B4 [12:53:45]process_action close_receipt done [12:53:45]requested_data is exist [12:53:45]produce_requested_data [12:53:45]requested_item fm.sn is exist - process it [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 11 00 00 [12:53:45]Write to MH i2c: E2 08 00 B6 EA 80 11 00 00 00 00 00 00 1A [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 17 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 17 00 B6 EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [12:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:53:45]wFMCommunicate OK [12:53:45]requested_item fd.num is exist - process it [12:53:45]SAM_PROTO_GetFieldsCounters [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 13 00 00 [12:53:45]Write to MH i2c: E2 08 00 B7 EA 80 13 00 00 00 00 00 00 1D [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 62 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 62 00 B7 EA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 87 02 00 0E 04 04 00 16 02 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 F4 [12:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 87 02 00 0E 04 04 00 16 02 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 [12:53:45]wFMCommunicate OK [12:53:45]SAM_PROTO_GetFieldsCounters done [12:53:45]requested_item shift.num is exist - process it [12:53:45]requested_item shift.opened is exist - process it [12:53:45]req_shift_opened [12:53:45]FM_GetShiftState [12:53:45]SAM_PROTO_GetShiftState [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 13 01 00 [12:53:45]Write to MH i2c: E2 08 00 B8 EA 80 13 01 00 00 00 00 00 1F [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 0E 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 0E 00 B8 EA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 67 [12:53:45]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [12:53:45]wFMCommunicate OK [12:53:45]SAM_PROTO_GetShiftState done [12:53:45]FM_GetShiftState done [12:53:45]req_shift_opened done [12:53:45]requested_item shift.open_date is exist - process it [12:53:45]req_shift_open_date [12:53:45]req_shift_open_date done [12:53:45]produce_requested_data done [12:53:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165678,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [12:53:45]process_action_free close_receipt [12:53:45]json_value_free [12:53:45]json_value_free done [12:53:45]process_json_proto returns [12:53:45]Send response to host [12:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165678,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [12:53:45]free response buf [12:53:45]execute_script done [12:53:45]execute_script returns [12:53:45]free content buf [12:53:45]Sock 9.Close socket [12:53:45]Sock 9.Thread stoped [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:24]accept exits with 7 [13:03:24]New connection [13:03:24]New thread 3066920292 created [13:03:24]Thread 3066776932 joined [13:03:24]Waiting for new connection... [13:03:24] Sock 7.Parse request [13:03:24]Sock 7.Check first char [13:03:24]Sock 7.First char is OK [13:03:24]request: POST /json_proto HTTP/1.0 [13:03:24]Method: POST [13:03:24]URL: /json_proto [13:03:24]Method is POST - this is cgi request [13:03:24]url: /json_proto [13:03:24]query_string will be loaded in cgi processing [13:03:24]execute_cgi json_proto POST (null) [13:03:24]execute_cgi path=json_proto method=POST [13:03:24]POST find Content-Length [13:03:24]Host: 172.17.53.195:8080 [13:03:24]Content-Length: 677 [13:03:24]Content-Type: application/json [13:03:24] [13:03:24]POST finish read [13:03:24]Found Content-Length = 677 [13:03:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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:03:24]execute_script... [13:03: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)220245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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:03:24]POST & json_proto [13:03:24]process_json_proto [13:03:24]json parsed OK: [13:03:24]protocol is kg_v1.0 [13:03:24]action value=close_receipt [13:03:24]process_action close_receipt [13:03:24]cmd_close_receipt [13:03:24]MH_GetDate [13:03:24]Write to MH i2c: F0 00 00 B9 EA 92 [13:03:24]Write i2c OK [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 09 00 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 09 00 B9 EA 00 A8 FF 14 67 21 48 4A 65 D5 [13:03:24]GetLastDocTimeStamp 1729428834 [13:03:24]current date 1729429416 [13:03:24]FM_GetShiftState [13:03:24]SAM_PROTO_GetShiftState [13:03:24]wFMCommunicate request_size=4 [13:03:24]MH_SAM_APDU [13:03:24]CAPDU: 80 13 01 00 [13:03:24]Write to MH i2c: E2 08 00 BA EA 80 13 01 00 00 00 00 00 21 [13:03:24]Write i2c OK [13:03:24]MH_I2C_Read... [13:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:24]Read from MH i2c: E2 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: E2 0E 00 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: E2 0E 00 BA EA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 69 [13:03:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:03:24]wFMCommunicate OK [13:03:24]SAM_PROTO_GetShiftState done [13:03:24]FM_GetShiftState done [13:03:24]opened in 1729384561 [13:03:24]opened+sec_in_day 1729470961 [13:03:24]quantity*price = 15052 [13:03:24]sum+1 = 15054 [13:03:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 161 20.10.2024 13:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165679 ФПД: 11348557900006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130336&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165679&fm=11348557900006&tin=02508201610067®Number=0000000000091764&sum=15000 [13:03:25]StoreToDocumentArchive [13:03:25]shift 534 fd 165679 [13:03:25]save to /storage/0534/doc_00165679 [13:03:25]save last doc name /storage/0534/doc_00165679 to /storage/kkm_last_doc_name [13:03:25]save OK [13:03:25]Clear old archive folders... [13:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:25]tlvbuf is 018A29A0 [13:03:25]SAM_PROTO_ClearQueue [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 09 00 00 [13:03:25]Write to MH i2c: E2 08 00 C7 EA 80 09 00 00 00 00 00 00 23 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 C7 EA 00 90 00 25 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]SAM_PROTO_ClearQueue done [13:03:25]KKMCreateOFDPacket [13:03:25]OFDProtocolAddRootSTLVToBuf [13:03:25]FM_MakeSignedData [13:03:25]FM_MakeSignedData [13:03:25]SAM_PROTO_SignData [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 01 02 [13:03:25]Write to MH i2c: E2 08 00 C8 EA 80 0D 01 02 00 00 00 00 2B [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 C8 EA 00 90 00 26 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]wFMCommunicate request_size=255 [13:03:25]MH_SAM_APDU [13:03: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 A1 00 00 00 F4 03 04 00 A8 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 87 02 00 35 04 06 00 0A [13:03:25]Write to MH i2c: E2 02 01 C9 EA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 A1 00 00 00 F4 03 04 00 A8 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 87 02 00 35 04 06 00 0A 00 00 5B [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 C9 EA 00 90 00 27 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]wFMCommunicate request_size=10 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 02 02 05 52 4A C3 28 E6 [13:03:25]Write to MH i2c: E2 0D 00 CA EA 80 0D 02 02 05 00 52 4A C3 28 E6 00 00 A5 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 CA EA 00 90 00 28 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 03 02 [13:03:25]Write to MH i2c: E2 08 00 CB EA 80 0D 03 02 00 00 00 00 30 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 0B 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 0B 00 CB EA 00 57 03 FA 54 F8 45 59 41 90 00 B0 [13:03:25]RAPDU: 57 03 FA 54 F8 45 59 41 90 00 [13:03:25]wFMCommunicate OK [13:03:25]SAM_PROTO_SignData done [13:03:25]FM_MakeSignedData done [13:03:25]CreateOFDProtocolMessage [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 11 00 00 [13:03:25]Write to MH i2c: E2 08 00 CC EA 80 11 00 00 00 00 00 00 30 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 17 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 17 00 CC EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [13:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:03:25]wFMCommunicate OK [13:03:25]CreateOFDProtocolMessage done [13:03:25]OFDSenderStorePacket 165679 [13:03:25]StoreOFDPacket docnum=165679 [13:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 54 07 01 9C 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 A1 00 00 00 F4 03 04 00 A8 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 87 02 00 35 04 06 00 0A 52 4A C3 28 E6 57 03 FA 54 F8 45 59 41 [13:03:25]CheckFolder [13:03:25]dirname=/storage/ofd_packets [13:03:25]CheckFolder done [13:03:25]ProducePacketName [13:03:25]name=ofd_packets/00165679 [13:03:25]NVStorageSaveData ofd_packets/00165679 [13:03:25]File name is /storage/ofd_packets/00165679 [13:03:25]Write 301 bytes [13:03:25]NVStorageSaveData done [13:03:25]OFDSenderStorePacket done [13:03:25]KKMCreateOFDPacket done [13:03:25]NVStorageSaveData kkm_last_timestamp [13:03:25]File name is /storage/kkm_last_timestamp [13:03:25]Write 4 bytes [13:03:25]NVStorageSaveData done [13:03:25]ExternCall_PrintAddStr [13:03:25]wPrintStart [13:03:25]Write to MH i2c: 01 00 00 CD EA B7 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: 01 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: 01 07 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: 01 07 00 CD EA 00 00 00 00 00 FF 0F CC [13:03:25]RasterBufferAndPrint [13:03:25]line Счет N : (1)220245 [13:03:25]line ИНН: 02508201610067 [13:03:25]line Контрольно-Кассовый Чек [13:03:25]line ПРОДАЖА [13:03:25]line ТРК (МРК, ГНК) : 23 [13:03:25]line Товар: 2710124130 [13:03:25]line Аи-92-К-5 [13:03:25]line 2.250 * 66.90 [13:03:25]line = 150.53 [13:03:25]line НДС 12% НСП 1% [13:03:25]line > о реализуемом товаре [13:03:25]line ОКРУГЛЕНИЕ: -0.53 [13:03:25]line ИТОГО: 150.00 [13:03:25]line Внесено: 150.00 [13:03:25]line СДАЧА: 0.00 [13:03:25]line НСП 1% : 1.33 [13:03:25]line НДС 12% : 15.98 [13:03:25]line Наличными: 150.00 [13:03:25]line Безнал.: 0.00 [13:03:25]line Место: АЗС № 161 "Партнер Нефть" [13:03:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:03:25]line СНО: Общий режим [13:03:25]line Чек 161 20.10.2024 13:03 [13:03:25]line Смена: 534 ФФД: 1.0 [13:03:25]line ЗНМ: 0300000104 [13:03:25]line РНМ: 0000000000091764 [13:03:25]line Версия ККМ: 001 [13:03:25]line ФМ: 0000000000871759 [13:03:25]line ФД: 165679 [13:03:25]line ФПД: 11348557900006 [13:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130336&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165679&fm=11348557900006&tin=02508201610067®Number=0000000000091764&sum=15000 [13:03:26]OFD Sender: Processing packet 165679 [packets to send 48, broken 47] [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00165679 [13:03:26]OFD Sender: To server: pG, [13:03:26]CommunicateWithHost lk.salyk.kg:30040 [13:03:26]ConnectInit lk.salyk.kg [13:03:26]written 0, free lines is 4095 [13:03:26]Connected sock=10 [13:03:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 54 07 01 9C 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 A1 00 00 00 F4 03 04 00 A8 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 87 02 00 35 04 06 00 0A 52 4A C3 28 E6 57 03 FA 54 F8 45 59 41 [13:03:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 45 45 47 00 00 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 31 37 35 39 10 04 04 00 2F 87 02 00 F4 03 04 00 1A A6 14 67 B6 04 01 00 00 BD FF 1B 37 85 FF D5 3A [13:03:26]CommunicateWithHost err = 0 [13:03:26]CheckOFDResponse [13:03:26]1017 (14) - 77093643461234 [13:03:26]1041 (16) - 0000000000871759 [13:03:26]1040 (4) - 165679 [13:03:26]1012 (4) - 20.10.2024 06:41 [13:03:26]1206 (1) - 0 [13:03:26]OFD Sender: Remove packet 165679 [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00165679 [13:03:26]NVStorageDeleteData [13:03:26]Write to MH i2c: 01 00 00 F8 EA E2 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 F8 EA 00 00 00 00 00 B6 0C AB [13:03:26]RasterBufferAndPrint [13:03:26]line [13:03:26]line [13:03:26]line [13:03:26]line [13:03:26]line [13:03:26]written 0, free lines is 3260 [13:03:26]MH_Cut [13:03:26]Write to MH i2c: D1 01 00 FF EA 01 BB [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: D1 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: D1 01 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: D1 01 00 FF EA 00 BA [13:03:26]Write to MH i2c: 01 00 00 00 EB EB [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:27]OFD Sender: No OFD packet to send [13:03:27]*** Cut start [13:03:27]*** Partial cut [13:03:27]*** CUTSNS_PIN = 1 [13:03:27]*** CUTSNS_PIN = 0 [13:03:27]*** Brake cut motor [13:03:28]Read from MH i2c: 01 [13:03:28]MH_I2C_Read... [13:03:28]*** Stop cut motor [13:03:28]*** Cut end [13:03:28]Read from MH i2c: 01 07 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: 01 07 00 00 EB 00 00 00 00 00 FF 0F 00 [13:03:28]process_action close_receipt done [13:03:28]requested_data is exist [13:03:28]produce_requested_data [13:03:28]requested_item fm.sn is exist - process it [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 11 00 00 [13:03:28]Write to MH i2c: E2 08 00 01 EB 80 11 00 00 00 00 00 00 66 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 17 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 17 00 01 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [13:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:03:28]wFMCommunicate OK [13:03:28]requested_item fd.num is exist - process it [13:03:28]SAM_PROTO_GetFieldsCounters [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 00 00 [13:03:28]Write to MH i2c: E2 08 00 02 EB 80 13 00 00 00 00 00 00 69 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 62 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 62 00 02 EB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 87 02 00 0E 04 04 00 16 02 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 44 [13:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 87 02 00 0E 04 04 00 16 02 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:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetFieldsCounters done [13:03:28]requested_item shift.num is exist - process it [13:03:28]requested_item shift.opened is exist - process it [13:03:28]req_shift_opened [13:03:28]FM_GetShiftState [13:03:28]SAM_PROTO_GetShiftState [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 01 00 [13:03:28]Write to MH i2c: E2 08 00 03 EB 80 13 01 00 00 00 00 00 6B [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 03 EB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B3 [13:03:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetShiftState done [13:03:28]FM_GetShiftState done [13:03:28]req_shift_opened done [13:03:28]requested_item shift.open_date is exist - process it [13:03:28]req_shift_open_date [13:03:28]req_shift_open_date done [13:03:28]produce_requested_data done [13:03:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165679,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:03:28]process_action_free close_receipt [13:03:28]json_value_free [13:03:28]json_value_free done [13:03:28]process_json_proto returns [13:03:28]Send response to host [13:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165679,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:03:28]free response buf [13:03:28]execute_script done [13:03:28]execute_script returns [13:03:28]free content buf [13:03:28]Sock 7.Close socket [13:03:28]Sock 7.Thread stoped [13:03:28]accept exits with 9 [13:03:28]New connection [13:03:28]New thread 3066776932 created [13:03:28]Thread 3066920292 joined [13:03:28]Waiting for new connection... [13:03:28] Sock 9.Parse request [13:03:28]Sock 9.Check first char [13:03:28]Sock 9.First char is OK [13:03:28]request: POST /json_proto HTTP/1.0 [13:03:28]Method: POST [13:03:28]URL: /json_proto [13:03:28]Method is POST - this is cgi request [13:03:28]url: /json_proto [13:03:28]query_string will be loaded in cgi processing [13:03:28]execute_cgi json_proto POST (null) [13:03:28]execute_cgi path=json_proto method=POST [13:03:28]POST find Content-Length [13:03:28]Host: 172.17.53.195:8080 [13:03:28]Content-Length: 766 [13:03:28]Content-Type: application/json [13:03:28] [13:03:28]POST finish read [13:03:28]Found Content-Length = 766 [13:03:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:28]execute_script... [13:03: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)220244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:28]POST & json_proto [13:03:28]process_json_proto [13:03:28]json parsed OK: [13:03:28]protocol is kg_v1.0 [13:03:28]action value=close_receipt [13:03:28]process_action close_receipt [13:03:28]cmd_close_receipt [13:03:28]MH_GetDate [13:03:28]Write to MH i2c: F0 00 00 04 EB DE [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: F0 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: F0 09 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: F0 09 00 04 EB 00 AD FF 14 67 21 48 4A 65 26 [13:03:28]GetLastDocTimeStamp 1729429416 [13:03:28]current date 1729429421 [13:03:28]FM_GetShiftState [13:03:28]SAM_PROTO_GetShiftState [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 01 00 [13:03:28]Write to MH i2c: E2 08 00 05 EB 80 13 01 00 00 00 00 00 6D [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 05 EB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B5 [13:03:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetShiftState done [13:03:28]FM_GetShiftState done [13:03:28]opened in 1729384561 [13:03:28]opened+sec_in_day 1729470961 [13:03:28]quantity*price = 50041 [13:03:28]sum+1 = 50042 [13:03:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 162 20.10.2024 13:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165680 ФПД: 240674386353891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130341&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165680&fm=240674386353891&tin=02508201610067®Number=0000000000091764&sum=50041 [13:03:29]StoreToDocumentArchive [13:03:29]shift 534 fd 165680 [13:03:29]save to /storage/0534/doc_00165680 [13:03:29]save last doc name /storage/0534/doc_00165680 to /storage/kkm_last_doc_name [13:03:29]save OK [13:03:29]Clear old archive folders... [13:03:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:29]tlvbuf is 017ED0E0 [13:03:29]SAM_PROTO_ClearQueue [13:03:29]wFMCommunicate request_size=4 [13:03:29]MH_SAM_APDU [13:03:29]CAPDU: 80 09 00 00 [13:03:29]Write to MH i2c: E2 08 00 12 EB 80 09 00 00 00 00 00 00 6F [13:03:29]Write i2c OK [13:03:29]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 12 EB 00 90 00 71 [13:03:30]RAPDU: 90 00 [13:03:30]wFMCommunicate OK [13:03:30]SAM_PROTO_ClearQueue done [13:03:30]KKMCreateOFDPacket [13:03:30]OFDProtocolAddRootSTLVToBuf [13:03:30]FM_MakeSignedData [13:03:30]FM_MakeSignedData [13:03:30]SAM_PROTO_SignData [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 0D 01 02 [13:03:30]Write to MH i2c: E2 08 00 13 EB 80 0D 01 02 00 00 00 00 77 [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 13 EB 00 90 00 72 [13:03:30]RAPDU: 90 00 [13:03:30]wFMCommunicate OK [13:03:30]wFMCommunicate request_size=255 [13:03:30]MH_SAM_APDU [13:03: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 AD FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 87 02 00 35 04 06 00 DA [13:03:30]Write to MH i2c: E2 02 01 14 EB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 AD FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 87 02 00 35 04 06 00 DA 00 00 D3 [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 14 EB 00 90 00 73 [13:03:30]RAPDU: 90 00 [13:03:30]wFMCommunicate OK [13:03:30]wFMCommunicate request_size=10 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 0D 02 02 05 E4 5F 4E 1E E3 [13:03:30]Write to MH i2c: E2 0D 00 15 EB 80 0D 02 02 05 00 E4 5F 4E 1E E3 00 00 16 [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 15 EB 00 90 00 74 [13:03:30]RAPDU: 90 00 [13:03:30]wFMCommunicate OK [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 0D 03 02 [13:03:30]Write to MH i2c: E2 08 00 16 EB 80 0D 03 02 00 00 00 00 7C [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 0B 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 0B 00 16 EB 00 86 5F 90 F5 42 97 44 AA 90 00 AE [13:03:30]RAPDU: 86 5F 90 F5 42 97 44 AA 90 00 [13:03:30]wFMCommunicate OK [13:03:30]SAM_PROTO_SignData done [13:03:30]FM_MakeSignedData done [13:03:30]CreateOFDProtocolMessage [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 11 00 00 [13:03:30]Write to MH i2c: E2 08 00 17 EB 80 11 00 00 00 00 00 00 7C [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 17 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 17 00 17 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [13:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:03:30]wFMCommunicate OK [13:03:30]CreateOFDProtocolMessage done [13:03:30]OFDSenderStorePacket 165680 [13:03:30]StoreOFDPacket docnum=165680 [13:03:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 07 37 07 01 14 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 AD FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 87 02 00 35 04 06 00 DA E4 5F 4E 1E E3 86 5F 90 F5 42 97 44 AA [13:03:30]CheckFolder [13:03:30]dirname=/storage/ofd_packets [13:03:30]CheckFolder done [13:03:30]ProducePacketName [13:03:30]name=ofd_packets/00165680 [13:03:30]NVStorageSaveData ofd_packets/00165680 [13:03:30]File name is /storage/ofd_packets/00165680 [13:03:30]Write 301 bytes [13:03:30]NVStorageSaveData done [13:03:30]OFDSenderStorePacket done [13:03:30]KKMCreateOFDPacket done [13:03:30]NVStorageSaveData kkm_last_timestamp [13:03:30]File name is /storage/kkm_last_timestamp [13:03:30]Write 4 bytes [13:03:30]NVStorageSaveData done [13:03:30]ExternCall_PrintAddStr [13:03:30]wPrintStart [13:03:30]Write to MH i2c: 01 00 00 18 EB 03 [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: 01 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: 01 07 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: 01 07 00 18 EB 00 00 00 00 00 FF 0F 18 [13:03:30]RasterBufferAndPrint [13:03:30]line Счет N : (1)220244 [13:03:30]line ИНН: 02508201610067 [13:03:31]line Контрольно-Кассовый Чек [13:03:31]line ПРОДАЖА [13:03:31]line ТРК (МРК, ГНК) : 13 [13:03:31]line Товар: 2710124130 [13:03:31]line Аи-92-К-5 [13:03:31]line 7.480 * 66.90 [13:03:31]line = 500.41 [13:03:31]line НДС 12% НСП 1% [13:03:31]line > о реализуемом товаре [13:03:31]line ИТОГО: 500.41 [13:03:31]line НСП 1% : 4.43 [13:03:31]line НДС 12% : 53.14 [13:03:31]line Наличными: 0.00 [13:03:31]line Безнал.: 500.41 [13:03:31]line Место: АЗС № 161 "Партнер Нефть" [13:03:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:03:31]line СНО: Общий режим [13:03:31]line Чек 162 20.10.2024 13:03 [13:03:31]line Смена: 534 ФФД: 1.0 [13:03:31]line ЗНМ: 0300000104 [13:03:31]line РНМ: 0000000000091764 [13:03:31]line Версия ККМ: 001 [13:03:31]line Платежная система: Mbank [13:03:31]line ФМ: 0000000000871759 [13:03:31]line ФД: 165680 [13:03:31]line ФПД: 240674386353891 [13:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130341&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165680&fm=240674386353891&tin=02508201610067®Number=0000000000091764&sum=50041 [13:03:31]OFD Sender: Processing packet 165680 [packets to send 48, broken 47] [13:03:31]ProducePacketName [13:03:31]name=ofd_packets/00165680 [13:03:31]OFD Sender: To server: pG, [13:03:31]CommunicateWithHost lk.salyk.kg:30040 [13:03:31]ConnectInit lk.salyk.kg [13:03:31]written 0, free lines is 4095 [13:03:31]Connected sock=10 [13:03:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 07 37 07 01 14 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 AD FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 87 02 00 35 04 06 00 DA E4 5F 4E 1E E3 86 5F 90 F5 42 97 44 AA [13:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 74 BB 47 00 5D 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 87 02 00 F4 03 04 00 1F A6 14 67 B6 04 01 00 00 97 D9 2A 9E D8 B0 41 D5 [13:03:31]CommunicateWithHost err = 0 [13:03:31]CheckOFDResponse [13:03:31]1017 (14) - 77093643461234 [13:03:31]1041 (16) - 0000000000871759 [13:03:31]1040 (4) - 165680 [13:03:31]1012 (4) - 20.10.2024 06:41 [13:03:31]1206 (1) - 0 [13:03:31]OFD Sender: Remove packet 165680 [13:03:31]ProducePacketName [13:03:31]name=ofd_packets/00165680 [13:03:31]NVStorageDeleteData [13:03:31]Write to MH i2c: 01 00 00 41 EB 2C [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 07 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 07 00 41 EB 00 00 00 00 00 FE 0C 3D [13:03:31]RasterBufferAndPrint [13:03:31]line [13:03:31]line [13:03:31]line [13:03:31]line [13:03:31]line [13:03:31]written 0, free lines is 3336 [13:03:31]MH_Cut [13:03:31]Write to MH i2c: D1 01 00 48 EB 01 05 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: D1 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: D1 01 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: D1 01 00 48 EB 00 04 [13:03:31]Write to MH i2c: 01 00 00 49 EB 34 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:32]OFD Sender: No OFD packet to send [13:03:32]*** Cut start [13:03:32]*** Partial cut [13:03:32]*** CUTSNS_PIN = 1 [13:03:32]*** CUTSNS_PIN = 0 [13:03:32]*** Brake cut motor [13:03:32]Read from MH i2c: 01 [13:03:32]MH_I2C_Read... [13:03:32]*** Stop cut motor [13:03:32]*** Cut end [13:03:32]Read from MH i2c: 01 07 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 49 EB 00 00 00 00 00 FF 0F 49 [13:03:32]process_action close_receipt done [13:03:32]requested_data is exist [13:03:32]produce_requested_data [13:03:32]requested_item fm.sn is exist - process it [13:03:32]wFMCommunicate request_size=4 [13:03:32]MH_SAM_APDU [13:03:32]CAPDU: 80 11 00 00 [13:03:32]Write to MH i2c: E2 08 00 4A EB 80 11 00 00 00 00 00 00 AF [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 17 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 17 00 4A EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [13:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:03:33]wFMCommunicate OK [13:03:33]requested_item fd.num is exist - process it [13:03:33]SAM_PROTO_GetFieldsCounters [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 13 00 00 [13:03:33]Write to MH i2c: E2 08 00 4B EB 80 13 00 00 00 00 00 00 B2 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 62 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 62 00 4B EB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 87 02 00 0E 04 04 00 16 02 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 91 [13:03:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 87 02 00 0E 04 04 00 16 02 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:03:33]wFMCommunicate OK [13:03:33]SAM_PROTO_GetFieldsCounters done [13:03:33]requested_item shift.num is exist - process it [13:03:33]requested_item shift.opened is exist - process it [13:03:33]req_shift_opened [13:03:33]FM_GetShiftState [13:03:33]SAM_PROTO_GetShiftState [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 13 01 00 [13:03:33]Write to MH i2c: E2 08 00 4C EB 80 13 01 00 00 00 00 00 B4 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:33]Read from MH i2c: E2 0E 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 0E 00 4C EB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FC [13:03:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:03:33]wFMCommunicate OK [13:03:33]SAM_PROTO_GetShiftState done [13:03:33]FM_GetShiftState done [13:03:33]req_shift_opened done [13:03:33]requested_item shift.open_date is exist - process it [13:03:33]req_shift_open_date [13:03:33]req_shift_open_date done [13:03:33]produce_requested_data done [13:03:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165680,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:03:33]process_action_free close_receipt [13:03:33]json_value_free [13:03:33]json_value_free done [13:03:33]process_json_proto returns [13:03:33]Send response to host [13:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165680,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:03:33]free response buf [13:03:33]execute_script done [13:03:33]execute_script returns [13:03:33]free content buf [13:03:33]Sock 9.Close socket [13:03:33]Sock 9.Thread stoped [13:03:37]OFD Sender: No OFD packet to send [13:03:40]accept exits with 7 [13:03:40]New connection [13:03:40]New thread 3066920292 created [13:03:40]Thread 3066776932 joined [13:03:40]Waiting for new connection... [13:03:40] Sock 7.Parse request [13:03:40]Sock 7.Check first char [13:03:40]Sock 7.First char is OK [13:03:40]request: POST /json_proto HTTP/1.0 [13:03:40]Method: POST [13:03:40]URL: /json_proto [13:03:40]Method is POST - this is cgi request [13:03:40]url: /json_proto [13:03:40]query_string will be loaded in cgi processing [13:03:40]execute_cgi json_proto POST (null) [13:03:40]execute_cgi path=json_proto method=POST [13:03:40]POST find Content-Length [13:03:40]Host: 172.17.53.195:8080 [13:03:40]Content-Length: 678 [13:03:40]Content-Type: application/json [13:03:40] [13:03:40]POST finish read [13:03:40]Found Content-Length = 678 [13:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:40]execute_script... [13: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)220246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:40]POST & json_proto [13:03:40]process_json_proto [13:03:40]json parsed OK: [13:03:40]protocol is kg_v1.0 [13:03:40]action value=close_receipt [13:03:40]process_action close_receipt [13:03:40]cmd_close_receipt [13:03:40]MH_GetDate [13:03:40]Write to MH i2c: F0 00 00 4D EB 27 [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: F0 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: F0 09 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: F0 09 00 4D EB 00 B9 FF 14 67 21 48 4A 65 7B [13:03:40]GetLastDocTimeStamp 1729429421 [13:03:40]current date 1729429433 [13:03:40]FM_GetShiftState [13:03:40]SAM_PROTO_GetShiftState [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 13 01 00 [13:03:40]Write to MH i2c: E2 08 00 4E EB 80 13 01 00 00 00 00 00 B6 [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 0E 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 0E 00 4E EB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FE [13:03:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:03:40]wFMCommunicate OK [13:03:40]SAM_PROTO_GetShiftState done [13:03:40]FM_GetShiftState done [13:03:40]opened in 1729384561 [13:03:40]opened+sec_in_day 1729470961 [13:03:40]quantity*price = 80012 [13:03:40]sum+1 = 80013 [13:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 163 20.10.2024 13:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165681 ФПД: 80610646899450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130353&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165681&fm=80610646899450&tin=02508201610067®Number=0000000000091764&sum=80000 [13:03:41]StoreToDocumentArchive [13:03:41]shift 534 fd 165681 [13:03:41]save to /storage/0534/doc_00165681 [13:03:41]save last doc name /storage/0534/doc_00165681 to /storage/kkm_last_doc_name [13:03:41]save OK [13:03:41]Clear old archive folders... [13:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:41]tlvbuf is 01464E90 [13:03:41]SAM_PROTO_ClearQueue [13:03:41]wFMCommunicate request_size=4 [13:03:41]MH_SAM_APDU [13:03:41]CAPDU: 80 09 00 00 [13:03:41]Write to MH i2c: E2 08 00 5B EB 80 09 00 00 00 00 00 00 B8 [13:03:41]Write i2c OK [13:03:41]MH_I2C_Read... [13:03:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:41]Read from MH i2c: E2 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: E2 03 00 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: E2 03 00 5B EB 00 90 00 BA [13:03:41]RAPDU: 90 00 [13:03:41]wFMCommunicate OK [13:03:41]SAM_PROTO_ClearQueue done [13:03:41]KKMCreateOFDPacket [13:03:41]OFDProtocolAddRootSTLVToBuf [13:03:41]FM_MakeSignedData [13:03:41]FM_MakeSignedData [13:03:41]SAM_PROTO_SignData [13:03:41]wFMCommunicate request_size=4 [13:03:41]MH_SAM_APDU [13:03:41]CAPDU: 80 0D 01 02 [13:03:41]Write to MH i2c: E2 08 00 5C EB 80 0D 01 02 00 00 00 00 C0 [13:03:41]Write i2c OK [13:03:41]MH_I2C_Read... [13:03:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:41]Read from MH i2c: E2 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: E2 03 00 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: E2 03 00 5C EB 00 90 00 BB [13:03:41]RAPDU: 90 00 [13:03:41]wFMCommunicate OK [13:03:41]wFMCommunicate request_size=255 [13:03:41]MH_SAM_APDU [13: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A3 00 00 00 F4 03 04 00 B9 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 87 02 00 35 04 06 00 49 [13:03:42]Write to MH i2c: E2 02 01 5D EB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A3 00 00 00 F4 03 04 00 B9 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 87 02 00 35 04 06 00 49 00 00 33 [13:03:42]OFD Sender: No OFD packet to send [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 5D EB 00 90 00 BC [13:03:42]RAPDU: 90 00 [13:03:42]wFMCommunicate OK [13:03:42]wFMCommunicate request_size=10 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 0D 02 02 05 50 A0 F9 3A FA [13:03:42]Write to MH i2c: E2 0D 00 5E EB 80 0D 02 02 05 00 50 A0 F9 3A FA 00 00 EA [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 5E EB 00 90 00 BD [13:03:42]RAPDU: 90 00 [13:03:42]wFMCommunicate OK [13:03:42]wFMCommunicate request_size=4 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 0D 03 02 [13:03:42]Write to MH i2c: E2 08 00 5F EB 80 0D 03 02 00 00 00 00 C5 [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 0B 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 0B 00 5F EB 00 AD 72 75 87 FC DB 9A 5D 90 00 AF [13:03:42]RAPDU: AD 72 75 87 FC DB 9A 5D 90 00 [13:03:42]wFMCommunicate OK [13:03:42]SAM_PROTO_SignData done [13:03:42]FM_MakeSignedData done [13:03:42]CreateOFDProtocolMessage [13:03:42]wFMCommunicate request_size=4 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 11 00 00 [13:03:42]Write to MH i2c: E2 08 00 60 EB 80 11 00 00 00 00 00 00 C5 [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 17 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 17 00 60 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [13:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:03:42]wFMCommunicate OK [13:03:42]CreateOFDProtocolMessage done [13:03:42]OFDSenderStorePacket 165681 [13:03:42]StoreOFDPacket docnum=165681 [13:03:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F6 60 07 01 BB 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A3 00 00 00 F4 03 04 00 B9 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 87 02 00 35 04 06 00 49 50 A0 F9 3A FA AD 72 75 87 FC DB 9A 5D [13:03:42]CheckFolder [13:03:42]dirname=/storage/ofd_packets [13:03:42]CheckFolder done [13:03:42]ProducePacketName [13:03:42]name=ofd_packets/00165681 [13:03:42]NVStorageSaveData ofd_packets/00165681 [13:03:42]File name is /storage/ofd_packets/00165681 [13:03:42]Write 301 bytes [13:03:42]NVStorageSaveData done [13:03:42]OFDSenderStorePacket done [13:03:42]KKMCreateOFDPacket done [13:03:42]NVStorageSaveData kkm_last_timestamp [13:03:42]File name is /storage/kkm_last_timestamp [13:03:42]Write 4 bytes [13:03:42]NVStorageSaveData done [13:03:42]ExternCall_PrintAddStr [13:03:42]wPrintStart [13:03:42]Write to MH i2c: 01 00 00 61 EB 4C [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 07 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 07 00 61 EB 00 00 00 00 00 FF 0F 61 [13:03:42]RasterBufferAndPrint [13:03:42]line Счет N : (1)220246 [13:03:42]line ИНН: 02508201610067 [13:03:42]line Контрольно-Кассовый Чек [13:03:42]line ПРОДАЖА [13:03:42]line ТРК (МРК, ГНК) : 33 [13:03:42]line Товар: 2710124130 [13:03:42]line Аи-92-К-5 [13:03:42]line 11.960 * 66.90 [13:03:42]line = 800.12 [13:03:42]line НДС 12% НСП 1% [13:03:42]line > о реализуемом товаре [13:03:42]line ОКРУГЛЕНИЕ: -0.12 [13:03:42]line ИТОГО: 800.00 [13:03:42]line Внесено: 800.00 [13:03:42]line СДАЧА: 0.00 [13:03:42]line НСП 1% : 7.08 [13:03:42]line НДС 12% : 84.97 [13:03:42]line Наличными: 800.00 [13:03:42]line Безнал.: 0.00 [13:03:42]line Место: АЗС № 161 "Партнер Нефть" [13:03:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:03:42]line СНО: Общий режим [13:03:42]line Чек 163 20.10.2024 13:03 [13:03:42]line Смена: 534 ФФД: 1.0 [13:03:42]line ЗНМ: 0300000104 [13:03:42]line РНМ: 0000000000091764 [13:03:42]line Версия ККМ: 001 [13:03:42]line ФМ: 0000000000871759 [13:03:42]line ФД: 165681 [13:03:42]line ФПД: 80610646899450 [13:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130353&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165681&fm=80610646899450&tin=02508201610067®Number=0000000000091764&sum=80000 [13:03:42]written 0, free lines is 4095 [13:03:42]OFD Sender: Processing packet 165681 [packets to send 48, broken 47] [13:03:42]ProducePacketName [13:03:42]name=ofd_packets/00165681 [13:03:42]OFD Sender: To server: pG, [13:03:42]CommunicateWithHost lk.salyk.kg:30040 [13:03:42]ConnectInit lk.salyk.kg [13:03:42]Connected sock=10 [13: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 31 37 35 39 0F 01 00 00 F6 60 07 01 BB 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A3 00 00 00 F4 03 04 00 B9 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 87 02 00 35 04 06 00 49 50 A0 F9 3A FA AD 72 75 87 FC DB 9A 5D [13:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 AA 47 00 F7 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 87 02 00 F4 03 04 00 2A A6 14 67 B6 04 01 00 00 D1 4C 35 37 C7 5F 2D 00 [13:03:43]CommunicateWithHost err = 0 [13:03:43]CheckOFDResponse [13:03:43]1017 (14) - 77093643461234 [13:03:43]1041 (16) - 0000000000871759 [13:03:43]1040 (4) - 165681 [13:03:43]1012 (4) - 20.10.2024 06:41 [13:03:43]1206 (1) - 0 [13:03:43]OFD Sender: Remove packet 165681 [13:03:43]ProducePacketName [13:03:43]name=ofd_packets/00165681 [13:03:43]NVStorageDeleteData [13:03:43]Write to MH i2c: 01 00 00 8C EB 77 [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: 01 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: 01 07 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: 01 07 00 8C EB 00 00 00 00 00 1A 0D A5 [13:03:43]RasterBufferAndPrint [13:03:43]line [13:03:43]line [13:03:43]line [13:03:43]line [13:03:43]line [13:03:43]written 0, free lines is 3372 [13:03:43]MH_Cut [13:03:43]Write to MH i2c: D1 01 00 93 EB 01 50 [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: D1 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: D1 01 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: D1 01 00 93 EB 00 4F [13:03:43]Write to MH i2c: 01 00 00 94 EB 7F [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]OFD Sender: No OFD packet to send [13:03:43]*** Cut start [13:03:43]*** Partial cut [13:03:43]*** CUTSNS_PIN = 1 [13:03:43]*** CUTSNS_PIN = 0 [13:03:44]*** Brake cut motor [13:03:44]Read from MH i2c: 01 [13:03:44]MH_I2C_Read... [13:03:44]*** Stop cut motor [13:03:44]*** Cut end [13:03:44]Read from MH i2c: 01 07 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: 01 07 00 94 EB 00 00 00 00 00 FF 0F 94 [13:03:44]process_action close_receipt done [13:03:44]requested_data is exist [13:03:44]produce_requested_data [13:03:44]requested_item fm.sn is exist - process it [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 11 00 00 [13:03:44]Write to MH i2c: E2 08 00 95 EB 80 11 00 00 00 00 00 00 FA [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 17 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 17 00 95 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [13:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:03:44]wFMCommunicate OK [13:03:44]requested_item fd.num is exist - process it [13:03:44]SAM_PROTO_GetFieldsCounters [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 13 00 00 [13:03:44]Write to MH i2c: E2 08 00 96 EB 80 13 00 00 00 00 00 00 FD [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 62 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 62 00 96 EB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 87 02 00 0E 04 04 00 16 02 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 E0 [13: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 87 02 00 0E 04 04 00 16 02 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:03:44]wFMCommunicate OK [13:03:44]SAM_PROTO_GetFieldsCounters done [13:03:44]requested_item shift.num is exist - process it [13:03:44]requested_item shift.opened is exist - process it [13:03:44]req_shift_opened [13:03:44]FM_GetShiftState [13:03:44]SAM_PROTO_GetShiftState [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 13 01 00 [13:03:44]Write to MH i2c: E2 08 00 97 EB 80 13 01 00 00 00 00 00 FF [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 0E 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 0E 00 97 EB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 47 [13:03:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:03:44]wFMCommunicate OK [13:03:44]SAM_PROTO_GetShiftState done [13:03:44]FM_GetShiftState done [13:03:44]req_shift_opened done [13:03:44]requested_item shift.open_date is exist - process it [13:03:44]req_shift_open_date [13:03:44]req_shift_open_date done [13:03:44]produce_requested_data done [13:03:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165681,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:03:44]process_action_free close_receipt [13:03:44]json_value_free [13:03:44]json_value_free done [13:03:44]process_json_proto returns [13:03:44]Send response to host [13:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165681,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:03:44]free response buf [13:03:44]execute_script done [13:03:44]execute_script returns [13:03:44]free content buf [13:03:44]Sock 7.Close socket [13:03:44]Sock 7.Thread stoped [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:44]accept exits with 9 [13:04:44]New connection [13:04:44]New thread 3066776932 created [13:04:44]Thread 3066920292 joined [13:04:44]Waiting for new connection... [13:04:44] Sock 9.Parse request [13:04:44]Sock 9.Check first char [13:04:44]Sock 9.First char is OK [13:04:44]request: POST /json_proto HTTP/1.0 [13:04:44]Method: POST [13:04:44]URL: /json_proto [13:04:44]Method is POST - this is cgi request [13:04:44]url: /json_proto [13:04:44]query_string will be loaded in cgi processing [13:04:44]execute_cgi json_proto POST (null) [13:04:44]execute_cgi path=json_proto method=POST [13:04:44]POST find Content-Length [13:04:44]Host: 172.17.53.195:8080 [13:04:44]Content-Length: 677 [13:04:44]Content-Type: application/json [13:04:44] [13:04:44]POST finish read [13:04:44]Found Content-Length = 677 [13:04:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:44]execute_script... [13:04: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)220247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:44]POST & json_proto [13:04:44]process_json_proto [13:04:44]json parsed OK: [13:04:44]protocol is kg_v1.0 [13:04:44]action value=close_receipt [13:04:44]process_action close_receipt [13:04:44]cmd_close_receipt [13:04:44]MH_GetDate [13:04:44]Write to MH i2c: F0 00 00 98 EB 72 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 09 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 09 00 98 EB 00 F8 FF 14 67 21 48 4A 65 05 [13:04:44]GetLastDocTimeStamp 1729429433 [13:04:44]current date 1729429496 [13:04:44]FM_GetShiftState [13:04:44]SAM_PROTO_GetShiftState [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 13 01 00 [13:04:44]Write to MH i2c: E2 08 00 99 EB 80 13 01 00 00 00 00 00 01 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 99 EB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 49 [13:04:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:04:44]wFMCommunicate OK [13:04:44]SAM_PROTO_GetShiftState done [13:04:44]FM_GetShiftState done [13:04:44]opened in 1729384561 [13:04:44]opened+sec_in_day 1729470961 [13:04:44]quantity*price = 50041 [13:04:44]sum+1 = 50042 [13:04:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 164 20.10.2024 13:04 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165682 ФПД: 271596579230943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130456&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165682&fm=271596579230943&tin=02508201610067®Number=0000000000091764&sum=50000 [13:04:45]StoreToDocumentArchive [13:04:45]shift 534 fd 165682 [13:04:45]save to /storage/0534/doc_00165682 [13:04:45]save last doc name /storage/0534/doc_00165682 to /storage/kkm_last_doc_name [13:04:45]save OK [13:04:45]Clear old archive folders... [13:04:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:45]tlvbuf is 014B2810 [13:04:45]SAM_PROTO_ClearQueue [13:04:45]wFMCommunicate request_size=4 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 09 00 00 [13:04:45]Write to MH i2c: E2 08 00 A6 EB 80 09 00 00 00 00 00 00 03 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 A6 EB 00 90 00 05 [13:04:45]RAPDU: 90 00 [13:04:45]wFMCommunicate OK [13:04:45]SAM_PROTO_ClearQueue done [13:04:45]KKMCreateOFDPacket [13:04:45]OFDProtocolAddRootSTLVToBuf [13:04:45]FM_MakeSignedData [13:04:45]FM_MakeSignedData [13:04:45]SAM_PROTO_SignData [13:04:45]wFMCommunicate request_size=4 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 0D 01 02 [13:04:45]Write to MH i2c: E2 08 00 A7 EB 80 0D 01 02 00 00 00 00 0B [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 A7 EB 00 90 00 06 [13:04:45]RAPDU: 90 00 [13:04:45]wFMCommunicate OK [13:04:45]wFMCommunicate request_size=255 [13:04:45]MH_SAM_APDU [13:04: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F8 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 87 02 00 35 04 06 00 F7 [13:04:45]Write to MH i2c: E2 02 01 A8 EB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F8 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 87 02 00 35 04 06 00 F7 00 00 81 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 A8 EB 00 90 00 07 [13:04:45]RAPDU: 90 00 [13:04:45]wFMCommunicate OK [13:04:45]wFMCommunicate request_size=10 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 0D 02 02 05 04 01 A0 94 DF [13:04:45]Write to MH i2c: E2 0D 00 A9 EB 80 0D 02 02 05 00 04 01 A0 94 DF 00 00 30 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 A9 EB 00 90 00 08 [13:04:45]RAPDU: 90 00 [13:04:45]wFMCommunicate OK [13:04:45]wFMCommunicate request_size=4 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 0D 03 02 [13:04:45]Write to MH i2c: E2 08 00 AA EB 80 0D 03 02 00 00 00 00 10 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 0B 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 0B 00 AA EB 00 63 D4 AE F7 06 E9 15 EA 90 00 DB [13:04:45]RAPDU: 63 D4 AE F7 06 E9 15 EA 90 00 [13:04:45]wFMCommunicate OK [13:04:45]SAM_PROTO_SignData done [13:04:45]FM_MakeSignedData done [13:04:45]CreateOFDProtocolMessage [13:04:45]wFMCommunicate request_size=4 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 11 00 00 [13:04:45]Write to MH i2c: E2 08 00 AB EB 80 11 00 00 00 00 00 00 10 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 17 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 17 00 AB EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [13:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:04:45]wFMCommunicate OK [13:04:45]CreateOFDProtocolMessage done [13:04:45]OFDSenderStorePacket 165682 [13:04:45]StoreOFDPacket docnum=165682 [13:04:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DB 72 07 01 4C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F8 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 87 02 00 35 04 06 00 F7 04 01 A0 94 DF 63 D4 AE F7 06 E9 15 EA [13:04:45]CheckFolder [13:04:45]dirname=/storage/ofd_packets [13:04:45]CheckFolder done [13:04:45]ProducePacketName [13:04:45]name=ofd_packets/00165682 [13:04:45]NVStorageSaveData ofd_packets/00165682 [13:04:45]File name is /storage/ofd_packets/00165682 [13:04:45]Write 301 bytes [13:04:45]NVStorageSaveData done [13:04:45]OFDSenderStorePacket done [13:04:45]KKMCreateOFDPacket done [13:04:45]NVStorageSaveData kkm_last_timestamp [13:04:45]File name is /storage/kkm_last_timestamp [13:04:45]Write 4 bytes [13:04:45]NVStorageSaveData done [13:04:45]ExternCall_PrintAddStr [13:04:45]wPrintStart [13:04:45]Write to MH i2c: 01 00 00 AC EB 97 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: 01 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: 01 07 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: 01 07 00 AC EB 00 00 00 00 00 FF 0F AC [13:04:45]RasterBufferAndPrint [13:04:45]line Счет N : (1)220247 [13:04:45]line ИНН: 02508201610067 [13:04:45]line Контрольно-Кассовый Чек [13:04:45]line ПРОДАЖА [13:04:45]line ТРК (МРК, ГНК) : 23 [13:04:45]line Товар: 2710124130 [13:04:45]line Аи-92-К-5 [13:04:45]line 7.480 * 66.90 [13:04:45]line = 500.41 [13:04:45]line НДС 12% НСП 1% [13:04:45]line > о реализуемом товаре [13:04:45]line ОКРУГЛЕНИЕ: -0.41 [13:04:45]line ИТОГО: 500.00 [13:04:45]line Внесено: 500.00 [13:04:45]line СДАЧА: 0.00 [13:04:45]line НСП 1% : 4.43 [13:04:45]line НДС 12% : 53.14 [13:04:45]line Наличными: 500.00 [13:04:45]line Безнал.: 0.00 [13:04:45]line Место: АЗС № 161 "Партнер Нефть" [13:04:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:04:45]line СНО: Общий режим [13:04:45]line Чек 164 20.10.2024 13:04 [13:04:45]line Смена: 534 ФФД: 1.0 [13:04:45]line ЗНМ: 0300000104 [13:04:45]line РНМ: 0000000000091764 [13:04:45]line Версия ККМ: 001 [13:04:45]line ФМ: 0000000000871759 [13:04:45]line ФД: 165682 [13:04:45]line ФПД: 271596579230943 [13:04:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130456&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165682&fm=271596579230943&tin=02508201610067®Number=0000000000091764&sum=50000 [13:04:46]OFD Sender: Processing packet 165682 [packets to send 48, broken 47] [13:04:46]ProducePacketName [13:04:46]name=ofd_packets/00165682 [13:04:46]OFD Sender: To server: pG, [13:04:46]CommunicateWithHost lk.salyk.kg:30040 [13:04:46]ConnectInit lk.salyk.kg [13:04:46]written 0, free lines is 4095 [13:04:46]Connected sock=7 [13:04:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DB 72 07 01 4C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F8 FF 14 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 87 02 00 35 04 06 00 F7 04 01 A0 94 DF 63 D4 AE F7 06 E9 15 EA [13:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DD B2 47 00 A7 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 31 37 35 39 10 04 04 00 32 87 02 00 F4 03 04 00 6A A6 14 67 B6 04 01 00 00 8F 66 99 89 3C 28 D4 E5 [13:04:46]CommunicateWithHost err = 0 [13:04:46]CheckOFDResponse [13:04:46]1017 (14) - 77093643461234 [13:04:46]1041 (16) - 0000000000871759 [13:04:46]1040 (4) - 165682 [13:04:46]1012 (4) - 20.10.2024 06:42 [13:04:46]1206 (1) - 0 [13:04:46]OFD Sender: Remove packet 165682 [13:04:46]ProducePacketName [13:04:46]name=ofd_packets/00165682 [13:04:46]NVStorageDeleteData [13:04:46]Write to MH i2c: 01 00 00 D7 EB C2 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 07 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 07 00 D7 EB 00 00 00 00 00 C0 0C 95 [13:04:46]RasterBufferAndPrint [13:04:46]line [13:04:46]line [13:04:46]line [13:04:46]line [13:04:46]line [13:04:46]written 0, free lines is 3273 [13:04:46]MH_Cut [13:04:46]Write to MH i2c: D1 01 00 DE EB 01 9B [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: D1 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: D1 01 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: D1 01 00 DE EB 00 9A [13:04:46]Write to MH i2c: 01 00 00 DF EB CA [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:47]OFD Sender: No OFD packet to send [13:04:47]*** Cut start [13:04:47]*** Partial cut [13:04:47]*** CUTSNS_PIN = 1 [13:04:47]*** CUTSNS_PIN = 0 [13:04:47]*** Brake cut motor [13:04:48]Read from MH i2c: 01 [13:04:48]MH_I2C_Read... [13:04:48]*** Stop cut motor [13:04:48]*** Cut end [13:04:48]Read from MH i2c: 01 07 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 DF EB 00 00 00 00 00 FF 0F DF [13:04:48]process_action close_receipt done [13:04:48]requested_data is exist [13:04:48]produce_requested_data [13:04:48]requested_item fm.sn is exist - process it [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 11 00 00 [13:04:48]Write to MH i2c: E2 08 00 E0 EB 80 11 00 00 00 00 00 00 45 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 E0 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [13:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:04:48]wFMCommunicate OK [13:04:48]requested_item fd.num is exist - process it [13:04:48]SAM_PROTO_GetFieldsCounters [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 13 00 00 [13:04:48]Write to MH i2c: E2 08 00 E1 EB 80 13 00 00 00 00 00 00 48 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 62 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 62 00 E1 EB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 87 02 00 0E 04 04 00 16 02 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 2F [13:04:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 87 02 00 0E 04 04 00 16 02 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:04:48]wFMCommunicate OK [13:04:48]SAM_PROTO_GetFieldsCounters done [13:04:48]requested_item shift.num is exist - process it [13:04:48]requested_item shift.opened is exist - process it [13:04:48]req_shift_opened [13:04:48]FM_GetShiftState [13:04:48]SAM_PROTO_GetShiftState [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 13 01 00 [13:04:48]Write to MH i2c: E2 08 00 E2 EB 80 13 01 00 00 00 00 00 4A [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0E 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0E 00 E2 EB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 92 [13:04:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:04:48]wFMCommunicate OK [13:04:48]SAM_PROTO_GetShiftState done [13:04:48]FM_GetShiftState done [13:04:48]req_shift_opened done [13:04:48]requested_item shift.open_date is exist - process it [13:04:48]req_shift_open_date [13:04:48]req_shift_open_date done [13:04:48]produce_requested_data done [13:04:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165682,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:04:48]process_action_free close_receipt [13:04:48]json_value_free [13:04:48]json_value_free done [13:04:48]process_json_proto returns [13:04:48]Send response to host [13:04:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165682,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:04:48]free response buf [13:04:48]execute_script done [13:04:48]execute_script returns [13:04:48]free content buf [13:04:48]Sock 9.Close socket [13:04:48]Sock 9.Thread stoped [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:19]accept exits with 10 [13:05:19]New connection [13:05:19]New thread 3066920292 created [13:05:19]Thread 3066776932 joined [13:05:19]Waiting for new connection... [13:05:19] Sock 10.Parse request [13:05:19]Sock 10.Check first char [13:05:19]Sock 10.First char is OK [13:05:19]request: POST /json_proto HTTP/1.0 [13:05:19]Method: POST [13:05:19]URL: /json_proto [13:05:19]Method is POST - this is cgi request [13:05:19]url: /json_proto [13:05:19]query_string will be loaded in cgi processing [13:05:19]execute_cgi json_proto POST (null) [13:05:19]execute_cgi path=json_proto method=POST [13:05:19]POST find Content-Length [13:05:19]Host: 172.17.53.195:8080 [13:05:19]Content-Length: 677 [13:05:19]Content-Type: application/json [13:05:19] [13:05:19]POST finish read [13:05:19]Found Content-Length = 677 [13:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:19]execute_script... [13:05: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)220248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:19]POST & json_proto [13:05:19]process_json_proto [13:05:19]json parsed OK: [13:05:19]protocol is kg_v1.0 [13:05:19]action value=close_receipt [13:05:19]process_action close_receipt [13:05:19]cmd_close_receipt [13:05:19]MH_GetDate [13:05:19]Write to MH i2c: F0 00 00 E3 EB BD [13:05:19]Write i2c OK [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: F0 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: F0 09 00 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: F0 09 00 E3 EB 00 1C 00 15 67 21 48 4A 65 76 [13:05:19]GetLastDocTimeStamp 1729429496 [13:05:19]current date 1729429532 [13:05:19]FM_GetShiftState [13:05:19]SAM_PROTO_GetShiftState [13:05:19]wFMCommunicate request_size=4 [13:05:19]MH_SAM_APDU [13:05:19]CAPDU: 80 13 01 00 [13:05:19]Write to MH i2c: E2 08 00 E4 EB 80 13 01 00 00 00 00 00 4C [13:05:19]Write i2c OK [13:05:19]MH_I2C_Read... [13:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:19]Read from MH i2c: E2 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: E2 0E 00 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: E2 0E 00 E4 EB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 94 [13:05:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:05:19]wFMCommunicate OK [13:05:19]SAM_PROTO_GetShiftState done [13:05:19]FM_GetShiftState done [13:05:19]opened in 1729384561 [13:05:19]opened+sec_in_day 1729470961 [13:05:19]quantity*price = 50041 [13:05:19]sum+1 = 50042 [13:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 165 20.10.2024 13:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165683 ФПД: 42921924938020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130532&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165683&fm=42921924938020&tin=02508201610067®Number=0000000000091764&sum=50000 [13:05:20]StoreToDocumentArchive [13:05:20]shift 534 fd 165683 [13:05:20]save to /storage/0534/doc_00165683 [13:05:20]save last doc name /storage/0534/doc_00165683 to /storage/kkm_last_doc_name [13:05:20]save OK [13:05:20]Clear old archive folders... [13:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:20]tlvbuf is 014DA690 [13:05:20]SAM_PROTO_ClearQueue [13:05:20]wFMCommunicate request_size=4 [13:05:20]MH_SAM_APDU [13:05:20]CAPDU: 80 09 00 00 [13:05:20]Write to MH i2c: E2 08 00 F1 EB 80 09 00 00 00 00 00 00 4E [13:05:20]Write i2c OK [13:05:20]MH_I2C_Read... [13:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:20]Read from MH i2c: E2 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: E2 03 00 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: E2 03 00 F1 EB 00 90 00 50 [13:05:20]RAPDU: 90 00 [13:05:20]wFMCommunicate OK [13:05:20]SAM_PROTO_ClearQueue done [13:05:20]KKMCreateOFDPacket [13:05:20]OFDProtocolAddRootSTLVToBuf [13:05:20]FM_MakeSignedData [13:05:20]FM_MakeSignedData [13:05:20]SAM_PROTO_SignData [13:05:20]wFMCommunicate request_size=4 [13:05:20]MH_SAM_APDU [13:05:20]CAPDU: 80 0D 01 02 [13:05:20]Write to MH i2c: E2 08 00 F2 EB 80 0D 01 02 00 00 00 00 56 [13:05:20]Write i2c OK [13:05:20]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 F2 EB 00 90 00 51 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]wFMCommunicate request_size=255 [13:05:21]MH_SAM_APDU [13:05: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 1C 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 87 02 00 35 04 06 00 27 [13:05:21]Write to MH i2c: E2 02 01 F3 EB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 1C 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 87 02 00 35 04 06 00 27 00 00 24 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 F3 EB 00 90 00 52 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]wFMCommunicate request_size=10 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 0D 02 02 05 09 8A 16 C9 24 [13:05:21]Write to MH i2c: E2 0D 00 F4 EB 80 0D 02 02 05 00 09 8A 16 C9 24 00 00 F9 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 F4 EB 00 90 00 53 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 0D 03 02 [13:05:21]Write to MH i2c: E2 08 00 F5 EB 80 0D 03 02 00 00 00 00 5B [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 0B 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 0B 00 F5 EB 00 63 BD 63 EF 79 55 83 47 90 00 66 [13:05:21]RAPDU: 63 BD 63 EF 79 55 83 47 90 00 [13:05:21]wFMCommunicate OK [13:05:21]SAM_PROTO_SignData done [13:05:21]FM_MakeSignedData done [13:05:21]CreateOFDProtocolMessage [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 11 00 00 [13:05:21]Write to MH i2c: E2 08 00 F6 EB 80 11 00 00 00 00 00 00 5B [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 17 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 17 00 F6 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [13:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:05:21]wFMCommunicate OK [13:05:21]CreateOFDProtocolMessage done [13:05:21]OFDSenderStorePacket 165683 [13:05:21]StoreOFDPacket docnum=165683 [13:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 E8 07 01 25 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 1C 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 87 02 00 35 04 06 00 27 09 8A 16 C9 24 63 BD 63 EF 79 55 83 47 [13:05:21]CheckFolder [13:05:21]dirname=/storage/ofd_packets [13:05:21]CheckFolder done [13:05:21]ProducePacketName [13:05:21]name=ofd_packets/00165683 [13:05:21]NVStorageSaveData ofd_packets/00165683 [13:05:21]File name is /storage/ofd_packets/00165683 [13:05:21]Write 301 bytes [13:05:21]NVStorageSaveData done [13:05:21]OFDSenderStorePacket done [13:05:21]KKMCreateOFDPacket done [13:05:21]NVStorageSaveData kkm_last_timestamp [13:05:21]File name is /storage/kkm_last_timestamp [13:05:21]Write 4 bytes [13:05:21]NVStorageSaveData done [13:05:21]ExternCall_PrintAddStr [13:05:21]wPrintStart [13:05:21]Write to MH i2c: 01 00 00 F7 EB E2 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: 01 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: 01 07 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: 01 07 00 F7 EB 00 00 00 00 00 FF 0F F7 [13:05:21]RasterBufferAndPrint [13:05:21]line Счет N : (1)220248 [13:05:21]line ИНН: 02508201610067 [13:05:21]line Контрольно-Кассовый Чек [13:05:21]line ПРОДАЖА [13:05:21]line ТРК (МРК, ГНК) : 33 [13:05:21]line Товар: 2710124130 [13:05:21]line Аи-92-К-5 [13:05:21]line 7.480 * 66.90 [13:05:21]line = 500.41 [13:05:21]line НДС 12% НСП 1% [13:05:21]line > о реализуемом товаре [13:05:21]line ОКРУГЛЕНИЕ: -0.41 [13:05:21]line ИТОГО: 500.00 [13:05:21]line Внесено: 500.00 [13:05:21]line СДАЧА: 0.00 [13:05:21]line НСП 1% : 4.43 [13:05:21]line НДС 12% : 53.14 [13:05:21]line Наличными: 500.00 [13:05:21]line Безнал.: 0.00 [13:05:21]line Место: АЗС № 161 "Партнер Нефть" [13:05:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:05:21]line СНО: Общий режим [13:05:21]line Чек 165 20.10.2024 13:05 [13:05:21]line Смена: 534 ФФД: 1.0 [13:05:21]line ЗНМ: 0300000104 [13:05:21]line РНМ: 0000000000091764 [13:05:21]line Версия ККМ: 001 [13:05:21]line ФМ: 0000000000871759 [13:05:21]line ФД: 165683 [13:05:21]line ФПД: 42921924938020 [13:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130532&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165683&fm=42921924938020&tin=02508201610067®Number=0000000000091764&sum=50000 [13:05:21]OFD Sender: Processing packet 165683 [packets to send 48, broken 47] [13:05:21]ProducePacketName [13:05:21]name=ofd_packets/00165683 [13:05:21]OFD Sender: To server: pG, [13:05:21]CommunicateWithHost lk.salyk.kg:30040 [13:05:21]ConnectInit lk.salyk.kg [13:05:21]written 0, free lines is 4095 [13:05:21]Connected sock=9 [13:05:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 E8 07 01 25 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 1C 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 87 02 00 35 04 06 00 27 09 8A 16 C9 24 63 BD 63 EF 79 55 83 47 [13:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 32 A7 47 00 1D 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 87 02 00 F4 03 04 00 8E A6 14 67 B6 04 01 00 00 9E BA 5D 7A A5 7A EB B2 [13:05:22]CommunicateWithHost err = 0 [13:05:22]CheckOFDResponse [13:05:22]1017 (14) - 77093643461234 [13:05:22]1041 (16) - 0000000000871759 [13:05:22]1040 (4) - 165683 [13:05:22]1012 (4) - 20.10.2024 06:43 [13:05:22]1206 (1) - 0 [13:05:22]OFD Sender: Remove packet 165683 [13:05:22]ProducePacketName [13:05:22]name=ofd_packets/00165683 [13:05:22]NVStorageDeleteData [13:05:22]Write to MH i2c: 01 00 00 22 EC 0E [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 22 EC 00 00 00 00 00 BF 0C E0 [13:05:22]RasterBufferAndPrint [13:05:22]line [13:05:22]line [13:05:22]line [13:05:22]line [13:05:22]line [13:05:22]written 0, free lines is 3269 [13:05:22]MH_Cut [13:05:22]Write to MH i2c: D1 01 00 29 EC 01 E7 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: D1 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: D1 01 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: D1 01 00 29 EC 00 E6 [13:05:22]Write to MH i2c: 01 00 00 2A EC 16 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]OFD Sender: No OFD packet to send [13:05:23]*** Cut start [13:05:23]*** Partial cut [13:05:23]*** CUTSNS_PIN = 1 [13:05:23]*** CUTSNS_PIN = 0 [13:05:23]*** Brake cut motor [13:05:23]Read from MH i2c: 01 [13:05:23]MH_I2C_Read... [13:05:23]*** Stop cut motor [13:05:23]*** Cut end [13:05:23]Read from MH i2c: 01 07 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 07 00 2A EC 00 00 00 00 00 FF 0F 2B [13:05:23]process_action close_receipt done [13:05:23]requested_data is exist [13:05:23]produce_requested_data [13:05:23]requested_item fm.sn is exist - process it [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 11 00 00 [13:05:23]Write to MH i2c: E2 08 00 2B EC 80 11 00 00 00 00 00 00 91 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 17 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 17 00 2B EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E9 [13:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:05:23]wFMCommunicate OK [13:05:23]requested_item fd.num is exist - process it [13:05:23]SAM_PROTO_GetFieldsCounters [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 13 00 00 [13:05:23]Write to MH i2c: E2 08 00 2C EC 80 13 00 00 00 00 00 00 94 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 62 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 62 00 2C EC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 87 02 00 0E 04 04 00 16 02 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 7F [13:05:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 87 02 00 0E 04 04 00 16 02 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:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_GetFieldsCounters done [13:05:23]requested_item shift.num is exist - process it [13:05:23]requested_item shift.opened is exist - process it [13:05:23]req_shift_opened [13:05:23]FM_GetShiftState [13:05:23]SAM_PROTO_GetShiftState [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 13 01 00 [13:05:23]Write to MH i2c: E2 08 00 2D EC 80 13 01 00 00 00 00 00 96 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0E 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0E 00 2D EC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DE [13:05:23]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_GetShiftState done [13:05:23]FM_GetShiftState done [13:05:23]req_shift_opened done [13:05:23]requested_item shift.open_date is exist - process it [13:05:23]req_shift_open_date [13:05:23]req_shift_open_date done [13:05:23]produce_requested_data done [13:05:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165683,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:05:23]process_action_free close_receipt [13:05:23]json_value_free [13:05:23]json_value_free done [13:05:23]process_json_proto returns [13:05:23]Send response to host [13:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165683,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:05:23]free response buf [13:05:23]execute_script done [13:05:23]execute_script returns [13:05:23]free content buf [13:05:23]Sock 10.Close socket [13:05:23]Sock 10.Thread stoped [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:47]accept exits with 7 [13:06:47]New connection [13:06:47]New thread 3066776932 created [13:06:47]Thread 3066920292 joined [13:06:47]Waiting for new connection... [13:06:47] Sock 7.Parse request [13:06:47]Sock 7.Check first char [13:06:47]Sock 7.First char is OK [13:06:47]request: POST /json_proto HTTP/1.0 [13:06:47]Method: POST [13:06:47]URL: /json_proto [13:06:47]Method is POST - this is cgi request [13:06:47]url: /json_proto [13:06:47]query_string will be loaded in cgi processing [13:06:47]execute_cgi json_proto POST (null) [13:06:47]execute_cgi path=json_proto method=POST [13:06:47]POST find Content-Length [13:06:47]Host: 172.17.53.195:8080 [13:06:47]Content-Length: 678 [13:06:47]Content-Type: application/json [13:06:47] [13:06:47]POST finish read [13:06:47]Found Content-Length = 678 [13:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 11.460, "sum" : 850.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:47]execute_script... [13:06: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)220249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 11.460, "sum" : 850.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:47]POST & json_proto [13:06:47]process_json_proto [13:06:47]json parsed OK: [13:06:47]protocol is kg_v1.0 [13:06:47]action value=close_receipt [13:06:47]process_action close_receipt [13:06:47]cmd_close_receipt [13:06:47]MH_GetDate [13:06:47]Write to MH i2c: F0 00 00 2E EC 09 [13:06:47]Write i2c OK [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: F0 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: F0 09 00 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: F0 09 00 2E EC 00 74 00 15 67 21 48 4A 65 1A [13:06:47]GetLastDocTimeStamp 1729429532 [13:06:47]current date 1729429620 [13:06:47]FM_GetShiftState [13:06:47]SAM_PROTO_GetShiftState [13:06:47]wFMCommunicate request_size=4 [13:06:47]MH_SAM_APDU [13:06:47]CAPDU: 80 13 01 00 [13:06:47]Write to MH i2c: E2 08 00 2F EC 80 13 01 00 00 00 00 00 98 [13:06:47]Write i2c OK [13:06:47]MH_I2C_Read... [13:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:47]Read from MH i2c: E2 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: E2 0E 00 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: E2 0E 00 2F EC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E0 [13:06:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:06:47]wFMCommunicate OK [13:06:47]SAM_PROTO_GetShiftState done [13:06:47]FM_GetShiftState done [13:06:47]opened in 1729384561 [13:06:47]opened+sec_in_day 1729470961 [13:06:47]quantity*price = 85033 [13:06:47]sum+1 = 85034 [13:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 166 20.10.2024 13:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165684 ФПД: 42041822172832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130700&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165684&fm=42041822172832&tin=02508201610067®Number=0000000000091764&sum=85000 [13:06:48]StoreToDocumentArchive [13:06:48]shift 534 fd 165684 [13:06:48]save to /storage/0534/doc_00165684 [13:06:48]save last doc name /storage/0534/doc_00165684 to /storage/kkm_last_doc_name [13:06:48]save OK [13:06:48]Clear old archive folders... [13:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:48]tlvbuf is 01456DA0 [13:06:48]SAM_PROTO_ClearQueue [13:06:48]wFMCommunicate request_size=4 [13:06:48]MH_SAM_APDU [13:06:48]CAPDU: 80 09 00 00 [13:06:48]Write to MH i2c: E2 08 00 3C EC 80 09 00 00 00 00 00 00 9A [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:48]Read from MH i2c: E2 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 03 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 03 00 3C EC 00 90 00 9C [13:06:48]RAPDU: 90 00 [13:06:48]wFMCommunicate OK [13:06:48]SAM_PROTO_ClearQueue done [13:06:48]KKMCreateOFDPacket [13:06:48]OFDProtocolAddRootSTLVToBuf [13:06:48]FM_MakeSignedData [13:06:48]FM_MakeSignedData [13:06:48]SAM_PROTO_SignData [13:06:48]wFMCommunicate request_size=4 [13:06:48]MH_SAM_APDU [13:06:48]CAPDU: 80 0D 01 02 [13:06:48]Write to MH i2c: E2 08 00 3D EC 80 0D 01 02 00 00 00 00 A2 [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 3D EC 00 90 00 9D [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]wFMCommunicate request_size=255 [13:06:49]MH_SAM_APDU [13:06: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 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 74 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 87 02 00 35 04 06 00 26 [13:06:49]Write to MH i2c: E2 02 01 3E EC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 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 74 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 87 02 00 35 04 06 00 26 00 00 CB [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 3E EC 00 90 00 9E [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]wFMCommunicate request_size=10 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 0D 02 02 05 3C 9F E0 56 A0 [13:06:49]Write to MH i2c: E2 0D 00 3F EC 80 0D 02 02 05 00 3C 9F E0 56 A0 00 00 60 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 3F EC 00 90 00 9F [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 0D 03 02 [13:06:49]Write to MH i2c: E2 08 00 40 EC 80 0D 03 02 00 00 00 00 A7 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 0B 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 0B 00 40 EC 00 9E CF A5 88 91 17 73 B2 90 00 0F [13:06:49]RAPDU: 9E CF A5 88 91 17 73 B2 90 00 [13:06:49]wFMCommunicate OK [13:06:49]SAM_PROTO_SignData done [13:06:49]FM_MakeSignedData done [13:06:49]CreateOFDProtocolMessage [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 11 00 00 [13:06:49]Write to MH i2c: E2 08 00 41 EC 80 11 00 00 00 00 00 00 A7 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 17 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 17 00 41 EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [13:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:06:49]wFMCommunicate OK [13:06:49]CreateOFDProtocolMessage done [13:06:49]OFDSenderStorePacket 165684 [13:06:49]StoreOFDPacket docnum=165684 [13:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 15 07 07 01 15 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 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 74 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 87 02 00 35 04 06 00 26 3C 9F E0 56 A0 9E CF A5 88 91 17 73 B2 [13:06:49]CheckFolder [13:06:49]dirname=/storage/ofd_packets [13:06:49]CheckFolder done [13:06:49]ProducePacketName [13:06:49]name=ofd_packets/00165684 [13:06:49]NVStorageSaveData ofd_packets/00165684 [13:06:49]File name is /storage/ofd_packets/00165684 [13:06:49]Write 301 bytes [13:06:49]NVStorageSaveData done [13:06:49]OFDSenderStorePacket done [13:06:49]KKMCreateOFDPacket done [13:06:49]NVStorageSaveData kkm_last_timestamp [13:06:49]File name is /storage/kkm_last_timestamp [13:06:49]Write 4 bytes [13:06:49]NVStorageSaveData done [13:06:49]ExternCall_PrintAddStr [13:06:49]wPrintStart [13:06:49]Write to MH i2c: 01 00 00 42 EC 2E [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 42 EC 00 00 00 00 00 FF 0F 43 [13:06:49]RasterBufferAndPrint [13:06:49]line Счет N : (1)220249 [13:06:49]line ИНН: 02508201610067 [13:06:49]line Контрольно-Кассовый Чек [13:06:49]line ПРОДАЖА [13:06:49]line ТРК (МРК, ГНК) : 14 [13:06:49]line Товар: 2710124500 [13:06:49]line Аи-95-К-5 [13:06:49]line 11.460 * 74.20 [13:06:49]line = 850.33 [13:06:49]line НДС 12% НСП 1% [13:06:49]line > о реализуемом товаре [13:06:49]line ОКРУГЛЕНИЕ: -0.33 [13:06:49]line ИТОГО: 850.00 [13:06:49]line Внесено: 850.00 [13:06:49]line СДАЧА: 0.00 [13:06:49]line НСП 1% : 7.52 [13:06:49]line НДС 12% : 90.30 [13:06:49]line Наличными: 850.00 [13:06:49]line Безнал.: 0.00 [13:06:49]line Место: АЗС № 161 "Партнер Нефть" [13:06:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:06:49]line СНО: Общий режим [13:06:49]line Чек 166 20.10.2024 13:07 [13:06:49]line Смена: 534 ФФД: 1.0 [13:06:49]line ЗНМ: 0300000104 [13:06:49]line РНМ: 0000000000091764 [13:06:49]line Версия ККМ: 001 [13:06:49]line ФМ: 0000000000871759 [13:06:49]line ФД: 165684 [13:06:49]line ФПД: 42041822172832 [13:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130700&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165684&fm=42041822172832&tin=02508201610067®Number=0000000000091764&sum=85000 [13:06:49]OFD Sender: Processing packet 165684 [packets to send 48, broken 47] [13:06:49]ProducePacketName [13:06:49]name=ofd_packets/00165684 [13:06:49]OFD Sender: To server: pG, [13:06:49]CommunicateWithHost lk.salyk.kg:30040 [13:06:49]ConnectInit lk.salyk.kg [13:06:49]written 0, free lines is 4095 [13:06:49]Connected sock=10 [13:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 15 07 07 01 15 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 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 74 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 87 02 00 35 04 06 00 26 3C 9F E0 56 A0 9E CF A5 88 91 17 73 B2 [13:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6F 6A 47 00 B2 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 87 02 00 F4 03 04 00 E6 A6 14 67 B6 04 01 00 00 99 EB 34 BD 5D 36 A6 43 [13:06:50]CommunicateWithHost err = 0 [13:06:50]CheckOFDResponse [13:06:50]1017 (14) - 77093643461234 [13:06:50]1041 (16) - 0000000000871759 [13:06:50]1040 (4) - 165684 [13:06:50]1012 (4) - 20.10.2024 06:44 [13:06:50]1206 (1) - 0 [13:06:50]OFD Sender: Remove packet 165684 [13:06:50]ProducePacketName [13:06:50]name=ofd_packets/00165684 [13:06:50]NVStorageDeleteData [13:06:50]Write to MH i2c: 01 00 00 6D EC 59 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 07 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 07 00 6D EC 00 00 00 00 00 C8 0C 34 [13:06:50]RasterBufferAndPrint [13:06:50]line [13:06:50]line [13:06:50]line [13:06:50]line [13:06:50]line [13:06:50]written 0, free lines is 3278 [13:06:50]MH_Cut [13:06:50]Write to MH i2c: D1 01 00 74 EC 01 32 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: D1 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: D1 01 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: D1 01 00 74 EC 00 31 [13:06:50]Write to MH i2c: 01 00 00 75 EC 61 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]OFD Sender: No OFD packet to send [13:06:51]*** Cut start [13:06:51]*** Partial cut [13:06:51]*** CUTSNS_PIN = 1 [13:06:51]*** CUTSNS_PIN = 0 [13:06:51]*** Brake cut motor [13:06:51]Read from MH i2c: 01 [13:06:51]MH_I2C_Read... [13:06:51]*** Stop cut motor [13:06:51]*** Cut end [13:06:51]Read from MH i2c: 01 07 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 75 EC 00 00 00 00 00 FF 0F 76 [13:06:51]process_action close_receipt done [13:06:51]requested_data is exist [13:06:51]produce_requested_data [13:06:51]requested_item fm.sn is exist - process it [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 11 00 00 [13:06:51]Write to MH i2c: E2 08 00 76 EC 80 11 00 00 00 00 00 00 DC [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 76 EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [13:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:06:51]wFMCommunicate OK [13:06:51]requested_item fd.num is exist - process it [13:06:51]SAM_PROTO_GetFieldsCounters [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 13 00 00 [13:06:51]Write to MH i2c: E2 08 00 77 EC 80 13 00 00 00 00 00 00 DF [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 62 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 62 00 77 EC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 87 02 00 0E 04 04 00 16 02 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 CE [13:06:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 87 02 00 0E 04 04 00 16 02 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:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_GetFieldsCounters done [13:06:51]requested_item shift.num is exist - process it [13:06:51]requested_item shift.opened is exist - process it [13:06:51]req_shift_opened [13:06:51]FM_GetShiftState [13:06:51]SAM_PROTO_GetShiftState [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 13 01 00 [13:06:51]Write to MH i2c: E2 08 00 78 EC 80 13 01 00 00 00 00 00 E1 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0E 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0E 00 78 EC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 29 [13:06:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_GetShiftState done [13:06:51]FM_GetShiftState done [13:06:51]req_shift_opened done [13:06:51]requested_item shift.open_date is exist - process it [13:06:51]req_shift_open_date [13:06:51]req_shift_open_date done [13:06:51]produce_requested_data done [13:06:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165684,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:06:51]process_action_free close_receipt [13:06:51]json_value_free [13:06:51]json_value_free done [13:06:51]process_json_proto returns [13:06:51]Send response to host [13:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165684,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:06:51]free response buf [13:06:51]execute_script done [13:06:51]execute_script returns [13:06:51]free content buf [13:06:51]Sock 7.Close socket [13:06:51]Sock 7.Thread stoped [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:28]accept exits with 9 [13:07:28]New connection [13:07:28]New thread 3066920292 created [13:07:28]Thread 3066776932 joined [13:07:28]Waiting for new connection... [13:07:28] Sock 9.Parse request [13:07:28]Sock 9.Check first char [13:07:28]Sock 9.First char is OK [13:07:28]request: POST /json_proto HTTP/1.0 [13:07:28]Method: POST [13:07:28]URL: /json_proto [13:07:28]Method is POST - this is cgi request [13:07:28]url: /json_proto [13:07:28]query_string will be loaded in cgi processing [13:07:28]execute_cgi json_proto POST (null) [13:07:28]execute_cgi path=json_proto method=POST [13:07:28]POST find Content-Length [13:07:28]Host: 172.17.53.195:8080 [13:07:28]Content-Length: 674 [13:07:28]Content-Type: application/json [13:07:28] [13:07:28]POST finish read [13:07:28]Found Content-Length = 674 [13:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220250", "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" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:07:28]execute_script... [13:07: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)220250", "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" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:07:28]POST & json_proto [13:07:28]process_json_proto [13:07:28]json parsed OK: [13:07:28]protocol is kg_v1.0 [13:07:28]action value=close_receipt [13:07:28]process_action close_receipt [13:07:28]cmd_close_receipt [13:07:28]MH_GetDate [13:07:28]Write to MH i2c: F0 00 00 79 EC 54 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: F0 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: F0 09 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: F0 09 00 79 EC 00 9D 00 15 67 21 48 4A 65 8E [13:07:28]GetLastDocTimeStamp 1729429620 [13:07:28]current date 1729429661 [13:07:28]FM_GetShiftState [13:07:28]SAM_PROTO_GetShiftState [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 13 01 00 [13:07:28]Write to MH i2c: E2 08 00 7A EC 80 13 01 00 00 00 00 00 E3 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 0E 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 0E 00 7A EC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2B [13:07:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:07:28]wFMCommunicate OK [13:07:28]SAM_PROTO_GetShiftState done [13:07:28]FM_GetShiftState done [13:07:28]opened in 1729384561 [13:07:28]opened+sec_in_day 1729470961 [13:07:28]quantity*price = 60045 [13:07:28]sum+1 = 60047 [13:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 167 20.10.2024 13:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165685 ФПД: 161292497674400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130741&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165685&fm=161292497674400&tin=02508201610067®Number=0000000000091764&sum=60000 [13:07:29]StoreToDocumentArchive [13:07:29]shift 534 fd 165685 [13:07:29]save to /storage/0534/doc_00165685 [13:07:29]save last doc name /storage/0534/doc_00165685 to /storage/kkm_last_doc_name [13:07:29]save OK [13:07:29]Clear old archive folders... [13:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:07:29]tlvbuf is 015DDA60 [13:07:29]SAM_PROTO_ClearQueue [13:07:29]wFMCommunicate request_size=4 [13:07:29]MH_SAM_APDU [13:07:29]CAPDU: 80 09 00 00 [13:07:29]Write to MH i2c: E2 08 00 87 EC 80 09 00 00 00 00 00 00 E5 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 03 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 03 00 87 EC 00 90 00 E7 [13:07:29]RAPDU: 90 00 [13:07:29]wFMCommunicate OK [13:07:29]SAM_PROTO_ClearQueue done [13:07:29]KKMCreateOFDPacket [13:07:29]OFDProtocolAddRootSTLVToBuf [13:07:29]FM_MakeSignedData [13:07:29]FM_MakeSignedData [13:07:29]SAM_PROTO_SignData [13:07:29]wFMCommunicate request_size=4 [13:07:29]MH_SAM_APDU [13:07:29]CAPDU: 80 0D 01 02 [13:07:29]Write to MH i2c: E2 08 00 88 EC 80 0D 01 02 00 00 00 00 ED [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 03 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 03 00 88 EC 00 90 00 E8 [13:07:29]RAPDU: 90 00 [13:07:29]wFMCommunicate OK [13:07:29]wFMCommunicate request_size=255 [13:07:29]MH_SAM_APDU [13:07: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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 A7 00 00 00 F4 03 04 00 9D 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 87 02 00 35 04 06 00 92 B1 D6 07 [13:07:29]Write to MH i2c: E2 02 01 89 EC 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 A7 00 00 00 F4 03 04 00 9D 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 87 02 00 35 04 06 00 92 B1 D6 07 00 00 F0 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 89 EC 00 90 00 E9 [13:07:30]RAPDU: 90 00 [13:07:30]wFMCommunicate OK [13:07:30]wFMCommunicate request_size=7 [13:07:30]MH_SAM_APDU [13:07:30]CAPDU: 80 0D 02 02 02 60 A0 [13:07:30]Write to MH i2c: E2 0A 00 8A EC 80 0D 02 02 02 00 60 A0 00 00 F4 [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 8A EC 00 90 00 EA [13:07:30]RAPDU: 90 00 [13:07:30]wFMCommunicate OK [13:07:30]wFMCommunicate request_size=4 [13:07:30]MH_SAM_APDU [13:07:30]CAPDU: 80 0D 03 02 [13:07:30]Write to MH i2c: E2 08 00 8B EC 80 0D 03 02 00 00 00 00 F2 [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 0B 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 0B 00 8B EC 00 8F AF EC B0 1C DF 63 00 90 00 2B [13:07:30]RAPDU: 8F AF EC B0 1C DF 63 00 90 00 [13:07:30]wFMCommunicate OK [13:07:30]SAM_PROTO_SignData done [13:07:30]FM_MakeSignedData done [13:07:30]CreateOFDProtocolMessage [13:07:30]wFMCommunicate request_size=4 [13:07:30]MH_SAM_APDU [13:07:30]CAPDU: 80 11 00 00 [13:07:30]Write to MH i2c: E2 08 00 8C EC 80 11 00 00 00 00 00 00 F2 [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 17 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 17 00 8C EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [13:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:07:30]wFMCommunicate OK [13:07:30]CreateOFDProtocolMessage done [13:07:30]OFDSenderStorePacket 165685 [13:07:30]StoreOFDPacket docnum=165685 [13:07:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C2 EA 04 01 ED 48 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 A7 00 00 00 F4 03 04 00 9D 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 87 02 00 35 04 06 00 92 B1 D6 07 60 A0 8F AF EC B0 1C DF 63 00 [13:07:30]CheckFolder [13:07:30]dirname=/storage/ofd_packets [13:07:30]CheckFolder done [13:07:30]ProducePacketName [13:07:30]name=ofd_packets/00165685 [13:07:30]NVStorageSaveData ofd_packets/00165685 [13:07:30]File name is /storage/ofd_packets/00165685 [13:07:30]Write 298 bytes [13:07:30]NVStorageSaveData done [13:07:30]OFDSenderStorePacket done [13:07:30]KKMCreateOFDPacket done [13:07:30]NVStorageSaveData kkm_last_timestamp [13:07:30]File name is /storage/kkm_last_timestamp [13:07:30]Write 4 bytes [13:07:30]NVStorageSaveData done [13:07:30]ExternCall_PrintAddStr [13:07:30]wPrintStart [13:07:30]Write to MH i2c: 01 00 00 8D EC 79 [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: 01 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: 01 07 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: 01 07 00 8D EC 00 00 00 00 00 FF 0F 8E [13:07:30]RasterBufferAndPrint [13:07:30]line Счет N : (1)220250 [13:07:30]line ИНН: 02508201610067 [13:07:30]line Контрольно-Кассовый Чек [13:07:30]line ПРОДАЖА [13:07:30]line ТРК (МРК, ГНК) : 21 [13:07:30]line Товар: 2710194210 [13:07:30]line ДТ-К-5 [13:07:30]line 7.880 * 76.20 [13:07:30]line = 600.46 [13:07:30]line НДС 12% НСП 1% [13:07:30]line > о реализуемом товаре [13:07:30]line ОКРУГЛЕНИЕ: -0.46 [13:07:30]line ИТОГО: 600.00 [13:07:30]line Внесено: 600.00 [13:07:30]line СДАЧА: 0.00 [13:07:30]line НСП 1% : 5.31 [13:07:30]line НДС 12% : 63.77 [13:07:30]line Наличными: 600.00 [13:07:30]line Безнал.: 0.00 [13:07:30]line Место: АЗС № 161 "Партнер Нефть" [13:07:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:07:30]line СНО: Общий режим [13:07:30]line Чек 167 20.10.2024 13:07 [13:07:30]line Смена: 534 ФФД: 1.0 [13:07:30]line ЗНМ: 0300000104 [13:07:30]line РНМ: 0000000000091764 [13:07:30]line Версия ККМ: 001 [13:07:30]line ФМ: 0000000000871759 [13:07:30]line ФД: 165685 [13:07:30]line ФПД: 161292497674400 [13:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130741&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165685&fm=161292497674400&tin=02508201610067®Number=0000000000091764&sum=60000 [13:07:30]OFD Sender: Processing packet 165685 [packets to send 48, broken 47] [13:07:30]ProducePacketName [13:07:30]name=ofd_packets/00165685 [13:07:30]OFD Sender: To server: pG, [13:07:30]CommunicateWithHost lk.salyk.kg:30040 [13:07:30]ConnectInit lk.salyk.kg [13:07:30]written 0, free lines is 4095 [13:07:30]Connected sock=10 [13: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 31 37 35 39 0C 01 00 00 C2 EA 04 01 ED 48 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 A7 00 00 00 F4 03 04 00 9D 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 87 02 00 35 04 06 00 92 B1 D6 07 60 A0 8F AF EC B0 1C DF 63 00 [13:07:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 94 F4 47 00 95 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 31 37 35 39 10 04 04 00 35 87 02 00 F4 03 04 00 0F A7 14 67 B6 04 01 00 00 3E D6 59 A0 8E 4C 98 C1 [13:07:31]CommunicateWithHost err = 0 [13:07:31]CheckOFDResponse [13:07:31]1017 (14) - 77093643461234 [13:07:31]1041 (16) - 0000000000871759 [13:07:31]1040 (4) - 165685 [13:07:31]1012 (4) - 20.10.2024 06:45 [13:07:31]1206 (1) - 0 [13:07:31]OFD Sender: Remove packet 165685 [13:07:31]ProducePacketName [13:07:31]name=ofd_packets/00165685 [13:07:31]NVStorageDeleteData [13:07:31]Write to MH i2c: 01 00 00 B8 EC A4 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: 01 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: 01 07 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: 01 07 00 B8 EC 00 00 00 00 00 D3 0C 8A [13:07:31]RasterBufferAndPrint [13:07:31]line [13:07:31]line [13:07:31]line [13:07:31]line [13:07:31]line [13:07:31]written 0, free lines is 3293 [13:07:31]MH_Cut [13:07:31]Write to MH i2c: D1 01 00 BF EC 01 7D [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: D1 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: D1 01 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: D1 01 00 BF EC 00 7C [13:07:31]Write to MH i2c: 01 00 00 C0 EC AC [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]OFD Sender: No OFD packet to send [13:07:31]*** Cut start [13:07:31]*** Partial cut [13:07:31]*** CUTSNS_PIN = 1 [13:07:31]*** CUTSNS_PIN = 0 [13:07:32]*** Brake cut motor [13:07:32]Read from MH i2c: 01 [13:07:32]MH_I2C_Read... [13:07:32]*** Stop cut motor [13:07:32]*** Cut end [13:07:32]Read from MH i2c: 01 07 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: 01 07 00 C0 EC 00 00 00 00 00 FF 0F C1 [13:07:32]process_action close_receipt done [13:07:32]requested_data is exist [13:07:32]produce_requested_data [13:07:32]requested_item fm.sn is exist - process it [13:07:32]wFMCommunicate request_size=4 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 11 00 00 [13:07:32]Write to MH i2c: E2 08 00 C1 EC 80 11 00 00 00 00 00 00 27 [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:32]Read from MH i2c: E2 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 17 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 17 00 C1 EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [13:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:07:32]wFMCommunicate OK [13:07:32]requested_item fd.num is exist - process it [13:07:32]SAM_PROTO_GetFieldsCounters [13:07:32]wFMCommunicate request_size=4 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 13 00 00 [13:07:32]Write to MH i2c: E2 08 00 C2 EC 80 13 00 00 00 00 00 00 2A [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:32]Read from MH i2c: E2 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 62 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 62 00 C2 EC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 87 02 00 0E 04 04 00 16 02 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 1D [13:07:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 87 02 00 0E 04 04 00 16 02 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:07:32]wFMCommunicate OK [13:07:32]SAM_PROTO_GetFieldsCounters done [13:07:32]requested_item shift.num is exist - process it [13:07:32]requested_item shift.opened is exist - process it [13:07:32]req_shift_opened [13:07:32]FM_GetShiftState [13:07:32]SAM_PROTO_GetShiftState [13:07:32]wFMCommunicate request_size=4 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 13 01 00 [13:07:32]Write to MH i2c: E2 08 00 C3 EC 80 13 01 00 00 00 00 00 2C [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:32]Read from MH i2c: E2 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 0E 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 0E 00 C3 EC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 74 [13:07:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:07:32]wFMCommunicate OK [13:07:32]SAM_PROTO_GetShiftState done [13:07:32]FM_GetShiftState done [13:07:32]req_shift_opened done [13:07:32]requested_item shift.open_date is exist - process it [13:07:32]req_shift_open_date [13:07:32]req_shift_open_date done [13:07:32]produce_requested_data done [13:07:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165685,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:07:32]process_action_free close_receipt [13:07:32]json_value_free [13:07:32]json_value_free done [13:07:32]process_json_proto returns [13:07:32]Send response to host [13:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165685,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:07:32]free response buf [13:07:32]execute_script done [13:07:32]execute_script returns [13:07:32]free content buf [13:07:32]Sock 9.Close socket [13:07:32]Sock 9.Thread stoped [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:36]accept exits with 7 [13:08:36]New connection [13:08:36]New thread 3066776932 created [13:08:36]Thread 3066920292 joined [13:08:36]Waiting for new connection... [13:08:36] Sock 7.Parse request [13:08:36]Sock 7.Check first char [13:08:36]Sock 7.First char is OK [13:08:36]request: POST /json_proto HTTP/1.0 [13:08:36]Method: POST [13:08:36]URL: /json_proto [13:08:36]Method is POST - this is cgi request [13:08:36]url: /json_proto [13:08:36]query_string will be loaded in cgi processing [13:08:36]execute_cgi json_proto POST (null) [13:08:36]execute_cgi path=json_proto method=POST [13:08:36]POST find Content-Length [13:08:36]Host: 172.17.53.195:8080 [13:08:36]Content-Length: 679 [13:08:36]Content-Type: application/json [13:08:36] [13:08:36]POST finish read [13:08:36]Found Content-Length = 679 [13:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [13:08:36]execute_script... [13:08:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [13:08:36]POST & json_proto [13:08:36]process_json_proto [13:08:36]json parsed OK: [13:08:36]protocol is kg_v1.0 [13:08:36]action value=close_receipt [13:08:36]process_action close_receipt [13:08:36]cmd_close_receipt [13:08:36]MH_GetDate [13:08:36]Write to MH i2c: F0 00 00 C4 EC 9F [13:08:36]Write i2c OK [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: F0 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: F0 09 00 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: F0 09 00 C4 EC 00 E1 00 15 67 21 48 4A 65 1D [13:08:36]GetLastDocTimeStamp 1729429661 [13:08:36]current date 1729429729 [13:08:36]FM_GetShiftState [13:08:36]SAM_PROTO_GetShiftState [13:08:36]wFMCommunicate request_size=4 [13:08:36]MH_SAM_APDU [13:08:36]CAPDU: 80 13 01 00 [13:08:36]Write to MH i2c: E2 08 00 C5 EC 80 13 01 00 00 00 00 00 2E [13:08:36]Write i2c OK [13:08:36]MH_I2C_Read... [13:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:36]Read from MH i2c: E2 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: E2 0E 00 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: E2 0E 00 C5 EC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 76 [13:08:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:08:36]wFMCommunicate OK [13:08:36]SAM_PROTO_GetShiftState done [13:08:36]FM_GetShiftState done [13:08:36]opened in 1729384561 [13:08:36]opened+sec_in_day 1729470961 [13:08:36]quantity*price = 120015 [13:08:36]sum+1 = 120016 [13:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 168 20.10.2024 13:08 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165686 ФПД: 82047802382662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130849&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165686&fm=82047802382662&tin=02508201610067®Number=0000000000091764&sum=120000 [13:08:37]StoreToDocumentArchive [13:08:37]shift 534 fd 165686 [13:08:37]save to /storage/0534/doc_00165686 [13:08:37]save last doc name /storage/0534/doc_00165686 to /storage/kkm_last_doc_name [13:08:37]save OK [13:08:37]Clear old archive folders... [13:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:37]tlvbuf is 014B2D70 [13:08:37]SAM_PROTO_ClearQueue [13:08:37]wFMCommunicate request_size=4 [13:08:37]MH_SAM_APDU [13:08:37]CAPDU: 80 09 00 00 [13:08:37]Write to MH i2c: E2 08 00 D2 EC 80 09 00 00 00 00 00 00 30 [13:08:37]Write i2c OK [13:08:37]MH_I2C_Read... [13:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:37]Read from MH i2c: E2 [13:08:37]MH_I2C_Read... [13:08:37]Read from MH i2c: E2 03 00 [13:08:37]MH_I2C_Read... [13:08:37]Read from MH i2c: E2 03 00 D2 EC 00 90 00 32 [13:08:37]RAPDU: 90 00 [13:08:37]wFMCommunicate OK [13:08:37]SAM_PROTO_ClearQueue done [13:08:37]KKMCreateOFDPacket [13:08:37]OFDProtocolAddRootSTLVToBuf [13:08:37]FM_MakeSignedData [13:08:37]FM_MakeSignedData [13:08:37]SAM_PROTO_SignData [13:08:37]wFMCommunicate request_size=4 [13:08:37]MH_SAM_APDU [13:08:37]CAPDU: 80 0D 01 02 [13:08:37]Write to MH i2c: E2 08 00 D3 EC 80 0D 01 02 00 00 00 00 38 [13:08:37]Write i2c OK [13:08:37]MH_I2C_Read... [13:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:37]Read from MH i2c: E2 [13:08:37]MH_I2C_Read... [13:08:37]Read from MH i2c: E2 03 00 [13:08:37]MH_I2C_Read... [13:08:37]Read from MH i2c: E2 03 00 D3 EC 00 90 00 33 [13:08:37]RAPDU: 90 00 [13:08:37]wFMCommunicate OK [13:08:37]wFMCommunicate request_size=255 [13:08:37]MH_SAM_APDU [13:08:37]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 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 A8 00 00 00 F4 03 04 00 E1 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 87 02 00 35 04 06 00 4A 9F 3E 1D [13:08:37]Write to MH i2c: E2 02 01 D4 EC 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 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 A8 00 00 00 F4 03 04 00 E1 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 87 02 00 35 04 06 00 4A 9F 3E 1D 00 00 52 [13:08:38]Write i2c OK [13:08:38]MH_I2C_Read... [13:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:38]Read from MH i2c: E2 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 03 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 03 00 D4 EC 00 90 00 34 [13:08:38]RAPDU: 90 00 [13:08:38]wFMCommunicate OK [13:08:38]wFMCommunicate request_size=7 [13:08:38]MH_SAM_APDU [13:08:38]CAPDU: 80 0D 02 02 02 99 46 [13:08:38]Write to MH i2c: E2 0A 00 D5 EC 80 0D 02 02 02 00 99 46 00 00 1E [13:08:38]Write i2c OK [13:08:38]MH_I2C_Read... [13:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:38]Read from MH i2c: E2 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 03 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 03 00 D5 EC 00 90 00 35 [13:08:38]RAPDU: 90 00 [13:08:38]wFMCommunicate OK [13:08:38]wFMCommunicate request_size=4 [13:08:38]MH_SAM_APDU [13:08:38]CAPDU: 80 0D 03 02 [13:08:38]Write to MH i2c: E2 08 00 D6 EC 80 0D 03 02 00 00 00 00 3D [13:08:38]Write i2c OK [13:08:38]MH_I2C_Read... [13:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:38]Read from MH i2c: E2 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 0B 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 0B 00 D6 EC 00 A0 6E 84 70 BD 5A 01 8D 90 00 E5 [13:08:38]RAPDU: A0 6E 84 70 BD 5A 01 8D 90 00 [13:08:38]wFMCommunicate OK [13:08:38]SAM_PROTO_SignData done [13:08:38]FM_MakeSignedData done [13:08:38]CreateOFDProtocolMessage [13:08:38]wFMCommunicate request_size=4 [13:08:38]MH_SAM_APDU [13:08:38]CAPDU: 80 11 00 00 [13:08:38]Write to MH i2c: E2 08 00 D7 EC 80 11 00 00 00 00 00 00 3D [13:08:38]Write i2c OK [13:08:38]MH_I2C_Read... [13:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:38]Read from MH i2c: E2 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 17 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: E2 17 00 D7 EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [13:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:08:38]wFMCommunicate OK [13:08:38]CreateOFDProtocolMessage done [13:08:38]OFDSenderStorePacket 165686 [13:08:38]StoreOFDPacket docnum=165686 [13:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9E 52 04 01 BA 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 A8 00 00 00 F4 03 04 00 E1 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 87 02 00 35 04 06 00 4A 9F 3E 1D 99 46 A0 6E 84 70 BD 5A 01 8D [13:08:38]CheckFolder [13:08:38]dirname=/storage/ofd_packets [13:08:38]CheckFolder done [13:08:38]ProducePacketName [13:08:38]name=ofd_packets/00165686 [13:08:38]NVStorageSaveData ofd_packets/00165686 [13:08:38]File name is /storage/ofd_packets/00165686 [13:08:38]Write 298 bytes [13:08:38]NVStorageSaveData done [13:08:38]OFDSenderStorePacket done [13:08:38]KKMCreateOFDPacket done [13:08:38]NVStorageSaveData kkm_last_timestamp [13:08:38]File name is /storage/kkm_last_timestamp [13:08:38]Write 4 bytes [13:08:38]NVStorageSaveData done [13:08:38]ExternCall_PrintAddStr [13:08:38]wPrintStart [13:08:38]Write to MH i2c: 01 00 00 D8 EC C4 [13:08:38]Write i2c OK [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: 01 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: 01 07 00 [13:08:38]MH_I2C_Read... [13:08:38]Read from MH i2c: 01 07 00 D8 EC 00 00 00 00 00 FF 0F D9 [13:08:38]RasterBufferAndPrint [13:08:38]line Счет N : (1)220251 [13:08:38]line ИНН: 02508201610067 [13:08:38]line Контрольно-Кассовый Чек [13:08:38]line ПРОДАЖА [13:08:38]line ТРК (МРК, ГНК) : 41 [13:08:38]line Товар: 2710194210 [13:08:38]line ДТ-К-5 [13:08:38]line 15.750 * 76.20 [13:08:38]line = 1200.15 [13:08:38]line НДС 12% НСП 1% [13:08:38]line > о реализуемом товаре [13:08:38]line ОКРУГЛЕНИЕ: -0.15 [13:08:38]line ИТОГО: 1200.00 [13:08:38]line Внесено: 1200.00 [13:08:38]line СДАЧА: 0.00 [13:08:38]line НСП 1% : 10.62 [13:08:38]line НДС 12% : 127.45 [13:08:38]line Наличными: 1200.00 [13:08:38]line Безнал.: 0.00 [13:08:38]line Место: АЗС № 161 "Партнер Нефть" [13:08:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:08:38]line СНО: Общий режим [13:08:38]line Чек 168 20.10.2024 13:08 [13:08:38]line Смена: 534 ФФД: 1.0 [13:08:38]line ЗНМ: 0300000104 [13:08:38]line РНМ: 0000000000091764 [13:08:38]line Версия ККМ: 001 [13:08:38]line ФМ: 0000000000871759 [13:08:38]line ФД: 165686 [13:08:38]line ФПД: 82047802382662 [13:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130849&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165686&fm=82047802382662&tin=02508201610067®Number=0000000000091764&sum=120000 [13:08:38]OFD Sender: Processing packet 165686 [packets to send 48, broken 47] [13:08:38]ProducePacketName [13:08:38]name=ofd_packets/00165686 [13:08:38]OFD Sender: To server: pG, [13:08:38]CommunicateWithHost lk.salyk.kg:30040 [13:08:38]ConnectInit lk.salyk.kg [13:08:38]written 0, free lines is 4095 [13:08:38]Connected sock=9 [13: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 31 37 35 39 0C 01 00 00 9E 52 04 01 BA 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 A8 00 00 00 F4 03 04 00 E1 00 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 87 02 00 35 04 06 00 4A 9F 3E 1D 99 46 A0 6E 84 70 BD 5A 01 8D [13:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6D FE 47 00 5B 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 31 37 35 39 10 04 04 00 36 87 02 00 F4 03 04 00 53 A7 14 67 B6 04 01 00 00 87 7E 62 CC 0F B4 43 87 [13:08:39]CommunicateWithHost err = 0 [13:08:39]CheckOFDResponse [13:08:39]1017 (14) - 77093643461234 [13:08:39]1041 (16) - 0000000000871759 [13:08:39]1040 (4) - 165686 [13:08:39]1012 (4) - 20.10.2024 06:46 [13:08:39]1206 (1) - 0 [13:08:39]OFD Sender: Remove packet 165686 [13:08:39]ProducePacketName [13:08:39]name=ofd_packets/00165686 [13:08:39]NVStorageDeleteData [13:08:39]Write to MH i2c: 01 00 00 03 ED F0 [13:08:39]Write i2c OK [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: 01 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: 01 07 00 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: 01 07 00 03 ED 00 00 00 00 00 D4 0C D7 [13:08:39]RasterBufferAndPrint [13:08:39]line [13:08:39]line [13:08:39]line [13:08:39]line [13:08:39]line [13:08:39]written 0, free lines is 3292 [13:08:39]MH_Cut [13:08:39]Write to MH i2c: D1 01 00 0A ED 01 C9 [13:08:39]Write i2c OK [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: D1 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: D1 01 00 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: D1 01 00 0A ED 00 C8 [13:08:39]Write to MH i2c: 01 00 00 0B ED F8 [13:08:39]Write i2c OK [13:08:39]MH_I2C_Read... [13:08:39]OFD Sender: No OFD packet to send [13:08:39]*** Cut start [13:08:39]*** Partial cut [13:08:39]*** CUTSNS_PIN = 1 [13:08:40]*** CUTSNS_PIN = 0 [13:08:40]*** Brake cut motor [13:08:40]Read from MH i2c: 01 [13:08:40]MH_I2C_Read... [13:08:40]*** Stop cut motor [13:08:40]*** Cut end [13:08:40]Read from MH i2c: 01 07 00 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: 01 07 00 0B ED 00 00 00 00 00 FF 0F 0D [13:08:40]process_action close_receipt done [13:08:40]requested_data is exist [13:08:40]produce_requested_data [13:08:40]requested_item fm.sn is exist - process it [13:08:40]wFMCommunicate request_size=4 [13:08:40]MH_SAM_APDU [13:08:40]CAPDU: 80 11 00 00 [13:08:40]Write to MH i2c: E2 08 00 0C ED 80 11 00 00 00 00 00 00 73 [13:08:40]Write i2c OK [13:08:40]MH_I2C_Read... [13:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:40]Read from MH i2c: E2 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 17 00 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 17 00 0C ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [13:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:08:40]wFMCommunicate OK [13:08:40]requested_item fd.num is exist - process it [13:08:40]SAM_PROTO_GetFieldsCounters [13:08:40]wFMCommunicate request_size=4 [13:08:40]MH_SAM_APDU [13:08:40]CAPDU: 80 13 00 00 [13:08:40]Write to MH i2c: E2 08 00 0D ED 80 13 00 00 00 00 00 00 76 [13:08:40]Write i2c OK [13:08:40]MH_I2C_Read... [13:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:40]Read from MH i2c: E2 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 62 00 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 62 00 0D ED 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 87 02 00 0E 04 04 00 16 02 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 6D [13:08:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 87 02 00 0E 04 04 00 16 02 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:08:40]wFMCommunicate OK [13:08:40]SAM_PROTO_GetFieldsCounters done [13:08:40]requested_item shift.num is exist - process it [13:08:40]requested_item shift.opened is exist - process it [13:08:40]req_shift_opened [13:08:40]FM_GetShiftState [13:08:40]SAM_PROTO_GetShiftState [13:08:40]wFMCommunicate request_size=4 [13:08:40]MH_SAM_APDU [13:08:40]CAPDU: 80 13 01 00 [13:08:40]Write to MH i2c: E2 08 00 0E ED 80 13 01 00 00 00 00 00 78 [13:08:40]Write i2c OK [13:08:40]MH_I2C_Read... [13:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:40]Read from MH i2c: E2 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 0E 00 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 0E 00 0E ED 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C0 [13:08:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:08:40]wFMCommunicate OK [13:08:40]SAM_PROTO_GetShiftState done [13:08:40]FM_GetShiftState done [13:08:40]req_shift_opened done [13:08:40]requested_item shift.open_date is exist - process it [13:08:40]req_shift_open_date [13:08:40]req_shift_open_date done [13:08:40]produce_requested_data done [13:08:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165686,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:08:40]process_action_free close_receipt [13:08:40]json_value_free [13:08:40]json_value_free done [13:08:40]process_json_proto returns [13:08:40]Send response to host [13:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165686,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:08:40]free response buf [13:08:40]execute_script done [13:08:40]execute_script returns [13:08:40]free content buf [13:08:40]Sock 7.Close socket [13:08:40]Sock 7.Thread stoped [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:13]accept exits with 10 [13:11:13]New connection [13:11:13]New thread 3066920292 created [13:11:13]Thread 3066776932 joined [13:11:13]Waiting for new connection... [13:11:13] Sock 10.Parse request [13:11:13]Sock 10.Check first char [13:11:13]Sock 10.First char is OK [13:11:13]request: POST /json_proto HTTP/1.0 [13:11:13]Method: POST [13:11:13]URL: /json_proto [13:11:13]Method is POST - this is cgi request [13:11:13]url: /json_proto [13:11:13]query_string will be loaded in cgi processing [13:11:13]execute_cgi json_proto POST (null) [13:11:13]execute_cgi path=json_proto method=POST [13:11:13]POST find Content-Length [13:11:13]Host: 172.17.53.195:8080 [13:11:13]Content-Length: 677 [13:11:13]Content-Type: application/json [13:11:13] [13:11:13]POST finish read [13:11:13]Found Content-Length = 677 [13:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:13]execute_script... [13:11: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)220253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:13]POST & json_proto [13:11:13]process_json_proto [13:11:13]json parsed OK: [13:11:13]protocol is kg_v1.0 [13:11:13]action value=close_receipt [13:11:13]process_action close_receipt [13:11:13]cmd_close_receipt [13:11:13]MH_GetDate [13:11:13]Write to MH i2c: F0 00 00 0F ED EB [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: F0 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: F0 09 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: F0 09 00 0F ED 00 7E 01 15 67 21 48 4A 65 07 [13:11:13]GetLastDocTimeStamp 1729429729 [13:11:13]current date 1729429886 [13:11:13]FM_GetShiftState [13:11:13]SAM_PROTO_GetShiftState [13:11:13]wFMCommunicate request_size=4 [13:11:13]MH_SAM_APDU [13:11:13]CAPDU: 80 13 01 00 [13:11:13]Write to MH i2c: E2 08 00 10 ED 80 13 01 00 00 00 00 00 7A [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:13]Read from MH i2c: E2 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 0E 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 0E 00 10 ED 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C2 [13:11:13]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:11:13]wFMCommunicate OK [13:11:13]SAM_PROTO_GetShiftState done [13:11:13]FM_GetShiftState done [13:11:13]opened in 1729384561 [13:11:13]opened+sec_in_day 1729470961 [13:11:13]quantity*price = 36059 [13:11:13]sum+1 = 36060 [13:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 169 20.10.2024 13:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165687 ФПД: 227298363610645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165687&fm=227298363610645&tin=02508201610067®Number=0000000000091764&sum=36000 [13:11:14]StoreToDocumentArchive [13:11:14]shift 534 fd 165687 [13:11:14]save to /storage/0534/doc_00165687 [13:11:14]save last doc name /storage/0534/doc_00165687 to /storage/kkm_last_doc_name [13:11:14]save OK [13:11:14]Clear old archive folders... [13:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:14]tlvbuf is 0161B890 [13:11:14]SAM_PROTO_ClearQueue [13:11:14]wFMCommunicate request_size=4 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 09 00 00 [13:11:14]Write to MH i2c: E2 08 00 1D ED 80 09 00 00 00 00 00 00 7C [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:14]Read from MH i2c: E2 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 1D ED 00 90 00 7E [13:11:14]RAPDU: 90 00 [13:11:14]wFMCommunicate OK [13:11:14]SAM_PROTO_ClearQueue done [13:11:14]KKMCreateOFDPacket [13:11:14]OFDProtocolAddRootSTLVToBuf [13:11:14]FM_MakeSignedData [13:11:14]FM_MakeSignedData [13:11:14]SAM_PROTO_SignData [13:11:14]wFMCommunicate request_size=4 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 0D 01 02 [13:11:14]Write to MH i2c: E2 08 00 1E ED 80 0D 01 02 00 00 00 00 84 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 03 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 03 00 1E ED 00 90 00 7F [13:11:15]RAPDU: 90 00 [13:11:15]wFMCommunicate OK [13:11:15]wFMCommunicate request_size=255 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 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 A9 00 00 00 F4 03 04 00 7E 01 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 87 02 00 35 04 06 00 CE [13:11:15]Write to MH i2c: E2 02 01 1F ED 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 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 A9 00 00 00 F4 03 04 00 7E 01 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 87 02 00 35 04 06 00 CE 00 00 40 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 03 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 03 00 1F ED 00 90 00 80 [13:11:15]RAPDU: 90 00 [13:11:15]wFMCommunicate OK [13:11:15]wFMCommunicate request_size=10 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 0D 02 02 05 BA 06 38 96 15 [13:11:15]Write to MH i2c: E2 0D 00 20 ED 80 0D 02 02 05 00 BA 06 38 96 15 00 00 34 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 03 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 03 00 20 ED 00 90 00 81 [13:11:15]RAPDU: 90 00 [13:11:15]wFMCommunicate OK [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 0D 03 02 [13:11:15]Write to MH i2c: E2 08 00 21 ED 80 0D 03 02 00 00 00 00 89 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 0B 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 0B 00 21 ED 00 56 3A A6 A5 0C DB 46 A9 90 00 3B [13:11:15]RAPDU: 56 3A A6 A5 0C DB 46 A9 90 00 [13:11:15]wFMCommunicate OK [13:11:15]SAM_PROTO_SignData done [13:11:15]FM_MakeSignedData done [13:11:15]CreateOFDProtocolMessage [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 11 00 00 [13:11:15]Write to MH i2c: E2 08 00 22 ED 80 11 00 00 00 00 00 00 89 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 17 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 17 00 22 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [13:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:15]wFMCommunicate OK [13:11:15]CreateOFDProtocolMessage done [13:11:15]OFDSenderStorePacket 165687 [13:11:15]StoreOFDPacket docnum=165687 [13:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 21 33 07 01 3D 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 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 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 A9 00 00 00 F4 03 04 00 7E 01 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 87 02 00 35 04 06 00 CE BA 06 38 96 15 56 3A A6 A5 0C DB 46 A9 [13:11:15]CheckFolder [13:11:15]dirname=/storage/ofd_packets [13:11:15]CheckFolder done [13:11:15]ProducePacketName [13:11:15]name=ofd_packets/00165687 [13:11:15]NVStorageSaveData ofd_packets/00165687 [13:11:15]File name is /storage/ofd_packets/00165687 [13:11:15]Write 301 bytes [13:11:15]NVStorageSaveData done [13:11:15]OFDSenderStorePacket done [13:11:15]KKMCreateOFDPacket done [13:11:15]NVStorageSaveData kkm_last_timestamp [13:11:15]File name is /storage/kkm_last_timestamp [13:11:15]Write 4 bytes [13:11:15]NVStorageSaveData done [13:11:15]ExternCall_PrintAddStr [13:11:15]wPrintStart [13:11:15]Write to MH i2c: 01 00 00 23 ED 10 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 23 ED 00 00 00 00 00 FF 0F 25 [13:11:15]RasterBufferAndPrint [13:11:15]line Счет N : (1)220253 [13:11:15]line ИНН: 02508201610067 [13:11:15]line Контрольно-Кассовый Чек [13:11:15]line ПРОДАЖА [13:11:15]line ТРК (МРК, ГНК) : 23 [13:11:15]line Товар: 2710124130 [13:11:15]line Аи-92-К-5 [13:11:15]line 5.390 * 66.90 [13:11:15]line = 360.59 [13:11:15]line НДС 12% НСП 1% [13:11:15]line > о реализуемом товаре [13:11:15]line ОКРУГЛЕНИЕ: -0.59 [13:11:15]line ИТОГО: 360.00 [13:11:15]line Внесено: 360.00 [13:11:15]line СДАЧА: 0.00 [13:11:15]line НСП 1% : 3.19 [13:11:15]line НДС 12% : 38.29 [13:11:15]line Наличными: 360.00 [13:11:15]line Безнал.: 0.00 [13:11:15]line Место: АЗС № 161 "Партнер Нефть" [13:11:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:11:15]line СНО: Общий режим [13:11:15]line Чек 169 20.10.2024 13:11 [13:11:15]line Смена: 534 ФФД: 1.0 [13:11:15]line ЗНМ: 0300000104 [13:11:15]line РНМ: 0000000000091764 [13:11:15]line Версия ККМ: 001 [13:11:15]line ФМ: 0000000000871759 [13:11:15]line ФД: 165687 [13:11:15]line ФПД: 227298363610645 [13:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165687&fm=227298363610645&tin=02508201610067®Number=0000000000091764&sum=36000 [13:11:15]OFD Sender: Processing packet 165687 [packets to send 48, broken 47] [13:11:15]ProducePacketName [13:11:15]name=ofd_packets/00165687 [13:11:15]OFD Sender: To server: pG, [13:11:15]CommunicateWithHost lk.salyk.kg:30040 [13:11:15]ConnectInit lk.salyk.kg [13:11:15]written 0, free lines is 4095 [13:11:15]Connected sock=9 [13:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 21 33 07 01 3D 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 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 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 A9 00 00 00 F4 03 04 00 7E 01 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 87 02 00 35 04 06 00 CE BA 06 38 96 15 56 3A A6 A5 0C DB 46 A9 [13:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 92 D5 47 00 80 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 31 37 35 39 10 04 04 00 37 87 02 00 F4 03 04 00 F0 A7 14 67 B6 04 01 00 00 07 35 50 30 7C 5B 24 A1 [13:11:16]CommunicateWithHost err = 0 [13:11:16]CheckOFDResponse [13:11:16]1017 (14) - 77093643461234 [13:11:16]1041 (16) - 0000000000871759 [13:11:16]1040 (4) - 165687 [13:11:16]1012 (4) - 20.10.2024 06:49 [13:11:16]1206 (1) - 0 [13:11:16]OFD Sender: Remove packet 165687 [13:11:16]ProducePacketName [13:11:16]name=ofd_packets/00165687 [13:11:16]NVStorageDeleteData [13:11:16]Write to MH i2c: 01 00 00 4E ED 3B [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: 01 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: 01 07 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: 01 07 00 4E ED 00 00 00 00 00 D3 0C 21 [13:11:16]RasterBufferAndPrint [13:11:16]line [13:11:16]line [13:11:16]line [13:11:16]line [13:11:16]line [13:11:16]written 0, free lines is 3287 [13:11:16]MH_Cut [13:11:16]Write to MH i2c: D1 01 00 55 ED 01 14 [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: D1 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: D1 01 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: D1 01 00 55 ED 00 13 [13:11:16]Write to MH i2c: 01 00 00 56 ED 43 [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]OFD Sender: No OFD packet to send [13:11:17]*** Cut start [13:11:17]*** Partial cut [13:11:17]*** CUTSNS_PIN = 1 [13:11:17]*** CUTSNS_PIN = 0 [13:11:17]*** Brake cut motor [13:11:17]Read from MH i2c: 01 [13:11:17]MH_I2C_Read... [13:11:17]*** Stop cut motor [13:11:17]*** Cut end [13:11:17]Read from MH i2c: 01 07 00 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: 01 07 00 56 ED 00 00 00 00 00 FF 0F 58 [13:11:17]process_action close_receipt done [13:11:17]requested_data is exist [13:11:17]produce_requested_data [13:11:17]requested_item fm.sn is exist - process it [13:11:17]wFMCommunicate request_size=4 [13:11:17]MH_SAM_APDU [13:11:17]CAPDU: 80 11 00 00 [13:11:17]Write to MH i2c: E2 08 00 57 ED 80 11 00 00 00 00 00 00 BE [13:11:17]Write i2c OK [13:11:17]MH_I2C_Read... [13:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:17]Read from MH i2c: E2 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 17 00 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 17 00 57 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [13:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:17]wFMCommunicate OK [13:11:17]requested_item fd.num is exist - process it [13:11:17]SAM_PROTO_GetFieldsCounters [13:11:17]wFMCommunicate request_size=4 [13:11:17]MH_SAM_APDU [13:11:17]CAPDU: 80 13 00 00 [13:11:17]Write to MH i2c: E2 08 00 58 ED 80 13 00 00 00 00 00 00 C1 [13:11:17]Write i2c OK [13:11:17]MH_I2C_Read... [13:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:17]Read from MH i2c: E2 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 62 00 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 62 00 58 ED 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 87 02 00 0E 04 04 00 16 02 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 BC [13:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 87 02 00 0E 04 04 00 16 02 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:11:17]wFMCommunicate OK [13:11:17]SAM_PROTO_GetFieldsCounters done [13:11:17]requested_item shift.num is exist - process it [13:11:17]requested_item shift.opened is exist - process it [13:11:17]req_shift_opened [13:11:17]FM_GetShiftState [13:11:17]SAM_PROTO_GetShiftState [13:11:17]wFMCommunicate request_size=4 [13:11:17]MH_SAM_APDU [13:11:17]CAPDU: 80 13 01 00 [13:11:17]Write to MH i2c: E2 08 00 59 ED 80 13 01 00 00 00 00 00 C3 [13:11:17]Write i2c OK [13:11:17]MH_I2C_Read... [13:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:17]Read from MH i2c: E2 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 0E 00 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 0E 00 59 ED 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0B [13:11:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:11:17]wFMCommunicate OK [13:11:17]SAM_PROTO_GetShiftState done [13:11:17]FM_GetShiftState done [13:11:17]req_shift_opened done [13:11:17]requested_item shift.open_date is exist - process it [13:11:17]req_shift_open_date [13:11:17]req_shift_open_date done [13:11:17]produce_requested_data done [13:11:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165687,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:11:17]process_action_free close_receipt [13:11:17]json_value_free [13:11:17]json_value_free done [13:11:17]process_json_proto returns [13:11:17]Send response to host [13:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165687,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:11:17]free response buf [13:11:17]execute_script done [13:11:17]execute_script returns [13:11:17]free content buf [13:11:17]Sock 10.Close socket [13:11:17]Sock 10.Thread stoped [13:11:18]accept exits with 7 [13:11:18]New connection [13:11:18]New thread 3066776932 created [13:11:18]Thread 3066920292 joined [13:11:18]Waiting for new connection... [13:11:18] Sock 7.Parse request [13:11:18]Sock 7.Check first char [13:11:18]Sock 7.First char is OK [13:11:18]request: POST /json_proto HTTP/1.0 [13:11:18]Method: POST [13:11:18]URL: /json_proto [13:11:18]Method is POST - this is cgi request [13:11:18]url: /json_proto [13:11:18]query_string will be loaded in cgi processing [13:11:18]execute_cgi json_proto POST (null) [13:11:18]execute_cgi path=json_proto method=POST [13:11:18]POST find Content-Length [13:11:18]Host: 172.17.53.195:8080 [13:11:18]Content-Length: 766 [13:11:18]Content-Type: application/json [13:11:18] [13:11:18]POST finish read [13:11:18]Found Content-Length = 766 [13:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:18]execute_script... [13:11: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)220252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:18]POST & json_proto [13:11:18]process_json_proto [13:11:18]json parsed OK: [13:11:18]protocol is kg_v1.0 [13:11:18]action value=close_receipt [13:11:18]process_action close_receipt [13:11:18]cmd_close_receipt [13:11:18]MH_GetDate [13:11:18]Write to MH i2c: F0 00 00 5A ED 36 [13:11:18]Write i2c OK [13:11:18]MH_I2C_Read... [13:11:18]Read from MH i2c: F0 [13:11:18]MH_I2C_Read... [13:11:18]Read from MH i2c: F0 09 00 [13:11:18]MH_I2C_Read... [13:11:18]Read from MH i2c: F0 09 00 5A ED 00 82 01 15 67 21 48 4A 65 56 [13:11:18]GetLastDocTimeStamp 1729429886 [13:11:18]current date 1729429890 [13:11:18]FM_GetShiftState [13:11:18]SAM_PROTO_GetShiftState [13:11:18]wFMCommunicate request_size=4 [13:11:18]MH_SAM_APDU [13:11:18]CAPDU: 80 13 01 00 [13:11:18]Write to MH i2c: E2 08 00 5B ED 80 13 01 00 00 00 00 00 C5 [13:11:18]Write i2c OK [13:11:18]MH_I2C_Read... [13:11:18]Read from MH i2c: E2 [13:11:18]MH_I2C_Read... [13:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:18]Read from MH i2c: E2 0E 00 [13:11:18]MH_I2C_Read... [13:11:18]Read from MH i2c: E2 0E 00 5B ED 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0D [13:11:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:11:18]wFMCommunicate OK [13:11:18]SAM_PROTO_GetShiftState done [13:11:18]FM_GetShiftState done [13:11:18]opened in 1729384561 [13:11:18]opened+sec_in_day 1729470961 [13:11:18]quantity*price = 100050 [13:11:18]sum+1 = 100052 [13:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 170 20.10.2024 13:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165688 ФПД: 231054271841045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165688&fm=231054271841045&tin=02508201610067®Number=0000000000091764&sum=100051 [13:11:19]StoreToDocumentArchive [13:11:19]shift 534 fd 165688 [13:11:19]save to /storage/0534/doc_00165688 [13:11:19]save last doc name /storage/0534/doc_00165688 to /storage/kkm_last_doc_name [13:11:19]save OK [13:11:19]Clear old archive folders... [13:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:11:19]tlvbuf is 0188C0B0 [13:11:19]SAM_PROTO_ClearQueue [13:11:19]wFMCommunicate request_size=4 [13:11:19]MH_SAM_APDU [13:11:19]CAPDU: 80 09 00 00 [13:11:19]Write to MH i2c: E2 08 00 68 ED 80 09 00 00 00 00 00 00 C7 [13:11:19]Write i2c OK [13:11:19]MH_I2C_Read... [13:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:19]Read from MH i2c: E2 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 03 00 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 03 00 68 ED 00 90 00 C9 [13:11:19]RAPDU: 90 00 [13:11:19]wFMCommunicate OK [13:11:19]SAM_PROTO_ClearQueue done [13:11:19]KKMCreateOFDPacket [13:11:19]OFDProtocolAddRootSTLVToBuf [13:11:19]FM_MakeSignedData [13:11:19]FM_MakeSignedData [13:11:19]SAM_PROTO_SignData [13:11:19]wFMCommunicate request_size=4 [13:11:19]MH_SAM_APDU [13:11:19]CAPDU: 80 0D 01 02 [13:11:19]Write to MH i2c: E2 08 00 69 ED 80 0D 01 02 00 00 00 00 CF [13:11:19]Write i2c OK [13:11:19]MH_I2C_Read... [13:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:19]Read from MH i2c: E2 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 03 00 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 03 00 69 ED 00 90 00 CA [13:11:19]RAPDU: 90 00 [13:11:19]wFMCommunicate OK [13:11:19]wFMCommunicate request_size=255 [13:11:19]MH_SAM_APDU [13:11: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 82 01 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 87 02 00 35 04 06 00 D2 24 83 CC [13:11:19]Write to MH i2c: E2 02 01 6A ED 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 82 01 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 87 02 00 35 04 06 00 D2 24 83 CC 00 00 88 [13:11:19]Write i2c OK [13:11:19]MH_I2C_Read... [13:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:20]Read from MH i2c: E2 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: E2 03 00 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: E2 03 00 6A ED 00 90 00 CB [13:11:20]RAPDU: 90 00 [13:11:20]wFMCommunicate OK [13:11:20]wFMCommunicate request_size=7 [13:11:20]MH_SAM_APDU [13:11:20]CAPDU: 80 0D 02 02 02 03 15 [13:11:20]Write to MH i2c: E2 0A 00 6B ED 80 0D 02 02 02 00 03 15 00 00 EE [13:11:20]Write i2c OK [13:11:20]MH_I2C_Read... [13:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:20]Read from MH i2c: E2 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: E2 03 00 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: E2 03 00 6B ED 00 90 00 CC [13:11:20]RAPDU: 90 00 [13:11:20]wFMCommunicate OK [13:11:20]wFMCommunicate request_size=4 [13:11:20]MH_SAM_APDU [13:11:20]CAPDU: 80 0D 03 02 [13:11:20]Write to MH i2c: E2 08 00 6C ED 80 0D 03 02 00 00 00 00 D4 [13:11:20]Write i2c OK [13:11:20]MH_I2C_Read... [13:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:20]Read from MH i2c: E2 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: E2 0B 00 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: E2 0B 00 6C ED 00 09 44 3E 4C 25 39 AA A5 90 00 59 [13:11:20]RAPDU: 09 44 3E 4C 25 39 AA A5 90 00 [13:11:20]wFMCommunicate OK [13:11:20]SAM_PROTO_SignData done [13:11:20]FM_MakeSignedData done [13:11:20]CreateOFDProtocolMessage [13:11:20]wFMCommunicate request_size=4 [13:11:20]MH_SAM_APDU [13:11:20]CAPDU: 80 11 00 00 [13:11:20]Write to MH i2c: E2 08 00 6D ED 80 11 00 00 00 00 00 00 D4 [13:11:20]Write i2c OK [13:11:20]MH_I2C_Read... [13:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:20]Read from MH i2c: E2 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: E2 17 00 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: E2 17 00 6D ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [13:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:20]wFMCommunicate OK [13:11:20]CreateOFDProtocolMessage done [13:11:20]OFDSenderStorePacket 165688 [13:11:20]StoreOFDPacket docnum=165688 [13:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C4 3B 04 01 BE 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 82 01 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 87 02 00 35 04 06 00 D2 24 83 CC 03 15 09 44 3E 4C 25 39 AA A5 [13:11:20]CheckFolder [13:11:20]dirname=/storage/ofd_packets [13:11:20]CheckFolder done [13:11:20]ProducePacketName [13:11:20]name=ofd_packets/00165688 [13:11:20]NVStorageSaveData ofd_packets/00165688 [13:11:20]File name is /storage/ofd_packets/00165688 [13:11:20]Write 298 bytes [13:11:20]NVStorageSaveData done [13:11:20]OFDSenderStorePacket done [13:11:20]KKMCreateOFDPacket done [13:11:20]NVStorageSaveData kkm_last_timestamp [13:11:20]File name is /storage/kkm_last_timestamp [13:11:20]Write 4 bytes [13:11:20]NVStorageSaveData done [13:11:20]ExternCall_PrintAddStr [13:11:20]wPrintStart [13:11:20]Write to MH i2c: 01 00 00 6E ED 5B [13:11:20]Write i2c OK [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: 01 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: 01 07 00 [13:11:20]MH_I2C_Read... [13:11:20]Read from MH i2c: 01 07 00 6E ED 00 00 00 00 00 FF 0F 70 [13:11:20]RasterBufferAndPrint [13:11:20]line Счет N : (1)220252 [13:11:20]line ИНН: 02508201610067 [13:11:20]line Контрольно-Кассовый Чек [13:11:20]line ПРОДАЖА [13:11:20]line ТРК (МРК, ГНК) : 31 [13:11:20]line Товар: 2710194210 [13:11:20]line ДТ-К-5 [13:11:20]line 13.130 * 76.20 [13:11:20]line = 1000.51 [13:11:20]line НДС 12% НСП 1% [13:11:20]line > о реализуемом товаре [13:11:20]line ИТОГО: 1000.51 [13:11:20]line НСП 1% : 8.85 [13:11:20]line НДС 12% : 106.25 [13:11:20]line Наличными: 0.00 [13:11:20]line Безнал.: 1000.51 [13:11:20]line Место: АЗС № 161 "Партнер Нефть" [13:11:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:11:20]line СНО: Общий режим [13:11:20]line Чек 170 20.10.2024 13:11 [13:11:20]line Смена: 534 ФФД: 1.0 [13:11:20]line ЗНМ: 0300000104 [13:11:20]line РНМ: 0000000000091764 [13:11:20]line Версия ККМ: 001 [13:11:20]line Платежная система: Mbank [13:11:20]line ФМ: 0000000000871759 [13:11:20]line ФД: 165688 [13:11:20]line ФПД: 231054271841045 [13:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165688&fm=231054271841045&tin=02508201610067®Number=0000000000091764&sum=100051 [13:11:20]OFD Sender: Processing packet 165688 [packets to send 48, broken 47] [13:11:20]ProducePacketName [13:11:20]name=ofd_packets/00165688 [13:11:20]OFD Sender: To server: pG, [13:11:20]CommunicateWithHost lk.salyk.kg:30040 [13:11:20]ConnectInit lk.salyk.kg [13:11:20]written 0, free lines is 4095 [13:11:20]Connected sock=10 [13:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C4 3B 04 01 BE 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 82 01 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 87 02 00 35 04 06 00 D2 24 83 CC 03 15 09 44 3E 4C 25 39 AA A5 [13:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1E F6 47 00 E1 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 31 37 35 39 10 04 04 00 38 87 02 00 F4 03 04 00 F4 A7 14 67 B6 04 01 00 00 69 73 D7 FC 18 1B 41 E0 [13:11:20]CommunicateWithHost err = 0 [13:11:20]CheckOFDResponse [13:11:20]1017 (14) - 77093643461234 [13:11:20]1041 (16) - 0000000000871759 [13:11:20]1040 (4) - 165688 [13:11:20]1012 (4) - 20.10.2024 06:49 [13:11:20]1206 (1) - 0 [13:11:20]OFD Sender: Remove packet 165688 [13:11:20]ProducePacketName [13:11:20]name=ofd_packets/00165688 [13:11:20]NVStorageDeleteData [13:11:21]Write to MH i2c: 01 00 00 97 ED 84 [13:11:21]Write i2c OK [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: 01 [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: 01 07 00 [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: 01 07 00 97 ED 00 00 00 00 00 F3 0C 8A [13:11:21]RasterBufferAndPrint [13:11:21]line [13:11:21]line [13:11:21]line [13:11:21]line [13:11:21]line [13:11:21]written 0, free lines is 3326 [13:11:21]MH_Cut [13:11:21]Write to MH i2c: D1 01 00 9E ED 01 5D [13:11:21]Write i2c OK [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: D1 [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: D1 01 00 [13:11:21]MH_I2C_Read... [13:11:21]Read from MH i2c: D1 01 00 9E ED 00 5C [13:11:21]Write to MH i2c: 01 00 00 9F ED 8C [13:11:21]Write i2c OK [13:11:21]MH_I2C_Read... [13:11:21]OFD Sender: No OFD packet to send [13:11:21]*** Cut start [13:11:21]*** Partial cut [13:11:21]*** CUTSNS_PIN = 1 [13:11:21]*** CUTSNS_PIN = 0 [13:11:22]*** Brake cut motor [13:11:22]Read from MH i2c: 01 [13:11:22]MH_I2C_Read... [13:11:22]*** Stop cut motor [13:11:22]*** Cut end [13:11:22]Read from MH i2c: 01 07 00 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: 01 07 00 9F ED 00 00 00 00 00 FF 0F A1 [13:11:22]process_action close_receipt done [13:11:22]requested_data is exist [13:11:22]produce_requested_data [13:11:22]requested_item fm.sn is exist - process it [13:11:22]wFMCommunicate request_size=4 [13:11:22]MH_SAM_APDU [13:11:22]CAPDU: 80 11 00 00 [13:11:22]Write to MH i2c: E2 08 00 A0 ED 80 11 00 00 00 00 00 00 07 [13:11:22]Write i2c OK [13:11:22]MH_I2C_Read... [13:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:22]Read from MH i2c: E2 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 17 00 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 17 00 A0 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5F [13:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:22]wFMCommunicate OK [13:11:22]requested_item fd.num is exist - process it [13:11:22]SAM_PROTO_GetFieldsCounters [13:11:22]wFMCommunicate request_size=4 [13:11:22]MH_SAM_APDU [13:11:22]CAPDU: 80 13 00 00 [13:11:22]Write to MH i2c: E2 08 00 A1 ED 80 13 00 00 00 00 00 00 0A [13:11:22]Write i2c OK [13:11:22]MH_I2C_Read... [13:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:22]Read from MH i2c: E2 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 62 00 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 62 00 A1 ED 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 87 02 00 0E 04 04 00 16 02 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 09 [13:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 87 02 00 0E 04 04 00 16 02 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:11:22]wFMCommunicate OK [13:11:22]SAM_PROTO_GetFieldsCounters done [13:11:22]requested_item shift.num is exist - process it [13:11:22]requested_item shift.opened is exist - process it [13:11:22]req_shift_opened [13:11:22]FM_GetShiftState [13:11:22]SAM_PROTO_GetShiftState [13:11:22]wFMCommunicate request_size=4 [13:11:22]MH_SAM_APDU [13:11:22]CAPDU: 80 13 01 00 [13:11:22]Write to MH i2c: E2 08 00 A2 ED 80 13 01 00 00 00 00 00 0C [13:11:22]Write i2c OK [13:11:22]MH_I2C_Read... [13:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:22]Read from MH i2c: E2 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 0E 00 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: E2 0E 00 A2 ED 00 09 00 01 71 50 14 67 00 00 00 00 90 00 54 [13:11:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:11:22]wFMCommunicate OK [13:11:22]SAM_PROTO_GetShiftState done [13:11:22]FM_GetShiftState done [13:11:22]req_shift_opened done [13:11:22]requested_item shift.open_date is exist - process it [13:11:22]req_shift_open_date [13:11:22]req_shift_open_date done [13:11:22]produce_requested_data done [13:11:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165688,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:11:22]process_action_free close_receipt [13:11:22]json_value_free [13:11:22]json_value_free done [13:11:22]process_json_proto returns [13:11:22]Send response to host [13:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165688,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:11:22]free response buf [13:11:22]execute_script done [13:11:22]execute_script returns [13:11:22]free content buf [13:11:22]Sock 7.Close socket [13:11:22]Sock 7.Thread stoped [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [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:37]accept exits with 9 [13:16:37]New connection [13:16:37]New thread 3066920292 created [13:16:37]Thread 3066776932 joined [13:16:37]Waiting for new connection... [13:16:37] Sock 9.Parse request [13:16:37]Sock 9.Check first char [13:16:37]Sock 9.First char is OK [13:16:37]request: POST /json_proto HTTP/1.0 [13:16:37]Method: POST [13:16:37]URL: /json_proto [13:16:37]Method is POST - this is cgi request [13:16:37]url: /json_proto [13:16:37]query_string will be loaded in cgi processing [13:16:37]execute_cgi json_proto POST (null) [13:16:37]execute_cgi path=json_proto method=POST [13:16:37]POST find Content-Length [13:16:37]Host: 172.17.53.195:8080 [13:16:37]Content-Length: 769 [13:16:37]Content-Type: application/json [13:16:37] [13:16:37]POST finish read [13:16:37]Found Content-Length = 769 [13:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 67.370, "sum" : 4998.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4998.85 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:37]execute_script... [13:16: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)220254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 67.370, "sum" : 4998.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4998.85 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:37]POST & json_proto [13:16:37]process_json_proto [13:16:37]json parsed OK: [13:16:37]protocol is kg_v1.0 [13:16:37]action value=close_receipt [13:16:37]process_action close_receipt [13:16:37]cmd_close_receipt [13:16:37]MH_GetDate [13:16:37]Write to MH i2c: F0 00 00 A3 ED 7F [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: F0 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: F0 09 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: F0 09 00 A3 ED 00 C1 02 15 67 21 48 4A 65 DF [13:16:37]GetLastDocTimeStamp 1729429890 [13:16:37]current date 1729430209 [13:16:37]FM_GetShiftState [13:16:37]SAM_PROTO_GetShiftState [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 13 01 00 [13:16:37]Write to MH i2c: E2 08 00 A4 ED 80 13 01 00 00 00 00 00 0E [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 0E 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 0E 00 A4 ED 00 09 00 01 71 50 14 67 00 00 00 00 90 00 56 [13:16:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:16:37]wFMCommunicate OK [13:16:37]SAM_PROTO_GetShiftState done [13:16:37]FM_GetShiftState done [13:16:37]opened in 1729384561 [13:16:37]opened+sec_in_day 1729470961 [13:16:37]quantity*price = 499885 [13:16:37]sum+1 = 499886 [13:16:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4998.85 НСП 1% : 44.24 НДС 12% : 530.85 Наличными: 0.00 Безнал.: 4998.85 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 171 20.10.2024 13:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165689 ФПД: 84338459091141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131649&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165689&fm=84338459091141&tin=02508201610067®Number=0000000000091764&sum=499885 [13:16:38]StoreToDocumentArchive [13:16:38]shift 534 fd 165689 [13:16:38]save to /storage/0534/doc_00165689 [13:16:38]save last doc name /storage/0534/doc_00165689 to /storage/kkm_last_doc_name [13:16:38]save OK [13:16:38]Clear old archive folders... [13:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:38]tlvbuf is 018AFE10 [13:16:38]SAM_PROTO_ClearQueue [13:16:38]wFMCommunicate request_size=4 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 09 00 00 [13:16:38]Write to MH i2c: E2 08 00 B1 ED 80 09 00 00 00 00 00 00 10 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 B1 ED 00 90 00 12 [13:16:38]RAPDU: 90 00 [13:16:38]wFMCommunicate OK [13:16:38]SAM_PROTO_ClearQueue done [13:16:38]KKMCreateOFDPacket [13:16:38]OFDProtocolAddRootSTLVToBuf [13:16:38]FM_MakeSignedData [13:16:38]FM_MakeSignedData [13:16:38]SAM_PROTO_SignData [13:16:38]wFMCommunicate request_size=4 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 0D 01 02 [13:16:38]Write to MH i2c: E2 08 00 B2 ED 80 0D 01 02 00 00 00 00 18 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 B2 ED 00 90 00 13 [13:16:38]RAPDU: 90 00 [13:16:38]wFMCommunicate OK [13:16:38]wFMCommunicate request_size=255 [13:16:38]MH_SAM_APDU [13:16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD A0 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD A0 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD A0 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C1 02 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 87 02 00 35 04 06 00 4C [13:16:38]Write to MH i2c: E2 02 01 B3 ED 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD A0 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD A0 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD A0 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C1 02 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 87 02 00 35 04 06 00 4C 00 00 08 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 B3 ED 00 90 00 14 [13:16:38]RAPDU: 90 00 [13:16:38]wFMCommunicate OK [13:16:38]wFMCommunicate request_size=10 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 0D 02 02 05 B4 93 E5 20 C5 [13:16:38]Write to MH i2c: E2 0D 00 B4 ED 80 0D 02 02 05 00 B4 93 E5 20 C5 00 00 36 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 B4 ED 00 90 00 15 [13:16:38]RAPDU: 90 00 [13:16:38]wFMCommunicate OK [13:16:38]wFMCommunicate request_size=4 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 0D 03 02 [13:16:38]Write to MH i2c: E2 08 00 B5 ED 80 0D 03 02 00 00 00 00 1D [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 0B 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 0B 00 B5 ED 00 38 B3 19 77 DC 3B A6 70 90 00 C6 [13:16:38]RAPDU: 38 B3 19 77 DC 3B A6 70 90 00 [13:16:38]wFMCommunicate OK [13:16:38]SAM_PROTO_SignData done [13:16:38]FM_MakeSignedData done [13:16:38]CreateOFDProtocolMessage [13:16:38]wFMCommunicate request_size=4 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 11 00 00 [13:16:38]Write to MH i2c: E2 08 00 B6 ED 80 11 00 00 00 00 00 00 1D [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 17 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 17 00 B6 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [13:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:16:38]wFMCommunicate OK [13:16:38]CreateOFDProtocolMessage done [13:16:38]OFDSenderStorePacket 165689 [13:16:38]StoreOFDPacket docnum=165689 [13:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FD C2 07 01 E3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD A0 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD A0 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD A0 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C1 02 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 87 02 00 35 04 06 00 4C B4 93 E5 20 C5 38 B3 19 77 DC 3B A6 70 [13:16:38]CheckFolder [13:16:38]dirname=/storage/ofd_packets [13:16:38]CheckFolder done [13:16:38]ProducePacketName [13:16:38]name=ofd_packets/00165689 [13:16:38]NVStorageSaveData ofd_packets/00165689 [13:16:38]File name is /storage/ofd_packets/00165689 [13:16:38]Write 301 bytes [13:16:38]NVStorageSaveData done [13:16:38]OFDSenderStorePacket done [13:16:38]KKMCreateOFDPacket done [13:16:38]NVStorageSaveData kkm_last_timestamp [13:16:38]File name is /storage/kkm_last_timestamp [13:16:38]Write 4 bytes [13:16:38]NVStorageSaveData done [13:16:38]ExternCall_PrintAddStr [13:16:38]wPrintStart [13:16:38]Write to MH i2c: 01 00 00 B7 ED A4 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 B7 ED 00 00 00 00 00 FF 0F B9 [13:16:38]RasterBufferAndPrint [13:16:38]line Счет N : (1)220254 [13:16:38]line ИНН: 02508201610067 [13:16:38]line Контрольно-Кассовый Чек [13:16:38]line ПРОДАЖА [13:16:38]line ТРК (МРК, ГНК) : 44 [13:16:38]line Товар: 2710124500 [13:16:38]line Аи-95-К-5 [13:16:38]line 67.370 * 74.20 [13:16:38]line = 4998.85 [13:16:38]line НДС 12% НСП 1% [13:16:38]line > о реализуемом товаре [13:16:38]line ИТОГО: 4998.85 [13:16:38]line НСП 1% : 44.24 [13:16:38]line НДС 12% : 530.85 [13:16:38]line Наличными: 0.00 [13:16:38]line Безнал.: 4998.85 [13:16:38]line Место: АЗС № 161 "Партнер Нефть" [13:16:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:16:38]line СНО: Общий режим [13:16:38]line Чек 171 20.10.2024 13:16 [13:16:38]line Смена: 534 ФФД: 1.0 [13:16:38]line ЗНМ: 0300000104 [13:16:38]line РНМ: 0000000000091764 [13:16:38]line Версия ККМ: 001 [13:16:38]line Платежная система: Mbank [13:16:38]line ФМ: 0000000000871759 [13:16:38]line ФД: 165689 [13:16:38]line ФПД: 84338459091141 [13:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131649&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165689&fm=84338459091141&tin=02508201610067®Number=0000000000091764&sum=499885 [13:16:39]written 0, free lines is 4095 [13:16:39]OFD Sender: Processing packet 165689 [packets to send 48, broken 47] [13:16:39]ProducePacketName [13:16:39]name=ofd_packets/00165689 [13:16:39]OFD Sender: To server: pG, [13:16:39]CommunicateWithHost lk.salyk.kg:30040 [13:16:39]ConnectInit lk.salyk.kg [13:16:39]Connected sock=7 [13:16:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FD C2 07 01 E3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD A0 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD A0 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD A0 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C1 02 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 87 02 00 35 04 06 00 4C B4 93 E5 20 C5 38 B3 19 77 DC 3B A6 70 [13:16:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 5E 47 00 28 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 31 37 35 39 10 04 04 00 39 87 02 00 F4 03 04 00 33 A9 14 67 B6 04 01 00 00 47 31 DF AD 05 E0 EB 4B [13:16:39]CommunicateWithHost err = 0 [13:16:39]CheckOFDResponse [13:16:39]1017 (14) - 77093643461234 [13:16:39]1041 (16) - 0000000000871759 [13:16:39]1040 (4) - 165689 [13:16:39]1012 (4) - 20.10.2024 06:54 [13:16:39]1206 (1) - 0 [13:16:39]OFD Sender: Remove packet 165689 [13:16:39]ProducePacketName [13:16:39]name=ofd_packets/00165689 [13:16:39]NVStorageDeleteData [13:16:39]Write to MH i2c: 01 00 00 E0 ED CD [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: 01 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: 01 07 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: 01 07 00 E0 ED 00 00 00 00 00 FC 0C DC [13:16:39]RasterBufferAndPrint [13:16:39]line [13:16:39]line [13:16:39]line [13:16:39]line [13:16:39]line [13:16:39]written 0, free lines is 3330 [13:16:39]MH_Cut [13:16:39]Write to MH i2c: D1 01 00 E7 ED 01 A6 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: D1 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: D1 01 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: D1 01 00 E7 ED 00 A5 [13:16:39]Write to MH i2c: 01 00 00 E8 ED D5 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]OFD Sender: No OFD packet to send [13:16:40]*** Cut start [13:16:40]*** Partial cut [13:16:40]*** CUTSNS_PIN = 1 [13:16:40]*** CUTSNS_PIN = 0 [13:16:40]*** Brake cut motor [13:16:41]Read from MH i2c: 01 [13:16:41]MH_I2C_Read... [13:16:41]*** Stop cut motor [13:16:41]*** Cut end [13:16:41]Read from MH i2c: 01 07 00 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: 01 07 00 E8 ED 00 00 00 00 00 FF 0F EA [13:16:41]process_action close_receipt done [13:16:41]requested_data is exist [13:16:41]produce_requested_data [13:16:41]requested_item fm.sn is exist - process it [13:16:41]wFMCommunicate request_size=4 [13:16:41]MH_SAM_APDU [13:16:41]CAPDU: 80 11 00 00 [13:16:41]Write to MH i2c: E2 08 00 E9 ED 80 11 00 00 00 00 00 00 50 [13:16:41]Write i2c OK [13:16:41]MH_I2C_Read... [13:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:41]Read from MH i2c: E2 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: E2 17 00 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: E2 17 00 E9 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [13:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:16:41]wFMCommunicate OK [13:16:41]requested_item fd.num is exist - process it [13:16:41]SAM_PROTO_GetFieldsCounters [13:16:41]wFMCommunicate request_size=4 [13:16:41]MH_SAM_APDU [13:16:41]CAPDU: 80 13 00 00 [13:16:41]Write to MH i2c: E2 08 00 EA ED 80 13 00 00 00 00 00 00 53 [13:16:41]Write i2c OK [13:16:41]MH_I2C_Read... [13:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:41]Read from MH i2c: E2 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: E2 62 00 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: E2 62 00 EA ED 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 87 02 00 0E 04 04 00 16 02 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 56 [13:16: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 87 02 00 0E 04 04 00 16 02 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:16:41]wFMCommunicate OK [13:16:41]SAM_PROTO_GetFieldsCounters done [13:16:41]requested_item shift.num is exist - process it [13:16:41]requested_item shift.opened is exist - process it [13:16:41]req_shift_opened [13:16:41]FM_GetShiftState [13:16:41]SAM_PROTO_GetShiftState [13:16:41]wFMCommunicate request_size=4 [13:16:41]MH_SAM_APDU [13:16:41]CAPDU: 80 13 01 00 [13:16:41]Write to MH i2c: E2 08 00 EB ED 80 13 01 00 00 00 00 00 55 [13:16:41]Write i2c OK [13:16:41]MH_I2C_Read... [13:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:41]Read from MH i2c: E2 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: E2 0E 00 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: E2 0E 00 EB ED 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9D [13:16:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:16:41]wFMCommunicate OK [13:16:41]SAM_PROTO_GetShiftState done [13:16:41]FM_GetShiftState done [13:16:41]req_shift_opened done [13:16:41]requested_item shift.open_date is exist - process it [13:16:41]req_shift_open_date [13:16:41]req_shift_open_date done [13:16:41]produce_requested_data done [13:16:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165689,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:16:41]process_action_free close_receipt [13:16:41]json_value_free [13:16:41]json_value_free done [13:16:41]process_json_proto returns [13:16:41]Send response to host [13:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165689,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:16:41]free response buf [13:16:41]execute_script done [13:16:41]execute_script returns [13:16:41]free content buf [13:16:41]Sock 9.Close socket [13:16:41]Sock 9.Thread stoped [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:50]accept exits with 10 [13:16:50]New connection [13:16:50]New thread 3066776932 created [13:16:50]Thread 3066920292 joined [13:16:50]Waiting for new connection... [13:16:50] Sock 10.Parse request [13:16:50]Sock 10.Check first char [13:16:50]Sock 10.First char is OK [13:16:50]request: POST /json_proto HTTP/1.0 [13:16:50]Method: POST [13:16:50]URL: /json_proto [13:16:50]Method is POST - this is cgi request [13:16:50]url: /json_proto [13:16:50]query_string will be loaded in cgi processing [13:16:50]execute_cgi json_proto POST (null) [13:16:50]execute_cgi path=json_proto method=POST [13:16:50]POST find Content-Length [13:16:50]Host: 172.17.53.195:8080 [13:16:50]Content-Length: 769 [13:16:50]Content-Type: application/json [13:16:50] [13:16:50]POST finish read [13:16:50]Found Content-Length = 769 [13:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.920, "sum" : 1533.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1533.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:50]execute_script... [13:16: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)220188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.920, "sum" : 1533.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1533.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:50]POST & json_proto [13:16:50]process_json_proto [13:16:50]json parsed OK: [13:16:50]protocol is kg_v1.0 [13:16:50]action value=close_receipt [13:16:50]process_action close_receipt [13:16:50]cmd_close_receipt [13:16:50]MH_GetDate [13:16:50]Write to MH i2c: F0 00 00 EC ED C8 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 09 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 09 00 EC ED 00 CF 02 15 67 21 48 4A 65 36 [13:16:50]GetLastDocTimeStamp 1729430209 [13:16:50]current date 1729430223 [13:16:50]FM_GetShiftState [13:16:50]SAM_PROTO_GetShiftState [13:16:50]wFMCommunicate request_size=4 [13:16:50]MH_SAM_APDU [13:16:50]CAPDU: 80 13 01 00 [13:16:50]Write to MH i2c: E2 08 00 ED ED 80 13 01 00 00 00 00 00 57 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 0E 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 0E 00 ED ED 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9F [13:16:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:16:51]wFMCommunicate OK [13:16:51]SAM_PROTO_GetShiftState done [13:16:51]FM_GetShiftState done [13:16:51]opened in 1729384561 [13:16:51]opened+sec_in_day 1729470961 [13:16:51]quantity*price = 153334 [13:16:51]sum+1 = 153336 [13:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1533.35 НСП 1% : 13.57 НДС 12% : 162.83 Наличными: 0.00 Безнал.: 1533.35 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 172 20.10.2024 13:17 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165690 ФПД: 196818241356620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131703&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165690&fm=196818241356620&tin=02508201610067®Number=0000000000091764&sum=153335 [13:16:52]StoreToDocumentArchive [13:16:52]shift 534 fd 165690 [13:16:52]save to /storage/0534/doc_00165690 [13:16:52]save last doc name /storage/0534/doc_00165690 to /storage/kkm_last_doc_name [13:16:52]save OK [13:16:52]Clear old archive folders... [13:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:52]tlvbuf is 015BCAE0 [13:16:52]SAM_PROTO_ClearQueue [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 09 00 00 [13:16:52]Write to MH i2c: E2 08 00 FA ED 80 09 00 00 00 00 00 00 59 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 FA ED 00 90 00 5B [13:16:52]RAPDU: 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_ClearQueue done [13:16:52]KKMCreateOFDPacket [13:16:52]OFDProtocolAddRootSTLVToBuf [13:16:52]FM_MakeSignedData [13:16:52]FM_MakeSignedData [13:16:52]SAM_PROTO_SignData [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 0D 01 02 [13:16:52]Write to MH i2c: E2 08 00 FB ED 80 0D 01 02 00 00 00 00 61 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 FB ED 00 90 00 5C [13:16:52]RAPDU: 90 00 [13:16:52]wFMCommunicate OK [13:16:52]wFMCommunicate request_size=255 [13:16:52]MH_SAM_APDU [13:16: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 59 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F7 56 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 56 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 56 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CF 02 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 87 02 00 35 04 06 00 B3 [13:16:52]Write to MH i2c: E2 02 01 FC ED 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 59 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F7 56 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 56 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 56 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CF 02 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 87 02 00 35 04 06 00 B3 00 00 2F [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 FC ED 00 90 00 5D [13:16:52]RAPDU: 90 00 [13:16:52]wFMCommunicate OK [13:16:52]wFMCommunicate request_size=10 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 0D 02 02 05 01 51 5C 83 4C [13:16:52]Write to MH i2c: E2 0D 00 FD ED 80 0D 02 02 05 00 01 51 5C 83 4C 00 00 EB [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 FD ED 00 90 00 5E [13:16:52]RAPDU: 90 00 [13:16:52]wFMCommunicate OK [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 0D 03 02 [13:16:52]Write to MH i2c: E2 08 00 FE ED 80 0D 03 02 00 00 00 00 66 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0B 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0B 00 FE ED 00 95 8C 64 94 2C FC 5A 5F 90 00 61 [13:16:52]RAPDU: 95 8C 64 94 2C FC 5A 5F 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_SignData done [13:16:52]FM_MakeSignedData done [13:16:52]CreateOFDProtocolMessage [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 11 00 00 [13:16:52]Write to MH i2c: E2 08 00 FF ED 80 11 00 00 00 00 00 00 66 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 17 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 17 00 FF ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [13:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:16:52]wFMCommunicate OK [13:16:52]CreateOFDProtocolMessage done [13:16:52]OFDSenderStorePacket 165690 [13:16:52]StoreOFDPacket docnum=165690 [13:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 DA 07 01 6C 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 88 59 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F7 56 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 56 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 56 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CF 02 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 87 02 00 35 04 06 00 B3 01 51 5C 83 4C 95 8C 64 94 2C FC 5A 5F [13:16:52]CheckFolder [13:16:52]dirname=/storage/ofd_packets [13:16:52]CheckFolder done [13:16:52]ProducePacketName [13:16:52]name=ofd_packets/00165690 [13:16:52]NVStorageSaveData ofd_packets/00165690 [13:16:52]File name is /storage/ofd_packets/00165690 [13:16:52]Write 301 bytes [13:16:52]NVStorageSaveData done [13:16:52]OFDSenderStorePacket done [13:16:52]KKMCreateOFDPacket done [13:16:52]NVStorageSaveData kkm_last_timestamp [13:16:52]File name is /storage/kkm_last_timestamp [13:16:52]Write 4 bytes [13:16:52]NVStorageSaveData done [13:16:52]ExternCall_PrintAddStr [13:16:52]wPrintStart [13:16:52]Write to MH i2c: 01 00 00 00 EE EE [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 07 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 07 00 00 EE 00 00 00 00 00 FF 0F 03 [13:16:52]RasterBufferAndPrint [13:16:52]line Счет N : (1)220188 [13:16:52]line ИНН: 02508201610067 [13:16:52]line Контрольно-Кассовый Чек [13:16:52]line ПРОДАЖА [13:16:52]line ТРК (МРК, ГНК) : 43 [13:16:52]line Товар: 2710124130 [13:16:52]line Аи-92-К-5 [13:16:52]line 22.920 * 66.90 [13:16:52]line = 1533.35 [13:16:52]line НДС 12% НСП 1% [13:16:52]line > о реализуемом товаре [13:16:52]line ИТОГО: 1533.35 [13:16:52]line НСП 1% : 13.57 [13:16:52]line НДС 12% : 162.83 [13:16:52]line Наличными: 0.00 [13:16:52]line Безнал.: 1533.35 [13:16:52]line Место: АЗС № 161 "Партнер Нефть" [13:16:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:16:52]line СНО: Общий режим [13:16:52]line Чек 172 20.10.2024 13:17 [13:16:52]line Смена: 534 ФФД: 1.0 [13:16:52]line ЗНМ: 0300000104 [13:16:52]line РНМ: 0000000000091764 [13:16:52]line Версия ККМ: 001 [13:16:52]line Платежная система: Mbank [13:16:52]line ФМ: 0000000000871759 [13:16:52]line ФД: 165690 [13:16:52]line ФПД: 196818241356620 [13:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131703&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165690&fm=196818241356620&tin=02508201610067®Number=0000000000091764&sum=153335 [13:16:52]written 0, free lines is 4095 [13:16:52]OFD Sender: Processing packet 165690 [packets to send 48, broken 47] [13:16:52]ProducePacketName [13:16:52]name=ofd_packets/00165690 [13:16:52]OFD Sender: To server: pG, [13:16:52]CommunicateWithHost lk.salyk.kg:30040 [13:16:52]ConnectInit lk.salyk.kg [13:16:52]Connected sock=9 [13:16:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 DA 07 01 6C 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 88 59 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F7 56 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 56 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 56 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 CF 02 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 87 02 00 35 04 06 00 B3 01 51 5C 83 4C 95 8C 64 94 2C FC 5A 5F [13:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FD 1C 47 00 DA 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 31 37 35 39 10 04 04 00 3A 87 02 00 F4 03 04 00 41 A9 14 67 B6 04 01 00 00 10 44 63 76 BB 90 58 9E [13:16:53]CommunicateWithHost err = 0 [13:16:53]CheckOFDResponse [13:16:53]1017 (14) - 77093643461234 [13:16:53]1041 (16) - 0000000000871759 [13:16:53]1040 (4) - 165690 [13:16:53]1012 (4) - 20.10.2024 06:54 [13:16:53]1206 (1) - 0 [13:16:53]OFD Sender: Remove packet 165690 [13:16:53]ProducePacketName [13:16:53]name=ofd_packets/00165690 [13:16:53]NVStorageDeleteData [13:16:53]Write to MH i2c: 01 00 00 29 EE 17 [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: 01 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: 01 07 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: 01 07 00 29 EE 00 00 00 00 00 0C 0D 37 [13:16:53]RasterBufferAndPrint [13:16:53]line [13:16:53]line [13:16:53]line [13:16:53]line [13:16:53]line [13:16:53]written 0, free lines is 3347 [13:16:53]MH_Cut [13:16:53]Write to MH i2c: D1 01 00 30 EE 01 F0 [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: D1 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: D1 01 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: D1 01 00 30 EE 00 EF [13:16:53]Write to MH i2c: 01 00 00 31 EE 1F [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]OFD Sender: No OFD packet to send [13:16:53]*** Cut start [13:16:53]*** Partial cut [13:16:53]*** CUTSNS_PIN = 1 [13:16:54]*** CUTSNS_PIN = 0 [13:16:54]*** Brake cut motor [13:16:54]Read from MH i2c: 01 [13:16:54]MH_I2C_Read... [13:16:54]*** Stop cut motor [13:16:54]*** Cut end [13:16:54]Read from MH i2c: 01 07 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: 01 07 00 31 EE 00 00 00 00 00 FF 0F 34 [13:16:54]process_action close_receipt done [13:16:54]requested_data is exist [13:16:54]produce_requested_data [13:16:54]requested_item fm.sn is exist - process it [13:16:54]wFMCommunicate request_size=4 [13:16:54]MH_SAM_APDU [13:16:54]CAPDU: 80 11 00 00 [13:16:54]Write to MH i2c: E2 08 00 32 EE 80 11 00 00 00 00 00 00 9A [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:54]Read from MH i2c: E2 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 17 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 17 00 32 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [13:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:16:54]wFMCommunicate OK [13:16:54]requested_item fd.num is exist - process it [13:16:54]SAM_PROTO_GetFieldsCounters [13:16:54]wFMCommunicate request_size=4 [13:16:54]MH_SAM_APDU [13:16:54]CAPDU: 80 13 00 00 [13:16:54]Write to MH i2c: E2 08 00 33 EE 80 13 00 00 00 00 00 00 9D [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:54]Read from MH i2c: E2 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 62 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 62 00 33 EE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 87 02 00 0E 04 04 00 16 02 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 A4 [13:16:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 87 02 00 0E 04 04 00 16 02 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:16:54]wFMCommunicate OK [13:16:54]SAM_PROTO_GetFieldsCounters done [13:16:54]requested_item shift.num is exist - process it [13:16:54]requested_item shift.opened is exist - process it [13:16:54]req_shift_opened [13:16:54]FM_GetShiftState [13:16:54]SAM_PROTO_GetShiftState [13:16:54]wFMCommunicate request_size=4 [13:16:54]MH_SAM_APDU [13:16:54]CAPDU: 80 13 01 00 [13:16:54]Write to MH i2c: E2 08 00 34 EE 80 13 01 00 00 00 00 00 9F [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:54]Read from MH i2c: E2 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 0E 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 0E 00 34 EE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E7 [13:16:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:16:54]wFMCommunicate OK [13:16:54]SAM_PROTO_GetShiftState done [13:16:54]FM_GetShiftState done [13:16:54]req_shift_opened done [13:16:54]requested_item shift.open_date is exist - process it [13:16:54]req_shift_open_date [13:16:54]req_shift_open_date done [13:16:54]produce_requested_data done [13:16:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165690,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:16:54]process_action_free close_receipt [13:16:54]json_value_free [13:16:54]json_value_free done [13:16:54]process_json_proto returns [13:16:54]Send response to host [13:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165690,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:16:54]free response buf [13:16:54]execute_script done [13:16:54]execute_script returns [13:16:54]free content buf [13:16:54]Sock 10.Close socket [13:16:54]Sock 10.Thread stoped [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:22]accept exits with 7 [13:19:22]New connection [13:19:22]New thread 3066920292 created [13:19:22]Thread 3066776932 joined [13:19:22]Waiting for new connection... [13:19:22] Sock 7.Parse request [13:19:22]Sock 7.Check first char [13:19:22]Sock 7.First char is OK [13:19:22]request: POST /json_proto HTTP/1.0 [13:19:22]Method: POST [13:19:22]URL: /json_proto [13:19:22]Method is POST - this is cgi request [13:19:22]url: /json_proto [13:19:22]query_string will be loaded in cgi processing [13:19:22]execute_cgi json_proto POST (null) [13:19:22]execute_cgi path=json_proto method=POST [13:19:22]POST find Content-Length [13:19:22]Host: 172.17.53.195:8080 [13:19:22]Content-Length: 764 [13:19:22]Content-Type: application/json [13:19:22] [13:19:22]POST finish read [13:19:22]Found Content-Length = 764 [13:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220255", "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" : 76.20, "quantity" : 12.340, "sum" : 940.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 940.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:22]execute_script... [13:19: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)220255", "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" : 76.20, "quantity" : 12.340, "sum" : 940.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 940.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:22]POST & json_proto [13:19:22]process_json_proto [13:19:22]json parsed OK: [13:19:22]protocol is kg_v1.0 [13:19:22]action value=close_receipt [13:19:22]process_action close_receipt [13:19:22]cmd_close_receipt [13:19:22]MH_GetDate [13:19:22]Write to MH i2c: F0 00 00 35 EE 12 [13:19:22]Write i2c OK [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: F0 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: F0 09 00 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: F0 09 00 35 EE 00 67 03 15 67 21 48 4A 65 19 [13:19:22]GetLastDocTimeStamp 1729430223 [13:19:22]current date 1729430375 [13:19:22]FM_GetShiftState [13:19:22]SAM_PROTO_GetShiftState [13:19:22]wFMCommunicate request_size=4 [13:19:22]MH_SAM_APDU [13:19:22]CAPDU: 80 13 01 00 [13:19:22]Write to MH i2c: E2 08 00 36 EE 80 13 01 00 00 00 00 00 A1 [13:19:22]Write i2c OK [13:19:22]MH_I2C_Read... [13:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:22]Read from MH i2c: E2 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 0E 00 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 0E 00 36 EE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E9 [13:19:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:19:22]wFMCommunicate OK [13:19:22]SAM_PROTO_GetShiftState done [13:19:22]FM_GetShiftState done [13:19:22]opened in 1729384561 [13:19:22]opened+sec_in_day 1729470961 [13:19:22]quantity*price = 94030 [13:19:22]sum+1 = 94032 [13:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 940.31 НСП 1% : 8.32 НДС 12% : 99.86 Наличными: 0.00 Безнал.: 940.31 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 173 20.10.2024 13:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165691 ФПД: 145632743370589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131935&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165691&fm=145632743370589&tin=02508201610067®Number=0000000000091764&sum=94031 [13:19:24]StoreToDocumentArchive [13:19:24]shift 534 fd 165691 [13:19:24]save to /storage/0534/doc_00165691 [13:19:24]save last doc name /storage/0534/doc_00165691 to /storage/kkm_last_doc_name [13:19:24]save OK [13:19:24]Clear old archive folders... [13:19:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:19:24]tlvbuf is 014654C0 [13:19:24]SAM_PROTO_ClearQueue [13:19:24]wFMCommunicate request_size=4 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 09 00 00 [13:19:24]Write to MH i2c: E2 08 00 43 EE 80 09 00 00 00 00 00 00 A3 [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 03 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 03 00 43 EE 00 90 00 A5 [13:19:24]RAPDU: 90 00 [13:19:24]wFMCommunicate OK [13:19:24]SAM_PROTO_ClearQueue done [13:19:24]KKMCreateOFDPacket [13:19:24]OFDProtocolAddRootSTLVToBuf [13:19:24]FM_MakeSignedData [13:19:24]FM_MakeSignedData [13:19:24]SAM_PROTO_SignData [13:19:24]wFMCommunicate request_size=4 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 0D 01 02 [13:19:24]Write to MH i2c: E2 08 00 44 EE 80 0D 01 02 00 00 00 00 AB [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 03 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 03 00 44 EE 00 90 00 A6 [13:19:24]RAPDU: 90 00 [13:19:24]wFMCommunicate OK [13:19:24]wFMCommunicate request_size=255 [13:19:24]MH_SAM_APDU [13:19: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 34 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4F 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 02 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 6F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 67 03 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 87 02 00 35 04 06 00 84 73 C3 EF [13:19:24]Write to MH i2c: E2 02 01 45 EE 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 34 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4F 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 02 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 6F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 67 03 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 87 02 00 35 04 06 00 84 73 C3 EF 00 00 15 [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 03 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 03 00 45 EE 00 90 00 A7 [13:19:24]RAPDU: 90 00 [13:19:24]wFMCommunicate OK [13:19:24]wFMCommunicate request_size=7 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 0D 02 02 02 AF 5D [13:19:24]Write to MH i2c: E2 0A 00 46 EE 80 0D 02 02 02 00 AF 5D 00 00 BE [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 03 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 03 00 46 EE 00 90 00 A8 [13:19:24]RAPDU: 90 00 [13:19:24]wFMCommunicate OK [13:19:24]wFMCommunicate request_size=4 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 0D 03 02 [13:19:24]Write to MH i2c: E2 08 00 47 EE 80 0D 03 02 00 00 00 00 B0 [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 0B 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 0B 00 47 EE 00 A7 8D 24 6C FA 09 68 ED 90 00 CD [13:19:24]RAPDU: A7 8D 24 6C FA 09 68 ED 90 00 [13:19:24]wFMCommunicate OK [13:19:24]SAM_PROTO_SignData done [13:19:24]FM_MakeSignedData done [13:19:24]CreateOFDProtocolMessage [13:19:24]wFMCommunicate request_size=4 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 11 00 00 [13:19:24]Write to MH i2c: E2 08 00 48 EE 80 11 00 00 00 00 00 00 B0 [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 17 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 17 00 48 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [13:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:19:24]wFMCommunicate OK [13:19:24]CreateOFDProtocolMessage done [13:19:24]OFDSenderStorePacket 165691 [13:19:24]StoreOFDPacket docnum=165691 [13:19:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1B F3 04 01 0E 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 34 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4F 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 02 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 6F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 67 03 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 87 02 00 35 04 06 00 84 73 C3 EF AF 5D A7 8D 24 6C FA 09 68 ED [13:19:24]CheckFolder [13:19:24]dirname=/storage/ofd_packets [13:19:24]CheckFolder done [13:19:24]ProducePacketName [13:19:24]name=ofd_packets/00165691 [13:19:24]NVStorageSaveData ofd_packets/00165691 [13:19:24]File name is /storage/ofd_packets/00165691 [13:19:24]Write 298 bytes [13:19:24]NVStorageSaveData done [13:19:24]OFDSenderStorePacket done [13:19:24]KKMCreateOFDPacket done [13:19:24]NVStorageSaveData kkm_last_timestamp [13:19:24]File name is /storage/kkm_last_timestamp [13:19:24]Write 4 bytes [13:19:24]NVStorageSaveData done [13:19:24]ExternCall_PrintAddStr [13:19:24]wPrintStart [13:19:24]Write to MH i2c: 01 00 00 49 EE 37 [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: 01 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: 01 07 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: 01 07 00 49 EE 00 00 00 00 00 FF 0F 4C [13:19:24]RasterBufferAndPrint [13:19:24]line Счет N : (1)220255 [13:19:24]line ИНН: 02508201610067 [13:19:24]line Контрольно-Кассовый Чек [13:19:24]line ПРОДАЖА [13:19:24]line ТРК (МРК, ГНК) : 21 [13:19:24]line Товар: 2710194210 [13:19:24]line ДТ-К-5 [13:19:24]line 12.340 * 76.20 [13:19:24]line = 940.31 [13:19:24]line НДС 12% НСП 1% [13:19:24]line > о реализуемом товаре [13:19:24]line ИТОГО: 940.31 [13:19:24]line НСП 1% : 8.32 [13:19:24]line НДС 12% : 99.86 [13:19:24]line Наличными: 0.00 [13:19:24]line Безнал.: 940.31 [13:19:24]line Место: АЗС № 161 "Партнер Нефть" [13:19:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:19:24]line СНО: Общий режим [13:19:24]line Чек 173 20.10.2024 13:19 [13:19:24]line Смена: 534 ФФД: 1.0 [13:19:24]line ЗНМ: 0300000104 [13:19:24]line РНМ: 0000000000091764 [13:19:24]line Версия ККМ: 001 [13:19:24]line Платежная система: Mbank [13:19:24]line ФМ: 0000000000871759 [13:19:24]line ФД: 165691 [13:19:24]line ФПД: 145632743370589 [13:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131935&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165691&fm=145632743370589&tin=02508201610067®Number=0000000000091764&sum=94031 [13:19:24]OFD Sender: Processing packet 165691 [packets to send 48, broken 47] [13:19:24]ProducePacketName [13:19:24]name=ofd_packets/00165691 [13:19:24]OFD Sender: To server: pG, [13:19:24]CommunicateWithHost lk.salyk.kg:30040 [13:19:24]ConnectInit lk.salyk.kg [13:19:24]written 0, free lines is 4095 [13:19:24]Connected sock=10 [13:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1B F3 04 01 0E 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 34 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4F 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 02 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 6F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 67 03 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 87 02 00 35 04 06 00 84 73 C3 EF AF 5D A7 8D 24 6C FA 09 68 ED [13:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B4 41 47 00 09 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 31 37 35 39 10 04 04 00 3B 87 02 00 F4 03 04 00 D9 A9 14 67 B6 04 01 00 00 0A D0 CD 03 84 B2 F8 00 [13:19:25]CommunicateWithHost err = 0 [13:19:25]CheckOFDResponse [13:19:25]1017 (14) - 77093643461234 [13:19:25]1041 (16) - 0000000000871759 [13:19:25]1040 (4) - 165691 [13:19:25]1012 (4) - 20.10.2024 06:57 [13:19:25]1206 (1) - 0 [13:19:25]OFD Sender: Remove packet 165691 [13:19:25]ProducePacketName [13:19:25]name=ofd_packets/00165691 [13:19:25]NVStorageDeleteData [13:19:25]Write to MH i2c: 01 00 00 72 EE 60 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 07 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 07 00 72 EE 00 00 00 00 00 F5 0C 68 [13:19:25]RasterBufferAndPrint [13:19:25]line [13:19:25]line [13:19:25]line [13:19:25]line [13:19:25]line [13:19:25]written 0, free lines is 3328 [13:19:25]MH_Cut [13:19:25]Write to MH i2c: D1 01 00 79 EE 01 39 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: D1 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: D1 01 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: D1 01 00 79 EE 00 38 [13:19:25]Write to MH i2c: 01 00 00 7A EE 68 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]OFD Sender: No OFD packet to send [13:19:26]*** Cut start [13:19:26]*** Partial cut [13:19:26]*** CUTSNS_PIN = 1 [13:19:26]*** CUTSNS_PIN = 0 [13:19:26]*** Brake cut motor [13:19:26]Read from MH i2c: 01 [13:19:26]MH_I2C_Read... [13:19:26]*** Stop cut motor [13:19:26]*** Cut end [13:19:26]Read from MH i2c: 01 07 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 07 00 7A EE 00 00 00 00 00 FF 0F 7D [13:19:26]process_action close_receipt done [13:19:26]requested_data is exist [13:19:26]produce_requested_data [13:19:26]requested_item fm.sn is exist - process it [13:19:26]wFMCommunicate request_size=4 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 11 00 00 [13:19:26]Write to MH i2c: E2 08 00 7B EE 80 11 00 00 00 00 00 00 E3 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 17 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 17 00 7B EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3B [13:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:19:26]wFMCommunicate OK [13:19:26]requested_item fd.num is exist - process it [13:19:26]SAM_PROTO_GetFieldsCounters [13:19:26]wFMCommunicate request_size=4 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 13 00 00 [13:19:26]Write to MH i2c: E2 08 00 7C EE 80 13 00 00 00 00 00 00 E6 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 62 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 62 00 7C EE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 87 02 00 0E 04 04 00 16 02 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 F1 [13:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 87 02 00 0E 04 04 00 16 02 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:19:26]wFMCommunicate OK [13:19:26]SAM_PROTO_GetFieldsCounters done [13:19:26]requested_item shift.num is exist - process it [13:19:26]requested_item shift.opened is exist - process it [13:19:26]req_shift_opened [13:19:26]FM_GetShiftState [13:19:26]SAM_PROTO_GetShiftState [13:19:26]wFMCommunicate request_size=4 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 13 01 00 [13:19:26]Write to MH i2c: E2 08 00 7D EE 80 13 01 00 00 00 00 00 E8 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 0E 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 0E 00 7D EE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 30 [13:19:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:19:27]wFMCommunicate OK [13:19:27]SAM_PROTO_GetShiftState done [13:19:27]FM_GetShiftState done [13:19:27]req_shift_opened done [13:19:27]requested_item shift.open_date is exist - process it [13:19:27]req_shift_open_date [13:19:27]req_shift_open_date done [13:19:27]produce_requested_data done [13:19:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165691,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:19:27]process_action_free close_receipt [13:19:27]json_value_free [13:19:27]json_value_free done [13:19:27]process_json_proto returns [13:19:27]Send response to host [13:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165691,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:19:27]free response buf [13:19:27]execute_script done [13:19:27]execute_script returns [13:19:27]free content buf [13:19:27]Sock 7.Close socket [13:19:27]Sock 7.Thread stoped [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:20:59]accept exits with 9 [13:20:59]New connection [13:20:59]New thread 3066776932 created [13:20:59]Thread 3066920292 joined [13:20:59]Waiting for new connection... [13:20:59] Sock 9.Parse request [13:20:59]Sock 9.Check first char [13:20:59]Sock 9.First char is OK [13:20:59]request: POST /json_proto HTTP/1.0 [13:20:59]Method: POST [13:20:59]URL: /json_proto [13:20:59]Method is POST - this is cgi request [13:20:59]url: /json_proto [13:20:59]query_string will be loaded in cgi processing [13:20:59]execute_cgi json_proto POST (null) [13:20:59]execute_cgi path=json_proto method=POST [13:20:59]POST find Content-Length [13:20:59]Host: 172.17.53.195:8080 [13:20:59]Content-Length: 682 [13:20:59]Content-Type: application/json [13:20:59] [13:20:59]POST finish read [13:20:59]Found Content-Length = 682 [13:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.890, "sum" : 1999.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:59]execute_script... [13:20: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)220256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.890, "sum" : 1999.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:59]POST & json_proto [13:20:59]process_json_proto [13:20:59]json parsed OK: [13:20:59]protocol is kg_v1.0 [13:20:59]action value=close_receipt [13:20:59]process_action close_receipt [13:20:59]cmd_close_receipt [13:20:59]MH_GetDate [13:20:59]Write to MH i2c: F0 00 00 7E EE 5B [13:20:59]Write i2c OK [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: F0 [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: F0 09 00 [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: F0 09 00 7E EE 00 C7 03 15 67 21 48 4A 65 C2 [13:20:59]GetLastDocTimeStamp 1729430375 [13:20:59]current date 1729430471 [13:20:59]FM_GetShiftState [13:20:59]SAM_PROTO_GetShiftState [13:20:59]wFMCommunicate request_size=4 [13:20:59]MH_SAM_APDU [13:20:59]CAPDU: 80 13 01 00 [13:20:59]Write to MH i2c: E2 08 00 7F EE 80 13 01 00 00 00 00 00 EA [13:20:59]Write i2c OK [13:20:59]MH_I2C_Read... [13:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:59]Read from MH i2c: E2 [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: E2 0E 00 [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: E2 0E 00 7F EE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 32 [13:20:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:20:59]wFMCommunicate OK [13:20:59]SAM_PROTO_GetShiftState done [13:20:59]FM_GetShiftState done [13:20:59]opened in 1729384561 [13:20:59]opened+sec_in_day 1729470961 [13:20:59]quantity*price = 199964 [13:20:59]sum+1 = 199965 [13:20:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.35 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 174 20.10.2024 13:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165692 ФПД: 51536547575795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132111&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165692&fm=51536547575795&tin=02508201610067®Number=0000000000091764&sum=199900 [13:21:00]StoreToDocumentArchive [13:21:00]shift 534 fd 165692 [13:21:00]save to /storage/0534/doc_00165692 [13:21:00]save last doc name /storage/0534/doc_00165692 to /storage/kkm_last_doc_name [13:21:00]save OK [13:21:00]Clear old archive folders... [13:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:00]tlvbuf is 015DDC00 [13:21:00]SAM_PROTO_ClearQueue [13:21:00]wFMCommunicate request_size=4 [13:21:00]MH_SAM_APDU [13:21:00]CAPDU: 80 09 00 00 [13:21:00]Write to MH i2c: E2 08 00 8C EE 80 09 00 00 00 00 00 00 EC [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:00]Read from MH i2c: E2 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 03 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 03 00 8C EE 00 90 00 EE [13:21:00]RAPDU: 90 00 [13:21:00]wFMCommunicate OK [13:21:00]SAM_PROTO_ClearQueue done [13:21:00]KKMCreateOFDPacket [13:21:00]OFDProtocolAddRootSTLVToBuf [13:21:00]FM_MakeSignedData [13:21:00]FM_MakeSignedData [13:21:00]SAM_PROTO_SignData [13:21:00]wFMCommunicate request_size=4 [13:21:00]MH_SAM_APDU [13:21:00]CAPDU: 80 0D 01 02 [13:21:00]Write to MH i2c: E2 08 00 8D EE 80 0D 01 02 00 00 00 00 F4 [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:00]Read from MH i2c: E2 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 03 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 03 00 8D EE 00 90 00 EF [13:21:00]RAPDU: 90 00 [13:21:00]wFMCommunicate OK [13:21:00]wFMCommunicate request_size=255 [13:21:00]MH_SAM_APDU [13:21: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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C7 03 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 87 02 00 35 04 06 00 2E [13:21:00]Write to MH i2c: E2 02 01 8E EE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C7 03 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 87 02 00 35 04 06 00 2E 00 00 AD [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:00]Read from MH i2c: E2 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 03 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 03 00 8E EE 00 90 00 F0 [13:21:00]RAPDU: 90 00 [13:21:00]wFMCommunicate OK [13:21:00]wFMCommunicate request_size=10 [13:21:00]MH_SAM_APDU [13:21:00]CAPDU: 80 0D 02 02 05 DF 49 9C 77 F3 [13:21:00]Write to MH i2c: E2 0D 00 8F EE 80 0D 02 02 05 00 DF 49 9C 77 F3 00 00 2F [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:00]Read from MH i2c: E2 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 03 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 03 00 8F EE 00 90 00 F1 [13:21:00]RAPDU: 90 00 [13:21:00]wFMCommunicate OK [13:21:00]wFMCommunicate request_size=4 [13:21:00]MH_SAM_APDU [13:21:00]CAPDU: 80 0D 03 02 [13:21:00]Write to MH i2c: E2 08 00 90 EE 80 0D 03 02 00 00 00 00 F9 [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:00]Read from MH i2c: E2 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 0B 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 0B 00 90 EE 00 2E B6 79 21 67 7F 49 8D 90 00 34 [13:21:00]RAPDU: 2E B6 79 21 67 7F 49 8D 90 00 [13:21:00]wFMCommunicate OK [13:21:00]SAM_PROTO_SignData done [13:21:00]FM_MakeSignedData done [13:21:00]CreateOFDProtocolMessage [13:21:00]wFMCommunicate request_size=4 [13:21:00]MH_SAM_APDU [13:21:00]CAPDU: 80 11 00 00 [13:21:00]Write to MH i2c: E2 08 00 91 EE 80 11 00 00 00 00 00 00 F9 [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:00]Read from MH i2c: E2 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 17 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 17 00 91 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [13:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:21:00]wFMCommunicate OK [13:21:00]CreateOFDProtocolMessage done [13:21:00]OFDSenderStorePacket 165692 [13:21:00]StoreOFDPacket docnum=165692 [13:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 66 07 01 F3 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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C7 03 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 87 02 00 35 04 06 00 2E DF 49 9C 77 F3 2E B6 79 21 67 7F 49 8D [13:21:00]CheckFolder [13:21:00]dirname=/storage/ofd_packets [13:21:00]CheckFolder done [13:21:00]ProducePacketName [13:21:00]name=ofd_packets/00165692 [13:21:00]NVStorageSaveData ofd_packets/00165692 [13:21:00]File name is /storage/ofd_packets/00165692 [13:21:00]Write 301 bytes [13:21:00]NVStorageSaveData done [13:21:00]OFDSenderStorePacket done [13:21:00]KKMCreateOFDPacket done [13:21:00]NVStorageSaveData kkm_last_timestamp [13:21:00]File name is /storage/kkm_last_timestamp [13:21:00]Write 4 bytes [13:21:00]NVStorageSaveData done [13:21:00]ExternCall_PrintAddStr [13:21:00]wPrintStart [13:21:00]Write to MH i2c: 01 00 00 92 EE 80 [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: 01 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: 01 07 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: 01 07 00 92 EE 00 00 00 00 00 FF 0F 95 [13:21:00]RasterBufferAndPrint [13:21:00]line Счет N : (1)220256 [13:21:00]line ИНН: 02508201610067 [13:21:00]line Контрольно-Кассовый Чек [13:21:00]line ПРОДАЖА [13:21:00]line ТРК (МРК, ГНК) : 43 [13:21:00]line Товар: 2710124130 [13:21:00]line Аи-92-К-5 [13:21:00]line 29.890 * 66.90 [13:21:00]line = 1999.64 [13:21:00]line НДС 12% НСП 1% [13:21:00]line > о реализуемом товаре [13:21:00]line ОКРУГЛЕНИЕ: -0.64 [13:21:00]line ИТОГО: 1999.00 [13:21:00]line Внесено: 2000.00 [13:21:00]line СДАЧА: 1.00 [13:21:00]line НСП 1% : 17.70 [13:21:00]line НДС 12% : 212.35 [13:21:00]line Наличными: 1999.00 [13:21:00]line Безнал.: 0.00 [13:21:00]line Место: АЗС № 161 "Партнер Нефть" [13:21:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:21:00]line СНО: Общий режим [13:21:00]line Чек 174 20.10.2024 13:21 [13:21:00]line Смена: 534 ФФД: 1.0 [13:21:00]line ЗНМ: 0300000104 [13:21:00]line РНМ: 0000000000091764 [13:21:00]line Версия ККМ: 001 [13:21:00]line ФМ: 0000000000871759 [13:21:00]line ФД: 165692 [13:21:00]line ФПД: 51536547575795 [13:21:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132111&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165692&fm=51536547575795&tin=02508201610067®Number=0000000000091764&sum=199900 [13:21:01]OFD Sender: Processing packet 165692 [packets to send 48, broken 47] [13:21:01]ProducePacketName [13:21:01]name=ofd_packets/00165692 [13:21:01]OFD Sender: To server: pG, [13:21:01]CommunicateWithHost lk.salyk.kg:30040 [13:21:01]ConnectInit lk.salyk.kg [13:21:01]written 0, free lines is 4095 [13:21:01]Connected sock=10 [13:21:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 66 07 01 F3 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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C7 03 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 87 02 00 35 04 06 00 2E DF 49 9C 77 F3 2E B6 79 21 67 7F 49 8D [13:21:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EA 49 47 00 E8 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 87 02 00 F4 03 04 00 39 AA 14 67 B6 04 01 00 00 BB D4 A9 13 73 DC 93 3D [13:21:01]CommunicateWithHost err = 0 [13:21:01]CheckOFDResponse [13:21:01]1017 (14) - 77093643461234 [13:21:01]1041 (16) - 0000000000871759 [13:21:01]1040 (4) - 165692 [13:21:01]1012 (4) - 20.10.2024 06:59 [13:21:01]1206 (1) - 0 [13:21:01]OFD Sender: Remove packet 165692 [13:21:01]ProducePacketName [13:21:01]name=ofd_packets/00165692 [13:21:01]NVStorageDeleteData [13:21:01]Write to MH i2c: 01 00 00 BD EE AB [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 07 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 07 00 BD EE 00 00 00 00 00 D1 0C 8F [13:21:01]RasterBufferAndPrint [13:21:01]line [13:21:01]line [13:21:01]line [13:21:01]line [13:21:01]line [13:21:01]written 0, free lines is 3286 [13:21:01]MH_Cut [13:21:01]Write to MH i2c: D1 01 00 C4 EE 01 84 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: D1 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: D1 01 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: D1 01 00 C4 EE 00 83 [13:21:01]Write to MH i2c: 01 00 00 C5 EE B3 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]OFD Sender: No OFD packet to send [13:21:02]*** Cut start [13:21:02]*** Partial cut [13:21:02]*** CUTSNS_PIN = 1 [13:21:02]*** CUTSNS_PIN = 0 [13:21:02]*** Brake cut motor [13:21:02]Read from MH i2c: 01 [13:21:02]MH_I2C_Read... [13:21:02]*** Stop cut motor [13:21:02]*** Cut end [13:21:02]Read from MH i2c: 01 07 00 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: 01 07 00 C5 EE 00 00 00 00 00 FF 0F C8 [13:21:02]process_action close_receipt done [13:21:02]requested_data is exist [13:21:02]produce_requested_data [13:21:02]requested_item fm.sn is exist - process it [13:21:02]wFMCommunicate request_size=4 [13:21:02]MH_SAM_APDU [13:21:02]CAPDU: 80 11 00 00 [13:21:02]Write to MH i2c: E2 08 00 C6 EE 80 11 00 00 00 00 00 00 2E [13:21:02]Write i2c OK [13:21:02]MH_I2C_Read... [13:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:03]Read from MH i2c: E2 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: E2 17 00 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: E2 17 00 C6 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [13:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:21:03]wFMCommunicate OK [13:21:03]requested_item fd.num is exist - process it [13:21:03]SAM_PROTO_GetFieldsCounters [13:21:03]wFMCommunicate request_size=4 [13:21:03]MH_SAM_APDU [13:21:03]CAPDU: 80 13 00 00 [13:21:03]Write to MH i2c: E2 08 00 C7 EE 80 13 00 00 00 00 00 00 31 [13:21:03]Write i2c OK [13:21:03]MH_I2C_Read... [13:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:03]Read from MH i2c: E2 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: E2 62 00 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: E2 62 00 C7 EE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 87 02 00 0E 04 04 00 16 02 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 40 [13:21: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 87 02 00 0E 04 04 00 16 02 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:21:03]wFMCommunicate OK [13:21:03]SAM_PROTO_GetFieldsCounters done [13:21:03]requested_item shift.num is exist - process it [13:21:03]requested_item shift.opened is exist - process it [13:21:03]req_shift_opened [13:21:03]FM_GetShiftState [13:21:03]SAM_PROTO_GetShiftState [13:21:03]wFMCommunicate request_size=4 [13:21:03]MH_SAM_APDU [13:21:03]CAPDU: 80 13 01 00 [13:21:03]Write to MH i2c: E2 08 00 C8 EE 80 13 01 00 00 00 00 00 33 [13:21:03]Write i2c OK [13:21:03]MH_I2C_Read... [13:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:03]Read from MH i2c: E2 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: E2 0E 00 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: E2 0E 00 C8 EE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7B [13:21:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:21:03]wFMCommunicate OK [13:21:03]SAM_PROTO_GetShiftState done [13:21:03]FM_GetShiftState done [13:21:03]req_shift_opened done [13:21:03]requested_item shift.open_date is exist - process it [13:21:03]req_shift_open_date [13:21:03]req_shift_open_date done [13:21:03]produce_requested_data done [13:21:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165692,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:21:03]process_action_free close_receipt [13:21:03]json_value_free [13:21:03]json_value_free done [13:21:03]process_json_proto returns [13:21:03]Send response to host [13:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165692,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:21:03]free response buf [13:21:03]execute_script done [13:21:03]execute_script returns [13:21:03]free content buf [13:21:03]Sock 9.Close socket [13:21:03]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]accept exits with 7 [13:32:17]New connection [13:32:17]New thread 3066920292 created [13:32:17]Thread 3066776932 joined [13:32:17]Waiting for new connection... [13:32:17] Sock 7.Parse request [13:32:17]Sock 7.Check first char [13:32:17]Sock 7.First char is OK [13:32:17]request: POST /json_proto HTTP/1.0 [13:32:17]Method: POST [13:32:17]URL: /json_proto [13:32:17]Method is POST - this is cgi request [13:32:17]url: /json_proto [13:32:17]query_string will be loaded in cgi processing [13:32:17]execute_cgi json_proto POST (null) [13:32:17]execute_cgi path=json_proto method=POST [13:32:17]POST find Content-Length [13:32:17]Host: 172.17.53.195:8080 [13:32:17]Content-Length: 674 [13:32:17]Content-Type: application/json [13:32:17] [13:32:17]POST finish read [13:32:17]Found Content-Length = 674 [13:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:32:17]execute_script... [13:32: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)220257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:32:17]POST & json_proto [13:32:17]process_json_proto [13:32:17]json parsed OK: [13:32:17]protocol is kg_v1.0 [13:32:17]action value=close_receipt [13:32:17]process_action close_receipt [13:32:17]cmd_close_receipt [13:32:17]MH_GetDate [13:32:17]Write to MH i2c: F0 00 00 C9 EE A6 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: F0 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: F0 09 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: F0 09 00 C9 EE 00 6D 06 15 67 21 48 4A 65 B6 [13:32:17]GetLastDocTimeStamp 1729430471 [13:32:17]current date 1729431149 [13:32:17]FM_GetShiftState [13:32:17]SAM_PROTO_GetShiftState [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 13 01 00 [13:32:17]Write to MH i2c: E2 08 00 CA EE 80 13 01 00 00 00 00 00 35 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 0E 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 0E 00 CA EE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7D [13:32:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:32:17]wFMCommunicate OK [13:32:17]SAM_PROTO_GetShiftState done [13:32:17]FM_GetShiftState done [13:32:17]opened in 1729384561 [13:32:17]opened+sec_in_day 1729470961 [13:32:17]quantity*price = 60045 [13:32:17]sum+1 = 60047 [13:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 175 20.10.2024 13:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165693 ФПД: 91547241102854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133229&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165693&fm=91547241102854&tin=02508201610067®Number=0000000000091764&sum=60000 [13:32:18]StoreToDocumentArchive [13:32:18]shift 534 fd 165693 [13:32:18]save to /storage/0534/doc_00165693 [13:32:18]save last doc name /storage/0534/doc_00165693 to /storage/kkm_last_doc_name [13:32:18]save OK [13:32:18]Clear old archive folders... [13:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:32:18]tlvbuf is 0177A340 [13:32:18]SAM_PROTO_ClearQueue [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 09 00 00 [13:32:18]Write to MH i2c: E2 08 00 D7 EE 80 09 00 00 00 00 00 00 37 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 D7 EE 00 90 00 39 [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_ClearQueue done [13:32:18]KKMCreateOFDPacket [13:32:18]OFDProtocolAddRootSTLVToBuf [13:32:18]FM_MakeSignedData [13:32:18]FM_MakeSignedData [13:32:18]SAM_PROTO_SignData [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 01 02 [13:32:18]Write to MH i2c: E2 08 00 D8 EE 80 0D 01 02 00 00 00 00 3F [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 D8 EE 00 90 00 3A [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=255 [13:32:18]MH_SAM_APDU [13:32: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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 6D 06 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 87 02 00 35 04 06 00 53 43 00 C9 [13:32:18]Write to MH i2c: E2 02 01 D9 EE 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 6D 06 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 87 02 00 35 04 06 00 53 43 00 C9 00 00 67 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 D9 EE 00 90 00 3B [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=7 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 02 02 02 3E 06 [13:32:18]Write to MH i2c: E2 0A 00 DA EE 80 0D 02 02 02 00 3E 06 00 00 8A [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 DA EE 00 90 00 3C [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 03 02 [13:32:18]Write to MH i2c: E2 08 00 DB EE 80 0D 03 02 00 00 00 00 44 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0B 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0B 00 DB EE 00 59 63 5E 1F BA 51 37 96 90 00 56 [13:32:18]RAPDU: 59 63 5E 1F BA 51 37 96 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_SignData done [13:32:18]FM_MakeSignedData done [13:32:18]CreateOFDProtocolMessage [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 11 00 00 [13:32:18]Write to MH i2c: E2 08 00 DC EE 80 11 00 00 00 00 00 00 44 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 DC EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [13:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:32:18]wFMCommunicate OK [13:32:18]CreateOFDProtocolMessage done [13:32:18]OFDSenderStorePacket 165693 [13:32:18]StoreOFDPacket docnum=165693 [13:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 93 14 04 01 E5 B1 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 6D 06 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 87 02 00 35 04 06 00 53 43 00 C9 3E 06 59 63 5E 1F BA 51 37 96 [13:32:18]CheckFolder [13:32:18]dirname=/storage/ofd_packets [13:32:18]CheckFolder done [13:32:18]ProducePacketName [13:32:18]name=ofd_packets/00165693 [13:32:18]NVStorageSaveData ofd_packets/00165693 [13:32:18]File name is /storage/ofd_packets/00165693 [13:32:18]Write 298 bytes [13:32:18]NVStorageSaveData done [13:32:18]OFDSenderStorePacket done [13:32:18]KKMCreateOFDPacket done [13:32:18]NVStorageSaveData kkm_last_timestamp [13:32:18]File name is /storage/kkm_last_timestamp [13:32:18]Write 4 bytes [13:32:18]NVStorageSaveData done [13:32:18]ExternCall_PrintAddStr [13:32:18]wPrintStart [13:32:18]Write to MH i2c: 01 00 00 DD EE CB [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 DD EE 00 00 00 00 00 FF 0F E0 [13:32:18]RasterBufferAndPrint [13:32:18]line Счет N : (1)220257 [13:32:18]line ИНН: 02508201610067 [13:32:18]line Контрольно-Кассовый Чек [13:32:18]line ПРОДАЖА [13:32:18]line ТРК (МРК, ГНК) : 31 [13:32:18]line Товар: 2710194210 [13:32:18]line ДТ-К-5 [13:32:18]line 7.880 * 76.20 [13:32:18]line = 600.46 [13:32:18]line НДС 12% НСП 1% [13:32:18]line > о реализуемом товаре [13:32:18]line ОКРУГЛЕНИЕ: -0.46 [13:32:18]line ИТОГО: 600.00 [13:32:18]line Внесено: 600.00 [13:32:18]line СДАЧА: 0.00 [13:32:18]line НСП 1% : 5.31 [13:32:18]line НДС 12% : 63.77 [13:32:18]line Наличными: 600.00 [13:32:18]line Безнал.: 0.00 [13:32:18]line Место: АЗС № 161 "Партнер Нефть" [13:32:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:32:18]line СНО: Общий режим [13:32:18]line Чек 175 20.10.2024 13:32 [13:32:18]line Смена: 534 ФФД: 1.0 [13:32:18]line ЗНМ: 0300000104 [13:32:18]line РНМ: 0000000000091764 [13:32:18]line Версия ККМ: 001 [13:32:18]line ФМ: 0000000000871759 [13:32:18]line ФД: 165693 [13:32:18]line ФПД: 91547241102854 [13:32:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133229&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165693&fm=91547241102854&tin=02508201610067®Number=0000000000091764&sum=60000 [13:32:19]OFD Sender: Processing packet 165693 [packets to send 48, broken 47] [13:32:19]ProducePacketName [13:32:19]name=ofd_packets/00165693 [13:32:19]OFD Sender: To server: pG, [13:32:19]CommunicateWithHost lk.salyk.kg:30040 [13:32:19]ConnectInit lk.salyk.kg [13:32:19]written 0, free lines is 4095 [13:32:19]Connected sock=9 [13:32:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 93 14 04 01 E5 B1 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 6D 06 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 87 02 00 35 04 06 00 53 43 00 C9 3E 06 59 63 5E 1F BA 51 37 96 [13:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 62 7A 47 00 22 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 87 02 00 F4 03 04 00 DF AC 14 67 B6 04 01 00 00 AA 06 E7 0D E2 F7 FD 83 [13:32:19]CommunicateWithHost err = 0 [13:32:19]CheckOFDResponse [13:32:19]1017 (14) - 77093643461234 [13:32:19]1041 (16) - 0000000000871759 [13:32:19]1040 (4) - 165693 [13:32:19]1012 (4) - 20.10.2024 07:10 [13:32:19]1206 (1) - 0 [13:32:19]OFD Sender: Remove packet 165693 [13:32:19]ProducePacketName [13:32:19]name=ofd_packets/00165693 [13:32:19]NVStorageDeleteData [13:32:19]Write to MH i2c: 01 00 00 08 EF F7 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 07 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 07 00 08 EF 00 00 00 00 00 D4 0C DE [13:32:19]RasterBufferAndPrint [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]written 0, free lines is 3293 [13:32:19]MH_Cut [13:32:19]Write to MH i2c: D1 01 00 0F EF 01 D0 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 01 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 01 00 0F EF 00 CF [13:32:19]Write to MH i2c: 01 00 00 10 EF FF [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:20]OFD Sender: No OFD packet to send [13:32:20]*** Cut start [13:32:20]*** Partial cut [13:32:20]*** CUTSNS_PIN = 1 [13:32:20]*** CUTSNS_PIN = 0 [13:32:20]*** Brake cut motor [13:32:21]Read from MH i2c: 01 [13:32:21]MH_I2C_Read... [13:32:21]*** Stop cut motor [13:32:21]*** Cut end [13:32:21]Read from MH i2c: 01 07 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: 01 07 00 10 EF 00 00 00 00 00 FF 0F 14 [13:32:21]process_action close_receipt done [13:32:21]requested_data is exist [13:32:21]produce_requested_data [13:32:21]requested_item fm.sn is exist - process it [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 11 00 00 [13:32:21]Write to MH i2c: E2 08 00 11 EF 80 11 00 00 00 00 00 00 7A [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 17 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 17 00 11 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D2 [13:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:32:21]wFMCommunicate OK [13:32:21]requested_item fd.num is exist - process it [13:32:21]SAM_PROTO_GetFieldsCounters [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 13 00 00 [13:32:21]Write to MH i2c: E2 08 00 12 EF 80 13 00 00 00 00 00 00 7D [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 62 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 62 00 12 EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 87 02 00 0E 04 04 00 16 02 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 90 [13:32: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 87 02 00 0E 04 04 00 16 02 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:32:21]wFMCommunicate OK [13:32:21]SAM_PROTO_GetFieldsCounters done [13:32:21]requested_item shift.num is exist - process it [13:32:21]requested_item shift.opened is exist - process it [13:32:21]req_shift_opened [13:32:21]FM_GetShiftState [13:32:21]SAM_PROTO_GetShiftState [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 13 01 00 [13:32:21]Write to MH i2c: E2 08 00 13 EF 80 13 01 00 00 00 00 00 7F [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 0E 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 0E 00 13 EF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C7 [13:32:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:32:21]wFMCommunicate OK [13:32:21]SAM_PROTO_GetShiftState done [13:32:21]FM_GetShiftState done [13:32:21]req_shift_opened done [13:32:21]requested_item shift.open_date is exist - process it [13:32:21]req_shift_open_date [13:32:21]req_shift_open_date done [13:32:21]produce_requested_data done [13:32:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165693,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:32:21]process_action_free close_receipt [13:32:21]json_value_free [13:32:21]json_value_free done [13:32:21]process_json_proto returns [13:32:21]Send response to host [13:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165693,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:32:21]free response buf [13:32:21]execute_script done [13:32:21]execute_script returns [13:32:21]free content buf [13:32:21]Sock 7.Close socket [13:32:21]Sock 7.Thread stoped [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:06]accept exits with 10 [13:34:06]New connection [13:34:06]New thread 3066776932 created [13:34:06]Thread 3066920292 joined [13:34:06]Waiting for new connection... [13:34:06] Sock 10.Parse request [13:34:06]Sock 10.Check first char [13:34:06]Sock 10.First char is OK [13:34:06]request: POST /json_proto HTTP/1.0 [13:34:06]Method: POST [13:34:06]URL: /json_proto [13:34:06]Method is POST - this is cgi request [13:34:06]url: /json_proto [13:34:06]query_string will be loaded in cgi processing [13:34:06]execute_cgi json_proto POST (null) [13:34:06]execute_cgi path=json_proto method=POST [13:34:06]POST find Content-Length [13:34:06]Host: 172.17.53.195:8080 [13:34:06]Content-Length: 769 [13:34:06]Content-Type: application/json [13:34:06] [13:34:06]POST finish read [13:34:06]Found Content-Length = 769 [13:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.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: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:06]execute_script... [13:34: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)220258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.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: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:06]POST & json_proto [13:34:06]process_json_proto [13:34:06]json parsed OK: [13:34:06]protocol is kg_v1.0 [13:34:06]action value=close_receipt [13:34:06]process_action close_receipt [13:34:06]cmd_close_receipt [13:34:06]MH_GetDate [13:34:06]Write to MH i2c: F0 00 00 14 EF F2 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: F0 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: F0 09 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: F0 09 00 14 EF 00 DB 06 15 67 21 48 4A 65 70 [13:34:06]GetLastDocTimeStamp 1729431149 [13:34:06]current date 1729431259 [13:34:06]FM_GetShiftState [13:34:06]SAM_PROTO_GetShiftState [13:34:06]wFMCommunicate request_size=4 [13:34:06]MH_SAM_APDU [13:34:06]CAPDU: 80 13 01 00 [13:34:06]Write to MH i2c: E2 08 00 15 EF 80 13 01 00 00 00 00 00 81 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:06]Read from MH i2c: E2 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 0E 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 0E 00 15 EF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C9 [13:34:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:34:06]wFMCommunicate OK [13:34:06]SAM_PROTO_GetShiftState done [13:34:06]FM_GetShiftState done [13:34:06]opened in 1729384561 [13:34:06]opened+sec_in_day 1729470961 [13:34:06]quantity*price = 150056 [13:34:06]sum+1 = 150058 [13:34:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 176 20.10.2024 13:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165694 ФПД: 166115168436003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133419&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165694&fm=166115168436003&tin=02508201610067®Number=0000000000091764&sum=150057 [13:34:07]StoreToDocumentArchive [13:34:07]shift 534 fd 165694 [13:34:07]save to /storage/0534/doc_00165694 [13:34:07]save last doc name /storage/0534/doc_00165694 to /storage/kkm_last_doc_name [13:34:07]save OK [13:34:07]Clear old archive folders... [13:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:07]tlvbuf is 0190C2B0 [13:34:07]SAM_PROTO_ClearQueue [13:34:07]wFMCommunicate request_size=4 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 09 00 00 [13:34:07]Write to MH i2c: E2 08 00 22 EF 80 09 00 00 00 00 00 00 83 [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 22 EF 00 90 00 85 [13:34:07]RAPDU: 90 00 [13:34:07]wFMCommunicate OK [13:34:07]SAM_PROTO_ClearQueue done [13:34:07]KKMCreateOFDPacket [13:34:07]OFDProtocolAddRootSTLVToBuf [13:34:07]FM_MakeSignedData [13:34:07]FM_MakeSignedData [13:34:07]SAM_PROTO_SignData [13:34:07]wFMCommunicate request_size=4 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 0D 01 02 [13:34:07]Write to MH i2c: E2 08 00 23 EF 80 0D 01 02 00 00 00 00 8B [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 23 EF 00 90 00 86 [13:34:07]RAPDU: 90 00 [13:34:07]wFMCommunicate OK [13:34:07]wFMCommunicate request_size=255 [13:34:07]MH_SAM_APDU [13:34: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DB 06 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 87 02 00 35 04 06 00 97 [13:34:07]Write to MH i2c: E2 02 01 24 EF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DB 06 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 87 02 00 35 04 06 00 97 00 00 61 [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:08]Read from MH i2c: E2 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 03 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 03 00 24 EF 00 90 00 87 [13:34:08]RAPDU: 90 00 [13:34:08]wFMCommunicate OK [13:34:08]wFMCommunicate request_size=10 [13:34:08]MH_SAM_APDU [13:34:08]CAPDU: 80 0D 02 02 05 14 B3 9B 3F 23 [13:34:08]Write to MH i2c: E2 0D 00 25 EF 80 0D 02 02 05 00 14 B3 9B 3F 23 00 00 5C [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:08]Read from MH i2c: E2 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 03 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 03 00 25 EF 00 90 00 88 [13:34:08]RAPDU: 90 00 [13:34:08]wFMCommunicate OK [13:34:08]wFMCommunicate request_size=4 [13:34:08]MH_SAM_APDU [13:34:08]CAPDU: 80 0D 03 02 [13:34:08]Write to MH i2c: E2 08 00 26 EF 80 0D 03 02 00 00 00 00 90 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:08]Read from MH i2c: E2 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 0B 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 0B 00 26 EF 00 82 70 87 F8 FF 78 E7 09 90 00 69 [13:34:08]RAPDU: 82 70 87 F8 FF 78 E7 09 90 00 [13:34:08]wFMCommunicate OK [13:34:08]SAM_PROTO_SignData done [13:34:08]FM_MakeSignedData done [13:34:08]CreateOFDProtocolMessage [13:34:08]wFMCommunicate request_size=4 [13:34:08]MH_SAM_APDU [13:34:08]CAPDU: 80 11 00 00 [13:34:08]Write to MH i2c: E2 08 00 27 EF 80 11 00 00 00 00 00 00 90 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:08]Read from MH i2c: E2 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 17 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 17 00 27 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [13:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:34:08]wFMCommunicate OK [13:34:08]CreateOFDProtocolMessage done [13:34:08]OFDSenderStorePacket 165694 [13:34:08]StoreOFDPacket docnum=165694 [13:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 99 B8 07 01 0A F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DB 06 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 87 02 00 35 04 06 00 97 14 B3 9B 3F 23 82 70 87 F8 FF 78 E7 09 [13:34:08]CheckFolder [13:34:08]dirname=/storage/ofd_packets [13:34:08]CheckFolder done [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00165694 [13:34:08]NVStorageSaveData ofd_packets/00165694 [13:34:08]File name is /storage/ofd_packets/00165694 [13:34:08]Write 301 bytes [13:34:08]NVStorageSaveData done [13:34:08]OFDSenderStorePacket done [13:34:08]KKMCreateOFDPacket done [13:34:08]NVStorageSaveData kkm_last_timestamp [13:34:08]File name is /storage/kkm_last_timestamp [13:34:08]Write 4 bytes [13:34:08]NVStorageSaveData done [13:34:08]ExternCall_PrintAddStr [13:34:08]wPrintStart [13:34:08]Write to MH i2c: 01 00 00 28 EF 17 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 07 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 07 00 28 EF 00 00 00 00 00 FF 0F 2C [13:34:08]RasterBufferAndPrint [13:34:08]line Счет N : (1)220258 [13:34:08]line ИНН: 02508201610067 [13:34:08]line Контрольно-Кассовый Чек [13:34:08]line ПРОДАЖА [13:34:08]line ТРК (МРК, ГНК) : 13 [13:34:08]line Товар: 2710124130 [13:34:08]line Аи-92-К-5 [13:34:08]line 22.430 * 66.90 [13:34:08]line = 1500.57 [13:34:08]line НДС 12% НСП 1% [13:34:08]line > о реализуемом товаре [13:34:08]line ИТОГО: 1500.57 [13:34:08]line НСП 1% : 13.28 [13:34:08]line НДС 12% : 159.35 [13:34:08]line Наличными: 0.00 [13:34:08]line Безнал.: 1500.57 [13:34:08]line Место: АЗС № 161 "Партнер Нефть" [13:34:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:34:08]line СНО: Общий режим [13:34:08]line Чек 176 20.10.2024 13:34 [13:34:08]line Смена: 534 ФФД: 1.0 [13:34:08]line ЗНМ: 0300000104 [13:34:08]line РНМ: 0000000000091764 [13:34:08]line Версия ККМ: 001 [13:34:08]line Платежная система: Mbank [13:34:08]line ФМ: 0000000000871759 [13:34:08]line ФД: 165694 [13:34:08]line ФПД: 166115168436003 [13:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133419&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165694&fm=166115168436003&tin=02508201610067®Number=0000000000091764&sum=150057 [13:34:08]written 0, free lines is 4095 [13:34:08]OFD Sender: Processing packet 165694 [packets to send 48, broken 47] [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00165694 [13:34:08]OFD Sender: To server: pG, [13:34:08]CommunicateWithHost lk.salyk.kg:30040 [13:34:08]ConnectInit lk.salyk.kg [13:34:08]Connected sock=11 [13:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 99 B8 07 01 0A F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DB 06 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 87 02 00 35 04 06 00 97 14 B3 9B 3F 23 82 70 87 F8 FF 78 E7 09 [13:34:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 78 F6 47 00 37 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 31 37 35 39 10 04 04 00 3E 87 02 00 F4 03 04 00 4C AD 14 67 B6 04 01 00 00 8F 79 94 01 BB CA 18 3C [13:34:08]CommunicateWithHost err = 0 [13:34:08]CheckOFDResponse [13:34:08]1017 (14) - 77093643461234 [13:34:08]1041 (16) - 0000000000871759 [13:34:08]1040 (4) - 165694 [13:34:08]1012 (4) - 20.10.2024 07:12 [13:34:08]1206 (1) - 0 [13:34:08]OFD Sender: Remove packet 165694 [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00165694 [13:34:08]NVStorageDeleteData [13:34:08]Write to MH i2c: 01 00 00 51 EF 40 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 07 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 07 00 51 EF 00 00 00 00 00 F8 0C 4B [13:34:08]RasterBufferAndPrint [13:34:08]line [13:34:08]line [13:34:08]line [13:34:08]line [13:34:08]line [13:34:08]written 0, free lines is 3326 [13:34:08]MH_Cut [13:34:08]Write to MH i2c: D1 01 00 58 EF 01 19 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: D1 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: D1 01 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: D1 01 00 58 EF 00 18 [13:34:08]Write to MH i2c: 01 00 00 59 EF 48 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:09]OFD Sender: No OFD packet to send [13:34:09]*** Cut start [13:34:09]*** Partial cut [13:34:09]*** CUTSNS_PIN = 1 [13:34:09]*** CUTSNS_PIN = 0 [13:34:09]*** Brake cut motor [13:34:10]Read from MH i2c: 01 [13:34:10]MH_I2C_Read... [13:34:10]*** Stop cut motor [13:34:10]*** Cut end [13:34:10]Read from MH i2c: 01 07 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: 01 07 00 59 EF 00 00 00 00 00 FF 0F 5D [13:34:10]process_action close_receipt done [13:34:10]requested_data is exist [13:34:10]produce_requested_data [13:34:10]requested_item fm.sn is exist - process it [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 11 00 00 [13:34:10]Write to MH i2c: E2 08 00 5A EF 80 11 00 00 00 00 00 00 C3 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 17 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 17 00 5A EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1B [13:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:34:10]wFMCommunicate OK [13:34:10]requested_item fd.num is exist - process it [13:34:10]SAM_PROTO_GetFieldsCounters [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 13 00 00 [13:34:10]Write to MH i2c: E2 08 00 5B EF 80 13 00 00 00 00 00 00 C6 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 62 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 62 00 5B EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 87 02 00 0E 04 04 00 16 02 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 DD [13:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 87 02 00 0E 04 04 00 16 02 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:34:10]wFMCommunicate OK [13:34:10]SAM_PROTO_GetFieldsCounters done [13:34:10]requested_item shift.num is exist - process it [13:34:10]requested_item shift.opened is exist - process it [13:34:10]req_shift_opened [13:34:10]FM_GetShiftState [13:34:10]SAM_PROTO_GetShiftState [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 13 01 00 [13:34:10]Write to MH i2c: E2 08 00 5C EF 80 13 01 00 00 00 00 00 C8 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 0E 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 0E 00 5C EF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 10 [13:34:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:34:10]wFMCommunicate OK [13:34:10]SAM_PROTO_GetShiftState done [13:34:10]FM_GetShiftState done [13:34:10]req_shift_opened done [13:34:10]requested_item shift.open_date is exist - process it [13:34:10]req_shift_open_date [13:34:10]req_shift_open_date done [13:34:10]produce_requested_data done [13:34:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165694,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:34:10]process_action_free close_receipt [13:34:10]json_value_free [13:34:10]json_value_free done [13:34:10]process_json_proto returns [13:34:10]Send response to host [13:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165694,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:34:10]free response buf [13:34:10]execute_script done [13:34:10]execute_script returns [13:34:10]free content buf [13:34:10]Sock 10.Close socket [13:34:10]Sock 10.Thread stoped [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:11]accept exits with 7 [13:36:11]New connection [13:36:11]New thread 3066920292 created [13:36:11]Thread 3066776932 joined [13:36:12]Waiting for new connection... [13:36:12] Sock 7.Parse request [13:36:12]Sock 7.Check first char [13:36:12]Sock 7.First char is OK [13:36:12]request: POST /json_proto HTTP/1.0 [13:36:12]Method: POST [13:36:12]URL: /json_proto [13:36:12]Method is POST - this is cgi request [13:36:12]url: /json_proto [13:36:12]query_string will be loaded in cgi processing [13:36:12]execute_cgi json_proto POST (null) [13:36:12]execute_cgi path=json_proto method=POST [13:36:12]POST find Content-Length [13:36:12]Host: 172.17.53.195:8080 [13:36:12]Content-Length: 682 [13:36:12]Content-Type: application/json [13:36:12] [13:36:12]POST finish read [13:36:12]Found Content-Length = 682 [13:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:12]execute_script... [13:36: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)220259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:12]POST & json_proto [13:36:12]process_json_proto [13:36:12]json parsed OK: [13:36:12]protocol is kg_v1.0 [13:36:12]action value=close_receipt [13:36:12]process_action close_receipt [13:36:12]cmd_close_receipt [13:36:12]MH_GetDate [13:36:12]Write to MH i2c: F0 00 00 5D EF 3B [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 09 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 09 00 5D EF 00 58 07 15 67 21 48 4A 65 37 [13:36:12]GetLastDocTimeStamp 1729431259 [13:36:12]current date 1729431384 [13:36:12]FM_GetShiftState [13:36:12]SAM_PROTO_GetShiftState [13:36:12]wFMCommunicate request_size=4 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 13 01 00 [13:36:12]Write to MH i2c: E2 08 00 5E EF 80 13 01 00 00 00 00 00 CA [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0E 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0E 00 5E EF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 12 [13:36:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:36:12]wFMCommunicate OK [13:36:12]SAM_PROTO_GetShiftState done [13:36:12]FM_GetShiftState done [13:36:12]opened in 1729384561 [13:36:12]opened+sec_in_day 1729470961 [13:36:12]quantity*price = 100021 [13:36:12]sum+1 = 100023 [13:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 177 20.10.2024 13:36 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165695 ФПД: 147191652804886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133624&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165695&fm=147191652804886&tin=02508201610067®Number=0000000000091764&sum=100000 [13:36:13]StoreToDocumentArchive [13:36:13]shift 534 fd 165695 [13:36:13]save to /storage/0534/doc_00165695 [13:36:13]save last doc name /storage/0534/doc_00165695 to /storage/kkm_last_doc_name [13:36:13]save OK [13:36:13]Clear old archive folders... [13:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:13]tlvbuf is 018B0570 [13:36:13]SAM_PROTO_ClearQueue [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 09 00 00 [13:36:13]Write to MH i2c: E2 08 00 6B EF 80 09 00 00 00 00 00 00 CC [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 6B EF 00 90 00 CE [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]SAM_PROTO_ClearQueue done [13:36:13]KKMCreateOFDPacket [13:36:13]OFDProtocolAddRootSTLVToBuf [13:36:13]FM_MakeSignedData [13:36:13]FM_MakeSignedData [13:36:13]SAM_PROTO_SignData [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 0D 01 02 [13:36:13]Write to MH i2c: E2 08 00 6C EF 80 0D 01 02 00 00 00 00 D4 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 6C EF 00 90 00 CF [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]wFMCommunicate request_size=255 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 58 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 87 02 00 35 04 06 00 85 [13:36:13]Write to MH i2c: E2 02 01 6D EF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 58 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 87 02 00 35 04 06 00 85 00 00 78 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 6D EF 00 90 00 D0 [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]wFMCommunicate request_size=10 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 0D 02 02 05 DE BA 2D E9 16 [13:36:13]Write to MH i2c: E2 0D 00 6E EF 80 0D 02 02 05 00 DE BA 2D E9 16 00 00 A5 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 6E EF 00 90 00 D1 [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 0D 03 02 [13:36:13]Write to MH i2c: E2 08 00 6F EF 80 0D 03 02 00 00 00 00 D9 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 0B 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 0B 00 6F EF 00 30 3A 1C 2E B0 57 E7 EE 90 00 6A [13:36:13]RAPDU: 30 3A 1C 2E B0 57 E7 EE 90 00 [13:36:13]wFMCommunicate OK [13:36:13]SAM_PROTO_SignData done [13:36:13]FM_MakeSignedData done [13:36:13]CreateOFDProtocolMessage [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 11 00 00 [13:36:13]Write to MH i2c: E2 08 00 70 EF 80 11 00 00 00 00 00 00 D9 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 17 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 17 00 70 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 31 [13:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:36:13]wFMCommunicate OK [13:36:13]CreateOFDProtocolMessage done [13:36:13]OFDSenderStorePacket 165695 [13:36:13]StoreOFDPacket docnum=165695 [13:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 68 07 01 E8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 58 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 87 02 00 35 04 06 00 85 DE BA 2D E9 16 30 3A 1C 2E B0 57 E7 EE [13:36:13]CheckFolder [13:36:13]dirname=/storage/ofd_packets [13:36:13]CheckFolder done [13:36:13]ProducePacketName [13:36:13]name=ofd_packets/00165695 [13:36:13]NVStorageSaveData ofd_packets/00165695 [13:36:13]File name is /storage/ofd_packets/00165695 [13:36:13]Write 301 bytes [13:36:13]NVStorageSaveData done [13:36:13]OFDSenderStorePacket done [13:36:13]KKMCreateOFDPacket done [13:36:13]NVStorageSaveData kkm_last_timestamp [13:36:13]File name is /storage/kkm_last_timestamp [13:36:13]Write 4 bytes [13:36:13]NVStorageSaveData done [13:36:13]ExternCall_PrintAddStr [13:36:13]wPrintStart [13:36:13]Write to MH i2c: 01 00 00 71 EF 60 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 07 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 07 00 71 EF 00 00 00 00 00 FF 0F 75 [13:36:13]RasterBufferAndPrint [13:36:13]line Счет N : (1)220259 [13:36:13]line ИНН: 02508201610067 [13:36:13]line Контрольно-Кассовый Чек [13:36:13]line ПРОДАЖА [13:36:13]line ТРК (МРК, ГНК) : 34 [13:36:13]line Товар: 2710124500 [13:36:13]line Аи-95-К-5 [13:36:13]line 13.480 * 74.20 [13:36:13]line = 1000.22 [13:36:13]line НДС 12% НСП 1% [13:36:13]line > о реализуемом товаре [13:36:13]line ОКРУГЛЕНИЕ: -0.22 [13:36:13]line ИТОГО: 1000.00 [13:36:13]line Внесено: 1000.00 [13:36:13]line СДАЧА: 0.00 [13:36:13]line НСП 1% : 8.85 [13:36:13]line НДС 12% : 106.22 [13:36:13]line Наличными: 1000.00 [13:36:13]line Безнал.: 0.00 [13:36:13]line Место: АЗС № 161 "Партнер Нефть" [13:36:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:36:13]line СНО: Общий режим [13:36:13]line Чек 177 20.10.2024 13:36 [13:36:13]line Смена: 534 ФФД: 1.0 [13:36:13]line ЗНМ: 0300000104 [13:36:13]line РНМ: 0000000000091764 [13:36:13]line Версия ККМ: 001 [13:36:13]line ФМ: 0000000000871759 [13:36:13]line ФД: 165695 [13:36:13]line ФПД: 147191652804886 [13:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133624&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165695&fm=147191652804886&tin=02508201610067®Number=0000000000091764&sum=100000 [13:36:14]OFD Sender: Processing packet 165695 [packets to send 48, broken 47] [13:36:14]ProducePacketName [13:36:14]name=ofd_packets/00165695 [13:36:14]OFD Sender: To server: pG, [13:36:14]CommunicateWithHost lk.salyk.kg:30040 [13:36:14]ConnectInit lk.salyk.kg [13:36:14]written 0, free lines is 4095 [13:36:14]Connected sock=10 [13:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 68 07 01 E8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 58 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 87 02 00 35 04 06 00 85 DE BA 2D E9 16 30 3A 1C 2E B0 57 E7 EE [13:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 10 92 47 00 20 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 87 02 00 F4 03 04 00 CA AD 14 67 B6 04 01 00 00 E0 F8 EA 77 12 05 EB DE [13:36:14]CommunicateWithHost err = 0 [13:36:14]CheckOFDResponse [13:36:14]1017 (14) - 77093643461234 [13:36:14]1041 (16) - 0000000000871759 [13:36:14]1040 (4) - 165695 [13:36:14]1012 (4) - 20.10.2024 07:14 [13:36:14]1206 (1) - 0 [13:36:14]OFD Sender: Remove packet 165695 [13:36:14]ProducePacketName [13:36:14]name=ofd_packets/00165695 [13:36:14]NVStorageDeleteData [13:36:14]Write to MH i2c: 01 00 00 9C EF 8B [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 9C EF 00 00 00 00 00 D1 0C 6F [13:36:14]RasterBufferAndPrint [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]written 0, free lines is 3288 [13:36:14]MH_Cut [13:36:14]Write to MH i2c: D1 01 00 A3 EF 01 64 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 01 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 01 00 A3 EF 00 63 [13:36:14]Write to MH i2c: 01 00 00 A4 EF 93 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]OFD Sender: No OFD packet to send [13:36:15]*** Cut start [13:36:15]*** Partial cut [13:36:15]*** CUTSNS_PIN = 1 [13:36:15]*** CUTSNS_PIN = 0 [13:36:15]*** Brake cut motor [13:36:15]Read from MH i2c: 01 [13:36:15]MH_I2C_Read... [13:36:15]*** Stop cut motor [13:36:15]*** Cut end [13:36:15]Read from MH i2c: 01 07 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 07 00 A4 EF 00 00 00 00 00 FF 0F A8 [13:36:15]process_action close_receipt done [13:36:15]requested_data is exist [13:36:15]produce_requested_data [13:36:15]requested_item fm.sn is exist - process it [13:36:15]wFMCommunicate request_size=4 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 11 00 00 [13:36:15]Write to MH i2c: E2 08 00 A5 EF 80 11 00 00 00 00 00 00 0E [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 17 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 17 00 A5 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 66 [13:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:36:16]wFMCommunicate OK [13:36:16]requested_item fd.num is exist - process it [13:36:16]SAM_PROTO_GetFieldsCounters [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 13 00 00 [13:36:16]Write to MH i2c: E2 08 00 A6 EF 80 13 00 00 00 00 00 00 11 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 62 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 62 00 A6 EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3F 87 02 00 0E 04 04 00 16 02 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 2C [13:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3F 87 02 00 0E 04 04 00 16 02 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:36:16]wFMCommunicate OK [13:36:16]SAM_PROTO_GetFieldsCounters done [13:36:16]requested_item shift.num is exist - process it [13:36:16]requested_item shift.opened is exist - process it [13:36:16]req_shift_opened [13:36:16]FM_GetShiftState [13:36:16]SAM_PROTO_GetShiftState [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 13 01 00 [13:36:16]Write to MH i2c: E2 08 00 A7 EF 80 13 01 00 00 00 00 00 13 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 0E 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 0E 00 A7 EF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5B [13:36:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:36:16]wFMCommunicate OK [13:36:16]SAM_PROTO_GetShiftState done [13:36:16]FM_GetShiftState done [13:36:16]req_shift_opened done [13:36:16]requested_item shift.open_date is exist - process it [13:36:16]req_shift_open_date [13:36:16]req_shift_open_date done [13:36:16]produce_requested_data done [13:36:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165695,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:36:16]process_action_free close_receipt [13:36:16]json_value_free [13:36:16]json_value_free done [13:36:16]process_json_proto returns [13:36:16]Send response to host [13:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165695,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:36:16]free response buf [13:36:16]execute_script done [13:36:16]execute_script returns [13:36:16]free content buf [13:36:16]Sock 7.Close socket [13:36:16]Sock 7.Thread stoped [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:30]accept exits with 9 [13:36:30]New connection [13:36:30]New thread 3066776932 created [13:36:30]Thread 3066920292 joined [13:36:30]Waiting for new connection... [13:36:30] Sock 9.Parse request [13:36:30]Sock 9.Check first char [13:36:30]Sock 9.First char is OK [13:36:30]request: POST /json_proto HTTP/1.0 [13:36:30]Method: POST [13:36:30]URL: /json_proto [13:36:30]Method is POST - this is cgi request [13:36:30]url: /json_proto [13:36:30]query_string will be loaded in cgi processing [13:36:30]execute_cgi json_proto POST (null) [13:36:30]execute_cgi path=json_proto method=POST [13:36:30]POST find Content-Length [13:36:30]Host: 172.17.53.195:8080 [13:36:30]Content-Length: 674 [13:36:30]Content-Type: application/json [13:36:30] [13:36:30]POST finish read [13:36:30]Found Content-Length = 674 [13:36:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:30]execute_script... [13:36:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:30]POST & json_proto [13:36:30]process_json_proto [13:36:30]json parsed OK: [13:36:30]protocol is kg_v1.0 [13:36:30]action value=close_receipt [13:36:30]process_action close_receipt [13:36:30]cmd_close_receipt [13:36:30]MH_GetDate [13:36:30]Write to MH i2c: F0 00 00 A8 EF 86 [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: F0 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: F0 09 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: F0 09 00 A8 EF 00 6A 07 15 67 21 48 4A 65 94 [13:36:30]GetLastDocTimeStamp 1729431384 [13:36:30]current date 1729431402 [13:36:30]FM_GetShiftState [13:36:30]SAM_PROTO_GetShiftState [13:36:30]wFMCommunicate request_size=4 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 13 01 00 [13:36:30]Write to MH i2c: E2 08 00 A9 EF 80 13 01 00 00 00 00 00 15 [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 0E 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 0E 00 A9 EF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5D [13:36:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:36:30]wFMCommunicate OK [13:36:30]SAM_PROTO_GetShiftState done [13:36:30]FM_GetShiftState done [13:36:30]opened in 1729384561 [13:36:30]opened+sec_in_day 1729470961 [13:36:30]quantity*price = 49987 [13:36:30]sum+1 = 49988 [13:36:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 178 20.10.2024 13:36 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165696 ФПД: 11150297570404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133642&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165696&fm=11150297570404&tin=02508201610067®Number=0000000000091764&sum=49900 [13:36:31]StoreToDocumentArchive [13:36:31]shift 534 fd 165696 [13:36:31]save to /storage/0534/doc_00165696 [13:36:31]save last doc name /storage/0534/doc_00165696 to /storage/kkm_last_doc_name [13:36:31]save OK [13:36:31]Clear old archive folders... [13:36:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:36:31]tlvbuf is 01599950 [13:36:31]SAM_PROTO_ClearQueue [13:36:31]wFMCommunicate request_size=4 [13:36:31]MH_SAM_APDU [13:36:31]CAPDU: 80 09 00 00 [13:36:31]Write to MH i2c: E2 08 00 B6 EF 80 09 00 00 00 00 00 00 17 [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:31]Read from MH i2c: E2 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 03 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 03 00 B6 EF 00 90 00 19 [13:36:31]RAPDU: 90 00 [13:36:31]wFMCommunicate OK [13:36:31]SAM_PROTO_ClearQueue done [13:36:31]KKMCreateOFDPacket [13:36:31]OFDProtocolAddRootSTLVToBuf [13:36:31]FM_MakeSignedData [13:36:31]FM_MakeSignedData [13:36:31]SAM_PROTO_SignData [13:36:31]wFMCommunicate request_size=4 [13:36:31]MH_SAM_APDU [13:36:31]CAPDU: 80 0D 01 02 [13:36:31]Write to MH i2c: E2 08 00 B7 EF 80 0D 01 02 00 00 00 00 1F [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:31]Read from MH i2c: E2 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 03 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 03 00 B7 EF 00 90 00 1A [13:36:31]RAPDU: 90 00 [13:36:31]wFMCommunicate OK [13:36:31]wFMCommunicate request_size=255 [13:36:31]MH_SAM_APDU [13:36: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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 6A 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 87 02 00 35 04 06 00 0A 24 21 86 [13:36:31]Write to MH i2c: E2 02 01 B8 EF 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 6A 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 87 02 00 35 04 06 00 0A 24 21 86 00 00 5F [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:31]Read from MH i2c: E2 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 03 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 03 00 B8 EF 00 90 00 1B [13:36:31]RAPDU: 90 00 [13:36:31]wFMCommunicate OK [13:36:31]wFMCommunicate request_size=7 [13:36:31]MH_SAM_APDU [13:36:31]CAPDU: 80 0D 02 02 02 9C 64 [13:36:31]Write to MH i2c: E2 0A 00 B9 EF 80 0D 02 02 02 00 9C 64 00 00 26 [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:31]Read from MH i2c: E2 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 03 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 03 00 B9 EF 00 90 00 1C [13:36:31]RAPDU: 90 00 [13:36:31]wFMCommunicate OK [13:36:31]wFMCommunicate request_size=4 [13:36:31]MH_SAM_APDU [13:36:31]CAPDU: 80 0D 03 02 [13:36:31]Write to MH i2c: E2 08 00 BA EF 80 0D 03 02 00 00 00 00 24 [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:31]Read from MH i2c: E2 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 0B 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 0B 00 BA EF 00 6C AC 6A 09 0B 36 44 ED 90 00 22 [13:36:31]RAPDU: 6C AC 6A 09 0B 36 44 ED 90 00 [13:36:31]wFMCommunicate OK [13:36:31]SAM_PROTO_SignData done [13:36:31]FM_MakeSignedData done [13:36:31]CreateOFDProtocolMessage [13:36:31]wFMCommunicate request_size=4 [13:36:31]MH_SAM_APDU [13:36:31]CAPDU: 80 11 00 00 [13:36:31]Write to MH i2c: E2 08 00 BB EF 80 11 00 00 00 00 00 00 24 [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:31]Read from MH i2c: E2 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 17 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: E2 17 00 BB EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7C [13:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:36:31]wFMCommunicate OK [13:36:31]CreateOFDProtocolMessage done [13:36:31]OFDSenderStorePacket 165696 [13:36:31]StoreOFDPacket docnum=165696 [13:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 08 04 04 01 A4 A0 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 6A 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 87 02 00 35 04 06 00 0A 24 21 86 9C 64 6C AC 6A 09 0B 36 44 ED [13:36:31]CheckFolder [13:36:31]dirname=/storage/ofd_packets [13:36:31]CheckFolder done [13:36:31]ProducePacketName [13:36:31]name=ofd_packets/00165696 [13:36:31]NVStorageSaveData ofd_packets/00165696 [13:36:31]File name is /storage/ofd_packets/00165696 [13:36:31]Write 298 bytes [13:36:31]NVStorageSaveData done [13:36:31]OFDSenderStorePacket done [13:36:31]KKMCreateOFDPacket done [13:36:31]NVStorageSaveData kkm_last_timestamp [13:36:31]File name is /storage/kkm_last_timestamp [13:36:31]Write 4 bytes [13:36:31]NVStorageSaveData done [13:36:31]ExternCall_PrintAddStr [13:36:31]wPrintStart [13:36:31]Write to MH i2c: 01 00 00 BC EF AB [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: 01 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: 01 07 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: 01 07 00 BC EF 00 00 00 00 00 FF 0F C0 [13:36:31]RasterBufferAndPrint [13:36:31]line Счет N : (1)220260 [13:36:31]line ИНН: 02508201610067 [13:36:31]line Контрольно-Кассовый Чек [13:36:31]line ПРОДАЖА [13:36:31]line ТРК (МРК, ГНК) : 41 [13:36:31]line Товар: 2710194210 [13:36:31]line ДТ-К-5 [13:36:31]line 6.560 * 76.20 [13:36:31]line = 499.87 [13:36:31]line НДС 12% НСП 1% [13:36:31]line > о реализуемом товаре [13:36:31]line ОКРУГЛЕНИЕ: -0.87 [13:36:31]line ИТОГО: 499.00 [13:36:31]line Внесено: 500.00 [13:36:31]line СДАЧА: 1.00 [13:36:31]line НСП 1% : 4.42 [13:36:31]line НДС 12% : 53.08 [13:36:31]line Наличными: 499.00 [13:36:31]line Безнал.: 0.00 [13:36:31]line Место: АЗС № 161 "Партнер Нефть" [13:36:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:36:31]line СНО: Общий режим [13:36:31]line Чек 178 20.10.2024 13:36 [13:36:31]line Смена: 534 ФФД: 1.0 [13:36:31]line ЗНМ: 0300000104 [13:36:31]line РНМ: 0000000000091764 [13:36:31]line Версия ККМ: 001 [13:36:31]line ФМ: 0000000000871759 [13:36:31]line ФД: 165696 [13:36:31]line ФПД: 11150297570404 [13:36:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133642&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165696&fm=11150297570404&tin=02508201610067®Number=0000000000091764&sum=49900 [13:36:32]OFD Sender: Processing packet 165696 [packets to send 48, broken 47] [13:36:32]ProducePacketName [13:36:32]name=ofd_packets/00165696 [13:36:32]OFD Sender: To server: pG, [13:36:32]CommunicateWithHost lk.salyk.kg:30040 [13:36:32]ConnectInit lk.salyk.kg [13:36:32]written 0, free lines is 4095 [13:36:32]Connected sock=10 [13:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 08 04 04 01 A4 A0 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 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BC 14 00 00 00 00 07 04 06 00 EC C2 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 6A 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 87 02 00 35 04 06 00 0A 24 21 86 9C 64 6C AC 6A 09 0B 36 44 ED [13:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 31 EF 47 00 18 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 31 37 35 39 10 04 04 00 40 87 02 00 F4 03 04 00 DC AD 14 67 B6 04 01 00 00 06 29 12 F1 21 F0 27 0D [13:36:32]CommunicateWithHost err = 0 [13:36:32]CheckOFDResponse [13:36:32]1017 (14) - 77093643461234 [13:36:32]1041 (16) - 0000000000871759 [13:36:32]1040 (4) - 165696 [13:36:32]1012 (4) - 20.10.2024 07:14 [13:36:32]1206 (1) - 0 [13:36:32]OFD Sender: Remove packet 165696 [13:36:32]ProducePacketName [13:36:32]name=ofd_packets/00165696 [13:36:32]NVStorageDeleteData [13:36:32]Write to MH i2c: 01 00 00 E7 EF D6 [13:36:32]Write i2c OK [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: 01 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: 01 07 00 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: 01 07 00 E7 EF 00 00 00 00 00 C8 0C B1 [13:36:32]RasterBufferAndPrint [13:36:32]line [13:36:32]line [13:36:32]line [13:36:32]line [13:36:32]line [13:36:32]written 0, free lines is 3278 [13:36:32]MH_Cut [13:36:32]Write to MH i2c: D1 01 00 EE EF 01 AF [13:36:32]Write i2c OK [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: D1 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: D1 01 00 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: D1 01 00 EE EF 00 AE [13:36:32]Write to MH i2c: 01 00 00 EF EF DE [13:36:32]Write i2c OK [13:36:32]MH_I2C_Read... [13:36:33]OFD Sender: No OFD packet to send [13:36:33]*** Cut start [13:36:33]*** Partial cut [13:36:33]*** CUTSNS_PIN = 1 [13:36:33]*** CUTSNS_PIN = 0 [13:36:33]*** Brake cut motor [13:36:34]Read from MH i2c: 01 [13:36:34]MH_I2C_Read... [13:36:34]*** Stop cut motor [13:36:34]*** Cut end [13:36:34]Read from MH i2c: 01 07 00 [13:36:34]MH_I2C_Read... [13:36:34]Read from MH i2c: 01 07 00 EF EF 00 00 00 00 00 FF 0F F3 [13:36:34]process_action close_receipt done [13:36:34]requested_data is exist [13:36:34]produce_requested_data [13:36:34]requested_item fm.sn is exist - process it [13:36:34]wFMCommunicate request_size=4 [13:36:34]MH_SAM_APDU [13:36:34]CAPDU: 80 11 00 00 [13:36:34]Write to MH i2c: E2 08 00 F0 EF 80 11 00 00 00 00 00 00 59 [13:36:34]Write i2c OK [13:36:34]MH_I2C_Read... [13:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:34]Read from MH i2c: E2 [13:36:34]MH_I2C_Read... [13:36:34]Read from MH i2c: E2 17 00 [13:36:34]MH_I2C_Read... [13:36:34]Read from MH i2c: E2 17 00 F0 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [13:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:36:34]wFMCommunicate OK [13:36:34]requested_item fd.num is exist - process it [13:36:34]SAM_PROTO_GetFieldsCounters [13:36:34]wFMCommunicate request_size=4 [13:36:34]MH_SAM_APDU [13:36:34]CAPDU: 80 13 00 00 [13:36:34]Write to MH i2c: E2 08 00 F1 EF 80 13 00 00 00 00 00 00 5C [13:36:34]Write i2c OK [13:36:34]MH_I2C_Read... [13:36:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:34]Read from MH i2c: E2 [13:36:34]MH_I2C_Read... [13:36:34]Read from MH i2c: E2 62 00 [13:36:34]MH_I2C_Read... [13:36:34]Read from MH i2c: E2 62 00 F1 EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 40 87 02 00 0E 04 04 00 16 02 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 7B [13:36: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 40 87 02 00 0E 04 04 00 16 02 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:36:34]wFMCommunicate OK [13:36:34]SAM_PROTO_GetFieldsCounters done [13:36:34]requested_item shift.num is exist - process it [13:36:34]requested_item shift.opened is exist - process it [13:36:34]req_shift_opened [13:36:34]FM_GetShiftState [13:36:34]SAM_PROTO_GetShiftState [13:36:34]wFMCommunicate request_size=4 [13:36:34]MH_SAM_APDU [13:36:34]CAPDU: 80 13 01 00 [13:36:34]Write to MH i2c: E2 08 00 F2 EF 80 13 01 00 00 00 00 00 5E [13:36:34]Write i2c OK [13:36:34]MH_I2C_Read... [13:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:34]Read from MH i2c: E2 [13:36:34]MH_I2C_Read... [13:36:34]Read from MH i2c: E2 0E 00 [13:36:34]MH_I2C_Read... [13:36:34]Read from MH i2c: E2 0E 00 F2 EF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A6 [13:36:34]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:36:34]wFMCommunicate OK [13:36:34]SAM_PROTO_GetShiftState done [13:36:34]FM_GetShiftState done [13:36:34]req_shift_opened done [13:36:34]requested_item shift.open_date is exist - process it [13:36:34]req_shift_open_date [13:36:34]req_shift_open_date done [13:36:34]produce_requested_data done [13:36:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165696,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:36:34]process_action_free close_receipt [13:36:34]json_value_free [13:36:34]json_value_free done [13:36:34]process_json_proto returns [13:36:34]Send response to host [13:36:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165696,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:36:34]free response buf [13:36:34]execute_script done [13:36:34]execute_script returns [13:36:34]free content buf [13:36:34]Sock 9.Close socket [13:36:34]Sock 9.Thread stoped [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:32]accept exits with 7 [13:37:32]New connection [13:37:32]New thread 3066920292 created [13:37:32]Thread 3066776932 joined [13:37:32]Waiting for new connection... [13:37:32] Sock 7.Parse request [13:37:32]Sock 7.Check first char [13:37:32]Sock 7.First char is OK [13:37:32]request: POST /json_proto HTTP/1.0 [13:37:32]Method: POST [13:37:32]URL: /json_proto [13:37:32]Method is POST - this is cgi request [13:37:32]url: /json_proto [13:37:32]query_string will be loaded in cgi processing [13:37:32]execute_cgi json_proto POST (null) [13:37:32]execute_cgi path=json_proto method=POST [13:37:32]POST find Content-Length [13:37:32]Host: 172.17.53.195:8080 [13:37:32]Content-Length: 677 [13:37:32]Content-Type: application/json [13:37:32] [13:37:32]POST finish read [13:37:32]Found Content-Length = 677 [13:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:32]execute_script... [13:37: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)220262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:32]POST & json_proto [13:37:32]process_json_proto [13:37:32]json parsed OK: [13:37:32]protocol is kg_v1.0 [13:37:32]action value=close_receipt [13:37:32]process_action close_receipt [13:37:32]cmd_close_receipt [13:37:32]MH_GetDate [13:37:32]Write to MH i2c: F0 00 00 F3 EF D1 [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: F0 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: F0 09 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: F0 09 00 F3 EF 00 A8 07 15 67 21 48 4A 65 1D [13:37:32]GetLastDocTimeStamp 1729431402 [13:37:32]current date 1729431464 [13:37:32]FM_GetShiftState [13:37:32]SAM_PROTO_GetShiftState [13:37:32]wFMCommunicate request_size=4 [13:37:32]MH_SAM_APDU [13:37:32]CAPDU: 80 13 01 00 [13:37:32]Write to MH i2c: E2 08 00 F4 EF 80 13 01 00 00 00 00 00 60 [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 0E 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 0E 00 F4 EF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A8 [13:37:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:37:32]wFMCommunicate OK [13:37:32]SAM_PROTO_GetShiftState done [13:37:32]FM_GetShiftState done [13:37:32]opened in 1729384561 [13:37:32]opened+sec_in_day 1729470961 [13:37:32]quantity*price = 60009 [13:37:32]sum+1 = 60010 [13:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 179 20.10.2024 13:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165697 ФПД: 215984191959920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133744&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165697&fm=215984191959920&tin=02508201610067®Number=0000000000091764&sum=60000 [13:37:33]StoreToDocumentArchive [13:37:33]shift 534 fd 165697 [13:37:33]save to /storage/0534/doc_00165697 [13:37:33]save last doc name /storage/0534/doc_00165697 to /storage/kkm_last_doc_name [13:37:33]save OK [13:37:33]Clear old archive folders... [13:37:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:33]tlvbuf is 0163F8D0 [13:37:33]SAM_PROTO_ClearQueue [13:37:33]wFMCommunicate request_size=4 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 09 00 00 [13:37:33]Write to MH i2c: E2 08 00 01 F0 80 09 00 00 00 00 00 00 63 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 01 F0 00 90 00 65 [13:37:33]RAPDU: 90 00 [13:37:33]wFMCommunicate OK [13:37:33]SAM_PROTO_ClearQueue done [13:37:33]KKMCreateOFDPacket [13:37:33]OFDProtocolAddRootSTLVToBuf [13:37:33]FM_MakeSignedData [13:37:33]FM_MakeSignedData [13:37:33]SAM_PROTO_SignData [13:37:33]wFMCommunicate request_size=4 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 0D 01 02 [13:37:33]Write to MH i2c: E2 08 00 02 F0 80 0D 01 02 00 00 00 00 6B [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 02 F0 00 90 00 66 [13:37:33]RAPDU: 90 00 [13:37:33]wFMCommunicate OK [13:37:33]wFMCommunicate request_size=255 [13:37:33]MH_SAM_APDU [13:37: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A8 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 87 02 00 35 04 06 00 C4 [13:37:33]Write to MH i2c: E2 02 01 03 F0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A8 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 87 02 00 35 04 06 00 C4 00 00 62 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 03 F0 00 90 00 67 [13:37:33]RAPDU: 90 00 [13:37:33]wFMCommunicate OK [13:37:33]wFMCommunicate request_size=10 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 0D 02 02 05 6F BD 09 F3 70 [13:37:33]Write to MH i2c: E2 0D 00 04 F0 80 0D 02 02 05 00 6F BD 09 F3 70 00 00 10 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 03 00 04 F0 00 90 00 68 [13:37:33]RAPDU: 90 00 [13:37:33]wFMCommunicate OK [13:37:33]wFMCommunicate request_size=4 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 0D 03 02 [13:37:33]Write to MH i2c: E2 08 00 05 F0 80 0D 03 02 00 00 00 00 70 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 0B 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 0B 00 05 F0 00 EA 35 43 15 E1 A0 8E 4B 90 00 42 [13:37:33]RAPDU: EA 35 43 15 E1 A0 8E 4B 90 00 [13:37:33]wFMCommunicate OK [13:37:33]SAM_PROTO_SignData done [13:37:33]FM_MakeSignedData done [13:37:33]CreateOFDProtocolMessage [13:37:33]wFMCommunicate request_size=4 [13:37:33]MH_SAM_APDU [13:37:33]CAPDU: 80 11 00 00 [13:37:33]Write to MH i2c: E2 08 00 06 F0 80 11 00 00 00 00 00 00 70 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:33]Read from MH i2c: E2 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 17 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: E2 17 00 06 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C8 [13:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:37:33]wFMCommunicate OK [13:37:33]CreateOFDProtocolMessage done [13:37:33]OFDSenderStorePacket 165697 [13:37:33]StoreOFDPacket docnum=165697 [13:37:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 28 0F 07 01 61 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A8 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 87 02 00 35 04 06 00 C4 6F BD 09 F3 70 EA 35 43 15 E1 A0 8E 4B [13:37:33]CheckFolder [13:37:33]dirname=/storage/ofd_packets [13:37:33]CheckFolder done [13:37:33]ProducePacketName [13:37:33]name=ofd_packets/00165697 [13:37:33]NVStorageSaveData ofd_packets/00165697 [13:37:33]File name is /storage/ofd_packets/00165697 [13:37:33]Write 301 bytes [13:37:33]NVStorageSaveData done [13:37:33]OFDSenderStorePacket done [13:37:33]KKMCreateOFDPacket done [13:37:33]NVStorageSaveData kkm_last_timestamp [13:37:33]File name is /storage/kkm_last_timestamp [13:37:33]Write 4 bytes [13:37:33]NVStorageSaveData done [13:37:33]ExternCall_PrintAddStr [13:37:33]wPrintStart [13:37:33]Write to MH i2c: 01 00 00 07 F0 F7 [13:37:33]Write i2c OK [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: 01 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: 01 07 00 [13:37:33]MH_I2C_Read... [13:37:33]Read from MH i2c: 01 07 00 07 F0 00 00 00 00 00 FF 0F 0C [13:37:33]RasterBufferAndPrint [13:37:33]line Счет N : (1)220262 [13:37:33]line ИНН: 02508201610067 [13:37:33]line Контрольно-Кассовый Чек [13:37:33]line ПРОДАЖА [13:37:33]line ТРК (МРК, ГНК) : 23 [13:37:33]line Товар: 2710124130 [13:37:33]line Аи-92-К-5 [13:37:33]line 8.970 * 66.90 [13:37:33]line = 600.09 [13:37:33]line НДС 12% НСП 1% [13:37:33]line > о реализуемом товаре [13:37:33]line ОКРУГЛЕНИЕ: -0.09 [13:37:33]line ИТОГО: 600.00 [13:37:33]line Внесено: 600.00 [13:37:33]line СДАЧА: 0.00 [13:37:33]line НСП 1% : 5.31 [13:37:33]line НДС 12% : 63.73 [13:37:33]line Наличными: 600.00 [13:37:33]line Безнал.: 0.00 [13:37:33]line Место: АЗС № 161 "Партнер Нефть" [13:37:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:37:33]line СНО: Общий режим [13:37:33]line Чек 179 20.10.2024 13:37 [13:37:33]line Смена: 534 ФФД: 1.0 [13:37:33]line ЗНМ: 0300000104 [13:37:33]line РНМ: 0000000000091764 [13:37:33]line Версия ККМ: 001 [13:37:33]line ФМ: 0000000000871759 [13:37:33]line ФД: 165697 [13:37:33]line ФПД: 215984191959920 [13:37:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133744&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165697&fm=215984191959920&tin=02508201610067®Number=0000000000091764&sum=60000 [13:37:34]OFD Sender: Processing packet 165697 [packets to send 48, broken 47] [13:37:34]ProducePacketName [13:37:34]name=ofd_packets/00165697 [13:37:34]OFD Sender: To server: pG, [13:37:34]CommunicateWithHost lk.salyk.kg:30040 [13:37:34]ConnectInit lk.salyk.kg [13:37:34]written 0, free lines is 4095 [13:37:34]Connected sock=11 [13:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 28 0F 07 01 61 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A8 07 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 87 02 00 35 04 06 00 C4 6F BD 09 F3 70 EA 35 43 15 E1 A0 8E 4B [13:37:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 34 E9 47 00 1C D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 87 02 00 F4 03 04 00 1A AE 14 67 B6 04 01 00 00 A9 CD 9C E3 A0 1C CD CD [13:37:34]CommunicateWithHost err = 0 [13:37:34]CheckOFDResponse [13:37:34]1017 (14) - 77093643461234 [13:37:34]1041 (16) - 0000000000871759 [13:37:34]1040 (4) - 165697 [13:37:34]1012 (4) - 20.10.2024 07:15 [13:37:34]1206 (1) - 0 [13:37:34]OFD Sender: Remove packet 165697 [13:37:34]ProducePacketName [13:37:34]name=ofd_packets/00165697 [13:37:34]NVStorageDeleteData [13:37:34]Write to MH i2c: 01 00 00 32 F0 22 [13:37:34]Write i2c OK [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: 01 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: 01 07 00 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: 01 07 00 32 F0 00 00 00 00 00 DA 0C 0F [13:37:34]RasterBufferAndPrint [13:37:34]line [13:37:34]line [13:37:34]line [13:37:34]line [13:37:34]line [13:37:34]written 0, free lines is 3297 [13:37:34]MH_Cut [13:37:34]Write to MH i2c: D1 01 00 39 F0 01 FB [13:37:34]Write i2c OK [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: D1 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: D1 01 00 [13:37:34]MH_I2C_Read... [13:37:34]Read from MH i2c: D1 01 00 39 F0 00 FA [13:37:34]Write to MH i2c: 01 00 00 3A F0 2A [13:37:34]Write i2c OK [13:37:34]MH_I2C_Read... [13:37:35]OFD Sender: No OFD packet to send [13:37:35]*** Cut start [13:37:35]*** Partial cut [13:37:35]*** CUTSNS_PIN = 1 [13:37:35]*** CUTSNS_PIN = 0 [13:37:35]*** Brake cut motor [13:37:36]Read from MH i2c: 01 [13:37:36]MH_I2C_Read... [13:37:36]*** Stop cut motor [13:37:36]*** Cut end [13:37:36]Read from MH i2c: 01 07 00 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: 01 07 00 3A F0 00 00 00 00 00 FF 0F 3F [13:37:36]process_action close_receipt done [13:37:36]requested_data is exist [13:37:36]produce_requested_data [13:37:36]requested_item fm.sn is exist - process it [13:37:36]wFMCommunicate request_size=4 [13:37:36]MH_SAM_APDU [13:37:36]CAPDU: 80 11 00 00 [13:37:36]Write to MH i2c: E2 08 00 3B F0 80 11 00 00 00 00 00 00 A5 [13:37:36]Write i2c OK [13:37:36]MH_I2C_Read... [13:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:36]Read from MH i2c: E2 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: E2 17 00 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: E2 17 00 3B F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [13:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:37:36]wFMCommunicate OK [13:37:36]requested_item fd.num is exist - process it [13:37:36]SAM_PROTO_GetFieldsCounters [13:37:36]wFMCommunicate request_size=4 [13:37:36]MH_SAM_APDU [13:37:36]CAPDU: 80 13 00 00 [13:37:36]Write to MH i2c: E2 08 00 3C F0 80 13 00 00 00 00 00 00 A8 [13:37:36]Write i2c OK [13:37:36]MH_I2C_Read... [13:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:36]Read from MH i2c: E2 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: E2 62 00 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: E2 62 00 3C F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 41 87 02 00 0E 04 04 00 16 02 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 CB [13:37: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 41 87 02 00 0E 04 04 00 16 02 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 [13:37:36]wFMCommunicate OK [13:37:36]SAM_PROTO_GetFieldsCounters done [13:37:36]requested_item shift.num is exist - process it [13:37:36]requested_item shift.opened is exist - process it [13:37:36]req_shift_opened [13:37:36]FM_GetShiftState [13:37:36]SAM_PROTO_GetShiftState [13:37:36]wFMCommunicate request_size=4 [13:37:36]MH_SAM_APDU [13:37:36]CAPDU: 80 13 01 00 [13:37:36]Write to MH i2c: E2 08 00 3D F0 80 13 01 00 00 00 00 00 AA [13:37:36]Write i2c OK [13:37:36]MH_I2C_Read... [13:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:36]Read from MH i2c: E2 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: E2 0E 00 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: E2 0E 00 3D F0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F2 [13:37:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:37:36]wFMCommunicate OK [13:37:36]SAM_PROTO_GetShiftState done [13:37:36]FM_GetShiftState done [13:37:36]req_shift_opened done [13:37:36]requested_item shift.open_date is exist - process it [13:37:36]req_shift_open_date [13:37:36]req_shift_open_date done [13:37:36]produce_requested_data done [13:37:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165697,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:37:36]process_action_free close_receipt [13:37:36]json_value_free [13:37:36]json_value_free done [13:37:36]process_json_proto returns [13:37:36]Send response to host [13:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165697,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:37:36]free response buf [13:37:36]execute_script done [13:37:36]execute_script returns [13:37:36]free content buf [13:37:36]Sock 7.Close socket [13:37:36]Sock 7.Thread stoped [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:40:56]accept exits with 9 [13:40:56]New connection [13:40:56]New thread 3066776932 created [13:40:56]Thread 3066920292 joined [13:40:56]Waiting for new connection... [13:40:56] Sock 9.Parse request [13:40:56]Sock 9.Check first char [13:40:56]Sock 9.First char is OK [13:40:56]request: POST /json_proto HTTP/1.0 [13:40:56]Method: POST [13:40:56]URL: /json_proto [13:40:56]Method is POST - this is cgi request [13:40:56]url: /json_proto [13:40:56]query_string will be loaded in cgi processing [13:40:56]execute_cgi json_proto POST (null) [13:40:56]execute_cgi path=json_proto method=POST [13:40:56]POST find Content-Length [13:40:56]Host: 172.17.53.195:8080 [13:40:56]Content-Length: 789 [13:40:56]Content-Type: application/json [13:40:56] [13:40:56]POST finish read [13:40:56]Found Content-Length = 789 [13:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220263", "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" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:56]execute_script... [13: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)220263", "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" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:56]POST & json_proto [13:40:56]process_json_proto [13:40:56]json parsed OK: [13:40:56]protocol is kg_v1.0 [13:40:56]action value=close_receipt [13:40:56]process_action close_receipt [13:40:56]cmd_close_receipt [13:40:56]MH_GetDate [13:40:56]Write to MH i2c: F0 00 00 3E F0 1D [13:40:56]Write i2c OK [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: F0 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: F0 09 00 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: F0 09 00 3E F0 00 75 08 15 67 21 48 4A 65 37 [13:40:56]GetLastDocTimeStamp 1729431464 [13:40:56]current date 1729431669 [13:40:56]FM_GetShiftState [13:40:56]SAM_PROTO_GetShiftState [13:40:56]wFMCommunicate request_size=4 [13:40:56]MH_SAM_APDU [13:40:56]CAPDU: 80 13 01 00 [13:40:56]Write to MH i2c: E2 08 00 3F F0 80 13 01 00 00 00 00 00 AC [13:40:56]Write i2c OK [13:40:56]MH_I2C_Read... [13:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:56]Read from MH i2c: E2 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 0E 00 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 0E 00 3F F0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F4 [13:40:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:40:56]wFMCommunicate OK [13:40:56]SAM_PROTO_GetShiftState done [13:40:56]FM_GetShiftState done [13:40:56]opened in 1729384561 [13:40:56]opened+sec_in_day 1729470961 [13:40:56]quantity*price = 0 [13:40:56]sum+1 = 1 [13:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 180 20.10.2024 13:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165698 ФПД: 73724232813883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134109&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165698&fm=73724232813883&tin=02508201610067®Number=0000000000091764&sum=0 [13:40:57]StoreToDocumentArchive [13:40:57]shift 534 fd 165698 [13:40:57]save to /storage/0534/doc_00165698 [13:40:57]save last doc name /storage/0534/doc_00165698 to /storage/kkm_last_doc_name [13:40:57]save OK [13:40:57]Clear old archive folders... [13:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:40:57]tlvbuf is 016C78F0 [13:40:57]SAM_PROTO_ClearQueue [13:40:57]wFMCommunicate request_size=4 [13:40:57]MH_SAM_APDU [13:40:57]CAPDU: 80 09 00 00 [13:40:57]Write to MH i2c: E2 08 00 4C F0 80 09 00 00 00 00 00 00 AE [13:40:57]Write i2c OK [13:40:57]MH_I2C_Read... [13:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:57]Read from MH i2c: E2 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 4C F0 00 90 00 B0 [13:40:57]RAPDU: 90 00 [13:40:57]wFMCommunicate OK [13:40:57]SAM_PROTO_ClearQueue done [13:40:57]KKMCreateOFDPacket [13:40:57]OFDProtocolAddRootSTLVToBuf [13:40:57]FM_MakeSignedData [13:40:57]FM_MakeSignedData [13:40:57]SAM_PROTO_SignData [13:40:57]wFMCommunicate request_size=4 [13:40:57]MH_SAM_APDU [13:40:57]CAPDU: 80 0D 01 02 [13:40:57]Write to MH i2c: E2 08 00 4D F0 80 0D 01 02 00 00 00 00 B6 [13:40:57]Write i2c OK [13:40:57]MH_I2C_Read... [13:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:57]Read from MH i2c: E2 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 4D F0 00 90 00 B1 [13:40:57]RAPDU: 90 00 [13:40:57]wFMCommunicate OK [13:40:57]wFMCommunicate request_size=255 [13:40:57]MH_SAM_APDU [13:40:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 75 08 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 87 02 00 35 04 06 00 43 0D 42 B5 [13:40:57]Write to MH i2c: E2 02 01 4E F0 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 75 08 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 87 02 00 35 04 06 00 43 0D 42 B5 00 00 5E [13:40:57]Write i2c OK [13:40:57]MH_I2C_Read... [13:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:58]Read from MH i2c: E2 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 03 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 03 00 4E F0 00 90 00 B2 [13:40:58]RAPDU: 90 00 [13:40:58]wFMCommunicate OK [13:40:58]wFMCommunicate request_size=7 [13:40:58]MH_SAM_APDU [13:40:58]CAPDU: 80 0D 02 02 02 4D 3B [13:40:58]Write to MH i2c: E2 0A 00 4F F0 80 0D 02 02 02 00 4D 3B 00 00 45 [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:58]Read from MH i2c: E2 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 03 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 03 00 4F F0 00 90 00 B3 [13:40:58]RAPDU: 90 00 [13:40:58]wFMCommunicate OK [13:40:58]wFMCommunicate request_size=4 [13:40:58]MH_SAM_APDU [13:40:58]CAPDU: 80 0D 03 02 [13:40:58]Write to MH i2c: E2 08 00 50 F0 80 0D 03 02 00 00 00 00 BB [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:58]Read from MH i2c: E2 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 0B 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 0B 00 50 F0 00 81 0D 5B 9B DC 0C B1 D4 90 00 AD [13:40:58]RAPDU: 81 0D 5B 9B DC 0C B1 D4 90 00 [13:40:58]wFMCommunicate OK [13:40:58]SAM_PROTO_SignData done [13:40:58]FM_MakeSignedData done [13:40:58]CreateOFDProtocolMessage [13:40:58]wFMCommunicate request_size=4 [13:40:58]MH_SAM_APDU [13:40:58]CAPDU: 80 11 00 00 [13:40:58]Write to MH i2c: E2 08 00 51 F0 80 11 00 00 00 00 00 00 BB [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:58]Read from MH i2c: E2 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 17 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 17 00 51 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [13:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:40:58]wFMCommunicate OK [13:40:58]CreateOFDProtocolMessage done [13:40:58]OFDSenderStorePacket 165698 [13:40:58]StoreOFDPacket docnum=165698 [13:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8F 7F 04 01 26 46 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 75 08 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 87 02 00 35 04 06 00 43 0D 42 B5 4D 3B 81 0D 5B 9B DC 0C B1 D4 [13:40:58]CheckFolder [13:40:58]dirname=/storage/ofd_packets [13:40:58]CheckFolder done [13:40:58]ProducePacketName [13:40:58]name=ofd_packets/00165698 [13:40:58]NVStorageSaveData ofd_packets/00165698 [13:40:58]File name is /storage/ofd_packets/00165698 [13:40:58]Write 298 bytes [13:40:58]NVStorageSaveData done [13:40:58]OFDSenderStorePacket done [13:40:58]KKMCreateOFDPacket done [13:40:58]NVStorageSaveData kkm_last_timestamp [13:40:58]File name is /storage/kkm_last_timestamp [13:40:58]Write 4 bytes [13:40:58]NVStorageSaveData done [13:40:58]ExternCall_PrintAddStr [13:40:58]wPrintStart [13:40:58]Write to MH i2c: 01 00 00 52 F0 42 [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 07 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 07 00 52 F0 00 00 00 00 00 FF 0F 57 [13:40:58]RasterBufferAndPrint [13:40:58]line Счет N : (1)220263 [13:40:58]line ИНН: 02508201610067 [13:40:58]line Контрольно-Кассовый Чек [13:40:58]line ПРОДАЖА [13:40:58]line ТРК (МРК, ГНК) : 21 [13:40:58]line Товар: 2710194210 [13:40:58]line ДТ-К-5 [13:40:58]line 39.380 * 0.00 [13:40:58]line = 0.00 [13:40:58]line НДС 12% НСП 1% [13:40:58]line > о реализуемом товаре [13:40:58]line ИТОГО: 0.00 [13:40:58]line НСП 1% : 0.00 [13:40:58]line НДС 12% : 0.00 [13:40:58]line Наличными: 0.00 [13:40:58]line Безнал.: 0.00 [13:40:58]line Место: АЗС № 161 "Партнер Нефть" [13:40:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:40:58]line СНО: Общий режим [13:40:58]line Чек 180 20.10.2024 13:41 [13:40:58]line Смена: 534 ФФД: 1.0 [13:40:58]line ЗНМ: 0300000104 [13:40:58]line РНМ: 0000000000091764 [13:40:58]line Версия ККМ: 001 [13:40:58]line Талоны: Топливная Карта [13:40:58]line 38866 [13:40:58]line ФМ: 0000000000871759 [13:40:58]line ФД: 165698 [13:40:58]line ФПД: 73724232813883 [13:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134109&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165698&fm=73724232813883&tin=02508201610067®Number=0000000000091764&sum=0 [13:40:58]OFD Sender: Processing packet 165698 [packets to send 48, broken 47] [13:40:58]ProducePacketName [13:40:58]name=ofd_packets/00165698 [13:40:58]OFD Sender: To server: pG, [13:40:58]CommunicateWithHost lk.salyk.kg:30040 [13:40:58]ConnectInit lk.salyk.kg [13:40:58]written 0, free lines is 4095 [13:40:58]Connected sock=10 [13: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 31 37 35 39 0C 01 00 00 8F 7F 04 01 26 46 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 75 08 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 87 02 00 35 04 06 00 43 0D 42 B5 4D 3B 81 0D 5B 9B DC 0C B1 D4 [13:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B6 CD 47 00 D6 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 87 02 00 F4 03 04 00 E6 AE 14 67 B6 04 01 00 00 71 8D DA DF 09 AE 34 44 [13:40:58]CommunicateWithHost err = 0 [13:40:58]CheckOFDResponse [13:40:58]1017 (14) - 77093643461234 [13:40:58]1041 (16) - 0000000000871759 [13:40:58]1040 (4) - 165698 [13:40:58]1012 (4) - 20.10.2024 07:19 [13:40:58]1206 (1) - 0 [13:40:58]OFD Sender: Remove packet 165698 [13:40:58]ProducePacketName [13:40:58]name=ofd_packets/00165698 [13:40:58]NVStorageDeleteData [13:40:59]Write to MH i2c: 01 00 00 7C F0 6C [13:40:59]Write i2c OK [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: 01 [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: 01 07 00 [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: 01 07 00 7C F0 00 00 00 00 00 E2 0C 61 [13:40:59]RasterBufferAndPrint [13:40:59]line [13:40:59]line [13:40:59]line [13:40:59]line [13:40:59]line [13:40:59]written 0, free lines is 3308 [13:40:59]MH_Cut [13:40:59]Write to MH i2c: D1 01 00 83 F0 01 45 [13:40:59]Write i2c OK [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: D1 [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: D1 01 00 [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: D1 01 00 83 F0 00 44 [13:40:59]Write to MH i2c: 01 00 00 84 F0 74 [13:40:59]Write i2c OK [13:40:59]MH_I2C_Read... [13:40:59]OFD Sender: No OFD packet to send [13:40:59]*** Cut start [13:40:59]*** Partial cut [13:40:59]*** CUTSNS_PIN = 1 [13:40:59]*** CUTSNS_PIN = 0 [13:41:00]*** Brake cut motor [13:41:00]Read from MH i2c: 01 [13:41:00]MH_I2C_Read... [13:41:00]*** Stop cut motor [13:41:00]*** Cut end [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 84 F0 00 00 00 00 00 FF 0F 89 [13:41:00]process_action close_receipt done [13:41:00]requested_data is exist [13:41:00]produce_requested_data [13:41:00]requested_item fm.sn is exist - process it [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 85 F0 80 11 00 00 00 00 00 00 EF [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 85 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [13:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:41:00]wFMCommunicate OK [13:41:00]requested_item fd.num is exist - process it [13:41:00]SAM_PROTO_GetFieldsCounters [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 13 00 00 [13:41:00]Write to MH i2c: E2 08 00 86 F0 80 13 00 00 00 00 00 00 F2 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 62 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 62 00 86 F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 42 87 02 00 0E 04 04 00 16 02 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 19 [13: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 42 87 02 00 0E 04 04 00 16 02 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 [13:41:00]wFMCommunicate OK [13:41:00]SAM_PROTO_GetFieldsCounters done [13:41:00]requested_item shift.num is exist - process it [13:41:00]requested_item shift.opened is exist - process it [13:41:00]req_shift_opened [13:41:00]FM_GetShiftState [13:41:00]SAM_PROTO_GetShiftState [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 13 01 00 [13:41:00]Write to MH i2c: E2 08 00 87 F0 80 13 01 00 00 00 00 00 F4 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0E 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0E 00 87 F0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3C [13:41:00]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:41:00]wFMCommunicate OK [13:41:00]SAM_PROTO_GetShiftState done [13:41:00]FM_GetShiftState done [13:41:00]req_shift_opened done [13:41:00]requested_item shift.open_date is exist - process it [13:41:00]req_shift_open_date [13:41:00]req_shift_open_date done [13:41:00]produce_requested_data done [13:41:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165698,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:41:00]process_action_free close_receipt [13:41:00]json_value_free [13:41:00]json_value_free done [13:41:00]process_json_proto returns [13:41:00]Send response to host [13:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165698,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:41:00]free response buf [13:41:00]execute_script done [13:41:00]execute_script returns [13:41:00]free content buf [13:41:00]Sock 9.Close socket [13:41:00]Sock 9.Thread stoped [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:20]accept exits with 7 [13:53:20]New connection [13:53:20]New thread 3066920292 created [13:53:20]Thread 3066776932 joined [13:53:20]Waiting for new connection... [13:53:20] Sock 7.Parse request [13:53:20]Sock 7.Check first char [13:53:20]Sock 7.First char is OK [13:53:20]request: POST /json_proto HTTP/1.0 [13:53:20]Method: POST [13:53:20]URL: /json_proto [13:53:20]Method is POST - this is cgi request [13:53:20]url: /json_proto [13:53:20]query_string will be loaded in cgi processing [13:53:20]execute_cgi json_proto POST (null) [13:53:20]execute_cgi path=json_proto method=POST [13:53:20]POST find Content-Length [13:53:20]Host: 172.17.53.195:8080 [13:53:20]Content-Length: 789 [13:53:20]Content-Type: application/json [13:53:20] [13:53:20]POST finish read [13:53:20]Found Content-Length = 789 [13:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220264", "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" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:20]execute_script... [13:53: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)220264", "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" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:20]POST & json_proto [13:53:20]process_json_proto [13:53:20]json parsed OK: [13:53:20]protocol is kg_v1.0 [13:53:20]action value=close_receipt [13:53:20]process_action close_receipt [13:53:20]cmd_close_receipt [13:53:20]MH_GetDate [13:53:20]Write to MH i2c: F0 00 00 88 F0 67 [13:53:20]Write i2c OK [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: F0 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: F0 09 00 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: F0 09 00 88 F0 00 5D 0B 15 67 21 48 4A 65 6C [13:53:20]GetLastDocTimeStamp 1729431669 [13:53:20]current date 1729432413 [13:53:20]FM_GetShiftState [13:53:20]SAM_PROTO_GetShiftState [13:53:20]wFMCommunicate request_size=4 [13:53:20]MH_SAM_APDU [13:53:20]CAPDU: 80 13 01 00 [13:53:20]Write to MH i2c: E2 08 00 89 F0 80 13 01 00 00 00 00 00 F6 [13:53:20]Write i2c OK [13:53:20]MH_I2C_Read... [13:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:20]Read from MH i2c: E2 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: E2 0E 00 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: E2 0E 00 89 F0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3E [13:53:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:53:20]wFMCommunicate OK [13:53:20]SAM_PROTO_GetShiftState done [13:53:20]FM_GetShiftState done [13:53:20]opened in 1729384561 [13:53:20]opened+sec_in_day 1729470961 [13:53:20]quantity*price = 0 [13:53:20]sum+1 = 1 [13:53:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 181 20.10.2024 13:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165699 ФПД: 198841757073110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135333&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165699&fm=198841757073110&tin=02508201610067®Number=0000000000091764&sum=0 [13:53:21]StoreToDocumentArchive [13:53:21]shift 534 fd 165699 [13:53:21]save to /storage/0534/doc_00165699 [13:53:21]save last doc name /storage/0534/doc_00165699 to /storage/kkm_last_doc_name [13:53:21]save OK [13:53:21]Clear old archive folders... [13:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:21]tlvbuf is 016C7570 [13:53:21]SAM_PROTO_ClearQueue [13:53:21]wFMCommunicate request_size=4 [13:53:21]MH_SAM_APDU [13:53:21]CAPDU: 80 09 00 00 [13:53:21]Write to MH i2c: E2 08 00 96 F0 80 09 00 00 00 00 00 00 F8 [13:53:21]Write i2c OK [13:53:21]MH_I2C_Read... [13:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:21]Read from MH i2c: E2 [13:53:21]MH_I2C_Read... [13:53:21]Read from MH i2c: E2 03 00 [13:53:21]MH_I2C_Read... [13:53:21]Read from MH i2c: E2 03 00 96 F0 00 90 00 FA [13:53:21]RAPDU: 90 00 [13:53:21]wFMCommunicate OK [13:53:21]SAM_PROTO_ClearQueue done [13:53:21]KKMCreateOFDPacket [13:53:21]OFDProtocolAddRootSTLVToBuf [13:53:21]FM_MakeSignedData [13:53:21]FM_MakeSignedData [13:53:21]SAM_PROTO_SignData [13:53:21]wFMCommunicate request_size=4 [13:53:21]MH_SAM_APDU [13:53:21]CAPDU: 80 0D 01 02 [13:53:21]Write to MH i2c: E2 08 00 97 F0 80 0D 01 02 00 00 00 00 00 [13:53:21]Write i2c OK [13:53:21]MH_I2C_Read... [13:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:21]Read from MH i2c: E2 [13:53:21]MH_I2C_Read... [13:53:21]Read from MH i2c: E2 03 00 [13:53:21]MH_I2C_Read... [13:53:21]Read from MH i2c: E2 03 00 97 F0 00 90 00 FB [13:53:21]RAPDU: 90 00 [13:53:21]wFMCommunicate OK [13:53:21]wFMCommunicate request_size=255 [13:53:21]MH_SAM_APDU [13:53: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5D 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 87 02 00 35 04 06 00 B4 D8 74 4B [13:53:21]Write to MH i2c: E2 02 01 98 F0 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5D 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 87 02 00 35 04 06 00 B4 D8 74 4B 00 00 1C [13:53:21]Write i2c OK [13:53:21]MH_I2C_Read... [13:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:22]Read from MH i2c: E2 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 03 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 03 00 98 F0 00 90 00 FC [13:53:22]RAPDU: 90 00 [13:53:22]wFMCommunicate OK [13:53:22]wFMCommunicate request_size=7 [13:53:22]MH_SAM_APDU [13:53:22]CAPDU: 80 0D 02 02 02 FE D6 [13:53:22]Write to MH i2c: E2 0A 00 99 F0 80 0D 02 02 02 00 FE D6 00 00 DB [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:22]Read from MH i2c: E2 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 03 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 03 00 99 F0 00 90 00 FD [13:53:22]RAPDU: 90 00 [13:53:22]wFMCommunicate OK [13:53:22]wFMCommunicate request_size=4 [13:53:22]MH_SAM_APDU [13:53:22]CAPDU: 80 0D 03 02 [13:53:22]Write to MH i2c: E2 08 00 9A F0 80 0D 03 02 00 00 00 00 05 [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:22]Read from MH i2c: E2 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 0B 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 0B 00 9A F0 00 98 1A A0 C5 85 B0 A8 F3 90 00 ED [13:53:22]RAPDU: 98 1A A0 C5 85 B0 A8 F3 90 00 [13:53:22]wFMCommunicate OK [13:53:22]SAM_PROTO_SignData done [13:53:22]FM_MakeSignedData done [13:53:22]CreateOFDProtocolMessage [13:53:22]wFMCommunicate request_size=4 [13:53:22]MH_SAM_APDU [13:53:22]CAPDU: 80 11 00 00 [13:53:22]Write to MH i2c: E2 08 00 9B F0 80 11 00 00 00 00 00 00 05 [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:22]Read from MH i2c: E2 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 17 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 17 00 9B F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [13:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:53:22]wFMCommunicate OK [13:53:22]CreateOFDProtocolMessage done [13:53:22]OFDSenderStorePacket 165699 [13:53:22]StoreOFDPacket docnum=165699 [13:53:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7C FE 04 01 D4 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5D 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 87 02 00 35 04 06 00 B4 D8 74 4B FE D6 98 1A A0 C5 85 B0 A8 F3 [13:53:22]CheckFolder [13:53:22]dirname=/storage/ofd_packets [13:53:22]CheckFolder done [13:53:22]ProducePacketName [13:53:22]name=ofd_packets/00165699 [13:53:22]NVStorageSaveData ofd_packets/00165699 [13:53:22]File name is /storage/ofd_packets/00165699 [13:53:22]Write 298 bytes [13:53:22]NVStorageSaveData done [13:53:22]OFDSenderStorePacket done [13:53:22]KKMCreateOFDPacket done [13:53:22]NVStorageSaveData kkm_last_timestamp [13:53:22]File name is /storage/kkm_last_timestamp [13:53:22]Write 4 bytes [13:53:22]NVStorageSaveData done [13:53:22]ExternCall_PrintAddStr [13:53:22]wPrintStart [13:53:22]Write to MH i2c: 01 00 00 9C F0 8C [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: 01 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: 01 07 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: 01 07 00 9C F0 00 00 00 00 00 FF 0F A1 [13:53:22]RasterBufferAndPrint [13:53:22]line Счет N : (1)220264 [13:53:22]line ИНН: 02508201610067 [13:53:22]line Контрольно-Кассовый Чек [13:53:22]line ПРОДАЖА [13:53:22]line ТРК (МРК, ГНК) : 11 [13:53:22]line Товар: 2710194210 [13:53:22]line ДТ-К-5 [13:53:22]line 26.250 * 0.00 [13:53:22]line = 0.00 [13:53:22]line НДС 12% НСП 1% [13:53:22]line > о реализуемом товаре [13:53:22]line ИТОГО: 0.00 [13:53:22]line НСП 1% : 0.00 [13:53:22]line НДС 12% : 0.00 [13:53:22]line Наличными: 0.00 [13:53:22]line Безнал.: 0.00 [13:53:22]line Место: АЗС № 161 "Партнер Нефть" [13:53:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:53:22]line СНО: Общий режим [13:53:22]line Чек 181 20.10.2024 13:53 [13:53:22]line Смена: 534 ФФД: 1.0 [13:53:22]line ЗНМ: 0300000104 [13:53:22]line РНМ: 0000000000091764 [13:53:22]line Версия ККМ: 001 [13:53:22]line Талоны: Топливная Карта [13:53:22]line 38866 [13:53:22]line ФМ: 0000000000871759 [13:53:22]line ФД: 165699 [13:53:22]line ФПД: 198841757073110 [13:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135333&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165699&fm=198841757073110&tin=02508201610067®Number=0000000000091764&sum=0 [13:53:22]OFD Sender: Processing packet 165699 [packets to send 48, broken 47] [13:53:22]ProducePacketName [13:53:22]name=ofd_packets/00165699 [13:53:22]OFD Sender: To server: pG, [13:53:22]CommunicateWithHost lk.salyk.kg:30040 [13:53:22]ConnectInit lk.salyk.kg [13:53:22]written 0, free lines is 4095 [13:53:22]Connected sock=9 [13:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7C FE 04 01 D4 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5D 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 87 02 00 35 04 06 00 B4 D8 74 4B FE D6 98 1A A0 C5 85 B0 A8 F3 [13:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E5 9E 47 00 D1 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 31 37 35 39 10 04 04 00 43 87 02 00 F4 03 04 00 CE B1 14 67 B6 04 01 00 00 92 ED 84 EF A6 95 D5 10 [13:53:22]CommunicateWithHost err = 0 [13:53:22]CheckOFDResponse [13:53:22]1017 (14) - 77093643461234 [13:53:22]1041 (16) - 0000000000871759 [13:53:22]1040 (4) - 165699 [13:53:22]1012 (4) - 20.10.2024 07:31 [13:53:22]1206 (1) - 0 [13:53:22]OFD Sender: Remove packet 165699 [13:53:22]ProducePacketName [13:53:22]name=ofd_packets/00165699 [13:53:22]NVStorageDeleteData [13:53:22]Write to MH i2c: 01 00 00 C6 F0 B6 [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: 01 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: 01 07 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: 01 07 00 C6 F0 00 00 00 00 00 D6 0C 9F [13:53:22]RasterBufferAndPrint [13:53:22]line [13:53:22]line [13:53:22]line [13:53:22]line [13:53:22]line [13:53:22]written 0, free lines is 3293 [13:53:22]MH_Cut [13:53:22]Write to MH i2c: D1 01 00 CD F0 01 8F [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: D1 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: D1 01 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: D1 01 00 CD F0 00 8E [13:53:22]Write to MH i2c: 01 00 00 CE F0 BE [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:23]OFD Sender: No OFD packet to send [13:53:23]*** Cut start [13:53:23]*** Partial cut [13:53:23]*** CUTSNS_PIN = 1 [13:53:23]*** CUTSNS_PIN = 0 [13:53:24]*** Brake cut motor [13:53:24]Read from MH i2c: 01 [13:53:24]MH_I2C_Read... [13:53:24]*** Stop cut motor [13:53:24]*** Cut end [13:53:24]Read from MH i2c: 01 07 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: 01 07 00 CE F0 00 00 00 00 00 FF 0F D3 [13:53:24]process_action close_receipt done [13:53:24]requested_data is exist [13:53:24]produce_requested_data [13:53:24]requested_item fm.sn is exist - process it [13:53:24]wFMCommunicate request_size=4 [13:53:24]MH_SAM_APDU [13:53:24]CAPDU: 80 11 00 00 [13:53:24]Write to MH i2c: E2 08 00 CF F0 80 11 00 00 00 00 00 00 39 [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:24]Read from MH i2c: E2 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 17 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 17 00 CF F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [13:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:53:24]wFMCommunicate OK [13:53:24]requested_item fd.num is exist - process it [13:53:24]SAM_PROTO_GetFieldsCounters [13:53:24]wFMCommunicate request_size=4 [13:53:24]MH_SAM_APDU [13:53:24]CAPDU: 80 13 00 00 [13:53:24]Write to MH i2c: E2 08 00 D0 F0 80 13 00 00 00 00 00 00 3C [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:24]Read from MH i2c: E2 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 62 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 62 00 D0 F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 43 87 02 00 0E 04 04 00 16 02 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 67 [13:53:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 43 87 02 00 0E 04 04 00 16 02 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 [13:53:24]wFMCommunicate OK [13:53:24]SAM_PROTO_GetFieldsCounters done [13:53:24]requested_item shift.num is exist - process it [13:53:24]requested_item shift.opened is exist - process it [13:53:24]req_shift_opened [13:53:24]FM_GetShiftState [13:53:24]SAM_PROTO_GetShiftState [13:53:24]wFMCommunicate request_size=4 [13:53:24]MH_SAM_APDU [13:53:24]CAPDU: 80 13 01 00 [13:53:24]Write to MH i2c: E2 08 00 D1 F0 80 13 01 00 00 00 00 00 3E [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:24]Read from MH i2c: E2 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 0E 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 0E 00 D1 F0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 86 [13:53:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:53:24]wFMCommunicate OK [13:53:24]SAM_PROTO_GetShiftState done [13:53:24]FM_GetShiftState done [13:53:24]req_shift_opened done [13:53:24]requested_item shift.open_date is exist - process it [13:53:24]req_shift_open_date [13:53:24]req_shift_open_date done [13:53:24]produce_requested_data done [13:53:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165699,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:53:24]process_action_free close_receipt [13:53:24]json_value_free [13:53:24]json_value_free done [13:53:24]process_json_proto returns [13:53:24]Send response to host [13:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165699,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:53:24]free response buf [13:53:24]execute_script done [13:53:24]execute_script returns [13:53:24]free content buf [13:53:24]Sock 7.Close socket [13:53:24]Sock 7.Thread stoped [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:06]accept exits with 10 [13:55:06]New connection [13:55:06]New thread 3066776932 created [13:55:06]Thread 3066920292 joined [13:55:06]Waiting for new connection... [13:55:06] Sock 10.Parse request [13:55:06]Sock 10.Check first char [13:55:06]Sock 10.First char is OK [13:55:06]request: POST /json_proto HTTP/1.0 [13:55:06]Method: POST [13:55:06]URL: /json_proto [13:55:06]Method is POST - this is cgi request [13:55:06]url: /json_proto [13:55:06]query_string will be loaded in cgi processing [13:55:06]execute_cgi json_proto POST (null) [13:55:06]execute_cgi path=json_proto method=POST [13:55:06]POST find Content-Length [13:55:06]Host: 172.17.53.195:8080 [13:55:06]Content-Length: 789 [13:55:06]Content-Type: application/json [13:55:06] [13:55:06]POST finish read [13:55:06]Found Content-Length = 789 [13:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:06]execute_script... [13: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)220265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:06]POST & json_proto [13:55:06]process_json_proto [13:55:06]json parsed OK: [13:55:06]protocol is kg_v1.0 [13:55:06]action value=close_receipt [13:55:06]process_action close_receipt [13:55:06]cmd_close_receipt [13:55:06]MH_GetDate [13:55:06]Write to MH i2c: F0 00 00 D2 F0 B1 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: F0 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: F0 09 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: F0 09 00 D2 F0 00 C7 0B 15 67 21 48 4A 65 20 [13:55:06]GetLastDocTimeStamp 1729432413 [13:55:06]current date 1729432519 [13:55:06]FM_GetShiftState [13:55:06]SAM_PROTO_GetShiftState [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 13 01 00 [13:55:06]Write to MH i2c: E2 08 00 D3 F0 80 13 01 00 00 00 00 00 40 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 D3 F0 00 09 00 01 71 50 14 67 00 00 00 00 90 00 88 [13:55:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_GetShiftState done [13:55:06]FM_GetShiftState done [13:55:06]opened in 1729384561 [13:55:06]opened+sec_in_day 1729470961 [13:55:06]quantity*price = 0 [13:55:06]sum+1 = 1 [13:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 182 20.10.2024 13:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165700 ФПД: 117194890795868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135519&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165700&fm=117194890795868&tin=02508201610067®Number=0000000000091764&sum=0 [13:55:08]StoreToDocumentArchive [13:55:08]shift 534 fd 165700 [13:55:08]save to /storage/0534/doc_00165700 [13:55:08]save last doc name /storage/0534/doc_00165700 to /storage/kkm_last_doc_name [13:55:08]save OK [13:55:08]Clear old archive folders... [13:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:55:08]tlvbuf is 015BCA30 [13:55:08]SAM_PROTO_ClearQueue [13:55:08]wFMCommunicate request_size=4 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 09 00 00 [13:55:08]Write to MH i2c: E2 08 00 E0 F0 80 09 00 00 00 00 00 00 42 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 03 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 03 00 E0 F0 00 90 00 44 [13:55:08]RAPDU: 90 00 [13:55:08]wFMCommunicate OK [13:55:08]SAM_PROTO_ClearQueue done [13:55:08]KKMCreateOFDPacket [13:55:08]OFDProtocolAddRootSTLVToBuf [13:55:08]FM_MakeSignedData [13:55:08]FM_MakeSignedData [13:55:08]SAM_PROTO_SignData [13:55:08]wFMCommunicate request_size=4 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 0D 01 02 [13:55:08]Write to MH i2c: E2 08 00 E1 F0 80 0D 01 02 00 00 00 00 4A [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 03 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 03 00 E1 F0 00 90 00 45 [13:55:08]RAPDU: 90 00 [13:55:08]wFMCommunicate OK [13:55:08]wFMCommunicate request_size=255 [13:55:08]MH_SAM_APDU [13:55:08]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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C7 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 87 02 00 35 04 06 00 6A 96 8F D5 [13:55:08]Write to MH i2c: E2 02 01 E2 F0 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C7 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 87 02 00 35 04 06 00 6A 96 8F D5 00 00 EB [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]OFD Sender: No OFD packet to send [13:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 03 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 03 00 E2 F0 00 90 00 46 [13:55:08]RAPDU: 90 00 [13:55:08]wFMCommunicate OK [13:55:08]wFMCommunicate request_size=7 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 0D 02 02 02 DB 5C [13:55:08]Write to MH i2c: E2 0A 00 E3 F0 80 0D 02 02 02 00 DB 5C 00 00 88 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 03 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 03 00 E3 F0 00 90 00 47 [13:55:08]RAPDU: 90 00 [13:55:08]wFMCommunicate OK [13:55:08]wFMCommunicate request_size=4 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 0D 03 02 [13:55:08]Write to MH i2c: E2 08 00 E4 F0 80 0D 03 02 00 00 00 00 4F [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 0B 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 0B 00 E4 F0 00 0E 51 EA A2 AB BF 1B 0E 90 00 CE [13:55:08]RAPDU: 0E 51 EA A2 AB BF 1B 0E 90 00 [13:55:08]wFMCommunicate OK [13:55:08]SAM_PROTO_SignData done [13:55:08]FM_MakeSignedData done [13:55:08]CreateOFDProtocolMessage [13:55:08]wFMCommunicate request_size=4 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 11 00 00 [13:55:08]Write to MH i2c: E2 08 00 E5 F0 80 11 00 00 00 00 00 00 4F [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 17 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 17 00 E5 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A7 [13:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:55:08]wFMCommunicate OK [13:55:08]CreateOFDProtocolMessage done [13:55:08]OFDSenderStorePacket 165700 [13:55:08]StoreOFDPacket docnum=165700 [13:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 08 01 04 01 A0 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C7 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 87 02 00 35 04 06 00 6A 96 8F D5 DB 5C 0E 51 EA A2 AB BF 1B 0E [13:55:08]CheckFolder [13:55:08]dirname=/storage/ofd_packets [13:55:08]CheckFolder done [13:55:08]ProducePacketName [13:55:08]name=ofd_packets/00165700 [13:55:08]NVStorageSaveData ofd_packets/00165700 [13:55:08]File name is /storage/ofd_packets/00165700 [13:55:08]Write 298 bytes [13:55:08]NVStorageSaveData done [13:55:08]OFDSenderStorePacket done [13:55:08]KKMCreateOFDPacket done [13:55:08]NVStorageSaveData kkm_last_timestamp [13:55:08]File name is /storage/kkm_last_timestamp [13:55:08]Write 4 bytes [13:55:08]NVStorageSaveData done [13:55:08]ExternCall_PrintAddStr [13:55:08]wPrintStart [13:55:08]Write to MH i2c: 01 00 00 E6 F0 D6 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 07 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 07 00 E6 F0 00 00 00 00 00 FF 0F EB [13:55:08]RasterBufferAndPrint [13:55:08]line Счет N : (1)220265 [13:55:08]line ИНН: 02508201610067 [13:55:08]line Контрольно-Кассовый Чек [13:55:08]line ПРОДАЖА [13:55:08]line ТРК (МРК, ГНК) : 31 [13:55:08]line Товар: 2710194210 [13:55:08]line ДТ-К-5 [13:55:08]line 26.250 * 0.00 [13:55:08]line = 0.00 [13:55:08]line НДС 12% НСП 1% [13:55:08]line > о реализуемом товаре [13:55:08]line ИТОГО: 0.00 [13:55:08]line НСП 1% : 0.00 [13:55:08]line НДС 12% : 0.00 [13:55:08]line Наличными: 0.00 [13:55:08]line Безнал.: 0.00 [13:55:08]line Место: АЗС № 161 "Партнер Нефть" [13:55:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:55:08]line СНО: Общий режим [13:55:08]line Чек 182 20.10.2024 13:55 [13:55:08]line Смена: 534 ФФД: 1.0 [13:55:08]line ЗНМ: 0300000104 [13:55:08]line РНМ: 0000000000091764 [13:55:08]line Версия ККМ: 001 [13:55:08]line Талоны: Топливная Карта [13:55:08]line 38866 [13:55:08]line ФМ: 0000000000871759 [13:55:08]line ФД: 165700 [13:55:08]line ФПД: 117194890795868 [13:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135519&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165700&fm=117194890795868&tin=02508201610067®Number=0000000000091764&sum=0 [13:55:08]OFD Sender: Processing packet 165700 [packets to send 48, broken 47] [13:55:08]ProducePacketName [13:55:08]name=ofd_packets/00165700 [13:55:08]OFD Sender: To server: pG, [13:55:08]CommunicateWithHost lk.salyk.kg:30040 [13:55:08]ConnectInit lk.salyk.kg [13:55:08]written 0, free lines is 4095 [13:55:09]Connected sock=9 [13:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 08 01 04 01 A0 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C7 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 87 02 00 35 04 06 00 6A 96 8F D5 DB 5C 0E 51 EA A2 AB BF 1B 0E [13:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E3 25 47 00 75 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 87 02 00 F4 03 04 00 39 B2 14 67 B6 04 01 00 00 65 4B E1 35 5F 5D 6A CD [13:55:09]CommunicateWithHost err = 0 [13:55:09]CheckOFDResponse [13:55:09]1017 (14) - 77093643461234 [13:55:09]1041 (16) - 0000000000871759 [13:55:09]1040 (4) - 165700 [13:55:09]1012 (4) - 20.10.2024 07:33 [13:55:09]1206 (1) - 0 [13:55:09]OFD Sender: Remove packet 165700 [13:55:09]ProducePacketName [13:55:09]name=ofd_packets/00165700 [13:55:09]NVStorageDeleteData [13:55:09]Write to MH i2c: 01 00 00 10 F1 01 [13:55:09]Write i2c OK [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: 01 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: 01 07 00 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: 01 07 00 10 F1 00 00 00 00 00 E6 0C FA [13:55:09]RasterBufferAndPrint [13:55:09]line [13:55:09]line [13:55:09]line [13:55:09]line [13:55:09]line [13:55:09]written 0, free lines is 3309 [13:55:09]MH_Cut [13:55:09]Write to MH i2c: D1 01 00 17 F1 01 DA [13:55:09]Write i2c OK [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: D1 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: D1 01 00 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: D1 01 00 17 F1 00 D9 [13:55:09]Write to MH i2c: 01 00 00 18 F1 09 [13:55:09]Write i2c OK [13:55:09]MH_I2C_Read... [13:55:09]OFD Sender: No OFD packet to send [13:55:10]*** Cut start [13:55:10]*** Partial cut [13:55:10]*** CUTSNS_PIN = 1 [13:55:10]*** CUTSNS_PIN = 0 [13:55:10]*** Brake cut motor [13:55:10]Read from MH i2c: 01 [13:55:10]MH_I2C_Read... [13:55:10]*** Stop cut motor [13:55:10]*** Cut end [13:55:10]Read from MH i2c: 01 07 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: 01 07 00 18 F1 00 00 00 00 00 FF 0F 1E [13:55:10]process_action close_receipt done [13:55:10]requested_data is exist [13:55:10]produce_requested_data [13:55:10]requested_item fm.sn is exist - process it [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 11 00 00 [13:55:10]Write to MH i2c: E2 08 00 19 F1 80 11 00 00 00 00 00 00 84 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 17 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 17 00 19 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [13:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:55:10]wFMCommunicate OK [13:55:10]requested_item fd.num is exist - process it [13:55:10]SAM_PROTO_GetFieldsCounters [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 13 00 00 [13:55:10]Write to MH i2c: E2 08 00 1A F1 80 13 00 00 00 00 00 00 87 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:11]Read from MH i2c: E2 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: E2 62 00 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: E2 62 00 1A F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 44 87 02 00 0E 04 04 00 16 02 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 B6 [13:55:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 44 87 02 00 0E 04 04 00 16 02 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 [13:55:11]wFMCommunicate OK [13:55:11]SAM_PROTO_GetFieldsCounters done [13:55:11]requested_item shift.num is exist - process it [13:55:11]requested_item shift.opened is exist - process it [13:55:11]req_shift_opened [13:55:11]FM_GetShiftState [13:55:11]SAM_PROTO_GetShiftState [13:55:11]wFMCommunicate request_size=4 [13:55:11]MH_SAM_APDU [13:55:11]CAPDU: 80 13 01 00 [13:55:11]Write to MH i2c: E2 08 00 1B F1 80 13 01 00 00 00 00 00 89 [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:11]Read from MH i2c: E2 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: E2 0E 00 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: E2 0E 00 1B F1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D1 [13:55:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:55:11]wFMCommunicate OK [13:55:11]SAM_PROTO_GetShiftState done [13:55:11]FM_GetShiftState done [13:55:11]req_shift_opened done [13:55:11]requested_item shift.open_date is exist - process it [13:55:11]req_shift_open_date [13:55:11]req_shift_open_date done [13:55:11]produce_requested_data done [13:55:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165700,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:55:11]process_action_free close_receipt [13:55:11]json_value_free [13:55:11]json_value_free done [13:55:11]process_json_proto returns [13:55:11]Send response to host [13:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165700,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:55:11]free response buf [13:55:11]execute_script done [13:55:11]execute_script returns [13:55:11]free content buf [13:55:11]Sock 10.Close socket [13:55:11]Sock 10.Thread stoped [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:36]accept exits with 7 [13:55:36]New connection [13:55:36]New thread 3066920292 created [13:55:36]Thread 3066776932 joined [13:55:36]Waiting for new connection... [13:55:36] Sock 7.Parse request [13:55:36]Sock 7.Check first char [13:55:36]Sock 7.First char is OK [13:55:36]request: POST /json_proto HTTP/1.0 [13:55:36]Method: POST [13:55:36]URL: /json_proto [13:55:36]Method is POST - this is cgi request [13:55:36]url: /json_proto [13:55:36]query_string will be loaded in cgi processing [13:55:36]execute_cgi json_proto POST (null) [13:55:36]execute_cgi path=json_proto method=POST [13:55:36]POST find Content-Length [13:55:36]Host: 172.17.53.195:8080 [13:55:36]Content-Length: 789 [13:55:36]Content-Type: application/json [13:55:36] [13:55:36]POST finish read [13:55:36]Found Content-Length = 789 [13:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:36]execute_script... [13:55: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)220266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:36]POST & json_proto [13:55:36]process_json_proto [13:55:36]json parsed OK: [13:55:36]protocol is kg_v1.0 [13:55:36]action value=close_receipt [13:55:36]process_action close_receipt [13:55:36]cmd_close_receipt [13:55:36]MH_GetDate [13:55:36]Write to MH i2c: F0 00 00 1C F1 FC [13:55:36]Write i2c OK [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 09 00 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 09 00 1C F1 00 E4 0B 15 67 21 48 4A 65 88 [13:55:36]GetLastDocTimeStamp 1729432519 [13:55:36]current date 1729432548 [13:55:36]FM_GetShiftState [13:55:36]SAM_PROTO_GetShiftState [13:55:36]wFMCommunicate request_size=4 [13:55:36]MH_SAM_APDU [13:55:36]CAPDU: 80 13 01 00 [13:55:36]Write to MH i2c: E2 08 00 1D F1 80 13 01 00 00 00 00 00 8B [13:55:36]Write i2c OK [13:55:36]MH_I2C_Read... [13:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:36]Read from MH i2c: E2 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: E2 0E 00 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: E2 0E 00 1D F1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D3 [13:55:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:55:36]wFMCommunicate OK [13:55:36]SAM_PROTO_GetShiftState done [13:55:36]FM_GetShiftState done [13:55:36]opened in 1729384561 [13:55:36]opened+sec_in_day 1729470961 [13:55:36]quantity*price = 0 [13:55:36]sum+1 = 1 [13:55:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 183 20.10.2024 13:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165701 ФПД: 210262424954242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135548&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165701&fm=210262424954242&tin=02508201610067®Number=0000000000091764&sum=0 [13:55:37]StoreToDocumentArchive [13:55:37]shift 534 fd 165701 [13:55:37]save to /storage/0534/doc_00165701 [13:55:37]save last doc name /storage/0534/doc_00165701 to /storage/kkm_last_doc_name [13:55:37]save OK [13:55:37]Clear old archive folders... [13:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:55:37]tlvbuf is 019A6460 [13:55:37]SAM_PROTO_ClearQueue [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 09 00 00 [13:55:37]Write to MH i2c: E2 08 00 2A F1 80 09 00 00 00 00 00 00 8D [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 2A F1 00 90 00 8F [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]SAM_PROTO_ClearQueue done [13:55:37]KKMCreateOFDPacket [13:55:37]OFDProtocolAddRootSTLVToBuf [13:55:37]FM_MakeSignedData [13:55:37]FM_MakeSignedData [13:55:37]SAM_PROTO_SignData [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 01 02 [13:55:37]Write to MH i2c: E2 08 00 2B F1 80 0D 01 02 00 00 00 00 95 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 2B F1 00 90 00 90 [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]wFMCommunicate request_size=255 [13:55:37]MH_SAM_APDU [13:55:37]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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E4 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 87 02 00 35 04 06 00 BF 3B 89 26 [13:55:37]Write to MH i2c: E2 02 01 2C F1 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E4 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 87 02 00 35 04 06 00 BF 3B 89 26 00 00 9A [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 2C F1 00 90 00 91 [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]wFMCommunicate request_size=7 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 02 02 02 25 82 [13:55:37]Write to MH i2c: E2 0A 00 2D F1 80 0D 02 02 02 00 25 82 00 00 43 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 2D F1 00 90 00 92 [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 03 02 [13:55:37]Write to MH i2c: E2 08 00 2E F1 80 0D 03 02 00 00 00 00 9A [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 0B 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 0B 00 2E F1 00 3C 1A 8F 99 2A 22 D5 2A 90 00 64 [13:55:37]RAPDU: 3C 1A 8F 99 2A 22 D5 2A 90 00 [13:55:37]wFMCommunicate OK [13:55:37]SAM_PROTO_SignData done [13:55:37]FM_MakeSignedData done [13:55:37]CreateOFDProtocolMessage [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 11 00 00 [13:55:37]Write to MH i2c: E2 08 00 2F F1 80 11 00 00 00 00 00 00 9A [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 17 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 17 00 2F F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [13:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:55:37]wFMCommunicate OK [13:55:37]CreateOFDProtocolMessage done [13:55:37]OFDSenderStorePacket 165701 [13:55:37]StoreOFDPacket docnum=165701 [13:55:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 EA D5 04 01 C1 2E 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E4 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 87 02 00 35 04 06 00 BF 3B 89 26 25 82 3C 1A 8F 99 2A 22 D5 2A [13:55:37]CheckFolder [13:55:37]dirname=/storage/ofd_packets [13:55:37]CheckFolder done [13:55:37]ProducePacketName [13:55:37]name=ofd_packets/00165701 [13:55:37]NVStorageSaveData ofd_packets/00165701 [13:55:37]File name is /storage/ofd_packets/00165701 [13:55:37]Write 298 bytes [13:55:37]NVStorageSaveData done [13:55:37]OFDSenderStorePacket done [13:55:37]KKMCreateOFDPacket done [13:55:37]NVStorageSaveData kkm_last_timestamp [13:55:37]File name is /storage/kkm_last_timestamp [13:55:37]Write 4 bytes [13:55:37]NVStorageSaveData done [13:55:37]ExternCall_PrintAddStr [13:55:37]wPrintStart [13:55:37]Write to MH i2c: 01 00 00 30 F1 21 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: 01 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: 01 07 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: 01 07 00 30 F1 00 00 00 00 00 FF 0F 36 [13:55:37]RasterBufferAndPrint [13:55:37]line Счет N : (1)220266 [13:55:37]line ИНН: 02508201610067 [13:55:37]line Контрольно-Кассовый Чек [13:55:37]line ПРОДАЖА [13:55:37]line ТРК (МРК, ГНК) : 41 [13:55:37]line Товар: 2710194210 [13:55:37]line ДТ-К-5 [13:55:37]line 26.250 * 0.00 [13:55:37]line = 0.00 [13:55:37]line НДС 12% НСП 1% [13:55:37]line > о реализуемом товаре [13:55:37]line ИТОГО: 0.00 [13:55:37]line НСП 1% : 0.00 [13:55:37]line НДС 12% : 0.00 [13:55:37]line Наличными: 0.00 [13:55:37]line Безнал.: 0.00 [13:55:37]line Место: АЗС № 161 "Партнер Нефть" [13:55:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:55:37]line СНО: Общий режим [13:55:37]line Чек 183 20.10.2024 13:55 [13:55:37]line Смена: 534 ФФД: 1.0 [13:55:37]line ЗНМ: 0300000104 [13:55:37]line РНМ: 0000000000091764 [13:55:37]line Версия ККМ: 001 [13:55:37]line Талоны: Топливная Карта [13:55:37]line 38866 [13:55:37]line ФМ: 0000000000871759 [13:55:37]line ФД: 165701 [13:55:37]line ФПД: 210262424954242 [13:55:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135548&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165701&fm=210262424954242&tin=02508201610067®Number=0000000000091764&sum=0 [13:55:38]OFD Sender: Processing packet 165701 [packets to send 48, broken 47] [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00165701 [13:55:38]OFD Sender: To server: pG, [13:55:38]CommunicateWithHost lk.salyk.kg:30040 [13:55:38]ConnectInit lk.salyk.kg [13:55:38]written 0, free lines is 4095 [13:55:38]Connected sock=10 [13:55:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 EA D5 04 01 C1 2E 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E4 0B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 87 02 00 35 04 06 00 BF 3B 89 26 25 82 3C 1A 8F 99 2A 22 D5 2A [13:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 23 15 47 00 41 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 31 37 35 39 10 04 04 00 45 87 02 00 F4 03 04 00 56 B2 14 67 B6 04 01 00 00 51 21 13 EE 53 2B BD 16 [13:55:38]CommunicateWithHost err = 0 [13:55:38]CheckOFDResponse [13:55:38]1017 (14) - 77093643461234 [13:55:38]1041 (16) - 0000000000871759 [13:55:38]1040 (4) - 165701 [13:55:38]1012 (4) - 20.10.2024 07:33 [13:55:38]1206 (1) - 0 [13:55:38]OFD Sender: Remove packet 165701 [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00165701 [13:55:38]NVStorageDeleteData [13:55:38]Write to MH i2c: 01 00 00 5A F1 4B [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 07 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 07 00 5A F1 00 00 00 00 00 DF 0C 3D [13:55:38]RasterBufferAndPrint [13:55:38]line [13:55:38]line [13:55:38]line [13:55:38]line [13:55:38]line [13:55:38]written 0, free lines is 3301 [13:55:38]MH_Cut [13:55:38]Write to MH i2c: D1 01 00 61 F1 01 24 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: D1 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: D1 01 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: D1 01 00 61 F1 00 23 [13:55:38]Write to MH i2c: 01 00 00 62 F1 53 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]OFD Sender: No OFD packet to send [13:55:39]*** Cut start [13:55:39]*** Partial cut [13:55:39]*** CUTSNS_PIN = 1 [13:55:39]*** CUTSNS_PIN = 0 [13:55:39]*** Brake cut motor [13:55:39]Read from MH i2c: 01 [13:55:39]MH_I2C_Read... [13:55:39]*** Stop cut motor [13:55:40]*** Cut end [13:55:40]Read from MH i2c: 01 07 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 62 F1 00 00 00 00 00 FF 0F 68 [13:55:40]process_action close_receipt done [13:55:40]requested_data is exist [13:55:40]produce_requested_data [13:55:40]requested_item fm.sn is exist - process it [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 11 00 00 [13:55:40]Write to MH i2c: E2 08 00 63 F1 80 11 00 00 00 00 00 00 CE [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 63 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [13:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:55:40]wFMCommunicate OK [13:55:40]requested_item fd.num is exist - process it [13:55:40]SAM_PROTO_GetFieldsCounters [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 13 00 00 [13:55:40]Write to MH i2c: E2 08 00 64 F1 80 13 00 00 00 00 00 00 D1 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 62 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 62 00 64 F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 45 87 02 00 0E 04 04 00 16 02 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 04 [13:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 45 87 02 00 0E 04 04 00 16 02 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 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_GetFieldsCounters done [13:55:40]requested_item shift.num is exist - process it [13:55:40]requested_item shift.opened is exist - process it [13:55:40]req_shift_opened [13:55:40]FM_GetShiftState [13:55:40]SAM_PROTO_GetShiftState [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 13 01 00 [13:55:40]Write to MH i2c: E2 08 00 65 F1 80 13 01 00 00 00 00 00 D3 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0E 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0E 00 65 F1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1B [13:55:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_GetShiftState done [13:55:40]FM_GetShiftState done [13:55:40]req_shift_opened done [13:55:40]requested_item shift.open_date is exist - process it [13:55:40]req_shift_open_date [13:55:40]req_shift_open_date done [13:55:40]produce_requested_data done [13:55:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165701,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:55:40]process_action_free close_receipt [13:55:40]json_value_free [13:55:40]json_value_free done [13:55:40]process_json_proto returns [13:55:40]Send response to host [13:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165701,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:55:40]free response buf [13:55:40]execute_script done [13:55:40]execute_script returns [13:55:40]free content buf [13:55:40]Sock 7.Close socket [13:55:40]Sock 7.Thread stoped [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:16]accept exits with 9 [13:56:16]New connection [13:56:16]New thread 3066776932 created [13:56:16]Thread 3066920292 joined [13:56:16]Waiting for new connection... [13:56:16] Sock 9.Parse request [13:56:16]Sock 9.Check first char [13:56:16]Sock 9.First char is OK [13:56:16]request: POST /json_proto HTTP/1.0 [13:56:16]Method: POST [13:56:16]URL: /json_proto [13:56:16]Method is POST - this is cgi request [13:56:16]url: /json_proto [13:56:16]query_string will be loaded in cgi processing [13:56:16]execute_cgi json_proto POST (null) [13:56:16]execute_cgi path=json_proto method=POST [13:56:16]POST find Content-Length [13:56:16]Host: 172.17.53.195:8080 [13:56:16]Content-Length: 674 [13:56:16]Content-Type: application/json [13:56:16] [13:56:16]POST finish read [13:56:16]Found Content-Length = 674 [13:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220267", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:56:16]execute_script... [13:56: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)220267", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:56:16]POST & json_proto [13:56:16]process_json_proto [13:56:16]json parsed OK: [13:56:16]protocol is kg_v1.0 [13:56:16]action value=close_receipt [13:56:16]process_action close_receipt [13:56:16]cmd_close_receipt [13:56:16]MH_GetDate [13:56:16]Write to MH i2c: F0 00 00 66 F1 46 [13:56:16]Write i2c OK [13:56:16]MH_I2C_Read... [13:56:16]Read from MH i2c: F0 [13:56:16]MH_I2C_Read... [13:56:16]Read from MH i2c: F0 09 00 [13:56:16]MH_I2C_Read... [13:56:16]Read from MH i2c: F0 09 00 66 F1 00 0D 0C 15 67 21 48 4A 65 FC [13:56:16]GetLastDocTimeStamp 1729432548 [13:56:16]current date 1729432589 [13:56:16]FM_GetShiftState [13:56:16]SAM_PROTO_GetShiftState [13:56:16]wFMCommunicate request_size=4 [13:56:16]MH_SAM_APDU [13:56:16]CAPDU: 80 13 01 00 [13:56:16]Write to MH i2c: E2 08 00 67 F1 80 13 01 00 00 00 00 00 D5 [13:56:16]Write i2c OK [13:56:16]MH_I2C_Read... [13:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:16]Read from MH i2c: E2 [13:56:16]MH_I2C_Read... [13:56:16]Read from MH i2c: E2 0E 00 [13:56:16]MH_I2C_Read... [13:56:16]Read from MH i2c: E2 0E 00 67 F1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1D [13:56:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:56:16]wFMCommunicate OK [13:56:16]SAM_PROTO_GetShiftState done [13:56:16]FM_GetShiftState done [13:56:16]opened in 1729384561 [13:56:16]opened+sec_in_day 1729470961 [13:56:16]quantity*price = 50063 [13:56:16]sum+1 = 50064 [13:56:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 184 20.10.2024 13:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165702 ФПД: 59418598909853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135629&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165702&fm=59418598909853&tin=02508201610067®Number=0000000000091764&sum=50000 [13:56:17]StoreToDocumentArchive [13:56:17]shift 534 fd 165702 [13:56:17]save to /storage/0534/doc_00165702 [13:56:17]save last doc name /storage/0534/doc_00165702 to /storage/kkm_last_doc_name [13:56:17]save OK [13:56:17]Clear old archive folders... [13:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:56:17]tlvbuf is 0177AC00 [13:56:17]SAM_PROTO_ClearQueue [13:56:17]wFMCommunicate request_size=4 [13:56:17]MH_SAM_APDU [13:56:17]CAPDU: 80 09 00 00 [13:56:17]Write to MH i2c: E2 08 00 74 F1 80 09 00 00 00 00 00 00 D7 [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 74 F1 00 90 00 D9 [13:56:17]RAPDU: 90 00 [13:56:17]wFMCommunicate OK [13:56:17]SAM_PROTO_ClearQueue done [13:56:17]KKMCreateOFDPacket [13:56:17]OFDProtocolAddRootSTLVToBuf [13:56:17]FM_MakeSignedData [13:56:17]FM_MakeSignedData [13:56:17]SAM_PROTO_SignData [13:56:17]wFMCommunicate request_size=4 [13:56:17]MH_SAM_APDU [13:56:17]CAPDU: 80 0D 01 02 [13:56:17]Write to MH i2c: E2 08 00 75 F1 80 0D 01 02 00 00 00 00 DF [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 75 F1 00 90 00 DA [13:56:17]RAPDU: 90 00 [13:56:17]wFMCommunicate OK [13:56:17]wFMCommunicate request_size=255 [13:56:17]MH_SAM_APDU [13:56:17]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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 B8 00 00 00 F4 03 04 00 0D 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 87 02 00 35 04 06 00 36 0A 78 7B [13:56:17]Write to MH i2c: E2 02 01 76 F1 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 B8 00 00 00 F4 03 04 00 0D 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 87 02 00 35 04 06 00 36 0A 78 7B 00 00 5A [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:18]Read from MH i2c: E2 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: E2 03 00 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: E2 03 00 76 F1 00 90 00 DB [13:56:18]RAPDU: 90 00 [13:56:18]wFMCommunicate OK [13:56:18]wFMCommunicate request_size=7 [13:56:18]MH_SAM_APDU [13:56:18]CAPDU: 80 0D 02 02 02 27 9D [13:56:18]Write to MH i2c: E2 0A 00 77 F1 80 0D 02 02 02 00 27 9D 00 00 AA [13:56:18]Write i2c OK [13:56:18]MH_I2C_Read... [13:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:18]Read from MH i2c: E2 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: E2 03 00 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: E2 03 00 77 F1 00 90 00 DC [13:56:18]RAPDU: 90 00 [13:56:18]wFMCommunicate OK [13:56:18]wFMCommunicate request_size=4 [13:56:18]MH_SAM_APDU [13:56:18]CAPDU: 80 0D 03 02 [13:56:18]Write to MH i2c: E2 08 00 78 F1 80 0D 03 02 00 00 00 00 E4 [13:56:18]Write i2c OK [13:56:18]MH_I2C_Read... [13:56:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:18]Read from MH i2c: E2 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: E2 0B 00 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: E2 0B 00 78 F1 00 00 FB CB 42 1D 6E A6 21 90 00 3F [13:56:18]RAPDU: 00 FB CB 42 1D 6E A6 21 90 00 [13:56:18]wFMCommunicate OK [13:56:18]SAM_PROTO_SignData done [13:56:18]FM_MakeSignedData done [13:56:18]CreateOFDProtocolMessage [13:56:18]wFMCommunicate request_size=4 [13:56:18]MH_SAM_APDU [13:56:18]CAPDU: 80 11 00 00 [13:56:18]Write to MH i2c: E2 08 00 79 F1 80 11 00 00 00 00 00 00 E4 [13:56:18]Write i2c OK [13:56:18]MH_I2C_Read... [13:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:18]Read from MH i2c: E2 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: E2 17 00 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: E2 17 00 79 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3C [13:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:56:18]wFMCommunicate OK [13:56:18]CreateOFDProtocolMessage done [13:56:18]OFDSenderStorePacket 165702 [13:56:18]StoreOFDPacket docnum=165702 [13:56:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C7 DF 04 01 22 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 B8 00 00 00 F4 03 04 00 0D 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 87 02 00 35 04 06 00 36 0A 78 7B 27 9D 00 FB CB 42 1D 6E A6 21 [13:56:18]CheckFolder [13:56:18]dirname=/storage/ofd_packets [13:56:18]CheckFolder done [13:56:18]ProducePacketName [13:56:18]name=ofd_packets/00165702 [13:56:18]NVStorageSaveData ofd_packets/00165702 [13:56:18]File name is /storage/ofd_packets/00165702 [13:56:18]Write 298 bytes [13:56:18]NVStorageSaveData done [13:56:18]OFDSenderStorePacket done [13:56:18]KKMCreateOFDPacket done [13:56:18]NVStorageSaveData kkm_last_timestamp [13:56:18]File name is /storage/kkm_last_timestamp [13:56:18]Write 4 bytes [13:56:18]NVStorageSaveData done [13:56:18]ExternCall_PrintAddStr [13:56:18]wPrintStart [13:56:18]Write to MH i2c: 01 00 00 7A F1 6B [13:56:18]Write i2c OK [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: 01 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: 01 07 00 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: 01 07 00 7A F1 00 00 00 00 00 FF 0F 80 [13:56:18]RasterBufferAndPrint [13:56:18]line Счет N : (1)220267 [13:56:18]line ИНН: 02508201610067 [13:56:18]line Контрольно-Кассовый Чек [13:56:18]line ПРОДАЖА [13:56:18]line ТРК (МРК, ГНК) : 11 [13:56:18]line Товар: 2710194210 [13:56:18]line ДТ-К-5 [13:56:18]line 6.570 * 76.20 [13:56:18]line = 500.63 [13:56:18]line НДС 12% НСП 1% [13:56:18]line > о реализуемом товаре [13:56:18]line ОКРУГЛЕНИЕ: -0.63 [13:56:18]line ИТОГО: 500.00 [13:56:18]line Внесено: 500.00 [13:56:18]line СДАЧА: 0.00 [13:56:18]line НСП 1% : 4.43 [13:56:18]line НДС 12% : 53.16 [13:56:18]line Наличными: 500.00 [13:56:18]line Безнал.: 0.00 [13:56:18]line Место: АЗС № 161 "Партнер Нефть" [13:56:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:56:18]line СНО: Общий режим [13:56:18]line Чек 184 20.10.2024 13:56 [13:56:18]line Смена: 534 ФФД: 1.0 [13:56:18]line ЗНМ: 0300000104 [13:56:18]line РНМ: 0000000000091764 [13:56:18]line Версия ККМ: 001 [13:56:18]line ФМ: 0000000000871759 [13:56:18]line ФД: 165702 [13:56:18]line ФПД: 59418598909853 [13:56:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135629&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165702&fm=59418598909853&tin=02508201610067®Number=0000000000091764&sum=50000 [13:56:18]OFD Sender: Processing packet 165702 [packets to send 48, broken 47] [13:56:18]ProducePacketName [13:56:18]name=ofd_packets/00165702 [13:56:18]OFD Sender: To server: pG, [13:56:18]CommunicateWithHost lk.salyk.kg:30040 [13:56:18]ConnectInit lk.salyk.kg [13:56:18]written 0, free lines is 4095 [13:56:18]Connected sock=10 [13:56:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C7 DF 04 01 22 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 B8 00 00 00 F4 03 04 00 0D 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 87 02 00 35 04 06 00 36 0A 78 7B 27 9D 00 FB CB 42 1D 6E A6 21 [13:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 36 21 47 00 1C 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 31 37 35 39 10 04 04 00 46 87 02 00 F4 03 04 00 7F B2 14 67 B6 04 01 00 00 5E B6 55 71 D8 47 F2 3C [13:56:18]CommunicateWithHost err = 0 [13:56:18]CheckOFDResponse [13:56:18]1017 (14) - 77093643461234 [13:56:18]1041 (16) - 0000000000871759 [13:56:18]1040 (4) - 165702 [13:56:18]1012 (4) - 20.10.2024 07:34 [13:56:18]1206 (1) - 0 [13:56:18]OFD Sender: Remove packet 165702 [13:56:18]ProducePacketName [13:56:18]name=ofd_packets/00165702 [13:56:18]NVStorageDeleteData [13:56:19]Write to MH i2c: 01 00 00 A5 F1 96 [13:56:19]Write i2c OK [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: 01 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: 01 07 00 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: 01 07 00 A5 F1 00 00 00 00 00 D0 0C 79 [13:56:19]RasterBufferAndPrint [13:56:19]line [13:56:19]line [13:56:19]line [13:56:19]line [13:56:19]line [13:56:19]written 0, free lines is 3289 [13:56:19]MH_Cut [13:56:19]Write to MH i2c: D1 01 00 AC F1 01 6F [13:56:19]Write i2c OK [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: D1 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: D1 01 00 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: D1 01 00 AC F1 00 6E [13:56:19]Write to MH i2c: 01 00 00 AD F1 9E [13:56:19]Write i2c OK [13:56:19]MH_I2C_Read... [13:56:19]OFD Sender: No OFD packet to send [13:56:19]*** Cut start [13:56:19]*** Partial cut [13:56:19]*** CUTSNS_PIN = 1 [13:56:19]*** CUTSNS_PIN = 0 [13:56:20]*** Brake cut motor [13:56:20]Read from MH i2c: 01 [13:56:20]MH_I2C_Read... [13:56:20]*** Stop cut motor [13:56:20]*** Cut end [13:56:20]Read from MH i2c: 01 07 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: 01 07 00 AD F1 00 00 00 00 00 FF 0F B3 [13:56:20]process_action close_receipt done [13:56:20]requested_data is exist [13:56:20]produce_requested_data [13:56:20]requested_item fm.sn is exist - process it [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 11 00 00 [13:56:20]Write to MH i2c: E2 08 00 AE F1 80 11 00 00 00 00 00 00 19 [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 17 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 17 00 AE F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [13:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:56:20]wFMCommunicate OK [13:56:20]requested_item fd.num is exist - process it [13:56:20]SAM_PROTO_GetFieldsCounters [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 13 00 00 [13:56:20]Write to MH i2c: E2 08 00 AF F1 80 13 00 00 00 00 00 00 1C [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 62 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 62 00 AF F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 46 87 02 00 0E 04 04 00 16 02 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 53 [13:56:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 46 87 02 00 0E 04 04 00 16 02 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 [13:56:20]wFMCommunicate OK [13:56:20]SAM_PROTO_GetFieldsCounters done [13:56:20]requested_item shift.num is exist - process it [13:56:20]requested_item shift.opened is exist - process it [13:56:20]req_shift_opened [13:56:20]FM_GetShiftState [13:56:20]SAM_PROTO_GetShiftState [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 13 01 00 [13:56:20]Write to MH i2c: E2 08 00 B0 F1 80 13 01 00 00 00 00 00 1E [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0E 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0E 00 B0 F1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 66 [13:56:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:56:20]wFMCommunicate OK [13:56:20]SAM_PROTO_GetShiftState done [13:56:20]FM_GetShiftState done [13:56:20]req_shift_opened done [13:56:20]requested_item shift.open_date is exist - process it [13:56:20]req_shift_open_date [13:56:20]req_shift_open_date done [13:56:20]produce_requested_data done [13:56:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165702,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:56:20]process_action_free close_receipt [13:56:20]json_value_free [13:56:20]json_value_free done [13:56:20]process_json_proto returns [13:56:20]Send response to host [13:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165702,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:56:20]free response buf [13:56:20]execute_script done [13:56:20]execute_script returns [13:56:20]free content buf [13:56:20]Sock 9.Close socket [13:56:20]Sock 9.Thread stoped [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:56:59]accept exits with 7 [13:56:59]New connection [13:56:59]New thread 3066920292 created [13:56:59]Thread 3066776932 joined [13:56:59]Waiting for new connection... [13:56:59] Sock 7.Parse request [13:56:59]Sock 7.Check first char [13:56:59]Sock 7.First char is OK [13:56:59]request: POST /json_proto HTTP/1.0 [13:56:59]Method: POST [13:56:59]URL: /json_proto [13:56:59]Method is POST - this is cgi request [13:56:59]url: /json_proto [13:56:59]query_string will be loaded in cgi processing [13:56:59]execute_cgi json_proto POST (null) [13:56:59]execute_cgi path=json_proto method=POST [13:56:59]POST find Content-Length [13:56:59]Host: 172.17.53.195:8080 [13:56:59]Content-Length: 677 [13:56:59]Content-Type: application/json [13:56:59] [13:56:59]POST finish read [13:56:59]Found Content-Length = 677 [13:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.070, "sum" : 406.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 406.00, "total" : 406.00, "payments": [ { "type": 0, "sum" : 406.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:59]execute_script... [13: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)220268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.070, "sum" : 406.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 406.00, "total" : 406.00, "payments": [ { "type": 0, "sum" : 406.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:59]POST & json_proto [13:56:59]process_json_proto [13:56:59]json parsed OK: [13:56:59]protocol is kg_v1.0 [13:56:59]action value=close_receipt [13:56:59]process_action close_receipt [13:56:59]cmd_close_receipt [13:56:59]MH_GetDate [13:56:59]Write to MH i2c: F0 00 00 B1 F1 91 [13:56:59]Write i2c OK [13:56:59]MH_I2C_Read... [13:56:59]Read from MH i2c: F0 [13:56:59]MH_I2C_Read... [13:56:59]Read from MH i2c: F0 09 00 [13:56:59]MH_I2C_Read... [13:56:59]Read from MH i2c: F0 09 00 B1 F1 00 38 0C 15 67 21 48 4A 65 72 [13:56:59]GetLastDocTimeStamp 1729432589 [13:56:59]current date 1729432632 [13:56:59]FM_GetShiftState [13:56:59]SAM_PROTO_GetShiftState [13:56:59]wFMCommunicate request_size=4 [13:56:59]MH_SAM_APDU [13:56:59]CAPDU: 80 13 01 00 [13:56:59]Write to MH i2c: E2 08 00 B2 F1 80 13 01 00 00 00 00 00 20 [13:56:59]Write i2c OK [13:56:59]MH_I2C_Read... [13:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:59]Read from MH i2c: E2 [13:56:59]MH_I2C_Read... [13:56:59]Read from MH i2c: E2 0E 00 [13:56:59]MH_I2C_Read... [13:56:59]Read from MH i2c: E2 0E 00 B2 F1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 68 [13:56:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:56:59]wFMCommunicate OK [13:56:59]SAM_PROTO_GetShiftState done [13:56:59]FM_GetShiftState done [13:56:59]opened in 1729384561 [13:56:59]opened+sec_in_day 1729470961 [13:56:59]quantity*price = 40608 [13:56:59]sum+1 = 40609 [13:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 406.00 Внесено: 406.00 СДАЧА: 0.00 НСП 1% : 3.59 НДС 12% : 43.12 Наличными: 406.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 185 20.10.2024 13:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165703 ФПД: 144027155012013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135712&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165703&fm=144027155012013&tin=02508201610067®Number=0000000000091764&sum=40600 [13:57:00]StoreToDocumentArchive [13:57:00]shift 534 fd 165703 [13:57:00]save to /storage/0534/doc_00165703 [13:57:00]save last doc name /storage/0534/doc_00165703 to /storage/kkm_last_doc_name [13:57:00]save OK [13:57:00]Clear old archive folders... [13:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:00]tlvbuf is 018B0220 [13:57:00]SAM_PROTO_ClearQueue [13:57:00]wFMCommunicate request_size=4 [13:57:00]MH_SAM_APDU [13:57:00]CAPDU: 80 09 00 00 [13:57:00]Write to MH i2c: E2 08 00 BF F1 80 09 00 00 00 00 00 00 22 [13:57:00]Write i2c OK [13:57:00]MH_I2C_Read... [13:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:00]Read from MH i2c: E2 [13:57:00]MH_I2C_Read... [13:57:00]Read from MH i2c: E2 03 00 [13:57:00]MH_I2C_Read... [13:57:00]Read from MH i2c: E2 03 00 BF F1 00 90 00 24 [13:57:00]RAPDU: 90 00 [13:57:00]wFMCommunicate OK [13:57:00]SAM_PROTO_ClearQueue done [13:57:00]KKMCreateOFDPacket [13:57:00]OFDProtocolAddRootSTLVToBuf [13:57:00]FM_MakeSignedData [13:57:00]FM_MakeSignedData [13:57:00]SAM_PROTO_SignData [13:57:00]wFMCommunicate request_size=4 [13:57:00]MH_SAM_APDU [13:57:00]CAPDU: 80 0D 01 02 [13:57:00]Write to MH i2c: E2 08 00 C0 F1 80 0D 01 02 00 00 00 00 2A [13:57:00]Write i2c OK [13:57:00]MH_I2C_Read... [13:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:00]Read from MH i2c: E2 [13:57:00]MH_I2C_Read... [13:57:00]Read from MH i2c: E2 03 00 [13:57:00]MH_I2C_Read... [13:57:00]Read from MH i2c: E2 03 00 C0 F1 00 90 00 25 [13:57:00]RAPDU: 90 00 [13:57:00]wFMCommunicate OK [13:57:00]wFMCommunicate request_size=255 [13:57:00]MH_SAM_APDU [13: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 B6 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 10 00 00 00 00 07 04 06 00 98 9E 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 38 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 87 02 00 35 04 06 00 82 [13:57:00]Write to MH i2c: E2 02 01 C1 F1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 A0 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 10 00 00 00 00 07 04 06 00 98 9E 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 38 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 87 02 00 35 04 06 00 82 00 00 21 [13:57:00]Write i2c OK [13:57:00]MH_I2C_Read... [13:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:01]Read from MH i2c: E2 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: E2 03 00 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: E2 03 00 C1 F1 00 90 00 26 [13:57:01]RAPDU: 90 00 [13:57:01]wFMCommunicate OK [13:57:01]wFMCommunicate request_size=10 [13:57:01]MH_SAM_APDU [13:57:01]CAPDU: 80 0D 02 02 05 FD EF 69 99 AD [13:57:01]Write to MH i2c: E2 0D 00 C2 F1 80 0D 02 02 05 00 FD EF 69 99 AD 00 00 D2 [13:57:01]Write i2c OK [13:57:01]MH_I2C_Read... [13:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:01]Read from MH i2c: E2 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: E2 03 00 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: E2 03 00 C2 F1 00 90 00 27 [13:57:01]RAPDU: 90 00 [13:57:01]wFMCommunicate OK [13:57:01]wFMCommunicate request_size=4 [13:57:01]MH_SAM_APDU [13:57:01]CAPDU: 80 0D 03 02 [13:57:01]Write to MH i2c: E2 08 00 C3 F1 80 0D 03 02 00 00 00 00 2F [13:57:01]Write i2c OK [13:57:01]MH_I2C_Read... [13:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:01]Read from MH i2c: E2 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: E2 0B 00 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: E2 0B 00 C3 F1 00 19 93 62 A3 99 F5 04 38 90 00 AB [13:57:01]RAPDU: 19 93 62 A3 99 F5 04 38 90 00 [13:57:01]wFMCommunicate OK [13:57:01]SAM_PROTO_SignData done [13:57:01]FM_MakeSignedData done [13:57:01]CreateOFDProtocolMessage [13:57:01]wFMCommunicate request_size=4 [13:57:01]MH_SAM_APDU [13:57:01]CAPDU: 80 11 00 00 [13:57:01]Write to MH i2c: E2 08 00 C4 F1 80 11 00 00 00 00 00 00 2F [13:57:01]Write i2c OK [13:57:01]MH_I2C_Read... [13:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:01]Read from MH i2c: E2 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: E2 17 00 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: E2 17 00 C4 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 87 [13:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:57:01]wFMCommunicate OK [13:57:01]CreateOFDProtocolMessage done [13:57:01]OFDSenderStorePacket 165703 [13:57:01]StoreOFDPacket docnum=165703 [13:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 26 4C 07 01 24 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 B6 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 10 00 00 00 00 07 04 06 00 98 9E 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 38 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 87 02 00 35 04 06 00 82 FD EF 69 99 AD 19 93 62 A3 99 F5 04 38 [13:57:01]CheckFolder [13:57:01]dirname=/storage/ofd_packets [13:57:01]CheckFolder done [13:57:01]ProducePacketName [13:57:01]name=ofd_packets/00165703 [13:57:01]NVStorageSaveData ofd_packets/00165703 [13:57:01]File name is /storage/ofd_packets/00165703 [13:57:01]Write 301 bytes [13:57:01]NVStorageSaveData done [13:57:01]OFDSenderStorePacket done [13:57:01]KKMCreateOFDPacket done [13:57:01]NVStorageSaveData kkm_last_timestamp [13:57:01]File name is /storage/kkm_last_timestamp [13:57:01]Write 4 bytes [13:57:01]NVStorageSaveData done [13:57:01]ExternCall_PrintAddStr [13:57:01]wPrintStart [13:57:01]Write to MH i2c: 01 00 00 C5 F1 B6 [13:57:01]Write i2c OK [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: 01 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: 01 07 00 [13:57:01]MH_I2C_Read... [13:57:01]Read from MH i2c: 01 07 00 C5 F1 00 00 00 00 00 FF 0F CB [13:57:01]RasterBufferAndPrint [13:57:01]line Счет N : (1)220268 [13:57:01]line ИНН: 02508201610067 [13:57:01]line Контрольно-Кассовый Чек [13:57:01]line ПРОДАЖА [13:57:01]line ТРК (МРК, ГНК) : 23 [13:57:01]line Товар: 2710124130 [13:57:01]line Аи-92-К-5 [13:57:01]line 6.070 * 66.90 [13:57:01]line = 406.08 [13:57:01]line НДС 12% НСП 1% [13:57:01]line > о реализуемом товаре [13:57:01]line ОКРУГЛЕНИЕ: -0.08 [13:57:01]line ИТОГО: 406.00 [13:57:01]line Внесено: 406.00 [13:57:01]line СДАЧА: 0.00 [13:57:01]line НСП 1% : 3.59 [13:57:01]line НДС 12% : 43.12 [13:57:01]line Наличными: 406.00 [13:57:01]line Безнал.: 0.00 [13:57:01]line Место: АЗС № 161 "Партнер Нефть" [13:57:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:57:01]line СНО: Общий режим [13:57:01]line Чек 185 20.10.2024 13:57 [13:57:01]line Смена: 534 ФФД: 1.0 [13:57:01]line ЗНМ: 0300000104 [13:57:01]line РНМ: 0000000000091764 [13:57:01]line Версия ККМ: 001 [13:57:01]line ФМ: 0000000000871759 [13:57:01]line ФД: 165703 [13:57:01]line ФПД: 144027155012013 [13:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135712&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165703&fm=144027155012013&tin=02508201610067®Number=0000000000091764&sum=40600 [13:57:01]OFD Sender: Processing packet 165703 [packets to send 48, broken 47] [13:57:01]ProducePacketName [13:57:01]name=ofd_packets/00165703 [13:57:01]OFD Sender: To server: pG, [13:57:01]CommunicateWithHost lk.salyk.kg:30040 [13:57:01]ConnectInit lk.salyk.kg [13:57:01]written 0, free lines is 4095 [13:57:01]Connected sock=10 [13: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 31 37 35 39 0F 01 00 00 26 4C 07 01 24 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 B6 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 10 00 00 00 00 07 04 06 00 98 9E 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 38 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 87 02 00 35 04 06 00 82 FD EF 69 99 AD 19 93 62 A3 99 F5 04 38 [13:57:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E3 A4 47 00 40 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 31 37 35 39 10 04 04 00 47 87 02 00 F4 03 04 00 AA B2 14 67 B6 04 01 00 00 10 63 19 49 2A 47 D0 E7 [13:57:02]CommunicateWithHost err = 0 [13:57:02]CheckOFDResponse [13:57:02]1017 (14) - 77093643461234 [13:57:02]1041 (16) - 0000000000871759 [13:57:02]1040 (4) - 165703 [13:57:02]1012 (4) - 20.10.2024 07:35 [13:57:02]1206 (1) - 0 [13:57:02]OFD Sender: Remove packet 165703 [13:57:02]ProducePacketName [13:57:02]name=ofd_packets/00165703 [13:57:02]NVStorageDeleteData [13:57:02]Write to MH i2c: 01 00 00 F0 F1 E1 [13:57:02]Write i2c OK [13:57:02]MH_I2C_Read... [13:57:02]Read from MH i2c: 01 [13:57:02]MH_I2C_Read... [13:57:02]Read from MH i2c: 01 07 00 [13:57:02]MH_I2C_Read... [13:57:02]Read from MH i2c: 01 07 00 F0 F1 00 00 00 00 00 CD 0C C1 [13:57:02]RasterBufferAndPrint [13:57:02]line [13:57:02]line [13:57:02]line [13:57:02]line [13:57:02]line [13:57:02]written 0, free lines is 3286 [13:57:02]MH_Cut [13:57:02]Write to MH i2c: D1 01 00 F7 F1 01 BA [13:57:02]Write i2c OK [13:57:02]MH_I2C_Read... [13:57:02]Read from MH i2c: D1 [13:57:02]MH_I2C_Read... [13:57:02]Read from MH i2c: D1 01 00 [13:57:02]MH_I2C_Read... [13:57:02]Read from MH i2c: D1 01 00 F7 F1 00 B9 [13:57:02]Write to MH i2c: 01 00 00 F8 F1 E9 [13:57:02]Write i2c OK [13:57:02]MH_I2C_Read... [13:57:02]OFD Sender: No OFD packet to send [13:57:02]*** Cut start [13:57:02]*** Partial cut [13:57:02]*** CUTSNS_PIN = 1 [13:57:03]*** CUTSNS_PIN = 0 [13:57:03]*** Brake cut motor [13:57:03]Read from MH i2c: 01 [13:57:03]MH_I2C_Read... [13:57:03]*** Stop cut motor [13:57:03]*** Cut end [13:57:03]Read from MH i2c: 01 07 00 [13:57:03]MH_I2C_Read... [13:57:03]Read from MH i2c: 01 07 00 F8 F1 00 00 00 00 00 FF 0F FE [13:57:03]process_action close_receipt done [13:57:03]requested_data is exist [13:57:03]produce_requested_data [13:57:03]requested_item fm.sn is exist - process it [13:57:03]wFMCommunicate request_size=4 [13:57:03]MH_SAM_APDU [13:57:03]CAPDU: 80 11 00 00 [13:57:03]Write to MH i2c: E2 08 00 F9 F1 80 11 00 00 00 00 00 00 64 [13:57:03]Write i2c OK [13:57:03]MH_I2C_Read... [13:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:03]Read from MH i2c: E2 [13:57:03]MH_I2C_Read... [13:57:03]Read from MH i2c: E2 17 00 [13:57:03]MH_I2C_Read... [13:57:03]Read from MH i2c: E2 17 00 F9 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [13:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:57:03]wFMCommunicate OK [13:57:03]requested_item fd.num is exist - process it [13:57:03]SAM_PROTO_GetFieldsCounters [13:57:03]wFMCommunicate request_size=4 [13:57:03]MH_SAM_APDU [13:57:03]CAPDU: 80 13 00 00 [13:57:03]Write to MH i2c: E2 08 00 FA F1 80 13 00 00 00 00 00 00 67 [13:57:03]Write i2c OK [13:57:03]MH_I2C_Read... [13:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:03]Read from MH i2c: E2 [13:57:03]MH_I2C_Read... [13:57:03]Read from MH i2c: E2 62 00 [13:57:03]MH_I2C_Read... [13:57:03]Read from MH i2c: E2 62 00 FA F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 47 87 02 00 0E 04 04 00 16 02 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 A2 [13: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 47 87 02 00 0E 04 04 00 16 02 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 [13:57:03]wFMCommunicate OK [13:57:03]SAM_PROTO_GetFieldsCounters done [13:57:03]requested_item shift.num is exist - process it [13:57:03]requested_item shift.opened is exist - process it [13:57:03]req_shift_opened [13:57:03]FM_GetShiftState [13:57:03]SAM_PROTO_GetShiftState [13:57:03]wFMCommunicate request_size=4 [13:57:03]MH_SAM_APDU [13:57:03]CAPDU: 80 13 01 00 [13:57:03]Write to MH i2c: E2 08 00 FB F1 80 13 01 00 00 00 00 00 69 [13:57:03]Write i2c OK [13:57:03]MH_I2C_Read... [13:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:03]Read from MH i2c: E2 [13:57:03]MH_I2C_Read... [13:57:03]Read from MH i2c: E2 0E 00 [13:57:03]MH_I2C_Read... [13:57:03]Read from MH i2c: E2 0E 00 FB F1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B1 [13:57:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:57:03]wFMCommunicate OK [13:57:03]SAM_PROTO_GetShiftState done [13:57:03]FM_GetShiftState done [13:57:03]req_shift_opened done [13:57:03]requested_item shift.open_date is exist - process it [13:57:03]req_shift_open_date [13:57:03]req_shift_open_date done [13:57:03]produce_requested_data done [13:57:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165703,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:57:03]process_action_free close_receipt [13:57:03]json_value_free [13:57:03]json_value_free done [13:57:03]process_json_proto returns [13:57:03]Send response to host [13:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165703,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:57:03]free response buf [13:57:03]execute_script done [13:57:03]execute_script returns [13:57:03]free content buf [13:57:03]Sock 7.Close socket [13:57:03]Sock 7.Thread stoped [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:46]accept exits with 9 [13:58:46]New connection [13:58:46]New thread 3066776932 created [13:58:46]Thread 3066920292 joined [13:58:46]Waiting for new connection... [13:58:46] Sock 9.Parse request [13:58:46]Sock 9.Check first char [13:58:46]Sock 9.First char is OK [13:58:46]request: POST /json_proto HTTP/1.0 [13:58:46]Method: POST [13:58:46]URL: /json_proto [13:58:46]Method is POST - this is cgi request [13:58:46]url: /json_proto [13:58:46]query_string will be loaded in cgi processing [13:58:46]execute_cgi json_proto POST (null) [13:58:46]execute_cgi path=json_proto method=POST [13:58:46]POST find Content-Length [13:58:46]Host: 172.17.53.195:8080 [13:58:46]Content-Length: 682 [13:58:46]Content-Type: application/json [13:58:46] [13:58:46]POST finish read [13:58:46]Found Content-Length = 682 [13:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:46]execute_script... [13:58: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)220269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:46]POST & json_proto [13:58:46]process_json_proto [13:58:46]json parsed OK: [13:58:46]protocol is kg_v1.0 [13:58:46]action value=close_receipt [13:58:46]process_action close_receipt [13:58:46]cmd_close_receipt [13:58:46]MH_GetDate [13:58:46]Write to MH i2c: F0 00 00 FC F1 DC [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 09 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 09 00 FC F1 00 A3 0C 15 67 21 48 4A 65 28 [13:58:46]GetLastDocTimeStamp 1729432632 [13:58:46]current date 1729432739 [13:58:46]FM_GetShiftState [13:58:46]SAM_PROTO_GetShiftState [13:58:46]wFMCommunicate request_size=4 [13:58:46]MH_SAM_APDU [13:58:46]CAPDU: 80 13 01 00 [13:58:46]Write to MH i2c: E2 08 00 FD F1 80 13 01 00 00 00 00 00 6B [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:46]Read from MH i2c: E2 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 0E 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 0E 00 FD F1 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B3 [13:58:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:58:46]wFMCommunicate OK [13:58:46]SAM_PROTO_GetShiftState done [13:58:46]FM_GetShiftState done [13:58:46]opened in 1729384561 [13:58:46]opened+sec_in_day 1729470961 [13:58:46]quantity*price = 100021 [13:58:46]sum+1 = 100023 [13:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 186 20.10.2024 13:58 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165704 ФПД: 24920694748653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135859&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165704&fm=24920694748653&tin=02508201610067®Number=0000000000091764&sum=100000 [13:58:47]StoreToDocumentArchive [13:58:47]shift 534 fd 165704 [13:58:47]save to /storage/0534/doc_00165704 [13:58:47]save last doc name /storage/0534/doc_00165704 to /storage/kkm_last_doc_name [13:58:47]save OK [13:58:47]Clear old archive folders... [13:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:47]tlvbuf is 0162F040 [13:58:47]SAM_PROTO_ClearQueue [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 09 00 00 [13:58:47]Write to MH i2c: E2 08 00 0A F2 80 09 00 00 00 00 00 00 6E [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 0A F2 00 90 00 70 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]SAM_PROTO_ClearQueue done [13:58:47]KKMCreateOFDPacket [13:58:47]OFDProtocolAddRootSTLVToBuf [13:58:47]FM_MakeSignedData [13:58:47]FM_MakeSignedData [13:58:47]SAM_PROTO_SignData [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 01 02 [13:58:47]Write to MH i2c: E2 08 00 0B F2 80 0D 01 02 00 00 00 00 76 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 0B F2 00 90 00 71 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]wFMCommunicate request_size=255 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 A3 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 87 02 00 35 04 06 00 16 [13:58:47]Write to MH i2c: E2 02 01 0C F2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 A3 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 87 02 00 35 04 06 00 16 00 00 0D [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 03 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 03 00 0C F2 00 90 00 72 [13:58:48]RAPDU: 90 00 [13:58:48]wFMCommunicate OK [13:58:48]wFMCommunicate request_size=10 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 0D 02 02 05 AA 4D 28 75 ED [13:58:48]Write to MH i2c: E2 0D 00 0D F2 80 0D 02 02 05 00 AA 4D 28 75 ED 00 00 04 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 03 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 03 00 0D F2 00 90 00 73 [13:58:48]RAPDU: 90 00 [13:58:48]wFMCommunicate OK [13:58:48]wFMCommunicate request_size=4 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 0D 03 02 [13:58:48]Write to MH i2c: E2 08 00 0E F2 80 0D 03 02 00 00 00 00 7B [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 0B 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 0B 00 0E F2 00 63 51 B3 08 A7 AB 67 FC 90 00 A0 [13:58:48]RAPDU: 63 51 B3 08 A7 AB 67 FC 90 00 [13:58:48]wFMCommunicate OK [13:58:48]SAM_PROTO_SignData done [13:58:48]FM_MakeSignedData done [13:58:48]CreateOFDProtocolMessage [13:58:48]wFMCommunicate request_size=4 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 11 00 00 [13:58:48]Write to MH i2c: E2 08 00 0F F2 80 11 00 00 00 00 00 00 7B [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 17 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 17 00 0F F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [13:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:58:48]wFMCommunicate OK [13:58:48]CreateOFDProtocolMessage done [13:58:48]OFDSenderStorePacket 165704 [13:58:48]StoreOFDPacket docnum=165704 [13:58:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F D0 07 01 C4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 A3 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 87 02 00 35 04 06 00 16 AA 4D 28 75 ED 63 51 B3 08 A7 AB 67 FC [13:58:48]CheckFolder [13:58:48]dirname=/storage/ofd_packets [13:58:48]CheckFolder done [13:58:48]ProducePacketName [13:58:48]name=ofd_packets/00165704 [13:58:48]NVStorageSaveData ofd_packets/00165704 [13:58:48]File name is /storage/ofd_packets/00165704 [13:58:48]Write 301 bytes [13:58:48]NVStorageSaveData done [13:58:48]OFDSenderStorePacket done [13:58:48]KKMCreateOFDPacket done [13:58:48]NVStorageSaveData kkm_last_timestamp [13:58:48]File name is /storage/kkm_last_timestamp [13:58:48]Write 4 bytes [13:58:48]NVStorageSaveData done [13:58:48]ExternCall_PrintAddStr [13:58:48]wPrintStart [13:58:48]Write to MH i2c: 01 00 00 10 F2 02 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 10 F2 00 00 00 00 00 FF 0F 17 [13:58:48]RasterBufferAndPrint [13:58:48]line Счет N : (1)220269 [13:58:48]line ИНН: 02508201610067 [13:58:48]line Контрольно-Кассовый Чек [13:58:48]line ПРОДАЖА [13:58:48]line ТРК (МРК, ГНК) : 34 [13:58:48]line Товар: 2710124500 [13:58:48]line Аи-95-К-5 [13:58:48]line 13.480 * 74.20 [13:58:48]line = 1000.22 [13:58:48]line НДС 12% НСП 1% [13:58:48]line > о реализуемом товаре [13:58:48]line ОКРУГЛЕНИЕ: -0.22 [13:58:48]line ИТОГО: 1000.00 [13:58:48]line Внесено: 1000.00 [13:58:48]line СДАЧА: 0.00 [13:58:48]line НСП 1% : 8.85 [13:58:48]line НДС 12% : 106.22 [13:58:48]line Наличными: 1000.00 [13:58:48]line Безнал.: 0.00 [13:58:48]line Место: АЗС № 161 "Партнер Нефть" [13:58:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:58:48]line СНО: Общий режим [13:58:48]line Чек 186 20.10.2024 13:58 [13:58:48]line Смена: 534 ФФД: 1.0 [13:58:48]line ЗНМ: 0300000104 [13:58:48]line РНМ: 0000000000091764 [13:58:48]line Версия ККМ: 001 [13:58:48]line ФМ: 0000000000871759 [13:58:48]line ФД: 165704 [13:58:48]line ФПД: 24920694748653 [13:58:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135859&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165704&fm=24920694748653&tin=02508201610067®Number=0000000000091764&sum=100000 [13:58:48]OFD Sender: Processing packet 165704 [packets to send 48, broken 47] [13:58:48]ProducePacketName [13:58:48]name=ofd_packets/00165704 [13:58:48]OFD Sender: To server: pG, [13:58:48]CommunicateWithHost lk.salyk.kg:30040 [13:58:48]ConnectInit lk.salyk.kg [13:58:48]written 0, free lines is 4095 [13:58:48]Connected sock=10 [13:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F D0 07 01 C4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 A3 0C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 87 02 00 35 04 06 00 16 AA 4D 28 75 ED 63 51 B3 08 A7 AB 67 FC [13:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B5 70 47 00 13 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 31 37 35 39 10 04 04 00 48 87 02 00 F4 03 04 00 15 B3 14 67 B6 04 01 00 00 AA 70 1C 39 CD 4A 08 ED [13:58:48]CommunicateWithHost err = 0 [13:58:48]CheckOFDResponse [13:58:48]1017 (14) - 77093643461234 [13:58:48]1041 (16) - 0000000000871759 [13:58:48]1040 (4) - 165704 [13:58:48]1012 (4) - 20.10.2024 07:36 [13:58:48]1206 (1) - 0 [13:58:48]OFD Sender: Remove packet 165704 [13:58:48]ProducePacketName [13:58:48]name=ofd_packets/00165704 [13:58:48]NVStorageDeleteData [13:58:49]Write to MH i2c: 01 00 00 3B F2 2D [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: 01 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: 01 07 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: 01 07 00 3B F2 00 00 00 00 00 CF 0C 0F [13:58:49]RasterBufferAndPrint [13:58:49]line [13:58:49]line [13:58:49]line [13:58:49]line [13:58:49]line [13:58:49]written 0, free lines is 3284 [13:58:49]MH_Cut [13:58:49]Write to MH i2c: D1 01 00 42 F2 01 06 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: D1 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: D1 01 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: D1 01 00 42 F2 00 05 [13:58:49]Write to MH i2c: 01 00 00 43 F2 35 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]OFD Sender: No OFD packet to send [13:58:49]*** Cut start [13:58:49]*** Partial cut [13:58:49]*** CUTSNS_PIN = 1 [13:58:49]*** CUTSNS_PIN = 0 [13:58:50]*** Brake cut motor [13:58:50]Read from MH i2c: 01 [13:58:50]MH_I2C_Read... [13:58:50]*** Stop cut motor [13:58:50]*** Cut end [13:58:50]Read from MH i2c: 01 07 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: 01 07 00 43 F2 00 00 00 00 00 FF 0F 4A [13:58:50]process_action close_receipt done [13:58:50]requested_data is exist [13:58:50]produce_requested_data [13:58:50]requested_item fm.sn is exist - process it [13:58:50]wFMCommunicate request_size=4 [13:58:50]MH_SAM_APDU [13:58:50]CAPDU: 80 11 00 00 [13:58:50]Write to MH i2c: E2 08 00 44 F2 80 11 00 00 00 00 00 00 B0 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:50]Read from MH i2c: E2 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 17 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 17 00 44 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [13:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:58:50]wFMCommunicate OK [13:58:50]requested_item fd.num is exist - process it [13:58:50]SAM_PROTO_GetFieldsCounters [13:58:50]wFMCommunicate request_size=4 [13:58:50]MH_SAM_APDU [13:58:50]CAPDU: 80 13 00 00 [13:58:50]Write to MH i2c: E2 08 00 45 F2 80 13 00 00 00 00 00 00 B3 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:50]Read from MH i2c: E2 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 62 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 62 00 45 F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 48 87 02 00 0E 04 04 00 16 02 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 F2 [13:58:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 48 87 02 00 0E 04 04 00 16 02 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 [13:58:50]wFMCommunicate OK [13:58:50]SAM_PROTO_GetFieldsCounters done [13:58:50]requested_item shift.num is exist - process it [13:58:50]requested_item shift.opened is exist - process it [13:58:50]req_shift_opened [13:58:50]FM_GetShiftState [13:58:50]SAM_PROTO_GetShiftState [13:58:50]wFMCommunicate request_size=4 [13:58:50]MH_SAM_APDU [13:58:50]CAPDU: 80 13 01 00 [13:58:50]Write to MH i2c: E2 08 00 46 F2 80 13 01 00 00 00 00 00 B5 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:50]Read from MH i2c: E2 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 0E 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 0E 00 46 F2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FD [13:58:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [13:58:50]wFMCommunicate OK [13:58:50]SAM_PROTO_GetShiftState done [13:58:50]FM_GetShiftState done [13:58:50]req_shift_opened done [13:58:50]requested_item shift.open_date is exist - process it [13:58:50]req_shift_open_date [13:58:50]req_shift_open_date done [13:58:50]produce_requested_data done [13:58:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165704,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [13:58:50]process_action_free close_receipt [13:58:50]json_value_free [13:58:50]json_value_free done [13:58:50]process_json_proto returns [13:58:50]Send response to host [13:58:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165704,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [13:58:50]free response buf [13:58:50]execute_script done [13:58:50]execute_script returns [13:58:50]free content buf [13:58:50]Sock 9.Close socket [13:58:50]Sock 9.Thread stoped [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:12]accept exits with 7 [14:02:12]New connection [14:02:12]New thread 3066920292 created [14:02:12]Thread 3066776932 joined [14:02:12]Waiting for new connection... [14:02:12] Sock 7.Parse request [14:02:12]Sock 7.Check first char [14:02:12]Sock 7.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.53.195:8080 [14:02:12]Content-Length: 677 [14:02:12]Content-Type: application/json [14:02:12] [14:02:12]POST finish read [14:02:12]Found Content-Length = 677 [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)220270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "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)220270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "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 47 F2 28 [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 47 F2 00 71 0D 15 67 21 48 4A 65 43 [14:02:12]GetLastDocTimeStamp 1729432739 [14:02:12]current date 1729432945 [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 48 F2 80 13 01 00 00 00 00 00 B7 [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 48 F2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FF [14:02:12]RAPDU: 09 00 01 71 50 14 67 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 1729384561 [14:02:12]opened+sec_in_day 1729470961 [14:02:12]quantity*price = 49974 [14:02:12]sum+1 = 49975 [14:02:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 187 20.10.2024 14:02 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165705 ФПД: 173141941044102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140225&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165705&fm=173141941044102&tin=02508201610067®Number=0000000000091764&sum=49900 [14:02:13]StoreToDocumentArchive [14:02:13]shift 534 fd 165705 [14:02:13]save to /storage/0534/doc_00165705 [14:02:13]save last doc name /storage/0534/doc_00165705 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=251 [14:02:13]tlvbuf is 01839680 [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 55 F2 80 09 00 00 00 00 00 00 B9 [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 55 F2 00 90 00 BB [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 56 F2 80 0D 01 02 00 00 00 00 C1 [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 56 F2 00 90 00 BC [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 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 71 0D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 87 02 00 35 04 06 00 9D [14:02:13]Write to MH i2c: E2 02 01 57 F2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 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 71 0D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 87 02 00 35 04 06 00 9D 00 00 74 [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 57 F2 00 90 00 BD [14:02:14]RAPDU: 90 00 [14:02:14]wFMCommunicate OK [14:02:14]wFMCommunicate request_size=10 [14:02:14]MH_SAM_APDU [14:02:14]CAPDU: 80 0D 02 02 05 78 BF E4 43 86 [14:02:14]Write to MH i2c: E2 0D 00 58 F2 80 0D 02 02 05 00 78 BF E4 43 86 00 00 B2 [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 58 F2 00 90 00 BE [14:02:14]RAPDU: 90 00 [14:02:14]wFMCommunicate OK [14:02:14]wFMCommunicate request_size=4 [14:02:14]MH_SAM_APDU [14:02:14]CAPDU: 80 0D 03 02 [14:02:14]Write to MH i2c: E2 08 00 59 F2 80 0D 03 02 00 00 00 00 C6 [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 0B 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 0B 00 59 F2 00 74 61 11 DF 00 5C 30 13 90 00 2B [14:02:14]RAPDU: 74 61 11 DF 00 5C 30 13 90 00 [14:02:14]wFMCommunicate OK [14:02:14]SAM_PROTO_SignData done [14:02:14]FM_MakeSignedData done [14:02:14]CreateOFDProtocolMessage [14:02:14]wFMCommunicate request_size=4 [14:02:14]MH_SAM_APDU [14:02:14]CAPDU: 80 11 00 00 [14:02:14]Write to MH i2c: E2 08 00 5A F2 80 11 00 00 00 00 00 00 C6 [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 17 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 17 00 5A F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [14:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:02:14]wFMCommunicate OK [14:02:14]CreateOFDProtocolMessage done [14:02:14]OFDSenderStorePacket 165705 [14:02:14]StoreOFDPacket docnum=165705 [14:02:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 02 76 07 01 F4 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 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 71 0D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 87 02 00 35 04 06 00 9D 78 BF E4 43 86 74 61 11 DF 00 5C 30 13 [14:02:14]CheckFolder [14:02:14]dirname=/storage/ofd_packets [14:02:14]CheckFolder done [14:02:14]ProducePacketName [14:02:14]name=ofd_packets/00165705 [14:02:14]NVStorageSaveData ofd_packets/00165705 [14:02:14]File name is /storage/ofd_packets/00165705 [14:02:14]Write 301 bytes [14:02:14]NVStorageSaveData done [14:02:14]OFDSenderStorePacket done [14:02:14]KKMCreateOFDPacket done [14:02:14]NVStorageSaveData kkm_last_timestamp [14:02:14]File name is /storage/kkm_last_timestamp [14:02:14]Write 4 bytes [14:02:14]NVStorageSaveData done [14:02:14]ExternCall_PrintAddStr [14:02:14]wPrintStart [14:02:14]Write to MH i2c: 01 00 00 5B F2 4D [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 5B F2 00 00 00 00 00 FF 0F 62 [14:02:14]RasterBufferAndPrint [14:02:14]line Счет N : (1)220270 [14:02:14]line ИНН: 02508201610067 [14:02:14]line Контрольно-Кассовый Чек [14:02:14]line ПРОДАЖА [14:02:14]line ТРК (МРК, ГНК) : 13 [14:02:14]line Товар: 2710124130 [14:02:14]line Аи-92-К-5 [14:02:14]line 7.470 * 66.90 [14:02:14]line = 499.74 [14:02:14]line НДС 12% НСП 1% [14:02:14]line > о реализуемом товаре [14:02:14]line ОКРУГЛЕНИЕ: -0.74 [14:02:14]line ИТОГО: 499.00 [14:02:14]line Внесено: 500.00 [14:02:14]line СДАЧА: 1.00 [14:02:14]line НСП 1% : 4.42 [14:02:14]line НДС 12% : 53.07 [14:02:14]line Наличными: 499.00 [14:02:14]line Безнал.: 0.00 [14:02:14]line Место: АЗС № 161 "Партнер Нефть" [14:02:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:02:14]line СНО: Общий режим [14:02:14]line Чек 187 20.10.2024 14:02 [14:02:14]line Смена: 534 ФФД: 1.0 [14:02:14]line ЗНМ: 0300000104 [14:02:14]line РНМ: 0000000000091764 [14:02:14]line Версия ККМ: 001 [14:02:14]line ФМ: 0000000000871759 [14:02:14]line ФД: 165705 [14:02:14]line ФПД: 173141941044102 [14:02:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140225&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165705&fm=173141941044102&tin=02508201610067®Number=0000000000091764&sum=49900 [14:02:14]OFD Sender: Processing packet 165705 [packets to send 48, broken 47] [14:02:14]ProducePacketName [14:02:14]name=ofd_packets/00165705 [14:02:14]OFD Sender: To server: pG, [14:02:14]CommunicateWithHost lk.salyk.kg:30040 [14:02:14]ConnectInit lk.salyk.kg [14:02:14]written 0, free lines is 4095 [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 31 37 35 39 0F 01 00 00 02 76 07 01 F4 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 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 71 0D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 87 02 00 35 04 06 00 9D 78 BF E4 43 86 74 61 11 DF 00 5C 30 13 [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 31 37 35 39 4F 00 00 00 85 19 47 00 92 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 87 02 00 F4 03 04 00 E2 B3 14 67 B6 04 01 00 00 27 C0 86 CF ED 56 48 12 [14:02:14]CommunicateWithHost err = 0 [14:02:14]CheckOFDResponse [14:02:14]1017 (14) - 77093643461234 [14:02:14]1041 (16) - 0000000000871759 [14:02:14]1040 (4) - 165705 [14:02:14]1012 (4) - 20.10.2024 07:40 [14:02:14]1206 (1) - 0 [14:02:14]OFD Sender: Remove packet 165705 [14:02:14]ProducePacketName [14:02:14]name=ofd_packets/00165705 [14:02:14]NVStorageDeleteData [14:02:15]Write to MH i2c: 01 00 00 86 F2 78 [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: 01 [14:02:15]MH_I2C_Read... [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 86 F2 00 00 00 00 00 D0 0C 5B [14:02:15]RasterBufferAndPrint [14:02:15]line [14:02:15]line [14:02:15]line [14:02:15]line [14:02:15]line [14:02:15]written 0, free lines is 3287 [14:02:15]MH_Cut [14:02:15]Write to MH i2c: D1 01 00 8D F2 01 51 [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: D1 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: D1 01 00 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: D1 01 00 8D F2 00 50 [14:02:15]Write to MH i2c: 01 00 00 8E F2 80 [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]OFD Sender: No OFD packet to send [14:02:15]*** Cut start [14:02:15]*** Partial cut [14:02:15]*** CUTSNS_PIN = 1 [14:02:15]*** CUTSNS_PIN = 0 [14:02:16]*** Brake cut motor [14:02:16]Read from MH i2c: 01 [14:02:16]MH_I2C_Read... [14:02:16]*** Stop cut motor [14:02:16]*** Cut end [14:02:16]Read from MH i2c: 01 07 00 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: 01 07 00 8E F2 00 00 00 00 00 FF 0F 95 [14:02:16]process_action close_receipt done [14:02:16]requested_data is exist [14:02:16]produce_requested_data [14:02:16]requested_item fm.sn is exist - process it [14:02:16]wFMCommunicate request_size=4 [14:02:16]MH_SAM_APDU [14:02:16]CAPDU: 80 11 00 00 [14:02:16]Write to MH i2c: E2 08 00 8F F2 80 11 00 00 00 00 00 00 FB [14:02:16]Write i2c OK [14:02:16]MH_I2C_Read... [14:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:16]Read from MH i2c: E2 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 17 00 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 17 00 8F F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [14:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:02:16]wFMCommunicate OK [14:02:16]requested_item fd.num is exist - process it [14:02:16]SAM_PROTO_GetFieldsCounters [14:02:16]wFMCommunicate request_size=4 [14:02:16]MH_SAM_APDU [14:02:16]CAPDU: 80 13 00 00 [14:02:16]Write to MH i2c: E2 08 00 90 F2 80 13 00 00 00 00 00 00 FE [14:02:16]Write i2c OK [14:02:16]MH_I2C_Read... [14:02:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:16]Read from MH i2c: E2 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 62 00 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 62 00 90 F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 49 87 02 00 0E 04 04 00 16 02 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 41 [14:02:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 49 87 02 00 0E 04 04 00 16 02 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:02:16]wFMCommunicate OK [14:02:16]SAM_PROTO_GetFieldsCounters done [14:02:16]requested_item shift.num is exist - process it [14:02:16]requested_item shift.opened is exist - process it [14:02:16]req_shift_opened [14:02:16]FM_GetShiftState [14:02:16]SAM_PROTO_GetShiftState [14:02:16]wFMCommunicate request_size=4 [14:02:16]MH_SAM_APDU [14:02:16]CAPDU: 80 13 01 00 [14:02:16]Write to MH i2c: E2 08 00 91 F2 80 13 01 00 00 00 00 00 00 [14:02:16]Write i2c OK [14:02:16]MH_I2C_Read... [14:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:16]Read from MH i2c: E2 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 0E 00 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 0E 00 91 F2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 48 [14:02:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:02:16]wFMCommunicate OK [14:02:16]SAM_PROTO_GetShiftState done [14:02:16]FM_GetShiftState done [14:02:16]req_shift_opened done [14:02:16]requested_item shift.open_date is exist - process it [14:02:16]req_shift_open_date [14:02:16]req_shift_open_date done [14:02:16]produce_requested_data done [14:02:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165705,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:02:16]process_action_free close_receipt [14:02:16]json_value_free [14:02:16]json_value_free done [14:02:16]process_json_proto returns [14:02:16]Send response to host [14:02:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165705,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:02:16]free response buf [14:02:16]execute_script done [14:02:16]execute_script returns [14:02:16]free content buf [14:02:16]Sock 7.Close socket [14:02:16]Sock 7.Thread stoped [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [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:31]accept exits with 9 [14:05:31]New connection [14:05:31]New thread 3066776932 created [14:05:31]Thread 3066920292 joined [14:05:31]Waiting for new connection... [14:05:31] Sock 9.Parse request [14:05:31]Sock 9.Check first char [14:05:31]Sock 9.First char is OK [14:05:31]request: POST /json_proto HTTP/1.0 [14:05:31]Method: POST [14:05:31]URL: /json_proto [14:05:31]Method is POST - this is cgi request [14:05:31]url: /json_proto [14:05:31]query_string will be loaded in cgi processing [14:05:31]execute_cgi json_proto POST (null) [14:05:31]execute_cgi path=json_proto method=POST [14:05:31]POST find Content-Length [14:05:31]Host: 172.17.53.195:8080 [14:05:31]Content-Length: 789 [14:05:31]Content-Type: application/json [14:05:31] [14:05:31]POST finish read [14:05:31]Found Content-Length = 789 [14:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:31]execute_script... [14:05: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)220271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:31]POST & json_proto [14:05:31]process_json_proto [14:05:31]json parsed OK: [14:05:31]protocol is kg_v1.0 [14:05:31]action value=close_receipt [14:05:31]process_action close_receipt [14:05:31]cmd_close_receipt [14:05:31]MH_GetDate [14:05:31]Write to MH i2c: F0 00 00 92 F2 73 [14:05:31]Write i2c OK [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: F0 [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: F0 09 00 [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: F0 09 00 92 F2 00 38 0E 15 67 21 48 4A 65 56 [14:05:31]GetLastDocTimeStamp 1729432945 [14:05:31]current date 1729433144 [14:05:31]FM_GetShiftState [14:05:31]SAM_PROTO_GetShiftState [14:05:31]wFMCommunicate request_size=4 [14:05:31]MH_SAM_APDU [14:05:31]CAPDU: 80 13 01 00 [14:05:31]Write to MH i2c: E2 08 00 93 F2 80 13 01 00 00 00 00 00 02 [14:05:31]Write i2c OK [14:05:31]MH_I2C_Read... [14:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:31]Read from MH i2c: E2 [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: E2 0E 00 [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: E2 0E 00 93 F2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4A [14:05:31]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:05:31]wFMCommunicate OK [14:05:31]SAM_PROTO_GetShiftState done [14:05:31]FM_GetShiftState done [14:05:31]opened in 1729384561 [14:05:31]opened+sec_in_day 1729470961 [14:05:31]quantity*price = 0 [14:05:31]sum+1 = 1 [14:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 188 20.10.2024 14:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165706 ФПД: 249892930448741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140544&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165706&fm=249892930448741&tin=02508201610067®Number=0000000000091764&sum=0 [14:05:32]StoreToDocumentArchive [14:05:32]shift 534 fd 165706 [14:05:32]save to /storage/0534/doc_00165706 [14:05:32]save last doc name /storage/0534/doc_00165706 to /storage/kkm_last_doc_name [14:05:32]save OK [14:05:32]Clear old archive folders... [14:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:32]tlvbuf is 0162EE90 [14:05:32]SAM_PROTO_ClearQueue [14:05:32]wFMCommunicate request_size=4 [14:05:32]MH_SAM_APDU [14:05:32]CAPDU: 80 09 00 00 [14:05:32]Write to MH i2c: E2 08 00 A0 F2 80 09 00 00 00 00 00 00 04 [14:05:32]Write i2c OK [14:05:32]MH_I2C_Read... [14:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:32]Read from MH i2c: E2 [14:05:32]MH_I2C_Read... [14:05:32]Read from MH i2c: E2 03 00 [14:05:32]MH_I2C_Read... [14:05:32]Read from MH i2c: E2 03 00 A0 F2 00 90 00 06 [14:05:32]RAPDU: 90 00 [14:05:32]wFMCommunicate OK [14:05:32]SAM_PROTO_ClearQueue done [14:05:32]KKMCreateOFDPacket [14:05:32]OFDProtocolAddRootSTLVToBuf [14:05:32]FM_MakeSignedData [14:05:32]FM_MakeSignedData [14:05:32]SAM_PROTO_SignData [14:05:32]wFMCommunicate request_size=4 [14:05:32]MH_SAM_APDU [14:05:32]CAPDU: 80 0D 01 02 [14:05:32]Write to MH i2c: E2 08 00 A1 F2 80 0D 01 02 00 00 00 00 0C [14:05:32]Write i2c OK [14:05:32]MH_I2C_Read... [14:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:32]Read from MH i2c: E2 [14:05:32]MH_I2C_Read... [14:05:32]Read from MH i2c: E2 03 00 [14:05:32]MH_I2C_Read... [14:05:32]Read from MH i2c: E2 03 00 A1 F2 00 90 00 07 [14:05:32]RAPDU: 90 00 [14:05:32]wFMCommunicate OK [14:05:32]wFMCommunicate request_size=255 [14:05:32]MH_SAM_APDU [14:05: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 38 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 87 02 00 35 04 06 00 E3 46 BB 59 [14:05:32]Write to MH i2c: E2 02 01 A2 F2 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 38 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 87 02 00 35 04 06 00 E3 46 BB 59 00 00 06 [14:05:32]Write i2c OK [14:05:32]MH_I2C_Read... [14:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:32]Read from MH i2c: E2 [14:05:32]MH_I2C_Read... [14:05:32]Read from MH i2c: E2 03 00 [14:05:32]MH_I2C_Read... [14:05:32]Read from MH i2c: E2 03 00 A2 F2 00 90 00 08 [14:05:32]RAPDU: 90 00 [14:05:32]wFMCommunicate OK [14:05:32]wFMCommunicate request_size=7 [14:05:32]MH_SAM_APDU [14:05:32]CAPDU: 80 0D 02 02 02 ED 65 [14:05:32]Write to MH i2c: E2 0A 00 A3 F2 80 0D 02 02 02 00 ED 65 00 00 65 [14:05:32]Write i2c OK [14:05:32]MH_I2C_Read... [14:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:33]Read from MH i2c: E2 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: E2 03 00 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: E2 03 00 A3 F2 00 90 00 09 [14:05:33]RAPDU: 90 00 [14:05:33]wFMCommunicate OK [14:05:33]wFMCommunicate request_size=4 [14:05:33]MH_SAM_APDU [14:05:33]CAPDU: 80 0D 03 02 [14:05:33]Write to MH i2c: E2 08 00 A4 F2 80 0D 03 02 00 00 00 00 11 [14:05:33]Write i2c OK [14:05:33]MH_I2C_Read... [14:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:33]Read from MH i2c: E2 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: E2 0B 00 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: E2 0B 00 A4 F2 00 3C 38 07 94 F5 F6 D4 0F 90 00 EF [14:05:33]RAPDU: 3C 38 07 94 F5 F6 D4 0F 90 00 [14:05:33]wFMCommunicate OK [14:05:33]SAM_PROTO_SignData done [14:05:33]FM_MakeSignedData done [14:05:33]CreateOFDProtocolMessage [14:05:33]wFMCommunicate request_size=4 [14:05:33]MH_SAM_APDU [14:05:33]CAPDU: 80 11 00 00 [14:05:33]Write to MH i2c: E2 08 00 A5 F2 80 11 00 00 00 00 00 00 11 [14:05:33]Write i2c OK [14:05:33]MH_I2C_Read... [14:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:33]Read from MH i2c: E2 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: E2 17 00 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: E2 17 00 A5 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 69 [14:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:05:33]wFMCommunicate OK [14:05:33]CreateOFDProtocolMessage done [14:05:33]OFDSenderStorePacket 165706 [14:05:33]StoreOFDPacket docnum=165706 [14:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A7 15 04 01 04 52 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 38 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 87 02 00 35 04 06 00 E3 46 BB 59 ED 65 3C 38 07 94 F5 F6 D4 0F [14:05:33]CheckFolder [14:05:33]dirname=/storage/ofd_packets [14:05:33]CheckFolder done [14:05:33]ProducePacketName [14:05:33]name=ofd_packets/00165706 [14:05:33]NVStorageSaveData ofd_packets/00165706 [14:05:33]File name is /storage/ofd_packets/00165706 [14:05:33]Write 298 bytes [14:05:33]NVStorageSaveData done [14:05:33]OFDSenderStorePacket done [14:05:33]KKMCreateOFDPacket done [14:05:33]NVStorageSaveData kkm_last_timestamp [14:05:33]File name is /storage/kkm_last_timestamp [14:05:33]Write 4 bytes [14:05:33]NVStorageSaveData done [14:05:33]ExternCall_PrintAddStr [14:05:33]wPrintStart [14:05:33]Write to MH i2c: 01 00 00 A6 F2 98 [14:05:33]Write i2c OK [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: 01 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: 01 07 00 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: 01 07 00 A6 F2 00 00 00 00 00 FF 0F AD [14:05:33]RasterBufferAndPrint [14:05:33]line Счет N : (1)220271 [14:05:33]line ИНН: 02508201610067 [14:05:33]line Контрольно-Кассовый Чек [14:05:33]line ПРОДАЖА [14:05:33]line ТРК (МРК, ГНК) : 31 [14:05:33]line Товар: 2710194210 [14:05:33]line ДТ-К-5 [14:05:33]line 26.250 * 0.00 [14:05:33]line = 0.00 [14:05:33]line НДС 12% НСП 1% [14:05:33]line > о реализуемом товаре [14:05:33]line ИТОГО: 0.00 [14:05:33]line НСП 1% : 0.00 [14:05:33]line НДС 12% : 0.00 [14:05:33]line Наличными: 0.00 [14:05:33]line Безнал.: 0.00 [14:05:33]line Место: АЗС № 161 "Партнер Нефть" [14:05:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:05:33]line СНО: Общий режим [14:05:33]line Чек 188 20.10.2024 14:05 [14:05:33]line Смена: 534 ФФД: 1.0 [14:05:33]line ЗНМ: 0300000104 [14:05:33]line РНМ: 0000000000091764 [14:05:33]line Версия ККМ: 001 [14:05:33]line Талоны: Топливная Карта [14:05:33]line 38866 [14:05:33]line ФМ: 0000000000871759 [14:05:33]line ФД: 165706 [14:05:33]line ФПД: 249892930448741 [14:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140544&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165706&fm=249892930448741&tin=02508201610067®Number=0000000000091764&sum=0 [14:05:33]OFD Sender: Processing packet 165706 [packets to send 48, broken 47] [14:05:33]ProducePacketName [14:05:33]name=ofd_packets/00165706 [14:05:33]OFD Sender: To server: pG, [14:05:33]CommunicateWithHost lk.salyk.kg:30040 [14:05:33]ConnectInit lk.salyk.kg [14:05:33]written 0, free lines is 4095 [14:05:33]Connected sock=10 [14:05:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A7 15 04 01 04 52 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 38 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 87 02 00 35 04 06 00 E3 46 BB 59 ED 65 3C 38 07 94 F5 F6 D4 0F [14:05:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 45 FB 47 00 B6 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 87 02 00 F4 03 04 00 A9 B4 14 67 B6 04 01 00 00 80 51 E8 8C 56 7A 84 C9 [14:05:33]CommunicateWithHost err = 0 [14:05:33]CheckOFDResponse [14:05:33]1017 (14) - 77093643461234 [14:05:33]1041 (16) - 0000000000871759 [14:05:33]1040 (4) - 165706 [14:05:33]1012 (4) - 20.10.2024 07:43 [14:05:33]1206 (1) - 0 [14:05:33]OFD Sender: Remove packet 165706 [14:05:33]ProducePacketName [14:05:33]name=ofd_packets/00165706 [14:05:33]NVStorageDeleteData [14:05:33]Write to MH i2c: 01 00 00 D0 F2 C2 [14:05:33]Write i2c OK [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: 01 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: 01 07 00 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: 01 07 00 D0 F2 00 00 00 00 00 EF 0C C4 [14:05:33]RasterBufferAndPrint [14:05:33]line [14:05:33]line [14:05:33]line [14:05:33]line [14:05:33]line [14:05:33]written 0, free lines is 3320 [14:05:33]MH_Cut [14:05:33]Write to MH i2c: D1 01 00 D7 F2 01 9B [14:05:33]Write i2c OK [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: D1 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: D1 01 00 [14:05:33]MH_I2C_Read... [14:05:33]Read from MH i2c: D1 01 00 D7 F2 00 9A [14:05:33]Write to MH i2c: 01 00 00 D8 F2 CA [14:05:33]Write i2c OK [14:05:33]MH_I2C_Read... [14:05:34]OFD Sender: No OFD packet to send [14:05:34]*** Cut start [14:05:34]*** Partial cut [14:05:34]*** CUTSNS_PIN = 1 [14:05:34]*** CUTSNS_PIN = 0 [14:05:34]*** Brake cut motor [14:05:35]Read from MH i2c: 01 [14:05:35]MH_I2C_Read... [14:05:35]*** Stop cut motor [14:05:35]*** Cut end [14:05:35]Read from MH i2c: 01 07 00 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: 01 07 00 D8 F2 00 00 00 00 00 FF 0F DF [14:05:35]process_action close_receipt done [14:05:35]requested_data is exist [14:05:35]produce_requested_data [14:05:35]requested_item fm.sn is exist - process it [14:05:35]wFMCommunicate request_size=4 [14:05:35]MH_SAM_APDU [14:05:35]CAPDU: 80 11 00 00 [14:05:35]Write to MH i2c: E2 08 00 D9 F2 80 11 00 00 00 00 00 00 45 [14:05:35]Write i2c OK [14:05:35]MH_I2C_Read... [14:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:35]Read from MH i2c: E2 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: E2 17 00 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: E2 17 00 D9 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [14:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:05:35]wFMCommunicate OK [14:05:35]requested_item fd.num is exist - process it [14:05:35]SAM_PROTO_GetFieldsCounters [14:05:35]wFMCommunicate request_size=4 [14:05:35]MH_SAM_APDU [14:05:35]CAPDU: 80 13 00 00 [14:05:35]Write to MH i2c: E2 08 00 DA F2 80 13 00 00 00 00 00 00 48 [14:05:35]Write i2c OK [14:05:35]MH_I2C_Read... [14:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:35]Read from MH i2c: E2 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: E2 62 00 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: E2 62 00 DA F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4A 87 02 00 0E 04 04 00 16 02 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 8F [14:05:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4A 87 02 00 0E 04 04 00 16 02 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:05:35]wFMCommunicate OK [14:05:35]SAM_PROTO_GetFieldsCounters done [14:05:35]requested_item shift.num is exist - process it [14:05:35]requested_item shift.opened is exist - process it [14:05:35]req_shift_opened [14:05:35]FM_GetShiftState [14:05:35]SAM_PROTO_GetShiftState [14:05:35]wFMCommunicate request_size=4 [14:05:35]MH_SAM_APDU [14:05:35]CAPDU: 80 13 01 00 [14:05:35]Write to MH i2c: E2 08 00 DB F2 80 13 01 00 00 00 00 00 4A [14:05:35]Write i2c OK [14:05:35]MH_I2C_Read... [14:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:35]Read from MH i2c: E2 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: E2 0E 00 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: E2 0E 00 DB F2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 92 [14:05:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:05:35]wFMCommunicate OK [14:05:35]SAM_PROTO_GetShiftState done [14:05:35]FM_GetShiftState done [14:05:35]req_shift_opened done [14:05:35]requested_item shift.open_date is exist - process it [14:05:35]req_shift_open_date [14:05:35]req_shift_open_date done [14:05:35]produce_requested_data done [14:05:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165706,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:05:35]process_action_free close_receipt [14:05:35]json_value_free [14:05:35]json_value_free done [14:05:35]process_json_proto returns [14:05:35]Send response to host [14:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165706,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:05:35]free response buf [14:05:35]execute_script done [14:05:35]execute_script returns [14:05:35]free content buf [14:05:35]Sock 9.Close socket [14:05:35]Sock 9.Thread stoped [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:48]accept exits with 7 [14:06:48]New connection [14:06:48]New thread 3066920292 created [14:06:48]Thread 3066776932 joined [14:06:48]Waiting for new connection... [14:06:48] Sock 7.Parse request [14:06:48]Sock 7.Check first char [14:06:48]Sock 7.First char is OK [14:06:48]request: POST /json_proto HTTP/1.0 [14:06:48]Method: POST [14:06:48]URL: /json_proto [14:06:48]Method is POST - this is cgi request [14:06:48]url: /json_proto [14:06:48]query_string will be loaded in cgi processing [14:06:48]execute_cgi json_proto POST (null) [14:06:48]execute_cgi path=json_proto method=POST [14:06:48]POST find Content-Length [14:06:48]Host: 172.17.53.195:8080 [14:06:48]Content-Length: 682 [14:06:48]Content-Type: application/json [14:06:48] [14:06:48]POST finish read [14:06:48]Found Content-Length = 682 [14:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 17.520, "sum" : 1299.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1299.00, "payments": [ { "type": 0, "sum" : 1299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:48]execute_script... [14:06: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)220272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 17.520, "sum" : 1299.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1299.00, "payments": [ { "type": 0, "sum" : 1299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:48]POST & json_proto [14:06:48]process_json_proto [14:06:48]json parsed OK: [14:06:48]protocol is kg_v1.0 [14:06:48]action value=close_receipt [14:06:48]process_action close_receipt [14:06:48]cmd_close_receipt [14:06:48]MH_GetDate [14:06:48]Write to MH i2c: F0 00 00 DC F2 BD [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: F0 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: F0 09 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: F0 09 00 DC F2 00 85 0E 15 67 21 48 4A 65 ED [14:06:48]GetLastDocTimeStamp 1729433144 [14:06:48]current date 1729433221 [14:06:48]FM_GetShiftState [14:06:48]SAM_PROTO_GetShiftState [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 13 01 00 [14:06:48]Write to MH i2c: E2 08 00 DD F2 80 13 01 00 00 00 00 00 4C [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 0E 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 0E 00 DD F2 00 09 00 01 71 50 14 67 00 00 00 00 90 00 94 [14:06:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:06:48]wFMCommunicate OK [14:06:48]SAM_PROTO_GetShiftState done [14:06:48]FM_GetShiftState done [14:06:48]opened in 1729384561 [14:06:48]opened+sec_in_day 1729470961 [14:06:48]quantity*price = 129998 [14:06:48]sum+1 = 129999 [14:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.98 ИТОГО: 1299.00 Внесено: 1300.00 СДАЧА: 1.00 НСП 1% : 11.50 НДС 12% : 138.05 Наличными: 1299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 189 20.10.2024 14:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165707 ФПД: 132384657156313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140701&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165707&fm=132384657156313&tin=02508201610067®Number=0000000000091764&sum=129900 [14:06:49]StoreToDocumentArchive [14:06:49]shift 534 fd 165707 [14:06:49]save to /storage/0534/doc_00165707 [14:06:49]save last doc name /storage/0534/doc_00165707 to /storage/kkm_last_doc_name [14:06:49]save OK [14:06:49]Clear old archive folders... [14:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:49]tlvbuf is 014B81B0 [14:06:49]SAM_PROTO_ClearQueue [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 09 00 00 [14:06:49]Write to MH i2c: E2 08 00 EA F2 80 09 00 00 00 00 00 00 4E [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 EA F2 00 90 00 50 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]SAM_PROTO_ClearQueue done [14:06:49]KKMCreateOFDPacket [14:06:49]OFDProtocolAddRootSTLVToBuf [14:06:49]FM_MakeSignedData [14:06:49]FM_MakeSignedData [14:06:49]SAM_PROTO_SignData [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 01 02 [14:06:49]Write to MH i2c: E2 08 00 EB F2 80 0D 01 02 00 00 00 00 56 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 EB F2 00 90 00 51 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]wFMCommunicate request_size=255 [14:06:49]MH_SAM_APDU [14:06: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 35 00 00 00 00 07 04 06 00 6C 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 BD 00 00 00 F4 03 04 00 85 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 87 02 00 35 04 06 00 78 [14:06:49]Write to MH i2c: E2 02 01 EC F2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 35 00 00 00 00 07 04 06 00 6C 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 BD 00 00 00 F4 03 04 00 85 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 87 02 00 35 04 06 00 78 00 00 A5 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:50]Read from MH i2c: E2 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: E2 03 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: E2 03 00 EC F2 00 90 00 52 [14:06:50]RAPDU: 90 00 [14:06:50]wFMCommunicate OK [14:06:50]wFMCommunicate request_size=10 [14:06:50]MH_SAM_APDU [14:06:50]CAPDU: 80 0D 02 02 05 67 34 76 A8 D9 [14:06:50]Write to MH i2c: E2 0D 00 ED F2 80 0D 02 02 05 00 67 34 76 A8 D9 00 00 F5 [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:50]Read from MH i2c: E2 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: E2 03 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: E2 03 00 ED F2 00 90 00 53 [14:06:50]RAPDU: 90 00 [14:06:50]wFMCommunicate OK [14:06:50]wFMCommunicate request_size=4 [14:06:50]MH_SAM_APDU [14:06:50]CAPDU: 80 0D 03 02 [14:06:50]Write to MH i2c: E2 08 00 EE F2 80 0D 03 02 00 00 00 00 5B [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:50]Read from MH i2c: E2 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: E2 0B 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: E2 0B 00 EE F2 00 73 65 67 57 82 28 2F 06 90 00 D1 [14:06:50]RAPDU: 73 65 67 57 82 28 2F 06 90 00 [14:06:50]wFMCommunicate OK [14:06:50]SAM_PROTO_SignData done [14:06:50]FM_MakeSignedData done [14:06:50]CreateOFDProtocolMessage [14:06:50]wFMCommunicate request_size=4 [14:06:50]MH_SAM_APDU [14:06:50]CAPDU: 80 11 00 00 [14:06:50]Write to MH i2c: E2 08 00 EF F2 80 11 00 00 00 00 00 00 5B [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:50]Read from MH i2c: E2 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: E2 17 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: E2 17 00 EF F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [14:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:06:50]wFMCommunicate OK [14:06:50]CreateOFDProtocolMessage done [14:06:50]OFDSenderStorePacket 165707 [14:06:50]StoreOFDPacket docnum=165707 [14:06:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 7C 07 01 AC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 35 00 00 00 00 07 04 06 00 6C 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 BD 00 00 00 F4 03 04 00 85 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 87 02 00 35 04 06 00 78 67 34 76 A8 D9 73 65 67 57 82 28 2F 06 [14:06:50]CheckFolder [14:06:50]dirname=/storage/ofd_packets [14:06:50]CheckFolder done [14:06:50]ProducePacketName [14:06:50]name=ofd_packets/00165707 [14:06:50]NVStorageSaveData ofd_packets/00165707 [14:06:50]File name is /storage/ofd_packets/00165707 [14:06:50]Write 301 bytes [14:06:50]NVStorageSaveData done [14:06:50]OFDSenderStorePacket done [14:06:50]KKMCreateOFDPacket done [14:06:50]NVStorageSaveData kkm_last_timestamp [14:06:50]File name is /storage/kkm_last_timestamp [14:06:50]Write 4 bytes [14:06:50]NVStorageSaveData done [14:06:50]ExternCall_PrintAddStr [14:06:50]wPrintStart [14:06:50]Write to MH i2c: 01 00 00 F0 F2 E2 [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 07 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 07 00 F0 F2 00 00 00 00 00 FF 0F F7 [14:06:50]RasterBufferAndPrint [14:06:50]line Счет N : (1)220272 [14:06:50]line ИНН: 02508201610067 [14:06:50]line Контрольно-Кассовый Чек [14:06:50]line ПРОДАЖА [14:06:50]line ТРК (МРК, ГНК) : 14 [14:06:50]line Товар: 2710124500 [14:06:50]line Аи-95-К-5 [14:06:50]line 17.520 * 74.20 [14:06:50]line = 1299.98 [14:06:50]line НДС 12% НСП 1% [14:06:50]line > о реализуемом товаре [14:06:50]line ОКРУГЛЕНИЕ: -0.98 [14:06:50]line ИТОГО: 1299.00 [14:06:50]line Внесено: 1300.00 [14:06:50]line СДАЧА: 1.00 [14:06:50]line НСП 1% : 11.50 [14:06:50]line НДС 12% : 138.05 [14:06:50]line Наличными: 1299.00 [14:06:50]line Безнал.: 0.00 [14:06:50]line Место: АЗС № 161 "Партнер Нефть" [14:06:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:06:50]line СНО: Общий режим [14:06:50]line Чек 189 20.10.2024 14:07 [14:06:50]line Смена: 534 ФФД: 1.0 [14:06:50]line ЗНМ: 0300000104 [14:06:50]line РНМ: 0000000000091764 [14:06:50]line Версия ККМ: 001 [14:06:50]line ФМ: 0000000000871759 [14:06:50]line ФД: 165707 [14:06:50]line ФПД: 132384657156313 [14:06:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140701&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165707&fm=132384657156313&tin=02508201610067®Number=0000000000091764&sum=129900 [14:06:50]OFD Sender: Processing packet 165707 [packets to send 48, broken 47] [14:06:50]ProducePacketName [14:06:50]name=ofd_packets/00165707 [14:06:50]OFD Sender: To server: pG, [14:06:50]CommunicateWithHost lk.salyk.kg:30040 [14:06:50]ConnectInit lk.salyk.kg [14:06:50]written 0, free lines is 4095 [14:06:50]Connected sock=10 [14:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 7C 07 01 AC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 35 00 00 00 00 07 04 06 00 6C 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 BD 00 00 00 F4 03 04 00 85 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 87 02 00 35 04 06 00 78 67 34 76 A8 D9 73 65 67 57 82 28 2F 06 [14:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9F 28 47 00 E6 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 87 02 00 F4 03 04 00 F6 B4 14 67 B6 04 01 00 00 6C 95 22 04 15 2A DF 03 [14:06:50]CommunicateWithHost err = 0 [14:06:50]CheckOFDResponse [14:06:50]1017 (14) - 77093643461234 [14:06:50]1041 (16) - 0000000000871759 [14:06:50]1040 (4) - 165707 [14:06:50]1012 (4) - 20.10.2024 07:44 [14:06:50]1206 (1) - 0 [14:06:50]OFD Sender: Remove packet 165707 [14:06:50]ProducePacketName [14:06:50]name=ofd_packets/00165707 [14:06:50]NVStorageDeleteData [14:06:50]Write to MH i2c: 01 00 00 1B F3 0E [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 07 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 07 00 1B F3 00 00 00 00 00 CA 0C EB [14:06:50]RasterBufferAndPrint [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]written 0, free lines is 3279 [14:06:50]MH_Cut [14:06:50]Write to MH i2c: D1 01 00 22 F3 01 E7 [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 01 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 01 00 22 F3 00 E6 [14:06:50]Write to MH i2c: 01 00 00 23 F3 16 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]OFD Sender: No OFD packet to send [14:06:51]*** Cut start [14:06:51]*** Partial cut [14:06:51]*** CUTSNS_PIN = 1 [14:06:51]*** CUTSNS_PIN = 0 [14:06:52]*** Brake cut motor [14:06:52]Read from MH i2c: 01 [14:06:52]MH_I2C_Read... [14:06:52]*** Stop cut motor [14:06:52]*** Cut end [14:06:52]Read from MH i2c: 01 07 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: 01 07 00 23 F3 00 00 00 00 00 FF 0F 2B [14:06:52]process_action close_receipt done [14:06:52]requested_data is exist [14:06:52]produce_requested_data [14:06:52]requested_item fm.sn is exist - process it [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 11 00 00 [14:06:52]Write to MH i2c: E2 08 00 24 F3 80 11 00 00 00 00 00 00 91 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 17 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 17 00 24 F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E9 [14:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:06:52]wFMCommunicate OK [14:06:52]requested_item fd.num is exist - process it [14:06:52]SAM_PROTO_GetFieldsCounters [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 13 00 00 [14:06:52]Write to MH i2c: E2 08 00 25 F3 80 13 00 00 00 00 00 00 94 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 62 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 62 00 25 F3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4B 87 02 00 0E 04 04 00 16 02 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 DF [14:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4B 87 02 00 0E 04 04 00 16 02 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:06:52]wFMCommunicate OK [14:06:52]SAM_PROTO_GetFieldsCounters done [14:06:52]requested_item shift.num is exist - process it [14:06:52]requested_item shift.opened is exist - process it [14:06:52]req_shift_opened [14:06:52]FM_GetShiftState [14:06:52]SAM_PROTO_GetShiftState [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 13 01 00 [14:06:52]Write to MH i2c: E2 08 00 26 F3 80 13 01 00 00 00 00 00 96 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 0E 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 0E 00 26 F3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DE [14:06:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:06:52]wFMCommunicate OK [14:06:52]SAM_PROTO_GetShiftState done [14:06:52]FM_GetShiftState done [14:06:52]req_shift_opened done [14:06:52]requested_item shift.open_date is exist - process it [14:06:52]req_shift_open_date [14:06:52]req_shift_open_date done [14:06:52]produce_requested_data done [14:06:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165707,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:06:52]process_action_free close_receipt [14:06:52]json_value_free [14:06:52]json_value_free done [14:06:52]process_json_proto returns [14:06:52]Send response to host [14:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165707,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:06:52]free response buf [14:06:52]execute_script done [14:06:52]execute_script returns [14:06:52]free content buf [14:06:52]Sock 7.Close socket [14:06:52]Sock 7.Thread stoped [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:09]accept exits with 9 [14:07:09]New connection [14:07:09]New thread 3066776932 created [14:07:09]Thread 3066920292 joined [14:07:09]Waiting for new connection... [14:07:09] Sock 9.Parse request [14:07:09]Sock 9.Check first char [14:07:09]Sock 9.First char is OK [14:07:09]request: POST /json_proto HTTP/1.0 [14:07:09]Method: POST [14:07:09]URL: /json_proto [14:07:09]Method is POST - this is cgi request [14:07:09]url: /json_proto [14:07:09]query_string will be loaded in cgi processing [14:07:09]execute_cgi json_proto POST (null) [14:07:09]execute_cgi path=json_proto method=POST [14:07:09]POST find Content-Length [14:07:09]Host: 172.17.53.195:8080 [14:07:09]Content-Length: 677 [14:07:09]Content-Type: application/json [14:07:09] [14:07:09]POST finish read [14:07:09]Found Content-Length = 677 [14:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:09]execute_script... [14:07: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)220273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:09]POST & json_proto [14:07:09]process_json_proto [14:07:09]json parsed OK: [14:07:09]protocol is kg_v1.0 [14:07:09]action value=close_receipt [14:07:09]process_action close_receipt [14:07:09]cmd_close_receipt [14:07:09]MH_GetDate [14:07:09]Write to MH i2c: F0 00 00 27 F3 09 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: F0 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: F0 09 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: F0 09 00 27 F3 00 9A 0E 15 67 21 48 4A 65 4E [14:07:09]GetLastDocTimeStamp 1729433221 [14:07:09]current date 1729433242 [14:07:09]FM_GetShiftState [14:07:09]SAM_PROTO_GetShiftState [14:07:09]wFMCommunicate request_size=4 [14:07:09]MH_SAM_APDU [14:07:09]CAPDU: 80 13 01 00 [14:07:09]Write to MH i2c: E2 08 00 28 F3 80 13 01 00 00 00 00 00 98 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:09]Read from MH i2c: E2 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 0E 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 0E 00 28 F3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E0 [14:07:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:07:09]wFMCommunicate OK [14:07:09]SAM_PROTO_GetShiftState done [14:07:09]FM_GetShiftState done [14:07:09]opened in 1729384561 [14:07:09]opened+sec_in_day 1729470961 [14:07:09]quantity*price = 50041 [14:07:09]sum+1 = 50042 [14:07:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 190 20.10.2024 14:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165708 ФПД: 100953766312835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140722&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165708&fm=100953766312835&tin=02508201610067®Number=0000000000091764&sum=50000 [14:07:10]StoreToDocumentArchive [14:07:10]shift 534 fd 165708 [14:07:10]save to /storage/0534/doc_00165708 [14:07:10]save last doc name /storage/0534/doc_00165708 to /storage/kkm_last_doc_name [14:07:10]save OK [14:07:10]Clear old archive folders... [14:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:10]tlvbuf is 0165D700 [14:07:10]SAM_PROTO_ClearQueue [14:07:10]wFMCommunicate request_size=4 [14:07:10]MH_SAM_APDU [14:07:10]CAPDU: 80 09 00 00 [14:07:10]Write to MH i2c: E2 08 00 35 F3 80 09 00 00 00 00 00 00 9A [14:07:10]Write i2c OK [14:07:10]MH_I2C_Read... [14:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:10]Read from MH i2c: E2 [14:07:10]MH_I2C_Read... [14:07:10]Read from MH i2c: E2 03 00 [14:07:10]MH_I2C_Read... [14:07:10]Read from MH i2c: E2 03 00 35 F3 00 90 00 9C [14:07:10]RAPDU: 90 00 [14:07:10]wFMCommunicate OK [14:07:10]SAM_PROTO_ClearQueue done [14:07:10]KKMCreateOFDPacket [14:07:10]OFDProtocolAddRootSTLVToBuf [14:07:10]FM_MakeSignedData [14:07:10]FM_MakeSignedData [14:07:10]SAM_PROTO_SignData [14:07:10]wFMCommunicate request_size=4 [14:07:10]MH_SAM_APDU [14:07:10]CAPDU: 80 0D 01 02 [14:07:10]Write to MH i2c: E2 08 00 36 F3 80 0D 01 02 00 00 00 00 A2 [14:07:10]Write i2c OK [14:07:10]MH_I2C_Read... [14:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:10]Read from MH i2c: E2 [14:07:10]MH_I2C_Read... [14:07:10]Read from MH i2c: E2 03 00 [14:07:10]MH_I2C_Read... [14:07:10]Read from MH i2c: E2 03 00 36 F3 00 90 00 9D [14:07:10]RAPDU: 90 00 [14:07:10]wFMCommunicate OK [14:07:10]wFMCommunicate request_size=255 [14:07:10]MH_SAM_APDU [14:07: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 9A 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 87 02 00 35 04 06 00 5B [14:07:10]Write to MH i2c: E2 02 01 37 F3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 9A 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 87 02 00 35 04 06 00 5B 00 00 62 [14:07:10]Write i2c OK [14:07:10]MH_I2C_Read... [14:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 03 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 03 00 37 F3 00 90 00 9E [14:07:11]RAPDU: 90 00 [14:07:11]wFMCommunicate OK [14:07:11]wFMCommunicate request_size=10 [14:07:11]MH_SAM_APDU [14:07:11]CAPDU: 80 0D 02 02 05 D1 21 61 3B 83 [14:07:11]Write to MH i2c: E2 0D 00 38 F3 80 0D 02 02 05 00 D1 21 61 3B 83 00 00 C0 [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 03 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 03 00 38 F3 00 90 00 9F [14:07:11]RAPDU: 90 00 [14:07:11]wFMCommunicate OK [14:07:11]wFMCommunicate request_size=4 [14:07:11]MH_SAM_APDU [14:07:11]CAPDU: 80 0D 03 02 [14:07:11]Write to MH i2c: E2 08 00 39 F3 80 0D 03 02 00 00 00 00 A7 [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0B 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0B 00 39 F3 00 A8 43 EB CC E2 5B D9 18 90 00 78 [14:07:11]RAPDU: A8 43 EB CC E2 5B D9 18 90 00 [14:07:11]wFMCommunicate OK [14:07:11]SAM_PROTO_SignData done [14:07:11]FM_MakeSignedData done [14:07:11]CreateOFDProtocolMessage [14:07:11]wFMCommunicate request_size=4 [14:07:11]MH_SAM_APDU [14:07:11]CAPDU: 80 11 00 00 [14:07:11]Write to MH i2c: E2 08 00 3A F3 80 11 00 00 00 00 00 00 A7 [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]OFD Sender: No OFD packet to send [14:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 17 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 17 00 3A F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [14:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:07:11]wFMCommunicate OK [14:07:11]CreateOFDProtocolMessage done [14:07:11]OFDSenderStorePacket 165708 [14:07:11]StoreOFDPacket docnum=165708 [14:07:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 72 07 01 1B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 9A 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 87 02 00 35 04 06 00 5B D1 21 61 3B 83 A8 43 EB CC E2 5B D9 18 [14:07:11]CheckFolder [14:07:11]dirname=/storage/ofd_packets [14:07:11]CheckFolder done [14:07:11]ProducePacketName [14:07:11]name=ofd_packets/00165708 [14:07:11]NVStorageSaveData ofd_packets/00165708 [14:07:11]File name is /storage/ofd_packets/00165708 [14:07:11]Write 301 bytes [14:07:11]NVStorageSaveData done [14:07:11]OFDSenderStorePacket done [14:07:11]KKMCreateOFDPacket done [14:07:11]NVStorageSaveData kkm_last_timestamp [14:07:11]File name is /storage/kkm_last_timestamp [14:07:11]Write 4 bytes [14:07:11]NVStorageSaveData done [14:07:11]ExternCall_PrintAddStr [14:07:11]wPrintStart [14:07:11]Write to MH i2c: 01 00 00 3B F3 2E [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: 01 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: 01 07 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: 01 07 00 3B F3 00 00 00 00 00 FF 0F 43 [14:07:11]RasterBufferAndPrint [14:07:11]line Счет N : (1)220273 [14:07:11]line ИНН: 02508201610067 [14:07:11]line Контрольно-Кассовый Чек [14:07:11]line ПРОДАЖА [14:07:11]line ТРК (МРК, ГНК) : 23 [14:07:11]line Товар: 2710124130 [14:07:11]line Аи-92-К-5 [14:07:11]line 7.480 * 66.90 [14:07:11]line = 500.41 [14:07:11]line НДС 12% НСП 1% [14:07:11]line > о реализуемом товаре [14:07:11]line ОКРУГЛЕНИЕ: -0.41 [14:07:11]line ИТОГО: 500.00 [14:07:11]line Внесено: 500.00 [14:07:11]line СДАЧА: 0.00 [14:07:11]line НСП 1% : 4.43 [14:07:11]line НДС 12% : 53.14 [14:07:11]line Наличными: 500.00 [14:07:11]line Безнал.: 0.00 [14:07:11]line Место: АЗС № 161 "Партнер Нефть" [14:07:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:07:11]line СНО: Общий режим [14:07:11]line Чек 190 20.10.2024 14:07 [14:07:11]line Смена: 534 ФФД: 1.0 [14:07:11]line ЗНМ: 0300000104 [14:07:11]line РНМ: 0000000000091764 [14:07:11]line Версия ККМ: 001 [14:07:11]line ФМ: 0000000000871759 [14:07:11]line ФД: 165708 [14:07:11]line ФПД: 100953766312835 [14:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140722&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165708&fm=100953766312835&tin=02508201610067®Number=0000000000091764&sum=50000 [14:07:11]OFD Sender: Processing packet 165708 [packets to send 48, broken 47] [14:07:11]ProducePacketName [14:07:11]name=ofd_packets/00165708 [14:07:11]OFD Sender: To server: pG, [14:07:11]CommunicateWithHost lk.salyk.kg:30040 [14:07:11]ConnectInit lk.salyk.kg [14:07:11]written 0, free lines is 4095 [14:07:11]Connected sock=10 [14:07:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 72 07 01 1B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 9A 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 87 02 00 35 04 06 00 5B D1 21 61 3B 83 A8 43 EB CC E2 5B D9 18 [14:07:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DC 01 47 00 5F 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 31 37 35 39 10 04 04 00 4C 87 02 00 F4 03 04 00 0C B5 14 67 B6 04 01 00 00 E2 14 E6 4B 19 03 0E 12 [14:07:12]CommunicateWithHost err = 0 [14:07:12]CheckOFDResponse [14:07:12]1017 (14) - 77093643461234 [14:07:12]1041 (16) - 0000000000871759 [14:07:12]1040 (4) - 165708 [14:07:12]1012 (4) - 20.10.2024 07:45 [14:07:12]1206 (1) - 0 [14:07:12]OFD Sender: Remove packet 165708 [14:07:12]ProducePacketName [14:07:12]name=ofd_packets/00165708 [14:07:12]NVStorageDeleteData [14:07:12]Write to MH i2c: 01 00 00 66 F3 59 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: 01 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: 01 07 00 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: 01 07 00 66 F3 00 00 00 00 00 C6 0C 32 [14:07:12]RasterBufferAndPrint [14:07:12]line [14:07:12]line [14:07:12]line [14:07:12]line [14:07:12]line [14:07:12]written 0, free lines is 3276 [14:07:12]MH_Cut [14:07:12]Write to MH i2c: D1 01 00 6D F3 01 32 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: D1 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: D1 01 00 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: D1 01 00 6D F3 00 31 [14:07:12]Write to MH i2c: 01 00 00 6E F3 61 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:12]OFD Sender: No OFD packet to send [14:07:12]*** Cut start [14:07:12]*** Partial cut [14:07:12]*** CUTSNS_PIN = 1 [14:07:13]*** CUTSNS_PIN = 0 [14:07:13]*** Brake cut motor [14:07:13]Read from MH i2c: 01 [14:07:13]MH_I2C_Read... [14:07:13]*** Stop cut motor [14:07:13]*** Cut end [14:07:13]Read from MH i2c: 01 07 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 6E F3 00 00 00 00 00 FF 0F 76 [14:07:13]process_action close_receipt done [14:07:13]requested_data is exist [14:07:13]produce_requested_data [14:07:13]requested_item fm.sn is exist - process it [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 11 00 00 [14:07:13]Write to MH i2c: E2 08 00 6F F3 80 11 00 00 00 00 00 00 DC [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 17 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 17 00 6F F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [14:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:07:13]wFMCommunicate OK [14:07:13]requested_item fd.num is exist - process it [14:07:13]SAM_PROTO_GetFieldsCounters [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 13 00 00 [14:07:13]Write to MH i2c: E2 08 00 70 F3 80 13 00 00 00 00 00 00 DF [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 62 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 62 00 70 F3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4C 87 02 00 0E 04 04 00 16 02 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 2E [14:07:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4C 87 02 00 0E 04 04 00 16 02 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:07:13]wFMCommunicate OK [14:07:13]SAM_PROTO_GetFieldsCounters done [14:07:13]requested_item shift.num is exist - process it [14:07:13]requested_item shift.opened is exist - process it [14:07:13]req_shift_opened [14:07:13]FM_GetShiftState [14:07:13]SAM_PROTO_GetShiftState [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 13 01 00 [14:07:13]Write to MH i2c: E2 08 00 71 F3 80 13 01 00 00 00 00 00 E1 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0E 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0E 00 71 F3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 29 [14:07:13]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:07:13]wFMCommunicate OK [14:07:13]SAM_PROTO_GetShiftState done [14:07:13]FM_GetShiftState done [14:07:13]req_shift_opened done [14:07:13]requested_item shift.open_date is exist - process it [14:07:13]req_shift_open_date [14:07:13]req_shift_open_date done [14:07:13]produce_requested_data done [14:07:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165708,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:07:13]process_action_free close_receipt [14:07:13]json_value_free [14:07:13]json_value_free done [14:07:13]process_json_proto returns [14:07:13]Send response to host [14:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165708,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:07:13]free response buf [14:07:13]execute_script done [14:07:13]execute_script returns [14:07:13]free content buf [14:07:13]Sock 9.Close socket [14:07:13]Sock 9.Thread stoped [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:46]accept exits with 7 [14:07:46]New connection [14:07:46]New thread 3066920292 created [14:07:46]Thread 3066776932 joined [14:07:46]Waiting for new connection... [14:07:46] Sock 7.Parse request [14:07:46]Sock 7.Check first char [14:07:46]Sock 7.First char is OK [14:07:46]request: POST /json_proto HTTP/1.0 [14:07:46]Method: POST [14:07:46]URL: /json_proto [14:07:46]Method is POST - this is cgi request [14:07:46]url: /json_proto [14:07:46]query_string will be loaded in cgi processing [14:07:46]execute_cgi json_proto POST (null) [14:07:46]execute_cgi path=json_proto method=POST [14:07:46]POST find Content-Length [14:07:46]Host: 172.17.53.195:8080 [14:07:46]Content-Length: 677 [14:07:46]Content-Type: application/json [14:07:46] [14:07:46]POST finish read [14:07:46]Found Content-Length = 677 [14:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:46]execute_script... [14:07: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)220274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:46]POST & json_proto [14:07:46]process_json_proto [14:07:46]json parsed OK: [14:07:46]protocol is kg_v1.0 [14:07:46]action value=close_receipt [14:07:46]process_action close_receipt [14:07:46]cmd_close_receipt [14:07:46]MH_GetDate [14:07:46]Write to MH i2c: F0 00 00 72 F3 54 [14:07:46]Write i2c OK [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: F0 [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: F0 09 00 [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: F0 09 00 72 F3 00 BF 0E 15 67 21 48 4A 65 BE [14:07:46]GetLastDocTimeStamp 1729433242 [14:07:46]current date 1729433279 [14:07:46]FM_GetShiftState [14:07:46]SAM_PROTO_GetShiftState [14:07:46]wFMCommunicate request_size=4 [14:07:46]MH_SAM_APDU [14:07:46]CAPDU: 80 13 01 00 [14:07:46]Write to MH i2c: E2 08 00 73 F3 80 13 01 00 00 00 00 00 E3 [14:07:46]Write i2c OK [14:07:46]MH_I2C_Read... [14:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:46]Read from MH i2c: E2 [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: E2 0E 00 [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: E2 0E 00 73 F3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2B [14:07:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:07:46]wFMCommunicate OK [14:07:46]SAM_PROTO_GetShiftState done [14:07:46]FM_GetShiftState done [14:07:46]opened in 1729384561 [14:07:46]opened+sec_in_day 1729470961 [14:07:46]quantity*price = 30038 [14:07:46]sum+1 = 30039 [14:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 191 20.10.2024 14:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165709 ФПД: 267386397871019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140759&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165709&fm=267386397871019&tin=02508201610067®Number=0000000000091764&sum=30000 [14:07:47]StoreToDocumentArchive [14:07:47]shift 534 fd 165709 [14:07:47]save to /storage/0534/doc_00165709 [14:07:47]save last doc name /storage/0534/doc_00165709 to /storage/kkm_last_doc_name [14:07:47]save OK [14:07:47]Clear old archive folders... [14:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:47]tlvbuf is 01470E70 [14:07:47]SAM_PROTO_ClearQueue [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 09 00 00 [14:07:47]Write to MH i2c: E2 08 00 80 F3 80 09 00 00 00 00 00 00 E5 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 80 F3 00 90 00 E7 [14:07:47]RAPDU: 90 00 [14:07:47]wFMCommunicate OK [14:07:47]SAM_PROTO_ClearQueue done [14:07:47]KKMCreateOFDPacket [14:07:47]OFDProtocolAddRootSTLVToBuf [14:07:47]FM_MakeSignedData [14:07:47]FM_MakeSignedData [14:07:47]SAM_PROTO_SignData [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 0D 01 02 [14:07:47]Write to MH i2c: E2 08 00 81 F3 80 0D 01 02 00 00 00 00 ED [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 81 F3 00 90 00 E8 [14:07:47]RAPDU: 90 00 [14:07:47]wFMCommunicate OK [14:07:47]wFMCommunicate request_size=255 [14:07:47]MH_SAM_APDU [14:07: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 BF 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 87 02 00 35 04 06 00 F3 [14:07:47]Write to MH i2c: E2 02 01 82 F3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 BF 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 87 02 00 35 04 06 00 F3 00 00 60 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 82 F3 00 90 00 E9 [14:07:47]RAPDU: 90 00 [14:07:47]wFMCommunicate OK [14:07:47]wFMCommunicate request_size=10 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 0D 02 02 05 2F BF 43 4B AB [14:07:47]Write to MH i2c: E2 0D 00 83 F3 80 0D 02 02 05 00 2F BF 43 4B AB 00 00 21 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:48]Read from MH i2c: E2 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: E2 03 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: E2 03 00 83 F3 00 90 00 EA [14:07:48]RAPDU: 90 00 [14:07:48]wFMCommunicate OK [14:07:48]wFMCommunicate request_size=4 [14:07:48]MH_SAM_APDU [14:07:48]CAPDU: 80 0D 03 02 [14:07:48]Write to MH i2c: E2 08 00 84 F3 80 0D 03 02 00 00 00 00 F2 [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:48]Read from MH i2c: E2 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: E2 0B 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: E2 0B 00 84 F3 00 18 51 C6 71 AF C2 5A C5 90 00 23 [14:07:48]RAPDU: 18 51 C6 71 AF C2 5A C5 90 00 [14:07:48]wFMCommunicate OK [14:07:48]SAM_PROTO_SignData done [14:07:48]FM_MakeSignedData done [14:07:48]CreateOFDProtocolMessage [14:07:48]wFMCommunicate request_size=4 [14:07:48]MH_SAM_APDU [14:07:48]CAPDU: 80 11 00 00 [14:07:48]Write to MH i2c: E2 08 00 85 F3 80 11 00 00 00 00 00 00 F2 [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:48]Read from MH i2c: E2 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: E2 17 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: E2 17 00 85 F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [14:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:07:48]wFMCommunicate OK [14:07:48]CreateOFDProtocolMessage done [14:07:48]OFDSenderStorePacket 165709 [14:07:48]StoreOFDPacket docnum=165709 [14:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 68 07 01 B8 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 BF 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 87 02 00 35 04 06 00 F3 2F BF 43 4B AB 18 51 C6 71 AF C2 5A C5 [14:07:48]CheckFolder [14:07:48]dirname=/storage/ofd_packets [14:07:48]CheckFolder done [14:07:48]ProducePacketName [14:07:48]name=ofd_packets/00165709 [14:07:48]NVStorageSaveData ofd_packets/00165709 [14:07:48]File name is /storage/ofd_packets/00165709 [14:07:48]Write 301 bytes [14:07:48]NVStorageSaveData done [14:07:48]OFDSenderStorePacket done [14:07:48]KKMCreateOFDPacket done [14:07:48]NVStorageSaveData kkm_last_timestamp [14:07:48]File name is /storage/kkm_last_timestamp [14:07:48]Write 4 bytes [14:07:48]NVStorageSaveData done [14:07:48]ExternCall_PrintAddStr [14:07:48]wPrintStart [14:07:48]Write to MH i2c: 01 00 00 86 F3 79 [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 86 F3 00 00 00 00 00 FF 0F 8E [14:07:48]RasterBufferAndPrint [14:07:48]line Счет N : (1)220274 [14:07:48]line ИНН: 02508201610067 [14:07:48]line Контрольно-Кассовый Чек [14:07:48]line ПРОДАЖА [14:07:48]line ТРК (МРК, ГНК) : 43 [14:07:48]line Товар: 2710124130 [14:07:48]line Аи-92-К-5 [14:07:48]line 4.490 * 66.90 [14:07:48]line = 300.38 [14:07:48]line НДС 12% НСП 1% [14:07:48]line > о реализуемом товаре [14:07:48]line ОКРУГЛЕНИЕ: -0.38 [14:07:48]line ИТОГО: 300.00 [14:07:48]line Внесено: 300.00 [14:07:48]line СДАЧА: 0.00 [14:07:48]line НСП 1% : 2.66 [14:07:48]line НДС 12% : 31.90 [14:07:48]line Наличными: 300.00 [14:07:48]line Безнал.: 0.00 [14:07:48]line Место: АЗС № 161 "Партнер Нефть" [14:07:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:07:48]line СНО: Общий режим [14:07:48]line Чек 191 20.10.2024 14:07 [14:07:48]line Смена: 534 ФФД: 1.0 [14:07:48]line ЗНМ: 0300000104 [14:07:48]line РНМ: 0000000000091764 [14:07:48]line Версия ККМ: 001 [14:07:48]line ФМ: 0000000000871759 [14:07:48]line ФД: 165709 [14:07:48]line ФПД: 267386397871019 [14:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140759&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165709&fm=267386397871019&tin=02508201610067®Number=0000000000091764&sum=30000 [14:07:48]OFD Sender: Processing packet 165709 [packets to send 48, broken 47] [14:07:48]ProducePacketName [14:07:48]name=ofd_packets/00165709 [14:07:48]OFD Sender: To server: pG, [14:07:48]CommunicateWithHost lk.salyk.kg:30040 [14:07:48]ConnectInit lk.salyk.kg [14:07:48]written 0, free lines is 4095 [14:07:48]Connected sock=10 [14:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 68 07 01 B8 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 BF 0E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 87 02 00 35 04 06 00 F3 2F BF 43 4B AB 18 51 C6 71 AF C2 5A C5 [14:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 74 87 47 00 6C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 87 02 00 F4 03 04 00 30 B5 14 67 B6 04 01 00 00 D3 F8 97 BC 94 ED 3E E3 [14:07:48]CommunicateWithHost err = 0 [14:07:48]CheckOFDResponse [14:07:48]1017 (14) - 77093643461234 [14:07:48]1041 (16) - 0000000000871759 [14:07:48]1040 (4) - 165709 [14:07:48]1012 (4) - 20.10.2024 07:45 [14:07:48]1206 (1) - 0 [14:07:48]OFD Sender: Remove packet 165709 [14:07:48]ProducePacketName [14:07:48]name=ofd_packets/00165709 [14:07:48]NVStorageDeleteData [14:07:48]Write to MH i2c: 01 00 00 B1 F3 A4 [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 B1 F3 00 00 00 00 00 CD 0C 84 [14:07:48]RasterBufferAndPrint [14:07:48]line [14:07:48]line [14:07:48]line [14:07:48]line [14:07:48]line [14:07:48]written 0, free lines is 3283 [14:07:48]MH_Cut [14:07:48]Write to MH i2c: D1 01 00 B8 F3 01 7D [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: D1 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: D1 01 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: D1 01 00 B8 F3 00 7C [14:07:48]Write to MH i2c: 01 00 00 B9 F3 AC [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:49]OFD Sender: No OFD packet to send [14:07:49]*** Cut start [14:07:49]*** Partial cut [14:07:49]*** CUTSNS_PIN = 1 [14:07:49]*** CUTSNS_PIN = 0 [14:07:50]*** Brake cut motor [14:07:50]Read from MH i2c: 01 [14:07:50]MH_I2C_Read... [14:07:50]*** Stop cut motor [14:07:50]*** Cut end [14:07:50]Read from MH i2c: 01 07 00 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: 01 07 00 B9 F3 00 00 00 00 00 FF 0F C1 [14:07:50]process_action close_receipt done [14:07:50]requested_data is exist [14:07:50]produce_requested_data [14:07:50]requested_item fm.sn is exist - process it [14:07:50]wFMCommunicate request_size=4 [14:07:50]MH_SAM_APDU [14:07:50]CAPDU: 80 11 00 00 [14:07:50]Write to MH i2c: E2 08 00 BA F3 80 11 00 00 00 00 00 00 27 [14:07:50]Write i2c OK [14:07:50]MH_I2C_Read... [14:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:50]Read from MH i2c: E2 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 17 00 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 17 00 BA F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [14:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:07:50]wFMCommunicate OK [14:07:50]requested_item fd.num is exist - process it [14:07:50]SAM_PROTO_GetFieldsCounters [14:07:50]wFMCommunicate request_size=4 [14:07:50]MH_SAM_APDU [14:07:50]CAPDU: 80 13 00 00 [14:07:50]Write to MH i2c: E2 08 00 BB F3 80 13 00 00 00 00 00 00 2A [14:07:50]Write i2c OK [14:07:50]MH_I2C_Read... [14:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:50]Read from MH i2c: E2 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 62 00 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 62 00 BB F3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4D 87 02 00 0E 04 04 00 16 02 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 7D [14:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4D 87 02 00 0E 04 04 00 16 02 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:07:50]wFMCommunicate OK [14:07:50]SAM_PROTO_GetFieldsCounters done [14:07:50]requested_item shift.num is exist - process it [14:07:50]requested_item shift.opened is exist - process it [14:07:50]req_shift_opened [14:07:50]FM_GetShiftState [14:07:50]SAM_PROTO_GetShiftState [14:07:50]wFMCommunicate request_size=4 [14:07:50]MH_SAM_APDU [14:07:50]CAPDU: 80 13 01 00 [14:07:50]Write to MH i2c: E2 08 00 BC F3 80 13 01 00 00 00 00 00 2C [14:07:50]Write i2c OK [14:07:50]MH_I2C_Read... [14:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:50]Read from MH i2c: E2 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 0E 00 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 0E 00 BC F3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 74 [14:07:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:07:50]wFMCommunicate OK [14:07:50]SAM_PROTO_GetShiftState done [14:07:50]FM_GetShiftState done [14:07:50]req_shift_opened done [14:07:50]requested_item shift.open_date is exist - process it [14:07:50]req_shift_open_date [14:07:50]req_shift_open_date done [14:07:50]produce_requested_data done [14:07:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165709,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:07:50]process_action_free close_receipt [14:07:50]json_value_free [14:07:50]json_value_free done [14:07:50]process_json_proto returns [14:07:50]Send response to host [14:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165709,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:07:50]free response buf [14:07:50]execute_script done [14:07:50]execute_script returns [14:07:50]free content buf [14:07:50]Sock 7.Close socket [14:07:50]Sock 7.Thread stoped [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:54]accept exits with 9 [14:08:54]New connection [14:08:54]New thread 3066776932 created [14:08:54]Thread 3066920292 joined [14:08:54]Waiting for new connection... [14:08:54] Sock 9.Parse request [14:08:54]Sock 9.Check first char [14:08:54]Sock 9.First char is OK [14:08:54]request: POST /json_proto HTTP/1.0 [14:08:54]Method: POST [14:08:54]URL: /json_proto [14:08:54]Method is POST - this is cgi request [14:08:54]url: /json_proto [14:08:54]query_string will be loaded in cgi processing [14:08:54]execute_cgi json_proto POST (null) [14:08:54]execute_cgi path=json_proto method=POST [14:08:54]POST find Content-Length [14:08:54]Host: 172.17.53.195:8080 [14:08:54]Content-Length: 677 [14:08:54]Content-Type: application/json [14:08:54] [14:08:54]POST finish read [14:08:54]Found Content-Length = 677 [14:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [14:08:54]execute_script... [14:08: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)220275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [14:08:54]POST & json_proto [14:08:54]process_json_proto [14:08:54]json parsed OK: [14:08:54]protocol is kg_v1.0 [14:08:54]action value=close_receipt [14:08:54]process_action close_receipt [14:08:54]cmd_close_receipt [14:08:54]MH_GetDate [14:08:54]Write to MH i2c: F0 00 00 BD F3 9F [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: F0 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: F0 09 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: F0 09 00 BD F3 00 03 0F 15 67 21 48 4A 65 4E [14:08:54]GetLastDocTimeStamp 1729433279 [14:08:54]current date 1729433347 [14:08:54]FM_GetShiftState [14:08:54]SAM_PROTO_GetShiftState [14:08:54]wFMCommunicate request_size=4 [14:08:54]MH_SAM_APDU [14:08:54]CAPDU: 80 13 01 00 [14:08:54]Write to MH i2c: E2 08 00 BE F3 80 13 01 00 00 00 00 00 2E [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 0E 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 0E 00 BE F3 00 09 00 01 71 50 14 67 00 00 00 00 90 00 76 [14:08:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:08:54]wFMCommunicate OK [14:08:54]SAM_PROTO_GetShiftState done [14:08:54]FM_GetShiftState done [14:08:54]opened in 1729384561 [14:08:54]opened+sec_in_day 1729470961 [14:08:54]quantity*price = 25020 [14:08:54]sum+1 = 25022 [14:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 192 20.10.2024 14:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165710 ФПД: 239985704769896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140907&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165710&fm=239985704769896&tin=02508201610067®Number=0000000000091764&sum=25000 [14:08:55]StoreToDocumentArchive [14:08:55]shift 534 fd 165710 [14:08:55]save to /storage/0534/doc_00165710 [14:08:55]save last doc name /storage/0534/doc_00165710 to /storage/kkm_last_doc_name [14:08:55]save OK [14:08:55]Clear old archive folders... [14:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:55]tlvbuf is 018B0680 [14:08:55]SAM_PROTO_ClearQueue [14:08:55]wFMCommunicate request_size=4 [14:08:55]MH_SAM_APDU [14:08:55]CAPDU: 80 09 00 00 [14:08:55]Write to MH i2c: E2 08 00 CB F3 80 09 00 00 00 00 00 00 30 [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:55]Read from MH i2c: E2 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 03 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 03 00 CB F3 00 90 00 32 [14:08:55]RAPDU: 90 00 [14:08:55]wFMCommunicate OK [14:08:55]SAM_PROTO_ClearQueue done [14:08:55]KKMCreateOFDPacket [14:08:55]OFDProtocolAddRootSTLVToBuf [14:08:55]FM_MakeSignedData [14:08:55]FM_MakeSignedData [14:08:55]SAM_PROTO_SignData [14:08:55]wFMCommunicate request_size=4 [14:08:55]MH_SAM_APDU [14:08:55]CAPDU: 80 0D 01 02 [14:08:55]Write to MH i2c: E2 08 00 CC F3 80 0D 01 02 00 00 00 00 38 [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:55]Read from MH i2c: E2 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 03 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 03 00 CC F3 00 90 00 33 [14:08:55]RAPDU: 90 00 [14:08:55]wFMCommunicate OK [14:08:55]wFMCommunicate request_size=255 [14:08:55]MH_SAM_APDU [14:08: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 C0 00 00 00 F4 03 04 00 03 0F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 87 02 00 35 04 06 00 DA [14:08:55]Write to MH i2c: E2 02 01 CD F3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0E 00 00 00 00 00 37 04 06 00 22 1A 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 C0 00 00 00 F4 03 04 00 03 0F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 87 02 00 35 04 06 00 DA 00 00 BE [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 CD F3 00 90 00 34 [14:08:56]RAPDU: 90 00 [14:08:56]wFMCommunicate OK [14:08:56]wFMCommunicate request_size=10 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 0D 02 02 05 44 06 AF 19 68 [14:08:56]Write to MH i2c: E2 0D 00 CE F3 80 0D 02 02 05 00 44 06 AF 19 68 00 00 BF [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 CE F3 00 90 00 35 [14:08:56]RAPDU: 90 00 [14:08:56]wFMCommunicate OK [14:08:56]wFMCommunicate request_size=4 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 0D 03 02 [14:08:56]Write to MH i2c: E2 08 00 CF F3 80 0D 03 02 00 00 00 00 3D [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 0B 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 0B 00 CF F3 00 16 BC AA 35 49 81 9B 53 90 00 A7 [14:08:56]RAPDU: 16 BC AA 35 49 81 9B 53 90 00 [14:08:56]wFMCommunicate OK [14:08:56]SAM_PROTO_SignData done [14:08:56]FM_MakeSignedData done [14:08:56]CreateOFDProtocolMessage [14:08:56]wFMCommunicate request_size=4 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 11 00 00 [14:08:56]Write to MH i2c: E2 08 00 D0 F3 80 11 00 00 00 00 00 00 3D [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 17 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 17 00 D0 F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [14:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:08:56]wFMCommunicate OK [14:08:56]CreateOFDProtocolMessage done [14:08:56]OFDSenderStorePacket 165710 [14:08:56]StoreOFDPacket docnum=165710 [14:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 BE 07 01 E3 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 C0 00 00 00 F4 03 04 00 03 0F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 87 02 00 35 04 06 00 DA 44 06 AF 19 68 16 BC AA 35 49 81 9B 53 [14:08:56]CheckFolder [14:08:56]dirname=/storage/ofd_packets [14:08:56]CheckFolder done [14:08:56]ProducePacketName [14:08:56]name=ofd_packets/00165710 [14:08:56]NVStorageSaveData ofd_packets/00165710 [14:08:56]File name is /storage/ofd_packets/00165710 [14:08:56]Write 301 bytes [14:08:56]NVStorageSaveData done [14:08:56]OFDSenderStorePacket done [14:08:56]KKMCreateOFDPacket done [14:08:56]NVStorageSaveData kkm_last_timestamp [14:08:56]File name is /storage/kkm_last_timestamp [14:08:56]Write 4 bytes [14:08:56]NVStorageSaveData done [14:08:56]ExternCall_PrintAddStr [14:08:56]wPrintStart [14:08:56]Write to MH i2c: 01 00 00 D1 F3 C4 [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 07 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 07 00 D1 F3 00 00 00 00 00 FF 0F D9 [14:08:56]RasterBufferAndPrint [14:08:56]line Счет N : (1)220275 [14:08:56]line ИНН: 02508201610067 [14:08:56]line Контрольно-Кассовый Чек [14:08:56]line ПРОДАЖА [14:08:56]line ТРК (МРК, ГНК) : 33 [14:08:56]line Товар: 2710124130 [14:08:56]line Аи-92-К-5 [14:08:56]line 3.740 * 66.90 [14:08:56]line = 250.21 [14:08:56]line НДС 12% НСП 1% [14:08:56]line > о реализуемом товаре [14:08:56]line ОКРУГЛЕНИЕ: -0.21 [14:08:56]line ИТОГО: 250.00 [14:08:56]line Внесено: 250.00 [14:08:56]line СДАЧА: 0.00 [14:08:56]line НСП 1% : 2.21 [14:08:56]line НДС 12% : 26.57 [14:08:56]line Наличными: 250.00 [14:08:56]line Безнал.: 0.00 [14:08:56]line Место: АЗС № 161 "Партнер Нефть" [14:08:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:08:56]line СНО: Общий режим [14:08:56]line Чек 192 20.10.2024 14:09 [14:08:56]line Смена: 534 ФФД: 1.0 [14:08:56]line ЗНМ: 0300000104 [14:08:56]line РНМ: 0000000000091764 [14:08:56]line Версия ККМ: 001 [14:08:56]line ФМ: 0000000000871759 [14:08:56]line ФД: 165710 [14:08:56]line ФПД: 239985704769896 [14:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140907&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165710&fm=239985704769896&tin=02508201610067®Number=0000000000091764&sum=25000 [14:08:56]OFD Sender: Processing packet 165710 [packets to send 48, broken 47] [14:08:56]ProducePacketName [14:08:56]name=ofd_packets/00165710 [14:08:56]OFD Sender: To server: pG, [14:08:56]CommunicateWithHost lk.salyk.kg:30040 [14:08:56]ConnectInit lk.salyk.kg [14:08:56]written 0, free lines is 4095 [14:08:56]Connected sock=10 [14:08:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 BE 07 01 E3 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 C0 00 00 00 F4 03 04 00 03 0F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 87 02 00 35 04 06 00 DA 44 06 AF 19 68 16 BC AA 35 49 81 9B 53 [14:08:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BC E6 47 00 E7 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 87 02 00 F4 03 04 00 74 B5 14 67 B6 04 01 00 00 9C 6F F9 38 53 7C C0 45 [14:08:56]CommunicateWithHost err = 0 [14:08:56]CheckOFDResponse [14:08:56]1017 (14) - 77093643461234 [14:08:56]1041 (16) - 0000000000871759 [14:08:56]1040 (4) - 165710 [14:08:56]1012 (4) - 20.10.2024 07:47 [14:08:56]1206 (1) - 0 [14:08:56]OFD Sender: Remove packet 165710 [14:08:56]ProducePacketName [14:08:56]name=ofd_packets/00165710 [14:08:56]NVStorageDeleteData [14:08:56]Write to MH i2c: 01 00 00 FC F3 EF [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 07 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 07 00 FC F3 00 00 00 00 00 C9 0C CB [14:08:56]RasterBufferAndPrint [14:08:56]line [14:08:56]line [14:08:56]line [14:08:57]line [14:08:57]line [14:08:57]written 0, free lines is 3279 [14:08:57]MH_Cut [14:08:57]Write to MH i2c: D1 01 00 03 F4 01 C9 [14:08:57]Write i2c OK [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: D1 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: D1 01 00 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: D1 01 00 03 F4 00 C8 [14:08:57]Write to MH i2c: 01 00 00 04 F4 F8 [14:08:57]Write i2c OK [14:08:57]MH_I2C_Read... [14:08:57]OFD Sender: No OFD packet to send [14:08:57]*** Cut start [14:08:57]*** Partial cut [14:08:57]*** CUTSNS_PIN = 1 [14:08:57]*** CUTSNS_PIN = 0 [14:08:58]*** Brake cut motor [14:08:58]Read from MH i2c: 01 [14:08:58]MH_I2C_Read... [14:08:58]*** Stop cut motor [14:08:58]*** Cut end [14:08:58]Read from MH i2c: 01 07 00 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: 01 07 00 04 F4 00 00 00 00 00 FF 0F 0D [14:08:58]process_action close_receipt done [14:08:58]requested_data is exist [14:08:58]produce_requested_data [14:08:58]requested_item fm.sn is exist - process it [14:08:58]wFMCommunicate request_size=4 [14:08:58]MH_SAM_APDU [14:08:58]CAPDU: 80 11 00 00 [14:08:58]Write to MH i2c: E2 08 00 05 F4 80 11 00 00 00 00 00 00 73 [14:08:58]Write i2c OK [14:08:58]MH_I2C_Read... [14:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:58]Read from MH i2c: E2 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 17 00 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 17 00 05 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [14:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:08:58]wFMCommunicate OK [14:08:58]requested_item fd.num is exist - process it [14:08:58]SAM_PROTO_GetFieldsCounters [14:08:58]wFMCommunicate request_size=4 [14:08:58]MH_SAM_APDU [14:08:58]CAPDU: 80 13 00 00 [14:08:58]Write to MH i2c: E2 08 00 06 F4 80 13 00 00 00 00 00 00 76 [14:08:58]Write i2c OK [14:08:58]MH_I2C_Read... [14:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:58]Read from MH i2c: E2 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 62 00 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 62 00 06 F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4E 87 02 00 0E 04 04 00 16 02 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 CD [14:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4E 87 02 00 0E 04 04 00 16 02 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:08:58]wFMCommunicate OK [14:08:58]SAM_PROTO_GetFieldsCounters done [14:08:58]requested_item shift.num is exist - process it [14:08:58]requested_item shift.opened is exist - process it [14:08:58]req_shift_opened [14:08:58]FM_GetShiftState [14:08:58]SAM_PROTO_GetShiftState [14:08:58]wFMCommunicate request_size=4 [14:08:58]MH_SAM_APDU [14:08:58]CAPDU: 80 13 01 00 [14:08:58]Write to MH i2c: E2 08 00 07 F4 80 13 01 00 00 00 00 00 78 [14:08:58]Write i2c OK [14:08:58]MH_I2C_Read... [14:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:58]Read from MH i2c: E2 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 0E 00 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 0E 00 07 F4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C0 [14:08:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:08:58]wFMCommunicate OK [14:08:58]SAM_PROTO_GetShiftState done [14:08:58]FM_GetShiftState done [14:08:58]req_shift_opened done [14:08:58]requested_item shift.open_date is exist - process it [14:08:58]req_shift_open_date [14:08:58]req_shift_open_date done [14:08:58]produce_requested_data done [14:08:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165710,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:08:58]process_action_free close_receipt [14:08:58]json_value_free [14:08:58]json_value_free done [14:08:58]process_json_proto returns [14:08:58]Send response to host [14:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165710,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:08:58]free response buf [14:08:58]execute_script done [14:08:58]execute_script returns [14:08:58]free content buf [14:08:58]Sock 9.Close socket [14:08:58]Sock 9.Thread stoped [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:39]accept exits with 7 [14:15:39]New connection [14:15:39]New thread 3066920292 created [14:15:39]Thread 3066776932 joined [14:15:39]Waiting for new connection... [14:15:39] Sock 7.Parse request [14:15:39]Sock 7.Check first char [14:15:39]Sock 7.First char is OK [14:15:39]request: POST /json_proto HTTP/1.0 [14:15:39]Method: POST [14:15:39]URL: /json_proto [14:15:39]Method is POST - this is cgi request [14:15:39]url: /json_proto [14:15:39]query_string will be loaded in cgi processing [14:15:39]execute_cgi json_proto POST (null) [14:15:39]execute_cgi path=json_proto method=POST [14:15:39]POST find Content-Length [14:15:39]Host: 172.17.53.195:8080 [14:15:39]Content-Length: 766 [14:15:39]Content-Type: application/json [14:15:39] [14:15:39]POST finish read [14:15:39]Found Content-Length = 766 [14:15:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:39]execute_script... [14:15: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)220276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:39]POST & json_proto [14:15:39]process_json_proto [14:15:39]json parsed OK: [14:15:39]protocol is kg_v1.0 [14:15:39]action value=close_receipt [14:15:39]process_action close_receipt [14:15:39]cmd_close_receipt [14:15:39]MH_GetDate [14:15:39]Write to MH i2c: F0 00 00 08 F4 EB [14:15:39]Write i2c OK [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: F0 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: F0 09 00 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: F0 09 00 08 F4 00 98 10 15 67 21 48 4A 65 30 [14:15:39]GetLastDocTimeStamp 1729433347 [14:15:39]current date 1729433752 [14:15:39]FM_GetShiftState [14:15:39]SAM_PROTO_GetShiftState [14:15:39]wFMCommunicate request_size=4 [14:15:39]MH_SAM_APDU [14:15:39]CAPDU: 80 13 01 00 [14:15:39]Write to MH i2c: E2 08 00 09 F4 80 13 01 00 00 00 00 00 7A [14:15:39]Write i2c OK [14:15:39]MH_I2C_Read... [14:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:39]Read from MH i2c: E2 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: E2 0E 00 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: E2 0E 00 09 F4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C2 [14:15:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:15:39]wFMCommunicate OK [14:15:39]SAM_PROTO_GetShiftState done [14:15:39]FM_GetShiftState done [14:15:39]opened in 1729384561 [14:15:39]opened+sec_in_day 1729470961 [14:15:39]quantity*price = 50041 [14:15:39]sum+1 = 50042 [14:15:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 193 20.10.2024 14:15 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165711 ФПД: 83923953731018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141552&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165711&fm=83923953731018&tin=02508201610067®Number=0000000000091764&sum=50041 [14:15:40]StoreToDocumentArchive [14:15:40]shift 534 fd 165711 [14:15:40]save to /storage/0534/doc_00165711 [14:15:40]save last doc name /storage/0534/doc_00165711 to /storage/kkm_last_doc_name [14:15:40]save OK [14:15:40]Clear old archive folders... [14:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:40]tlvbuf is 014849D0 [14:15:40]SAM_PROTO_ClearQueue [14:15:40]wFMCommunicate request_size=4 [14:15:40]MH_SAM_APDU [14:15:40]CAPDU: 80 09 00 00 [14:15:40]Write to MH i2c: E2 08 00 16 F4 80 09 00 00 00 00 00 00 7C [14:15:40]Write i2c OK [14:15:40]MH_I2C_Read... [14:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:40]Read from MH i2c: E2 [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: E2 03 00 [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: E2 03 00 16 F4 00 90 00 7E [14:15:40]RAPDU: 90 00 [14:15:40]wFMCommunicate OK [14:15:40]SAM_PROTO_ClearQueue done [14:15:40]KKMCreateOFDPacket [14:15:40]OFDProtocolAddRootSTLVToBuf [14:15:40]FM_MakeSignedData [14:15:40]FM_MakeSignedData [14:15:40]SAM_PROTO_SignData [14:15:40]wFMCommunicate request_size=4 [14:15:40]MH_SAM_APDU [14:15:40]CAPDU: 80 0D 01 02 [14:15:40]Write to MH i2c: E2 08 00 17 F4 80 0D 01 02 00 00 00 00 84 [14:15:40]Write i2c OK [14:15:40]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 17 F4 00 90 00 7F [14:15:41]RAPDU: 90 00 [14:15:41]wFMCommunicate OK [14:15:41]wFMCommunicate request_size=255 [14:15:41]MH_SAM_APDU [14:15: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 98 10 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 87 02 00 35 04 06 00 4C [14:15:41]Write to MH i2c: E2 02 01 18 F4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 98 10 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 87 02 00 35 04 06 00 4C 00 00 8D [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 18 F4 00 90 00 80 [14:15:41]RAPDU: 90 00 [14:15:41]wFMCommunicate OK [14:15:41]wFMCommunicate request_size=10 [14:15:41]MH_SAM_APDU [14:15:41]CAPDU: 80 0D 02 02 05 54 11 73 45 CA [14:15:41]Write to MH i2c: E2 0D 00 19 F4 80 0D 02 02 05 00 54 11 73 45 CA 00 00 78 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 19 F4 00 90 00 81 [14:15:41]RAPDU: 90 00 [14:15:41]wFMCommunicate OK [14:15:41]wFMCommunicate request_size=4 [14:15:41]MH_SAM_APDU [14:15:41]CAPDU: 80 0D 03 02 [14:15:41]Write to MH i2c: E2 08 00 1A F4 80 0D 03 02 00 00 00 00 89 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 0B 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 0B 00 1A F4 00 6D 0D C5 04 E8 E3 06 B4 90 00 52 [14:15:41]RAPDU: 6D 0D C5 04 E8 E3 06 B4 90 00 [14:15:41]wFMCommunicate OK [14:15:41]SAM_PROTO_SignData done [14:15:41]FM_MakeSignedData done [14:15:41]CreateOFDProtocolMessage [14:15:41]wFMCommunicate request_size=4 [14:15:41]MH_SAM_APDU [14:15:41]CAPDU: 80 11 00 00 [14:15:41]Write to MH i2c: E2 08 00 1B F4 80 11 00 00 00 00 00 00 89 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 17 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 17 00 1B F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [14:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:15:41]wFMCommunicate OK [14:15:41]CreateOFDProtocolMessage done [14:15:41]OFDSenderStorePacket 165711 [14:15:41]StoreOFDPacket docnum=165711 [14:15:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 A2 07 01 51 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 98 10 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 87 02 00 35 04 06 00 4C 54 11 73 45 CA 6D 0D C5 04 E8 E3 06 B4 [14:15:41]CheckFolder [14:15:41]dirname=/storage/ofd_packets [14:15:41]CheckFolder done [14:15:41]ProducePacketName [14:15:41]name=ofd_packets/00165711 [14:15:41]NVStorageSaveData ofd_packets/00165711 [14:15:41]File name is /storage/ofd_packets/00165711 [14:15:41]Write 301 bytes [14:15:41]NVStorageSaveData done [14:15:41]OFDSenderStorePacket done [14:15:41]KKMCreateOFDPacket done [14:15:41]NVStorageSaveData kkm_last_timestamp [14:15:41]File name is /storage/kkm_last_timestamp [14:15:41]Write 4 bytes [14:15:41]NVStorageSaveData done [14:15:41]ExternCall_PrintAddStr [14:15:41]wPrintStart [14:15:41]Write to MH i2c: 01 00 00 1C F4 10 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 07 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 07 00 1C F4 00 00 00 00 00 FF 0F 25 [14:15:41]RasterBufferAndPrint [14:15:41]line Счет N : (1)220276 [14:15:41]line ИНН: 02508201610067 [14:15:41]line Контрольно-Кассовый Чек [14:15:41]line ПРОДАЖА [14:15:41]line ТРК (МРК, ГНК) : 13 [14:15:41]line Товар: 2710124130 [14:15:41]line Аи-92-К-5 [14:15:41]line 7.480 * 66.90 [14:15:41]line = 500.41 [14:15:41]line НДС 12% НСП 1% [14:15:41]line > о реализуемом товаре [14:15:41]line ИТОГО: 500.41 [14:15:41]line НСП 1% : 4.43 [14:15:41]line НДС 12% : 53.14 [14:15:41]line Наличными: 0.00 [14:15:41]line Безнал.: 500.41 [14:15:41]line Место: АЗС № 161 "Партнер Нефть" [14:15:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:15:41]line СНО: Общий режим [14:15:41]line Чек 193 20.10.2024 14:15 [14:15:41]line Смена: 534 ФФД: 1.0 [14:15:41]line ЗНМ: 0300000104 [14:15:41]line РНМ: 0000000000091764 [14:15:41]line Версия ККМ: 001 [14:15:41]line Платежная система: Mbank [14:15:41]line ФМ: 0000000000871759 [14:15:41]line ФД: 165711 [14:15:41]line ФПД: 83923953731018 [14:15:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141552&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165711&fm=83923953731018&tin=02508201610067®Number=0000000000091764&sum=50041 [14:15:41]written 0, free lines is 4095 [14:15:41]OFD Sender: Processing packet 165711 [packets to send 48, broken 47] [14:15:41]ProducePacketName [14:15:41]name=ofd_packets/00165711 [14:15:41]OFD Sender: To server: pG, [14:15:41]CommunicateWithHost lk.salyk.kg:30040 [14:15:41]ConnectInit lk.salyk.kg [14:15:41]Connected sock=10 [14:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 A2 07 01 51 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 98 10 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 87 02 00 35 04 06 00 4C 54 11 73 45 CA 6D 0D C5 04 E8 E3 06 B4 [14:15:41]Write to MH i2c: 01 00 00 45 F4 39 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 07 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 07 00 45 F4 00 00 00 00 00 ED 0C 39 [14:15:41]RasterBufferAndPrint [14:15:41]line [14:15:41]line [14:15:41]line [14:15:41]line [14:15:41]line [14:15:41]written 0, free lines is 3318 [14:15:41]MH_Cut [14:15:41]Write to MH i2c: D1 01 00 4C F4 01 12 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: D1 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: D1 01 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: D1 01 00 4C F4 00 11 [14:15:41]Write to MH i2c: 01 00 00 4D F4 41 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2A 19 47 00 04 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 31 37 35 39 10 04 04 00 4F 87 02 00 F4 03 04 00 0A B7 14 67 B6 04 01 00 00 15 C7 79 EE AB 46 E6 A9 [14:15:42]CommunicateWithHost err = 0 [14:15:42]CheckOFDResponse [14:15:42]1017 (14) - 77093643461234 [14:15:42]1041 (16) - 0000000000871759 [14:15:42]1040 (4) - 165711 [14:15:42]1012 (4) - 20.10.2024 07:53 [14:15:42]1206 (1) - 0 [14:15:42]OFD Sender: Remove packet 165711 [14:15:42]ProducePacketName [14:15:42]name=ofd_packets/00165711 [14:15:42]NVStorageDeleteData [14:15:42]OFD Sender: No OFD packet to send [14:15:42]*** Cut start [14:15:42]*** Partial cut [14:15:42]*** CUTSNS_PIN = 1 [14:15:42]*** CUTSNS_PIN = 0 [14:15:42]*** Brake cut motor [14:15:43]Read from MH i2c: 01 [14:15:43]MH_I2C_Read... [14:15:43]*** Stop cut motor [14:15:43]*** Cut end [14:15:43]Read from MH i2c: 01 07 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: 01 07 00 4D F4 00 00 00 00 00 FF 0F 56 [14:15:43]process_action close_receipt done [14:15:43]requested_data is exist [14:15:43]produce_requested_data [14:15:43]requested_item fm.sn is exist - process it [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 11 00 00 [14:15:43]Write to MH i2c: E2 08 00 4E F4 80 11 00 00 00 00 00 00 BC [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 17 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 17 00 4E F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 14 [14:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:15:43]wFMCommunicate OK [14:15:43]requested_item fd.num is exist - process it [14:15:43]SAM_PROTO_GetFieldsCounters [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 13 00 00 [14:15:43]Write to MH i2c: E2 08 00 4F F4 80 13 00 00 00 00 00 00 BF [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 62 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 62 00 4F F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4F 87 02 00 0E 04 04 00 16 02 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 1A [14:15:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4F 87 02 00 0E 04 04 00 16 02 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:15:43]wFMCommunicate OK [14:15:43]SAM_PROTO_GetFieldsCounters done [14:15:43]requested_item shift.num is exist - process it [14:15:43]requested_item shift.opened is exist - process it [14:15:43]req_shift_opened [14:15:43]FM_GetShiftState [14:15:43]SAM_PROTO_GetShiftState [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 13 01 00 [14:15:43]Write to MH i2c: E2 08 00 50 F4 80 13 01 00 00 00 00 00 C1 [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 0E 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 0E 00 50 F4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 09 [14:15:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:15:43]wFMCommunicate OK [14:15:43]SAM_PROTO_GetShiftState done [14:15:43]FM_GetShiftState done [14:15:43]req_shift_opened done [14:15:43]requested_item shift.open_date is exist - process it [14:15:43]req_shift_open_date [14:15:43]req_shift_open_date done [14:15:43]produce_requested_data done [14:15:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165711,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:15:43]process_action_free close_receipt [14:15:43]json_value_free [14:15:43]json_value_free done [14:15:43]process_json_proto returns [14:15:43]Send response to host [14:15:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165711,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:15:43]free response buf [14:15:43]execute_script done [14:15:43]execute_script returns [14:15:43]free content buf [14:15:43]Sock 7.Close socket [14:15:43]Sock 7.Thread stoped [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:13]accept exits with 9 [14:19:13]New connection [14:19:13]New thread 3066776932 created [14:19:13]Thread 3066920292 joined [14:19:13]Waiting for new connection... [14:19:13] Sock 9.Parse request [14:19:13]Sock 9.Check first char [14:19:13]Sock 9.First char is OK [14:19:13]request: POST /json_proto HTTP/1.0 [14:19:13]Method: POST [14:19:13]URL: /json_proto [14:19:13]Method is POST - this is cgi request [14:19:13]url: /json_proto [14:19:13]query_string will be loaded in cgi processing [14:19:13]execute_cgi json_proto POST (null) [14:19:13]execute_cgi path=json_proto method=POST [14:19:13]POST find Content-Length [14:19:13]Host: 172.17.53.195:8080 [14:19:13]Content-Length: 682 [14:19:13]Content-Type: application/json [14:19:13] [14:19:13]POST finish read [14:19:13]Found Content-Length = 682 [14:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.240, "sum" : 1220.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1220.00, "total" : 1220.00, "payments": [ { "type": 0, "sum" : 1220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:13]execute_script... [14:19:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.240, "sum" : 1220.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1220.00, "total" : 1220.00, "payments": [ { "type": 0, "sum" : 1220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:13]POST & json_proto [14:19:13]process_json_proto [14:19:13]json parsed OK: [14:19:13]protocol is kg_v1.0 [14:19:13]action value=close_receipt [14:19:13]process_action close_receipt [14:19:13]cmd_close_receipt [14:19:13]MH_GetDate [14:19:13]Write to MH i2c: F0 00 00 51 F4 34 [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 09 00 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 09 00 51 F4 00 6E 11 15 67 21 48 4A 65 50 [14:19:13]GetLastDocTimeStamp 1729433752 [14:19:13]current date 1729433966 [14:19:13]FM_GetShiftState [14:19:13]SAM_PROTO_GetShiftState [14:19:13]wFMCommunicate request_size=4 [14:19:13]MH_SAM_APDU [14:19:13]CAPDU: 80 13 01 00 [14:19:13]Write to MH i2c: E2 08 00 52 F4 80 13 01 00 00 00 00 00 C3 [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:13]Read from MH i2c: E2 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: E2 0E 00 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: E2 0E 00 52 F4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0B [14:19:13]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:19:13]wFMCommunicate OK [14:19:13]SAM_PROTO_GetShiftState done [14:19:13]FM_GetShiftState done [14:19:13]opened in 1729384561 [14:19:13]opened+sec_in_day 1729470961 [14:19:13]quantity*price = 122025 [14:19:13]sum+1 = 122027 [14:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1220.00 Внесено: 1220.00 СДАЧА: 0.00 НСП 1% : 10.80 НДС 12% : 129.58 Наличными: 1220.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 194 20.10.2024 14:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165712 ФПД: 247329765645869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141926&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165712&fm=247329765645869&tin=02508201610067®Number=0000000000091764&sum=122000 [14:19:14]StoreToDocumentArchive [14:19:14]shift 534 fd 165712 [14:19:14]save to /storage/0534/doc_00165712 [14:19:14]save last doc name /storage/0534/doc_00165712 to /storage/kkm_last_doc_name [14:19:14]save OK [14:19:14]Clear old archive folders... [14:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:14]tlvbuf is 0165D8D0 [14:19:14]SAM_PROTO_ClearQueue [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 09 00 00 [14:19:14]Write to MH i2c: E2 08 00 5F F4 80 09 00 00 00 00 00 00 C5 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 5F F4 00 90 00 C7 [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]SAM_PROTO_ClearQueue done [14:19:14]KKMCreateOFDPacket [14:19:14]OFDProtocolAddRootSTLVToBuf [14:19:14]FM_MakeSignedData [14:19:14]FM_MakeSignedData [14:19:14]SAM_PROTO_SignData [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 01 02 [14:19:14]Write to MH i2c: E2 08 00 60 F4 80 0D 01 02 00 00 00 00 CD [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 60 F4 00 90 00 C8 [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]wFMCommunicate request_size=255 [14:19:14]MH_SAM_APDU [14:19: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 40 47 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6E 11 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 87 02 00 35 04 06 00 E0 [14:19:14]Write to MH i2c: E2 02 01 61 F4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 AA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6E 11 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 87 02 00 35 04 06 00 E0 00 00 9C [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 61 F4 00 90 00 C9 [14:19:15]RAPDU: 90 00 [14:19:15]wFMCommunicate OK [14:19:15]wFMCommunicate request_size=10 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 0D 02 02 05 F1 F2 D2 DE 2D [14:19:15]Write to MH i2c: E2 0D 00 62 F4 80 0D 02 02 05 00 F1 F2 D2 DE 2D 00 00 9A [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 62 F4 00 90 00 CA [14:19:15]RAPDU: 90 00 [14:19:15]wFMCommunicate OK [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 0D 03 02 [14:19:15]Write to MH i2c: E2 08 00 63 F4 80 0D 03 02 00 00 00 00 D2 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0B 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0B 00 63 F4 00 79 04 03 0D DD 5E 8F C7 90 00 F1 [14:19:15]RAPDU: 79 04 03 0D DD 5E 8F C7 90 00 [14:19:15]wFMCommunicate OK [14:19:15]SAM_PROTO_SignData done [14:19:15]FM_MakeSignedData done [14:19:15]CreateOFDProtocolMessage [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 11 00 00 [14:19:15]Write to MH i2c: E2 08 00 64 F4 80 11 00 00 00 00 00 00 D2 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 17 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 17 00 64 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2A [14:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:19:15]wFMCommunicate OK [14:19:15]CreateOFDProtocolMessage done [14:19:15]OFDSenderStorePacket 165712 [14:19:15]StoreOFDPacket docnum=165712 [14:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 46 07 01 7E 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 AA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6E 11 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 87 02 00 35 04 06 00 E0 F1 F2 D2 DE 2D 79 04 03 0D DD 5E 8F C7 [14:19:15]CheckFolder [14:19:15]dirname=/storage/ofd_packets [14:19:15]CheckFolder done [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00165712 [14:19:15]NVStorageSaveData ofd_packets/00165712 [14:19:15]File name is /storage/ofd_packets/00165712 [14:19:15]Write 301 bytes [14:19:15]NVStorageSaveData done [14:19:15]OFDSenderStorePacket done [14:19:15]KKMCreateOFDPacket done [14:19:15]NVStorageSaveData kkm_last_timestamp [14:19:15]File name is /storage/kkm_last_timestamp [14:19:15]Write 4 bytes [14:19:15]NVStorageSaveData done [14:19:15]ExternCall_PrintAddStr [14:19:15]wPrintStart [14:19:15]Write to MH i2c: 01 00 00 65 F4 59 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 65 F4 00 00 00 00 00 FF 0F 6E [14:19:15]RasterBufferAndPrint [14:19:15]line Счет N : (1)220277 [14:19:15]line ИНН: 02508201610067 [14:19:15]line Контрольно-Кассовый Чек [14:19:15]line ПРОДАЖА [14:19:15]line ТРК (МРК, ГНК) : 33 [14:19:15]line Товар: 2710124130 [14:19:15]line Аи-92-К-5 [14:19:15]line 18.240 * 66.90 [14:19:15]line = 1220.26 [14:19:15]line НДС 12% НСП 1% [14:19:15]line > о реализуемом товаре [14:19:15]line ОКРУГЛЕНИЕ: -0.26 [14:19:15]line ИТОГО: 1220.00 [14:19:15]line Внесено: 1220.00 [14:19:15]line СДАЧА: 0.00 [14:19:15]line НСП 1% : 10.80 [14:19:15]line НДС 12% : 129.58 [14:19:15]line Наличными: 1220.00 [14:19:15]line Безнал.: 0.00 [14:19:15]line Место: АЗС № 161 "Партнер Нефть" [14:19:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:19:15]line СНО: Общий режим [14:19:15]line Чек 194 20.10.2024 14:19 [14:19:15]line Смена: 534 ФФД: 1.0 [14:19:15]line ЗНМ: 0300000104 [14:19:15]line РНМ: 0000000000091764 [14:19:15]line Версия ККМ: 001 [14:19:15]line ФМ: 0000000000871759 [14:19:15]line ФД: 165712 [14:19:15]line ФПД: 247329765645869 [14:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141926&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165712&fm=247329765645869&tin=02508201610067®Number=0000000000091764&sum=122000 [14:19:15]OFD Sender: Processing packet 165712 [packets to send 48, broken 47] [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00165712 [14:19:15]OFD Sender: To server: pG, [14:19:15]CommunicateWithHost lk.salyk.kg:30040 [14:19:15]ConnectInit lk.salyk.kg [14:19:15]written 0, free lines is 4095 [14:19:15]Connected sock=10 [14:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 46 07 01 7E 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 AA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6E 11 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 87 02 00 35 04 06 00 E0 F1 F2 D2 DE 2D 79 04 03 0D DD 5E 8F C7 [14:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C1 C1 47 00 C9 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 31 37 35 39 10 04 04 00 50 87 02 00 F4 03 04 00 E0 B7 14 67 B6 04 01 00 00 85 C6 DC 72 A0 F6 83 B7 [14:19:16]CommunicateWithHost err = 0 [14:19:16]CheckOFDResponse [14:19:16]1017 (14) - 77093643461234 [14:19:16]1041 (16) - 0000000000871759 [14:19:16]1040 (4) - 165712 [14:19:16]1012 (4) - 20.10.2024 07:57 [14:19:16]1206 (1) - 0 [14:19:16]OFD Sender: Remove packet 165712 [14:19:16]ProducePacketName [14:19:16]name=ofd_packets/00165712 [14:19:16]NVStorageDeleteData [14:19:16]Write to MH i2c: 01 00 00 90 F4 84 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: 01 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: 01 07 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: 01 07 00 90 F4 00 00 00 00 00 D3 0C 6A [14:19:16]RasterBufferAndPrint [14:19:16]line [14:19:16]line [14:19:16]line [14:19:16]line [14:19:16]line [14:19:16]written 0, free lines is 3289 [14:19:16]MH_Cut [14:19:16]Write to MH i2c: D1 01 00 97 F4 01 5D [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: D1 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: D1 01 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: D1 01 00 97 F4 00 5C [14:19:16]Write to MH i2c: 01 00 00 98 F4 8C [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]OFD Sender: No OFD packet to send [14:19:16]*** Cut start [14:19:16]*** Partial cut [14:19:16]*** CUTSNS_PIN = 1 [14:19:17]*** CUTSNS_PIN = 0 [14:19:17]*** Brake cut motor [14:19:17]Read from MH i2c: 01 [14:19:17]MH_I2C_Read... [14:19:17]*** Stop cut motor [14:19:17]*** Cut end [14:19:17]Read from MH i2c: 01 07 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 98 F4 00 00 00 00 00 FF 0F A1 [14:19:17]process_action close_receipt done [14:19:17]requested_data is exist [14:19:17]produce_requested_data [14:19:17]requested_item fm.sn is exist - process it [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 11 00 00 [14:19:17]Write to MH i2c: E2 08 00 99 F4 80 11 00 00 00 00 00 00 07 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 99 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5F [14:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:19:17]wFMCommunicate OK [14:19:17]requested_item fd.num is exist - process it [14:19:17]SAM_PROTO_GetFieldsCounters [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 13 00 00 [14:19:17]Write to MH i2c: E2 08 00 9A F4 80 13 00 00 00 00 00 00 0A [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 62 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 62 00 9A F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 50 87 02 00 0E 04 04 00 16 02 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 69 [14:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 50 87 02 00 0E 04 04 00 16 02 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:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_GetFieldsCounters done [14:19:17]requested_item shift.num is exist - process it [14:19:17]requested_item shift.opened is exist - process it [14:19:17]req_shift_opened [14:19:17]FM_GetShiftState [14:19:17]SAM_PROTO_GetShiftState [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 13 01 00 [14:19:17]Write to MH i2c: E2 08 00 9B F4 80 13 01 00 00 00 00 00 0C [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:17]Read from MH i2c: E2 0E 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 0E 00 9B F4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 54 [14:19:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_GetShiftState done [14:19:17]FM_GetShiftState done [14:19:17]req_shift_opened done [14:19:17]requested_item shift.open_date is exist - process it [14:19:17]req_shift_open_date [14:19:17]req_shift_open_date done [14:19:17]produce_requested_data done [14:19:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165712,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:19:17]process_action_free close_receipt [14:19:17]json_value_free [14:19:17]json_value_free done [14:19:17]process_json_proto returns [14:19:17]Send response to host [14:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165712,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:19:17]free response buf [14:19:17]execute_script done [14:19:17]execute_script returns [14:19:17]free content buf [14:19:17]Sock 9.Close socket [14:19:17]Sock 9.Thread stoped [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:33]accept exits with 7 [14:23:33]New connection [14:23:33]New thread 3066920292 created [14:23:33]Thread 3066776932 joined [14:23:33]Waiting for new connection... [14:23:33] Sock 7.Parse request [14:23:33]Sock 7.Check first char [14:23:33]Sock 7.First char is OK [14:23:33]request: POST /json_proto HTTP/1.0 [14:23:33]Method: POST [14:23:33]URL: /json_proto [14:23:33]Method is POST - this is cgi request [14:23:33]url: /json_proto [14:23:33]query_string will be loaded in cgi processing [14:23:33]execute_cgi json_proto POST (null) [14:23:33]execute_cgi path=json_proto method=POST [14:23:33]POST find Content-Length [14:23:33]Host: 172.17.53.195:8080 [14:23:33]Content-Length: 678 [14:23:33]Content-Type: application/json [14:23:33] [14:23:33]POST finish read [14:23:33]Found Content-Length = 678 [14:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:33]execute_script... [14:23: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)220278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:33]POST & json_proto [14:23:33]process_json_proto [14:23:33]json parsed OK: [14:23:33]protocol is kg_v1.0 [14:23:33]action value=close_receipt [14:23:33]process_action close_receipt [14:23:33]cmd_close_receipt [14:23:33]MH_GetDate [14:23:33]Write to MH i2c: F0 00 00 9C F4 7F [14:23:33]Write i2c OK [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: F0 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: F0 09 00 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: F0 09 00 9C F4 00 72 12 15 67 21 48 4A 65 A0 [14:23:33]GetLastDocTimeStamp 1729433966 [14:23:33]current date 1729434226 [14:23:33]FM_GetShiftState [14:23:33]SAM_PROTO_GetShiftState [14:23:33]wFMCommunicate request_size=4 [14:23:33]MH_SAM_APDU [14:23:33]CAPDU: 80 13 01 00 [14:23:33]Write to MH i2c: E2 08 00 9D F4 80 13 01 00 00 00 00 00 0E [14:23:33]Write i2c OK [14:23:33]MH_I2C_Read... [14:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:33]Read from MH i2c: E2 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: E2 0E 00 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: E2 0E 00 9D F4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 56 [14:23:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:23:33]wFMCommunicate OK [14:23:33]SAM_PROTO_GetShiftState done [14:23:33]FM_GetShiftState done [14:23:33]opened in 1729384561 [14:23:33]opened+sec_in_day 1729470961 [14:23:33]quantity*price = 70044 [14:23:33]sum+1 = 70045 [14:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 195 20.10.2024 14:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165713 ФПД: 155754472999747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142346&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165713&fm=155754472999747&tin=02508201610067®Number=0000000000091764&sum=70000 [14:23:34]StoreToDocumentArchive [14:23:34]shift 534 fd 165713 [14:23:34]save to /storage/0534/doc_00165713 [14:23:34]save last doc name /storage/0534/doc_00165713 to /storage/kkm_last_doc_name [14:23:34]save OK [14:23:34]Clear old archive folders... [14:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:34]tlvbuf is 014ECDF0 [14:23:34]SAM_PROTO_ClearQueue [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 09 00 00 [14:23:34]Write to MH i2c: E2 08 00 AA F4 80 09 00 00 00 00 00 00 10 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 03 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 03 00 AA F4 00 90 00 12 [14:23:34]RAPDU: 90 00 [14:23:34]wFMCommunicate OK [14:23:34]SAM_PROTO_ClearQueue done [14:23:34]KKMCreateOFDPacket [14:23:34]OFDProtocolAddRootSTLVToBuf [14:23:34]FM_MakeSignedData [14:23:34]FM_MakeSignedData [14:23:34]SAM_PROTO_SignData [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 0D 01 02 [14:23:34]Write to MH i2c: E2 08 00 AB F4 80 0D 01 02 00 00 00 00 18 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 03 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 03 00 AB F4 00 90 00 13 [14:23:34]RAPDU: 90 00 [14:23:34]wFMCommunicate OK [14:23:34]wFMCommunicate request_size=255 [14:23:34]MH_SAM_APDU [14:23: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 72 12 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 87 02 00 35 04 06 00 8D [14:23:34]Write to MH i2c: E2 02 01 AC F4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 72 12 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 87 02 00 35 04 06 00 8D 00 00 00 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 AC F4 00 90 00 14 [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=10 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 02 02 05 A8 6A 09 0B 43 [14:23:35]Write to MH i2c: E2 0D 00 AD F4 80 0D 02 02 05 00 A8 6A 09 0B 43 00 00 8E [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 AD F4 00 90 00 15 [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 03 02 [14:23:35]Write to MH i2c: E2 08 00 AE F4 80 0D 03 02 00 00 00 00 1D [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 0B 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 0B 00 AE F4 00 73 26 44 81 D7 83 E8 31 90 00 EF [14:23:35]RAPDU: 73 26 44 81 D7 83 E8 31 90 00 [14:23:35]wFMCommunicate OK [14:23:35]SAM_PROTO_SignData done [14:23:35]FM_MakeSignedData done [14:23:35]CreateOFDProtocolMessage [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 11 00 00 [14:23:35]Write to MH i2c: E2 08 00 AF F4 80 11 00 00 00 00 00 00 1D [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 17 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 17 00 AF F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [14:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:23:35]wFMCommunicate OK [14:23:35]CreateOFDProtocolMessage done [14:23:35]OFDSenderStorePacket 165713 [14:23:35]StoreOFDPacket docnum=165713 [14:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE C3 07 01 EB 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 72 12 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 87 02 00 35 04 06 00 8D A8 6A 09 0B 43 73 26 44 81 D7 83 E8 31 [14:23:35]CheckFolder [14:23:35]dirname=/storage/ofd_packets [14:23:35]CheckFolder done [14:23:35]ProducePacketName [14:23:35]name=ofd_packets/00165713 [14:23:35]NVStorageSaveData ofd_packets/00165713 [14:23:35]File name is /storage/ofd_packets/00165713 [14:23:35]Write 301 bytes [14:23:35]NVStorageSaveData done [14:23:35]OFDSenderStorePacket done [14:23:35]KKMCreateOFDPacket done [14:23:35]NVStorageSaveData kkm_last_timestamp [14:23:35]File name is /storage/kkm_last_timestamp [14:23:35]Write 4 bytes [14:23:35]NVStorageSaveData done [14:23:35]ExternCall_PrintAddStr [14:23:35]wPrintStart [14:23:35]Write to MH i2c: 01 00 00 B0 F4 A4 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: 01 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: 01 07 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: 01 07 00 B0 F4 00 00 00 00 00 FF 0F B9 [14:23:35]RasterBufferAndPrint [14:23:35]line Счет N : (1)220278 [14:23:35]line ИНН: 02508201610067 [14:23:35]line Контрольно-Кассовый Чек [14:23:35]line ПРОДАЖА [14:23:35]line ТРК (МРК, ГНК) : 33 [14:23:35]line Товар: 2710124130 [14:23:35]line Аи-92-К-5 [14:23:35]line 10.470 * 66.90 [14:23:35]line = 700.44 [14:23:35]line НДС 12% НСП 1% [14:23:35]line > о реализуемом товаре [14:23:35]line ОКРУГЛЕНИЕ: -0.44 [14:23:35]line ИТОГО: 700.00 [14:23:35]line Внесено: 700.00 [14:23:35]line СДАЧА: 0.00 [14:23:35]line НСП 1% : 6.20 [14:23:35]line НДС 12% : 74.38 [14:23:35]line Наличными: 700.00 [14:23:35]line Безнал.: 0.00 [14:23:35]line Место: АЗС № 161 "Партнер Нефть" [14:23:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:23:35]line СНО: Общий режим [14:23:35]line Чек 195 20.10.2024 14:23 [14:23:35]line Смена: 534 ФФД: 1.0 [14:23:35]line ЗНМ: 0300000104 [14:23:35]line РНМ: 0000000000091764 [14:23:35]line Версия ККМ: 001 [14:23:35]line ФМ: 0000000000871759 [14:23:35]line ФД: 165713 [14:23:35]line ФПД: 155754472999747 [14:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142346&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165713&fm=155754472999747&tin=02508201610067®Number=0000000000091764&sum=70000 [14:23:35]OFD Sender: Processing packet 165713 [packets to send 48, broken 47] [14:23:35]ProducePacketName [14:23:35]name=ofd_packets/00165713 [14:23:35]OFD Sender: To server: pG, [14:23:35]CommunicateWithHost lk.salyk.kg:30040 [14:23:35]ConnectInit lk.salyk.kg [14:23:35]written 0, free lines is 4095 [14:23:35]Connected sock=10 [14:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE C3 07 01 EB 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 72 12 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 87 02 00 35 04 06 00 8D A8 6A 09 0B 43 73 26 44 81 D7 83 E8 31 [14:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5D 16 47 00 CC 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 87 02 00 F4 03 04 00 E4 B8 14 67 B6 04 01 00 00 05 37 4B 48 DD B9 9A 8E [14:23:36]CommunicateWithHost err = 0 [14:23:36]CheckOFDResponse [14:23:36]1017 (14) - 77093643461234 [14:23:36]1041 (16) - 0000000000871759 [14:23:36]1040 (4) - 165713 [14:23:36]1012 (4) - 20.10.2024 08:01 [14:23:36]1206 (1) - 0 [14:23:36]OFD Sender: Remove packet 165713 [14:23:36]ProducePacketName [14:23:36]name=ofd_packets/00165713 [14:23:36]NVStorageDeleteData [14:23:36]Write to MH i2c: 01 00 00 DB F4 CF [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 07 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 07 00 DB F4 00 00 00 00 00 CE 0C B0 [14:23:36]RasterBufferAndPrint [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]written 0, free lines is 3285 [14:23:36]MH_Cut [14:23:36]Write to MH i2c: D1 01 00 E2 F4 01 A8 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 01 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 01 00 E2 F4 00 A7 [14:23:36]Write to MH i2c: 01 00 00 E3 F4 D7 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]OFD Sender: No OFD packet to send [14:23:36]*** Cut start [14:23:36]*** Partial cut [14:23:36]*** CUTSNS_PIN = 1 [14:23:37]*** CUTSNS_PIN = 0 [14:23:37]*** Brake cut motor [14:23:37]Read from MH i2c: 01 [14:23:37]MH_I2C_Read... [14:23:37]*** Stop cut motor [14:23:37]*** Cut end [14:23:37]Read from MH i2c: 01 07 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: 01 07 00 E3 F4 00 00 00 00 00 FF 0F EC [14:23:37]process_action close_receipt done [14:23:37]requested_data is exist [14:23:37]produce_requested_data [14:23:37]requested_item fm.sn is exist - process it [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 11 00 00 [14:23:37]Write to MH i2c: E2 08 00 E4 F4 80 11 00 00 00 00 00 00 52 [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 17 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 17 00 E4 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [14:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:23:37]wFMCommunicate OK [14:23:37]requested_item fd.num is exist - process it [14:23:37]SAM_PROTO_GetFieldsCounters [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 13 00 00 [14:23:37]Write to MH i2c: E2 08 00 E5 F4 80 13 00 00 00 00 00 00 55 [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 62 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 62 00 E5 F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 51 87 02 00 0E 04 04 00 16 02 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 B8 [14:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 51 87 02 00 0E 04 04 00 16 02 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:23:37]wFMCommunicate OK [14:23:37]SAM_PROTO_GetFieldsCounters done [14:23:37]requested_item shift.num is exist - process it [14:23:37]requested_item shift.opened is exist - process it [14:23:37]req_shift_opened [14:23:37]FM_GetShiftState [14:23:37]SAM_PROTO_GetShiftState [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 13 01 00 [14:23:37]Write to MH i2c: E2 08 00 E6 F4 80 13 01 00 00 00 00 00 57 [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 0E 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 0E 00 E6 F4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9F [14:23:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:23:37]wFMCommunicate OK [14:23:37]SAM_PROTO_GetShiftState done [14:23:37]FM_GetShiftState done [14:23:37]req_shift_opened done [14:23:37]requested_item shift.open_date is exist - process it [14:23:37]req_shift_open_date [14:23:37]req_shift_open_date done [14:23:37]produce_requested_data done [14:23:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165713,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:23:37]process_action_free close_receipt [14:23:37]json_value_free [14:23:37]json_value_free done [14:23:37]process_json_proto returns [14:23:37]Send response to host [14:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165713,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:23:37]free response buf [14:23:37]execute_script done [14:23:37]execute_script returns [14:23:37]free content buf [14:23:37]Sock 7.Close socket [14:23:37]Sock 7.Thread stoped [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]accept exits with 9 [14:25:36]New connection [14:25:36]New thread 3066776932 created [14:25:36]Thread 3066920292 joined [14:25:36]Waiting for new connection... [14:25:36] Sock 9.Parse request [14:25:36]Sock 9.Check first char [14:25:36]Sock 9.First char is OK [14:25:36]request: POST /json_proto HTTP/1.0 [14:25:36]Method: POST [14:25:36]URL: /json_proto [14:25:36]Method is POST - this is cgi request [14:25:36]url: /json_proto [14:25:36]query_string will be loaded in cgi processing [14:25:36]execute_cgi json_proto POST (null) [14:25:36]execute_cgi path=json_proto method=POST [14:25:36]POST find Content-Length [14:25:36]Host: 172.17.53.195:8080 [14:25:36]Content-Length: 769 [14:25:36]Content-Type: application/json [14:25:36] [14:25:36]POST finish read [14:25:36]Found Content-Length = 769 [14:25:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:36]execute_script... [14:25: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)220279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:36]POST & json_proto [14:25:36]process_json_proto [14:25:36]json parsed OK: [14:25:36]protocol is kg_v1.0 [14:25:36]action value=close_receipt [14:25:36]process_action close_receipt [14:25:36]cmd_close_receipt [14:25:36]MH_GetDate [14:25:36]Write to MH i2c: F0 00 00 E7 F4 CA [14:25:36]Write i2c OK [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: F0 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: F0 09 00 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: F0 09 00 E7 F4 00 EC 12 15 67 21 48 4A 65 65 [14:25:36]GetLastDocTimeStamp 1729434226 [14:25:36]current date 1729434348 [14:25:36]FM_GetShiftState [14:25:36]SAM_PROTO_GetShiftState [14:25:36]wFMCommunicate request_size=4 [14:25:36]MH_SAM_APDU [14:25:36]CAPDU: 80 13 01 00 [14:25:36]Write to MH i2c: E2 08 00 E8 F4 80 13 01 00 00 00 00 00 59 [14:25:36]Write i2c OK [14:25:36]MH_I2C_Read... [14:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:36]Read from MH i2c: E2 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 0E 00 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 0E 00 E8 F4 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A1 [14:25:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:25:36]wFMCommunicate OK [14:25:36]SAM_PROTO_GetShiftState done [14:25:36]FM_GetShiftState done [14:25:36]opened in 1729384561 [14:25:36]opened+sec_in_day 1729470961 [14:25:36]quantity*price = 100021 [14:25:36]sum+1 = 100023 [14:25:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 196 20.10.2024 14:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165714 ФПД: 1233685525068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142548&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165714&fm=1233685525068&tin=02508201610067®Number=0000000000091764&sum=100022 [14:25:37]StoreToDocumentArchive [14:25:37]shift 534 fd 165714 [14:25:37]save to /storage/0534/doc_00165714 [14:25:37]save last doc name /storage/0534/doc_00165714 to /storage/kkm_last_doc_name [14:25:37]save OK [14:25:37]Clear old archive folders... [14:25:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:37]tlvbuf is 0162EFE0 [14:25:37]SAM_PROTO_ClearQueue [14:25:37]wFMCommunicate request_size=4 [14:25:37]MH_SAM_APDU [14:25:37]CAPDU: 80 09 00 00 [14:25:37]Write to MH i2c: E2 08 00 F5 F4 80 09 00 00 00 00 00 00 5B [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 03 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 03 00 F5 F4 00 90 00 5D [14:25:37]RAPDU: 90 00 [14:25:37]wFMCommunicate OK [14:25:37]SAM_PROTO_ClearQueue done [14:25:37]KKMCreateOFDPacket [14:25:37]OFDProtocolAddRootSTLVToBuf [14:25:37]FM_MakeSignedData [14:25:37]FM_MakeSignedData [14:25:37]SAM_PROTO_SignData [14:25:37]wFMCommunicate request_size=4 [14:25:37]MH_SAM_APDU [14:25:37]CAPDU: 80 0D 01 02 [14:25:37]Write to MH i2c: E2 08 00 F6 F4 80 0D 01 02 00 00 00 00 63 [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 03 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 03 00 F6 F4 00 90 00 5E [14:25:37]RAPDU: 90 00 [14:25:37]wFMCommunicate OK [14:25:37]wFMCommunicate request_size=255 [14:25:37]MH_SAM_APDU [14:25:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 EC 12 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 87 02 00 35 04 06 00 01 [14:25:37]Write to MH i2c: E2 02 01 F7 F4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 EC 12 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 87 02 00 35 04 06 00 01 00 00 74 [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 03 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 03 00 F7 F4 00 90 00 5F [14:25:37]RAPDU: 90 00 [14:25:37]wFMCommunicate OK [14:25:37]wFMCommunicate request_size=10 [14:25:37]MH_SAM_APDU [14:25:37]CAPDU: 80 0D 02 02 05 1F 3D 63 32 4C [14:25:37]Write to MH i2c: E2 0D 00 F8 F4 80 0D 02 02 05 00 1F 3D 63 32 4C 00 00 AD [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 03 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 03 00 F8 F4 00 90 00 60 [14:25:37]RAPDU: 90 00 [14:25:37]wFMCommunicate OK [14:25:37]wFMCommunicate request_size=4 [14:25:37]MH_SAM_APDU [14:25:37]CAPDU: 80 0D 03 02 [14:25:37]Write to MH i2c: E2 08 00 F9 F4 80 0D 03 02 00 00 00 00 68 [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 0B 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 0B 00 F9 F4 00 C8 A3 A0 1A 83 A9 F2 85 90 00 31 [14:25:37]RAPDU: C8 A3 A0 1A 83 A9 F2 85 90 00 [14:25:37]wFMCommunicate OK [14:25:37]SAM_PROTO_SignData done [14:25:37]FM_MakeSignedData done [14:25:37]CreateOFDProtocolMessage [14:25:37]wFMCommunicate request_size=4 [14:25:37]MH_SAM_APDU [14:25:37]CAPDU: 80 11 00 00 [14:25:37]Write to MH i2c: E2 08 00 FA F4 80 11 00 00 00 00 00 00 68 [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 17 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 17 00 FA F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C0 [14:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:25:37]wFMCommunicate OK [14:25:37]CreateOFDProtocolMessage done [14:25:37]OFDSenderStorePacket 165714 [14:25:37]StoreOFDPacket docnum=165714 [14:25:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C E6 07 01 4B B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 EC 12 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 87 02 00 35 04 06 00 01 1F 3D 63 32 4C C8 A3 A0 1A 83 A9 F2 85 [14:25:37]CheckFolder [14:25:37]dirname=/storage/ofd_packets [14:25:37]CheckFolder done [14:25:37]ProducePacketName [14:25:37]name=ofd_packets/00165714 [14:25:37]NVStorageSaveData ofd_packets/00165714 [14:25:37]File name is /storage/ofd_packets/00165714 [14:25:37]Write 301 bytes [14:25:37]NVStorageSaveData done [14:25:37]OFDSenderStorePacket done [14:25:37]KKMCreateOFDPacket done [14:25:37]NVStorageSaveData kkm_last_timestamp [14:25:37]File name is /storage/kkm_last_timestamp [14:25:37]Write 4 bytes [14:25:37]NVStorageSaveData done [14:25:37]ExternCall_PrintAddStr [14:25:37]wPrintStart [14:25:37]Write to MH i2c: 01 00 00 FB F4 EF [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: 01 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: 01 07 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: 01 07 00 FB F4 00 00 00 00 00 FF 0F 04 [14:25:37]RasterBufferAndPrint [14:25:37]line Счет N : (1)220279 [14:25:37]line ИНН: 02508201610067 [14:25:37]line Контрольно-Кассовый Чек [14:25:37]line ПРОДАЖА [14:25:37]line ТРК (МРК, ГНК) : 24 [14:25:37]line Товар: 2710124500 [14:25:37]line Аи-95-К-5 [14:25:37]line 13.480 * 74.20 [14:25:37]line = 1000.22 [14:25:37]line НДС 12% НСП 1% [14:25:37]line > о реализуемом товаре [14:25:37]line ИТОГО: 1000.22 [14:25:37]line НСП 1% : 8.85 [14:25:37]line НДС 12% : 106.22 [14:25:37]line Наличными: 0.00 [14:25:37]line Безнал.: 1000.22 [14:25:37]line Место: АЗС № 161 "Партнер Нефть" [14:25:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:25:37]line СНО: Общий режим [14:25:37]line Чек 196 20.10.2024 14:25 [14:25:37]line Смена: 534 ФФД: 1.0 [14:25:37]line ЗНМ: 0300000104 [14:25:37]line РНМ: 0000000000091764 [14:25:37]line Версия ККМ: 001 [14:25:37]line Платежная система: Mbank [14:25:37]line ФМ: 0000000000871759 [14:25:37]line ФД: 165714 [14:25:37]line ФПД: 1233685525068 [14:25:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142548&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165714&fm=1233685525068&tin=02508201610067®Number=0000000000091764&sum=100022 [14:25:38]OFD Sender: Processing packet 165714 [packets to send 48, broken 47] [14:25:38]ProducePacketName [14:25:38]name=ofd_packets/00165714 [14:25:38]OFD Sender: To server: pG, [14:25:38]CommunicateWithHost lk.salyk.kg:30040 [14:25:38]ConnectInit lk.salyk.kg [14:25:38]written 0, free lines is 4095 [14:25:38]Connected sock=10 [14:25:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C E6 07 01 4B B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 EC 12 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 87 02 00 35 04 06 00 01 1F 3D 63 32 4C C8 A3 A0 1A 83 A9 F2 85 [14:25:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 87 DD 47 00 CF F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 87 02 00 F4 03 04 00 5E B9 14 67 B6 04 01 00 00 25 59 D8 58 4A 9B 15 BF [14:25:38]CommunicateWithHost err = 0 [14:25:38]CheckOFDResponse [14:25:38]1017 (14) - 77093643461234 [14:25:38]1041 (16) - 0000000000871759 [14:25:38]1040 (4) - 165714 [14:25:38]1012 (4) - 20.10.2024 08:03 [14:25:38]1206 (1) - 0 [14:25:38]OFD Sender: Remove packet 165714 [14:25:38]ProducePacketName [14:25:38]name=ofd_packets/00165714 [14:25:38]NVStorageDeleteData [14:25:38]Write to MH i2c: 01 00 00 24 F5 19 [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: 01 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: 01 07 00 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: 01 07 00 24 F5 00 00 00 00 00 01 0D 2E [14:25:38]RasterBufferAndPrint [14:25:38]line [14:25:38]line [14:25:38]line [14:25:38]line [14:25:38]line [14:25:38]written 0, free lines is 3336 [14:25:38]MH_Cut [14:25:38]Write to MH i2c: D1 01 00 2B F5 01 F2 [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: D1 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: D1 01 00 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: D1 01 00 2B F5 00 F1 [14:25:38]Write to MH i2c: 01 00 00 2C F5 21 [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]OFD Sender: No OFD packet to send [14:25:39]*** Cut start [14:25:39]*** Partial cut [14:25:39]*** CUTSNS_PIN = 1 [14:25:39]*** CUTSNS_PIN = 0 [14:25:39]*** Brake cut motor [14:25:39]Read from MH i2c: 01 [14:25:39]MH_I2C_Read... [14:25:39]*** Stop cut motor [14:25:39]*** Cut end [14:25:39]Read from MH i2c: 01 07 00 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: 01 07 00 2C F5 00 00 00 00 00 FF 0F 36 [14:25:39]process_action close_receipt done [14:25:39]requested_data is exist [14:25:39]produce_requested_data [14:25:39]requested_item fm.sn is exist - process it [14:25:39]wFMCommunicate request_size=4 [14:25:39]MH_SAM_APDU [14:25:39]CAPDU: 80 11 00 00 [14:25:39]Write to MH i2c: E2 08 00 2D F5 80 11 00 00 00 00 00 00 9C [14:25:39]Write i2c OK [14:25:39]MH_I2C_Read... [14:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:40]Read from MH i2c: E2 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 17 00 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 17 00 2D F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [14:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:25:40]wFMCommunicate OK [14:25:40]requested_item fd.num is exist - process it [14:25:40]SAM_PROTO_GetFieldsCounters [14:25:40]wFMCommunicate request_size=4 [14:25:40]MH_SAM_APDU [14:25:40]CAPDU: 80 13 00 00 [14:25:40]Write to MH i2c: E2 08 00 2E F5 80 13 00 00 00 00 00 00 9F [14:25:40]Write i2c OK [14:25:40]MH_I2C_Read... [14:25:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:40]Read from MH i2c: E2 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 62 00 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 62 00 2E F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 52 87 02 00 0E 04 04 00 16 02 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 06 [14:25:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 52 87 02 00 0E 04 04 00 16 02 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:25:40]wFMCommunicate OK [14:25:40]SAM_PROTO_GetFieldsCounters done [14:25:40]requested_item shift.num is exist - process it [14:25:40]requested_item shift.opened is exist - process it [14:25:40]req_shift_opened [14:25:40]FM_GetShiftState [14:25:40]SAM_PROTO_GetShiftState [14:25:40]wFMCommunicate request_size=4 [14:25:40]MH_SAM_APDU [14:25:40]CAPDU: 80 13 01 00 [14:25:40]Write to MH i2c: E2 08 00 2F F5 80 13 01 00 00 00 00 00 A1 [14:25:40]Write i2c OK [14:25:40]MH_I2C_Read... [14:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:40]Read from MH i2c: E2 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 0E 00 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 0E 00 2F F5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E9 [14:25:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:25:40]wFMCommunicate OK [14:25:40]SAM_PROTO_GetShiftState done [14:25:40]FM_GetShiftState done [14:25:40]req_shift_opened done [14:25:40]requested_item shift.open_date is exist - process it [14:25:40]req_shift_open_date [14:25:40]req_shift_open_date done [14:25:40]produce_requested_data done [14:25:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165714,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:25:40]process_action_free close_receipt [14:25:40]json_value_free [14:25:40]json_value_free done [14:25:40]process_json_proto returns [14:25:40]Send response to host [14:25:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165714,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:25:40]free response buf [14:25:40]execute_script done [14:25:40]execute_script returns [14:25:40]free content buf [14:25:40]Sock 9.Close socket [14:25:40]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:43]accept exits with 7 [14:29:43]New connection [14:29:43]New thread 3066920292 created [14:29:43]Thread 3066776932 joined [14:29:43]Waiting for new connection... [14:29:43] Sock 7.Parse request [14:29:43]Sock 7.Check first char [14:29:43]Sock 7.First char is OK [14:29:43]request: POST /json_proto HTTP/1.0 [14:29:43]Method: POST [14:29:43]URL: /json_proto [14:29:43]Method is POST - this is cgi request [14:29:43]url: /json_proto [14:29:43]query_string will be loaded in cgi processing [14:29:43]execute_cgi json_proto POST (null) [14:29:43]execute_cgi path=json_proto method=POST [14:29:43]POST find Content-Length [14:29:43]Host: 172.17.53.195:8080 [14:29:43]Content-Length: 677 [14:29:43]Content-Type: application/json [14:29:43] [14:29:43]POST finish read [14:29:43]Found Content-Length = 677 [14:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:43]execute_script... [14:29: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)220280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:43]POST & json_proto [14:29:43]process_json_proto [14:29:43]json parsed OK: [14:29:43]protocol is kg_v1.0 [14:29:43]action value=close_receipt [14:29:43]process_action close_receipt [14:29:43]cmd_close_receipt [14:29:43]MH_GetDate [14:29:43]Write to MH i2c: F0 00 00 30 F5 14 [14:29:43]Write i2c OK [14:29:43]MH_I2C_Read... [14:29:43]Read from MH i2c: F0 [14:29:43]MH_I2C_Read... [14:29:43]Read from MH i2c: F0 09 00 [14:29:43]MH_I2C_Read... [14:29:43]Read from MH i2c: F0 09 00 30 F5 00 E4 13 15 67 21 48 4A 65 A8 [14:29:43]GetLastDocTimeStamp 1729434348 [14:29:43]current date 1729434596 [14:29:43]FM_GetShiftState [14:29:43]SAM_PROTO_GetShiftState [14:29:43]wFMCommunicate request_size=4 [14:29:43]MH_SAM_APDU [14:29:43]CAPDU: 80 13 01 00 [14:29:43]Write to MH i2c: E2 08 00 31 F5 80 13 01 00 00 00 00 00 A3 [14:29:43]Write i2c OK [14:29:43]MH_I2C_Read... [14:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:43]Read from MH i2c: E2 [14:29:43]MH_I2C_Read... [14:29:43]Read from MH i2c: E2 0E 00 [14:29:43]MH_I2C_Read... [14:29:43]Read from MH i2c: E2 0E 00 31 F5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EB [14:29:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:29:43]wFMCommunicate OK [14:29:43]SAM_PROTO_GetShiftState done [14:29:43]FM_GetShiftState done [14:29:43]opened in 1729384561 [14:29:43]opened+sec_in_day 1729470961 [14:29:43]quantity*price = 50041 [14:29:43]sum+1 = 50042 [14:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 197 20.10.2024 14:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165715 ФПД: 242058028818231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142956&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165715&fm=242058028818231&tin=02508201610067®Number=0000000000091764&sum=50000 [14:29:44]StoreToDocumentArchive [14:29:44]shift 534 fd 165715 [14:29:44]save to /storage/0534/doc_00165715 [14:29:44]save last doc name /storage/0534/doc_00165715 to /storage/kkm_last_doc_name [14:29:44]save OK [14:29:44]Clear old archive folders... [14:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:44]tlvbuf is 018B05F0 [14:29:44]SAM_PROTO_ClearQueue [14:29:44]wFMCommunicate request_size=4 [14:29:44]MH_SAM_APDU [14:29:44]CAPDU: 80 09 00 00 [14:29:44]Write to MH i2c: E2 08 00 3E F5 80 09 00 00 00 00 00 00 A5 [14:29:44]Write i2c OK [14:29:44]MH_I2C_Read... [14:29:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:44]Read from MH i2c: E2 [14:29:44]MH_I2C_Read... [14:29:44]Read from MH i2c: E2 03 00 [14:29:44]MH_I2C_Read... [14:29:44]Read from MH i2c: E2 03 00 3E F5 00 90 00 A7 [14:29:44]RAPDU: 90 00 [14:29:44]wFMCommunicate OK [14:29:44]SAM_PROTO_ClearQueue done [14:29:44]KKMCreateOFDPacket [14:29:44]OFDProtocolAddRootSTLVToBuf [14:29:44]FM_MakeSignedData [14:29:44]FM_MakeSignedData [14:29:44]SAM_PROTO_SignData [14:29:44]wFMCommunicate request_size=4 [14:29:44]MH_SAM_APDU [14:29:44]CAPDU: 80 0D 01 02 [14:29:44]Write to MH i2c: E2 08 00 3F F5 80 0D 01 02 00 00 00 00 AD [14:29:44]Write i2c OK [14:29:44]MH_I2C_Read... [14:29:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:44]Read from MH i2c: E2 [14:29:44]MH_I2C_Read... [14:29:44]Read from MH i2c: E2 03 00 [14:29:44]MH_I2C_Read... [14:29:44]Read from MH i2c: E2 03 00 3F F5 00 90 00 A8 [14:29:44]RAPDU: 90 00 [14:29:44]wFMCommunicate OK [14:29:44]wFMCommunicate request_size=255 [14:29:44]MH_SAM_APDU [14:29: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E4 13 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 87 02 00 35 04 06 00 DC [14:29:44]Write to MH i2c: E2 02 01 40 F5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E4 13 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 87 02 00 35 04 06 00 DC 00 00 4B [14:29:44]Write i2c OK [14:29:44]MH_I2C_Read... [14:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:45]Read from MH i2c: E2 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: E2 03 00 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: E2 03 00 40 F5 00 90 00 A9 [14:29:45]RAPDU: 90 00 [14:29:45]wFMCommunicate OK [14:29:45]wFMCommunicate request_size=10 [14:29:45]MH_SAM_APDU [14:29:45]CAPDU: 80 0D 02 02 05 26 86 D2 9F 37 [14:29:45]Write to MH i2c: E2 0D 00 41 F5 80 0D 02 02 05 00 26 86 D2 9F 37 00 00 0E [14:29:45]Write i2c OK [14:29:45]MH_I2C_Read... [14:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:45]Read from MH i2c: E2 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: E2 03 00 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: E2 03 00 41 F5 00 90 00 AA [14:29:45]RAPDU: 90 00 [14:29:45]wFMCommunicate OK [14:29:45]wFMCommunicate request_size=4 [14:29:45]MH_SAM_APDU [14:29:45]CAPDU: 80 0D 03 02 [14:29:45]Write to MH i2c: E2 08 00 42 F5 80 0D 03 02 00 00 00 00 B2 [14:29:45]Write i2c OK [14:29:45]MH_I2C_Read... [14:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:45]Read from MH i2c: E2 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: E2 0B 00 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: E2 0B 00 42 F5 00 EB 9B 1C 6A EF C3 22 20 90 00 B3 [14:29:45]RAPDU: EB 9B 1C 6A EF C3 22 20 90 00 [14:29:45]wFMCommunicate OK [14:29:45]SAM_PROTO_SignData done [14:29:45]FM_MakeSignedData done [14:29:45]CreateOFDProtocolMessage [14:29:45]wFMCommunicate request_size=4 [14:29:45]MH_SAM_APDU [14:29:45]CAPDU: 80 11 00 00 [14:29:45]Write to MH i2c: E2 08 00 43 F5 80 11 00 00 00 00 00 00 B2 [14:29:45]Write i2c OK [14:29:45]MH_I2C_Read... [14:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:45]Read from MH i2c: E2 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: E2 17 00 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: E2 17 00 43 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [14:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:29:45]wFMCommunicate OK [14:29:45]CreateOFDProtocolMessage done [14:29:45]OFDSenderStorePacket 165715 [14:29:45]StoreOFDPacket docnum=165715 [14:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7E 24 07 01 35 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E4 13 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 87 02 00 35 04 06 00 DC 26 86 D2 9F 37 EB 9B 1C 6A EF C3 22 20 [14:29:45]CheckFolder [14:29:45]dirname=/storage/ofd_packets [14:29:45]CheckFolder done [14:29:45]ProducePacketName [14:29:45]name=ofd_packets/00165715 [14:29:45]NVStorageSaveData ofd_packets/00165715 [14:29:45]File name is /storage/ofd_packets/00165715 [14:29:45]Write 301 bytes [14:29:45]NVStorageSaveData done [14:29:45]OFDSenderStorePacket done [14:29:45]KKMCreateOFDPacket done [14:29:45]NVStorageSaveData kkm_last_timestamp [14:29:45]File name is /storage/kkm_last_timestamp [14:29:45]Write 4 bytes [14:29:45]NVStorageSaveData done [14:29:45]ExternCall_PrintAddStr [14:29:45]wPrintStart [14:29:45]Write to MH i2c: 01 00 00 44 F5 39 [14:29:45]Write i2c OK [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: 01 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: 01 07 00 [14:29:45]MH_I2C_Read... [14:29:45]Read from MH i2c: 01 07 00 44 F5 00 00 00 00 00 FF 0F 4E [14:29:45]RasterBufferAndPrint [14:29:45]line Счет N : (1)220280 [14:29:45]line ИНН: 02508201610067 [14:29:45]line Контрольно-Кассовый Чек [14:29:45]line ПРОДАЖА [14:29:45]line ТРК (МРК, ГНК) : 23 [14:29:45]line Товар: 2710124130 [14:29:45]line Аи-92-К-5 [14:29:45]line 7.480 * 66.90 [14:29:45]line = 500.41 [14:29:45]line НДС 12% НСП 1% [14:29:45]line > о реализуемом товаре [14:29:45]line ОКРУГЛЕНИЕ: -0.41 [14:29:45]line ИТОГО: 500.00 [14:29:45]line Внесено: 500.00 [14:29:45]line СДАЧА: 0.00 [14:29:45]line НСП 1% : 4.43 [14:29:45]line НДС 12% : 53.14 [14:29:45]line Наличными: 500.00 [14:29:45]line Безнал.: 0.00 [14:29:45]line Место: АЗС № 161 "Партнер Нефть" [14:29:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:29:45]line СНО: Общий режим [14:29:45]line Чек 197 20.10.2024 14:29 [14:29:45]line Смена: 534 ФФД: 1.0 [14:29:45]line ЗНМ: 0300000104 [14:29:45]line РНМ: 0000000000091764 [14:29:45]line Версия ККМ: 001 [14:29:45]line ФМ: 0000000000871759 [14:29:45]line ФД: 165715 [14:29:45]line ФПД: 242058028818231 [14:29:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142956&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165715&fm=242058028818231&tin=02508201610067®Number=0000000000091764&sum=50000 [14:29:45]OFD Sender: Processing packet 165715 [packets to send 48, broken 47] [14:29:45]ProducePacketName [14:29:45]name=ofd_packets/00165715 [14:29:45]OFD Sender: To server: pG, [14:29:45]CommunicateWithHost lk.salyk.kg:30040 [14:29:45]ConnectInit lk.salyk.kg [14:29:45]written 0, free lines is 4095 [14:29:45]Connected sock=10 [14:29:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7E 24 07 01 35 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E4 13 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 87 02 00 35 04 06 00 DC 26 86 D2 9F 37 EB 9B 1C 6A EF C3 22 20 [14:29:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 71 47 00 EC 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 31 37 35 39 10 04 04 00 53 87 02 00 F4 03 04 00 56 BA 14 67 B6 04 01 00 00 46 95 C4 68 F1 6A 7B E3 [14:29:46]CommunicateWithHost err = 0 [14:29:46]CheckOFDResponse [14:29:46]1017 (14) - 77093643461234 [14:29:46]1041 (16) - 0000000000871759 [14:29:46]1040 (4) - 165715 [14:29:46]1012 (4) - 20.10.2024 08:07 [14:29:46]1206 (1) - 0 [14:29:46]OFD Sender: Remove packet 165715 [14:29:46]ProducePacketName [14:29:46]name=ofd_packets/00165715 [14:29:46]NVStorageDeleteData [14:29:46]Write to MH i2c: 01 00 00 6F F5 64 [14:29:46]Write i2c OK [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: 01 [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: 01 07 00 [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: 01 07 00 6F F5 00 00 00 00 00 CE 0C 45 [14:29:46]RasterBufferAndPrint [14:29:46]line [14:29:46]line [14:29:46]line [14:29:46]line [14:29:46]line [14:29:46]written 0, free lines is 3286 [14:29:46]MH_Cut [14:29:46]Write to MH i2c: D1 01 00 76 F5 01 3D [14:29:46]Write i2c OK [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: D1 [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: D1 01 00 [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: D1 01 00 76 F5 00 3C [14:29:46]Write to MH i2c: 01 00 00 77 F5 6C [14:29:46]Write i2c OK [14:29:46]MH_I2C_Read... [14:29:46]OFD Sender: No OFD packet to send [14:29:46]*** Cut start [14:29:46]*** Partial cut [14:29:46]*** CUTSNS_PIN = 1 [14:29:46]*** CUTSNS_PIN = 0 [14:29:47]*** Brake cut motor [14:29:47]Read from MH i2c: 01 [14:29:47]MH_I2C_Read... [14:29:47]*** Stop cut motor [14:29:47]*** Cut end [14:29:47]Read from MH i2c: 01 07 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: 01 07 00 77 F5 00 00 00 00 00 FF 0F 81 [14:29:47]process_action close_receipt done [14:29:47]requested_data is exist [14:29:47]produce_requested_data [14:29:47]requested_item fm.sn is exist - process it [14:29:47]wFMCommunicate request_size=4 [14:29:47]MH_SAM_APDU [14:29:47]CAPDU: 80 11 00 00 [14:29:47]Write to MH i2c: E2 08 00 78 F5 80 11 00 00 00 00 00 00 E7 [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:47]Read from MH i2c: E2 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 17 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 17 00 78 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3F [14:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:29:47]wFMCommunicate OK [14:29:47]requested_item fd.num is exist - process it [14:29:47]SAM_PROTO_GetFieldsCounters [14:29:47]wFMCommunicate request_size=4 [14:29:47]MH_SAM_APDU [14:29:47]CAPDU: 80 13 00 00 [14:29:47]Write to MH i2c: E2 08 00 79 F5 80 13 00 00 00 00 00 00 EA [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:47]Read from MH i2c: E2 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 62 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 62 00 79 F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 53 87 02 00 0E 04 04 00 16 02 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 55 [14:29: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 53 87 02 00 0E 04 04 00 16 02 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:29:47]wFMCommunicate OK [14:29:47]SAM_PROTO_GetFieldsCounters done [14:29:47]requested_item shift.num is exist - process it [14:29:47]requested_item shift.opened is exist - process it [14:29:47]req_shift_opened [14:29:47]FM_GetShiftState [14:29:47]SAM_PROTO_GetShiftState [14:29:47]wFMCommunicate request_size=4 [14:29:47]MH_SAM_APDU [14:29:47]CAPDU: 80 13 01 00 [14:29:47]Write to MH i2c: E2 08 00 7A F5 80 13 01 00 00 00 00 00 EC [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:47]Read from MH i2c: E2 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 0E 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 0E 00 7A F5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 34 [14:29:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:29:47]wFMCommunicate OK [14:29:47]SAM_PROTO_GetShiftState done [14:29:47]FM_GetShiftState done [14:29:47]req_shift_opened done [14:29:47]requested_item shift.open_date is exist - process it [14:29:47]req_shift_open_date [14:29:47]req_shift_open_date done [14:29:47]produce_requested_data done [14:29:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165715,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:29:47]process_action_free close_receipt [14:29:47]json_value_free [14:29:47]json_value_free done [14:29:47]process_json_proto returns [14:29:47]Send response to host [14:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165715,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:29:47]free response buf [14:29:47]execute_script done [14:29:47]execute_script returns [14:29:47]free content buf [14:29:47]Sock 7.Close socket [14:29:47]Sock 7.Thread stoped [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:17]accept exits with 9 [14:34:17]New connection [14:34:17]New thread 3066776932 created [14:34:17]Thread 3066920292 joined [14:34:17]Waiting for new connection... [14:34:17] Sock 9.Parse request [14:34:17]Sock 9.Check first char [14:34:17]Sock 9.First char is OK [14:34:17]request: POST /json_proto HTTP/1.0 [14:34:17]Method: POST [14:34:17]URL: /json_proto [14:34:17]Method is POST - this is cgi request [14:34:17]url: /json_proto [14:34:17]query_string will be loaded in cgi processing [14:34:17]execute_cgi json_proto POST (null) [14:34:17]execute_cgi path=json_proto method=POST [14:34:17]POST find Content-Length [14:34:17]Host: 172.17.53.195:8080 [14:34:17]Content-Length: 677 [14:34:17]Content-Type: application/json [14:34:17] [14:34:17]POST finish read [14:34:17]Found Content-Length = 677 [14:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:17]execute_script... [14:34: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)220281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:17]POST & json_proto [14:34:17]process_json_proto [14:34:17]json parsed OK: [14:34:17]protocol is kg_v1.0 [14:34:17]action value=close_receipt [14:34:17]process_action close_receipt [14:34:17]cmd_close_receipt [14:34:17]MH_GetDate [14:34:17]Write to MH i2c: F0 00 00 7B F5 5F [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: F0 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: F0 09 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: F0 09 00 7B F5 00 F6 14 15 67 21 48 4A 65 06 [14:34:17]GetLastDocTimeStamp 1729434596 [14:34:17]current date 1729434870 [14:34:17]FM_GetShiftState [14:34:17]SAM_PROTO_GetShiftState [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 13 01 00 [14:34:17]Write to MH i2c: E2 08 00 7C F5 80 13 01 00 00 00 00 00 EE [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:17]Read from MH i2c: E2 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 0E 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 0E 00 7C F5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 36 [14:34:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:34:17]wFMCommunicate OK [14:34:17]SAM_PROTO_GetShiftState done [14:34:17]FM_GetShiftState done [14:34:17]opened in 1729384561 [14:34:17]opened+sec_in_day 1729470961 [14:34:17]quantity*price = 40006 [14:34:17]sum+1 = 40007 [14:34:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 198 20.10.2024 14:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165716 ФПД: 52660000034782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165716&fm=52660000034782&tin=02508201610067®Number=0000000000091764&sum=40000 [14:34:18]StoreToDocumentArchive [14:34:18]shift 534 fd 165716 [14:34:18]save to /storage/0534/doc_00165716 [14:34:18]save last doc name /storage/0534/doc_00165716 to /storage/kkm_last_doc_name [14:34:18]save OK [14:34:18]Clear old archive folders... [14:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:18]tlvbuf is 0163FEC0 [14:34:18]SAM_PROTO_ClearQueue [14:34:18]wFMCommunicate request_size=4 [14:34:18]MH_SAM_APDU [14:34:18]CAPDU: 80 09 00 00 [14:34:18]Write to MH i2c: E2 08 00 89 F5 80 09 00 00 00 00 00 00 F0 [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:18]Read from MH i2c: E2 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 03 00 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 03 00 89 F5 00 90 00 F2 [14:34:18]RAPDU: 90 00 [14:34:18]wFMCommunicate OK [14:34:18]SAM_PROTO_ClearQueue done [14:34:18]KKMCreateOFDPacket [14:34:18]OFDProtocolAddRootSTLVToBuf [14:34:18]FM_MakeSignedData [14:34:18]FM_MakeSignedData [14:34:18]SAM_PROTO_SignData [14:34:18]wFMCommunicate request_size=4 [14:34:18]MH_SAM_APDU [14:34:18]CAPDU: 80 0D 01 02 [14:34:18]Write to MH i2c: E2 08 00 8A F5 80 0D 01 02 00 00 00 00 F8 [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:18]Read from MH i2c: E2 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 03 00 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 03 00 8A F5 00 90 00 F3 [14:34:18]RAPDU: 90 00 [14:34:18]wFMCommunicate OK [14:34:18]wFMCommunicate request_size=255 [14:34:18]MH_SAM_APDU [14:34: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F6 14 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 87 02 00 35 04 06 00 2F [14:34:18]Write to MH i2c: E2 02 01 8B F5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F6 14 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 87 02 00 35 04 06 00 2F 00 00 CD [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 03 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 03 00 8B F5 00 90 00 F4 [14:34:19]RAPDU: 90 00 [14:34:19]wFMCommunicate OK [14:34:19]wFMCommunicate request_size=10 [14:34:19]MH_SAM_APDU [14:34:19]CAPDU: 80 0D 02 02 05 E4 DC 98 8F DE [14:34:19]Write to MH i2c: E2 0D 00 8C F5 80 0D 02 02 05 00 E4 DC 98 8F DE 00 00 CA [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 03 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 03 00 8C F5 00 90 00 F5 [14:34:19]RAPDU: 90 00 [14:34:19]wFMCommunicate OK [14:34:19]wFMCommunicate request_size=4 [14:34:19]MH_SAM_APDU [14:34:19]CAPDU: 80 0D 03 02 [14:34:19]Write to MH i2c: E2 08 00 8D F5 80 0D 03 02 00 00 00 00 FD [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 0B 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 0B 00 8D F5 00 9F B2 97 2F 7F EA DB 2A 90 00 83 [14:34:19]RAPDU: 9F B2 97 2F 7F EA DB 2A 90 00 [14:34:19]wFMCommunicate OK [14:34:19]SAM_PROTO_SignData done [14:34:19]FM_MakeSignedData done [14:34:19]CreateOFDProtocolMessage [14:34:19]wFMCommunicate request_size=4 [14:34:19]MH_SAM_APDU [14:34:19]CAPDU: 80 11 00 00 [14:34:19]Write to MH i2c: E2 08 00 8E F5 80 11 00 00 00 00 00 00 FD [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 17 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 17 00 8E F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 55 [14:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:34:19]wFMCommunicate OK [14:34:19]CreateOFDProtocolMessage done [14:34:19]OFDSenderStorePacket 165716 [14:34:19]StoreOFDPacket docnum=165716 [14:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F2 8A 07 01 F4 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F6 14 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 87 02 00 35 04 06 00 2F E4 DC 98 8F DE 9F B2 97 2F 7F EA DB 2A [14:34:19]CheckFolder [14:34:19]dirname=/storage/ofd_packets [14:34:19]CheckFolder done [14:34:19]ProducePacketName [14:34:19]name=ofd_packets/00165716 [14:34:19]NVStorageSaveData ofd_packets/00165716 [14:34:19]File name is /storage/ofd_packets/00165716 [14:34:19]Write 301 bytes [14:34:19]NVStorageSaveData done [14:34:19]OFDSenderStorePacket done [14:34:19]KKMCreateOFDPacket done [14:34:19]NVStorageSaveData kkm_last_timestamp [14:34:19]File name is /storage/kkm_last_timestamp [14:34:19]Write 4 bytes [14:34:19]NVStorageSaveData done [14:34:19]ExternCall_PrintAddStr [14:34:19]wPrintStart [14:34:19]Write to MH i2c: 01 00 00 8F F5 84 [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 07 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 07 00 8F F5 00 00 00 00 00 FF 0F 99 [14:34:19]RasterBufferAndPrint [14:34:19]line Счет N : (1)220281 [14:34:19]line ИНН: 02508201610067 [14:34:19]line Контрольно-Кассовый Чек [14:34:19]line ПРОДАЖА [14:34:19]line ТРК (МРК, ГНК) : 33 [14:34:19]line Товар: 2710124130 [14:34:19]line Аи-92-К-5 [14:34:19]line 5.980 * 66.90 [14:34:19]line = 400.06 [14:34:19]line НДС 12% НСП 1% [14:34:19]line > о реализуемом товаре [14:34:19]line ОКРУГЛЕНИЕ: -0.06 [14:34:19]line ИТОГО: 400.00 [14:34:19]line Внесено: 400.00 [14:34:19]line СДАЧА: 0.00 [14:34:19]line НСП 1% : 3.54 [14:34:19]line НДС 12% : 42.48 [14:34:19]line Наличными: 400.00 [14:34:19]line Безнал.: 0.00 [14:34:19]line Место: АЗС № 161 "Партнер Нефть" [14:34:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:34:19]line СНО: Общий режим [14:34:19]line Чек 198 20.10.2024 14:34 [14:34:19]line Смена: 534 ФФД: 1.0 [14:34:19]line ЗНМ: 0300000104 [14:34:19]line РНМ: 0000000000091764 [14:34:19]line Версия ККМ: 001 [14:34:19]line ФМ: 0000000000871759 [14:34:19]line ФД: 165716 [14:34:19]line ФПД: 52660000034782 [14:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165716&fm=52660000034782&tin=02508201610067®Number=0000000000091764&sum=40000 [14:34:19]OFD Sender: Processing packet 165716 [packets to send 48, broken 47] [14:34:19]ProducePacketName [14:34:19]name=ofd_packets/00165716 [14:34:19]OFD Sender: To server: pG, [14:34:19]CommunicateWithHost lk.salyk.kg:30040 [14:34:19]ConnectInit lk.salyk.kg [14:34:19]written 0, free lines is 4095 [14:34:19]Connected sock=10 [14:34:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F2 8A 07 01 F4 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F6 14 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 87 02 00 35 04 06 00 2F E4 DC 98 8F DE 9F B2 97 2F 7F EA DB 2A [14:34:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A2 80 47 00 13 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 31 37 35 39 10 04 04 00 54 87 02 00 F4 03 04 00 67 BB 14 67 B6 04 01 00 00 ED A3 83 2C F7 C4 F8 C8 [14:34:19]CommunicateWithHost err = 0 [14:34:19]CheckOFDResponse [14:34:19]1017 (14) - 77093643461234 [14:34:19]1041 (16) - 0000000000871759 [14:34:19]1040 (4) - 165716 [14:34:19]1012 (4) - 20.10.2024 08:12 [14:34:19]1206 (1) - 0 [14:34:19]OFD Sender: Remove packet 165716 [14:34:19]ProducePacketName [14:34:19]name=ofd_packets/00165716 [14:34:19]NVStorageDeleteData [14:34:19]Write to MH i2c: 01 00 00 BA F5 AF [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 07 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 07 00 BA F5 00 00 00 00 00 C8 0C 8A [14:34:19]RasterBufferAndPrint [14:34:19]line [14:34:19]line [14:34:19]line [14:34:19]line [14:34:19]line [14:34:19]written 0, free lines is 3278 [14:34:19]MH_Cut [14:34:19]Write to MH i2c: D1 01 00 C1 F5 01 88 [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: D1 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: D1 01 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: D1 01 00 C1 F5 00 87 [14:34:19]Write to MH i2c: 01 00 00 C2 F5 B7 [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:20]OFD Sender: No OFD packet to send [14:34:20]*** Cut start [14:34:20]*** Partial cut [14:34:20]*** CUTSNS_PIN = 1 [14:34:20]*** CUTSNS_PIN = 0 [14:34:21]*** Brake cut motor [14:34:21]Read from MH i2c: 01 [14:34:21]MH_I2C_Read... [14:34:21]*** Stop cut motor [14:34:21]*** Cut end [14:34:21]Read from MH i2c: 01 07 00 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: 01 07 00 C2 F5 00 00 00 00 00 FF 0F CC [14:34:21]process_action close_receipt done [14:34:21]requested_data is exist [14:34:21]produce_requested_data [14:34:21]requested_item fm.sn is exist - process it [14:34:21]wFMCommunicate request_size=4 [14:34:21]MH_SAM_APDU [14:34:21]CAPDU: 80 11 00 00 [14:34:21]Write to MH i2c: E2 08 00 C3 F5 80 11 00 00 00 00 00 00 32 [14:34:21]Write i2c OK [14:34:21]MH_I2C_Read... [14:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:21]Read from MH i2c: E2 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 17 00 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 17 00 C3 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8A [14:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:34:21]wFMCommunicate OK [14:34:21]requested_item fd.num is exist - process it [14:34:21]SAM_PROTO_GetFieldsCounters [14:34:21]wFMCommunicate request_size=4 [14:34:21]MH_SAM_APDU [14:34:21]CAPDU: 80 13 00 00 [14:34:21]Write to MH i2c: E2 08 00 C4 F5 80 13 00 00 00 00 00 00 35 [14:34:21]Write i2c OK [14:34:21]MH_I2C_Read... [14:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:21]Read from MH i2c: E2 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 62 00 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 62 00 C4 F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 54 87 02 00 0E 04 04 00 16 02 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 A4 [14:34: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 54 87 02 00 0E 04 04 00 16 02 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:34:21]wFMCommunicate OK [14:34:21]SAM_PROTO_GetFieldsCounters done [14:34:21]requested_item shift.num is exist - process it [14:34:21]requested_item shift.opened is exist - process it [14:34:21]req_shift_opened [14:34:21]FM_GetShiftState [14:34:21]SAM_PROTO_GetShiftState [14:34:21]wFMCommunicate request_size=4 [14:34:21]MH_SAM_APDU [14:34:21]CAPDU: 80 13 01 00 [14:34:21]Write to MH i2c: E2 08 00 C5 F5 80 13 01 00 00 00 00 00 37 [14:34:21]Write i2c OK [14:34:21]MH_I2C_Read... [14:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:21]Read from MH i2c: E2 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 0E 00 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 0E 00 C5 F5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7F [14:34:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:34:21]wFMCommunicate OK [14:34:21]SAM_PROTO_GetShiftState done [14:34:21]FM_GetShiftState done [14:34:21]req_shift_opened done [14:34:21]requested_item shift.open_date is exist - process it [14:34:21]req_shift_open_date [14:34:21]req_shift_open_date done [14:34:21]produce_requested_data done [14:34:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165716,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:34:21]process_action_free close_receipt [14:34:21]json_value_free [14:34:21]json_value_free done [14:34:21]process_json_proto returns [14:34:21]Send response to host [14:34:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165716,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:34:21]free response buf [14:34:21]execute_script done [14:34:21]execute_script returns [14:34:21]free content buf [14:34:21]Sock 9.Close socket [14:34:21]Sock 9.Thread stoped [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:28]accept exits with 7 [14:36:28]New connection [14:36:28]New thread 3066920292 created [14:36:28]Thread 3066776932 joined [14:36:28]Waiting for new connection... [14:36:28] Sock 7.Parse request [14:36:28]Sock 7.Check first char [14:36:28]Sock 7.First char is OK [14:36:28]request: POST /json_proto HTTP/1.0 [14:36:28]Method: POST [14:36:28]URL: /json_proto [14:36:28]Method is POST - this is cgi request [14:36:28]url: /json_proto [14:36:28]query_string will be loaded in cgi processing [14:36:28]execute_cgi json_proto POST (null) [14:36:28]execute_cgi path=json_proto method=POST [14:36:28]POST find Content-Length [14:36:28]Host: 172.17.53.195:8080 [14:36:28]Content-Length: 679 [14:36:28]Content-Type: application/json [14:36:28] [14:36:28]POST finish read [14:36:28]Found Content-Length = 679 [14:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220282", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:36:28]execute_script... [14:36: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)220282", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:36:28]POST & json_proto [14:36:28]process_json_proto [14:36:28]json parsed OK: [14:36:28]protocol is kg_v1.0 [14:36:28]action value=close_receipt [14:36:28]process_action close_receipt [14:36:28]cmd_close_receipt [14:36:28]MH_GetDate [14:36:28]Write to MH i2c: F0 00 00 C6 F5 AA [14:36:28]Write i2c OK [14:36:28]MH_I2C_Read... [14:36:28]Read from MH i2c: F0 [14:36:28]MH_I2C_Read... [14:36:28]Read from MH i2c: F0 09 00 [14:36:28]MH_I2C_Read... [14:36:28]Read from MH i2c: F0 09 00 C6 F5 00 79 15 15 67 21 48 4A 65 D5 [14:36:28]GetLastDocTimeStamp 1729434870 [14:36:28]current date 1729435001 [14:36:28]FM_GetShiftState [14:36:28]SAM_PROTO_GetShiftState [14:36:28]wFMCommunicate request_size=4 [14:36:28]MH_SAM_APDU [14:36:28]CAPDU: 80 13 01 00 [14:36:28]Write to MH i2c: E2 08 00 C7 F5 80 13 01 00 00 00 00 00 39 [14:36:28]Write i2c OK [14:36:28]MH_I2C_Read... [14:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:28]Read from MH i2c: E2 [14:36:28]MH_I2C_Read... [14:36:28]Read from MH i2c: E2 0E 00 [14:36:28]MH_I2C_Read... [14:36:28]Read from MH i2c: E2 0E 00 C7 F5 00 09 00 01 71 50 14 67 00 00 00 00 90 00 81 [14:36:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:36:28]wFMCommunicate OK [14:36:28]SAM_PROTO_GetShiftState done [14:36:28]FM_GetShiftState done [14:36:28]opened in 1729384561 [14:36:28]opened+sec_in_day 1729470961 [14:36:28]quantity*price = 100050 [14:36:28]sum+1 = 100052 [14:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 199 20.10.2024 14:36 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165717 ФПД: 157931637108798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143641&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165717&fm=157931637108798&tin=02508201610067®Number=0000000000091764&sum=100000 [14:36:29]StoreToDocumentArchive [14:36:29]shift 534 fd 165717 [14:36:29]save to /storage/0534/doc_00165717 [14:36:29]save last doc name /storage/0534/doc_00165717 to /storage/kkm_last_doc_name [14:36:29]save OK [14:36:29]Clear old archive folders... [14:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:29]tlvbuf is 019EA5F0 [14:36:29]SAM_PROTO_ClearQueue [14:36:29]wFMCommunicate request_size=4 [14:36:29]MH_SAM_APDU [14:36:29]CAPDU: 80 09 00 00 [14:36:29]Write to MH i2c: E2 08 00 D4 F5 80 09 00 00 00 00 00 00 3B [14:36:29]Write i2c OK [14:36:29]MH_I2C_Read... [14:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:29]Read from MH i2c: E2 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: E2 03 00 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: E2 03 00 D4 F5 00 90 00 3D [14:36:29]RAPDU: 90 00 [14:36:29]wFMCommunicate OK [14:36:29]SAM_PROTO_ClearQueue done [14:36:29]KKMCreateOFDPacket [14:36:29]OFDProtocolAddRootSTLVToBuf [14:36:29]FM_MakeSignedData [14:36:29]FM_MakeSignedData [14:36:29]SAM_PROTO_SignData [14:36:29]wFMCommunicate request_size=4 [14:36:29]MH_SAM_APDU [14:36:29]CAPDU: 80 0D 01 02 [14:36:29]Write to MH i2c: E2 08 00 D5 F5 80 0D 01 02 00 00 00 00 43 [14:36:29]Write i2c OK [14:36:29]MH_I2C_Read... [14:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:29]Read from MH i2c: E2 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: E2 03 00 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: E2 03 00 D5 F5 00 90 00 3E [14:36:29]RAPDU: 90 00 [14:36:29]wFMCommunicate OK [14:36:29]wFMCommunicate request_size=255 [14:36:29]MH_SAM_APDU [14:36: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 C7 00 00 00 F4 03 04 00 79 15 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 87 02 00 35 04 06 00 8F A3 53 20 [14:36:29]Write to MH i2c: E2 02 01 D6 F5 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 C7 00 00 00 F4 03 04 00 79 15 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 87 02 00 35 04 06 00 8F A3 53 20 00 00 3B [14:36:29]Write i2c OK [14:36:29]MH_I2C_Read... [14:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:29]Read from MH i2c: E2 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: E2 03 00 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: E2 03 00 D6 F5 00 90 00 3F [14:36:29]RAPDU: 90 00 [14:36:29]wFMCommunicate OK [14:36:29]wFMCommunicate request_size=7 [14:36:29]MH_SAM_APDU [14:36:29]CAPDU: 80 0D 02 02 02 F0 3E [14:36:29]Write to MH i2c: E2 0A 00 D7 F5 80 0D 02 02 02 00 F0 3E 00 00 78 [14:36:29]Write i2c OK [14:36:29]MH_I2C_Read... [14:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:30]Read from MH i2c: E2 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 03 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 03 00 D7 F5 00 90 00 40 [14:36:30]RAPDU: 90 00 [14:36:30]wFMCommunicate OK [14:36:30]wFMCommunicate request_size=4 [14:36:30]MH_SAM_APDU [14:36:30]CAPDU: 80 0D 03 02 [14:36:30]Write to MH i2c: E2 08 00 D8 F5 80 0D 03 02 00 00 00 00 48 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:30]Read from MH i2c: E2 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 0B 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 0B 00 D8 F5 00 E9 39 21 47 F2 8B C8 BD 90 00 D5 [14:36:30]RAPDU: E9 39 21 47 F2 8B C8 BD 90 00 [14:36:30]wFMCommunicate OK [14:36:30]SAM_PROTO_SignData done [14:36:30]FM_MakeSignedData done [14:36:30]CreateOFDProtocolMessage [14:36:30]wFMCommunicate request_size=4 [14:36:30]MH_SAM_APDU [14:36:30]CAPDU: 80 11 00 00 [14:36:30]Write to MH i2c: E2 08 00 D9 F5 80 11 00 00 00 00 00 00 48 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:30]Read from MH i2c: E2 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 17 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 17 00 D9 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A0 [14:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:36:30]wFMCommunicate OK [14:36:30]CreateOFDProtocolMessage done [14:36:30]OFDSenderStorePacket 165717 [14:36:30]StoreOFDPacket docnum=165717 [14:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E6 EA 04 01 E5 8F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 C7 00 00 00 F4 03 04 00 79 15 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 87 02 00 35 04 06 00 8F A3 53 20 F0 3E E9 39 21 47 F2 8B C8 BD [14:36:30]CheckFolder [14:36:30]dirname=/storage/ofd_packets [14:36:30]CheckFolder done [14:36:30]ProducePacketName [14:36:30]name=ofd_packets/00165717 [14:36:30]NVStorageSaveData ofd_packets/00165717 [14:36:30]File name is /storage/ofd_packets/00165717 [14:36:30]Write 298 bytes [14:36:30]NVStorageSaveData done [14:36:30]OFDSenderStorePacket done [14:36:30]KKMCreateOFDPacket done [14:36:30]NVStorageSaveData kkm_last_timestamp [14:36:30]File name is /storage/kkm_last_timestamp [14:36:30]Write 4 bytes [14:36:30]NVStorageSaveData done [14:36:30]ExternCall_PrintAddStr [14:36:30]wPrintStart [14:36:30]Write to MH i2c: 01 00 00 DA F5 CF [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 07 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 07 00 DA F5 00 00 00 00 00 FF 0F E4 [14:36:30]RasterBufferAndPrint [14:36:30]line Счет N : (1)220282 [14:36:30]line ИНН: 02508201610067 [14:36:30]line Контрольно-Кассовый Чек [14:36:30]line ПРОДАЖА [14:36:30]line ТРК (МРК, ГНК) : 21 [14:36:30]line Товар: 2710194210 [14:36:30]line ДТ-К-5 [14:36:30]line 13.130 * 76.20 [14:36:30]line = 1000.51 [14:36:30]line НДС 12% НСП 1% [14:36:30]line > о реализуемом товаре [14:36:30]line ОКРУГЛЕНИЕ: -0.51 [14:36:30]line ИТОГО: 1000.00 [14:36:30]line Внесено: 1000.00 [14:36:30]line СДАЧА: 0.00 [14:36:30]line НСП 1% : 8.85 [14:36:30]line НДС 12% : 106.25 [14:36:30]line Наличными: 1000.00 [14:36:30]line Безнал.: 0.00 [14:36:30]line Место: АЗС № 161 "Партнер Нефть" [14:36:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:36:30]line СНО: Общий режим [14:36:30]line Чек 199 20.10.2024 14:36 [14:36:30]line Смена: 534 ФФД: 1.0 [14:36:30]line ЗНМ: 0300000104 [14:36:30]line РНМ: 0000000000091764 [14:36:30]line Версия ККМ: 001 [14:36:30]line ФМ: 0000000000871759 [14:36:30]line ФД: 165717 [14:36:30]line ФПД: 157931637108798 [14:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143641&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165717&fm=157931637108798&tin=02508201610067®Number=0000000000091764&sum=100000 [14:36:30]OFD Sender: Processing packet 165717 [packets to send 48, broken 47] [14:36:30]ProducePacketName [14:36:30]name=ofd_packets/00165717 [14:36:30]OFD Sender: To server: pG, [14:36:30]CommunicateWithHost lk.salyk.kg:30040 [14:36:30]ConnectInit lk.salyk.kg [14:36:30]written 0, free lines is 4095 [14:36:30]Connected sock=10 [14:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E6 EA 04 01 E5 8F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 C7 00 00 00 F4 03 04 00 79 15 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 87 02 00 35 04 06 00 8F A3 53 20 F0 3E E9 39 21 47 F2 8B C8 BD [14:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B4 93 47 00 3A 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 87 02 00 F4 03 04 00 EA BB 14 67 B6 04 01 00 00 4C DF 77 D1 C7 51 31 8E [14:36:30]CommunicateWithHost err = 0 [14:36:30]CheckOFDResponse [14:36:30]1017 (14) - 77093643461234 [14:36:30]1041 (16) - 0000000000871759 [14:36:30]1040 (4) - 165717 [14:36:30]1012 (4) - 20.10.2024 08:14 [14:36:30]1206 (1) - 0 [14:36:30]OFD Sender: Remove packet 165717 [14:36:30]ProducePacketName [14:36:30]name=ofd_packets/00165717 [14:36:30]NVStorageDeleteData [14:36:30]Write to MH i2c: 01 00 00 05 F6 FB [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 07 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 07 00 05 F6 00 00 00 00 00 CB 0C D9 [14:36:30]RasterBufferAndPrint [14:36:30]line [14:36:30]line [14:36:30]line [14:36:30]line [14:36:30]line [14:36:30]written 0, free lines is 3280 [14:36:30]MH_Cut [14:36:30]Write to MH i2c: D1 01 00 0C F6 01 D4 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: D1 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: D1 01 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: D1 01 00 0C F6 00 D3 [14:36:30]Write to MH i2c: 01 00 00 0D F6 03 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:31]OFD Sender: No OFD packet to send [14:36:31]*** Cut start [14:36:31]*** Partial cut [14:36:31]*** CUTSNS_PIN = 1 [14:36:31]*** CUTSNS_PIN = 0 [14:36:32]*** Brake cut motor [14:36:32]Read from MH i2c: 01 [14:36:32]MH_I2C_Read... [14:36:32]*** Stop cut motor [14:36:32]*** Cut end [14:36:32]Read from MH i2c: 01 07 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: 01 07 00 0D F6 00 00 00 00 00 FF 0F 18 [14:36:32]process_action close_receipt done [14:36:32]requested_data is exist [14:36:32]produce_requested_data [14:36:32]requested_item fm.sn is exist - process it [14:36:32]wFMCommunicate request_size=4 [14:36:32]MH_SAM_APDU [14:36:32]CAPDU: 80 11 00 00 [14:36:32]Write to MH i2c: E2 08 00 0E F6 80 11 00 00 00 00 00 00 7E [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:32]Read from MH i2c: E2 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 17 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 17 00 0E F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D6 [14:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:36:32]wFMCommunicate OK [14:36:32]requested_item fd.num is exist - process it [14:36:32]SAM_PROTO_GetFieldsCounters [14:36:32]wFMCommunicate request_size=4 [14:36:32]MH_SAM_APDU [14:36:32]CAPDU: 80 13 00 00 [14:36:32]Write to MH i2c: E2 08 00 0F F6 80 13 00 00 00 00 00 00 81 [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:32]Read from MH i2c: E2 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 62 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 62 00 0F F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 55 87 02 00 0E 04 04 00 16 02 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 F4 [14:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 55 87 02 00 0E 04 04 00 16 02 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 [14:36:32]wFMCommunicate OK [14:36:32]SAM_PROTO_GetFieldsCounters done [14:36:32]requested_item shift.num is exist - process it [14:36:32]requested_item shift.opened is exist - process it [14:36:32]req_shift_opened [14:36:32]FM_GetShiftState [14:36:32]SAM_PROTO_GetShiftState [14:36:32]wFMCommunicate request_size=4 [14:36:32]MH_SAM_APDU [14:36:32]CAPDU: 80 13 01 00 [14:36:32]Write to MH i2c: E2 08 00 10 F6 80 13 01 00 00 00 00 00 83 [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:32]Read from MH i2c: E2 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 0E 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 0E 00 10 F6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CB [14:36:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:36:32]wFMCommunicate OK [14:36:32]SAM_PROTO_GetShiftState done [14:36:32]FM_GetShiftState done [14:36:32]req_shift_opened done [14:36:32]requested_item shift.open_date is exist - process it [14:36:32]req_shift_open_date [14:36:32]req_shift_open_date done [14:36:32]produce_requested_data done [14:36:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165717,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:36:32]process_action_free close_receipt [14:36:32]json_value_free [14:36:32]json_value_free done [14:36:32]process_json_proto returns [14:36:32]Send response to host [14:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165717,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:36:32]free response buf [14:36:32]execute_script done [14:36:32]execute_script returns [14:36:32]free content buf [14:36:32]Sock 7.Close socket [14:36:32]Sock 7.Thread stoped [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:30]accept exits with 9 [14:39:30]New connection [14:39:30]New thread 3066776932 created [14:39:30]Thread 3066920292 joined [14:39:30]Waiting for new connection... [14:39:30] Sock 9.Parse request [14:39:30]Sock 9.Check first char [14:39:30]Sock 9.First char is OK [14:39:30]request: POST /json_proto HTTP/1.0 [14:39:30]Method: POST [14:39:30]URL: /json_proto [14:39:30]Method is POST - this is cgi request [14:39:30]url: /json_proto [14:39:30]query_string will be loaded in cgi processing [14:39:30]execute_cgi json_proto POST (null) [14:39:30]execute_cgi path=json_proto method=POST [14:39:30]POST find Content-Length [14:39:30]Host: 172.17.53.195:8080 [14:39:30]Content-Length: 677 [14:39:30]Content-Type: application/json [14:39:30] [14:39:30]POST finish read [14:39:30]Found Content-Length = 677 [14:39:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:30]execute_script... [14:39: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)220283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:30]POST & json_proto [14:39:30]process_json_proto [14:39:30]json parsed OK: [14:39:30]protocol is kg_v1.0 [14:39:30]action value=close_receipt [14:39:30]process_action close_receipt [14:39:30]cmd_close_receipt [14:39:30]MH_GetDate [14:39:30]Write to MH i2c: F0 00 00 11 F6 F6 [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: F0 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: F0 09 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: F0 09 00 11 F6 00 2E 16 15 67 21 48 4A 65 D7 [14:39:30]GetLastDocTimeStamp 1729435001 [14:39:30]current date 1729435182 [14:39:30]FM_GetShiftState [14:39:30]SAM_PROTO_GetShiftState [14:39:30]wFMCommunicate request_size=4 [14:39:30]MH_SAM_APDU [14:39:30]CAPDU: 80 13 01 00 [14:39:30]Write to MH i2c: E2 08 00 12 F6 80 13 01 00 00 00 00 00 85 [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:30]Read from MH i2c: E2 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: E2 0E 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: E2 0E 00 12 F6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CD [14:39:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:39:30]wFMCommunicate OK [14:39:30]SAM_PROTO_GetShiftState done [14:39:30]FM_GetShiftState done [14:39:30]opened in 1729384561 [14:39:30]opened+sec_in_day 1729470961 [14:39:30]quantity*price = 60009 [14:39:30]sum+1 = 60010 [14:39:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 200 20.10.2024 14:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165718 ФПД: 232848639637938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143942&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165718&fm=232848639637938&tin=02508201610067®Number=0000000000091764&sum=60000 [14:39:31]StoreToDocumentArchive [14:39:31]shift 534 fd 165718 [14:39:31]save to /storage/0534/doc_00165718 [14:39:31]save last doc name /storage/0534/doc_00165718 to /storage/kkm_last_doc_name [14:39:31]save OK [14:39:31]Clear old archive folders... [14:39:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:31]tlvbuf is 01522620 [14:39:31]SAM_PROTO_ClearQueue [14:39:31]wFMCommunicate request_size=4 [14:39:31]MH_SAM_APDU [14:39:31]CAPDU: 80 09 00 00 [14:39:31]Write to MH i2c: E2 08 00 1F F6 80 09 00 00 00 00 00 00 87 [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:31]Read from MH i2c: E2 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 03 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 03 00 1F F6 00 90 00 89 [14:39:31]RAPDU: 90 00 [14:39:31]wFMCommunicate OK [14:39:31]SAM_PROTO_ClearQueue done [14:39:31]KKMCreateOFDPacket [14:39:31]OFDProtocolAddRootSTLVToBuf [14:39:31]FM_MakeSignedData [14:39:31]FM_MakeSignedData [14:39:31]SAM_PROTO_SignData [14:39:31]wFMCommunicate request_size=4 [14:39:31]MH_SAM_APDU [14:39:31]CAPDU: 80 0D 01 02 [14:39:31]Write to MH i2c: E2 08 00 20 F6 80 0D 01 02 00 00 00 00 8F [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:31]Read from MH i2c: E2 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 03 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 03 00 20 F6 00 90 00 8A [14:39:31]RAPDU: 90 00 [14:39:31]wFMCommunicate OK [14:39:31]wFMCommunicate request_size=255 [14:39:31]MH_SAM_APDU [14:39: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2E 16 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 87 02 00 35 04 06 00 D3 [14:39:31]Write to MH i2c: E2 02 01 21 F6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2E 16 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 87 02 00 35 04 06 00 D3 00 00 54 [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]OFD Sender: No OFD packet to send [14:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:31]Read from MH i2c: E2 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 03 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 03 00 21 F6 00 90 00 8B [14:39:31]RAPDU: 90 00 [14:39:31]wFMCommunicate OK [14:39:31]wFMCommunicate request_size=10 [14:39:31]MH_SAM_APDU [14:39:31]CAPDU: 80 0D 02 02 05 C6 4C 73 B9 B2 [14:39:31]Write to MH i2c: E2 0D 00 22 F6 80 0D 02 02 05 00 C6 4C 73 B9 B2 00 00 8C [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:31]Read from MH i2c: E2 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 03 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 03 00 22 F6 00 90 00 8C [14:39:31]RAPDU: 90 00 [14:39:31]wFMCommunicate OK [14:39:31]wFMCommunicate request_size=4 [14:39:31]MH_SAM_APDU [14:39:31]CAPDU: 80 0D 03 02 [14:39:31]Write to MH i2c: E2 08 00 23 F6 80 0D 03 02 00 00 00 00 94 [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:31]Read from MH i2c: E2 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 0B 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 0B 00 23 F6 00 CF 0A 18 BF 93 43 35 96 90 00 E6 [14:39:31]RAPDU: CF 0A 18 BF 93 43 35 96 90 00 [14:39:31]wFMCommunicate OK [14:39:31]SAM_PROTO_SignData done [14:39:31]FM_MakeSignedData done [14:39:31]CreateOFDProtocolMessage [14:39:31]wFMCommunicate request_size=4 [14:39:31]MH_SAM_APDU [14:39:31]CAPDU: 80 11 00 00 [14:39:31]Write to MH i2c: E2 08 00 24 F6 80 11 00 00 00 00 00 00 94 [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:31]Read from MH i2c: E2 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 17 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 17 00 24 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [14:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:39:31]wFMCommunicate OK [14:39:31]CreateOFDProtocolMessage done [14:39:31]OFDSenderStorePacket 165718 [14:39:31]StoreOFDPacket docnum=165718 [14:39:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 9E 07 01 89 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2E 16 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 87 02 00 35 04 06 00 D3 C6 4C 73 B9 B2 CF 0A 18 BF 93 43 35 96 [14:39:31]CheckFolder [14:39:31]dirname=/storage/ofd_packets [14:39:31]CheckFolder done [14:39:31]ProducePacketName [14:39:31]name=ofd_packets/00165718 [14:39:31]NVStorageSaveData ofd_packets/00165718 [14:39:31]File name is /storage/ofd_packets/00165718 [14:39:31]Write 301 bytes [14:39:31]NVStorageSaveData done [14:39:31]OFDSenderStorePacket done [14:39:31]KKMCreateOFDPacket done [14:39:31]NVStorageSaveData kkm_last_timestamp [14:39:31]File name is /storage/kkm_last_timestamp [14:39:31]Write 4 bytes [14:39:31]NVStorageSaveData done [14:39:31]ExternCall_PrintAddStr [14:39:31]wPrintStart [14:39:31]Write to MH i2c: 01 00 00 25 F6 1B [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 07 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 07 00 25 F6 00 00 00 00 00 FF 0F 30 [14:39:31]RasterBufferAndPrint [14:39:31]line Счет N : (1)220283 [14:39:31]line ИНН: 02508201610067 [14:39:31]line Контрольно-Кассовый Чек [14:39:31]line ПРОДАЖА [14:39:31]line ТРК (МРК, ГНК) : 43 [14:39:31]line Товар: 2710124130 [14:39:31]line Аи-92-К-5 [14:39:31]line 8.970 * 66.90 [14:39:31]line = 600.09 [14:39:31]line НДС 12% НСП 1% [14:39:31]line > о реализуемом товаре [14:39:31]line ОКРУГЛЕНИЕ: -0.09 [14:39:31]line ИТОГО: 600.00 [14:39:31]line Внесено: 600.00 [14:39:31]line СДАЧА: 0.00 [14:39:31]line НСП 1% : 5.31 [14:39:31]line НДС 12% : 63.73 [14:39:31]line Наличными: 600.00 [14:39:31]line Безнал.: 0.00 [14:39:31]line Место: АЗС № 161 "Партнер Нефть" [14:39:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:39:31]line СНО: Общий режим [14:39:31]line Чек 200 20.10.2024 14:39 [14:39:31]line Смена: 534 ФФД: 1.0 [14:39:31]line ЗНМ: 0300000104 [14:39:31]line РНМ: 0000000000091764 [14:39:31]line Версия ККМ: 001 [14:39:31]line ФМ: 0000000000871759 [14:39:31]line ФД: 165718 [14:39:31]line ФПД: 232848639637938 [14:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143942&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165718&fm=232848639637938&tin=02508201610067®Number=0000000000091764&sum=60000 [14:39:32]OFD Sender: Processing packet 165718 [packets to send 48, broken 47] [14:39:32]ProducePacketName [14:39:32]name=ofd_packets/00165718 [14:39:32]OFD Sender: To server: pG, [14:39:32]CommunicateWithHost lk.salyk.kg:30040 [14:39:32]ConnectInit lk.salyk.kg [14:39:32]written 0, free lines is 4095 [14:39:32]Connected sock=10 [14:39:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 9E 07 01 89 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2E 16 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 87 02 00 35 04 06 00 D3 C6 4C 73 B9 B2 CF 0A 18 BF 93 43 35 96 [14:39:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 48 4E 47 00 52 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 87 02 00 F4 03 04 00 A0 BC 14 67 B6 04 01 00 00 35 C5 08 F1 40 43 2C 78 [14:39:32]CommunicateWithHost err = 0 [14:39:32]CheckOFDResponse [14:39:32]1017 (14) - 77093643461234 [14:39:32]1041 (16) - 0000000000871759 [14:39:32]1040 (4) - 165718 [14:39:32]1012 (4) - 20.10.2024 08:17 [14:39:32]1206 (1) - 0 [14:39:32]OFD Sender: Remove packet 165718 [14:39:32]ProducePacketName [14:39:32]name=ofd_packets/00165718 [14:39:32]NVStorageDeleteData [14:39:32]Write to MH i2c: 01 00 00 50 F6 46 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 07 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 07 00 50 F6 00 00 00 00 00 D3 0C 2C [14:39:32]RasterBufferAndPrint [14:39:32]line [14:39:32]line [14:39:32]line [14:39:32]line [14:39:32]line [14:39:32]written 0, free lines is 3290 [14:39:32]MH_Cut [14:39:32]Write to MH i2c: D1 01 00 57 F6 01 1F [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: D1 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: D1 01 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: D1 01 00 57 F6 00 1E [14:39:32]Write to MH i2c: 01 00 00 58 F6 4E [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]OFD Sender: No OFD packet to send [14:39:33]*** Cut start [14:39:33]*** Partial cut [14:39:33]*** CUTSNS_PIN = 1 [14:39:33]*** CUTSNS_PIN = 0 [14:39:33]*** Brake cut motor [14:39:34]Read from MH i2c: 01 [14:39:34]MH_I2C_Read... [14:39:34]*** Stop cut motor [14:39:34]*** Cut end [14:39:34]Read from MH i2c: 01 07 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 07 00 58 F6 00 00 00 00 00 FF 0F 63 [14:39:34]process_action close_receipt done [14:39:34]requested_data is exist [14:39:34]produce_requested_data [14:39:34]requested_item fm.sn is exist - process it [14:39:34]wFMCommunicate request_size=4 [14:39:34]MH_SAM_APDU [14:39:34]CAPDU: 80 11 00 00 [14:39:34]Write to MH i2c: E2 08 00 59 F6 80 11 00 00 00 00 00 00 C9 [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:34]Read from MH i2c: E2 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 17 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 17 00 59 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 21 [14:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:39:34]wFMCommunicate OK [14:39:34]requested_item fd.num is exist - process it [14:39:34]SAM_PROTO_GetFieldsCounters [14:39:34]wFMCommunicate request_size=4 [14:39:34]MH_SAM_APDU [14:39:34]CAPDU: 80 13 00 00 [14:39:34]Write to MH i2c: E2 08 00 5A F6 80 13 00 00 00 00 00 00 CC [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:34]Read from MH i2c: E2 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 62 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 62 00 5A F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 56 87 02 00 0E 04 04 00 16 02 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 43 [14:39: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 56 87 02 00 0E 04 04 00 16 02 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 [14:39:34]wFMCommunicate OK [14:39:34]SAM_PROTO_GetFieldsCounters done [14:39:34]requested_item shift.num is exist - process it [14:39:34]requested_item shift.opened is exist - process it [14:39:34]req_shift_opened [14:39:34]FM_GetShiftState [14:39:34]SAM_PROTO_GetShiftState [14:39:34]wFMCommunicate request_size=4 [14:39:34]MH_SAM_APDU [14:39:34]CAPDU: 80 13 01 00 [14:39:34]Write to MH i2c: E2 08 00 5B F6 80 13 01 00 00 00 00 00 CE [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:34]Read from MH i2c: E2 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 0E 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 0E 00 5B F6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 16 [14:39:34]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:39:34]wFMCommunicate OK [14:39:34]SAM_PROTO_GetShiftState done [14:39:34]FM_GetShiftState done [14:39:34]req_shift_opened done [14:39:34]requested_item shift.open_date is exist - process it [14:39:34]req_shift_open_date [14:39:34]req_shift_open_date done [14:39:34]produce_requested_data done [14:39:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165718,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:39:34]process_action_free close_receipt [14:39:34]json_value_free [14:39:34]json_value_free done [14:39:34]process_json_proto returns [14:39:34]Send response to host [14:39:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165718,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:39:34]free response buf [14:39:34]execute_script done [14:39:34]execute_script returns [14:39:34]free content buf [14:39:34]Sock 9.Close socket [14:39:34]Sock 9.Thread stoped [14:39:37]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:05]accept exits with 7 [14:41:05]New connection [14:41:05]New thread 3066920292 created [14:41:05]Thread 3066776932 joined [14:41:05]Waiting for new connection... [14:41:05] Sock 7.Parse request [14:41:05]Sock 7.Check first char [14:41:05]Sock 7.First char is OK [14:41:05]request: POST /json_proto HTTP/1.0 [14:41:05]Method: POST [14:41:05]URL: /json_proto [14:41:05]Method is POST - this is cgi request [14:41:05]url: /json_proto [14:41:05]query_string will be loaded in cgi processing [14:41:05]execute_cgi json_proto POST (null) [14:41:05]execute_cgi path=json_proto method=POST [14:41:05]POST find Content-Length [14:41:05]Host: 172.17.53.195:8080 [14:41:05]Content-Length: 674 [14:41:05]Content-Type: application/json [14:41:05] [14:41:05]POST finish read [14:41:05]Found Content-Length = 674 [14:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220284", "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" : 76.20, "quantity" : 6.510, "sum" : 496.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 496.00, "payments": [ { "type": 0, "sum" : 496.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:05]execute_script... [14: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)220284", "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" : 76.20, "quantity" : 6.510, "sum" : 496.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 496.00, "payments": [ { "type": 0, "sum" : 496.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:05]POST & json_proto [14:41:05]process_json_proto [14:41:05]json parsed OK: [14:41:05]protocol is kg_v1.0 [14:41:05]action value=close_receipt [14:41:05]process_action close_receipt [14:41:05]cmd_close_receipt [14:41:05]MH_GetDate [14:41:05]Write to MH i2c: F0 00 00 5C F6 41 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: F0 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: F0 09 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: F0 09 00 5C F6 00 8D 16 15 67 21 48 4A 65 81 [14:41:05]GetLastDocTimeStamp 1729435182 [14:41:05]current date 1729435277 [14:41:05]FM_GetShiftState [14:41:05]SAM_PROTO_GetShiftState [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 13 01 00 [14:41:05]Write to MH i2c: E2 08 00 5D F6 80 13 01 00 00 00 00 00 D0 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 0E 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 0E 00 5D F6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 18 [14:41:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_GetShiftState done [14:41:05]FM_GetShiftState done [14:41:05]opened in 1729384561 [14:41:05]opened+sec_in_day 1729470961 [14:41:05]quantity*price = 49606 [14:41:05]sum+1 = 49607 [14:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 496.00 Внесено: 500.00 СДАЧА: 4.00 НСП 1% : 4.39 НДС 12% : 52.68 Наличными: 496.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 201 20.10.2024 14:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165719 ФПД: 146933916164577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144117&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165719&fm=146933916164577&tin=02508201610067®Number=0000000000091764&sum=49600 [14:41:06]StoreToDocumentArchive [14:41:06]shift 534 fd 165719 [14:41:06]save to /storage/0534/doc_00165719 [14:41:06]save last doc name /storage/0534/doc_00165719 to /storage/kkm_last_doc_name [14:41:06]save OK [14:41:06]Clear old archive folders... [14:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:06]tlvbuf is 016168F0 [14:41:06]SAM_PROTO_ClearQueue [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 09 00 00 [14:41:06]Write to MH i2c: E2 08 00 6A F6 80 09 00 00 00 00 00 00 D2 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 6A F6 00 90 00 D4 [14:41:06]RAPDU: 90 00 [14:41:06]wFMCommunicate OK [14:41:06]SAM_PROTO_ClearQueue done [14:41:06]KKMCreateOFDPacket [14:41:06]OFDProtocolAddRootSTLVToBuf [14:41:06]FM_MakeSignedData [14:41:06]FM_MakeSignedData [14:41:06]SAM_PROTO_SignData [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 0D 01 02 [14:41:06]Write to MH i2c: E2 08 00 6B F6 80 0D 01 02 00 00 00 00 DA [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 6B F6 00 90 00 D5 [14:41:06]RAPDU: 90 00 [14:41:06]wFMCommunicate OK [14:41:06]wFMCommunicate request_size=255 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C6 C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 14 00 00 00 00 07 04 06 00 C0 C1 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 8D 16 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 87 02 00 35 04 06 00 85 A2 B7 E0 [14:41:06]Write to MH i2c: E2 02 01 6C F6 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 6E 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C6 C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 14 00 00 00 00 07 04 06 00 C0 C1 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 8D 16 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 87 02 00 35 04 06 00 85 A2 B7 E0 00 00 2D [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 6C F6 00 90 00 D6 [14:41:06]RAPDU: 90 00 [14:41:06]wFMCommunicate OK [14:41:06]wFMCommunicate request_size=7 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 0D 02 02 02 E1 E1 [14:41:06]Write to MH i2c: E2 0A 00 6D F6 80 0D 02 02 02 00 E1 E1 00 00 A3 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 6D F6 00 90 00 D7 [14:41:06]RAPDU: 90 00 [14:41:06]wFMCommunicate OK [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 0D 03 02 [14:41:06]Write to MH i2c: E2 08 00 6E F6 80 0D 03 02 00 00 00 00 DF [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0B 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0B 00 6E F6 00 3B 10 E9 85 D6 D8 8D F7 90 00 CB [14:41:06]RAPDU: 3B 10 E9 85 D6 D8 8D F7 90 00 [14:41:06]wFMCommunicate OK [14:41:06]SAM_PROTO_SignData done [14:41:06]FM_MakeSignedData done [14:41:06]CreateOFDProtocolMessage [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 11 00 00 [14:41:06]Write to MH i2c: E2 08 00 6F F6 80 11 00 00 00 00 00 00 DF [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 6F F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [14:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:41:06]wFMCommunicate OK [14:41:06]CreateOFDProtocolMessage done [14:41:06]OFDSenderStorePacket 165719 [14:41:06]StoreOFDPacket docnum=165719 [14:41:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 4B 04 01 36 54 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 6E 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C6 C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 14 00 00 00 00 07 04 06 00 C0 C1 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 8D 16 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 87 02 00 35 04 06 00 85 A2 B7 E0 E1 E1 3B 10 E9 85 D6 D8 8D F7 [14:41:06]CheckFolder [14:41:06]dirname=/storage/ofd_packets [14:41:06]CheckFolder done [14:41:06]ProducePacketName [14:41:06]name=ofd_packets/00165719 [14:41:06]NVStorageSaveData ofd_packets/00165719 [14:41:06]File name is /storage/ofd_packets/00165719 [14:41:06]Write 298 bytes [14:41:06]NVStorageSaveData done [14:41:06]OFDSenderStorePacket done [14:41:06]KKMCreateOFDPacket done [14:41:06]NVStorageSaveData kkm_last_timestamp [14:41:06]File name is /storage/kkm_last_timestamp [14:41:06]Write 4 bytes [14:41:06]NVStorageSaveData done [14:41:06]ExternCall_PrintAddStr [14:41:06]wPrintStart [14:41:06]Write to MH i2c: 01 00 00 70 F6 66 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 70 F6 00 00 00 00 00 FF 0F 7B [14:41:06]RasterBufferAndPrint [14:41:06]line Счет N : (1)220284 [14:41:06]line ИНН: 02508201610067 [14:41:06]line Контрольно-Кассовый Чек [14:41:06]line ПРОДАЖА [14:41:06]line ТРК (МРК, ГНК) : 21 [14:41:06]line Товар: 2710194210 [14:41:06]line ДТ-К-5 [14:41:06]line 6.510 * 76.20 [14:41:06]line = 496.06 [14:41:06]line НДС 12% НСП 1% [14:41:06]line > о реализуемом товаре [14:41:06]line ОКРУГЛЕНИЕ: -0.06 [14:41:06]line ИТОГО: 496.00 [14:41:06]line Внесено: 500.00 [14:41:06]line СДАЧА: 4.00 [14:41:06]line НСП 1% : 4.39 [14:41:06]line НДС 12% : 52.68 [14:41:06]line Наличными: 496.00 [14:41:06]line Безнал.: 0.00 [14:41:06]line Место: АЗС № 161 "Партнер Нефть" [14:41:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:41:06]line СНО: Общий режим [14:41:06]line Чек 201 20.10.2024 14:41 [14:41:06]line Смена: 534 ФФД: 1.0 [14:41:06]line ЗНМ: 0300000104 [14:41:06]line РНМ: 0000000000091764 [14:41:06]line Версия ККМ: 001 [14:41:06]line ФМ: 0000000000871759 [14:41:06]line ФД: 165719 [14:41:06]line ФПД: 146933916164577 [14:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144117&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165719&fm=146933916164577&tin=02508201610067®Number=0000000000091764&sum=49600 [14:41:07]OFD Sender: Processing packet 165719 [packets to send 48, broken 47] [14:41:07]ProducePacketName [14:41:07]name=ofd_packets/00165719 [14:41:07]OFD Sender: To server: pG, [14:41:07]CommunicateWithHost lk.salyk.kg:30040 [14:41:07]ConnectInit lk.salyk.kg [14:41:07]written 0, free lines is 4095 [14:41:07]Connected sock=10 [14: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 31 37 35 39 0C 01 00 00 B8 4B 04 01 36 54 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 6E 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C6 C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 14 00 00 00 00 07 04 06 00 C0 C1 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 8D 16 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 87 02 00 35 04 06 00 85 A2 B7 E0 E1 E1 3B 10 E9 85 D6 D8 8D F7 [14:41:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 90 BB 47 00 46 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 87 02 00 F4 03 04 00 FF BC 14 67 B6 04 01 00 00 6A A8 8C EC F5 31 3E B5 [14:41:07]CommunicateWithHost err = 0 [14:41:07]CheckOFDResponse [14:41:07]1017 (14) - 77093643461234 [14:41:07]1041 (16) - 0000000000871759 [14:41:07]1040 (4) - 165719 [14:41:07]1012 (4) - 20.10.2024 08:19 [14:41:07]1206 (1) - 0 [14:41:07]OFD Sender: Remove packet 165719 [14:41:07]ProducePacketName [14:41:07]name=ofd_packets/00165719 [14:41:07]NVStorageDeleteData [14:41:07]Write to MH i2c: 01 00 00 9B F6 91 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 9B F6 00 00 00 00 00 CD 0C 71 [14:41:07]RasterBufferAndPrint [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]written 0, free lines is 3284 [14:41:07]MH_Cut [14:41:07]Write to MH i2c: D1 01 00 A2 F6 01 6A [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 01 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 01 00 A2 F6 00 69 [14:41:07]Write to MH i2c: 01 00 00 A3 F6 99 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]OFD Sender: No OFD packet to send [14:41:08]*** Cut start [14:41:08]*** Partial cut [14:41:08]*** CUTSNS_PIN = 1 [14:41:08]*** CUTSNS_PIN = 0 [14:41:08]*** Brake cut motor [14:41:08]Read from MH i2c: 01 [14:41:08]MH_I2C_Read... [14:41:08]*** Stop cut motor [14:41:08]*** Cut end [14:41:08]Read from MH i2c: 01 07 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 07 00 A3 F6 00 00 00 00 00 FF 0F AE [14:41:08]process_action close_receipt done [14:41:08]requested_data is exist [14:41:08]produce_requested_data [14:41:08]requested_item fm.sn is exist - process it [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 11 00 00 [14:41:08]Write to MH i2c: E2 08 00 A4 F6 80 11 00 00 00 00 00 00 14 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 17 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 17 00 A4 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [14:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:41:08]wFMCommunicate OK [14:41:08]requested_item fd.num is exist - process it [14:41:08]SAM_PROTO_GetFieldsCounters [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 13 00 00 [14:41:08]Write to MH i2c: E2 08 00 A5 F6 80 13 00 00 00 00 00 00 17 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:09]Read from MH i2c: E2 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 62 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 62 00 A5 F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 57 87 02 00 0E 04 04 00 16 02 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 92 [14: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 57 87 02 00 0E 04 04 00 16 02 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 [14:41:09]wFMCommunicate OK [14:41:09]SAM_PROTO_GetFieldsCounters done [14:41:09]requested_item shift.num is exist - process it [14:41:09]requested_item shift.opened is exist - process it [14:41:09]req_shift_opened [14:41:09]FM_GetShiftState [14:41:09]SAM_PROTO_GetShiftState [14:41:09]wFMCommunicate request_size=4 [14:41:09]MH_SAM_APDU [14:41:09]CAPDU: 80 13 01 00 [14:41:09]Write to MH i2c: E2 08 00 A6 F6 80 13 01 00 00 00 00 00 19 [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:09]Read from MH i2c: E2 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 0E 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 0E 00 A6 F6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 61 [14:41:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:41:09]wFMCommunicate OK [14:41:09]SAM_PROTO_GetShiftState done [14:41:09]FM_GetShiftState done [14:41:09]req_shift_opened done [14:41:09]requested_item shift.open_date is exist - process it [14:41:09]req_shift_open_date [14:41:09]req_shift_open_date done [14:41:09]produce_requested_data done [14:41:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165719,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:41:09]process_action_free close_receipt [14:41:09]json_value_free [14:41:09]json_value_free done [14:41:09]process_json_proto returns [14:41:09]Send response to host [14:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165719,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:41:09]free response buf [14:41:09]execute_script done [14:41:09]execute_script returns [14:41:09]free content buf [14:41:09]Sock 7.Close socket [14:41:09]Sock 7.Thread stoped [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:50]accept exits with 9 [14:45:50]New connection [14:45:50]New thread 3066776932 created [14:45:50]Thread 3066920292 joined [14:45:50]Waiting for new connection... [14:45:50] Sock 9.Parse request [14:45:50]Sock 9.Check first char [14:45:50]Sock 9.First char is OK [14:45:50]request: POST /json_proto HTTP/1.0 [14:45:50]Method: POST [14:45:50]URL: /json_proto [14:45:50]Method is POST - this is cgi request [14:45:50]url: /json_proto [14:45:50]query_string will be loaded in cgi processing [14:45:50]execute_cgi json_proto POST (null) [14:45:50]execute_cgi path=json_proto method=POST [14:45:50]POST find Content-Length [14:45:50]Host: 172.17.53.195:8080 [14:45:50]Content-Length: 677 [14:45:50]Content-Type: application/json [14:45:50] [14:45:50]POST finish read [14:45:50]Found Content-Length = 677 [14:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:50]execute_script... [14:45: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)220285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:50]POST & json_proto [14:45:50]process_json_proto [14:45:50]json parsed OK: [14:45:50]protocol is kg_v1.0 [14:45:50]action value=close_receipt [14:45:50]process_action close_receipt [14:45:50]cmd_close_receipt [14:45:50]MH_GetDate [14:45:50]Write to MH i2c: F0 00 00 A7 F6 8C [14:45:50]Write i2c OK [14:45:50]MH_I2C_Read... [14:45:50]Read from MH i2c: F0 [14:45:50]MH_I2C_Read... [14:45:50]Read from MH i2c: F0 09 00 [14:45:50]MH_I2C_Read... [14:45:50]Read from MH i2c: F0 09 00 A7 F6 00 AB 17 15 67 21 48 4A 65 EB [14:45:50]GetLastDocTimeStamp 1729435277 [14:45:50]current date 1729435563 [14:45:50]FM_GetShiftState [14:45:50]SAM_PROTO_GetShiftState [14:45:50]wFMCommunicate request_size=4 [14:45:50]MH_SAM_APDU [14:45:50]CAPDU: 80 13 01 00 [14:45:50]Write to MH i2c: E2 08 00 A8 F6 80 13 01 00 00 00 00 00 1B [14:45:50]Write i2c OK [14:45:50]MH_I2C_Read... [14:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:50]Read from MH i2c: E2 [14:45:50]MH_I2C_Read... [14:45:50]Read from MH i2c: E2 0E 00 [14:45:50]MH_I2C_Read... [14:45:50]Read from MH i2c: E2 0E 00 A8 F6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 63 [14:45:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:45:50]wFMCommunicate OK [14:45:50]SAM_PROTO_GetShiftState done [14:45:50]FM_GetShiftState done [14:45:50]opened in 1729384561 [14:45:50]opened+sec_in_day 1729470961 [14:45:50]quantity*price = 50041 [14:45:50]sum+1 = 50042 [14:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 202 20.10.2024 14:46 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165720 ФПД: 278417448321768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144603&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165720&fm=278417448321768&tin=02508201610067®Number=0000000000091764&sum=50000 [14:45:51]StoreToDocumentArchive [14:45:51]shift 534 fd 165720 [14:45:51]save to /storage/0534/doc_00165720 [14:45:51]save last doc name /storage/0534/doc_00165720 to /storage/kkm_last_doc_name [14:45:51]save OK [14:45:51]Clear old archive folders... [14:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:51]tlvbuf is 014B3040 [14:45:51]SAM_PROTO_ClearQueue [14:45:51]wFMCommunicate request_size=4 [14:45:51]MH_SAM_APDU [14:45:51]CAPDU: 80 09 00 00 [14:45:51]Write to MH i2c: E2 08 00 B5 F6 80 09 00 00 00 00 00 00 1D [14:45:51]Write i2c OK [14:45:51]MH_I2C_Read... [14:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:51]Read from MH i2c: E2 [14:45:51]MH_I2C_Read... [14:45:51]Read from MH i2c: E2 03 00 [14:45:51]MH_I2C_Read... [14:45:51]Read from MH i2c: E2 03 00 B5 F6 00 90 00 1F [14:45:51]RAPDU: 90 00 [14:45:51]wFMCommunicate OK [14:45:51]SAM_PROTO_ClearQueue done [14:45:51]KKMCreateOFDPacket [14:45:51]OFDProtocolAddRootSTLVToBuf [14:45:51]FM_MakeSignedData [14:45:51]FM_MakeSignedData [14:45:51]SAM_PROTO_SignData [14:45:51]wFMCommunicate request_size=4 [14:45:51]MH_SAM_APDU [14:45:51]CAPDU: 80 0D 01 02 [14:45:51]Write to MH i2c: E2 08 00 B6 F6 80 0D 01 02 00 00 00 00 25 [14:45:51]Write i2c OK [14:45:51]MH_I2C_Read... [14:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:51]Read from MH i2c: E2 [14:45:51]MH_I2C_Read... [14:45:51]Read from MH i2c: E2 03 00 [14:45:51]MH_I2C_Read... [14:45:51]Read from MH i2c: E2 03 00 B6 F6 00 90 00 20 [14:45:51]RAPDU: 90 00 [14:45:51]wFMCommunicate OK [14:45:51]wFMCommunicate request_size=255 [14:45:51]MH_SAM_APDU [14:45: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 AB 17 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 87 02 00 35 04 06 00 FD [14:45:51]Write to MH i2c: E2 02 01 B7 F6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 AB 17 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 87 02 00 35 04 06 00 FD 00 00 B9 [14:45:51]Write i2c OK [14:45:51]MH_I2C_Read... [14:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:51]Read from MH i2c: E2 [14:45:51]MH_I2C_Read... [14:45:51]Read from MH i2c: E2 03 00 [14:45:51]MH_I2C_Read... [14:45:51]Read from MH i2c: E2 03 00 B7 F6 00 90 00 21 [14:45:51]RAPDU: 90 00 [14:45:51]wFMCommunicate OK [14:45:51]wFMCommunicate request_size=10 [14:45:51]MH_SAM_APDU [14:45:51]CAPDU: 80 0D 02 02 05 38 1D 1B 42 E8 [14:45:51]Write to MH i2c: E2 0D 00 B8 F6 80 0D 02 02 05 00 38 1D 1B 42 E8 00 00 CC [14:45:51]Write i2c OK [14:45:51]MH_I2C_Read... [14:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:51]Read from MH i2c: E2 [14:45:51]MH_I2C_Read... [14:45:51]Read from MH i2c: E2 03 00 [14:45:51]MH_I2C_Read... [14:45:51]Read from MH i2c: E2 03 00 B8 F6 00 90 00 22 [14:45:51]RAPDU: 90 00 [14:45:51]wFMCommunicate OK [14:45:51]wFMCommunicate request_size=4 [14:45:51]MH_SAM_APDU [14:45:51]CAPDU: 80 0D 03 02 [14:45:51]Write to MH i2c: E2 08 00 B9 F6 80 0D 03 02 00 00 00 00 2A [14:45:51]Write i2c OK [14:45:51]MH_I2C_Read... [14:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:52]Read from MH i2c: E2 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: E2 0B 00 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: E2 0B 00 B9 F6 00 9F 48 10 A1 A4 8D 94 3A 90 00 C2 [14:45:52]RAPDU: 9F 48 10 A1 A4 8D 94 3A 90 00 [14:45:52]wFMCommunicate OK [14:45:52]SAM_PROTO_SignData done [14:45:52]FM_MakeSignedData done [14:45:52]CreateOFDProtocolMessage [14:45:52]wFMCommunicate request_size=4 [14:45:52]MH_SAM_APDU [14:45:52]CAPDU: 80 11 00 00 [14:45:52]Write to MH i2c: E2 08 00 BA F6 80 11 00 00 00 00 00 00 2A [14:45:52]Write i2c OK [14:45:52]MH_I2C_Read... [14:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:52]Read from MH i2c: E2 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: E2 17 00 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: E2 17 00 BA F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [14:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:45:52]wFMCommunicate OK [14:45:52]CreateOFDProtocolMessage done [14:45:52]OFDSenderStorePacket 165720 [14:45:52]StoreOFDPacket docnum=165720 [14:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 86 07 01 DB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 AB 17 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 87 02 00 35 04 06 00 FD 38 1D 1B 42 E8 9F 48 10 A1 A4 8D 94 3A [14:45:52]CheckFolder [14:45:52]dirname=/storage/ofd_packets [14:45:52]CheckFolder done [14:45:52]ProducePacketName [14:45:52]name=ofd_packets/00165720 [14:45:52]NVStorageSaveData ofd_packets/00165720 [14:45:52]File name is /storage/ofd_packets/00165720 [14:45:52]Write 301 bytes [14:45:52]NVStorageSaveData done [14:45:52]OFDSenderStorePacket done [14:45:52]KKMCreateOFDPacket done [14:45:52]NVStorageSaveData kkm_last_timestamp [14:45:52]File name is /storage/kkm_last_timestamp [14:45:52]Write 4 bytes [14:45:52]NVStorageSaveData done [14:45:52]ExternCall_PrintAddStr [14:45:52]wPrintStart [14:45:52]Write to MH i2c: 01 00 00 BB F6 B1 [14:45:52]Write i2c OK [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: 01 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: 01 07 00 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: 01 07 00 BB F6 00 00 00 00 00 FF 0F C6 [14:45:52]RasterBufferAndPrint [14:45:52]line Счет N : (1)220285 [14:45:52]line ИНН: 02508201610067 [14:45:52]line Контрольно-Кассовый Чек [14:45:52]line ПРОДАЖА [14:45:52]line ТРК (МРК, ГНК) : 13 [14:45:52]line Товар: 2710124130 [14:45:52]line Аи-92-К-5 [14:45:52]line 7.480 * 66.90 [14:45:52]line = 500.41 [14:45:52]line НДС 12% НСП 1% [14:45:52]line > о реализуемом товаре [14:45:52]line ОКРУГЛЕНИЕ: -0.41 [14:45:52]line ИТОГО: 500.00 [14:45:52]line Внесено: 500.00 [14:45:52]line СДАЧА: 0.00 [14:45:52]line НСП 1% : 4.43 [14:45:52]line НДС 12% : 53.14 [14:45:52]line Наличными: 500.00 [14:45:52]line Безнал.: 0.00 [14:45:52]line Место: АЗС № 161 "Партнер Нефть" [14:45:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:45:52]line СНО: Общий режим [14:45:52]line Чек 202 20.10.2024 14:46 [14:45:52]line Смена: 534 ФФД: 1.0 [14:45:52]line ЗНМ: 0300000104 [14:45:52]line РНМ: 0000000000091764 [14:45:52]line Версия ККМ: 001 [14:45:52]line ФМ: 0000000000871759 [14:45:52]line ФД: 165720 [14:45:52]line ФПД: 278417448321768 [14:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144603&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165720&fm=278417448321768&tin=02508201610067®Number=0000000000091764&sum=50000 [14:45:52]OFD Sender: Processing packet 165720 [packets to send 48, broken 47] [14:45:52]ProducePacketName [14:45:52]name=ofd_packets/00165720 [14:45:52]OFD Sender: To server: pG, [14:45:52]CommunicateWithHost lk.salyk.kg:30040 [14:45:52]ConnectInit lk.salyk.kg [14:45:52]written 0, free lines is 4095 [14:45:52]Connected sock=10 [14:45:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 86 07 01 DB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 AB 17 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 87 02 00 35 04 06 00 FD 38 1D 1B 42 E8 9F 48 10 A1 A4 8D 94 3A [14:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A2 45 47 00 F9 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 31 37 35 39 10 04 04 00 58 87 02 00 F4 03 04 00 1C BE 14 67 B6 04 01 00 00 D5 8E E2 0C 5E A4 FD 74 [14:45:52]CommunicateWithHost err = 0 [14:45:52]CheckOFDResponse [14:45:52]1017 (14) - 77093643461234 [14:45:52]1041 (16) - 0000000000871759 [14:45:52]1040 (4) - 165720 [14:45:52]1012 (4) - 20.10.2024 08:23 [14:45:52]1206 (1) - 0 [14:45:52]OFD Sender: Remove packet 165720 [14:45:52]ProducePacketName [14:45:52]name=ofd_packets/00165720 [14:45:52]NVStorageDeleteData [14:45:52]Write to MH i2c: 01 00 00 E6 F6 DC [14:45:52]Write i2c OK [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: 01 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: 01 07 00 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: 01 07 00 E6 F6 00 00 00 00 00 FB 0C EA [14:45:52]RasterBufferAndPrint [14:45:52]line [14:45:52]line [14:45:52]line [14:45:52]line [14:45:52]line [14:45:52]written 0, free lines is 3332 [14:45:52]MH_Cut [14:45:52]Write to MH i2c: D1 01 00 ED F6 01 B5 [14:45:52]Write i2c OK [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: D1 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: D1 01 00 [14:45:52]MH_I2C_Read... [14:45:52]Read from MH i2c: D1 01 00 ED F6 00 B4 [14:45:52]Write to MH i2c: 01 00 00 EE F6 E4 [14:45:52]Write i2c OK [14:45:52]MH_I2C_Read... [14:45:53]OFD Sender: No OFD packet to send [14:45:53]*** Cut start [14:45:53]*** Partial cut [14:45:53]*** CUTSNS_PIN = 1 [14:45:53]*** CUTSNS_PIN = 0 [14:45:53]*** Brake cut motor [14:45:54]Read from MH i2c: 01 [14:45:54]MH_I2C_Read... [14:45:54]*** Stop cut motor [14:45:54]*** Cut end [14:45:54]Read from MH i2c: 01 07 00 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: 01 07 00 EE F6 00 00 00 00 00 FF 0F F9 [14:45:54]process_action close_receipt done [14:45:54]requested_data is exist [14:45:54]produce_requested_data [14:45:54]requested_item fm.sn is exist - process it [14:45:54]wFMCommunicate request_size=4 [14:45:54]MH_SAM_APDU [14:45:54]CAPDU: 80 11 00 00 [14:45:54]Write to MH i2c: E2 08 00 EF F6 80 11 00 00 00 00 00 00 5F [14:45:54]Write i2c OK [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 [14:45:54]MH_I2C_Read... [14:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:54]Read from MH i2c: E2 17 00 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 17 00 EF F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [14:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:45:54]wFMCommunicate OK [14:45:54]requested_item fd.num is exist - process it [14:45:54]SAM_PROTO_GetFieldsCounters [14:45:54]wFMCommunicate request_size=4 [14:45:54]MH_SAM_APDU [14:45:54]CAPDU: 80 13 00 00 [14:45:54]Write to MH i2c: E2 08 00 F0 F6 80 13 00 00 00 00 00 00 62 [14:45:54]Write i2c OK [14:45:54]MH_I2C_Read... [14:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:54]Read from MH i2c: E2 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 62 00 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 62 00 F0 F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 87 02 00 0E 04 04 00 16 02 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 E1 [14:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 87 02 00 0E 04 04 00 16 02 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 [14:45:54]wFMCommunicate OK [14:45:54]SAM_PROTO_GetFieldsCounters done [14:45:54]requested_item shift.num is exist - process it [14:45:54]requested_item shift.opened is exist - process it [14:45:54]req_shift_opened [14:45:54]FM_GetShiftState [14:45:54]SAM_PROTO_GetShiftState [14:45:54]wFMCommunicate request_size=4 [14:45:54]MH_SAM_APDU [14:45:54]CAPDU: 80 13 01 00 [14:45:54]Write to MH i2c: E2 08 00 F1 F6 80 13 01 00 00 00 00 00 64 [14:45:54]Write i2c OK [14:45:54]MH_I2C_Read... [14:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:54]Read from MH i2c: E2 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 0E 00 [14:45:54]MH_I2C_Read... [14:45:54]Read from MH i2c: E2 0E 00 F1 F6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AC [14:45:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:45:54]wFMCommunicate OK [14:45:54]SAM_PROTO_GetShiftState done [14:45:54]FM_GetShiftState done [14:45:54]req_shift_opened done [14:45:54]requested_item shift.open_date is exist - process it [14:45:54]req_shift_open_date [14:45:54]req_shift_open_date done [14:45:54]produce_requested_data done [14:45:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165720,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:45:54]process_action_free close_receipt [14:45:54]json_value_free [14:45:54]json_value_free done [14:45:54]process_json_proto returns [14:45:54]Send response to host [14:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165720,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:45:54]free response buf [14:45:54]execute_script done [14:45:54]execute_script returns [14:45:54]free content buf [14:45:54]Sock 9.Close socket [14:45:54]Sock 9.Thread stoped [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49: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]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:26]accept exits with 7 [14:54:26]New connection [14:54:26]New thread 3066920292 created [14:54:26]Thread 3066776932 joined [14:54:26]Waiting for new connection... [14:54:26] Sock 7.Parse request [14:54:26]Sock 7.Check first char [14:54:26]Sock 7.First char is OK [14:54:26]request: POST /json_proto HTTP/1.0 [14:54:26]Method: POST [14:54:26]URL: /json_proto [14:54:26]Method is POST - this is cgi request [14:54:26]url: /json_proto [14:54:26]query_string will be loaded in cgi processing [14:54:26]execute_cgi json_proto POST (null) [14:54:26]execute_cgi path=json_proto method=POST [14:54:26]POST find Content-Length [14:54:26]Host: 172.17.53.195:8080 [14:54:26]Content-Length: 763 [14:54:26]Content-Type: application/json [14:54:26] [14:54:26]POST finish read [14:54:26]Found Content-Length = 763 [14:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220287", "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" : 76.20, "quantity" : 7.880, "sum" : 600.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: Mbank", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:26]execute_script... [14:54: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)220287", "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" : 76.20, "quantity" : 7.880, "sum" : 600.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: Mbank", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:26]POST & json_proto [14:54:26]process_json_proto [14:54:26]json parsed OK: [14:54:26]protocol is kg_v1.0 [14:54:26]action value=close_receipt [14:54:26]process_action close_receipt [14:54:26]cmd_close_receipt [14:54:26]MH_GetDate [14:54:26]Write to MH i2c: F0 00 00 F2 F6 D7 [14:54:26]Write i2c OK [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: F0 [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: F0 09 00 [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: F0 09 00 F2 F6 00 AE 19 15 67 21 48 4A 65 3B [14:54:26]GetLastDocTimeStamp 1729435563 [14:54:26]current date 1729436078 [14:54:26]FM_GetShiftState [14:54:26]SAM_PROTO_GetShiftState [14:54:26]wFMCommunicate request_size=4 [14:54:26]MH_SAM_APDU [14:54:26]CAPDU: 80 13 01 00 [14:54:26]Write to MH i2c: E2 08 00 F3 F6 80 13 01 00 00 00 00 00 66 [14:54:26]Write i2c OK [14:54:26]MH_I2C_Read... [14:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:26]Read from MH i2c: E2 [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: E2 0E 00 [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: E2 0E 00 F3 F6 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AE [14:54:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:54:26]wFMCommunicate OK [14:54:26]SAM_PROTO_GetShiftState done [14:54:26]FM_GetShiftState done [14:54:26]opened in 1729384561 [14:54:26]opened+sec_in_day 1729470961 [14:54:26]quantity*price = 60045 [14:54:26]sum+1 = 60047 [14:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.46 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.46 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 203 20.10.2024 14:54 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165721 ФПД: 157184357280976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145439&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165721&fm=157184357280976&tin=02508201610067®Number=0000000000091764&sum=60046 [14:54:27]StoreToDocumentArchive [14:54:27]shift 534 fd 165721 [14:54:27]save to /storage/0534/doc_00165721 [14:54:27]save last doc name /storage/0534/doc_00165721 to /storage/kkm_last_doc_name [14:54:27]save OK [14:54:27]Clear old archive folders... [14:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:27]tlvbuf is 01470E30 [14:54:27]SAM_PROTO_ClearQueue [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 09 00 00 [14:54:27]Write to MH i2c: E2 08 00 00 F7 80 09 00 00 00 00 00 00 69 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 00 F7 00 90 00 6B [14:54:27]RAPDU: 90 00 [14:54:27]wFMCommunicate OK [14:54:27]SAM_PROTO_ClearQueue done [14:54:27]KKMCreateOFDPacket [14:54:27]OFDProtocolAddRootSTLVToBuf [14:54:27]FM_MakeSignedData [14:54:27]FM_MakeSignedData [14:54:27]SAM_PROTO_SignData [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 0D 01 02 [14:54:27]Write to MH i2c: E2 08 00 01 F7 80 0D 01 02 00 00 00 00 71 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 01 F7 00 90 00 6C [14:54:27]RAPDU: 90 00 [14:54:27]wFMCommunicate OK [14:54:27]wFMCommunicate request_size=255 [14:54:27]MH_SAM_APDU [14:54:27]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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 AF 19 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 87 02 00 35 04 06 00 8E F5 55 C7 [14:54:27]Write to MH i2c: E2 02 01 02 F7 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 AF 19 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 87 02 00 35 04 06 00 8E F5 55 C7 00 00 C2 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 02 F7 00 90 00 6D [14:54:27]RAPDU: 90 00 [14:54:27]wFMCommunicate OK [14:54:27]wFMCommunicate request_size=7 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 0D 02 02 02 AC D0 [14:54:27]Write to MH i2c: E2 0A 00 03 F7 80 0D 02 02 02 00 AC D0 00 00 F4 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 03 F7 00 90 00 6E [14:54:27]RAPDU: 90 00 [14:54:27]wFMCommunicate OK [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 0D 03 02 [14:54:27]Write to MH i2c: E2 08 00 04 F7 80 0D 03 02 00 00 00 00 76 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 0B 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 0B 00 04 F7 00 7E 42 44 47 33 0B 98 D9 90 00 71 [14:54:27]RAPDU: 7E 42 44 47 33 0B 98 D9 90 00 [14:54:27]wFMCommunicate OK [14:54:27]SAM_PROTO_SignData done [14:54:27]FM_MakeSignedData done [14:54:27]CreateOFDProtocolMessage [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 11 00 00 [14:54:27]Write to MH i2c: E2 08 00 05 F7 80 11 00 00 00 00 00 00 76 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 17 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 17 00 05 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [14:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:54:27]wFMCommunicate OK [14:54:27]CreateOFDProtocolMessage done [14:54:27]OFDSenderStorePacket 165721 [14:54:27]StoreOFDPacket docnum=165721 [14:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 39 33 04 01 B7 BC 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 AF 19 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 87 02 00 35 04 06 00 8E F5 55 C7 AC D0 7E 42 44 47 33 0B 98 D9 [14:54:27]CheckFolder [14:54:27]dirname=/storage/ofd_packets [14:54:27]CheckFolder done [14:54:27]ProducePacketName [14:54:27]name=ofd_packets/00165721 [14:54:27]NVStorageSaveData ofd_packets/00165721 [14:54:27]File name is /storage/ofd_packets/00165721 [14:54:27]Write 298 bytes [14:54:27]NVStorageSaveData done [14:54:27]OFDSenderStorePacket done [14:54:27]KKMCreateOFDPacket done [14:54:27]NVStorageSaveData kkm_last_timestamp [14:54:27]File name is /storage/kkm_last_timestamp [14:54:27]Write 4 bytes [14:54:27]NVStorageSaveData done [14:54:27]ExternCall_PrintAddStr [14:54:27]wPrintStart [14:54:27]Write to MH i2c: 01 00 00 06 F7 FD [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: 01 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: 01 07 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: 01 07 00 06 F7 00 00 00 00 00 FF 0F 12 [14:54:27]RasterBufferAndPrint [14:54:27]line Счет N : (1)220287 [14:54:27]line ИНН: 02508201610067 [14:54:27]line Контрольно-Кассовый Чек [14:54:27]line ПРОДАЖА [14:54:27]line ТРК (МРК, ГНК) : 11 [14:54:27]line Товар: 2710194210 [14:54:27]line ДТ-К-5 [14:54:27]line 7.880 * 76.20 [14:54:27]line = 600.46 [14:54:27]line НДС 12% НСП 1% [14:54:27]line > о реализуемом товаре [14:54:27]line ИТОГО: 600.46 [14:54:27]line НСП 1% : 5.31 [14:54:27]line НДС 12% : 63.77 [14:54:27]line Наличными: 0.00 [14:54:27]line Безнал.: 600.46 [14:54:27]line Место: АЗС № 161 "Партнер Нефть" [14:54:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:54:27]line СНО: Общий режим [14:54:27]line Чек 203 20.10.2024 14:54 [14:54:27]line Смена: 534 ФФД: 1.0 [14:54:27]line ЗНМ: 0300000104 [14:54:27]line РНМ: 0000000000091764 [14:54:27]line Версия ККМ: 001 [14:54:27]line Платежная система: Mbank [14:54:27]line ФМ: 0000000000871759 [14:54:27]line ФД: 165721 [14:54:27]line ФПД: 157184357280976 [14:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145439&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165721&fm=157184357280976&tin=02508201610067®Number=0000000000091764&sum=60046 [14:54:28]OFD Sender: Processing packet 165721 [packets to send 48, broken 47] [14:54:28]ProducePacketName [14:54:28]name=ofd_packets/00165721 [14:54:28]OFD Sender: To server: pG, [14:54:28]CommunicateWithHost lk.salyk.kg:30040 [14:54:28]ConnectInit lk.salyk.kg [14:54:28]written 0, free lines is 4095 [14:54:28]Connected sock=10 [14:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 39 33 04 01 B7 BC 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 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 AF 19 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 87 02 00 35 04 06 00 8E F5 55 C7 AC D0 7E 42 44 47 33 0B 98 D9 [14:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 62 BC 47 00 7A 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 31 37 35 39 10 04 04 00 59 87 02 00 F4 03 04 00 20 C0 14 67 B6 04 01 00 00 93 F2 7B 48 FF CE 57 30 [14:54:28]CommunicateWithHost err = 0 [14:54:28]CheckOFDResponse [14:54:28]1017 (14) - 77093643461234 [14:54:28]1041 (16) - 0000000000871759 [14:54:28]1040 (4) - 165721 [14:54:28]1012 (4) - 20.10.2024 08:32 [14:54:28]1206 (1) - 0 [14:54:28]OFD Sender: Remove packet 165721 [14:54:28]ProducePacketName [14:54:28]name=ofd_packets/00165721 [14:54:28]NVStorageDeleteData [14:54:28]Write to MH i2c: 01 00 00 2F F7 26 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: 01 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: 01 07 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: 01 07 00 2F F7 00 00 00 00 00 F4 0C 2D [14:54:28]RasterBufferAndPrint [14:54:28]line [14:54:28]line [14:54:28]line [14:54:28]line [14:54:28]line [14:54:28]written 0, free lines is 3323 [14:54:28]MH_Cut [14:54:28]Write to MH i2c: D1 01 00 36 F7 01 FF [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: D1 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: D1 01 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: D1 01 00 36 F7 00 FE [14:54:28]Write to MH i2c: 01 00 00 37 F7 2E [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]OFD Sender: No OFD packet to send [14:54:29]*** Cut start [14:54:29]*** Partial cut [14:54:29]*** CUTSNS_PIN = 1 [14:54:29]*** CUTSNS_PIN = 0 [14:54:29]*** Brake cut motor [14:54:29]Read from MH i2c: 01 [14:54:29]MH_I2C_Read... [14:54:29]*** Stop cut motor [14:54:29]*** Cut end [14:54:29]Read from MH i2c: 01 07 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 37 F7 00 00 00 00 00 FF 0F 43 [14:54:29]process_action close_receipt done [14:54:29]requested_data is exist [14:54:29]produce_requested_data [14:54:29]requested_item fm.sn is exist - process it [14:54:29]wFMCommunicate request_size=4 [14:54:29]MH_SAM_APDU [14:54:29]CAPDU: 80 11 00 00 [14:54:29]Write to MH i2c: E2 08 00 38 F7 80 11 00 00 00 00 00 00 A9 [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:29]Read from MH i2c: E2 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 17 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 17 00 38 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [14:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:54:29]wFMCommunicate OK [14:54:29]requested_item fd.num is exist - process it [14:54:29]SAM_PROTO_GetFieldsCounters [14:54:29]wFMCommunicate request_size=4 [14:54:29]MH_SAM_APDU [14:54:29]CAPDU: 80 13 00 00 [14:54:29]Write to MH i2c: E2 08 00 39 F7 80 13 00 00 00 00 00 00 AC [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 62 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 62 00 39 F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 87 02 00 0E 04 04 00 16 02 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 2F [14:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 87 02 00 0E 04 04 00 16 02 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 [14:54:30]wFMCommunicate OK [14:54:30]SAM_PROTO_GetFieldsCounters done [14:54:30]requested_item shift.num is exist - process it [14:54:30]requested_item shift.opened is exist - process it [14:54:30]req_shift_opened [14:54:30]FM_GetShiftState [14:54:30]SAM_PROTO_GetShiftState [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 13 01 00 [14:54:30]Write to MH i2c: E2 08 00 3A F7 80 13 01 00 00 00 00 00 AE [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 0E 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 0E 00 3A F7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F6 [14:54:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:54:30]wFMCommunicate OK [14:54:30]SAM_PROTO_GetShiftState done [14:54:30]FM_GetShiftState done [14:54:30]req_shift_opened done [14:54:30]requested_item shift.open_date is exist - process it [14:54:30]req_shift_open_date [14:54:30]req_shift_open_date done [14:54:30]produce_requested_data done [14:54:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165721,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:54:30]process_action_free close_receipt [14:54:30]json_value_free [14:54:30]json_value_free done [14:54:30]process_json_proto returns [14:54:30]Send response to host [14:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165721,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:54:30]free response buf [14:54:30]execute_script done [14:54:30]execute_script returns [14:54:30]free content buf [14:54:30]Sock 7.Close socket [14:54:30]Sock 7.Thread stoped [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:22]accept exits with 9 [14:56:22]New connection [14:56:22]New thread 3066776932 created [14:56:22]Thread 3066920292 joined [14:56:22]Waiting for new connection... [14:56:22] Sock 9.Parse request [14:56:22]Sock 9.Check first char [14:56:22]Sock 9.First char is OK [14:56:22]request: POST /json_proto HTTP/1.0 [14:56:22]Method: POST [14:56:22]URL: /json_proto [14:56:22]Method is POST - this is cgi request [14:56:22]url: /json_proto [14:56:22]query_string will be loaded in cgi processing [14:56:22]execute_cgi json_proto POST (null) [14:56:22]execute_cgi path=json_proto method=POST [14:56:22]POST find Content-Length [14:56:22]Host: 172.17.53.195:8080 [14:56:22]Content-Length: 677 [14:56:22]Content-Type: application/json [14:56:22] [14:56:22]POST finish read [14:56:22]Found Content-Length = 677 [14:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:22]execute_script... [14:56:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:22]POST & json_proto [14:56:22]process_json_proto [14:56:22]json parsed OK: [14:56:22]protocol is kg_v1.0 [14:56:22]action value=close_receipt [14:56:22]process_action close_receipt [14:56:22]cmd_close_receipt [14:56:22]MH_GetDate [14:56:22]Write to MH i2c: F0 00 00 3B F7 21 [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: F0 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: F0 09 00 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: F0 09 00 3B F7 00 23 1A 15 67 21 48 4A 65 FB [14:56:22]GetLastDocTimeStamp 1729436079 [14:56:22]current date 1729436195 [14:56:22]FM_GetShiftState [14:56:22]SAM_PROTO_GetShiftState [14:56:22]wFMCommunicate request_size=4 [14:56:22]MH_SAM_APDU [14:56:22]CAPDU: 80 13 01 00 [14:56:22]Write to MH i2c: E2 08 00 3C F7 80 13 01 00 00 00 00 00 B0 [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:22]Read from MH i2c: E2 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: E2 0E 00 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: E2 0E 00 3C F7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F8 [14:56:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:56:22]wFMCommunicate OK [14:56:22]SAM_PROTO_GetShiftState done [14:56:22]FM_GetShiftState done [14:56:22]opened in 1729384561 [14:56:22]opened+sec_in_day 1729470961 [14:56:22]quantity*price = 50041 [14:56:22]sum+1 = 50042 [14:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 204 20.10.2024 14:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165722 ФПД: 132032767495711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145635&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165722&fm=132032767495711&tin=02508201610067®Number=0000000000091764&sum=50000 [14:56:23]StoreToDocumentArchive [14:56:23]shift 534 fd 165722 [14:56:23]save to /storage/0534/doc_00165722 [14:56:23]save last doc name /storage/0534/doc_00165722 to /storage/kkm_last_doc_name [14:56:23]save OK [14:56:23]Clear old archive folders... [14:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:23]tlvbuf is 01475BB0 [14:56:23]SAM_PROTO_ClearQueue [14:56:23]wFMCommunicate request_size=4 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 09 00 00 [14:56:23]Write to MH i2c: E2 08 00 49 F7 80 09 00 00 00 00 00 00 B2 [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 03 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 03 00 49 F7 00 90 00 B4 [14:56:23]RAPDU: 90 00 [14:56:23]wFMCommunicate OK [14:56:23]SAM_PROTO_ClearQueue done [14:56:23]KKMCreateOFDPacket [14:56:23]OFDProtocolAddRootSTLVToBuf [14:56:23]FM_MakeSignedData [14:56:23]FM_MakeSignedData [14:56:23]SAM_PROTO_SignData [14:56:23]wFMCommunicate request_size=4 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 0D 01 02 [14:56:23]Write to MH i2c: E2 08 00 4A F7 80 0D 01 02 00 00 00 00 BA [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 03 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 03 00 4A F7 00 90 00 B5 [14:56:23]RAPDU: 90 00 [14:56:23]wFMCommunicate OK [14:56:23]wFMCommunicate request_size=255 [14:56:23]MH_SAM_APDU [14:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 23 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 87 02 00 35 04 06 00 78 [14:56:23]Write to MH i2c: E2 02 01 4B F7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 23 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 87 02 00 35 04 06 00 78 00 00 48 [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 03 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 03 00 4B F7 00 90 00 B6 [14:56:23]RAPDU: 90 00 [14:56:23]wFMCommunicate OK [14:56:23]wFMCommunicate request_size=10 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 0D 02 02 05 15 46 34 8E 1F [14:56:23]Write to MH i2c: E2 0D 00 4C F7 80 0D 02 02 05 00 15 46 34 8E 1F 00 00 03 [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 03 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 03 00 4C F7 00 90 00 B7 [14:56:23]RAPDU: 90 00 [14:56:23]wFMCommunicate OK [14:56:23]wFMCommunicate request_size=4 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 0D 03 02 [14:56:23]Write to MH i2c: E2 08 00 4D F7 80 0D 03 02 00 00 00 00 BF [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 0B 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 0B 00 4D F7 00 42 CF E8 A5 0F 0A D7 26 90 00 74 [14:56:23]RAPDU: 42 CF E8 A5 0F 0A D7 26 90 00 [14:56:23]wFMCommunicate OK [14:56:23]SAM_PROTO_SignData done [14:56:23]FM_MakeSignedData done [14:56:23]CreateOFDProtocolMessage [14:56:23]wFMCommunicate request_size=4 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 11 00 00 [14:56:23]Write to MH i2c: E2 08 00 4E F7 80 11 00 00 00 00 00 00 BF [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 17 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 17 00 4E F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [14:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:23]wFMCommunicate OK [14:56:23]CreateOFDProtocolMessage done [14:56:23]OFDSenderStorePacket 165722 [14:56:23]StoreOFDPacket docnum=165722 [14:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 A7 07 01 DD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 23 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 87 02 00 35 04 06 00 78 15 46 34 8E 1F 42 CF E8 A5 0F 0A D7 26 [14:56:23]CheckFolder [14:56:23]dirname=/storage/ofd_packets [14:56:23]CheckFolder done [14:56:23]ProducePacketName [14:56:23]name=ofd_packets/00165722 [14:56:23]NVStorageSaveData ofd_packets/00165722 [14:56:23]File name is /storage/ofd_packets/00165722 [14:56:23]Write 301 bytes [14:56:23]NVStorageSaveData done [14:56:23]OFDSenderStorePacket done [14:56:23]KKMCreateOFDPacket done [14:56:23]NVStorageSaveData kkm_last_timestamp [14:56:23]File name is /storage/kkm_last_timestamp [14:56:23]Write 4 bytes [14:56:23]NVStorageSaveData done [14:56:23]ExternCall_PrintAddStr [14:56:23]wPrintStart [14:56:23]Write to MH i2c: 01 00 00 4F F7 46 [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: 01 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: 01 07 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: 01 07 00 4F F7 00 00 00 00 00 FF 0F 5B [14:56:23]RasterBufferAndPrint [14:56:23]line Счет N : (1)220289 [14:56:23]line ИНН: 02508201610067 [14:56:23]line Контрольно-Кассовый Чек [14:56:23]line ПРОДАЖА [14:56:23]line ТРК (МРК, ГНК) : 23 [14:56:23]line Товар: 2710124130 [14:56:23]line Аи-92-К-5 [14:56:23]line 7.480 * 66.90 [14:56:23]line = 500.41 [14:56:23]line НДС 12% НСП 1% [14:56:23]line > о реализуемом товаре [14:56:23]line ОКРУГЛЕНИЕ: -0.41 [14:56:23]line ИТОГО: 500.00 [14:56:23]line Внесено: 500.00 [14:56:23]line СДАЧА: 0.00 [14:56:23]line НСП 1% : 4.43 [14:56:23]line НДС 12% : 53.14 [14:56:23]line Наличными: 500.00 [14:56:23]line Безнал.: 0.00 [14:56:23]line Место: АЗС № 161 "Партнер Нефть" [14:56:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:56:23]line СНО: Общий режим [14:56:23]line Чек 204 20.10.2024 14:56 [14:56:23]line Смена: 534 ФФД: 1.0 [14:56:23]line ЗНМ: 0300000104 [14:56:23]line РНМ: 0000000000091764 [14:56:23]line Версия ККМ: 001 [14:56:23]line ФМ: 0000000000871759 [14:56:23]line ФД: 165722 [14:56:23]line ФПД: 132032767495711 [14:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145635&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165722&fm=132032767495711&tin=02508201610067®Number=0000000000091764&sum=50000 [14:56:24]OFD Sender: Processing packet 165722 [packets to send 48, broken 47] [14:56:24]ProducePacketName [14:56:24]name=ofd_packets/00165722 [14:56:24]OFD Sender: To server: pG, [14:56:24]CommunicateWithHost lk.salyk.kg:30040 [14:56:24]ConnectInit lk.salyk.kg [14:56:24]written 0, free lines is 4095 [14:56:24]Connected sock=10 [14:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 A7 07 01 DD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 23 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 87 02 00 35 04 06 00 78 15 46 34 8E 1F 42 CF E8 A5 0F 0A D7 26 [14:56:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F2 01 47 00 E6 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 87 02 00 F4 03 04 00 94 C0 14 67 B6 04 01 00 00 B1 59 DD 3C D7 CF F8 82 [14:56:24]CommunicateWithHost err = 0 [14:56:24]CheckOFDResponse [14:56:24]1017 (14) - 77093643461234 [14:56:24]1041 (16) - 0000000000871759 [14:56:24]1040 (4) - 165722 [14:56:24]1012 (4) - 20.10.2024 08:34 [14:56:24]1206 (1) - 0 [14:56:24]OFD Sender: Remove packet 165722 [14:56:24]ProducePacketName [14:56:24]name=ofd_packets/00165722 [14:56:24]NVStorageDeleteData [14:56:24]Write to MH i2c: 01 00 00 7A F7 71 [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: 01 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: 01 07 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: 01 07 00 7A F7 00 00 00 00 00 C3 0C 47 [14:56:24]RasterBufferAndPrint [14:56:24]line [14:56:24]line [14:56:24]line [14:56:24]line [14:56:24]line [14:56:24]written 0, free lines is 3273 [14:56:24]MH_Cut [14:56:24]Write to MH i2c: D1 01 00 81 F7 01 4A [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: D1 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: D1 01 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: D1 01 00 81 F7 00 49 [14:56:24]Write to MH i2c: 01 00 00 82 F7 79 [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:25]OFD Sender: No OFD packet to send [14:56:25]*** Cut start [14:56:25]*** Partial cut [14:56:25]*** CUTSNS_PIN = 1 [14:56:25]*** CUTSNS_PIN = 0 [14:56:25]*** Brake cut motor [14:56:26]Read from MH i2c: 01 [14:56:26]MH_I2C_Read... [14:56:26]*** Stop cut motor [14:56:26]*** Cut end [14:56:26]Read from MH i2c: 01 07 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: 01 07 00 82 F7 00 00 00 00 00 FF 0F 8E [14:56:26]process_action close_receipt done [14:56:26]requested_data is exist [14:56:26]produce_requested_data [14:56:26]requested_item fm.sn is exist - process it [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 11 00 00 [14:56:26]Write to MH i2c: E2 08 00 83 F7 80 11 00 00 00 00 00 00 F4 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 17 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 17 00 83 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [14:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:26]wFMCommunicate OK [14:56:26]requested_item fd.num is exist - process it [14:56:26]SAM_PROTO_GetFieldsCounters [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 13 00 00 [14:56:26]Write to MH i2c: E2 08 00 84 F7 80 13 00 00 00 00 00 00 F7 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 62 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 62 00 84 F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 87 02 00 0E 04 04 00 16 02 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 7E [14:56:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 87 02 00 0E 04 04 00 16 02 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 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_GetFieldsCounters done [14:56:26]requested_item shift.num is exist - process it [14:56:26]requested_item shift.opened is exist - process it [14:56:26]req_shift_opened [14:56:26]FM_GetShiftState [14:56:26]SAM_PROTO_GetShiftState [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 13 01 00 [14:56:26]Write to MH i2c: E2 08 00 85 F7 80 13 01 00 00 00 00 00 F9 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0E 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0E 00 85 F7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 41 [14:56:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_GetShiftState done [14:56:26]FM_GetShiftState done [14:56:26]req_shift_opened done [14:56:26]requested_item shift.open_date is exist - process it [14:56:26]req_shift_open_date [14:56:26]req_shift_open_date done [14:56:26]produce_requested_data done [14:56:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165722,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:56:26]process_action_free close_receipt [14:56:26]json_value_free [14:56:26]json_value_free done [14:56:26]process_json_proto returns [14:56:26]Send response to host [14:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165722,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:56:26]free response buf [14:56:26]execute_script done [14:56:26]execute_script returns [14:56:26]free content buf [14:56:26]Sock 9.Close socket [14:56:26]Sock 9.Thread stoped [14:56:26]accept exits with 7 [14:56:26]New connection [14:56:26]New thread 3066920292 created [14:56:26]Thread 3066776932 joined [14:56:26]Waiting for new connection... [14:56:26] Sock 7.Parse request [14:56:26]Sock 7.Check first char [14:56:26]Sock 7.First char is OK [14:56:26]request: POST /json_proto HTTP/1.0 [14:56:26]Method: POST [14:56:26]URL: /json_proto [14:56:26]Method is POST - this is cgi request [14:56:26]url: /json_proto [14:56:26]query_string will be loaded in cgi processing [14:56:26]execute_cgi json_proto POST (null) [14:56:26]execute_cgi path=json_proto method=POST [14:56:26]POST find Content-Length [14:56:26]Host: 172.17.53.195:8080 [14:56:26]Content-Length: 677 [14:56:26]Content-Type: application/json [14:56:26] [14:56:26]POST finish read [14:56:26]Found Content-Length = 677 [14:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:26]execute_script... [14:56: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)220288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:26]POST & json_proto [14:56:26]process_json_proto [14:56:26]json parsed OK: [14:56:26]protocol is kg_v1.0 [14:56:26]action value=close_receipt [14:56:26]process_action close_receipt [14:56:26]cmd_close_receipt [14:56:26]MH_GetDate [14:56:26]Write to MH i2c: F0 00 00 86 F7 6C [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 09 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 09 00 86 F7 00 27 1A 15 67 21 48 4A 65 4A [14:56:26]GetLastDocTimeStamp 1729436195 [14:56:26]current date 1729436199 [14:56:26]FM_GetShiftState [14:56:26]SAM_PROTO_GetShiftState [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 13 01 00 [14:56:26]Write to MH i2c: E2 08 00 87 F7 80 13 01 00 00 00 00 00 FB [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0E 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0E 00 87 F7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 43 [14:56:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_GetShiftState done [14:56:26]FM_GetShiftState done [14:56:26]opened in 1729384561 [14:56:26]opened+sec_in_day 1729470961 [14:56:26]quantity*price = 50010 [14:56:26]sum+1 = 50012 [14:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 205 20.10.2024 14:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165723 ФПД: 80081256740797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165723&fm=80081256740797&tin=02508201610067®Number=0000000000091764&sum=50000 [14:56:28]StoreToDocumentArchive [14:56:28]shift 534 fd 165723 [14:56:28]save to /storage/0534/doc_00165723 [14:56:28]save last doc name /storage/0534/doc_00165723 to /storage/kkm_last_doc_name [14:56:28]save OK [14:56:28]Clear old archive folders... [14:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:28]tlvbuf is 017B2D70 [14:56:28]SAM_PROTO_ClearQueue [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 09 00 00 [14:56:28]Write to MH i2c: E2 08 00 94 F7 80 09 00 00 00 00 00 00 FD [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 94 F7 00 90 00 FF [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_ClearQueue done [14:56:28]KKMCreateOFDPacket [14:56:28]OFDProtocolAddRootSTLVToBuf [14:56:28]FM_MakeSignedData [14:56:28]FM_MakeSignedData [14:56:28]SAM_PROTO_SignData [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 01 02 [14:56:28]Write to MH i2c: E2 08 00 95 F7 80 0D 01 02 00 00 00 00 05 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 95 F7 00 90 00 00 [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=255 [14:56:28]MH_SAM_APDU [14:56: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 27 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 87 02 00 35 04 06 00 48 [14:56:28]Write to MH i2c: E2 02 01 96 F7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 27 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 87 02 00 35 04 06 00 48 00 00 41 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 96 F7 00 90 00 01 [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=10 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 02 02 05 D5 5E DC 77 BD [14:56:28]Write to MH i2c: E2 0D 00 97 F7 80 0D 02 02 05 00 D5 5E DC 77 BD 00 00 55 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 97 F7 00 90 00 02 [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 03 02 [14:56:28]Write to MH i2c: E2 08 00 98 F7 80 0D 03 02 00 00 00 00 0A [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0B 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0B 00 98 F7 00 DF 9D 26 B8 2C 8B 77 B9 90 00 4C [14:56:28]RAPDU: DF 9D 26 B8 2C 8B 77 B9 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_SignData done [14:56:28]FM_MakeSignedData done [14:56:28]CreateOFDProtocolMessage [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 11 00 00 [14:56:28]Write to MH i2c: E2 08 00 99 F7 80 11 00 00 00 00 00 00 0A [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 99 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [14:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:28]wFMCommunicate OK [14:56:28]CreateOFDProtocolMessage done [14:56:28]OFDSenderStorePacket 165723 [14:56:28]StoreOFDPacket docnum=165723 [14:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 22 90 07 01 A2 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 27 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 87 02 00 35 04 06 00 48 D5 5E DC 77 BD DF 9D 26 B8 2C 8B 77 B9 [14:56:28]CheckFolder [14:56:28]dirname=/storage/ofd_packets [14:56:28]CheckFolder done [14:56:28]ProducePacketName [14:56:28]name=ofd_packets/00165723 [14:56:28]NVStorageSaveData ofd_packets/00165723 [14:56:28]File name is /storage/ofd_packets/00165723 [14:56:28]Write 301 bytes [14:56:28]NVStorageSaveData done [14:56:28]OFDSenderStorePacket done [14:56:28]KKMCreateOFDPacket done [14:56:28]NVStorageSaveData kkm_last_timestamp [14:56:28]File name is /storage/kkm_last_timestamp [14:56:28]Write 4 bytes [14:56:28]NVStorageSaveData done [14:56:28]ExternCall_PrintAddStr [14:56:28]wPrintStart [14:56:28]Write to MH i2c: 01 00 00 9A F7 91 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 9A F7 00 00 00 00 00 FF 0F A6 [14:56:28]RasterBufferAndPrint [14:56:28]line Счет N : (1)220288 [14:56:28]line ИНН: 02508201610067 [14:56:28]line Контрольно-Кассовый Чек [14:56:28]line ПРОДАЖА [14:56:28]line ТРК (МРК, ГНК) : 44 [14:56:28]line Товар: 2710124500 [14:56:28]line Аи-95-К-5 [14:56:28]line 6.740 * 74.20 [14:56:28]line = 500.11 [14:56:28]line НДС 12% НСП 1% [14:56:28]line > о реализуемом товаре [14:56:28]line ОКРУГЛЕНИЕ: -0.11 [14:56:28]line ИТОГО: 500.00 [14:56:28]line Внесено: 500.00 [14:56:28]line СДАЧА: 0.00 [14:56:28]line НСП 1% : 4.43 [14:56:28]line НДС 12% : 53.11 [14:56:28]line Наличными: 500.00 [14:56:28]line Безнал.: 0.00 [14:56:28]line Место: АЗС № 161 "Партнер Нефть" [14:56:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:56:28]line СНО: Общий режим [14:56:28]line Чек 205 20.10.2024 14:56 [14:56:28]line Смена: 534 ФФД: 1.0 [14:56:28]line ЗНМ: 0300000104 [14:56:28]line РНМ: 0000000000091764 [14:56:28]line Версия ККМ: 001 [14:56:28]line ФМ: 0000000000871759 [14:56:28]line ФД: 165723 [14:56:28]line ФПД: 80081256740797 [14:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165723&fm=80081256740797&tin=02508201610067®Number=0000000000091764&sum=50000 [14:56:28]written 0, free lines is 4095 [14:56:28]OFD Sender: Processing packet 165723 [packets to send 48, broken 47] [14:56:28]ProducePacketName [14:56:28]name=ofd_packets/00165723 [14:56:28]OFD Sender: To server: pG, [14:56:28]CommunicateWithHost lk.salyk.kg:30040 [14:56:28]ConnectInit lk.salyk.kg [14:56:28]Connected sock=11 [14:56:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 22 90 07 01 A2 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 27 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 87 02 00 35 04 06 00 48 D5 5E DC 77 BD DF 9D 26 B8 2C 8B 77 B9 [14:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1F 5E 47 00 9D 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 31 37 35 39 10 04 04 00 5B 87 02 00 F4 03 04 00 99 C0 14 67 B6 04 01 00 00 65 A9 68 5A F0 E0 0B 3E [14:56:29]CommunicateWithHost err = 0 [14:56:29]CheckOFDResponse [14:56:29]1017 (14) - 77093643461234 [14:56:29]1041 (16) - 0000000000871759 [14:56:29]1040 (4) - 165723 [14:56:29]1012 (4) - 20.10.2024 08:34 [14:56:29]1206 (1) - 0 [14:56:29]OFD Sender: Remove packet 165723 [14:56:29]ProducePacketName [14:56:29]name=ofd_packets/00165723 [14:56:29]NVStorageDeleteData [14:56:29]Write to MH i2c: 01 00 00 C5 F7 BC [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 C5 F7 00 00 00 00 00 DA 0C A9 [14:56:29]RasterBufferAndPrint [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]written 0, free lines is 3303 [14:56:29]MH_Cut [14:56:29]Write to MH i2c: D1 01 00 CC F7 01 95 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 01 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 01 00 CC F7 00 94 [14:56:29]Write to MH i2c: 01 00 00 CD F7 C4 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]OFD Sender: No OFD packet to send [14:56:29]*** Cut start [14:56:29]*** Partial cut [14:56:29]*** CUTSNS_PIN = 1 [14:56:30]*** CUTSNS_PIN = 0 [14:56:30]*** Brake cut motor [14:56:30]Read from MH i2c: 01 [14:56:30]MH_I2C_Read... [14:56:30]*** Stop cut motor [14:56:30]*** Cut end [14:56:30]Read from MH i2c: 01 07 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: 01 07 00 CD F7 00 00 00 00 00 FF 0F D9 [14:56:30]process_action close_receipt done [14:56:30]requested_data is exist [14:56:30]produce_requested_data [14:56:30]requested_item fm.sn is exist - process it [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 11 00 00 [14:56:30]Write to MH i2c: E2 08 00 CE F7 80 11 00 00 00 00 00 00 3F [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 CE F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [14:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:30]wFMCommunicate OK [14:56:30]requested_item fd.num is exist - process it [14:56:30]SAM_PROTO_GetFieldsCounters [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 13 00 00 [14:56:30]Write to MH i2c: E2 08 00 CF F7 80 13 00 00 00 00 00 00 42 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 62 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 62 00 CF F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 87 02 00 0E 04 04 00 16 02 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 CD [14:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 87 02 00 0E 04 04 00 16 02 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 [14:56:30]wFMCommunicate OK [14:56:30]SAM_PROTO_GetFieldsCounters done [14:56:30]requested_item shift.num is exist - process it [14:56:30]requested_item shift.opened is exist - process it [14:56:30]req_shift_opened [14:56:30]FM_GetShiftState [14:56:30]SAM_PROTO_GetShiftState [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 13 01 00 [14:56:30]Write to MH i2c: E2 08 00 D0 F7 80 13 01 00 00 00 00 00 44 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:30]Read from MH i2c: E2 0E 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 0E 00 D0 F7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8C [14:56:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:56:30]wFMCommunicate OK [14:56:30]SAM_PROTO_GetShiftState done [14:56:30]FM_GetShiftState done [14:56:30]req_shift_opened done [14:56:30]requested_item shift.open_date is exist - process it [14:56:30]req_shift_open_date [14:56:30]req_shift_open_date done [14:56:30]produce_requested_data done [14:56:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165723,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:56:30]process_action_free close_receipt [14:56:30]json_value_free [14:56:30]json_value_free done [14:56:30]process_json_proto returns [14:56:30]Send response to host [14:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165723,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:56:30]free response buf [14:56:30]execute_script done [14:56:30]execute_script returns [14:56:30]free content buf [14:56:30]Sock 7.Close socket [14:56:30]Sock 7.Thread stoped [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:50]accept exits with 9 [14:56:50]New connection [14:56:50]New thread 3066776932 created [14:56:50]Thread 3066920292 joined [14:56:50]Waiting for new connection... [14:56:50] Sock 9.Parse request [14:56:50]Sock 9.Check first char [14:56:50]Sock 9.First char is OK [14:56:50]request: POST /json_proto HTTP/1.0 [14:56:50]Method: POST [14:56:50]URL: /json_proto [14:56:50]Method is POST - this is cgi request [14:56:50]url: /json_proto [14:56:50]query_string will be loaded in cgi processing [14:56:50]execute_cgi json_proto POST (null) [14:56:50]execute_cgi path=json_proto method=POST [14:56:50]POST find Content-Length [14:56:50]Host: 172.17.53.195:8080 [14:56:50]Content-Length: 678 [14:56:50]Content-Type: application/json [14:56:50] [14:56:50]POST finish read [14:56:50]Found Content-Length = 678 [14:56:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.950, "sum" : 799.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:50]execute_script... [14:56: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)220290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.950, "sum" : 799.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:50]POST & json_proto [14:56:50]process_json_proto [14:56:50]json parsed OK: [14:56:50]protocol is kg_v1.0 [14:56:50]action value=close_receipt [14:56:50]process_action close_receipt [14:56:50]cmd_close_receipt [14:56:50]MH_GetDate [14:56:50]Write to MH i2c: F0 00 00 D1 F7 B7 [14:56:50]Write i2c OK [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: F0 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: F0 09 00 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: F0 09 00 D1 F7 00 3F 1A 15 67 21 48 4A 65 AD [14:56:50]GetLastDocTimeStamp 1729436199 [14:56:50]current date 1729436223 [14:56:50]FM_GetShiftState [14:56:50]SAM_PROTO_GetShiftState [14:56:50]wFMCommunicate request_size=4 [14:56:50]MH_SAM_APDU [14:56:50]CAPDU: 80 13 01 00 [14:56:50]Write to MH i2c: E2 08 00 D2 F7 80 13 01 00 00 00 00 00 46 [14:56:50]Write i2c OK [14:56:50]MH_I2C_Read... [14:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:50]Read from MH i2c: E2 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: E2 0E 00 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: E2 0E 00 D2 F7 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8E [14:56:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:56:50]wFMCommunicate OK [14:56:50]SAM_PROTO_GetShiftState done [14:56:50]FM_GetShiftState done [14:56:50]opened in 1729384561 [14:56:50]opened+sec_in_day 1729470961 [14:56:50]quantity*price = 79945 [14:56:50]sum+1 = 79947 [14:56:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 799.00 Внесено: 800.00 СДАЧА: 1.00 НСП 1% : 7.07 НДС 12% : 84.90 Наличными: 799.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 206 20.10.2024 14:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165724 ФПД: 156922857897405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145703&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165724&fm=156922857897405&tin=02508201610067®Number=0000000000091764&sum=79900 [14:56:51]StoreToDocumentArchive [14:56:51]shift 534 fd 165724 [14:56:51]save to /storage/0534/doc_00165724 [14:56:51]save last doc name /storage/0534/doc_00165724 to /storage/kkm_last_doc_name [14:56:51]save OK [14:56:51]Clear old archive folders... [14:56:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:51]tlvbuf is 016C79A0 [14:56:51]SAM_PROTO_ClearQueue [14:56:51]wFMCommunicate request_size=4 [14:56:51]MH_SAM_APDU [14:56:51]CAPDU: 80 09 00 00 [14:56:51]Write to MH i2c: E2 08 00 DF F7 80 09 00 00 00 00 00 00 48 [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 03 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 03 00 DF F7 00 90 00 4A [14:56:51]RAPDU: 90 00 [14:56:51]wFMCommunicate OK [14:56:51]SAM_PROTO_ClearQueue done [14:56:51]KKMCreateOFDPacket [14:56:51]OFDProtocolAddRootSTLVToBuf [14:56:51]FM_MakeSignedData [14:56:51]FM_MakeSignedData [14:56:51]SAM_PROTO_SignData [14:56:51]wFMCommunicate request_size=4 [14:56:51]MH_SAM_APDU [14:56:51]CAPDU: 80 0D 01 02 [14:56:51]Write to MH i2c: E2 08 00 E0 F7 80 0D 01 02 00 00 00 00 50 [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 03 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 03 00 E0 F7 00 90 00 4B [14:56:51]RAPDU: 90 00 [14:56:51]wFMCommunicate OK [14:56:51]wFMCommunicate request_size=255 [14:56:51]MH_SAM_APDU [14:56: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 AE 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 21 00 00 00 00 07 04 06 00 1C 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 CE 00 00 00 F4 03 04 00 3F 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 87 02 00 35 04 06 00 8E [14:56:51]Write to MH i2c: E2 02 01 E1 F7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 21 00 00 00 00 07 04 06 00 1C 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 CE 00 00 00 F4 03 04 00 3F 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 87 02 00 35 04 06 00 8E 00 00 E4 [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 03 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 03 00 E1 F7 00 90 00 4C [14:56:51]RAPDU: 90 00 [14:56:51]wFMCommunicate OK [14:56:51]wFMCommunicate request_size=10 [14:56:51]MH_SAM_APDU [14:56:51]CAPDU: 80 0D 02 02 05 B8 73 33 BD BD [14:56:51]Write to MH i2c: E2 0D 00 E2 F7 80 0D 02 02 05 00 B8 73 33 BD BD 00 00 35 [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 03 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 03 00 E2 F7 00 90 00 4D [14:56:51]RAPDU: 90 00 [14:56:51]wFMCommunicate OK [14:56:51]wFMCommunicate request_size=4 [14:56:51]MH_SAM_APDU [14:56:51]CAPDU: 80 0D 03 02 [14:56:51]Write to MH i2c: E2 08 00 E3 F7 80 0D 03 02 00 00 00 00 55 [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 0B 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 0B 00 E3 F7 00 B3 DC 55 1B BD 89 5D 65 90 00 5D [14:56:51]RAPDU: B3 DC 55 1B BD 89 5D 65 90 00 [14:56:51]wFMCommunicate OK [14:56:51]SAM_PROTO_SignData done [14:56:51]FM_MakeSignedData done [14:56:51]CreateOFDProtocolMessage [14:56:51]wFMCommunicate request_size=4 [14:56:51]MH_SAM_APDU [14:56:51]CAPDU: 80 11 00 00 [14:56:51]Write to MH i2c: E2 08 00 E4 F7 80 11 00 00 00 00 00 00 55 [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 17 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 17 00 E4 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [14:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:51]wFMCommunicate OK [14:56:51]CreateOFDProtocolMessage done [14:56:51]OFDSenderStorePacket 165724 [14:56:51]StoreOFDPacket docnum=165724 [14:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 16 94 07 01 7F 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 AE 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 21 00 00 00 00 07 04 06 00 1C 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 CE 00 00 00 F4 03 04 00 3F 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 87 02 00 35 04 06 00 8E B8 73 33 BD BD B3 DC 55 1B BD 89 5D 65 [14:56:51]CheckFolder [14:56:51]dirname=/storage/ofd_packets [14:56:51]CheckFolder done [14:56:51]ProducePacketName [14:56:51]name=ofd_packets/00165724 [14:56:51]NVStorageSaveData ofd_packets/00165724 [14:56:51]File name is /storage/ofd_packets/00165724 [14:56:51]Write 301 bytes [14:56:51]NVStorageSaveData done [14:56:51]OFDSenderStorePacket done [14:56:51]KKMCreateOFDPacket done [14:56:51]NVStorageSaveData kkm_last_timestamp [14:56:51]File name is /storage/kkm_last_timestamp [14:56:51]Write 4 bytes [14:56:51]NVStorageSaveData done [14:56:51]ExternCall_PrintAddStr [14:56:51]wPrintStart [14:56:51]Write to MH i2c: 01 00 00 E5 F7 DC [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: 01 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: 01 07 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: 01 07 00 E5 F7 00 00 00 00 00 FF 0F F1 [14:56:51]RasterBufferAndPrint [14:56:51]line Счет N : (1)220290 [14:56:51]line ИНН: 02508201610067 [14:56:51]line Контрольно-Кассовый Чек [14:56:51]line ПРОДАЖА [14:56:51]line ТРК (МРК, ГНК) : 13 [14:56:51]line Товар: 2710124130 [14:56:51]line Аи-92-К-5 [14:56:51]line 11.950 * 66.90 [14:56:51]line = 799.46 [14:56:51]line НДС 12% НСП 1% [14:56:51]line > о реализуемом товаре [14:56:51]line ОКРУГЛЕНИЕ: -0.46 [14:56:51]line ИТОГО: 799.00 [14:56:51]line Внесено: 800.00 [14:56:51]line СДАЧА: 1.00 [14:56:51]line НСП 1% : 7.07 [14:56:51]line НДС 12% : 84.90 [14:56:51]line Наличными: 799.00 [14:56:51]line Безнал.: 0.00 [14:56:51]line Место: АЗС № 161 "Партнер Нефть" [14:56:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:56:51]line СНО: Общий режим [14:56:51]line Чек 206 20.10.2024 14:57 [14:56:51]line Смена: 534 ФФД: 1.0 [14:56:51]line ЗНМ: 0300000104 [14:56:51]line РНМ: 0000000000091764 [14:56:51]line Версия ККМ: 001 [14:56:51]line ФМ: 0000000000871759 [14:56:51]line ФД: 165724 [14:56:51]line ФПД: 156922857897405 [14:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145703&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165724&fm=156922857897405&tin=02508201610067®Number=0000000000091764&sum=79900 [14:56:52]OFD Sender: Processing packet 165724 [packets to send 48, broken 47] [14:56:52]ProducePacketName [14:56:52]name=ofd_packets/00165724 [14:56:52]OFD Sender: To server: pG, [14:56:52]CommunicateWithHost lk.salyk.kg:30040 [14:56:52]ConnectInit lk.salyk.kg [14:56:52]written 0, free lines is 4095 [14:56:52]Connected sock=10 [14:56:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 16 94 07 01 7F 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 AE 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 21 00 00 00 00 07 04 06 00 1C 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 CE 00 00 00 F4 03 04 00 3F 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 87 02 00 35 04 06 00 8E B8 73 33 BD BD B3 DC 55 1B BD 89 5D 65 [14:56:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 19 AE 47 00 6C DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 87 02 00 F4 03 04 00 B0 C0 14 67 B6 04 01 00 00 54 EC 5C D4 4D D2 02 E4 [14:56:52]CommunicateWithHost err = 0 [14:56:52]CheckOFDResponse [14:56:52]1017 (14) - 77093643461234 [14:56:52]1041 (16) - 0000000000871759 [14:56:52]1040 (4) - 165724 [14:56:52]1012 (4) - 20.10.2024 08:34 [14:56:52]1206 (1) - 0 [14:56:52]OFD Sender: Remove packet 165724 [14:56:52]ProducePacketName [14:56:52]name=ofd_packets/00165724 [14:56:52]NVStorageDeleteData [14:56:52]Write to MH i2c: 01 00 00 10 F8 08 [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: 01 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: 01 07 00 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: 01 07 00 10 F8 00 00 00 00 00 C7 0C E2 [14:56:52]RasterBufferAndPrint [14:56:52]line [14:56:52]line [14:56:52]line [14:56:52]line [14:56:52]line [14:56:52]written 0, free lines is 3281 [14:56:52]MH_Cut [14:56:52]Write to MH i2c: D1 01 00 17 F8 01 E1 [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: D1 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: D1 01 00 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: D1 01 00 17 F8 00 E0 [14:56:52]Write to MH i2c: 01 00 00 18 F8 10 [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]OFD Sender: No OFD packet to send [14:56:53]*** Cut start [14:56:53]*** Partial cut [14:56:53]*** CUTSNS_PIN = 1 [14:56:53]*** CUTSNS_PIN = 0 [14:56:53]*** Brake cut motor [14:56:54]Read from MH i2c: 01 [14:56:54]MH_I2C_Read... [14:56:54]*** Stop cut motor [14:56:54]*** Cut end [14:56:54]Read from MH i2c: 01 07 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: 01 07 00 18 F8 00 00 00 00 00 FF 0F 25 [14:56:54]process_action close_receipt done [14:56:54]requested_data is exist [14:56:54]produce_requested_data [14:56:54]requested_item fm.sn is exist - process it [14:56:54]wFMCommunicate request_size=4 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 11 00 00 [14:56:54]Write to MH i2c: E2 08 00 19 F8 80 11 00 00 00 00 00 00 8B [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 17 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 17 00 19 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E3 [14:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:56:54]wFMCommunicate OK [14:56:54]requested_item fd.num is exist - process it [14:56:54]SAM_PROTO_GetFieldsCounters [14:56:54]wFMCommunicate request_size=4 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 13 00 00 [14:56:54]Write to MH i2c: E2 08 00 1A F8 80 13 00 00 00 00 00 00 8E [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 62 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 62 00 1A F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 87 02 00 0E 04 04 00 16 02 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 1D [14:56:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 87 02 00 0E 04 04 00 16 02 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 [14:56:54]wFMCommunicate OK [14:56:54]SAM_PROTO_GetFieldsCounters done [14:56:54]requested_item shift.num is exist - process it [14:56:54]requested_item shift.opened is exist - process it [14:56:54]req_shift_opened [14:56:54]FM_GetShiftState [14:56:54]SAM_PROTO_GetShiftState [14:56:54]wFMCommunicate request_size=4 [14:56:54]MH_SAM_APDU [14:56:54]CAPDU: 80 13 01 00 [14:56:54]Write to MH i2c: E2 08 00 1B F8 80 13 01 00 00 00 00 00 90 [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:54]Read from MH i2c: E2 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 0E 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: E2 0E 00 1B F8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D8 [14:56:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:56:54]wFMCommunicate OK [14:56:54]SAM_PROTO_GetShiftState done [14:56:54]FM_GetShiftState done [14:56:54]req_shift_opened done [14:56:54]requested_item shift.open_date is exist - process it [14:56:54]req_shift_open_date [14:56:54]req_shift_open_date done [14:56:54]produce_requested_data done [14:56:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165724,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:56:54]process_action_free close_receipt [14:56:54]json_value_free [14:56:54]json_value_free done [14:56:54]process_json_proto returns [14:56:54]Send response to host [14:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165724,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:56:54]free response buf [14:56:54]execute_script done [14:56:54]execute_script returns [14:56:54]free content buf [14:56:54]Sock 9.Close socket [14:56:54]Sock 9.Thread stoped [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:25]accept exits with 7 [14:59:25]New connection [14:59:25]New thread 3066920292 created [14:59:25]Thread 3066776932 joined [14:59:25]Waiting for new connection... [14:59:25] Sock 7.Parse request [14:59:25]Sock 7.Check first char [14:59:25]Sock 7.First char is OK [14:59:25]request: POST /json_proto HTTP/1.0 [14:59:25]Method: POST [14:59:25]URL: /json_proto [14:59:25]Method is POST - this is cgi request [14:59:25]url: /json_proto [14:59:25]query_string will be loaded in cgi processing [14:59:25]execute_cgi json_proto POST (null) [14:59:25]execute_cgi path=json_proto method=POST [14:59:25]POST find Content-Length [14:59:25]Host: 172.17.53.195:8080 [14:59:25]Content-Length: 766 [14:59:25]Content-Type: application/json [14:59:25] [14:59:25]POST finish read [14:59:25]Found Content-Length = 766 [14:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220291", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:25]execute_script... [14:59: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)220291", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:25]POST & json_proto [14:59:25]process_json_proto [14:59:25]json parsed OK: [14:59:25]protocol is kg_v1.0 [14:59:25]action value=close_receipt [14:59:25]process_action close_receipt [14:59:25]cmd_close_receipt [14:59:25]MH_GetDate [14:59:25]Write to MH i2c: F0 00 00 1C F8 03 [14:59:25]Write i2c OK [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: F0 [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: F0 09 00 [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: F0 09 00 1C F8 00 DA 1A 15 67 21 48 4A 65 94 [14:59:25]GetLastDocTimeStamp 1729436223 [14:59:25]current date 1729436378 [14:59:25]FM_GetShiftState [14:59:25]SAM_PROTO_GetShiftState [14:59:25]wFMCommunicate request_size=4 [14:59:25]MH_SAM_APDU [14:59:25]CAPDU: 80 13 01 00 [14:59:25]Write to MH i2c: E2 08 00 1D F8 80 13 01 00 00 00 00 00 92 [14:59:25]Write i2c OK [14:59:25]MH_I2C_Read... [14:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:25]Read from MH i2c: E2 [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: E2 0E 00 [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: E2 0E 00 1D F8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DA [14:59:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:59:25]wFMCommunicate OK [14:59:25]SAM_PROTO_GetShiftState done [14:59:25]FM_GetShiftState done [14:59:25]opened in 1729384561 [14:59:25]opened+sec_in_day 1729470961 [14:59:25]quantity*price = 100050 [14:59:25]sum+1 = 100052 [14:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 207 20.10.2024 14:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165725 ФПД: 194850570805701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145938&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165725&fm=194850570805701&tin=02508201610067®Number=0000000000091764&sum=100051 [14:59:26]StoreToDocumentArchive [14:59:26]shift 534 fd 165725 [14:59:26]save to /storage/0534/doc_00165725 [14:59:26]save last doc name /storage/0534/doc_00165725 to /storage/kkm_last_doc_name [14:59:26]save OK [14:59:26]Clear old archive folders... [14:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:26]tlvbuf is 01839EE0 [14:59:26]SAM_PROTO_ClearQueue [14:59:26]wFMCommunicate request_size=4 [14:59:26]MH_SAM_APDU [14:59:26]CAPDU: 80 09 00 00 [14:59:26]Write to MH i2c: E2 08 00 2A F8 80 09 00 00 00 00 00 00 94 [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:26]Read from MH i2c: E2 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 03 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 03 00 2A F8 00 90 00 96 [14:59:26]RAPDU: 90 00 [14:59:26]wFMCommunicate OK [14:59:26]SAM_PROTO_ClearQueue done [14:59:26]KKMCreateOFDPacket [14:59:26]OFDProtocolAddRootSTLVToBuf [14:59:26]FM_MakeSignedData [14:59:26]FM_MakeSignedData [14:59:26]SAM_PROTO_SignData [14:59:26]wFMCommunicate request_size=4 [14:59:26]MH_SAM_APDU [14:59:26]CAPDU: 80 0D 01 02 [14:59:26]Write to MH i2c: E2 08 00 2B F8 80 0D 01 02 00 00 00 00 9C [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:26]Read from MH i2c: E2 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 03 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 03 00 2B F8 00 90 00 97 [14:59:26]RAPDU: 90 00 [14:59:26]wFMCommunicate OK [14:59:26]wFMCommunicate request_size=255 [14:59:26]MH_SAM_APDU [14:59: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 DA 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 87 02 00 35 04 06 00 B1 37 2F 0E [14:59:26]Write to MH i2c: E2 02 01 2C F8 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 DA 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 87 02 00 35 04 06 00 B1 37 2F 0E 00 00 F0 [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:27]Read from MH i2c: E2 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 03 00 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 03 00 2C F8 00 90 00 98 [14:59:27]RAPDU: 90 00 [14:59:27]wFMCommunicate OK [14:59:27]wFMCommunicate request_size=7 [14:59:27]MH_SAM_APDU [14:59:27]CAPDU: 80 0D 02 02 02 A1 C5 [14:59:27]Write to MH i2c: E2 0A 00 2D F8 80 0D 02 02 02 00 A1 C5 00 00 09 [14:59:27]Write i2c OK [14:59:27]MH_I2C_Read... [14:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:27]Read from MH i2c: E2 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 03 00 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 03 00 2D F8 00 90 00 99 [14:59:27]RAPDU: 90 00 [14:59:27]wFMCommunicate OK [14:59:27]wFMCommunicate request_size=4 [14:59:27]MH_SAM_APDU [14:59:27]CAPDU: 80 0D 03 02 [14:59:27]Write to MH i2c: E2 08 00 2E F8 80 0D 03 02 00 00 00 00 A1 [14:59:27]Write i2c OK [14:59:27]MH_I2C_Read... [14:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:27]Read from MH i2c: E2 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 0B 00 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 0B 00 2E F8 00 1B 0F 9B 35 CB 21 6F 4E 90 00 45 [14:59:27]RAPDU: 1B 0F 9B 35 CB 21 6F 4E 90 00 [14:59:27]wFMCommunicate OK [14:59:27]SAM_PROTO_SignData done [14:59:27]FM_MakeSignedData done [14:59:27]CreateOFDProtocolMessage [14:59:27]wFMCommunicate request_size=4 [14:59:27]MH_SAM_APDU [14:59:27]CAPDU: 80 11 00 00 [14:59:27]Write to MH i2c: E2 08 00 2F F8 80 11 00 00 00 00 00 00 A1 [14:59:27]Write i2c OK [14:59:27]MH_I2C_Read... [14:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:27]Read from MH i2c: E2 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 17 00 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: E2 17 00 2F F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [14:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:27]wFMCommunicate OK [14:59:27]CreateOFDProtocolMessage done [14:59:27]OFDSenderStorePacket 165725 [14:59:27]StoreOFDPacket docnum=165725 [14:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 81 E1 04 01 45 EC 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 DA 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 87 02 00 35 04 06 00 B1 37 2F 0E A1 C5 1B 0F 9B 35 CB 21 6F 4E [14:59:27]CheckFolder [14:59:27]dirname=/storage/ofd_packets [14:59:27]CheckFolder done [14:59:27]ProducePacketName [14:59:27]name=ofd_packets/00165725 [14:59:27]NVStorageSaveData ofd_packets/00165725 [14:59:27]File name is /storage/ofd_packets/00165725 [14:59:27]Write 298 bytes [14:59:27]NVStorageSaveData done [14:59:27]OFDSenderStorePacket done [14:59:27]KKMCreateOFDPacket done [14:59:27]NVStorageSaveData kkm_last_timestamp [14:59:27]File name is /storage/kkm_last_timestamp [14:59:27]Write 4 bytes [14:59:27]NVStorageSaveData done [14:59:27]ExternCall_PrintAddStr [14:59:27]wPrintStart [14:59:27]Write to MH i2c: 01 00 00 30 F8 28 [14:59:27]Write i2c OK [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: 01 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: 01 07 00 [14:59:27]MH_I2C_Read... [14:59:27]Read from MH i2c: 01 07 00 30 F8 00 00 00 00 00 FF 0F 3D [14:59:27]RasterBufferAndPrint [14:59:27]line Счет N : (1)220291 [14:59:27]line ИНН: 02508201610067 [14:59:27]line Контрольно-Кассовый Чек [14:59:27]line ПРОДАЖА [14:59:27]line ТРК (МРК, ГНК) : 21 [14:59:27]line Товар: 2710194210 [14:59:27]line ДТ-К-5 [14:59:27]line 13.130 * 76.20 [14:59:27]line = 1000.51 [14:59:27]line НДС 12% НСП 1% [14:59:27]line > о реализуемом товаре [14:59:27]line ИТОГО: 1000.51 [14:59:27]line НСП 1% : 8.85 [14:59:27]line НДС 12% : 106.25 [14:59:27]line Наличными: 0.00 [14:59:27]line Безнал.: 1000.51 [14:59:27]line Место: АЗС № 161 "Партнер Нефть" [14:59:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:59:27]line СНО: Общий режим [14:59:27]line Чек 207 20.10.2024 14:59 [14:59:27]line Смена: 534 ФФД: 1.0 [14:59:27]line ЗНМ: 0300000104 [14:59:27]line РНМ: 0000000000091764 [14:59:27]line Версия ККМ: 001 [14:59:27]line Платежная система: Mbank [14:59:27]line ФМ: 0000000000871759 [14:59:27]line ФД: 165725 [14:59:27]line ФПД: 194850570805701 [14:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145938&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165725&fm=194850570805701&tin=02508201610067®Number=0000000000091764&sum=100051 [14:59:27]OFD Sender: Processing packet 165725 [packets to send 48, broken 47] [14:59:27]ProducePacketName [14:59:27]name=ofd_packets/00165725 [14:59:27]OFD Sender: To server: pG, [14:59:27]CommunicateWithHost lk.salyk.kg:30040 [14:59:27]ConnectInit lk.salyk.kg [14:59:27]written 0, free lines is 4095 [14:59:27]Connected sock=10 [14:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 81 E1 04 01 45 EC 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 DA 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 87 02 00 35 04 06 00 B1 37 2F 0E A1 C5 1B 0F 9B 35 CB 21 6F 4E [14:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 96 BD 47 00 E6 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 31 37 35 39 10 04 04 00 5D 87 02 00 F4 03 04 00 4C C1 14 67 B6 04 01 00 00 73 D7 BE EE D4 88 77 42 [14:59:28]CommunicateWithHost err = 0 [14:59:28]CheckOFDResponse [14:59:28]1017 (14) - 77093643461234 [14:59:28]1041 (16) - 0000000000871759 [14:59:28]1040 (4) - 165725 [14:59:28]1012 (4) - 20.10.2024 08:37 [14:59:28]1206 (1) - 0 [14:59:28]OFD Sender: Remove packet 165725 [14:59:28]ProducePacketName [14:59:28]name=ofd_packets/00165725 [14:59:28]NVStorageDeleteData [14:59:28]Write to MH i2c: 01 00 00 59 F8 51 [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: 01 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: 01 07 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: 01 07 00 59 F8 00 00 00 00 00 EA 0C 4E [14:59:28]RasterBufferAndPrint [14:59:28]line [14:59:28]line [14:59:28]line [14:59:28]line [14:59:28]line [14:59:28]written 0, free lines is 3312 [14:59:28]MH_Cut [14:59:28]Write to MH i2c: D1 01 00 60 F8 01 2A [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: D1 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: D1 01 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: D1 01 00 60 F8 00 29 [14:59:28]Write to MH i2c: 01 00 00 61 F8 59 [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]OFD Sender: No OFD packet to send [14:59:28]*** Cut start [14:59:28]*** Partial cut [14:59:28]*** CUTSNS_PIN = 1 [14:59:28]*** CUTSNS_PIN = 0 [14:59:29]*** Brake cut motor [14:59:29]Read from MH i2c: 01 [14:59:29]MH_I2C_Read... [14:59:29]*** Stop cut motor [14:59:29]*** Cut end [14:59:29]Read from MH i2c: 01 07 00 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: 01 07 00 61 F8 00 00 00 00 00 FF 0F 6E [14:59:29]process_action close_receipt done [14:59:29]requested_data is exist [14:59:29]produce_requested_data [14:59:29]requested_item fm.sn is exist - process it [14:59:29]wFMCommunicate request_size=4 [14:59:29]MH_SAM_APDU [14:59:29]CAPDU: 80 11 00 00 [14:59:29]Write to MH i2c: E2 08 00 62 F8 80 11 00 00 00 00 00 00 D4 [14:59:29]Write i2c OK [14:59:29]MH_I2C_Read... [14:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:29]Read from MH i2c: E2 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: E2 17 00 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: E2 17 00 62 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [14:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:29]wFMCommunicate OK [14:59:29]requested_item fd.num is exist - process it [14:59:29]SAM_PROTO_GetFieldsCounters [14:59:29]wFMCommunicate request_size=4 [14:59:29]MH_SAM_APDU [14:59:29]CAPDU: 80 13 00 00 [14:59:29]Write to MH i2c: E2 08 00 63 F8 80 13 00 00 00 00 00 00 D7 [14:59:29]Write i2c OK [14:59:29]MH_I2C_Read... [14:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:29]Read from MH i2c: E2 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: E2 62 00 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: E2 62 00 63 F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 87 02 00 0E 04 04 00 16 02 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 6A [14:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 87 02 00 0E 04 04 00 16 02 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 [14:59:29]wFMCommunicate OK [14:59:29]SAM_PROTO_GetFieldsCounters done [14:59:29]requested_item shift.num is exist - process it [14:59:29]requested_item shift.opened is exist - process it [14:59:29]req_shift_opened [14:59:29]FM_GetShiftState [14:59:29]SAM_PROTO_GetShiftState [14:59:29]wFMCommunicate request_size=4 [14:59:29]MH_SAM_APDU [14:59:29]CAPDU: 80 13 01 00 [14:59:29]Write to MH i2c: E2 08 00 64 F8 80 13 01 00 00 00 00 00 D9 [14:59:29]Write i2c OK [14:59:29]MH_I2C_Read... [14:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:29]Read from MH i2c: E2 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: E2 0E 00 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: E2 0E 00 64 F8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 21 [14:59:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:59:29]wFMCommunicate OK [14:59:29]SAM_PROTO_GetShiftState done [14:59:29]FM_GetShiftState done [14:59:29]req_shift_opened done [14:59:29]requested_item shift.open_date is exist - process it [14:59:29]req_shift_open_date [14:59:29]req_shift_open_date done [14:59:29]produce_requested_data done [14:59:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165725,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:59:29]process_action_free close_receipt [14:59:29]json_value_free [14:59:29]json_value_free done [14:59:29]process_json_proto returns [14:59:29]Send response to host [14:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165725,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:59:29]free response buf [14:59:29]execute_script done [14:59:29]execute_script returns [14:59:29]free content buf [14:59:29]Sock 7.Close socket [14:59:29]Sock 7.Thread stoped [14:59:33]OFD Sender: No OFD packet to send [14:59:35]accept exits with 9 [14:59:35]New connection [14:59:35]New thread 3066776932 created [14:59:35]Thread 3066920292 joined [14:59:35]Waiting for new connection... [14:59:35] Sock 9.Parse request [14:59:35]Sock 9.Check first char [14:59:35]Sock 9.First char is OK [14:59:35]request: POST /json_proto HTTP/1.0 [14:59:35]Method: POST [14:59:35]URL: /json_proto [14:59:35]Method is POST - this is cgi request [14:59:35]url: /json_proto [14:59:35]query_string will be loaded in cgi processing [14:59:35]execute_cgi json_proto POST (null) [14:59:35]execute_cgi path=json_proto method=POST [14:59:35]POST find Content-Length [14:59:35]Host: 172.17.53.195:8080 [14:59:35]Content-Length: 677 [14:59:35]Content-Type: application/json [14:59:35] [14:59:35]POST finish read [14:59:35]Found Content-Length = 677 [14:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:35]execute_script... [14:59: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)220292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:35]POST & json_proto [14:59:35]process_json_proto [14:59:35]json parsed OK: [14:59:35]protocol is kg_v1.0 [14:59:35]action value=close_receipt [14:59:35]process_action close_receipt [14:59:35]cmd_close_receipt [14:59:35]MH_GetDate [14:59:35]Write to MH i2c: F0 00 00 65 F8 4C [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 09 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 09 00 65 F8 00 E4 1A 15 67 21 48 4A 65 E7 [14:59:35]GetLastDocTimeStamp 1729436378 [14:59:35]current date 1729436388 [14:59:35]FM_GetShiftState [14:59:35]SAM_PROTO_GetShiftState [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 13 01 00 [14:59:35]Write to MH i2c: E2 08 00 66 F8 80 13 01 00 00 00 00 00 DB [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0E 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0E 00 66 F8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 23 [14:59:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_GetShiftState done [14:59:35]FM_GetShiftState done [14:59:35]opened in 1729384561 [14:59:35]opened+sec_in_day 1729470961 [14:59:35]quantity*price = 49974 [14:59:35]sum+1 = 49975 [14:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 208 20.10.2024 14:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165726 ФПД: 197676509661892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145948&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165726&fm=197676509661892&tin=02508201610067®Number=0000000000091764&sum=49900 [14:59:36]StoreToDocumentArchive [14:59:36]shift 534 fd 165726 [14:59:36]save to /storage/0534/doc_00165726 [14:59:36]save last doc name /storage/0534/doc_00165726 to /storage/kkm_last_doc_name [14:59:36]save OK [14:59:36]Clear old archive folders... [14:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:36]tlvbuf is 015E9D70 [14:59:36]SAM_PROTO_ClearQueue [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 09 00 00 [14:59:36]Write to MH i2c: E2 08 00 73 F8 80 09 00 00 00 00 00 00 DD [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 73 F8 00 90 00 DF [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_ClearQueue done [14:59:36]KKMCreateOFDPacket [14:59:36]OFDProtocolAddRootSTLVToBuf [14:59:36]FM_MakeSignedData [14:59:36]FM_MakeSignedData [14:59:36]SAM_PROTO_SignData [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 01 02 [14:59:36]Write to MH i2c: E2 08 00 74 F8 80 0D 01 02 00 00 00 00 E5 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 74 F8 00 90 00 E0 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=255 [14:59:36]MH_SAM_APDU [14:59: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 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 E4 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 87 02 00 35 04 06 00 B3 [14:59:36]Write to MH i2c: E2 02 01 75 F8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 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 E4 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 87 02 00 35 04 06 00 B3 00 00 58 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 75 F8 00 90 00 E1 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=10 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 02 02 05 C9 26 23 8A C4 [14:59:36]Write to MH i2c: E2 0D 00 76 F8 80 0D 02 02 05 00 C9 26 23 8A C4 00 00 52 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 76 F8 00 90 00 E2 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 03 02 [14:59:36]Write to MH i2c: E2 08 00 77 F8 80 0D 03 02 00 00 00 00 EA [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0B 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0B 00 77 F8 00 00 70 C5 CC 2F 2B A0 A3 90 00 89 [14:59:37]RAPDU: 00 70 C5 CC 2F 2B A0 A3 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_SignData done [14:59:37]FM_MakeSignedData done [14:59:37]CreateOFDProtocolMessage [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 11 00 00 [14:59:37]Write to MH i2c: E2 08 00 78 F8 80 11 00 00 00 00 00 00 EA [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 78 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [14:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:37]wFMCommunicate OK [14:59:37]CreateOFDProtocolMessage done [14:59:37]OFDSenderStorePacket 165726 [14:59:37]StoreOFDPacket docnum=165726 [14:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2C 01 07 01 12 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 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 E4 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 87 02 00 35 04 06 00 B3 C9 26 23 8A C4 00 70 C5 CC 2F 2B A0 A3 [14:59:37]CheckFolder [14:59:37]dirname=/storage/ofd_packets [14:59:37]CheckFolder done [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00165726 [14:59:37]NVStorageSaveData ofd_packets/00165726 [14:59:37]File name is /storage/ofd_packets/00165726 [14:59:37]Write 301 bytes [14:59:37]NVStorageSaveData done [14:59:37]OFDSenderStorePacket done [14:59:37]KKMCreateOFDPacket done [14:59:37]NVStorageSaveData kkm_last_timestamp [14:59:37]File name is /storage/kkm_last_timestamp [14:59:37]Write 4 bytes [14:59:37]NVStorageSaveData done [14:59:37]ExternCall_PrintAddStr [14:59:37]wPrintStart [14:59:37]Write to MH i2c: 01 00 00 79 F8 71 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 79 F8 00 00 00 00 00 FF 0F 86 [14:59:37]RasterBufferAndPrint [14:59:37]line Счет N : (1)220292 [14:59:37]line ИНН: 02508201610067 [14:59:37]line Контрольно-Кассовый Чек [14:59:37]line ПРОДАЖА [14:59:37]line ТРК (МРК, ГНК) : 43 [14:59:37]line Товар: 2710124130 [14:59:37]line Аи-92-К-5 [14:59:37]line 7.470 * 66.90 [14:59:37]line = 499.74 [14:59:37]line НДС 12% НСП 1% [14:59:37]line > о реализуемом товаре [14:59:37]line ОКРУГЛЕНИЕ: -0.74 [14:59:37]line ИТОГО: 499.00 [14:59:37]line Внесено: 500.00 [14:59:37]line СДАЧА: 1.00 [14:59:37]line НСП 1% : 4.42 [14:59:37]line НДС 12% : 53.07 [14:59:37]line Наличными: 499.00 [14:59:37]line Безнал.: 0.00 [14:59:37]line Место: АЗС № 161 "Партнер Нефть" [14:59:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:59:37]line СНО: Общий режим [14:59:37]line Чек 208 20.10.2024 14:59 [14:59:37]line Смена: 534 ФФД: 1.0 [14:59:37]line ЗНМ: 0300000104 [14:59:37]line РНМ: 0000000000091764 [14:59:37]line Версия ККМ: 001 [14:59:37]line ФМ: 0000000000871759 [14:59:37]line ФД: 165726 [14:59:37]line ФПД: 197676509661892 [14:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145948&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165726&fm=197676509661892&tin=02508201610067®Number=0000000000091764&sum=49900 [14:59:37]written 0, free lines is 4095 [14:59:37]OFD Sender: Processing packet 165726 [packets to send 48, broken 47] [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00165726 [14:59:37]OFD Sender: To server: pG, [14:59:37]CommunicateWithHost lk.salyk.kg:30040 [14:59:37]ConnectInit lk.salyk.kg [14:59:37]Connected sock=10 [14:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2C 01 07 01 12 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 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 E4 1A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 87 02 00 35 04 06 00 B3 C9 26 23 8A C4 00 70 C5 CC 2F 2B A0 A3 [14:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3C FC 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 31 37 35 39 10 04 04 00 5E 87 02 00 F4 03 04 00 55 C1 14 67 B6 04 01 00 00 6A 32 03 25 4C D3 47 9B [14:59:37]CommunicateWithHost err = 0 [14:59:37]CheckOFDResponse [14:59:37]1017 (14) - 77093643461234 [14:59:37]1041 (16) - 0000000000871759 [14:59:37]1040 (4) - 165726 [14:59:37]1012 (4) - 20.10.2024 08:37 [14:59:37]1206 (1) - 0 [14:59:37]OFD Sender: Remove packet 165726 [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00165726 [14:59:37]NVStorageDeleteData [14:59:37]Write to MH i2c: 01 00 00 A4 F8 9C [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 A4 F8 00 00 00 00 00 CB 0C 7A [14:59:37]RasterBufferAndPrint [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]written 0, free lines is 3287 [14:59:37]MH_Cut [14:59:37]Write to MH i2c: D1 01 00 AB F8 01 75 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 01 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 01 00 AB F8 00 74 [14:59:37]Write to MH i2c: 01 00 00 AC F8 A4 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]OFD Sender: No OFD packet to send [14:59:38]*** Cut start [14:59:38]*** Partial cut [14:59:38]*** CUTSNS_PIN = 1 [14:59:38]*** CUTSNS_PIN = 0 [14:59:38]*** Brake cut motor [14:59:38]Read from MH i2c: 01 [14:59:38]MH_I2C_Read... [14:59:38]*** Stop cut motor [14:59:38]*** Cut end [14:59:38]Read from MH i2c: 01 07 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 AC F8 00 00 00 00 00 FF 0F B9 [14:59:38]process_action close_receipt done [14:59:38]requested_data is exist [14:59:38]produce_requested_data [14:59:38]requested_item fm.sn is exist - process it [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 11 00 00 [14:59:38]Write to MH i2c: E2 08 00 AD F8 80 11 00 00 00 00 00 00 1F [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 AD F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [14:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:39]wFMCommunicate OK [14:59:39]requested_item fd.num is exist - process it [14:59:39]SAM_PROTO_GetFieldsCounters [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 13 00 00 [14:59:39]Write to MH i2c: E2 08 00 AE F8 80 13 00 00 00 00 00 00 22 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 62 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 62 00 AE F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 87 02 00 0E 04 04 00 16 02 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 B9 [14:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 87 02 00 0E 04 04 00 16 02 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 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_GetFieldsCounters done [14:59:39]requested_item shift.num is exist - process it [14:59:39]requested_item shift.opened is exist - process it [14:59:39]req_shift_opened [14:59:39]FM_GetShiftState [14:59:39]SAM_PROTO_GetShiftState [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 13 01 00 [14:59:39]Write to MH i2c: E2 08 00 AF F8 80 13 01 00 00 00 00 00 24 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0E 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0E 00 AF F8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6C [14:59:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_GetShiftState done [14:59:39]FM_GetShiftState done [14:59:39]req_shift_opened done [14:59:39]requested_item shift.open_date is exist - process it [14:59:39]req_shift_open_date [14:59:39]req_shift_open_date done [14:59:39]produce_requested_data done [14:59:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165726,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [14:59:39]process_action_free close_receipt [14:59:39]json_value_free [14:59:39]json_value_free done [14:59:39]process_json_proto returns [14:59:39]Send response to host [14:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165726,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [14:59:39]free response buf [14:59:39]execute_script done [14:59:39]execute_script returns [14:59:39]free content buf [14:59:39]Sock 9.Close socket [14:59:39]Sock 9.Thread stoped [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [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:07]accept exits with 7 [15:05:07]New connection [15:05:07]New thread 3066920292 created [15:05:07]Thread 3066776932 joined [15:05:07]Waiting for new connection... [15:05:07] Sock 7.Parse request [15:05:07]Sock 7.Check first char [15:05:07]Sock 7.First char is OK [15:05:07]request: POST /json_proto HTTP/1.0 [15:05:07]Method: POST [15:05:07]URL: /json_proto [15:05:07]Method is POST - this is cgi request [15:05:07]url: /json_proto [15:05:07]query_string will be loaded in cgi processing [15:05:07]execute_cgi json_proto POST (null) [15:05:07]execute_cgi path=json_proto method=POST [15:05:07]POST find Content-Length [15:05:07]Host: 172.17.53.195:8080 [15:05:07]Content-Length: 677 [15:05:07]Content-Type: application/json [15:05:07] [15:05:07]POST finish read [15:05:07]Found Content-Length = 677 [15:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:07]execute_script... [15:05: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)220294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:07]POST & json_proto [15:05:07]process_json_proto [15:05:07]json parsed OK: [15:05:07]protocol is kg_v1.0 [15:05:07]action value=close_receipt [15:05:07]process_action close_receipt [15:05:07]cmd_close_receipt [15:05:07]MH_GetDate [15:05:07]Write to MH i2c: F0 00 00 B0 F8 97 [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: F0 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: F0 09 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: F0 09 00 B0 F8 00 30 1C 15 67 21 48 4A 65 80 [15:05:07]GetLastDocTimeStamp 1729436388 [15:05:07]current date 1729436720 [15:05:07]FM_GetShiftState [15:05:07]SAM_PROTO_GetShiftState [15:05:07]wFMCommunicate request_size=4 [15:05:07]MH_SAM_APDU [15:05:07]CAPDU: 80 13 01 00 [15:05:07]Write to MH i2c: E2 08 00 B1 F8 80 13 01 00 00 00 00 00 26 [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 0E 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 0E 00 B1 F8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6E [15:05:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:05:07]wFMCommunicate OK [15:05:07]SAM_PROTO_GetShiftState done [15:05:07]FM_GetShiftState done [15:05:07]opened in 1729384561 [15:05:07]opened+sec_in_day 1729470961 [15:05:07]quantity*price = 60009 [15:05:07]sum+1 = 60010 [15:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 209 20.10.2024 15:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165727 ФПД: 242947210336068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150520&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165727&fm=242947210336068&tin=02508201610067®Number=0000000000091764&sum=60000 [15:05:08]StoreToDocumentArchive [15:05:08]shift 534 fd 165727 [15:05:08]save to /storage/0534/doc_00165727 [15:05:08]save last doc name /storage/0534/doc_00165727 to /storage/kkm_last_doc_name [15:05:08]save OK [15:05:08]Clear old archive folders... [15:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:08]tlvbuf is 016C79E0 [15:05:08]SAM_PROTO_ClearQueue [15:05:08]wFMCommunicate request_size=4 [15:05:08]MH_SAM_APDU [15:05:08]CAPDU: 80 09 00 00 [15:05:08]Write to MH i2c: E2 08 00 BE F8 80 09 00 00 00 00 00 00 28 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:08]Read from MH i2c: E2 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 03 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 03 00 BE F8 00 90 00 2A [15:05:08]RAPDU: 90 00 [15:05:08]wFMCommunicate OK [15:05:08]SAM_PROTO_ClearQueue done [15:05:08]KKMCreateOFDPacket [15:05:08]OFDProtocolAddRootSTLVToBuf [15:05:08]FM_MakeSignedData [15:05:08]FM_MakeSignedData [15:05:08]SAM_PROTO_SignData [15:05:08]wFMCommunicate request_size=4 [15:05:08]MH_SAM_APDU [15:05:08]CAPDU: 80 0D 01 02 [15:05:08]Write to MH i2c: E2 08 00 BF F8 80 0D 01 02 00 00 00 00 30 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:08]Read from MH i2c: E2 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 03 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 03 00 BF F8 00 90 00 2B [15:05:08]RAPDU: 90 00 [15:05:08]wFMCommunicate OK [15:05:08]wFMCommunicate request_size=255 [15:05:08]MH_SAM_APDU [15:05: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 30 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 87 02 00 35 04 06 00 DC [15:05:08]Write to MH i2c: E2 02 01 C0 F8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 30 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 87 02 00 35 04 06 00 DC 00 00 18 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:08]Read from MH i2c: E2 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 03 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 03 00 C0 F8 00 90 00 2C [15:05:08]RAPDU: 90 00 [15:05:08]wFMCommunicate OK [15:05:08]wFMCommunicate request_size=10 [15:05:08]MH_SAM_APDU [15:05:08]CAPDU: 80 0D 02 02 05 F5 8E 2B D7 44 [15:05:08]Write to MH i2c: E2 0D 00 C1 F8 80 0D 02 02 05 00 F5 8E 2B D7 44 00 00 06 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:08]Read from MH i2c: E2 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 03 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 03 00 C1 F8 00 90 00 2D [15:05:08]RAPDU: 90 00 [15:05:08]wFMCommunicate OK [15:05:08]wFMCommunicate request_size=4 [15:05:08]MH_SAM_APDU [15:05:08]CAPDU: 80 0D 03 02 [15:05:08]Write to MH i2c: E2 08 00 C2 F8 80 0D 03 02 00 00 00 00 35 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 0B 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 0B 00 C2 F8 00 B1 A1 95 AF 2C 9C CB 0C 90 00 6B [15:05:09]RAPDU: B1 A1 95 AF 2C 9C CB 0C 90 00 [15:05:09]wFMCommunicate OK [15:05:09]SAM_PROTO_SignData done [15:05:09]FM_MakeSignedData done [15:05:09]CreateOFDProtocolMessage [15:05:09]wFMCommunicate request_size=4 [15:05:09]MH_SAM_APDU [15:05:09]CAPDU: 80 11 00 00 [15:05:09]Write to MH i2c: E2 08 00 C3 F8 80 11 00 00 00 00 00 00 35 [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 17 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 17 00 C3 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [15:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:05:09]wFMCommunicate OK [15:05:09]CreateOFDProtocolMessage done [15:05:09]OFDSenderStorePacket 165727 [15:05:09]StoreOFDPacket docnum=165727 [15:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7B 2E 07 01 5E 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 30 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 87 02 00 35 04 06 00 DC F5 8E 2B D7 44 B1 A1 95 AF 2C 9C CB 0C [15:05:09]CheckFolder [15:05:09]dirname=/storage/ofd_packets [15:05:09]CheckFolder done [15:05:09]ProducePacketName [15:05:09]name=ofd_packets/00165727 [15:05:09]NVStorageSaveData ofd_packets/00165727 [15:05:09]File name is /storage/ofd_packets/00165727 [15:05:09]Write 301 bytes [15:05:09]NVStorageSaveData done [15:05:09]OFDSenderStorePacket done [15:05:09]KKMCreateOFDPacket done [15:05:09]NVStorageSaveData kkm_last_timestamp [15:05:09]File name is /storage/kkm_last_timestamp [15:05:09]Write 4 bytes [15:05:09]NVStorageSaveData done [15:05:09]ExternCall_PrintAddStr [15:05:09]wPrintStart [15:05:09]Write to MH i2c: 01 00 00 C4 F8 BC [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: 01 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: 01 07 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: 01 07 00 C4 F8 00 00 00 00 00 FF 0F D1 [15:05:09]RasterBufferAndPrint [15:05:09]line Счет N : (1)220294 [15:05:09]line ИНН: 02508201610067 [15:05:09]line Контрольно-Кассовый Чек [15:05:09]line ПРОДАЖА [15:05:09]line ТРК (МРК, ГНК) : 43 [15:05:09]line Товар: 2710124130 [15:05:09]line Аи-92-К-5 [15:05:09]line 8.970 * 66.90 [15:05:09]line = 600.09 [15:05:09]line НДС 12% НСП 1% [15:05:09]line > о реализуемом товаре [15:05:09]line ОКРУГЛЕНИЕ: -0.09 [15:05:09]line ИТОГО: 600.00 [15:05:09]line Внесено: 600.00 [15:05:09]line СДАЧА: 0.00 [15:05:09]line НСП 1% : 5.31 [15:05:09]line НДС 12% : 63.73 [15:05:09]line Наличными: 600.00 [15:05:09]line Безнал.: 0.00 [15:05:09]line Место: АЗС № 161 "Партнер Нефть" [15:05:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:05:09]line СНО: Общий режим [15:05:09]line Чек 209 20.10.2024 15:05 [15:05:09]line Смена: 534 ФФД: 1.0 [15:05:09]line ЗНМ: 0300000104 [15:05:09]line РНМ: 0000000000091764 [15:05:09]line Версия ККМ: 001 [15:05:09]line ФМ: 0000000000871759 [15:05:09]line ФД: 165727 [15:05:09]line ФПД: 242947210336068 [15:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150520&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165727&fm=242947210336068&tin=02508201610067®Number=0000000000091764&sum=60000 [15:05:09]OFD Sender: Processing packet 165727 [packets to send 48, broken 47] [15:05:09]ProducePacketName [15:05:09]name=ofd_packets/00165727 [15:05:09]OFD Sender: To server: pG, [15:05:09]CommunicateWithHost lk.salyk.kg:30040 [15:05:09]ConnectInit lk.salyk.kg [15:05:09]written 0, free lines is 4095 [15:05:09]Connected sock=10 [15:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7B 2E 07 01 5E 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 30 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 87 02 00 35 04 06 00 DC F5 8E 2B D7 44 B1 A1 95 AF 2C 9C CB 0C [15:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 61 16 47 00 20 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 31 37 35 39 10 04 04 00 5F 87 02 00 F4 03 04 00 A1 C2 14 67 B6 04 01 00 00 C1 C7 54 9E 37 57 DD 6D [15:05:09]CommunicateWithHost err = 0 [15:05:09]CheckOFDResponse [15:05:09]1017 (14) - 77093643461234 [15:05:09]1041 (16) - 0000000000871759 [15:05:09]1040 (4) - 165727 [15:05:09]1012 (4) - 20.10.2024 08:43 [15:05:09]1206 (1) - 0 [15:05:09]OFD Sender: Remove packet 165727 [15:05:09]ProducePacketName [15:05:09]name=ofd_packets/00165727 [15:05:09]NVStorageDeleteData [15:05:09]Write to MH i2c: 01 00 00 EF F8 E7 [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: 01 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: 01 07 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: 01 07 00 EF F8 00 00 00 00 00 E1 0C DB [15:05:09]RasterBufferAndPrint [15:05:09]line [15:05:09]line [15:05:09]line [15:05:09]line [15:05:09]line [15:05:09]written 0, free lines is 3305 [15:05:09]MH_Cut [15:05:09]Write to MH i2c: D1 01 00 F6 F8 01 C0 [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: D1 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: D1 01 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: D1 01 00 F6 F8 00 BF [15:05:09]Write to MH i2c: 01 00 00 F7 F8 EF [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:10]OFD Sender: No OFD packet to send [15:05:10]*** Cut start [15:05:10]*** Partial cut [15:05:10]*** CUTSNS_PIN = 1 [15:05:10]*** CUTSNS_PIN = 0 [15:05:10]*** Brake cut motor [15:05:11]Read from MH i2c: 01 [15:05:11]MH_I2C_Read... [15:05:11]*** Stop cut motor [15:05:11]*** Cut end [15:05:11]Read from MH i2c: 01 07 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: 01 07 00 F7 F8 00 00 00 00 00 FF 0F 04 [15:05:11]process_action close_receipt done [15:05:11]requested_data is exist [15:05:11]produce_requested_data [15:05:11]requested_item fm.sn is exist - process it [15:05:11]wFMCommunicate request_size=4 [15:05:11]MH_SAM_APDU [15:05:11]CAPDU: 80 11 00 00 [15:05:11]Write to MH i2c: E2 08 00 F8 F8 80 11 00 00 00 00 00 00 6A [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:11]Read from MH i2c: E2 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 17 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 17 00 F8 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [15:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:05:11]wFMCommunicate OK [15:05:11]requested_item fd.num is exist - process it [15:05:11]SAM_PROTO_GetFieldsCounters [15:05:11]wFMCommunicate request_size=4 [15:05:11]MH_SAM_APDU [15:05:11]CAPDU: 80 13 00 00 [15:05:11]Write to MH i2c: E2 08 00 F9 F8 80 13 00 00 00 00 00 00 6D [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:11]Read from MH i2c: E2 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 62 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 62 00 F9 F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 87 02 00 0E 04 04 00 16 02 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 08 [15:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 87 02 00 0E 04 04 00 16 02 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:05:11]wFMCommunicate OK [15:05:11]SAM_PROTO_GetFieldsCounters done [15:05:11]requested_item shift.num is exist - process it [15:05:11]requested_item shift.opened is exist - process it [15:05:11]req_shift_opened [15:05:11]FM_GetShiftState [15:05:11]SAM_PROTO_GetShiftState [15:05:11]wFMCommunicate request_size=4 [15:05:11]MH_SAM_APDU [15:05:11]CAPDU: 80 13 01 00 [15:05:11]Write to MH i2c: E2 08 00 FA F8 80 13 01 00 00 00 00 00 6F [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:11]Read from MH i2c: E2 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 0E 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 0E 00 FA F8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B7 [15:05:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:05:11]wFMCommunicate OK [15:05:11]SAM_PROTO_GetShiftState done [15:05:11]FM_GetShiftState done [15:05:11]req_shift_opened done [15:05:11]requested_item shift.open_date is exist - process it [15:05:11]req_shift_open_date [15:05:11]req_shift_open_date done [15:05:11]produce_requested_data done [15:05:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165727,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:05:11]process_action_free close_receipt [15:05:11]json_value_free [15:05:11]json_value_free done [15:05:11]process_json_proto returns [15:05:11]Send response to host [15:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165727,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:05:11]free response buf [15:05:11]execute_script done [15:05:11]execute_script returns [15:05:11]free content buf [15:05:11]Sock 7.Close socket [15:05:11]Sock 7.Thread stoped [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:20]accept exits with 9 [15:05:20]New connection [15:05:20]New thread 3066776932 created [15:05:20]Thread 3066920292 joined [15:05:20]Waiting for new connection... [15:05:20] Sock 9.Parse request [15:05:20]Sock 9.Check first char [15:05:20]Sock 9.First char is OK [15:05:20]request: POST /json_proto HTTP/1.0 [15:05:20]Method: POST [15:05:20]URL: /json_proto [15:05:20]Method is POST - this is cgi request [15:05:20]url: /json_proto [15:05:20]query_string will be loaded in cgi processing [15:05:20]execute_cgi json_proto POST (null) [15:05:20]execute_cgi path=json_proto method=POST [15:05:20]POST find Content-Length [15:05:20]Host: 172.17.53.195:8080 [15:05:20]Content-Length: 790 [15:05:20]Content-Type: application/json [15:05:20] [15:05:20]POST finish read [15:05:20]Found Content-Length = 790 [15:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220293", "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" : 0.00, "quantity" : 170.610, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:20]execute_script... [15:05: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)220293", "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" : 0.00, "quantity" : 170.610, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:20]POST & json_proto [15:05:20]process_json_proto [15:05:20]json parsed OK: [15:05:20]protocol is kg_v1.0 [15:05:20]action value=close_receipt [15:05:20]process_action close_receipt [15:05:20]cmd_close_receipt [15:05:20]MH_GetDate [15:05:20]Write to MH i2c: F0 00 00 FB F8 E2 [15:05:20]Write i2c OK [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: F0 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: F0 09 00 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: F0 09 00 FB F8 00 3D 1C 15 67 21 48 4A 65 D8 [15:05:20]GetLastDocTimeStamp 1729436720 [15:05:20]current date 1729436733 [15:05:20]FM_GetShiftState [15:05:20]SAM_PROTO_GetShiftState [15:05:20]wFMCommunicate request_size=4 [15:05:20]MH_SAM_APDU [15:05:20]CAPDU: 80 13 01 00 [15:05:20]Write to MH i2c: E2 08 00 FC F8 80 13 01 00 00 00 00 00 71 [15:05:20]Write i2c OK [15:05:20]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 FC F8 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B9 [15:05:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_GetShiftState done [15:05:21]FM_GetShiftState done [15:05:21]opened in 1729384561 [15:05:21]opened+sec_in_day 1729470961 [15:05:21]quantity*price = 0 [15:05:21]sum+1 = 1 [15:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 210 20.10.2024 15:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165728 ФПД: 209242933734775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165728&fm=209242933734775&tin=02508201610067®Number=0000000000091764&sum=0 [15:05:22]StoreToDocumentArchive [15:05:22]shift 534 fd 165728 [15:05:22]save to /storage/0534/doc_00165728 [15:05:22]save last doc name /storage/0534/doc_00165728 to /storage/kkm_last_doc_name [15:05:22]save OK [15:05:22]Clear old archive folders... [15:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:22]tlvbuf is 01469F50 [15:05:22]SAM_PROTO_ClearQueue [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 09 00 00 [15:05:22]Write to MH i2c: E2 08 00 09 F9 80 09 00 00 00 00 00 00 74 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 09 F9 00 90 00 76 [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]SAM_PROTO_ClearQueue done [15:05:22]KKMCreateOFDPacket [15:05:22]OFDProtocolAddRootSTLVToBuf [15:05:22]FM_MakeSignedData [15:05:22]FM_MakeSignedData [15:05:22]SAM_PROTO_SignData [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 01 02 [15:05:22]Write to MH i2c: E2 08 00 0A F9 80 0D 01 02 00 00 00 00 7C [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 0A F9 00 90 00 77 [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=255 [15:05:22]MH_SAM_APDU [15:05: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 72 9A 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 3D 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 87 02 00 35 04 06 00 BE 4E 2A BC [15:05:22]Write to MH i2c: E2 02 01 0B F9 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 9A 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 3D 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 87 02 00 35 04 06 00 BE 4E 2A BC 00 00 88 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 0B F9 00 90 00 78 [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=7 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 02 02 02 AD 77 [15:05:22]Write to MH i2c: E2 0A 00 0C F9 80 0D 02 02 02 00 AD 77 00 00 A7 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 0C F9 00 90 00 79 [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 03 02 [15:05:22]Write to MH i2c: E2 08 00 0D F9 80 0D 03 02 00 00 00 00 81 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 0B 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 0B 00 0D F9 00 11 90 CB 78 5C 9E 3A F6 90 00 90 [15:05:22]RAPDU: 11 90 CB 78 5C 9E 3A F6 90 00 [15:05:22]wFMCommunicate OK [15:05:22]SAM_PROTO_SignData done [15:05:22]FM_MakeSignedData done [15:05:22]CreateOFDProtocolMessage [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 11 00 00 [15:05:22]Write to MH i2c: E2 08 00 0E F9 80 11 00 00 00 00 00 00 81 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 17 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 17 00 0E F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [15:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:05:22]wFMCommunicate OK [15:05:22]CreateOFDProtocolMessage done [15:05:22]OFDSenderStorePacket 165728 [15:05:22]StoreOFDPacket docnum=165728 [15:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F7 FD 04 01 66 3F 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 9A 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 3D 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 87 02 00 35 04 06 00 BE 4E 2A BC AD 77 11 90 CB 78 5C 9E 3A F6 [15:05:22]CheckFolder [15:05:22]dirname=/storage/ofd_packets [15:05:22]CheckFolder done [15:05:22]ProducePacketName [15:05:22]name=ofd_packets/00165728 [15:05:22]NVStorageSaveData ofd_packets/00165728 [15:05:22]File name is /storage/ofd_packets/00165728 [15:05:22]Write 298 bytes [15:05:22]NVStorageSaveData done [15:05:22]OFDSenderStorePacket done [15:05:22]KKMCreateOFDPacket done [15:05:22]NVStorageSaveData kkm_last_timestamp [15:05:22]File name is /storage/kkm_last_timestamp [15:05:22]Write 4 bytes [15:05:22]NVStorageSaveData done [15:05:22]ExternCall_PrintAddStr [15:05:22]wPrintStart [15:05:22]Write to MH i2c: 01 00 00 0F F9 08 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 07 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 07 00 0F F9 00 00 00 00 00 FF 0F 1D [15:05:22]RasterBufferAndPrint [15:05:22]line Счет N : (1)220293 [15:05:22]line ИНН: 02508201610067 [15:05:22]line Контрольно-Кассовый Чек [15:05:22]line ПРОДАЖА [15:05:22]line ТРК (МРК, ГНК) : 21 [15:05:22]line Товар: 2710194210 [15:05:22]line ДТ-К-5 [15:05:22]line 170.610 * 0.00 [15:05:22]line = 0.00 [15:05:22]line НДС 12% НСП 1% [15:05:22]line > о реализуемом товаре [15:05:22]line ИТОГО: 0.00 [15:05:22]line НСП 1% : 0.00 [15:05:22]line НДС 12% : 0.00 [15:05:22]line Наличными: 0.00 [15:05:22]line Безнал.: 0.00 [15:05:22]line Место: АЗС № 161 "Партнер Нефть" [15:05:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:05:22]line СНО: Общий режим [15:05:22]line Чек 210 20.10.2024 15:05 [15:05:22]line Смена: 534 ФФД: 1.0 [15:05:22]line ЗНМ: 0300000104 [15:05:22]line РНМ: 0000000000091764 [15:05:22]line Версия ККМ: 001 [15:05:22]line Талоны: Топливная Карта [15:05:22]line 38866 [15:05:22]line ФМ: 0000000000871759 [15:05:22]line ФД: 165728 [15:05:22]line ФПД: 209242933734775 [15:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165728&fm=209242933734775&tin=02508201610067®Number=0000000000091764&sum=0 [15:05:23]OFD Sender: Processing packet 165728 [packets to send 48, broken 47] [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00165728 [15:05:23]OFD Sender: To server: pG, [15:05:23]CommunicateWithHost lk.salyk.kg:30040 [15:05:23]ConnectInit lk.salyk.kg [15:05:23]written 0, free lines is 4095 [15:05:23]Connected sock=10 [15:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F7 FD 04 01 66 3F 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 9A 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 3D 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 87 02 00 35 04 06 00 BE 4E 2A BC AD 77 11 90 CB 78 5C 9E 3A F6 [15:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1E E2 47 00 EF 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 31 37 35 39 10 04 04 00 60 87 02 00 F4 03 04 00 AF C2 14 67 B6 04 01 00 00 38 A6 30 24 6C 55 5A 42 [15:05:23]CommunicateWithHost err = 0 [15:05:23]CheckOFDResponse [15:05:23]1017 (14) - 77093643461234 [15:05:23]1041 (16) - 0000000000871759 [15:05:23]1040 (4) - 165728 [15:05:23]1012 (4) - 20.10.2024 08:43 [15:05:23]1206 (1) - 0 [15:05:23]OFD Sender: Remove packet 165728 [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00165728 [15:05:23]NVStorageDeleteData [15:05:23]Write to MH i2c: 01 00 00 39 F9 32 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 39 F9 00 00 00 00 00 02 0D 48 [15:05:23]RasterBufferAndPrint [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]written 0, free lines is 3336 [15:05:23]MH_Cut [15:05:23]Write to MH i2c: D1 01 00 40 F9 01 0B [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 01 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 01 00 40 F9 00 0A [15:05:23]Write to MH i2c: 01 00 00 41 F9 3A [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]OFD Sender: No OFD packet to send [15:05:24]*** Cut start [15:05:24]*** Partial cut [15:05:24]*** CUTSNS_PIN = 1 [15:05:24]*** CUTSNS_PIN = 0 [15:05:24]*** Brake cut motor [15:05:24]Read from MH i2c: 01 [15:05:24]MH_I2C_Read... [15:05:24]*** Stop cut motor [15:05:24]*** Cut end [15:05:24]Read from MH i2c: 01 07 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: 01 07 00 41 F9 00 00 00 00 00 FF 0F 4F [15:05:24]process_action close_receipt done [15:05:24]requested_data is exist [15:05:24]produce_requested_data [15:05:24]requested_item fm.sn is exist - process it [15:05:24]wFMCommunicate request_size=4 [15:05:24]MH_SAM_APDU [15:05:24]CAPDU: 80 11 00 00 [15:05:24]Write to MH i2c: E2 08 00 42 F9 80 11 00 00 00 00 00 00 B5 [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:24]Read from MH i2c: E2 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 17 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 17 00 42 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [15:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:05:24]wFMCommunicate OK [15:05:24]requested_item fd.num is exist - process it [15:05:24]SAM_PROTO_GetFieldsCounters [15:05:24]wFMCommunicate request_size=4 [15:05:24]MH_SAM_APDU [15:05:24]CAPDU: 80 13 00 00 [15:05:24]Write to MH i2c: E2 08 00 43 F9 80 13 00 00 00 00 00 00 B8 [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:25]Read from MH i2c: E2 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 62 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 62 00 43 F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 87 02 00 0E 04 04 00 16 02 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 57 [15:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 87 02 00 0E 04 04 00 16 02 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:05:25]wFMCommunicate OK [15:05:25]SAM_PROTO_GetFieldsCounters done [15:05:25]requested_item shift.num is exist - process it [15:05:25]requested_item shift.opened is exist - process it [15:05:25]req_shift_opened [15:05:25]FM_GetShiftState [15:05:25]SAM_PROTO_GetShiftState [15:05:25]wFMCommunicate request_size=4 [15:05:25]MH_SAM_APDU [15:05:25]CAPDU: 80 13 01 00 [15:05:25]Write to MH i2c: E2 08 00 44 F9 80 13 01 00 00 00 00 00 BA [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:25]Read from MH i2c: E2 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 0E 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 0E 00 44 F9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 02 [15:05:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:05:25]wFMCommunicate OK [15:05:25]SAM_PROTO_GetShiftState done [15:05:25]FM_GetShiftState done [15:05:25]req_shift_opened done [15:05:25]requested_item shift.open_date is exist - process it [15:05:25]req_shift_open_date [15:05:25]req_shift_open_date done [15:05:25]produce_requested_data done [15:05:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165728,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:05:25]process_action_free close_receipt [15:05:25]json_value_free [15:05:25]json_value_free done [15:05:25]process_json_proto returns [15:05:25]Send response to host [15:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165728,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:05:25]free response buf [15:05:25]execute_script done [15:05:25]execute_script returns [15:05:25]free content buf [15:05:25]Sock 9.Close socket [15:05:25]Sock 9.Thread stoped [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]accept exits with 7 [15:08:08]New connection [15:08:08]New thread 3066920292 created [15:08:08]Thread 3066776932 joined [15:08:08]Waiting for new connection... [15:08:08] Sock 7.Parse request [15:08:08]Sock 7.Check first char [15:08:08]Sock 7.First char is OK [15:08:08]request: POST /json_proto HTTP/1.0 [15:08:08]Method: POST [15:08:08]URL: /json_proto [15:08:08]Method is POST - this is cgi request [15:08:08]url: /json_proto [15:08:08]query_string will be loaded in cgi processing [15:08:08]execute_cgi json_proto POST (null) [15:08:08]execute_cgi path=json_proto method=POST [15:08:08]POST find Content-Length [15:08:08]Host: 172.17.53.195:8080 [15:08:08]Content-Length: 679 [15:08:08]Content-Type: application/json [15:08:08] [15:08:08]POST finish read [15:08:08]Found Content-Length = 679 [15:08:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [15:08:08]execute_script... [15:08: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)220295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [15:08:08]POST & json_proto [15:08:08]process_json_proto [15:08:08]json parsed OK: [15:08:08]protocol is kg_v1.0 [15:08:08]action value=close_receipt [15:08:08]process_action close_receipt [15:08:08]cmd_close_receipt [15:08:08]MH_GetDate [15:08:08]Write to MH i2c: F0 00 00 45 F9 2D [15:08:08]Write i2c OK [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: F0 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: F0 09 00 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: F0 09 00 45 F9 00 E5 1C 15 67 21 48 4A 65 CB [15:08:08]GetLastDocTimeStamp 1729436733 [15:08:08]current date 1729436901 [15:08:08]FM_GetShiftState [15:08:08]SAM_PROTO_GetShiftState [15:08:08]wFMCommunicate request_size=4 [15:08:08]MH_SAM_APDU [15:08:08]CAPDU: 80 13 01 00 [15:08:08]Write to MH i2c: E2 08 00 46 F9 80 13 01 00 00 00 00 00 BC [15:08:08]Write i2c OK [15:08:08]MH_I2C_Read... [15:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:08]Read from MH i2c: E2 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 0E 00 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 0E 00 46 F9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 04 [15:08:08]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:08:08]wFMCommunicate OK [15:08:08]SAM_PROTO_GetShiftState done [15:08:08]FM_GetShiftState done [15:08:08]opened in 1729384561 [15:08:08]opened+sec_in_day 1729470961 [15:08:08]quantity*price = 150037 [15:08:08]sum+1 = 150039 [15:08:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 211 20.10.2024 15:08 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165729 ФПД: 127065427975813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150821&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165729&fm=127065427975813&tin=02508201610067®Number=0000000000091764&sum=150000 [15:08:09]StoreToDocumentArchive [15:08:09]shift 534 fd 165729 [15:08:09]save to /storage/0534/doc_00165729 [15:08:09]save last doc name /storage/0534/doc_00165729 to /storage/kkm_last_doc_name [15:08:09]save OK [15:08:09]Clear old archive folders... [15:08:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:08:09]tlvbuf is 01839990 [15:08:09]SAM_PROTO_ClearQueue [15:08:09]wFMCommunicate request_size=4 [15:08:09]MH_SAM_APDU [15:08:09]CAPDU: 80 09 00 00 [15:08:09]Write to MH i2c: E2 08 00 53 F9 80 09 00 00 00 00 00 00 BE [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 53 F9 00 90 00 C0 [15:08:10]RAPDU: 90 00 [15:08:10]wFMCommunicate OK [15:08:10]SAM_PROTO_ClearQueue done [15:08:10]KKMCreateOFDPacket [15:08:10]OFDProtocolAddRootSTLVToBuf [15:08:10]FM_MakeSignedData [15:08:10]FM_MakeSignedData [15:08:10]SAM_PROTO_SignData [15:08:10]wFMCommunicate request_size=4 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 0D 01 02 [15:08:10]Write to MH i2c: E2 08 00 54 F9 80 0D 01 02 00 00 00 00 C6 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 54 F9 00 90 00 C1 [15:08:10]RAPDU: 90 00 [15:08:10]wFMCommunicate OK [15:08:10]wFMCommunicate request_size=255 [15:08:10]MH_SAM_APDU [15:08: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 D3 00 00 00 F4 03 04 00 E5 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 87 02 00 35 04 06 00 73 90 B9 B2 [15:08:10]Write to MH i2c: E2 02 01 55 F9 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 D3 00 00 00 F4 03 04 00 E5 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 87 02 00 35 04 06 00 73 90 B9 B2 00 00 89 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 55 F9 00 90 00 C2 [15:08:10]RAPDU: 90 00 [15:08:10]wFMCommunicate OK [15:08:10]wFMCommunicate request_size=7 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 0D 02 02 02 9E 85 [15:08:10]Write to MH i2c: E2 0A 00 56 F9 80 0D 02 02 02 00 9E 85 00 00 F0 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 56 F9 00 90 00 C3 [15:08:10]RAPDU: 90 00 [15:08:10]wFMCommunicate OK [15:08:10]wFMCommunicate request_size=4 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 0D 03 02 [15:08:10]Write to MH i2c: E2 08 00 57 F9 80 0D 03 02 00 00 00 00 CB [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 0B 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 0B 00 57 F9 00 9F 45 BA E7 7D 6F 3B 1A 90 00 92 [15:08:10]RAPDU: 9F 45 BA E7 7D 6F 3B 1A 90 00 [15:08:10]wFMCommunicate OK [15:08:10]SAM_PROTO_SignData done [15:08:10]FM_MakeSignedData done [15:08:10]CreateOFDProtocolMessage [15:08:10]wFMCommunicate request_size=4 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 11 00 00 [15:08:10]Write to MH i2c: E2 08 00 58 F9 80 11 00 00 00 00 00 00 CB [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 17 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 17 00 58 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [15:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:08:10]wFMCommunicate OK [15:08:10]CreateOFDProtocolMessage done [15:08:10]OFDSenderStorePacket 165729 [15:08:10]StoreOFDPacket docnum=165729 [15:08:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A1 80 04 01 7E B8 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 D3 00 00 00 F4 03 04 00 E5 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 87 02 00 35 04 06 00 73 90 B9 B2 9E 85 9F 45 BA E7 7D 6F 3B 1A [15:08:10]CheckFolder [15:08:10]dirname=/storage/ofd_packets [15:08:10]CheckFolder done [15:08:10]ProducePacketName [15:08:10]name=ofd_packets/00165729 [15:08:10]NVStorageSaveData ofd_packets/00165729 [15:08:10]File name is /storage/ofd_packets/00165729 [15:08:10]Write 298 bytes [15:08:10]NVStorageSaveData done [15:08:10]OFDSenderStorePacket done [15:08:10]KKMCreateOFDPacket done [15:08:10]NVStorageSaveData kkm_last_timestamp [15:08:10]File name is /storage/kkm_last_timestamp [15:08:10]Write 4 bytes [15:08:10]NVStorageSaveData done [15:08:10]ExternCall_PrintAddStr [15:08:10]wPrintStart [15:08:10]Write to MH i2c: 01 00 00 59 F9 52 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: 01 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: 01 07 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: 01 07 00 59 F9 00 00 00 00 00 FF 0F 67 [15:08:10]RasterBufferAndPrint [15:08:10]line Счет N : (1)220295 [15:08:10]line ИНН: 02508201610067 [15:08:10]line Контрольно-Кассовый Чек [15:08:10]line ПРОДАЖА [15:08:10]line ТРК (МРК, ГНК) : 41 [15:08:10]line Товар: 2710194210 [15:08:10]line ДТ-К-5 [15:08:10]line 19.690 * 76.20 [15:08:10]line = 1500.38 [15:08:10]line НДС 12% НСП 1% [15:08:10]line > о реализуемом товаре [15:08:10]line ОКРУГЛЕНИЕ: -0.38 [15:08:10]line ИТОГО: 1500.00 [15:08:10]line Внесено: 1500.00 [15:08:10]line СДАЧА: 0.00 [15:08:10]line НСП 1% : 13.28 [15:08:10]line НДС 12% : 159.33 [15:08:10]line Наличными: 1500.00 [15:08:10]line Безнал.: 0.00 [15:08:10]line Место: АЗС № 161 "Партнер Нефть" [15:08:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:08:10]line СНО: Общий режим [15:08:10]line Чек 211 20.10.2024 15:08 [15:08:10]line Смена: 534 ФФД: 1.0 [15:08:10]line ЗНМ: 0300000104 [15:08:10]line РНМ: 0000000000091764 [15:08:10]line Версия ККМ: 001 [15:08:10]line ФМ: 0000000000871759 [15:08:10]line ФД: 165729 [15:08:10]line ФПД: 127065427975813 [15:08:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150821&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165729&fm=127065427975813&tin=02508201610067®Number=0000000000091764&sum=150000 [15:08:10]OFD Sender: Processing packet 165729 [packets to send 48, broken 47] [15:08:10]ProducePacketName [15:08:10]name=ofd_packets/00165729 [15:08:10]OFD Sender: To server: pG, [15:08:10]CommunicateWithHost lk.salyk.kg:30040 [15:08:10]ConnectInit lk.salyk.kg [15:08:10]written 0, free lines is 4095 [15:08:11]Write to MH i2c: 01 00 00 84 F9 7D [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 84 F9 00 00 00 00 00 CB 0C 5B [15:08:11]RasterBufferAndPrint [15:08:11]line [15:08:11]line [15:08:11]line [15:08:11]line [15:08:11]line [15:08:11]written 0, free lines is 3279 [15:08:11]MH_Cut [15:08:11]Write to MH i2c: D1 01 00 8B F9 01 56 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: D1 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: D1 01 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: D1 01 00 8B F9 00 55 [15:08:11]Write to MH i2c: 01 00 00 8C F9 85 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:12]*** Cut start [15:08:12]*** Partial cut [15:08:12]*** CUTSNS_PIN = 1 [15:08:12]*** CUTSNS_PIN = 0 [15:08:12]*** Brake cut motor [15:08:12]Read from MH i2c: 01 [15:08:12]MH_I2C_Read... [15:08:12]*** Stop cut motor [15:08:12]*** Cut end [15:08:12]Read from MH i2c: 01 07 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: 01 07 00 8C F9 00 00 00 00 00 FF 0F 9A [15:08:12]process_action close_receipt done [15:08:12]requested_data is exist [15:08:12]produce_requested_data [15:08:12]requested_item fm.sn is exist - process it [15:08:12]wFMCommunicate request_size=4 [15:08:12]MH_SAM_APDU [15:08:12]CAPDU: 80 11 00 00 [15:08:12]Write to MH i2c: E2 08 00 8D F9 80 11 00 00 00 00 00 00 00 [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:12]Read from MH i2c: E2 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 17 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 17 00 8D F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [15:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:08:12]wFMCommunicate OK [15:08:12]requested_item fd.num is exist - process it [15:08:12]SAM_PROTO_GetFieldsCounters [15:08:12]wFMCommunicate request_size=4 [15:08:12]MH_SAM_APDU [15:08:12]CAPDU: 80 13 00 00 [15:08:12]Write to MH i2c: E2 08 00 8E F9 80 13 00 00 00 00 00 00 03 [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:12]Read from MH i2c: E2 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 62 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 62 00 8E F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 87 02 00 0E 04 04 00 16 02 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 A6 [15:08:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 87 02 00 0E 04 04 00 16 02 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:08:12]wFMCommunicate OK [15:08:12]SAM_PROTO_GetFieldsCounters done [15:08:12]requested_item shift.num is exist - process it [15:08:12]requested_item shift.opened is exist - process it [15:08:12]req_shift_opened [15:08:12]FM_GetShiftState [15:08:12]SAM_PROTO_GetShiftState [15:08:12]wFMCommunicate request_size=4 [15:08:12]MH_SAM_APDU [15:08:12]CAPDU: 80 13 01 00 [15:08:12]Write to MH i2c: E2 08 00 8F F9 80 13 01 00 00 00 00 00 05 [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:12]Read from MH i2c: E2 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 0E 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 0E 00 8F F9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4D [15:08:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:08:12]wFMCommunicate OK [15:08:12]SAM_PROTO_GetShiftState done [15:08:12]FM_GetShiftState done [15:08:12]req_shift_opened done [15:08:12]requested_item shift.open_date is exist - process it [15:08:12]req_shift_open_date [15:08:12]req_shift_open_date done [15:08:12]produce_requested_data done [15:08:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165729,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:08:12]process_action_free close_receipt [15:08:12]json_value_free [15:08:12]json_value_free done [15:08:12]process_json_proto returns [15:08:12]Send response to host [15:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165729,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:08:12]free response buf [15:08:12]execute_script done [15:08:12]execute_script returns [15:08:12]free content buf [15:08:12]Sock 7.Close socket [15:08:12]Sock 7.Thread stoped [15:10:07]accept exits with 9 [15:10:07]New connection [15:10:07]New thread 3066776932 created [15:10:07]Thread 3066920292 joined [15:10:07]Waiting for new connection... [15:10:07] Sock 9.Parse request [15:10:07]Sock 9.Check first char [15:10:07]Sock 9.First char is OK [15:10:07]request: POST /json_proto HTTP/1.0 [15:10:07]Method: POST [15:10:07]URL: /json_proto [15:10:07]Method is POST - this is cgi request [15:10:07]url: /json_proto [15:10:07]query_string will be loaded in cgi processing [15:10:07]execute_cgi json_proto POST (null) [15:10:07]execute_cgi path=json_proto method=POST [15:10:07]POST find Content-Length [15:10:07]Host: 172.17.53.195:8080 [15:10:07]Content-Length: 674 [15:10:07]Content-Type: application/json [15:10:07] [15:10:07]POST finish read [15:10:07]Found Content-Length = 674 [15:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220296", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:10:07]execute_script... [15:10: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)220296", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:10:07]POST & json_proto [15:10:07]process_json_proto [15:10:07]json parsed OK: [15:10:07]protocol is kg_v1.0 [15:10:07]action value=close_receipt [15:10:07]process_action close_receipt [15:10:07]cmd_close_receipt [15:10:07]MH_GetDate [15:10:07]Write to MH i2c: F0 00 00 90 F9 78 [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: F0 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: F0 09 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: F0 09 00 90 F9 00 5C 1D 15 67 21 48 4A 65 8E [15:10:07]GetLastDocTimeStamp 1729436901 [15:10:07]current date 1729437020 [15:10:07]FM_GetShiftState [15:10:07]SAM_PROTO_GetShiftState [15:10:07]wFMCommunicate request_size=4 [15:10:07]MH_SAM_APDU [15:10:07]CAPDU: 80 13 01 00 [15:10:07]Write to MH i2c: E2 08 00 91 F9 80 13 01 00 00 00 00 00 07 [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:07]Read from MH i2c: E2 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 0E 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 0E 00 91 F9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4F [15:10:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:10:07]wFMCommunicate OK [15:10:07]SAM_PROTO_GetShiftState done [15:10:07]FM_GetShiftState done [15:10:07]opened in 1729384561 [15:10:07]opened+sec_in_day 1729470961 [15:10:07]quantity*price = 50063 [15:10:07]sum+1 = 50064 [15:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 212 20.10.2024 15:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165730 ФПД: 34743738200299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151020&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165730&fm=34743738200299&tin=02508201610067®Number=0000000000091764&sum=50000 [15:10:08]StoreToDocumentArchive [15:10:08]shift 534 fd 165730 [15:10:08]save to /storage/0534/doc_00165730 [15:10:08]save last doc name /storage/0534/doc_00165730 to /storage/kkm_last_doc_name [15:10:08]save OK [15:10:08]Clear old archive folders... [15:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:10:08]tlvbuf is 0166B000 [15:10:08]SAM_PROTO_ClearQueue [15:10:08]wFMCommunicate request_size=4 [15:10:08]MH_SAM_APDU [15:10:08]CAPDU: 80 09 00 00 [15:10:08]Write to MH i2c: E2 08 00 9E F9 80 09 00 00 00 00 00 00 09 [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:08]Read from MH i2c: E2 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 03 00 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 03 00 9E F9 00 90 00 0B [15:10:08]RAPDU: 90 00 [15:10:08]wFMCommunicate OK [15:10:08]SAM_PROTO_ClearQueue done [15:10:08]KKMCreateOFDPacket [15:10:08]OFDProtocolAddRootSTLVToBuf [15:10:08]FM_MakeSignedData [15:10:08]FM_MakeSignedData [15:10:08]SAM_PROTO_SignData [15:10:08]wFMCommunicate request_size=4 [15:10:08]MH_SAM_APDU [15:10:08]CAPDU: 80 0D 01 02 [15:10:08]Write to MH i2c: E2 08 00 9F F9 80 0D 01 02 00 00 00 00 11 [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:08]Read from MH i2c: E2 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 03 00 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 03 00 9F F9 00 90 00 0C [15:10:08]RAPDU: 90 00 [15:10:08]wFMCommunicate OK [15:10:08]wFMCommunicate request_size=255 [15:10:08]MH_SAM_APDU [15:10:08]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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 D4 00 00 00 F4 03 04 00 5C 1D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 87 02 00 35 04 06 00 1F 99 68 2C [15:10:08]Write to MH i2c: E2 02 01 A0 F9 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 D4 00 00 00 F4 03 04 00 5C 1D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 87 02 00 35 04 06 00 1F 99 68 2C 00 00 3D [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 A0 F9 00 90 00 0D [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]wFMCommunicate request_size=7 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 0D 02 02 02 70 EB [15:10:09]Write to MH i2c: E2 0A 00 A1 F9 80 0D 02 02 02 00 70 EB 00 00 73 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 A1 F9 00 90 00 0E [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 0D 03 02 [15:10:09]Write to MH i2c: E2 08 00 A2 F9 80 0D 03 02 00 00 00 00 16 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 0B 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 0B 00 A2 F9 00 8D C1 13 A1 B9 61 EC 30 90 00 4F [15:10:09]RAPDU: 8D C1 13 A1 B9 61 EC 30 90 00 [15:10:09]wFMCommunicate OK [15:10:09]SAM_PROTO_SignData done [15:10:09]FM_MakeSignedData done [15:10:09]CreateOFDProtocolMessage [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 11 00 00 [15:10:09]Write to MH i2c: E2 08 00 A3 F9 80 11 00 00 00 00 00 00 16 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 17 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 17 00 A3 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [15:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:10:09]wFMCommunicate OK [15:10:09]CreateOFDProtocolMessage done [15:10:09]OFDSenderStorePacket 165730 [15:10:09]StoreOFDPacket docnum=165730 [15:10:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F6 3C 04 01 58 3D 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 D4 00 00 00 F4 03 04 00 5C 1D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 87 02 00 35 04 06 00 1F 99 68 2C 70 EB 8D C1 13 A1 B9 61 EC 30 [15:10:09]CheckFolder [15:10:09]dirname=/storage/ofd_packets [15:10:09]CheckFolder done [15:10:09]ProducePacketName [15:10:09]name=ofd_packets/00165730 [15:10:09]NVStorageSaveData ofd_packets/00165730 [15:10:09]File name is /storage/ofd_packets/00165730 [15:10:09]Write 298 bytes [15:10:09]NVStorageSaveData done [15:10:09]OFDSenderStorePacket done [15:10:09]KKMCreateOFDPacket done [15:10:09]NVStorageSaveData kkm_last_timestamp [15:10:09]File name is /storage/kkm_last_timestamp [15:10:09]Write 4 bytes [15:10:09]NVStorageSaveData done [15:10:09]ExternCall_PrintAddStr [15:10:09]wPrintStart [15:10:09]Write to MH i2c: 01 00 00 A4 F9 9D [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 07 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 07 00 A4 F9 00 00 00 00 00 FF 0F B2 [15:10:09]RasterBufferAndPrint [15:10:09]line Счет N : (1)220296 [15:10:09]line ИНН: 02508201610067 [15:10:09]line Контрольно-Кассовый Чек [15:10:09]line ПРОДАЖА [15:10:09]line ТРК (МРК, ГНК) : 21 [15:10:09]line Товар: 2710194210 [15:10:09]line ДТ-К-5 [15:10:09]line 6.570 * 76.20 [15:10:09]line = 500.63 [15:10:09]line НДС 12% НСП 1% [15:10:09]line > о реализуемом товаре [15:10:09]line ОКРУГЛЕНИЕ: -0.63 [15:10:09]line ИТОГО: 500.00 [15:10:09]line Внесено: 500.00 [15:10:09]line СДАЧА: 0.00 [15:10:09]line НСП 1% : 4.43 [15:10:09]line НДС 12% : 53.16 [15:10:09]line Наличными: 500.00 [15:10:09]line Безнал.: 0.00 [15:10:09]line Место: АЗС № 161 "Партнер Нефть" [15:10:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:10:09]line СНО: Общий режим [15:10:09]line Чек 212 20.10.2024 15:10 [15:10:09]line Смена: 534 ФФД: 1.0 [15:10:09]line ЗНМ: 0300000104 [15:10:09]line РНМ: 0000000000091764 [15:10:09]line Версия ККМ: 001 [15:10:09]line ФМ: 0000000000871759 [15:10:09]line ФД: 165730 [15:10:09]line ФПД: 34743738200299 [15:10:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151020&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165730&fm=34743738200299&tin=02508201610067®Number=0000000000091764&sum=50000 [15:10:09]written 0, free lines is 4095 [15:10:09]Write to MH i2c: 01 00 00 CF F9 C8 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 07 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 07 00 CF F9 00 00 00 00 00 C6 0C A1 [15:10:09]RasterBufferAndPrint [15:10:09]line [15:10:09]line [15:10:09]line [15:10:09]line [15:10:09]line [15:10:09]written 0, free lines is 3276 [15:10:09]MH_Cut [15:10:09]Write to MH i2c: D1 01 00 D6 F9 01 A1 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: D1 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: D1 01 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: D1 01 00 D6 F9 00 A0 [15:10:09]Write to MH i2c: 01 00 00 D7 F9 D0 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:10]*** Cut start [15:10:10]*** Partial cut [15:10:10]*** CUTSNS_PIN = 1 [15:10:10]*** CUTSNS_PIN = 0 [15:10:11]*** Brake cut motor [15:10:11]Read from MH i2c: 01 [15:10:11]MH_I2C_Read... [15:10:11]*** Stop cut motor [15:10:11]*** Cut end [15:10:11]Read from MH i2c: 01 07 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: 01 07 00 D7 F9 00 00 00 00 00 FF 0F E5 [15:10:11]process_action close_receipt done [15:10:11]requested_data is exist [15:10:11]produce_requested_data [15:10:11]requested_item fm.sn is exist - process it [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 11 00 00 [15:10:11]Write to MH i2c: E2 08 00 D8 F9 80 11 00 00 00 00 00 00 4B [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 17 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 17 00 D8 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [15:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:10:11]wFMCommunicate OK [15:10:11]requested_item fd.num is exist - process it [15:10:11]SAM_PROTO_GetFieldsCounters [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 13 00 00 [15:10:11]Write to MH i2c: E2 08 00 D9 F9 80 13 00 00 00 00 00 00 4E [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 62 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 62 00 D9 F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 87 02 00 0E 04 04 00 16 02 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 F5 [15:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 87 02 00 0E 04 04 00 16 02 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:10:11]wFMCommunicate OK [15:10:11]SAM_PROTO_GetFieldsCounters done [15:10:11]requested_item shift.num is exist - process it [15:10:11]requested_item shift.opened is exist - process it [15:10:11]req_shift_opened [15:10:11]FM_GetShiftState [15:10:11]SAM_PROTO_GetShiftState [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 13 01 00 [15:10:11]Write to MH i2c: E2 08 00 DA F9 80 13 01 00 00 00 00 00 50 [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:11]Read from MH i2c: E2 0E 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 0E 00 DA F9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 98 [15:10:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:10:11]wFMCommunicate OK [15:10:11]SAM_PROTO_GetShiftState done [15:10:11]FM_GetShiftState done [15:10:11]req_shift_opened done [15:10:11]requested_item shift.open_date is exist - process it [15:10:11]req_shift_open_date [15:10:11]req_shift_open_date done [15:10:11]produce_requested_data done [15:10:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165730,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:10:11]process_action_free close_receipt [15:10:11]json_value_free [15:10:11]json_value_free done [15:10:11]process_json_proto returns [15:10:11]Send response to host [15:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165730,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:10:11]free response buf [15:10:11]execute_script done [15:10:11]execute_script returns [15:10:11]free content buf [15:10:11]Sock 9.Close socket [15:10:11]Sock 9.Thread stoped [15:10:23]ConnectInit Can't connect to host [15:10:23]CommunicateWithHost connect error [15:10:23]CommunicateWithHost err = -1 [15:10:23]OFD Sender: Server communicate error [15:10:24]OFD Sender: Processing packet 165729 [packets to send 49, broken 47] [15:10:24]ProducePacketName [15:10:24]name=ofd_packets/00165729 [15:10:24]OFD Sender: To server: pG, [15:10:24]CommunicateWithHost lk.salyk.kg:30040 [15:10:24]ConnectInit lk.salyk.kg [15:10:24]Connected sock=9 [15:10:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A1 80 04 01 7E B8 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 D3 00 00 00 F4 03 04 00 E5 1C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 87 02 00 35 04 06 00 73 90 B9 B2 9E 85 9F 45 BA E7 7D 6F 3B 1A [15:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7B 47 47 00 E9 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 87 02 00 F4 03 04 00 DC C3 14 67 B6 04 01 00 00 CC EB CA 39 F9 0D F1 91 [15:10:24]CommunicateWithHost err = 0 [15:10:24]CheckOFDResponse [15:10:24]1017 (14) - 77093643461234 [15:10:24]1041 (16) - 0000000000871759 [15:10:24]1040 (4) - 165729 [15:10:24]1012 (4) - 20.10.2024 08:48 [15:10:24]1206 (1) - 0 [15:10:24]OFD Sender: Remove packet 165729 [15:10:24]ProducePacketName [15:10:24]name=ofd_packets/00165729 [15:10:24]NVStorageDeleteData [15:10:24]OFD Sender: Processing packet 165730 [packets to send 48, broken 47] [15:10:24]ProducePacketName [15:10:24]name=ofd_packets/00165730 [15:10:24]OFD Sender: To server: pG, [15:10:24]CommunicateWithHost lk.salyk.kg:30040 [15:10:24]ConnectInit lk.salyk.kg [15:10:24]Connected sock=9 [15:10:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F6 3C 04 01 58 3D 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 D4 00 00 00 F4 03 04 00 5C 1D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 87 02 00 35 04 06 00 1F 99 68 2C 70 EB 8D C1 13 A1 B9 61 EC 30 [15:10:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6C F3 47 00 70 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 87 02 00 F4 03 04 00 DD C3 14 67 B6 04 01 00 00 F7 AF 7E A6 C9 1B 5A 71 [15:10:25]CommunicateWithHost err = 0 [15:10:25]CheckOFDResponse [15:10:25]1017 (14) - 77093643461234 [15:10:25]1041 (16) - 0000000000871759 [15:10:25]1040 (4) - 165730 [15:10:25]1012 (4) - 20.10.2024 08:48 [15:10:25]1206 (1) - 0 [15:10:25]OFD Sender: Remove packet 165730 [15:10:25]ProducePacketName [15:10:25]name=ofd_packets/00165730 [15:10:25]NVStorageDeleteData [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11: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:32]accept exits with 7 [15:11:32]New connection [15:11:32]New thread 3066920292 created [15:11:32]Thread 3066776932 joined [15:11:32]Waiting for new connection... [15:11:32] Sock 7.Parse request [15:11:32]Sock 7.Check first char [15:11:32]Sock 7.First char is OK [15:11:32]request: POST /json_proto HTTP/1.0 [15:11:32]Method: POST [15:11:32]URL: /json_proto [15:11:32]Method is POST - this is cgi request [15:11:32]url: /json_proto [15:11:32]query_string will be loaded in cgi processing [15:11:32]execute_cgi json_proto POST (null) [15:11:32]execute_cgi path=json_proto method=POST [15:11:32]POST find Content-Length [15:11:32]Host: 172.17.53.195:8080 [15:11:32]Content-Length: 677 [15:11:32]Content-Type: application/json [15:11:32] [15:11:32]POST finish read [15:11:32]Found Content-Length = 677 [15:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:32]execute_script... [15:11: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)220297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:32]POST & json_proto [15:11:32]process_json_proto [15:11:32]json parsed OK: [15:11:32]protocol is kg_v1.0 [15:11:32]action value=close_receipt [15:11:32]process_action close_receipt [15:11:32]cmd_close_receipt [15:11:32]MH_GetDate [15:11:32]Write to MH i2c: F0 00 00 DB F9 C3 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: F0 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: F0 09 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: F0 09 00 DB F9 00 B1 1D 15 67 21 48 4A 65 2E [15:11:32]GetLastDocTimeStamp 1729437020 [15:11:32]current date 1729437105 [15:11:32]FM_GetShiftState [15:11:32]SAM_PROTO_GetShiftState [15:11:32]wFMCommunicate request_size=4 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 13 01 00 [15:11:32]Write to MH i2c: E2 08 00 DC F9 80 13 01 00 00 00 00 00 52 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 0E 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 0E 00 DC F9 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9A [15:11:32]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:11:32]wFMCommunicate OK [15:11:32]SAM_PROTO_GetShiftState done [15:11:32]FM_GetShiftState done [15:11:32]opened in 1729384561 [15:11:32]opened+sec_in_day 1729470961 [15:11:32]quantity*price = 50041 [15:11:32]sum+1 = 50042 [15:11:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 213 20.10.2024 15:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165731 ФПД: 104992990854920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151145&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165731&fm=104992990854920&tin=02508201610067®Number=0000000000091764&sum=50000 [15:11:33]StoreToDocumentArchive [15:11:33]shift 534 fd 165731 [15:11:33]save to /storage/0534/doc_00165731 [15:11:33]save last doc name /storage/0534/doc_00165731 to /storage/kkm_last_doc_name [15:11:33]save OK [15:11:33]Clear old archive folders... [15:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:33]tlvbuf is 01891AC0 [15:11:33]SAM_PROTO_ClearQueue [15:11:33]wFMCommunicate request_size=4 [15:11:33]MH_SAM_APDU [15:11:33]CAPDU: 80 09 00 00 [15:11:33]Write to MH i2c: E2 08 00 E9 F9 80 09 00 00 00 00 00 00 54 [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:33]Read from MH i2c: E2 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 03 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 03 00 E9 F9 00 90 00 56 [15:11:33]RAPDU: 90 00 [15:11:33]wFMCommunicate OK [15:11:33]SAM_PROTO_ClearQueue done [15:11:33]KKMCreateOFDPacket [15:11:33]OFDProtocolAddRootSTLVToBuf [15:11:33]FM_MakeSignedData [15:11:33]FM_MakeSignedData [15:11:33]SAM_PROTO_SignData [15:11:33]wFMCommunicate request_size=4 [15:11:33]MH_SAM_APDU [15:11:33]CAPDU: 80 0D 01 02 [15:11:33]Write to MH i2c: E2 08 00 EA F9 80 0D 01 02 00 00 00 00 5C [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:33]Read from MH i2c: E2 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 03 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 03 00 EA F9 00 90 00 57 [15:11:33]RAPDU: 90 00 [15:11:33]wFMCommunicate OK [15:11:33]wFMCommunicate request_size=255 [15:11:33]MH_SAM_APDU [15:11: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 B1 1D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 87 02 00 35 04 06 00 5F [15:11:33]Write to MH i2c: E2 02 01 EB F9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 B1 1D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 87 02 00 35 04 06 00 5F 00 00 74 [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:33]Read from MH i2c: E2 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 03 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 03 00 EB F9 00 90 00 58 [15:11:33]RAPDU: 90 00 [15:11:33]wFMCommunicate OK [15:11:33]wFMCommunicate request_size=10 [15:11:33]MH_SAM_APDU [15:11:33]CAPDU: 80 0D 02 02 05 7D 95 EC 7F 08 [15:11:33]Write to MH i2c: E2 0D 00 EC F9 80 0D 02 02 05 00 7D 95 EC 7F 08 00 00 EE [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:33]Read from MH i2c: E2 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 03 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 03 00 EC F9 00 90 00 59 [15:11:33]RAPDU: 90 00 [15:11:33]wFMCommunicate OK [15:11:33]wFMCommunicate request_size=4 [15:11:33]MH_SAM_APDU [15:11:33]CAPDU: 80 0D 03 02 [15:11:33]Write to MH i2c: E2 08 00 ED F9 80 0D 03 02 00 00 00 00 61 [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:33]Read from MH i2c: E2 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 0B 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 0B 00 ED F9 00 50 72 B5 D3 CE 50 A7 12 90 00 83 [15:11:33]RAPDU: 50 72 B5 D3 CE 50 A7 12 90 00 [15:11:33]wFMCommunicate OK [15:11:33]SAM_PROTO_SignData done [15:11:33]FM_MakeSignedData done [15:11:33]CreateOFDProtocolMessage [15:11:33]wFMCommunicate request_size=4 [15:11:33]MH_SAM_APDU [15:11:33]CAPDU: 80 11 00 00 [15:11:33]Write to MH i2c: E2 08 00 EE F9 80 11 00 00 00 00 00 00 61 [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:33]Read from MH i2c: E2 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 17 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 17 00 EE F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [15:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:11:33]wFMCommunicate OK [15:11:33]CreateOFDProtocolMessage done [15:11:33]OFDSenderStorePacket 165731 [15:11:33]StoreOFDPacket docnum=165731 [15:11:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 01 8F 07 01 3E 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 B1 1D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 87 02 00 35 04 06 00 5F 7D 95 EC 7F 08 50 72 B5 D3 CE 50 A7 12 [15:11:33]CheckFolder [15:11:33]dirname=/storage/ofd_packets [15:11:33]CheckFolder done [15:11:33]ProducePacketName [15:11:33]name=ofd_packets/00165731 [15:11:33]NVStorageSaveData ofd_packets/00165731 [15:11:33]File name is /storage/ofd_packets/00165731 [15:11:33]Write 301 bytes [15:11:33]NVStorageSaveData done [15:11:33]OFDSenderStorePacket done [15:11:33]KKMCreateOFDPacket done [15:11:33]NVStorageSaveData kkm_last_timestamp [15:11:33]File name is /storage/kkm_last_timestamp [15:11:33]Write 4 bytes [15:11:33]NVStorageSaveData done [15:11:33]ExternCall_PrintAddStr [15:11:33]wPrintStart [15:11:33]Write to MH i2c: 01 00 00 EF F9 E8 [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: 01 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: 01 07 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: 01 07 00 EF F9 00 00 00 00 00 FF 0F FD [15:11:33]RasterBufferAndPrint [15:11:33]line Счет N : (1)220297 [15:11:33]line ИНН: 02508201610067 [15:11:33]line Контрольно-Кассовый Чек [15:11:34]line ПРОДАЖА [15:11:34]line ТРК (МРК, ГНК) : 13 [15:11:34]line Товар: 2710124130 [15:11:34]line Аи-92-К-5 [15:11:34]line 7.480 * 66.90 [15:11:34]line = 500.41 [15:11:34]line НДС 12% НСП 1% [15:11:34]line > о реализуемом товаре [15:11:34]line ОКРУГЛЕНИЕ: -0.41 [15:11:34]line ИТОГО: 500.00 [15:11:34]line Внесено: 500.00 [15:11:34]line СДАЧА: 0.00 [15:11:34]line НСП 1% : 4.43 [15:11:34]line НДС 12% : 53.14 [15:11:34]line Наличными: 500.00 [15:11:34]line Безнал.: 0.00 [15:11:34]line Место: АЗС № 161 "Партнер Нефть" [15:11:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:11:34]line СНО: Общий режим [15:11:34]line Чек 213 20.10.2024 15:11 [15:11:34]line Смена: 534 ФФД: 1.0 [15:11:34]line ЗНМ: 0300000104 [15:11:34]line РНМ: 0000000000091764 [15:11:34]line Версия ККМ: 001 [15:11:34]line ФМ: 0000000000871759 [15:11:34]line ФД: 165731 [15:11:34]line ФПД: 104992990854920 [15:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151145&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165731&fm=104992990854920&tin=02508201610067®Number=0000000000091764&sum=50000 [15:11:34]OFD Sender: Processing packet 165731 [packets to send 48, broken 47] [15:11:34]ProducePacketName [15:11:34]name=ofd_packets/00165731 [15:11:34]OFD Sender: To server: pG, [15:11:34]CommunicateWithHost lk.salyk.kg:30040 [15:11:34]ConnectInit lk.salyk.kg [15:11:34]written 0, free lines is 4095 [15:11:34]Connected sock=10 [15:11:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 01 8F 07 01 3E 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 B1 1D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 87 02 00 35 04 06 00 5F 7D 95 EC 7F 08 50 72 B5 D3 CE 50 A7 12 [15:11:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8F B3 47 00 F3 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 87 02 00 F4 03 04 00 22 C4 14 67 B6 04 01 00 00 F8 30 01 74 73 16 B3 D4 [15:11:34]CommunicateWithHost err = 0 [15:11:34]CheckOFDResponse [15:11:34]1017 (14) - 77093643461234 [15:11:34]1041 (16) - 0000000000871759 [15:11:34]1040 (4) - 165731 [15:11:34]1012 (4) - 20.10.2024 08:49 [15:11:34]1206 (1) - 0 [15:11:34]OFD Sender: Remove packet 165731 [15:11:34]ProducePacketName [15:11:34]name=ofd_packets/00165731 [15:11:34]NVStorageDeleteData [15:11:34]Write to MH i2c: 01 00 00 1A FA 14 [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: 01 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: 01 07 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: 01 07 00 1A FA 00 00 00 00 00 D0 0C F7 [15:11:34]RasterBufferAndPrint [15:11:34]line [15:11:34]line [15:11:34]line [15:11:34]line [15:11:34]line [15:11:34]written 0, free lines is 3287 [15:11:34]MH_Cut [15:11:34]Write to MH i2c: D1 01 00 21 FA 01 ED [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: D1 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: D1 01 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: D1 01 00 21 FA 00 EC [15:11:34]Write to MH i2c: 01 00 00 22 FA 1C [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:35]OFD Sender: No OFD packet to send [15:11:35]*** Cut start [15:11:35]*** Partial cut [15:11:35]*** CUTSNS_PIN = 1 [15:11:35]*** CUTSNS_PIN = 0 [15:11:35]*** Brake cut motor [15:11:36]Read from MH i2c: 01 [15:11:36]MH_I2C_Read... [15:11:36]*** Stop cut motor [15:11:36]*** Cut end [15:11:36]Read from MH i2c: 01 07 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: 01 07 00 22 FA 00 00 00 00 00 FF 0F 31 [15:11:36]process_action close_receipt done [15:11:36]requested_data is exist [15:11:36]produce_requested_data [15:11:36]requested_item fm.sn is exist - process it [15:11:36]wFMCommunicate request_size=4 [15:11:36]MH_SAM_APDU [15:11:36]CAPDU: 80 11 00 00 [15:11:36]Write to MH i2c: E2 08 00 23 FA 80 11 00 00 00 00 00 00 97 [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:36]Read from MH i2c: E2 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 17 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 17 00 23 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [15:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:11:36]wFMCommunicate OK [15:11:36]requested_item fd.num is exist - process it [15:11:36]SAM_PROTO_GetFieldsCounters [15:11:36]wFMCommunicate request_size=4 [15:11:36]MH_SAM_APDU [15:11:36]CAPDU: 80 13 00 00 [15:11:36]Write to MH i2c: E2 08 00 24 FA 80 13 00 00 00 00 00 00 9A [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:36]Read from MH i2c: E2 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 62 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 62 00 24 FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 87 02 00 0E 04 04 00 16 02 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 45 [15:11: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 87 02 00 0E 04 04 00 16 02 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:11:36]wFMCommunicate OK [15:11:36]SAM_PROTO_GetFieldsCounters done [15:11:36]requested_item shift.num is exist - process it [15:11:36]requested_item shift.opened is exist - process it [15:11:36]req_shift_opened [15:11:36]FM_GetShiftState [15:11:36]SAM_PROTO_GetShiftState [15:11:36]wFMCommunicate request_size=4 [15:11:36]MH_SAM_APDU [15:11:36]CAPDU: 80 13 01 00 [15:11:36]Write to MH i2c: E2 08 00 25 FA 80 13 01 00 00 00 00 00 9C [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:36]Read from MH i2c: E2 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 0E 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 0E 00 25 FA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E4 [15:11:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:11:36]wFMCommunicate OK [15:11:36]SAM_PROTO_GetShiftState done [15:11:36]FM_GetShiftState done [15:11:36]req_shift_opened done [15:11:36]requested_item shift.open_date is exist - process it [15:11:36]req_shift_open_date [15:11:36]req_shift_open_date done [15:11:36]produce_requested_data done [15:11:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165731,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:11:36]process_action_free close_receipt [15:11:36]json_value_free [15:11:36]json_value_free done [15:11:36]process_json_proto returns [15:11:36]Send response to host [15:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165731,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:11:36]free response buf [15:11:36]execute_script done [15:11:36]execute_script returns [15:11:36]free content buf [15:11:36]Sock 7.Close socket [15:11:36]Sock 7.Thread stoped [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: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:41]accept exits with 9 [15:14:41]New connection [15:14:41]New thread 3066776932 created [15:14:41]Thread 3066920292 joined [15:14:41]Waiting for new connection... [15:14:41] Sock 9.Parse request [15:14:41]Sock 9.Check first char [15:14:41]Sock 9.First char is OK [15:14:41]request: POST /json_proto HTTP/1.0 [15:14:41]Method: POST [15:14:41]URL: /json_proto [15:14:41]Method is POST - this is cgi request [15:14:41]url: /json_proto [15:14:41]query_string will be loaded in cgi processing [15:14:41]execute_cgi json_proto POST (null) [15:14:41]execute_cgi path=json_proto method=POST [15:14:41]POST find Content-Length [15:14:41]Host: 172.17.53.195:8080 [15:14:41]Content-Length: 677 [15:14:41]Content-Type: application/json [15:14:41] [15:14:41]POST finish read [15:14:41]Found Content-Length = 677 [15:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:41]execute_script... [15:14: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)220298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:41]POST & json_proto [15:14:41]process_json_proto [15:14:41]json parsed OK: [15:14:41]protocol is kg_v1.0 [15:14:41]action value=close_receipt [15:14:41]process_action close_receipt [15:14:41]cmd_close_receipt [15:14:41]MH_GetDate [15:14:41]Write to MH i2c: F0 00 00 26 FA 0F [15:14:41]Write i2c OK [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: F0 [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: F0 09 00 [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: F0 09 00 26 FA 00 6E 1E 15 67 21 48 4A 65 38 [15:14:41]GetLastDocTimeStamp 1729437105 [15:14:41]current date 1729437294 [15:14:41]FM_GetShiftState [15:14:41]SAM_PROTO_GetShiftState [15:14:41]wFMCommunicate request_size=4 [15:14:41]MH_SAM_APDU [15:14:41]CAPDU: 80 13 01 00 [15:14:41]Write to MH i2c: E2 08 00 27 FA 80 13 01 00 00 00 00 00 9E [15:14:41]Write i2c OK [15:14:41]MH_I2C_Read... [15:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:41]Read from MH i2c: E2 [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: E2 0E 00 [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: E2 0E 00 27 FA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E6 [15:14:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:14:41]wFMCommunicate OK [15:14:41]SAM_PROTO_GetShiftState done [15:14:41]FM_GetShiftState done [15:14:41]opened in 1729384561 [15:14:41]opened+sec_in_day 1729470961 [15:14:41]quantity*price = 29971 [15:14:41]sum+1 = 29972 [15:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 214 20.10.2024 15:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165732 ФПД: 271895564857609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165732&fm=271895564857609&tin=02508201610067®Number=0000000000091764&sum=29900 [15:14:43]StoreToDocumentArchive [15:14:43]shift 534 fd 165732 [15:14:43]save to /storage/0534/doc_00165732 [15:14:43]save last doc name /storage/0534/doc_00165732 to /storage/kkm_last_doc_name [15:14:43]save OK [15:14:43]Clear old archive folders... [15:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:43]tlvbuf is 019A5FC0 [15:14:43]SAM_PROTO_ClearQueue [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 09 00 00 [15:14:43]Write to MH i2c: E2 08 00 34 FA 80 09 00 00 00 00 00 00 A0 [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 34 FA 00 90 00 A2 [15:14:43]RAPDU: 90 00 [15:14:43]wFMCommunicate OK [15:14:43]SAM_PROTO_ClearQueue done [15:14:43]KKMCreateOFDPacket [15:14:43]OFDProtocolAddRootSTLVToBuf [15:14:43]FM_MakeSignedData [15:14:43]FM_MakeSignedData [15:14:43]SAM_PROTO_SignData [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 0D 01 02 [15:14:43]Write to MH i2c: E2 08 00 35 FA 80 0D 01 02 00 00 00 00 A8 [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 35 FA 00 90 00 A3 [15:14:43]RAPDU: 90 00 [15:14:43]wFMCommunicate OK [15:14:43]wFMCommunicate request_size=255 [15:14:43]MH_SAM_APDU [15:14: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6E 1E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 87 02 00 35 04 06 00 F7 [15:14:43]Write to MH i2c: E2 02 01 36 FA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6E 1E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 87 02 00 35 04 06 00 F7 00 00 ED [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 36 FA 00 90 00 A4 [15:14:43]RAPDU: 90 00 [15:14:43]wFMCommunicate OK [15:14:43]wFMCommunicate request_size=10 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 0D 02 02 05 49 9E 8F 31 09 [15:14:43]Write to MH i2c: E2 0D 00 37 FA 80 0D 02 02 05 00 49 9E 8F 31 09 00 00 65 [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 37 FA 00 90 00 A5 [15:14:43]RAPDU: 90 00 [15:14:43]wFMCommunicate OK [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 0D 03 02 [15:14:43]Write to MH i2c: E2 08 00 38 FA 80 0D 03 02 00 00 00 00 AD [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 0B 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 0B 00 38 FA 00 BC 14 DB 3F 5E A5 AF A7 90 00 F1 [15:14:43]RAPDU: BC 14 DB 3F 5E A5 AF A7 90 00 [15:14:43]wFMCommunicate OK [15:14:43]SAM_PROTO_SignData done [15:14:43]FM_MakeSignedData done [15:14:43]CreateOFDProtocolMessage [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 11 00 00 [15:14:43]Write to MH i2c: E2 08 00 39 FA 80 11 00 00 00 00 00 00 AD [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 17 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 17 00 39 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 05 [15:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:14:43]wFMCommunicate OK [15:14:43]CreateOFDProtocolMessage done [15:14:43]OFDSenderStorePacket 165732 [15:14:43]StoreOFDPacket docnum=165732 [15:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 41 B8 07 01 AA C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6E 1E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 87 02 00 35 04 06 00 F7 49 9E 8F 31 09 BC 14 DB 3F 5E A5 AF A7 [15:14:43]CheckFolder [15:14:43]dirname=/storage/ofd_packets [15:14:43]CheckFolder done [15:14:43]ProducePacketName [15:14:43]name=ofd_packets/00165732 [15:14:43]NVStorageSaveData ofd_packets/00165732 [15:14:43]File name is /storage/ofd_packets/00165732 [15:14:43]Write 301 bytes [15:14:43]NVStorageSaveData done [15:14:43]OFDSenderStorePacket done [15:14:43]KKMCreateOFDPacket done [15:14:43]NVStorageSaveData kkm_last_timestamp [15:14:43]File name is /storage/kkm_last_timestamp [15:14:43]Write 4 bytes [15:14:43]NVStorageSaveData done [15:14:43]ExternCall_PrintAddStr [15:14:43]wPrintStart [15:14:43]Write to MH i2c: 01 00 00 3A FA 34 [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: 01 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: 01 07 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: 01 07 00 3A FA 00 00 00 00 00 FF 0F 49 [15:14:43]RasterBufferAndPrint [15:14:43]line Счет N : (1)220298 [15:14:43]line ИНН: 02508201610067 [15:14:43]line Контрольно-Кассовый Чек [15:14:43]line ПРОДАЖА [15:14:43]line ТРК (МРК, ГНК) : 13 [15:14:43]line Товар: 2710124130 [15:14:43]line Аи-92-К-5 [15:14:43]line 4.480 * 66.90 [15:14:43]line = 299.71 [15:14:43]line НДС 12% НСП 1% [15:14:43]line > о реализуемом товаре [15:14:43]line ОКРУГЛЕНИЕ: -0.71 [15:14:43]line ИТОГО: 299.00 [15:14:43]line Внесено: 300.00 [15:14:43]line СДАЧА: 1.00 [15:14:43]line НСП 1% : 2.65 [15:14:43]line НДС 12% : 31.83 [15:14:43]line Наличными: 299.00 [15:14:43]line Безнал.: 0.00 [15:14:43]line Место: АЗС № 161 "Партнер Нефть" [15:14:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:14:43]line СНО: Общий режим [15:14:43]line Чек 214 20.10.2024 15:14 [15:14:43]line Смена: 534 ФФД: 1.0 [15:14:43]line ЗНМ: 0300000104 [15:14:43]line РНМ: 0000000000091764 [15:14:43]line Версия ККМ: 001 [15:14:43]line ФМ: 0000000000871759 [15:14:43]line ФД: 165732 [15:14:43]line ФПД: 271895564857609 [15:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165732&fm=271895564857609&tin=02508201610067®Number=0000000000091764&sum=29900 [15:14:43]written 0, free lines is 4095 [15:14:43]OFD Sender: Processing packet 165732 [packets to send 48, broken 47] [15:14:43]ProducePacketName [15:14:43]name=ofd_packets/00165732 [15:14:43]OFD Sender: To server: pG, [15:14:43]CommunicateWithHost lk.salyk.kg:30040 [15:14:43]ConnectInit lk.salyk.kg [15:14:43]Connected sock=10 [15:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 41 B8 07 01 AA C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6E 1E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 87 02 00 35 04 06 00 F7 49 9E 8F 31 09 BC 14 DB 3F 5E A5 AF A7 [15:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 20 4A 47 00 DB 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 31 37 35 39 10 04 04 00 64 87 02 00 F4 03 04 00 E0 C4 14 67 B6 04 01 00 00 4B 4A F5 D9 31 BD 80 87 [15:14:43]CommunicateWithHost err = 0 [15:14:43]CheckOFDResponse [15:14:43]1017 (14) - 77093643461234 [15:14:43]1041 (16) - 0000000000871759 [15:14:43]1040 (4) - 165732 [15:14:43]1012 (4) - 20.10.2024 08:52 [15:14:43]1206 (1) - 0 [15:14:43]OFD Sender: Remove packet 165732 [15:14:43]ProducePacketName [15:14:43]name=ofd_packets/00165732 [15:14:43]NVStorageDeleteData [15:14:44]Write to MH i2c: 01 00 00 65 FA 5F [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: 01 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: 01 07 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: 01 07 00 65 FA 00 00 00 00 00 D6 0C 48 [15:14:44]RasterBufferAndPrint [15:14:44]line [15:14:44]line [15:14:44]line [15:14:44]line [15:14:44]line [15:14:44]written 0, free lines is 3293 [15:14:44]MH_Cut [15:14:44]Write to MH i2c: D1 01 00 6C FA 01 38 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: D1 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: D1 01 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: D1 01 00 6C FA 00 37 [15:14:44]Write to MH i2c: 01 00 00 6D FA 67 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]OFD Sender: No OFD packet to send [15:14:44]*** Cut start [15:14:44]*** Partial cut [15:14:44]*** CUTSNS_PIN = 1 [15:14:44]*** CUTSNS_PIN = 0 [15:14:45]*** Brake cut motor [15:14:45]Read from MH i2c: 01 [15:14:45]MH_I2C_Read... [15:14:45]*** Stop cut motor [15:14:45]*** Cut end [15:14:45]Read from MH i2c: 01 07 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 07 00 6D FA 00 00 00 00 00 FF 0F 7C [15:14:45]process_action close_receipt done [15:14:45]requested_data is exist [15:14:45]produce_requested_data [15:14:45]requested_item fm.sn is exist - process it [15:14:45]wFMCommunicate request_size=4 [15:14:45]MH_SAM_APDU [15:14:45]CAPDU: 80 11 00 00 [15:14:45]Write to MH i2c: E2 08 00 6E FA 80 11 00 00 00 00 00 00 E2 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:45]Read from MH i2c: E2 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 17 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 17 00 6E FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [15:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:14:45]wFMCommunicate OK [15:14:45]requested_item fd.num is exist - process it [15:14:45]SAM_PROTO_GetFieldsCounters [15:14:45]wFMCommunicate request_size=4 [15:14:45]MH_SAM_APDU [15:14:45]CAPDU: 80 13 00 00 [15:14:45]Write to MH i2c: E2 08 00 6F FA 80 13 00 00 00 00 00 00 E5 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:45]Read from MH i2c: E2 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 62 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 62 00 6F FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 87 02 00 0E 04 04 00 16 02 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 94 [15:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 87 02 00 0E 04 04 00 16 02 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:14:45]wFMCommunicate OK [15:14:45]SAM_PROTO_GetFieldsCounters done [15:14:45]requested_item shift.num is exist - process it [15:14:45]requested_item shift.opened is exist - process it [15:14:45]req_shift_opened [15:14:45]FM_GetShiftState [15:14:45]SAM_PROTO_GetShiftState [15:14:45]wFMCommunicate request_size=4 [15:14:45]MH_SAM_APDU [15:14:45]CAPDU: 80 13 01 00 [15:14:45]Write to MH i2c: E2 08 00 70 FA 80 13 01 00 00 00 00 00 E7 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:45]Read from MH i2c: E2 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 0E 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 0E 00 70 FA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2F [15:14:45]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:14:45]wFMCommunicate OK [15:14:45]SAM_PROTO_GetShiftState done [15:14:45]FM_GetShiftState done [15:14:45]req_shift_opened done [15:14:45]requested_item shift.open_date is exist - process it [15:14:45]req_shift_open_date [15:14:45]req_shift_open_date done [15:14:45]produce_requested_data done [15:14:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165732,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:14:45]process_action_free close_receipt [15:14:45]json_value_free [15:14:45]json_value_free done [15:14:45]process_json_proto returns [15:14:45]Send response to host [15:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165732,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:14:45]free response buf [15:14:45]execute_script done [15:14:45]execute_script returns [15:14:45]free content buf [15:14:45]Sock 9.Close socket [15:14:45]Sock 9.Thread stoped [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:16]accept exits with 7 [15:16:16]New connection [15:16:16]New thread 3066920292 created [15:16:16]Thread 3066776932 joined [15:16:16]Waiting for new connection... [15:16:16] Sock 7.Parse request [15:16:16]Sock 7.Check first char [15:16:16]Sock 7.First char is OK [15:16:16]request: POST /json_proto HTTP/1.0 [15:16:16]Method: POST [15:16:16]URL: /json_proto [15:16:16]Method is POST - this is cgi request [15:16:16]url: /json_proto [15:16:16]query_string will be loaded in cgi processing [15:16:16]execute_cgi json_proto POST (null) [15:16:16]execute_cgi path=json_proto method=POST [15:16:16]POST find Content-Length [15:16:16]Host: 172.17.53.195:8080 [15:16:16]Content-Length: 677 [15:16:16]Content-Type: application/json [15:16:16] [15:16:16]POST finish read [15:16:16]Found Content-Length = 677 [15:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:16]execute_script... [15:16: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)220299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:16]POST & json_proto [15:16:16]process_json_proto [15:16:16]json parsed OK: [15:16:16]protocol is kg_v1.0 [15:16:16]action value=close_receipt [15:16:16]process_action close_receipt [15:16:16]cmd_close_receipt [15:16:16]MH_GetDate [15:16:16]Write to MH i2c: F0 00 00 71 FA 5A [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 09 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 09 00 71 FA 00 CD 1E 15 67 21 48 4A 65 E2 [15:16:16]GetLastDocTimeStamp 1729437294 [15:16:16]current date 1729437389 [15:16:16]FM_GetShiftState [15:16:16]SAM_PROTO_GetShiftState [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 13 01 00 [15:16:16]Write to MH i2c: E2 08 00 72 FA 80 13 01 00 00 00 00 00 E9 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 72 FA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 31 [15:16:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_GetShiftState done [15:16:16]FM_GetShiftState done [15:16:16]opened in 1729384561 [15:16:16]opened+sec_in_day 1729470961 [15:16:16]quantity*price = 50041 [15:16:16]sum+1 = 50042 [15:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 215 20.10.2024 15:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165733 ФПД: 132996581620554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151629&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165733&fm=132996581620554&tin=02508201610067®Number=0000000000091764&sum=50000 [15:16:17]StoreToDocumentArchive [15:16:17]shift 534 fd 165733 [15:16:17]save to /storage/0534/doc_00165733 [15:16:17]save last doc name /storage/0534/doc_00165733 to /storage/kkm_last_doc_name [15:16:17]save OK [15:16:17]Clear old archive folders... [15:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:17]tlvbuf is 01A0ABF0 [15:16:17]SAM_PROTO_ClearQueue [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 09 00 00 [15:16:17]Write to MH i2c: E2 08 00 7F FA 80 09 00 00 00 00 00 00 EB [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 7F FA 00 90 00 ED [15:16:18]RAPDU: 90 00 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_ClearQueue done [15:16:18]KKMCreateOFDPacket [15:16:18]OFDProtocolAddRootSTLVToBuf [15:16:18]FM_MakeSignedData [15:16:18]FM_MakeSignedData [15:16:18]SAM_PROTO_SignData [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 0D 01 02 [15:16:18]Write to MH i2c: E2 08 00 80 FA 80 0D 01 02 00 00 00 00 F3 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 80 FA 00 90 00 EE [15:16:18]RAPDU: 90 00 [15:16:18]wFMCommunicate OK [15:16:18]wFMCommunicate request_size=255 [15:16:18]MH_SAM_APDU [15:16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 CD 1E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 87 02 00 35 04 06 00 78 [15:16:18]Write to MH i2c: E2 02 01 81 FA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 CD 1E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 87 02 00 35 04 06 00 78 00 00 45 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 81 FA 00 90 00 EF [15:16:18]RAPDU: 90 00 [15:16:18]wFMCommunicate OK [15:16:18]wFMCommunicate request_size=10 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 0D 02 02 05 F5 AE 00 FB 4A [15:16:18]Write to MH i2c: E2 0D 00 82 FA 80 0D 02 02 05 00 F5 AE 00 FB 4A 00 00 E8 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 82 FA 00 90 00 F0 [15:16:18]RAPDU: 90 00 [15:16:18]wFMCommunicate OK [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 0D 03 02 [15:16:18]Write to MH i2c: E2 08 00 83 FA 80 0D 03 02 00 00 00 00 F8 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0B 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0B 00 83 FA 00 F4 1C 53 B5 16 7E 32 64 90 00 3B [15:16:18]RAPDU: F4 1C 53 B5 16 7E 32 64 90 00 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_SignData done [15:16:18]FM_MakeSignedData done [15:16:18]CreateOFDProtocolMessage [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 11 00 00 [15:16:18]Write to MH i2c: E2 08 00 84 FA 80 11 00 00 00 00 00 00 F8 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 17 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 17 00 84 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 50 [15:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:16:18]wFMCommunicate OK [15:16:18]CreateOFDProtocolMessage done [15:16:18]OFDSenderStorePacket 165733 [15:16:18]StoreOFDPacket docnum=165733 [15:16:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D5 DA 07 01 7F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 CD 1E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 87 02 00 35 04 06 00 78 F5 AE 00 FB 4A F4 1C 53 B5 16 7E 32 64 [15:16:18]CheckFolder [15:16:18]dirname=/storage/ofd_packets [15:16:18]CheckFolder done [15:16:18]ProducePacketName [15:16:18]name=ofd_packets/00165733 [15:16:18]NVStorageSaveData ofd_packets/00165733 [15:16:18]File name is /storage/ofd_packets/00165733 [15:16:18]Write 301 bytes [15:16:18]NVStorageSaveData done [15:16:18]OFDSenderStorePacket done [15:16:18]KKMCreateOFDPacket done [15:16:18]NVStorageSaveData kkm_last_timestamp [15:16:18]File name is /storage/kkm_last_timestamp [15:16:18]Write 4 bytes [15:16:18]NVStorageSaveData done [15:16:18]ExternCall_PrintAddStr [15:16:18]wPrintStart [15:16:18]Write to MH i2c: 01 00 00 85 FA 7F [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 85 FA 00 00 00 00 00 FF 0F 94 [15:16:18]RasterBufferAndPrint [15:16:18]line Счет N : (1)220299 [15:16:18]line ИНН: 02508201610067 [15:16:18]line Контрольно-Кассовый Чек [15:16:18]line ПРОДАЖА [15:16:18]line ТРК (МРК, ГНК) : 33 [15:16:18]line Товар: 2710124130 [15:16:18]line Аи-92-К-5 [15:16:18]line 7.480 * 66.90 [15:16:18]line = 500.41 [15:16:18]line НДС 12% НСП 1% [15:16:18]line > о реализуемом товаре [15:16:18]line ОКРУГЛЕНИЕ: -0.41 [15:16:18]line ИТОГО: 500.00 [15:16:18]line Внесено: 500.00 [15:16:18]line СДАЧА: 0.00 [15:16:18]line НСП 1% : 4.43 [15:16:18]line НДС 12% : 53.14 [15:16:18]line Наличными: 500.00 [15:16:18]line Безнал.: 0.00 [15:16:18]line Место: АЗС № 161 "Партнер Нефть" [15:16:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:16:18]line СНО: Общий режим [15:16:18]line Чек 215 20.10.2024 15:16 [15:16:18]line Смена: 534 ФФД: 1.0 [15:16:18]line ЗНМ: 0300000104 [15:16:18]line РНМ: 0000000000091764 [15:16:18]line Версия ККМ: 001 [15:16:18]line ФМ: 0000000000871759 [15:16:18]line ФД: 165733 [15:16:18]line ФПД: 132996581620554 [15:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151629&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165733&fm=132996581620554&tin=02508201610067®Number=0000000000091764&sum=50000 [15:16:18]OFD Sender: Processing packet 165733 [packets to send 48, broken 47] [15:16:18]ProducePacketName [15:16:18]name=ofd_packets/00165733 [15:16:18]OFD Sender: To server: pG, [15:16:18]CommunicateWithHost lk.salyk.kg:30040 [15:16:18]ConnectInit lk.salyk.kg [15:16:18]written 0, free lines is 4095 [15:16:18]Connected sock=10 [15:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D5 DA 07 01 7F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 CD 1E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 87 02 00 35 04 06 00 78 F5 AE 00 FB 4A F4 1C 53 B5 16 7E 32 64 [15:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D D1 47 00 95 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 87 02 00 F4 03 04 00 3F C5 14 67 B6 04 01 00 00 09 40 97 DF 0D 55 17 DD [15:16:19]CommunicateWithHost err = 0 [15:16:19]CheckOFDResponse [15:16:19]1017 (14) - 77093643461234 [15:16:19]1041 (16) - 0000000000871759 [15:16:19]1040 (4) - 165733 [15:16:19]1012 (4) - 20.10.2024 08:54 [15:16:19]1206 (1) - 0 [15:16:19]OFD Sender: Remove packet 165733 [15:16:19]ProducePacketName [15:16:19]name=ofd_packets/00165733 [15:16:19]NVStorageDeleteData [15:16:19]Write to MH i2c: 01 00 00 B0 FA AA [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: 01 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: 01 07 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: 01 07 00 B0 FA 00 00 00 00 00 CF 0C 8C [15:16:19]RasterBufferAndPrint [15:16:19]line [15:16:19]line [15:16:19]line [15:16:19]line [15:16:19]line [15:16:19]written 0, free lines is 3287 [15:16:19]MH_Cut [15:16:19]Write to MH i2c: D1 01 00 B7 FA 01 83 [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: D1 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: D1 01 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: D1 01 00 B7 FA 00 82 [15:16:19]Write to MH i2c: 01 00 00 B8 FA B2 [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]OFD Sender: No OFD packet to send [15:16:20]*** Cut start [15:16:20]*** Partial cut [15:16:20]*** CUTSNS_PIN = 1 [15:16:20]*** CUTSNS_PIN = 0 [15:16:20]*** Brake cut motor [15:16:20]Read from MH i2c: 01 [15:16:20]MH_I2C_Read... [15:16:20]*** Stop cut motor [15:16:20]*** Cut end [15:16:20]Read from MH i2c: 01 07 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: 01 07 00 B8 FA 00 00 00 00 00 FF 0F C7 [15:16:20]process_action close_receipt done [15:16:20]requested_data is exist [15:16:20]produce_requested_data [15:16:20]requested_item fm.sn is exist - process it [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 11 00 00 [15:16:20]Write to MH i2c: E2 08 00 B9 FA 80 11 00 00 00 00 00 00 2D [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 17 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 17 00 B9 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [15:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:16:20]wFMCommunicate OK [15:16:20]requested_item fd.num is exist - process it [15:16:20]SAM_PROTO_GetFieldsCounters [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 13 00 00 [15:16:20]Write to MH i2c: E2 08 00 BA FA 80 13 00 00 00 00 00 00 30 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 62 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 62 00 BA FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 87 02 00 0E 04 04 00 16 02 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 E3 [15:16:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 87 02 00 0E 04 04 00 16 02 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:16:20]wFMCommunicate OK [15:16:20]SAM_PROTO_GetFieldsCounters done [15:16:20]requested_item shift.num is exist - process it [15:16:20]requested_item shift.opened is exist - process it [15:16:20]req_shift_opened [15:16:20]FM_GetShiftState [15:16:20]SAM_PROTO_GetShiftState [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 13 01 00 [15:16:20]Write to MH i2c: E2 08 00 BB FA 80 13 01 00 00 00 00 00 32 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:21]Read from MH i2c: E2 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: E2 0E 00 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: E2 0E 00 BB FA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7A [15:16:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:16:21]wFMCommunicate OK [15:16:21]SAM_PROTO_GetShiftState done [15:16:21]FM_GetShiftState done [15:16:21]req_shift_opened done [15:16:21]requested_item shift.open_date is exist - process it [15:16:21]req_shift_open_date [15:16:21]req_shift_open_date done [15:16:21]produce_requested_data done [15:16:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165733,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:16:21]process_action_free close_receipt [15:16:21]json_value_free [15:16:21]json_value_free done [15:16:21]process_json_proto returns [15:16:21]Send response to host [15:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165733,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:16:21]free response buf [15:16:21]execute_script done [15:16:21]execute_script returns [15:16:21]free content buf [15:16:21]Sock 7.Close socket [15:16:21]Sock 7.Thread stoped [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:43]accept exits with 9 [15:21:43]New connection [15:21:43]New thread 3066776932 created [15:21:43]Thread 3066920292 joined [15:21:43]Waiting for new connection... [15:21:43] Sock 9.Parse request [15:21:43]Sock 9.Check first char [15:21:43]Sock 9.First char is OK [15:21:43]request: POST /json_proto HTTP/1.0 [15:21:43]Method: POST [15:21:43]URL: /json_proto [15:21:43]Method is POST - this is cgi request [15:21:43]url: /json_proto [15:21:43]query_string will be loaded in cgi processing [15:21:43]execute_cgi json_proto POST (null) [15:21:43]execute_cgi path=json_proto method=POST [15:21:43]POST find Content-Length [15:21:43]Host: 172.17.53.195:8080 [15:21:43]Content-Length: 677 [15:21:43]Content-Type: application/json [15:21:43] [15:21:43]POST finish read [15:21:43]Found Content-Length = 677 [15:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:43]execute_script... [15:21: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)220301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:43]POST & json_proto [15:21:43]process_json_proto [15:21:43]json parsed OK: [15:21:43]protocol is kg_v1.0 [15:21:43]action value=close_receipt [15:21:43]process_action close_receipt [15:21:43]cmd_close_receipt [15:21:43]MH_GetDate [15:21:43]Write to MH i2c: F0 00 00 BC FA A5 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: F0 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: F0 09 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: F0 09 00 BC FA 00 14 20 15 67 21 48 4A 65 76 [15:21:43]GetLastDocTimeStamp 1729437389 [15:21:43]current date 1729437716 [15:21:43]FM_GetShiftState [15:21:43]SAM_PROTO_GetShiftState [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 13 01 00 [15:21:43]Write to MH i2c: E2 08 00 BD FA 80 13 01 00 00 00 00 00 34 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 0E 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 0E 00 BD FA 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7C [15:21:43]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:21:43]wFMCommunicate OK [15:21:43]SAM_PROTO_GetShiftState done [15:21:43]FM_GetShiftState done [15:21:43]opened in 1729384561 [15:21:43]opened+sec_in_day 1729470961 [15:21:43]quantity*price = 40006 [15:21:43]sum+1 = 40007 [15:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 216 20.10.2024 15:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165734 ФПД: 246386989321885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152156&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165734&fm=246386989321885&tin=02508201610067®Number=0000000000091764&sum=40000 [15:21:44]StoreToDocumentArchive [15:21:44]shift 534 fd 165734 [15:21:44]save to /storage/0534/doc_00165734 [15:21:44]save last doc name /storage/0534/doc_00165734 to /storage/kkm_last_doc_name [15:21:44]save OK [15:21:44]Clear old archive folders... [15:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:44]tlvbuf is 014FE9E0 [15:21:44]SAM_PROTO_ClearQueue [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 09 00 00 [15:21:44]Write to MH i2c: E2 08 00 CA FA 80 09 00 00 00 00 00 00 36 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 CA FA 00 90 00 38 [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]SAM_PROTO_ClearQueue done [15:21:44]KKMCreateOFDPacket [15:21:44]OFDProtocolAddRootSTLVToBuf [15:21:44]FM_MakeSignedData [15:21:44]FM_MakeSignedData [15:21:44]SAM_PROTO_SignData [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 0D 01 02 [15:21:44]Write to MH i2c: E2 08 00 CB FA 80 0D 01 02 00 00 00 00 3E [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 CB FA 00 90 00 39 [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]wFMCommunicate request_size=255 [15:21:44]MH_SAM_APDU [15:21: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 14 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 87 02 00 35 04 06 00 E0 [15:21:44]Write to MH i2c: E2 02 01 CC FA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 14 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 87 02 00 35 04 06 00 E0 00 00 12 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 CC FA 00 90 00 3A [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]wFMCommunicate request_size=10 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 0D 02 02 05 16 70 F9 CE 9D [15:21:44]Write to MH i2c: E2 0D 00 CD FA 80 0D 02 02 05 00 16 70 F9 CE 9D 00 00 35 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 CD FA 00 90 00 3B [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 0D 03 02 [15:21:44]Write to MH i2c: E2 08 00 CE FA 80 0D 03 02 00 00 00 00 43 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 0B 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 0B 00 CE FA 00 50 45 B8 45 4D E5 10 10 90 00 28 [15:21:44]RAPDU: 50 45 B8 45 4D E5 10 10 90 00 [15:21:44]wFMCommunicate OK [15:21:44]SAM_PROTO_SignData done [15:21:44]FM_MakeSignedData done [15:21:44]CreateOFDProtocolMessage [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 11 00 00 [15:21:44]Write to MH i2c: E2 08 00 CF FA 80 11 00 00 00 00 00 00 43 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 17 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 17 00 CF FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [15:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:21:45]wFMCommunicate OK [15:21:45]CreateOFDProtocolMessage done [15:21:45]OFDSenderStorePacket 165734 [15:21:45]StoreOFDPacket docnum=165734 [15:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 88 07 01 2A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 14 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 87 02 00 35 04 06 00 E0 16 70 F9 CE 9D 50 45 B8 45 4D E5 10 10 [15:21:45]CheckFolder [15:21:45]dirname=/storage/ofd_packets [15:21:45]CheckFolder done [15:21:45]ProducePacketName [15:21:45]name=ofd_packets/00165734 [15:21:45]NVStorageSaveData ofd_packets/00165734 [15:21:45]File name is /storage/ofd_packets/00165734 [15:21:45]Write 301 bytes [15:21:45]NVStorageSaveData done [15:21:45]OFDSenderStorePacket done [15:21:45]KKMCreateOFDPacket done [15:21:45]NVStorageSaveData kkm_last_timestamp [15:21:45]File name is /storage/kkm_last_timestamp [15:21:45]Write 4 bytes [15:21:45]NVStorageSaveData done [15:21:45]ExternCall_PrintAddStr [15:21:45]wPrintStart [15:21:45]Write to MH i2c: 01 00 00 D0 FA CA [15:21:45]OFD Sender: Processing packet 165734 [packets to send 48, broken 47] [15:21:45]ProducePacketName [15:21:45]name=ofd_packets/00165734 [15:21:45]OFD Sender: To server: pG, [15:21:45]CommunicateWithHost lk.salyk.kg:30040 [15:21:45]ConnectInit lk.salyk.kg [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 D0 FA 00 00 00 00 00 FF 0F DF [15:21:45]RasterBufferAndPrint [15:21:45]line Счет N : (1)220301 [15:21:45]line ИНН: 02508201610067 [15:21:45]line Контрольно-Кассовый Чек [15:21:45]line ПРОДАЖА [15:21:45]line ТРК (МРК, ГНК) : 23 [15:21:45]line Товар: 2710124130 [15:21:45]line Аи-92-К-5 [15:21:45]line 5.980 * 66.90 [15:21:45]line = 400.06 [15:21:45]line НДС 12% НСП 1% [15:21:45]line > о реализуемом товаре [15:21:45]line ОКРУГЛЕНИЕ: -0.06 [15:21:45]line ИТОГО: 400.00 [15:21:45]line Внесено: 400.00 [15:21:45]line СДАЧА: 0.00 [15:21:45]line НСП 1% : 3.54 [15:21:45]line НДС 12% : 42.48 [15:21:45]line Наличными: 400.00 [15:21:45]line Безнал.: 0.00 [15:21:45]line Место: АЗС № 161 "Партнер Нефть" [15:21:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:21:45]line СНО: Общий режим [15:21:45]line Чек 216 20.10.2024 15:21 [15:21:45]line Смена: 534 ФФД: 1.0 [15:21:45]line ЗНМ: 0300000104 [15:21:45]line РНМ: 0000000000091764 [15:21:45]line Версия ККМ: 001 [15:21:45]line ФМ: 0000000000871759 [15:21:45]line ФД: 165734 [15:21:45]line ФПД: 246386989321885 [15:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152156&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165734&fm=246386989321885&tin=02508201610067®Number=0000000000091764&sum=40000 [15:21:45]Connected sock=10 [15:21:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 88 07 01 2A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 14 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 87 02 00 35 04 06 00 E0 16 70 F9 CE 9D 50 45 B8 45 4D E5 10 10 [15:21:45]written 0, free lines is 4095 [15:21:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 13 70 47 00 9D 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 31 37 35 39 10 04 04 00 66 87 02 00 F4 03 04 00 85 C6 14 67 B6 04 01 00 00 FD D9 EC F4 A3 3C A6 43 [15:21:45]CommunicateWithHost err = 0 [15:21:45]CheckOFDResponse [15:21:45]1017 (14) - 77093643461234 [15:21:45]1041 (16) - 0000000000871759 [15:21:45]1040 (4) - 165734 [15:21:45]1012 (4) - 20.10.2024 08:59 [15:21:45]1206 (1) - 0 [15:21:45]OFD Sender: Remove packet 165734 [15:21:45]ProducePacketName [15:21:45]name=ofd_packets/00165734 [15:21:45]NVStorageDeleteData [15:21:45]Write to MH i2c: 01 00 00 FB FA F5 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 FB FA 00 00 00 00 00 D4 0C DC [15:21:45]RasterBufferAndPrint [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]written 0, free lines is 3290 [15:21:45]MH_Cut [15:21:45]Write to MH i2c: D1 01 00 02 FB 01 CF [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 01 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 01 00 02 FB 00 CE [15:21:45]Write to MH i2c: 01 00 00 03 FB FE [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:46]OFD Sender: No OFD packet to send [15:21:46]*** Cut start [15:21:46]*** Partial cut [15:21:46]*** CUTSNS_PIN = 1 [15:21:46]*** CUTSNS_PIN = 0 [15:21:46]*** Brake cut motor [15:21:47]Read from MH i2c: 01 [15:21:47]MH_I2C_Read... [15:21:47]*** Stop cut motor [15:21:47]*** Cut end [15:21:47]Read from MH i2c: 01 07 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 07 00 03 FB 00 00 00 00 00 FF 0F 13 [15:21:47]process_action close_receipt done [15:21:47]requested_data is exist [15:21:47]produce_requested_data [15:21:47]requested_item fm.sn is exist - process it [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 11 00 00 [15:21:47]Write to MH i2c: E2 08 00 04 FB 80 11 00 00 00 00 00 00 79 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 17 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 17 00 04 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [15:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:21:47]wFMCommunicate OK [15:21:47]requested_item fd.num is exist - process it [15:21:47]SAM_PROTO_GetFieldsCounters [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 13 00 00 [15:21:47]Write to MH i2c: E2 08 00 05 FB 80 13 00 00 00 00 00 00 7C [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 62 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 62 00 05 FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 87 02 00 0E 04 04 00 16 02 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 33 [15:21: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 87 02 00 0E 04 04 00 16 02 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:21:47]wFMCommunicate OK [15:21:47]SAM_PROTO_GetFieldsCounters done [15:21:47]requested_item shift.num is exist - process it [15:21:47]requested_item shift.opened is exist - process it [15:21:47]req_shift_opened [15:21:47]FM_GetShiftState [15:21:47]SAM_PROTO_GetShiftState [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 13 01 00 [15:21:47]Write to MH i2c: E2 08 00 06 FB 80 13 01 00 00 00 00 00 7E [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0E 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0E 00 06 FB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C6 [15:21:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:21:47]wFMCommunicate OK [15:21:47]SAM_PROTO_GetShiftState done [15:21:47]FM_GetShiftState done [15:21:47]req_shift_opened done [15:21:47]requested_item shift.open_date is exist - process it [15:21:47]req_shift_open_date [15:21:47]req_shift_open_date done [15:21:47]produce_requested_data done [15:21:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165734,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:21:47]process_action_free close_receipt [15:21:47]json_value_free [15:21:47]json_value_free done [15:21:47]process_json_proto returns [15:21:47]Send response to host [15:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165734,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:21:47]free response buf [15:21:47]execute_script done [15:21:47]execute_script returns [15:21:47]free content buf [15:21:47]Sock 9.Close socket [15:21:47]Sock 9.Thread stoped [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:07]accept exits with 7 [15:22:07]New connection [15:22:07]New thread 3066920292 created [15:22:07]Thread 3066776932 joined [15:22:07]Waiting for new connection... [15:22:07] Sock 7.Parse request [15:22:07]Sock 7.Check first char [15:22:07]Sock 7.First char is OK [15:22:07]request: POST /json_proto HTTP/1.0 [15:22:07]Method: POST [15:22:07]URL: /json_proto [15:22:07]Method is POST - this is cgi request [15:22:07]url: /json_proto [15:22:07]query_string will be loaded in cgi processing [15:22:07]execute_cgi json_proto POST (null) [15:22:07]execute_cgi path=json_proto method=POST [15:22:07]POST find Content-Length [15:22:07]Host: 172.17.53.195:8080 [15:22:07]Content-Length: 677 [15:22:07]Content-Type: application/json [15:22:07] [15:22:07]POST finish read [15:22:07]Found Content-Length = 677 [15:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:07]execute_script... [15:22: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)220302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:07]POST & json_proto [15:22:07]process_json_proto [15:22:07]json parsed OK: [15:22:07]protocol is kg_v1.0 [15:22:07]action value=close_receipt [15:22:07]process_action close_receipt [15:22:07]cmd_close_receipt [15:22:07]MH_GetDate [15:22:07]Write to MH i2c: F0 00 00 07 FB F1 [15:22:07]Write i2c OK [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: F0 [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: F0 09 00 [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: F0 09 00 07 FB 00 2C 20 15 67 21 48 4A 65 DA [15:22:07]GetLastDocTimeStamp 1729437716 [15:22:07]current date 1729437740 [15:22:07]FM_GetShiftState [15:22:07]SAM_PROTO_GetShiftState [15:22:07]wFMCommunicate request_size=4 [15:22:07]MH_SAM_APDU [15:22:07]CAPDU: 80 13 01 00 [15:22:07]Write to MH i2c: E2 08 00 08 FB 80 13 01 00 00 00 00 00 80 [15:22:07]Write i2c OK [15:22:07]MH_I2C_Read... [15:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:07]Read from MH i2c: E2 [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: E2 0E 00 [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: E2 0E 00 08 FB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C8 [15:22:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:22:07]wFMCommunicate OK [15:22:07]SAM_PROTO_GetShiftState done [15:22:07]FM_GetShiftState done [15:22:07]opened in 1729384561 [15:22:07]opened+sec_in_day 1729470961 [15:22:07]quantity*price = 20034 [15:22:07]sum+1 = 20035 [15:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 217 20.10.2024 15:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165735 ФПД: 99123364553852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152220&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165735&fm=99123364553852&tin=02508201610067®Number=0000000000091764&sum=20000 [15:22:08]StoreToDocumentArchive [15:22:08]shift 534 fd 165735 [15:22:08]save to /storage/0534/doc_00165735 [15:22:08]save last doc name /storage/0534/doc_00165735 to /storage/kkm_last_doc_name [15:22:08]save OK [15:22:08]Clear old archive folders... [15:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:08]tlvbuf is 01839E40 [15:22:08]SAM_PROTO_ClearQueue [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 09 00 00 [15:22:08]Write to MH i2c: E2 08 00 15 FB 80 09 00 00 00 00 00 00 82 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 15 FB 00 90 00 84 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]SAM_PROTO_ClearQueue done [15:22:08]KKMCreateOFDPacket [15:22:08]OFDProtocolAddRootSTLVToBuf [15:22:08]FM_MakeSignedData [15:22:08]FM_MakeSignedData [15:22:08]SAM_PROTO_SignData [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 0D 01 02 [15:22:08]Write to MH i2c: E2 08 00 16 FB 80 0D 01 02 00 00 00 00 8A [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 16 FB 00 90 00 85 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]wFMCommunicate request_size=255 [15:22:08]MH_SAM_APDU [15:22: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 2C 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 87 02 00 35 04 06 00 5A [15:22:08]Write to MH i2c: E2 02 01 17 FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 2C 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 87 02 00 35 04 06 00 5A 00 00 C4 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 17 FB 00 90 00 86 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]wFMCommunicate request_size=10 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 0D 02 02 05 26 F4 EE E4 7C [15:22:08]Write to MH i2c: E2 0D 00 18 FB 80 0D 02 02 05 00 26 F4 EE E4 7C 00 00 FF [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 18 FB 00 90 00 87 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 0D 03 02 [15:22:08]Write to MH i2c: E2 08 00 19 FB 80 0D 03 02 00 00 00 00 8F [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 0B 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 0B 00 19 FB 00 67 D4 DD FD 5C E3 55 DF 90 00 18 [15:22:08]RAPDU: 67 D4 DD FD 5C E3 55 DF 90 00 [15:22:08]wFMCommunicate OK [15:22:08]SAM_PROTO_SignData done [15:22:08]FM_MakeSignedData done [15:22:08]CreateOFDProtocolMessage [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 11 00 00 [15:22:08]Write to MH i2c: E2 08 00 1A FB 80 11 00 00 00 00 00 00 8F [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 17 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 17 00 1A FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E7 [15:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:22:08]wFMCommunicate OK [15:22:08]CreateOFDProtocolMessage done [15:22:08]OFDSenderStorePacket 165735 [15:22:08]StoreOFDPacket docnum=165735 [15:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B7 F5 07 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 2C 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 87 02 00 35 04 06 00 5A 26 F4 EE E4 7C 67 D4 DD FD 5C E3 55 DF [15:22:08]CheckFolder [15:22:08]dirname=/storage/ofd_packets [15:22:08]CheckFolder done [15:22:08]ProducePacketName [15:22:08]name=ofd_packets/00165735 [15:22:08]NVStorageSaveData ofd_packets/00165735 [15:22:08]File name is /storage/ofd_packets/00165735 [15:22:08]Write 301 bytes [15:22:08]NVStorageSaveData done [15:22:08]OFDSenderStorePacket done [15:22:08]KKMCreateOFDPacket done [15:22:08]NVStorageSaveData kkm_last_timestamp [15:22:08]File name is /storage/kkm_last_timestamp [15:22:08]Write 4 bytes [15:22:08]NVStorageSaveData done [15:22:08]ExternCall_PrintAddStr [15:22:08]wPrintStart [15:22:08]Write to MH i2c: 01 00 00 1B FB 16 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: 01 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: 01 07 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: 01 07 00 1B FB 00 00 00 00 00 FF 0F 2B [15:22:08]RasterBufferAndPrint [15:22:08]line Счет N : (1)220302 [15:22:08]line ИНН: 02508201610067 [15:22:08]line Контрольно-Кассовый Чек [15:22:08]line ПРОДАЖА [15:22:08]line ТРК (МРК, ГНК) : 24 [15:22:08]line Товар: 2710124500 [15:22:08]line Аи-95-К-5 [15:22:08]line 2.700 * 74.20 [15:22:08]line = 200.34 [15:22:08]line НДС 12% НСП 1% [15:22:08]line > о реализуемом товаре [15:22:08]line ОКРУГЛЕНИЕ: -0.34 [15:22:08]line ИТОГО: 200.00 [15:22:08]line Внесено: 200.00 [15:22:08]line СДАЧА: 0.00 [15:22:08]line НСП 1% : 1.77 [15:22:08]line НДС 12% : 21.27 [15:22:08]line Наличными: 200.00 [15:22:08]line Безнал.: 0.00 [15:22:08]line Место: АЗС № 161 "Партнер Нефть" [15:22:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:22:08]line СНО: Общий режим [15:22:08]line Чек 217 20.10.2024 15:22 [15:22:08]line Смена: 534 ФФД: 1.0 [15:22:08]line ЗНМ: 0300000104 [15:22:08]line РНМ: 0000000000091764 [15:22:08]line Версия ККМ: 001 [15:22:08]line ФМ: 0000000000871759 [15:22:08]line ФД: 165735 [15:22:08]line ФПД: 99123364553852 [15:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152220&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165735&fm=99123364553852&tin=02508201610067®Number=0000000000091764&sum=20000 [15:22:09]OFD Sender: Processing packet 165735 [packets to send 48, broken 47] [15:22:09]ProducePacketName [15:22:09]name=ofd_packets/00165735 [15:22:09]OFD Sender: To server: pG, [15:22:09]CommunicateWithHost lk.salyk.kg:30040 [15:22:09]ConnectInit lk.salyk.kg [15:22:09]written 0, free lines is 4095 [15:22:09]Connected sock=10 [15:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B7 F5 07 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 2C 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 87 02 00 35 04 06 00 5A 26 F4 EE E4 7C 67 D4 DD FD 5C E3 55 DF [15:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A1 98 47 00 A2 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 31 37 35 39 10 04 04 00 67 87 02 00 F4 03 04 00 9D C6 14 67 B6 04 01 00 00 94 71 32 2C 2B 5E 34 69 [15:22:09]CommunicateWithHost err = 0 [15:22:09]CheckOFDResponse [15:22:09]1017 (14) - 77093643461234 [15:22:09]1041 (16) - 0000000000871759 [15:22:09]1040 (4) - 165735 [15:22:09]1012 (4) - 20.10.2024 09:00 [15:22:09]1206 (1) - 0 [15:22:09]OFD Sender: Remove packet 165735 [15:22:09]ProducePacketName [15:22:09]name=ofd_packets/00165735 [15:22:09]NVStorageDeleteData [15:22:09]Write to MH i2c: 01 00 00 46 FB 41 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 07 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 07 00 46 FB 00 00 00 00 00 D3 0C 27 [15:22:09]RasterBufferAndPrint [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]written 0, free lines is 3290 [15:22:09]MH_Cut [15:22:09]Write to MH i2c: D1 01 00 4D FB 01 1A [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 01 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 01 00 4D FB 00 19 [15:22:09]Write to MH i2c: 01 00 00 4E FB 49 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]OFD Sender: No OFD packet to send [15:22:10]*** Cut start [15:22:10]*** Partial cut [15:22:10]*** CUTSNS_PIN = 1 [15:22:10]*** CUTSNS_PIN = 0 [15:22:10]*** Brake cut motor [15:22:10]Read from MH i2c: 01 [15:22:10]MH_I2C_Read... [15:22:10]*** Stop cut motor [15:22:10]*** Cut end [15:22:10]Read from MH i2c: 01 07 00 [15:22:10]MH_I2C_Read... [15:22:11]Read from MH i2c: 01 07 00 4E FB 00 00 00 00 00 FF 0F 5E [15:22:11]process_action close_receipt done [15:22:11]requested_data is exist [15:22:11]produce_requested_data [15:22:11]requested_item fm.sn is exist - process it [15:22:11]wFMCommunicate request_size=4 [15:22:11]MH_SAM_APDU [15:22:11]CAPDU: 80 11 00 00 [15:22:11]Write to MH i2c: E2 08 00 4F FB 80 11 00 00 00 00 00 00 C4 [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:11]Read from MH i2c: E2 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 17 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 17 00 4F FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [15:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:22:11]wFMCommunicate OK [15:22:11]requested_item fd.num is exist - process it [15:22:11]SAM_PROTO_GetFieldsCounters [15:22:11]wFMCommunicate request_size=4 [15:22:11]MH_SAM_APDU [15:22:11]CAPDU: 80 13 00 00 [15:22:11]Write to MH i2c: E2 08 00 50 FB 80 13 00 00 00 00 00 00 C7 [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:11]Read from MH i2c: E2 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 62 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 62 00 50 FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 87 02 00 0E 04 04 00 16 02 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 82 [15:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 87 02 00 0E 04 04 00 16 02 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:22:11]wFMCommunicate OK [15:22:11]SAM_PROTO_GetFieldsCounters done [15:22:11]requested_item shift.num is exist - process it [15:22:11]requested_item shift.opened is exist - process it [15:22:11]req_shift_opened [15:22:11]FM_GetShiftState [15:22:11]SAM_PROTO_GetShiftState [15:22:11]wFMCommunicate request_size=4 [15:22:11]MH_SAM_APDU [15:22:11]CAPDU: 80 13 01 00 [15:22:11]Write to MH i2c: E2 08 00 51 FB 80 13 01 00 00 00 00 00 C9 [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:11]Read from MH i2c: E2 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 0E 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 0E 00 51 FB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 11 [15:22:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:22:11]wFMCommunicate OK [15:22:11]SAM_PROTO_GetShiftState done [15:22:11]FM_GetShiftState done [15:22:11]req_shift_opened done [15:22:11]requested_item shift.open_date is exist - process it [15:22:11]req_shift_open_date [15:22:11]req_shift_open_date done [15:22:11]produce_requested_data done [15:22:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165735,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:22:11]process_action_free close_receipt [15:22:11]json_value_free [15:22:11]json_value_free done [15:22:11]process_json_proto returns [15:22:11]Send response to host [15:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165735,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:22:11]free response buf [15:22:11]execute_script done [15:22:11]execute_script returns [15:22:11]free content buf [15:22:11]Sock 7.Close socket [15:22:11]Sock 7.Thread stoped [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:15]accept exits with 9 [15:23:15]New connection [15:23:15]New thread 3066776932 created [15:23:15]Thread 3066920292 joined [15:23:15]Waiting for new connection... [15:23:15] Sock 9.Parse request [15:23:15]Sock 9.Check first char [15:23:15]Sock 9.First char is OK [15:23:15]request: POST /json_proto HTTP/1.0 [15:23:15]Method: POST [15:23:15]URL: /json_proto [15:23:15]Method is POST - this is cgi request [15:23:15]url: /json_proto [15:23:15]query_string will be loaded in cgi processing [15:23:15]execute_cgi json_proto POST (null) [15:23:15]execute_cgi path=json_proto method=POST [15:23:15]POST find Content-Length [15:23:15]Host: 172.17.53.195:8080 [15:23:15]Content-Length: 766 [15:23:15]Content-Type: application/json [15:23:15] [15:23:15]POST finish read [15:23:15]Found Content-Length = 766 [15:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:15]execute_script... [15:23: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)220303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:15]POST & json_proto [15:23:15]process_json_proto [15:23:15]json parsed OK: [15:23:15]protocol is kg_v1.0 [15:23:15]action value=close_receipt [15:23:15]process_action close_receipt [15:23:15]cmd_close_receipt [15:23:15]MH_GetDate [15:23:15]Write to MH i2c: F0 00 00 52 FB 3C [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 09 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 09 00 52 FB 00 70 20 15 67 21 48 4A 65 69 [15:23:15]GetLastDocTimeStamp 1729437740 [15:23:15]current date 1729437808 [15:23:15]FM_GetShiftState [15:23:15]SAM_PROTO_GetShiftState [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 13 01 00 [15:23:15]Write to MH i2c: E2 08 00 53 FB 80 13 01 00 00 00 00 00 CB [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 53 FB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 13 [15:23:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:23:15]wFMCommunicate OK [15:23:15]SAM_PROTO_GetShiftState done [15:23:15]FM_GetShiftState done [15:23:15]opened in 1729384561 [15:23:15]opened+sec_in_day 1729470961 [15:23:15]quantity*price = 35055 [15:23:15]sum+1 = 35057 [15:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 218 20.10.2024 15:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165736 ФПД: 5704343853709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152328&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165736&fm=5704343853709&tin=02508201610067®Number=0000000000091764&sum=35056 [15:23:16]StoreToDocumentArchive [15:23:16]shift 534 fd 165736 [15:23:16]save to /storage/0534/doc_00165736 [15:23:16]save last doc name /storage/0534/doc_00165736 to /storage/kkm_last_doc_name [15:23:16]save OK [15:23:16]Clear old archive folders... [15:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:16]tlvbuf is 014569B0 [15:23:16]SAM_PROTO_ClearQueue [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 09 00 00 [15:23:16]Write to MH i2c: E2 08 00 60 FB 80 09 00 00 00 00 00 00 CD [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 60 FB 00 90 00 CF [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]SAM_PROTO_ClearQueue done [15:23:16]KKMCreateOFDPacket [15:23:16]OFDProtocolAddRootSTLVToBuf [15:23:16]FM_MakeSignedData [15:23:16]FM_MakeSignedData [15:23:16]SAM_PROTO_SignData [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 01 02 [15:23:16]Write to MH i2c: E2 08 00 61 FB 80 0D 01 02 00 00 00 00 D5 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 61 FB 00 90 00 D0 [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=255 [15:23:16]MH_SAM_APDU [15:23: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 70 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 87 02 00 35 04 06 00 05 [15:23:16]Write to MH i2c: E2 02 01 62 FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 70 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 87 02 00 35 04 06 00 05 00 00 DA [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 62 FB 00 90 00 D1 [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=10 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 02 02 05 30 25 63 9A 8D [15:23:16]Write to MH i2c: E2 0D 00 63 FB 80 0D 02 02 05 00 30 25 63 9A 8D 00 00 C1 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 63 FB 00 90 00 D2 [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 03 02 [15:23:16]Write to MH i2c: E2 08 00 64 FB 80 0D 03 02 00 00 00 00 DA [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 0B 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 0B 00 64 FB 00 07 0E 99 12 AD AE 92 20 90 00 A8 [15:23:16]RAPDU: 07 0E 99 12 AD AE 92 20 90 00 [15:23:16]wFMCommunicate OK [15:23:16]SAM_PROTO_SignData done [15:23:16]FM_MakeSignedData done [15:23:16]CreateOFDProtocolMessage [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 11 00 00 [15:23:16]Write to MH i2c: E2 08 00 65 FB 80 11 00 00 00 00 00 00 DA [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:17]Read from MH i2c: E2 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 17 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 17 00 65 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [15:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:23:17]wFMCommunicate OK [15:23:17]CreateOFDProtocolMessage done [15:23:17]OFDSenderStorePacket 165736 [15:23:17]StoreOFDPacket docnum=165736 [15:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 19 07 01 9D 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 70 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 87 02 00 35 04 06 00 05 30 25 63 9A 8D 07 0E 99 12 AD AE 92 20 [15:23:17]CheckFolder [15:23:17]dirname=/storage/ofd_packets [15:23:17]CheckFolder done [15:23:17]ProducePacketName [15:23:17]name=ofd_packets/00165736 [15:23:17]NVStorageSaveData ofd_packets/00165736 [15:23:17]File name is /storage/ofd_packets/00165736 [15:23:17]Write 301 bytes [15:23:17]NVStorageSaveData done [15:23:17]OFDSenderStorePacket done [15:23:17]KKMCreateOFDPacket done [15:23:17]NVStorageSaveData kkm_last_timestamp [15:23:17]File name is /storage/kkm_last_timestamp [15:23:17]Write 4 bytes [15:23:17]NVStorageSaveData done [15:23:17]ExternCall_PrintAddStr [15:23:17]wPrintStart [15:23:17]Write to MH i2c: 01 00 00 66 FB 61 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 66 FB 00 00 00 00 00 FF 0F 76 [15:23:17]RasterBufferAndPrint [15:23:17]line Счет N : (1)220303 [15:23:17]line ИНН: 02508201610067 [15:23:17]line Контрольно-Кассовый Чек [15:23:17]line ПРОДАЖА [15:23:17]line ТРК (МРК, ГНК) : 33 [15:23:17]line Товар: 2710124130 [15:23:17]line Аи-92-К-5 [15:23:17]line 5.240 * 66.90 [15:23:17]line = 350.56 [15:23:17]line НДС 12% НСП 1% [15:23:17]line > о реализуемом товаре [15:23:17]line ИТОГО: 350.56 [15:23:17]line НСП 1% : 3.10 [15:23:17]line НДС 12% : 37.23 [15:23:17]line Наличными: 0.00 [15:23:17]line Безнал.: 350.56 [15:23:17]line Место: АЗС № 161 "Партнер Нефть" [15:23:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:23:17]line СНО: Общий режим [15:23:17]line Чек 218 20.10.2024 15:23 [15:23:17]line Смена: 534 ФФД: 1.0 [15:23:17]line ЗНМ: 0300000104 [15:23:17]line РНМ: 0000000000091764 [15:23:17]line Версия ККМ: 001 [15:23:17]line Платежная система: Mbank [15:23:17]line ФМ: 0000000000871759 [15:23:17]line ФД: 165736 [15:23:17]line ФПД: 5704343853709 [15:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152328&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165736&fm=5704343853709&tin=02508201610067®Number=0000000000091764&sum=35056 [15:23:17]written 0, free lines is 4095 [15:23:17]OFD Sender: Processing packet 165736 [packets to send 48, broken 47] [15:23:17]ProducePacketName [15:23:17]name=ofd_packets/00165736 [15:23:17]OFD Sender: To server: pG, [15:23:17]CommunicateWithHost lk.salyk.kg:30040 [15:23:17]ConnectInit lk.salyk.kg [15:23:17]Connected sock=10 [15:23:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 19 07 01 9D 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 70 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 87 02 00 35 04 06 00 05 30 25 63 9A 8D 07 0E 99 12 AD AE 92 20 [15:23:17]Write to MH i2c: 01 00 00 8F FB 8A [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 8F FB 00 00 00 00 00 F7 0C 94 [15:23:17]RasterBufferAndPrint [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]written 0, free lines is 3326 [15:23:17]MH_Cut [15:23:17]Write to MH i2c: D1 01 00 96 FB 01 63 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 01 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 01 00 96 FB 00 62 [15:23:17]Write to MH i2c: 01 00 00 97 FB 92 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9A F3 47 00 3E 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 87 02 00 F4 03 04 00 E1 C6 14 67 B6 04 01 00 00 2D 14 6A 45 7A 67 E2 24 [15:23:17]CommunicateWithHost err = 0 [15:23:17]CheckOFDResponse [15:23:17]1017 (14) - 77093643461234 [15:23:17]1041 (16) - 0000000000871759 [15:23:17]1040 (4) - 165736 [15:23:17]1012 (4) - 20.10.2024 09:01 [15:23:17]1206 (1) - 0 [15:23:17]OFD Sender: Remove packet 165736 [15:23:17]ProducePacketName [15:23:17]name=ofd_packets/00165736 [15:23:17]NVStorageDeleteData [15:23:18]OFD Sender: No OFD packet to send [15:23:18]*** Cut start [15:23:18]*** Partial cut [15:23:18]*** CUTSNS_PIN = 1 [15:23:18]*** CUTSNS_PIN = 0 [15:23:18]*** Brake cut motor [15:23:18]Read from MH i2c: 01 [15:23:18]MH_I2C_Read... [15:23:18]*** Stop cut motor [15:23:18]*** Cut end [15:23:18]Read from MH i2c: 01 07 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: 01 07 00 97 FB 00 00 00 00 00 FF 0F A7 [15:23:18]process_action close_receipt done [15:23:18]requested_data is exist [15:23:18]produce_requested_data [15:23:18]requested_item fm.sn is exist - process it [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 11 00 00 [15:23:18]Write to MH i2c: E2 08 00 98 FB 80 11 00 00 00 00 00 00 0D [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 17 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 17 00 98 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 65 [15:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:23:18]wFMCommunicate OK [15:23:18]requested_item fd.num is exist - process it [15:23:18]SAM_PROTO_GetFieldsCounters [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 13 00 00 [15:23:18]Write to MH i2c: E2 08 00 99 FB 80 13 00 00 00 00 00 00 10 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 62 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 62 00 99 FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 87 02 00 0E 04 04 00 16 02 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 CF [15:23:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 87 02 00 0E 04 04 00 16 02 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:23:19]wFMCommunicate OK [15:23:19]SAM_PROTO_GetFieldsCounters done [15:23:19]requested_item shift.num is exist - process it [15:23:19]requested_item shift.opened is exist - process it [15:23:19]req_shift_opened [15:23:19]FM_GetShiftState [15:23:19]SAM_PROTO_GetShiftState [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 13 01 00 [15:23:19]Write to MH i2c: E2 08 00 9A FB 80 13 01 00 00 00 00 00 12 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 0E 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 0E 00 9A FB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5A [15:23:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:23:19]wFMCommunicate OK [15:23:19]SAM_PROTO_GetShiftState done [15:23:19]FM_GetShiftState done [15:23:19]req_shift_opened done [15:23:19]requested_item shift.open_date is exist - process it [15:23:19]req_shift_open_date [15:23:19]req_shift_open_date done [15:23:19]produce_requested_data done [15:23:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165736,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:23:19]process_action_free close_receipt [15:23:19]json_value_free [15:23:19]json_value_free done [15:23:19]process_json_proto returns [15:23:19]Send response to host [15:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165736,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:23:19]free response buf [15:23:19]execute_script done [15:23:19]execute_script returns [15:23:19]free content buf [15:23:19]Sock 9.Close socket [15:23:19]Sock 9.Thread stoped [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:33]accept exits with 7 [15:24:33]New connection [15:24:33]New thread 3066920292 created [15:24:33]Thread 3066776932 joined [15:24:33]Waiting for new connection... [15:24:33] Sock 7.Parse request [15:24:33]Sock 7.Check first char [15:24:33]Sock 7.First char is OK [15:24:33]request: POST /json_proto HTTP/1.0 [15:24:33]Method: POST [15:24:33]URL: /json_proto [15:24:33]Method is POST - this is cgi request [15:24:33]url: /json_proto [15:24:33]query_string will be loaded in cgi processing [15:24:33]execute_cgi json_proto POST (null) [15:24:33]execute_cgi path=json_proto method=POST [15:24:33]POST find Content-Length [15:24:33]Host: 172.17.53.195:8080 [15:24:33]Content-Length: 678 [15:24:33]Content-Type: application/json [15:24:33] [15:24:33]POST finish read [15:24:33]Found Content-Length = 678 [15:24:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:33]execute_script... [15:24: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)220304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:33]POST & json_proto [15:24:33]process_json_proto [15:24:33]json parsed OK: [15:24:33]protocol is kg_v1.0 [15:24:33]action value=close_receipt [15:24:33]process_action close_receipt [15:24:33]cmd_close_receipt [15:24:33]MH_GetDate [15:24:33]Write to MH i2c: F0 00 00 9B FB 85 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: F0 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: F0 09 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: F0 09 00 9B FB 00 BE 20 15 67 21 48 4A 65 00 [15:24:33]GetLastDocTimeStamp 1729437808 [15:24:33]current date 1729437886 [15:24:33]FM_GetShiftState [15:24:33]SAM_PROTO_GetShiftState [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 13 01 00 [15:24:33]Write to MH i2c: E2 08 00 9C FB 80 13 01 00 00 00 00 00 14 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 0E 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 0E 00 9C FB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5C [15:24:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:24:33]wFMCommunicate OK [15:24:33]SAM_PROTO_GetShiftState done [15:24:33]FM_GetShiftState done [15:24:33]opened in 1729384561 [15:24:33]opened+sec_in_day 1729470961 [15:24:33]quantity*price = 90047 [15:24:33]sum+1 = 90048 [15:24:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 219 20.10.2024 15:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165737 ФПД: 95125702720072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152446&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165737&fm=95125702720072&tin=02508201610067®Number=0000000000091764&sum=90000 [15:24:35]StoreToDocumentArchive [15:24:35]shift 534 fd 165737 [15:24:35]save to /storage/0534/doc_00165737 [15:24:35]save last doc name /storage/0534/doc_00165737 to /storage/kkm_last_doc_name [15:24:35]save OK [15:24:35]Clear old archive folders... [15:24:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:35]tlvbuf is 0166AEC0 [15:24:35]SAM_PROTO_ClearQueue [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 09 00 00 [15:24:35]Write to MH i2c: E2 08 00 A9 FB 80 09 00 00 00 00 00 00 16 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 A9 FB 00 90 00 18 [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]SAM_PROTO_ClearQueue done [15:24:35]KKMCreateOFDPacket [15:24:35]OFDProtocolAddRootSTLVToBuf [15:24:35]FM_MakeSignedData [15:24:35]FM_MakeSignedData [15:24:35]SAM_PROTO_SignData [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 01 02 [15:24:35]Write to MH i2c: E2 08 00 AA FB 80 0D 01 02 00 00 00 00 1E [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 AA FB 00 90 00 19 [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]wFMCommunicate request_size=255 [15:24:35]MH_SAM_APDU [15:24: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 BE 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 87 02 00 35 04 06 00 56 [15:24:35]Write to MH i2c: E2 02 01 AB FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 BE 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 87 02 00 35 04 06 00 56 00 00 66 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 AB FB 00 90 00 1A [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]wFMCommunicate request_size=10 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 02 02 05 84 2D B8 3A 48 [15:24:35]Write to MH i2c: E2 0D 00 AC FB 80 0D 02 02 05 00 84 2D B8 3A 48 00 00 16 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 AC FB 00 90 00 1B [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 03 02 [15:24:35]Write to MH i2c: E2 08 00 AD FB 80 0D 03 02 00 00 00 00 23 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 0B 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 0B 00 AD FB 00 6D 5B 38 93 24 10 B6 C6 90 00 67 [15:24:35]RAPDU: 6D 5B 38 93 24 10 B6 C6 90 00 [15:24:35]wFMCommunicate OK [15:24:35]SAM_PROTO_SignData done [15:24:35]FM_MakeSignedData done [15:24:35]CreateOFDProtocolMessage [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 11 00 00 [15:24:35]Write to MH i2c: E2 08 00 AE FB 80 11 00 00 00 00 00 00 23 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 AE FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [15:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:24:35]wFMCommunicate OK [15:24:35]CreateOFDProtocolMessage done [15:24:35]OFDSenderStorePacket 165737 [15:24:35]StoreOFDPacket docnum=165737 [15:24:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5C 09 07 01 78 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 BE 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 87 02 00 35 04 06 00 56 84 2D B8 3A 48 6D 5B 38 93 24 10 B6 C6 [15:24:35]CheckFolder [15:24:35]dirname=/storage/ofd_packets [15:24:35]CheckFolder done [15:24:35]ProducePacketName [15:24:35]name=ofd_packets/00165737 [15:24:35]NVStorageSaveData ofd_packets/00165737 [15:24:35]File name is /storage/ofd_packets/00165737 [15:24:35]Write 301 bytes [15:24:35]NVStorageSaveData done [15:24:35]OFDSenderStorePacket done [15:24:35]KKMCreateOFDPacket done [15:24:35]NVStorageSaveData kkm_last_timestamp [15:24:35]File name is /storage/kkm_last_timestamp [15:24:35]Write 4 bytes [15:24:35]NVStorageSaveData done [15:24:35]ExternCall_PrintAddStr [15:24:35]wPrintStart [15:24:35]Write to MH i2c: 01 00 00 AF FB AA [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 AF FB 00 00 00 00 00 FF 0F BF [15:24:35]RasterBufferAndPrint [15:24:35]line Счет N : (1)220304 [15:24:35]line ИНН: 02508201610067 [15:24:35]line Контрольно-Кассовый Чек [15:24:35]line ПРОДАЖА [15:24:35]line ТРК (МРК, ГНК) : 13 [15:24:35]line Товар: 2710124130 [15:24:35]line Аи-92-К-5 [15:24:35]line 13.460 * 66.90 [15:24:35]line = 900.47 [15:24:35]line НДС 12% НСП 1% [15:24:35]line > о реализуемом товаре [15:24:35]line ОКРУГЛЕНИЕ: -0.47 [15:24:35]line ИТОГО: 900.00 [15:24:35]line Внесено: 900.00 [15:24:35]line СДАЧА: 0.00 [15:24:35]line НСП 1% : 7.97 [15:24:35]line НДС 12% : 95.62 [15:24:35]line Наличными: 900.00 [15:24:35]line Безнал.: 0.00 [15:24:35]line Место: АЗС № 161 "Партнер Нефть" [15:24:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:24:35]line СНО: Общий режим [15:24:35]line Чек 219 20.10.2024 15:24 [15:24:35]line Смена: 534 ФФД: 1.0 [15:24:35]line ЗНМ: 0300000104 [15:24:35]line РНМ: 0000000000091764 [15:24:35]line Версия ККМ: 001 [15:24:35]line ФМ: 0000000000871759 [15:24:35]line ФД: 165737 [15:24:35]line ФПД: 95125702720072 [15:24:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152446&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165737&fm=95125702720072&tin=02508201610067®Number=0000000000091764&sum=90000 [15:24:35]OFD Sender: Processing packet 165737 [packets to send 48, broken 47] [15:24:35]ProducePacketName [15:24:35]name=ofd_packets/00165737 [15:24:35]OFD Sender: To server: pG, [15:24:35]CommunicateWithHost lk.salyk.kg:30040 [15:24:35]ConnectInit lk.salyk.kg [15:24:35]written 0, free lines is 4095 [15:24:35]Connected sock=10 [15:24:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5C 09 07 01 78 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 BE 20 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 87 02 00 35 04 06 00 56 84 2D B8 3A 48 6D 5B 38 93 24 10 B6 C6 [15:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 81 1E 47 00 C3 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 31 37 35 39 10 04 04 00 69 87 02 00 F4 03 04 00 30 C7 14 67 B6 04 01 00 00 B8 70 DA 7F 21 5A 1D FF [15:24:36]CommunicateWithHost err = 0 [15:24:36]CheckOFDResponse [15:24:36]1017 (14) - 77093643461234 [15:24:36]1041 (16) - 0000000000871759 [15:24:36]1040 (4) - 165737 [15:24:36]1012 (4) - 20.10.2024 09:02 [15:24:36]1206 (1) - 0 [15:24:36]OFD Sender: Remove packet 165737 [15:24:36]ProducePacketName [15:24:36]name=ofd_packets/00165737 [15:24:36]NVStorageDeleteData [15:24:36]Write to MH i2c: 01 00 00 DA FB D5 [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 07 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 07 00 DA FB 00 00 00 00 00 CD 0C B5 [15:24:36]RasterBufferAndPrint [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]written 0, free lines is 3284 [15:24:36]MH_Cut [15:24:36]Write to MH i2c: D1 01 00 E1 FB 01 AE [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 01 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 01 00 E1 FB 00 AD [15:24:36]Write to MH i2c: 01 00 00 E2 FB DD [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]OFD Sender: No OFD packet to send [15:24:37]*** Cut start [15:24:37]*** Partial cut [15:24:37]*** CUTSNS_PIN = 1 [15:24:37]*** CUTSNS_PIN = 0 [15:24:37]*** Brake cut motor [15:24:37]Read from MH i2c: 01 [15:24:37]MH_I2C_Read... [15:24:37]*** Stop cut motor [15:24:37]*** Cut end [15:24:37]Read from MH i2c: 01 07 00 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: 01 07 00 E2 FB 00 00 00 00 00 FF 0F F2 [15:24:37]process_action close_receipt done [15:24:37]requested_data is exist [15:24:37]produce_requested_data [15:24:37]requested_item fm.sn is exist - process it [15:24:37]wFMCommunicate request_size=4 [15:24:37]MH_SAM_APDU [15:24:37]CAPDU: 80 11 00 00 [15:24:37]Write to MH i2c: E2 08 00 E3 FB 80 11 00 00 00 00 00 00 58 [15:24:37]Write i2c OK [15:24:37]MH_I2C_Read... [15:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:37]Read from MH i2c: E2 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 17 00 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 17 00 E3 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B0 [15:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:24:37]wFMCommunicate OK [15:24:37]requested_item fd.num is exist - process it [15:24:37]SAM_PROTO_GetFieldsCounters [15:24:37]wFMCommunicate request_size=4 [15:24:37]MH_SAM_APDU [15:24:37]CAPDU: 80 13 00 00 [15:24:37]Write to MH i2c: E2 08 00 E4 FB 80 13 00 00 00 00 00 00 5B [15:24:37]Write i2c OK [15:24:37]MH_I2C_Read... [15:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:37]Read from MH i2c: E2 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 62 00 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 62 00 E4 FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 87 02 00 0E 04 04 00 16 02 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 1E [15:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 87 02 00 0E 04 04 00 16 02 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:24:37]wFMCommunicate OK [15:24:37]SAM_PROTO_GetFieldsCounters done [15:24:37]requested_item shift.num is exist - process it [15:24:37]requested_item shift.opened is exist - process it [15:24:37]req_shift_opened [15:24:37]FM_GetShiftState [15:24:37]SAM_PROTO_GetShiftState [15:24:37]wFMCommunicate request_size=4 [15:24:37]MH_SAM_APDU [15:24:37]CAPDU: 80 13 01 00 [15:24:37]Write to MH i2c: E2 08 00 E5 FB 80 13 01 00 00 00 00 00 5D [15:24:37]Write i2c OK [15:24:37]MH_I2C_Read... [15:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:38]Read from MH i2c: E2 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: E2 0E 00 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: E2 0E 00 E5 FB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A5 [15:24:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:24:38]wFMCommunicate OK [15:24:38]SAM_PROTO_GetShiftState done [15:24:38]FM_GetShiftState done [15:24:38]req_shift_opened done [15:24:38]requested_item shift.open_date is exist - process it [15:24:38]req_shift_open_date [15:24:38]req_shift_open_date done [15:24:38]produce_requested_data done [15:24:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165737,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:24:38]process_action_free close_receipt [15:24:38]json_value_free [15:24:38]json_value_free done [15:24:38]process_json_proto returns [15:24:38]Send response to host [15:24:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165737,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:24:38]free response buf [15:24:38]execute_script done [15:24:38]execute_script returns [15:24:38]free content buf [15:24:38]Sock 7.Close socket [15:24:38]Sock 7.Thread stoped [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:24]accept exits with 9 [15:27:24]New connection [15:27:24]New thread 3066776932 created [15:27:24]Thread 3066920292 joined [15:27:24]Waiting for new connection... [15:27:24] Sock 9.Parse request [15:27:24]Sock 9.Check first char [15:27:24]Sock 9.First char is OK [15:27:24]request: POST /json_proto HTTP/1.0 [15:27:24]Method: POST [15:27:24]URL: /json_proto [15:27:24]Method is POST - this is cgi request [15:27:24]url: /json_proto [15:27:24]query_string will be loaded in cgi processing [15:27:24]execute_cgi json_proto POST (null) [15:27:24]execute_cgi path=json_proto method=POST [15:27:24]POST find Content-Length [15:27:24]Host: 172.17.53.195:8080 [15:27:24]Content-Length: 676 [15:27:24]Content-Type: application/json [15:27:24] [15:27:24]POST finish read [15:27:24]Found Content-Length = 676 [15:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220305", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:24]execute_script... [15:27: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)220305", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:24]POST & json_proto [15:27:24]process_json_proto [15:27:24]json parsed OK: [15:27:24]protocol is kg_v1.0 [15:27:24]action value=close_receipt [15:27:24]process_action close_receipt [15:27:24]cmd_close_receipt [15:27:24]MH_GetDate [15:27:24]Write to MH i2c: F0 00 00 E6 FB D0 [15:27:24]Write i2c OK [15:27:24]MH_I2C_Read... [15:27:24]Read from MH i2c: F0 [15:27:24]MH_I2C_Read... [15:27:24]Read from MH i2c: F0 09 00 [15:27:24]MH_I2C_Read... [15:27:24]Read from MH i2c: F0 09 00 E6 FB 00 69 21 15 67 21 48 4A 65 F7 [15:27:24]GetLastDocTimeStamp 1729437886 [15:27:24]current date 1729438057 [15:27:24]FM_GetShiftState [15:27:24]SAM_PROTO_GetShiftState [15:27:24]wFMCommunicate request_size=4 [15:27:24]MH_SAM_APDU [15:27:24]CAPDU: 80 13 01 00 [15:27:24]Write to MH i2c: E2 08 00 E7 FB 80 13 01 00 00 00 00 00 5F [15:27:24]Write i2c OK [15:27:24]MH_I2C_Read... [15:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:24]Read from MH i2c: E2 [15:27:24]MH_I2C_Read... [15:27:24]Read from MH i2c: E2 0E 00 [15:27:24]MH_I2C_Read... [15:27:24]Read from MH i2c: E2 0E 00 E7 FB 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A7 [15:27:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:27:24]wFMCommunicate OK [15:27:24]SAM_PROTO_GetShiftState done [15:27:24]FM_GetShiftState done [15:27:24]opened in 1729384561 [15:27:24]opened+sec_in_day 1729470961 [15:27:24]quantity*price = 99974 [15:27:24]sum+1 = 99975 [15:27:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 220 20.10.2024 15:27 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165738 ФПД: 236370592091822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152737&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165738&fm=236370592091822&tin=02508201610067®Number=0000000000091764&sum=99900 [15:27:25]StoreToDocumentArchive [15:27:25]shift 534 fd 165738 [15:27:25]save to /storage/0534/doc_00165738 [15:27:25]save last doc name /storage/0534/doc_00165738 to /storage/kkm_last_doc_name [15:27:25]save OK [15:27:25]Clear old archive folders... [15:27:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:27:25]tlvbuf is 014CB3B0 [15:27:25]SAM_PROTO_ClearQueue [15:27:25]wFMCommunicate request_size=4 [15:27:25]MH_SAM_APDU [15:27:25]CAPDU: 80 09 00 00 [15:27:25]Write to MH i2c: E2 08 00 F4 FB 80 09 00 00 00 00 00 00 61 [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 03 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 03 00 F4 FB 00 90 00 63 [15:27:25]RAPDU: 90 00 [15:27:25]wFMCommunicate OK [15:27:25]SAM_PROTO_ClearQueue done [15:27:25]KKMCreateOFDPacket [15:27:25]OFDProtocolAddRootSTLVToBuf [15:27:25]FM_MakeSignedData [15:27:25]FM_MakeSignedData [15:27:25]SAM_PROTO_SignData [15:27:25]wFMCommunicate request_size=4 [15:27:25]MH_SAM_APDU [15:27:25]CAPDU: 80 0D 01 02 [15:27:25]Write to MH i2c: E2 08 00 F5 FB 80 0D 01 02 00 00 00 00 69 [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 03 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 03 00 F5 FB 00 90 00 64 [15:27:25]RAPDU: 90 00 [15:27:25]wFMCommunicate OK [15:27:25]wFMCommunicate request_size=255 [15:27:25]MH_SAM_APDU [15:27: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 DC 00 00 00 F4 03 04 00 69 21 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 87 02 00 35 04 06 00 D6 FA 51 2D [15:27:25]Write to MH i2c: E2 02 01 F6 FB 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 DC 00 00 00 F4 03 04 00 69 21 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 87 02 00 35 04 06 00 D6 FA 51 2D 00 00 09 [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 03 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 03 00 F6 FB 00 90 00 65 [15:27:25]RAPDU: 90 00 [15:27:25]wFMCommunicate OK [15:27:25]wFMCommunicate request_size=7 [15:27:25]MH_SAM_APDU [15:27:25]CAPDU: 80 0D 02 02 02 4E AE [15:27:25]Write to MH i2c: E2 0A 00 F7 FB 80 0D 02 02 02 00 4E AE 00 00 6C [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 03 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 03 00 F7 FB 00 90 00 66 [15:27:25]RAPDU: 90 00 [15:27:25]wFMCommunicate OK [15:27:25]wFMCommunicate request_size=4 [15:27:25]MH_SAM_APDU [15:27:25]CAPDU: 80 0D 03 02 [15:27:25]Write to MH i2c: E2 08 00 F8 FB 80 0D 03 02 00 00 00 00 6E [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 0B 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 0B 00 F8 FB 00 B7 3A E0 4B 2D 2E FA 17 90 00 F7 [15:27:25]RAPDU: B7 3A E0 4B 2D 2E FA 17 90 00 [15:27:25]wFMCommunicate OK [15:27:25]SAM_PROTO_SignData done [15:27:25]FM_MakeSignedData done [15:27:25]CreateOFDProtocolMessage [15:27:25]wFMCommunicate request_size=4 [15:27:25]MH_SAM_APDU [15:27:25]CAPDU: 80 11 00 00 [15:27:25]Write to MH i2c: E2 08 00 F9 FB 80 11 00 00 00 00 00 00 6E [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 17 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 17 00 F9 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [15:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:27:25]wFMCommunicate OK [15:27:25]CreateOFDProtocolMessage done [15:27:25]OFDSenderStorePacket 165738 [15:27:25]StoreOFDPacket docnum=165738 [15:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 27 F9 04 01 33 40 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 DC 00 00 00 F4 03 04 00 69 21 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 87 02 00 35 04 06 00 D6 FA 51 2D 4E AE B7 3A E0 4B 2D 2E FA 17 [15:27:25]CheckFolder [15:27:25]dirname=/storage/ofd_packets [15:27:25]CheckFolder done [15:27:25]ProducePacketName [15:27:25]name=ofd_packets/00165738 [15:27:25]NVStorageSaveData ofd_packets/00165738 [15:27:25]File name is /storage/ofd_packets/00165738 [15:27:25]Write 298 bytes [15:27:25]NVStorageSaveData done [15:27:25]OFDSenderStorePacket done [15:27:25]KKMCreateOFDPacket done [15:27:25]NVStorageSaveData kkm_last_timestamp [15:27:25]File name is /storage/kkm_last_timestamp [15:27:25]Write 4 bytes [15:27:25]NVStorageSaveData done [15:27:25]ExternCall_PrintAddStr [15:27:25]wPrintStart [15:27:25]Write to MH i2c: 01 00 00 FA FB F5 [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: 01 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: 01 07 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: 01 07 00 FA FB 00 00 00 00 00 FF 0F 0A [15:27:25]RasterBufferAndPrint [15:27:25]line Счет N : (1)220305 [15:27:25]line ИНН: 02508201610067 [15:27:25]line Контрольно-Кассовый Чек [15:27:25]line ПРОДАЖА [15:27:25]line ТРК (МРК, ГНК) : 11 [15:27:25]line Товар: 2710194210 [15:27:25]line ДТ-К-5 [15:27:25]line 13.120 * 76.20 [15:27:25]line = 999.74 [15:27:25]line НДС 12% НСП 1% [15:27:25]line > о реализуемом товаре [15:27:25]line ОКРУГЛЕНИЕ: -0.74 [15:27:25]line ИТОГО: 999.00 [15:27:25]line Внесено: 1000.00 [15:27:25]line СДАЧА: 1.00 [15:27:25]line НСП 1% : 8.85 [15:27:25]line НДС 12% : 106.17 [15:27:25]line Наличными: 999.00 [15:27:25]line Безнал.: 0.00 [15:27:25]line Место: АЗС № 161 "Партнер Нефть" [15:27:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:27:25]line СНО: Общий режим [15:27:25]line Чек 220 20.10.2024 15:27 [15:27:25]line Смена: 534 ФФД: 1.0 [15:27:25]line ЗНМ: 0300000104 [15:27:25]line РНМ: 0000000000091764 [15:27:25]line Версия ККМ: 001 [15:27:25]line ФМ: 0000000000871759 [15:27:25]line ФД: 165738 [15:27:25]line ФПД: 236370592091822 [15:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152737&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165738&fm=236370592091822&tin=02508201610067®Number=0000000000091764&sum=99900 [15:27:26]OFD Sender: Processing packet 165738 [packets to send 48, broken 47] [15:27:26]ProducePacketName [15:27:26]name=ofd_packets/00165738 [15:27:26]OFD Sender: To server: pG, [15:27:26]CommunicateWithHost lk.salyk.kg:30040 [15:27:26]ConnectInit lk.salyk.kg [15:27:26]written 0, free lines is 4095 [15:27:26]Connected sock=10 [15:27:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 27 F9 04 01 33 40 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 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 DC 00 00 00 F4 03 04 00 69 21 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 87 02 00 35 04 06 00 D6 FA 51 2D 4E AE B7 3A E0 4B 2D 2E FA 17 [15:27:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 36 EB 47 00 19 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 31 37 35 39 10 04 04 00 6A 87 02 00 F4 03 04 00 DA C7 14 67 B6 04 01 00 00 65 8A 6C DC 09 26 39 8E [15:27:26]CommunicateWithHost err = 0 [15:27:26]CheckOFDResponse [15:27:26]1017 (14) - 77093643461234 [15:27:26]1041 (16) - 0000000000871759 [15:27:26]1040 (4) - 165738 [15:27:26]1012 (4) - 20.10.2024 09:05 [15:27:26]1206 (1) - 0 [15:27:26]OFD Sender: Remove packet 165738 [15:27:26]ProducePacketName [15:27:26]name=ofd_packets/00165738 [15:27:26]NVStorageDeleteData [15:27:26]Write to MH i2c: 01 00 00 25 FC 21 [15:27:26]Write i2c OK [15:27:26]MH_I2C_Read... [15:27:26]Read from MH i2c: 01 [15:27:26]MH_I2C_Read... [15:27:26]Read from MH i2c: 01 07 00 [15:27:26]MH_I2C_Read... [15:27:26]Read from MH i2c: 01 07 00 25 FC 00 00 00 00 00 CD 0C 01 [15:27:26]RasterBufferAndPrint [15:27:26]line [15:27:26]line [15:27:26]line [15:27:26]line [15:27:26]line [15:27:26]written 0, free lines is 3284 [15:27:26]MH_Cut [15:27:26]Write to MH i2c: D1 01 00 2C FC 01 FA [15:27:26]Write i2c OK [15:27:26]MH_I2C_Read... [15:27:26]Read from MH i2c: D1 [15:27:26]MH_I2C_Read... [15:27:26]Read from MH i2c: D1 01 00 [15:27:26]MH_I2C_Read... [15:27:26]Read from MH i2c: D1 01 00 2C FC 00 F9 [15:27:26]Write to MH i2c: 01 00 00 2D FC 29 [15:27:26]Write i2c OK [15:27:26]MH_I2C_Read... [15:27:26]OFD Sender: No OFD packet to send [15:27:27]*** Cut start [15:27:27]*** Partial cut [15:27:27]*** CUTSNS_PIN = 1 [15:27:27]*** CUTSNS_PIN = 0 [15:27:27]*** Brake cut motor [15:27:28]Read from MH i2c: 01 [15:27:28]MH_I2C_Read... [15:27:28]*** Stop cut motor [15:27:28]*** Cut end [15:27:28]Read from MH i2c: 01 07 00 [15:27:28]MH_I2C_Read... [15:27:28]Read from MH i2c: 01 07 00 2D FC 00 00 00 00 00 FF 0F 3E [15:27:28]process_action close_receipt done [15:27:28]requested_data is exist [15:27:28]produce_requested_data [15:27:28]requested_item fm.sn is exist - process it [15:27:28]wFMCommunicate request_size=4 [15:27:28]MH_SAM_APDU [15:27:28]CAPDU: 80 11 00 00 [15:27:28]Write to MH i2c: E2 08 00 2E FC 80 11 00 00 00 00 00 00 A4 [15:27:28]Write i2c OK [15:27:28]MH_I2C_Read... [15:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:28]Read from MH i2c: E2 [15:27:28]MH_I2C_Read... [15:27:28]Read from MH i2c: E2 17 00 [15:27:28]MH_I2C_Read... [15:27:28]Read from MH i2c: E2 17 00 2E FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [15:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:27:28]wFMCommunicate OK [15:27:28]requested_item fd.num is exist - process it [15:27:28]SAM_PROTO_GetFieldsCounters [15:27:28]wFMCommunicate request_size=4 [15:27:28]MH_SAM_APDU [15:27:28]CAPDU: 80 13 00 00 [15:27:28]Write to MH i2c: E2 08 00 2F FC 80 13 00 00 00 00 00 00 A7 [15:27:28]Write i2c OK [15:27:28]MH_I2C_Read... [15:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:28]Read from MH i2c: E2 [15:27:28]MH_I2C_Read... [15:27:28]Read from MH i2c: E2 62 00 [15:27:28]MH_I2C_Read... [15:27:28]Read from MH i2c: E2 62 00 2F FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 87 02 00 0E 04 04 00 16 02 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 6E [15:27:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 87 02 00 0E 04 04 00 16 02 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:27:28]wFMCommunicate OK [15:27:28]SAM_PROTO_GetFieldsCounters done [15:27:28]requested_item shift.num is exist - process it [15:27:28]requested_item shift.opened is exist - process it [15:27:28]req_shift_opened [15:27:28]FM_GetShiftState [15:27:28]SAM_PROTO_GetShiftState [15:27:28]wFMCommunicate request_size=4 [15:27:28]MH_SAM_APDU [15:27:28]CAPDU: 80 13 01 00 [15:27:28]Write to MH i2c: E2 08 00 30 FC 80 13 01 00 00 00 00 00 A9 [15:27:28]Write i2c OK [15:27:28]MH_I2C_Read... [15:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:28]Read from MH i2c: E2 [15:27:28]MH_I2C_Read... [15:27:28]Read from MH i2c: E2 0E 00 [15:27:28]MH_I2C_Read... [15:27:28]Read from MH i2c: E2 0E 00 30 FC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F1 [15:27:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:27:28]wFMCommunicate OK [15:27:28]SAM_PROTO_GetShiftState done [15:27:28]FM_GetShiftState done [15:27:28]req_shift_opened done [15:27:28]requested_item shift.open_date is exist - process it [15:27:28]req_shift_open_date [15:27:28]req_shift_open_date done [15:27:28]produce_requested_data done [15:27:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165738,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:27:28]process_action_free close_receipt [15:27:28]json_value_free [15:27:28]json_value_free done [15:27:28]process_json_proto returns [15:27:28]Send response to host [15:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165738,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:27:28]free response buf [15:27:28]execute_script done [15:27:28]execute_script returns [15:27:28]free content buf [15:27:28]Sock 9.Close socket [15:27:28]Sock 9.Thread stoped [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27: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:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:46]accept exits with 7 [15:30:46]New connection [15:30:46]New thread 3066920292 created [15:30:46]Thread 3066776932 joined [15:30:46]Waiting for new connection... [15:30:46] Sock 7.Parse request [15:30:46]Sock 7.Check first char [15:30:46]Sock 7.First char is OK [15:30:46]request: POST /json_proto HTTP/1.0 [15:30:46]Method: POST [15:30:46]URL: /json_proto [15:30:46]Method is POST - this is cgi request [15:30:46]url: /json_proto [15:30:46]query_string will be loaded in cgi processing [15:30:46]execute_cgi json_proto POST (null) [15:30:46]execute_cgi path=json_proto method=POST [15:30:46]POST find Content-Length [15:30:46]Host: 172.17.53.195:8080 [15:30:46]Content-Length: 677 [15:30:46]Content-Type: application/json [15:30:46] [15:30:46]POST finish read [15:30:46]Found Content-Length = 677 [15:30:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:46]execute_script... [15:30: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)220306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:46]POST & json_proto [15:30:46]process_json_proto [15:30:46]json parsed OK: [15:30:46]protocol is kg_v1.0 [15:30:46]action value=close_receipt [15:30:46]process_action close_receipt [15:30:46]cmd_close_receipt [15:30:46]MH_GetDate [15:30:46]Write to MH i2c: F0 00 00 31 FC 1C [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: F0 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: F0 09 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: F0 09 00 31 FC 00 33 22 15 67 21 48 4A 65 0E [15:30:46]GetLastDocTimeStamp 1729438057 [15:30:46]current date 1729438259 [15:30:46]FM_GetShiftState [15:30:46]SAM_PROTO_GetShiftState [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 13 01 00 [15:30:46]Write to MH i2c: E2 08 00 32 FC 80 13 01 00 00 00 00 00 AB [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 0E 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 0E 00 32 FC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F3 [15:30:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:30:46]wFMCommunicate OK [15:30:46]SAM_PROTO_GetShiftState done [15:30:46]FM_GetShiftState done [15:30:46]opened in 1729384561 [15:30:46]opened+sec_in_day 1729470961 [15:30:46]quantity*price = 30038 [15:30:46]sum+1 = 30039 [15:30:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 221 20.10.2024 15:30 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165739 ФПД: 46540925744044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153059&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165739&fm=46540925744044&tin=02508201610067®Number=0000000000091764&sum=30000 [15:30:47]StoreToDocumentArchive [15:30:47]shift 534 fd 165739 [15:30:47]save to /storage/0534/doc_00165739 [15:30:47]save last doc name /storage/0534/doc_00165739 to /storage/kkm_last_doc_name [15:30:47]save OK [15:30:47]Clear old archive folders... [15:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:47]tlvbuf is 01839B30 [15:30:47]SAM_PROTO_ClearQueue [15:30:47]wFMCommunicate request_size=4 [15:30:47]MH_SAM_APDU [15:30:47]CAPDU: 80 09 00 00 [15:30:47]Write to MH i2c: E2 08 00 3F FC 80 09 00 00 00 00 00 00 AD [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:47]Read from MH i2c: E2 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 03 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 03 00 3F FC 00 90 00 AF [15:30:47]RAPDU: 90 00 [15:30:47]wFMCommunicate OK [15:30:47]SAM_PROTO_ClearQueue done [15:30:47]KKMCreateOFDPacket [15:30:47]OFDProtocolAddRootSTLVToBuf [15:30:47]FM_MakeSignedData [15:30:47]FM_MakeSignedData [15:30:47]SAM_PROTO_SignData [15:30:47]wFMCommunicate request_size=4 [15:30:47]MH_SAM_APDU [15:30:47]CAPDU: 80 0D 01 02 [15:30:47]Write to MH i2c: E2 08 00 40 FC 80 0D 01 02 00 00 00 00 B5 [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:47]Read from MH i2c: E2 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 03 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 03 00 40 FC 00 90 00 B0 [15:30:47]RAPDU: 90 00 [15:30:47]wFMCommunicate OK [15:30:47]wFMCommunicate request_size=255 [15:30:47]MH_SAM_APDU [15:30: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 33 22 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 87 02 00 35 04 06 00 2A [15:30:47]Write to MH i2c: E2 02 01 41 FC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 33 22 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 87 02 00 35 04 06 00 2A 00 00 23 [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:47]Read from MH i2c: E2 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 03 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 03 00 41 FC 00 90 00 B1 [15:30:47]RAPDU: 90 00 [15:30:47]wFMCommunicate OK [15:30:47]wFMCommunicate request_size=10 [15:30:47]MH_SAM_APDU [15:30:47]CAPDU: 80 0D 02 02 05 54 27 58 B3 AC [15:30:47]Write to MH i2c: E2 0D 00 42 FC 80 0D 02 02 05 00 54 27 58 B3 AC 00 00 F4 [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:47]Read from MH i2c: E2 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 03 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 03 00 42 FC 00 90 00 B2 [15:30:47]RAPDU: 90 00 [15:30:47]wFMCommunicate OK [15:30:47]wFMCommunicate request_size=4 [15:30:47]MH_SAM_APDU [15:30:47]CAPDU: 80 0D 03 02 [15:30:47]Write to MH i2c: E2 08 00 43 FC 80 0D 03 02 00 00 00 00 BA [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:47]Read from MH i2c: E2 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 0B 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 0B 00 43 FC 00 B0 3C E1 4B 92 63 99 DF 90 00 40 [15:30:47]RAPDU: B0 3C E1 4B 92 63 99 DF 90 00 [15:30:47]wFMCommunicate OK [15:30:47]SAM_PROTO_SignData done [15:30:47]FM_MakeSignedData done [15:30:47]CreateOFDProtocolMessage [15:30:47]wFMCommunicate request_size=4 [15:30:47]MH_SAM_APDU [15:30:47]CAPDU: 80 11 00 00 [15:30:47]Write to MH i2c: E2 08 00 44 FC 80 11 00 00 00 00 00 00 BA [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:48]Read from MH i2c: E2 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 17 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 17 00 44 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 12 [15:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:30:48]wFMCommunicate OK [15:30:48]CreateOFDProtocolMessage done [15:30:48]OFDSenderStorePacket 165739 [15:30:48]StoreOFDPacket docnum=165739 [15:30:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 45 29 07 01 1C 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 33 22 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 87 02 00 35 04 06 00 2A 54 27 58 B3 AC B0 3C E1 4B 92 63 99 DF [15:30:48]CheckFolder [15:30:48]dirname=/storage/ofd_packets [15:30:48]CheckFolder done [15:30:48]ProducePacketName [15:30:48]name=ofd_packets/00165739 [15:30:48]NVStorageSaveData ofd_packets/00165739 [15:30:48]File name is /storage/ofd_packets/00165739 [15:30:48]Write 301 bytes [15:30:48]NVStorageSaveData done [15:30:48]OFDSenderStorePacket done [15:30:48]KKMCreateOFDPacket done [15:30:48]NVStorageSaveData kkm_last_timestamp [15:30:48]File name is /storage/kkm_last_timestamp [15:30:48]Write 4 bytes [15:30:48]NVStorageSaveData done [15:30:48]ExternCall_PrintAddStr [15:30:48]wPrintStart [15:30:48]Write to MH i2c: 01 00 00 45 FC 41 [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: 01 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: 01 07 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: 01 07 00 45 FC 00 00 00 00 00 FF 0F 56 [15:30:48]RasterBufferAndPrint [15:30:48]line Счет N : (1)220306 [15:30:48]line ИНН: 02508201610067 [15:30:48]line Контрольно-Кассовый Чек [15:30:48]line ПРОДАЖА [15:30:48]line ТРК (МРК, ГНК) : 33 [15:30:48]line Товар: 2710124130 [15:30:48]line Аи-92-К-5 [15:30:48]line 4.490 * 66.90 [15:30:48]line = 300.38 [15:30:48]line НДС 12% НСП 1% [15:30:48]line > о реализуемом товаре [15:30:48]line ОКРУГЛЕНИЕ: -0.38 [15:30:48]line ИТОГО: 300.00 [15:30:48]line Внесено: 300.00 [15:30:48]line СДАЧА: 0.00 [15:30:48]line НСП 1% : 2.66 [15:30:48]line НДС 12% : 31.90 [15:30:48]line Наличными: 300.00 [15:30:48]line Безнал.: 0.00 [15:30:48]line Место: АЗС № 161 "Партнер Нефть" [15:30:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:30:48]line СНО: Общий режим [15:30:48]line Чек 221 20.10.2024 15:30 [15:30:48]line Смена: 534 ФФД: 1.0 [15:30:48]line ЗНМ: 0300000104 [15:30:48]line РНМ: 0000000000091764 [15:30:48]line Версия ККМ: 001 [15:30:48]line ФМ: 0000000000871759 [15:30:48]line ФД: 165739 [15:30:48]line ФПД: 46540925744044 [15:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153059&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165739&fm=46540925744044&tin=02508201610067®Number=0000000000091764&sum=30000 [15:30:48]OFD Sender: Processing packet 165739 [packets to send 48, broken 47] [15:30:48]ProducePacketName [15:30:48]name=ofd_packets/00165739 [15:30:48]OFD Sender: To server: pG, [15:30:48]CommunicateWithHost lk.salyk.kg:30040 [15:30:48]ConnectInit lk.salyk.kg [15:30:48]written 0, free lines is 4095 [15:30:48]Connected sock=10 [15:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 45 29 07 01 1C 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 33 22 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 87 02 00 35 04 06 00 2A 54 27 58 B3 AC B0 3C E1 4B 92 63 99 DF [15:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C 3E 47 00 02 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 31 37 35 39 10 04 04 00 6B 87 02 00 F4 03 04 00 A4 C8 14 67 B6 04 01 00 00 9D 1B 04 3E 5A 3A FB 5F [15:30:48]CommunicateWithHost err = 0 [15:30:48]CheckOFDResponse [15:30:48]1017 (14) - 77093643461234 [15:30:48]1041 (16) - 0000000000871759 [15:30:48]1040 (4) - 165739 [15:30:48]1012 (4) - 20.10.2024 09:08 [15:30:48]1206 (1) - 0 [15:30:48]OFD Sender: Remove packet 165739 [15:30:48]ProducePacketName [15:30:48]name=ofd_packets/00165739 [15:30:48]NVStorageDeleteData [15:30:48]Write to MH i2c: 01 00 00 70 FC 6C [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: 01 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: 01 07 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: 01 07 00 70 FC 00 00 00 00 00 CD 0C 4C [15:30:48]RasterBufferAndPrint [15:30:48]line [15:30:48]line [15:30:48]line [15:30:48]line [15:30:48]line [15:30:48]written 0, free lines is 3283 [15:30:48]MH_Cut [15:30:48]Write to MH i2c: D1 01 00 77 FC 01 45 [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: D1 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: D1 01 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: D1 01 00 77 FC 00 44 [15:30:48]Write to MH i2c: 01 00 00 78 FC 74 [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:49]OFD Sender: No OFD packet to send [15:30:49]*** Cut start [15:30:49]*** Partial cut [15:30:49]*** CUTSNS_PIN = 1 [15:30:49]*** CUTSNS_PIN = 0 [15:30:49]*** Brake cut motor [15:30:50]Read from MH i2c: 01 [15:30:50]MH_I2C_Read... [15:30:50]*** Stop cut motor [15:30:50]*** Cut end [15:30:50]Read from MH i2c: 01 07 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: 01 07 00 78 FC 00 00 00 00 00 FF 0F 89 [15:30:50]process_action close_receipt done [15:30:50]requested_data is exist [15:30:50]produce_requested_data [15:30:50]requested_item fm.sn is exist - process it [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 11 00 00 [15:30:50]Write to MH i2c: E2 08 00 79 FC 80 11 00 00 00 00 00 00 EF [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 17 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 17 00 79 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [15:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:30:50]wFMCommunicate OK [15:30:50]requested_item fd.num is exist - process it [15:30:50]SAM_PROTO_GetFieldsCounters [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 13 00 00 [15:30:50]Write to MH i2c: E2 08 00 7A FC 80 13 00 00 00 00 00 00 F2 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 62 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 62 00 7A FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 87 02 00 0E 04 04 00 16 02 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 BD [15:30:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 87 02 00 0E 04 04 00 16 02 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:30:50]wFMCommunicate OK [15:30:50]SAM_PROTO_GetFieldsCounters done [15:30:50]requested_item shift.num is exist - process it [15:30:50]requested_item shift.opened is exist - process it [15:30:50]req_shift_opened [15:30:50]FM_GetShiftState [15:30:50]SAM_PROTO_GetShiftState [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 13 01 00 [15:30:50]Write to MH i2c: E2 08 00 7B FC 80 13 01 00 00 00 00 00 F4 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 0E 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 0E 00 7B FC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3C [15:30:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:30:50]wFMCommunicate OK [15:30:50]SAM_PROTO_GetShiftState done [15:30:50]FM_GetShiftState done [15:30:50]req_shift_opened done [15:30:50]requested_item shift.open_date is exist - process it [15:30:50]req_shift_open_date [15:30:50]req_shift_open_date done [15:30:50]produce_requested_data done [15:30:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165739,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:30:50]process_action_free close_receipt [15:30:50]json_value_free [15:30:50]json_value_free done [15:30:50]process_json_proto returns [15:30:50]Send response to host [15:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165739,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:30:50]free response buf [15:30:50]execute_script done [15:30:50]execute_script returns [15:30:50]free content buf [15:30:50]Sock 7.Close socket [15:30:50]Sock 7.Thread stoped [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:50]accept exits with 9 [15:37:50]New connection [15:37:50]New thread 3066776932 created [15:37:50]Thread 3066920292 joined [15:37:50]Waiting for new connection... [15:37:50] Sock 9.Parse request [15:37:50]Sock 9.Check first char [15:37:50]Sock 9.First char is OK [15:37:50]request: POST /json_proto HTTP/1.0 [15:37:50]Method: POST [15:37:50]URL: /json_proto [15:37:50]Method is POST - this is cgi request [15:37:50]url: /json_proto [15:37:50]query_string will be loaded in cgi processing [15:37:50]execute_cgi json_proto POST (null) [15:37:50]execute_cgi path=json_proto method=POST [15:37:50]POST find Content-Length [15:37:50]Host: 172.17.53.195:8080 [15:37:50]Content-Length: 677 [15:37:50]Content-Type: application/json [15:37:50] [15:37:50]POST finish read [15:37:50]Found Content-Length = 677 [15:37:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:50]execute_script... [15:37: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)220309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:50]POST & json_proto [15:37:50]process_json_proto [15:37:50]json parsed OK: [15:37:50]protocol is kg_v1.0 [15:37:50]action value=close_receipt [15:37:50]process_action close_receipt [15:37:50]cmd_close_receipt [15:37:50]MH_GetDate [15:37:50]Write to MH i2c: F0 00 00 7C FC 67 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: F0 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: F0 09 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: F0 09 00 7C FC 00 DB 23 15 67 21 48 4A 65 02 [15:37:50]GetLastDocTimeStamp 1729438259 [15:37:50]current date 1729438683 [15:37:50]FM_GetShiftState [15:37:50]SAM_PROTO_GetShiftState [15:37:50]wFMCommunicate request_size=4 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 13 01 00 [15:37:50]Write to MH i2c: E2 08 00 7D FC 80 13 01 00 00 00 00 00 F6 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 0E 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 0E 00 7D FC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3E [15:37:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:37:50]wFMCommunicate OK [15:37:50]SAM_PROTO_GetShiftState done [15:37:50]FM_GetShiftState done [15:37:50]opened in 1729384561 [15:37:50]opened+sec_in_day 1729470961 [15:37:50]quantity*price = 60027 [15:37:50]sum+1 = 60029 [15:37:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 222 20.10.2024 15:38 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165740 ФПД: 8608489791313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153803&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165740&fm=8608489791313&tin=02508201610067®Number=0000000000091764&sum=60000 [15:37:51]StoreToDocumentArchive [15:37:51]shift 534 fd 165740 [15:37:51]save to /storage/0534/doc_00165740 [15:37:51]save last doc name /storage/0534/doc_00165740 to /storage/kkm_last_doc_name [15:37:51]save OK [15:37:51]Clear old archive folders... [15:37:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:51]tlvbuf is 015129D0 [15:37:51]SAM_PROTO_ClearQueue [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 09 00 00 [15:37:51]Write to MH i2c: E2 08 00 8A FC 80 09 00 00 00 00 00 00 F8 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 8A FC 00 90 00 FA [15:37:51]RAPDU: 90 00 [15:37:51]wFMCommunicate OK [15:37:51]SAM_PROTO_ClearQueue done [15:37:51]KKMCreateOFDPacket [15:37:51]OFDProtocolAddRootSTLVToBuf [15:37:51]FM_MakeSignedData [15:37:51]FM_MakeSignedData [15:37:51]SAM_PROTO_SignData [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 0D 01 02 [15:37:51]Write to MH i2c: E2 08 00 8B FC 80 0D 01 02 00 00 00 00 00 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 8B FC 00 90 00 FB [15:37:51]RAPDU: 90 00 [15:37:51]wFMCommunicate OK [15:37:51]wFMCommunicate request_size=255 [15:37:51]MH_SAM_APDU [15:37: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 DB 23 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 87 02 00 35 04 06 00 07 [15:37:51]Write to MH i2c: E2 02 01 8C FC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 DB 23 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 87 02 00 35 04 06 00 07 00 00 60 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 8C FC 00 90 00 FC [15:37:51]RAPDU: 90 00 [15:37:51]wFMCommunicate OK [15:37:51]wFMCommunicate request_size=10 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 0D 02 02 05 D4 51 F9 DF 51 [15:37:51]Write to MH i2c: E2 0D 00 8D FC 80 0D 02 02 05 00 D4 51 F9 DF 51 00 00 5B [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 03 00 8D FC 00 90 00 FD [15:37:51]RAPDU: 90 00 [15:37:51]wFMCommunicate OK [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 0D 03 02 [15:37:51]Write to MH i2c: E2 08 00 8E FC 80 0D 03 02 00 00 00 00 05 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 0B 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 0B 00 8E FC 00 0C 8B 56 A1 08 A5 62 0B 90 00 AE [15:37:51]RAPDU: 0C 8B 56 A1 08 A5 62 0B 90 00 [15:37:51]wFMCommunicate OK [15:37:51]SAM_PROTO_SignData done [15:37:51]FM_MakeSignedData done [15:37:51]CreateOFDProtocolMessage [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 11 00 00 [15:37:51]Write to MH i2c: E2 08 00 8F FC 80 11 00 00 00 00 00 00 05 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 17 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 17 00 8F FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [15:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:37:51]wFMCommunicate OK [15:37:51]CreateOFDProtocolMessage done [15:37:51]OFDSenderStorePacket 165740 [15:37:51]StoreOFDPacket docnum=165740 [15:37:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CB 68 07 01 CF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 DB 23 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 87 02 00 35 04 06 00 07 D4 51 F9 DF 51 0C 8B 56 A1 08 A5 62 0B [15:37:51]CheckFolder [15:37:51]dirname=/storage/ofd_packets [15:37:51]CheckFolder done [15:37:51]ProducePacketName [15:37:51]name=ofd_packets/00165740 [15:37:51]NVStorageSaveData ofd_packets/00165740 [15:37:51]File name is /storage/ofd_packets/00165740 [15:37:51]Write 301 bytes [15:37:51]NVStorageSaveData done [15:37:51]OFDSenderStorePacket done [15:37:51]KKMCreateOFDPacket done [15:37:51]NVStorageSaveData kkm_last_timestamp [15:37:51]File name is /storage/kkm_last_timestamp [15:37:51]Write 4 bytes [15:37:51]NVStorageSaveData done [15:37:51]ExternCall_PrintAddStr [15:37:51]wPrintStart [15:37:51]Write to MH i2c: 01 00 00 90 FC 8C [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: 01 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: 01 07 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: 01 07 00 90 FC 00 00 00 00 00 FF 0F A1 [15:37:51]RasterBufferAndPrint [15:37:51]line Счет N : (1)220309 [15:37:51]line ИНН: 02508201610067 [15:37:51]line Контрольно-Кассовый Чек [15:37:51]line ПРОДАЖА [15:37:51]line ТРК (МРК, ГНК) : 44 [15:37:51]line Товар: 2710124500 [15:37:51]line Аи-95-К-5 [15:37:51]line 8.090 * 74.20 [15:37:51]line = 600.28 [15:37:51]line НДС 12% НСП 1% [15:37:51]line > о реализуемом товаре [15:37:51]line ОКРУГЛЕНИЕ: -0.28 [15:37:51]line ИТОГО: 600.00 [15:37:51]line Внесено: 600.00 [15:37:51]line СДАЧА: 0.00 [15:37:51]line НСП 1% : 5.31 [15:37:51]line НДС 12% : 63.75 [15:37:51]line Наличными: 600.00 [15:37:51]line Безнал.: 0.00 [15:37:51]line Место: АЗС № 161 "Партнер Нефть" [15:37:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:37:51]line СНО: Общий режим [15:37:51]line Чек 222 20.10.2024 15:38 [15:37:51]line Смена: 534 ФФД: 1.0 [15:37:51]line ЗНМ: 0300000104 [15:37:51]line РНМ: 0000000000091764 [15:37:51]line Версия ККМ: 001 [15:37:51]line ФМ: 0000000000871759 [15:37:51]line ФД: 165740 [15:37:51]line ФПД: 8608489791313 [15:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153803&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165740&fm=8608489791313&tin=02508201610067®Number=0000000000091764&sum=60000 [15:37:52]OFD Sender: Processing packet 165740 [packets to send 48, broken 47] [15:37:52]ProducePacketName [15:37:52]name=ofd_packets/00165740 [15:37:52]OFD Sender: To server: pG, [15:37:52]CommunicateWithHost lk.salyk.kg:30040 [15:37:52]ConnectInit lk.salyk.kg [15:37:52]written 0, free lines is 4095 [15:37:52]Connected sock=10 [15:37:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CB 68 07 01 CF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 DB 23 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 87 02 00 35 04 06 00 07 D4 51 F9 DF 51 0C 8B 56 A1 08 A5 62 0B [15:37:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F0 B2 47 00 BA 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 31 37 35 39 10 04 04 00 6C 87 02 00 F4 03 04 00 4C CA 14 67 B6 04 01 00 00 21 6E 44 CA 14 7D 3A 4E [15:37:52]CommunicateWithHost err = 0 [15:37:52]CheckOFDResponse [15:37:52]1017 (14) - 77093643461234 [15:37:52]1041 (16) - 0000000000871759 [15:37:52]1040 (4) - 165740 [15:37:52]1012 (4) - 20.10.2024 09:15 [15:37:52]1206 (1) - 0 [15:37:52]OFD Sender: Remove packet 165740 [15:37:52]ProducePacketName [15:37:52]name=ofd_packets/00165740 [15:37:52]NVStorageDeleteData [15:37:52]Write to MH i2c: 01 00 00 BB FC B7 [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 07 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: 01 07 00 BB FC 00 00 00 00 00 D6 0C A0 [15:37:52]RasterBufferAndPrint [15:37:52]line [15:37:52]line [15:37:52]line [15:37:52]line [15:37:52]line [15:37:52]written 0, free lines is 3294 [15:37:52]MH_Cut [15:37:52]Write to MH i2c: D1 01 00 C2 FC 01 90 [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: D1 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: D1 01 00 [15:37:52]MH_I2C_Read... [15:37:52]Read from MH i2c: D1 01 00 C2 FC 00 8F [15:37:52]Write to MH i2c: 01 00 00 C3 FC BF [15:37:52]Write i2c OK [15:37:52]MH_I2C_Read... [15:37:52]OFD Sender: No OFD packet to send [15:37:53]*** Cut start [15:37:53]*** Partial cut [15:37:53]*** CUTSNS_PIN = 1 [15:37:53]*** CUTSNS_PIN = 0 [15:37:53]*** Brake cut motor [15:37:53]Read from MH i2c: 01 [15:37:53]MH_I2C_Read... [15:37:53]*** Stop cut motor [15:37:53]*** Cut end [15:37:53]Read from MH i2c: 01 07 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: 01 07 00 C3 FC 00 00 00 00 00 FF 0F D4 [15:37:53]process_action close_receipt done [15:37:53]requested_data is exist [15:37:53]produce_requested_data [15:37:53]requested_item fm.sn is exist - process it [15:37:53]wFMCommunicate request_size=4 [15:37:53]MH_SAM_APDU [15:37:53]CAPDU: 80 11 00 00 [15:37:53]Write to MH i2c: E2 08 00 C4 FC 80 11 00 00 00 00 00 00 3A [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:54]Read from MH i2c: E2 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 17 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 17 00 C4 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [15:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:37:54]wFMCommunicate OK [15:37:54]requested_item fd.num is exist - process it [15:37:54]SAM_PROTO_GetFieldsCounters [15:37:54]wFMCommunicate request_size=4 [15:37:54]MH_SAM_APDU [15:37:54]CAPDU: 80 13 00 00 [15:37:54]Write to MH i2c: E2 08 00 C5 FC 80 13 00 00 00 00 00 00 3D [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:54]Read from MH i2c: E2 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 62 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 62 00 C5 FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 87 02 00 0E 04 04 00 16 02 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 0C [15:37:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 87 02 00 0E 04 04 00 16 02 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:37:54]wFMCommunicate OK [15:37:54]SAM_PROTO_GetFieldsCounters done [15:37:54]requested_item shift.num is exist - process it [15:37:54]requested_item shift.opened is exist - process it [15:37:54]req_shift_opened [15:37:54]FM_GetShiftState [15:37:54]SAM_PROTO_GetShiftState [15:37:54]wFMCommunicate request_size=4 [15:37:54]MH_SAM_APDU [15:37:54]CAPDU: 80 13 01 00 [15:37:54]Write to MH i2c: E2 08 00 C6 FC 80 13 01 00 00 00 00 00 3F [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:54]Read from MH i2c: E2 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 0E 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 0E 00 C6 FC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 87 [15:37:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:37:54]wFMCommunicate OK [15:37:54]SAM_PROTO_GetShiftState done [15:37:54]FM_GetShiftState done [15:37:54]req_shift_opened done [15:37:54]requested_item shift.open_date is exist - process it [15:37:54]req_shift_open_date [15:37:54]req_shift_open_date done [15:37:54]produce_requested_data done [15:37:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165740,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:37:54]process_action_free close_receipt [15:37:54]json_value_free [15:37:54]json_value_free done [15:37:54]process_json_proto returns [15:37:54]Send response to host [15:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165740,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:37:54]free response buf [15:37:54]execute_script done [15:37:54]execute_script returns [15:37:54]free content buf [15:37:54]Sock 9.Close socket [15:37:54]Sock 9.Thread stoped [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:25]accept exits with 7 [15:39:25]New connection [15:39:25]New thread 3066920292 created [15:39:25]Thread 3066776932 joined [15:39:25]Waiting for new connection... [15:39:25] Sock 7.Parse request [15:39:25]Sock 7.Check first char [15:39:25]Sock 7.First char is OK [15:39:25]request: POST /json_proto HTTP/1.0 [15:39:25]Method: POST [15:39:25]URL: /json_proto [15:39:25]Method is POST - this is cgi request [15:39:25]url: /json_proto [15:39:25]query_string will be loaded in cgi processing [15:39:25]execute_cgi json_proto POST (null) [15:39:25]execute_cgi path=json_proto method=POST [15:39:25]POST find Content-Length [15:39:25]Host: 172.17.53.195:8080 [15:39:25]Content-Length: 682 [15:39:25]Content-Type: application/json [15:39:25] [15:39:25]POST finish read [15:39:25]Found Content-Length = 682 [15:39:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 56.610, "sum" : 4200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4200.00, "total" : 4200.00, "payments": [ { "type": 0, "sum" : 4200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:25]execute_script... [15:39: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)220308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 56.610, "sum" : 4200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4200.00, "total" : 4200.00, "payments": [ { "type": 0, "sum" : 4200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:25]POST & json_proto [15:39:25]process_json_proto [15:39:25]json parsed OK: [15:39:25]protocol is kg_v1.0 [15:39:25]action value=close_receipt [15:39:25]process_action close_receipt [15:39:25]cmd_close_receipt [15:39:25]MH_GetDate [15:39:25]Write to MH i2c: F0 00 00 C7 FC B2 [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: F0 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: F0 09 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: F0 09 00 C7 FC 00 3A 24 15 67 21 48 4A 65 AD [15:39:25]GetLastDocTimeStamp 1729438683 [15:39:25]current date 1729438778 [15:39:25]FM_GetShiftState [15:39:25]SAM_PROTO_GetShiftState [15:39:25]wFMCommunicate request_size=4 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 13 01 00 [15:39:25]Write to MH i2c: E2 08 00 C8 FC 80 13 01 00 00 00 00 00 41 [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 0E 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 0E 00 C8 FC 00 09 00 01 71 50 14 67 00 00 00 00 90 00 89 [15:39:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:39:25]wFMCommunicate OK [15:39:25]SAM_PROTO_GetShiftState done [15:39:25]FM_GetShiftState done [15:39:25]opened in 1729384561 [15:39:25]opened+sec_in_day 1729470961 [15:39:25]quantity*price = 420046 [15:39:25]sum+1 = 420047 [15:39:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 4200.00 Внесено: 4200.00 СДАЧА: 0.00 НСП 1% : 37.17 НДС 12% : 446.07 Наличными: 4200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 223 20.10.2024 15:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165741 ФПД: 227741713344649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153938&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165741&fm=227741713344649&tin=02508201610067®Number=0000000000091764&sum=420000 [15:39:26]StoreToDocumentArchive [15:39:26]shift 534 fd 165741 [15:39:26]save to /storage/0534/doc_00165741 [15:39:26]save last doc name /storage/0534/doc_00165741 to /storage/kkm_last_doc_name [15:39:26]save OK [15:39:26]Clear old archive folders... [15:39:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:26]tlvbuf is 01A0A9E0 [15:39:26]SAM_PROTO_ClearQueue [15:39:26]wFMCommunicate request_size=4 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 09 00 00 [15:39:26]Write to MH i2c: E2 08 00 D5 FC 80 09 00 00 00 00 00 00 43 [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:27]Read from MH i2c: E2 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 03 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 03 00 D5 FC 00 90 00 45 [15:39:27]RAPDU: 90 00 [15:39:27]wFMCommunicate OK [15:39:27]SAM_PROTO_ClearQueue done [15:39:27]KKMCreateOFDPacket [15:39:27]OFDProtocolAddRootSTLVToBuf [15:39:27]FM_MakeSignedData [15:39:27]FM_MakeSignedData [15:39:27]SAM_PROTO_SignData [15:39:27]wFMCommunicate request_size=4 [15:39:27]MH_SAM_APDU [15:39:27]CAPDU: 80 0D 01 02 [15:39:27]Write to MH i2c: E2 08 00 D6 FC 80 0D 01 02 00 00 00 00 4B [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:27]Read from MH i2c: E2 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 03 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 03 00 D6 FC 00 90 00 46 [15:39:27]RAPDU: 90 00 [15:39:27]wFMCommunicate OK [15:39:27]wFMCommunicate request_size=255 [15:39:27]MH_SAM_APDU [15:39: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 DD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F AE 00 00 00 00 07 04 06 00 A0 68 06 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 3A 24 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 87 02 00 35 04 06 00 CF [15:39:27]Write to MH i2c: E2 02 01 D7 FC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 DD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F AE 00 00 00 00 07 04 06 00 A0 68 06 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 3A 24 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 87 02 00 35 04 06 00 CF 00 00 E5 [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:27]Read from MH i2c: E2 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 03 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 03 00 D7 FC 00 90 00 47 [15:39:27]RAPDU: 90 00 [15:39:27]wFMCommunicate OK [15:39:27]wFMCommunicate request_size=10 [15:39:27]MH_SAM_APDU [15:39:27]CAPDU: 80 0D 02 02 05 21 3F EC A8 89 [15:39:27]Write to MH i2c: E2 0D 00 D8 FC 80 0D 02 02 05 00 21 3F EC A8 89 00 00 D5 [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:27]Read from MH i2c: E2 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 03 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 03 00 D8 FC 00 90 00 48 [15:39:27]RAPDU: 90 00 [15:39:27]wFMCommunicate OK [15:39:27]wFMCommunicate request_size=4 [15:39:27]MH_SAM_APDU [15:39:27]CAPDU: 80 0D 03 02 [15:39:27]Write to MH i2c: E2 08 00 D9 FC 80 0D 03 02 00 00 00 00 50 [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:27]Read from MH i2c: E2 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 0B 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 0B 00 D9 FC 00 90 34 29 8F 93 A4 34 EF 90 00 27 [15:39:27]RAPDU: 90 34 29 8F 93 A4 34 EF 90 00 [15:39:27]wFMCommunicate OK [15:39:27]SAM_PROTO_SignData done [15:39:27]FM_MakeSignedData done [15:39:27]CreateOFDProtocolMessage [15:39:27]wFMCommunicate request_size=4 [15:39:27]MH_SAM_APDU [15:39:27]CAPDU: 80 11 00 00 [15:39:27]Write to MH i2c: E2 08 00 DA FC 80 11 00 00 00 00 00 00 50 [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:27]Read from MH i2c: E2 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 17 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 17 00 DA FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [15:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:39:27]wFMCommunicate OK [15:39:27]CreateOFDProtocolMessage done [15:39:27]OFDSenderStorePacket 165741 [15:39:27]StoreOFDPacket docnum=165741 [15:39:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 6E 07 01 8A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 DD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F AE 00 00 00 00 07 04 06 00 A0 68 06 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 3A 24 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 87 02 00 35 04 06 00 CF 21 3F EC A8 89 90 34 29 8F 93 A4 34 EF [15:39:27]CheckFolder [15:39:27]dirname=/storage/ofd_packets [15:39:27]CheckFolder done [15:39:27]ProducePacketName [15:39:27]name=ofd_packets/00165741 [15:39:27]NVStorageSaveData ofd_packets/00165741 [15:39:27]File name is /storage/ofd_packets/00165741 [15:39:27]Write 301 bytes [15:39:27]NVStorageSaveData done [15:39:27]OFDSenderStorePacket done [15:39:27]KKMCreateOFDPacket done [15:39:27]NVStorageSaveData kkm_last_timestamp [15:39:27]File name is /storage/kkm_last_timestamp [15:39:27]Write 4 bytes [15:39:27]NVStorageSaveData done [15:39:27]ExternCall_PrintAddStr [15:39:27]wPrintStart [15:39:27]Write to MH i2c: 01 00 00 DB FC D7 [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: 01 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: 01 07 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: 01 07 00 DB FC 00 00 00 00 00 FF 0F EC [15:39:27]RasterBufferAndPrint [15:39:27]line Счет N : (1)220308 [15:39:27]line ИНН: 02508201610067 [15:39:27]line Контрольно-Кассовый Чек [15:39:27]line ПРОДАЖА [15:39:27]line ТРК (МРК, ГНК) : 34 [15:39:27]line Товар: 2710124500 [15:39:27]line Аи-95-К-5 [15:39:27]line 56.610 * 74.20 [15:39:27]line = 4200.46 [15:39:27]line НДС 12% НСП 1% [15:39:27]line > о реализуемом товаре [15:39:27]line ОКРУГЛЕНИЕ: -0.46 [15:39:27]line ИТОГО: 4200.00 [15:39:27]line Внесено: 4200.00 [15:39:27]line СДАЧА: 0.00 [15:39:27]line НСП 1% : 37.17 [15:39:27]line НДС 12% : 446.07 [15:39:27]line Наличными: 4200.00 [15:39:27]line Безнал.: 0.00 [15:39:27]line Место: АЗС № 161 "Партнер Нефть" [15:39:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:39:27]line СНО: Общий режим [15:39:27]line Чек 223 20.10.2024 15:39 [15:39:27]line Смена: 534 ФФД: 1.0 [15:39:27]line ЗНМ: 0300000104 [15:39:27]line РНМ: 0000000000091764 [15:39:27]line Версия ККМ: 001 [15:39:27]line ФМ: 0000000000871759 [15:39:27]line ФД: 165741 [15:39:27]line ФПД: 227741713344649 [15:39:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153938&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165741&fm=227741713344649&tin=02508201610067®Number=0000000000091764&sum=420000 [15:39:27]OFD Sender: Processing packet 165741 [packets to send 48, broken 47] [15:39:27]ProducePacketName [15:39:27]name=ofd_packets/00165741 [15:39:27]OFD Sender: To server: pG, [15:39:27]CommunicateWithHost lk.salyk.kg:30040 [15:39:27]ConnectInit lk.salyk.kg [15:39:27]written 0, free lines is 4095 [15:39:27]Connected sock=10 [15:39:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 6E 07 01 8A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 DD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F AE 00 00 00 00 07 04 06 00 A0 68 06 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 3A 24 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 87 02 00 35 04 06 00 CF 21 3F EC A8 89 90 34 29 8F 93 A4 34 EF [15:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 31 0E 47 00 90 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 87 02 00 F4 03 04 00 AC CA 14 67 B6 04 01 00 00 AF F9 12 A7 44 03 9A 30 [15:39:28]CommunicateWithHost err = 0 [15:39:28]CheckOFDResponse [15:39:28]1017 (14) - 77093643461234 [15:39:28]1041 (16) - 0000000000871759 [15:39:28]1040 (4) - 165741 [15:39:28]1012 (4) - 20.10.2024 09:17 [15:39:28]1206 (1) - 0 [15:39:28]OFD Sender: Remove packet 165741 [15:39:28]ProducePacketName [15:39:28]name=ofd_packets/00165741 [15:39:28]NVStorageDeleteData [15:39:28]Write to MH i2c: 01 00 00 06 FD 03 [15:39:28]Write i2c OK [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: 01 [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: 01 07 00 [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: 01 07 00 06 FD 00 00 00 00 00 E0 0C F6 [15:39:28]RasterBufferAndPrint [15:39:28]line [15:39:28]line [15:39:28]line [15:39:28]line [15:39:28]line [15:39:28]written 0, free lines is 3302 [15:39:28]MH_Cut [15:39:28]Write to MH i2c: D1 01 00 0D FD 01 DC [15:39:28]Write i2c OK [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: D1 [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: D1 01 00 [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: D1 01 00 0D FD 00 DB [15:39:28]Write to MH i2c: 01 00 00 0E FD 0B [15:39:28]Write i2c OK [15:39:28]MH_I2C_Read... [15:39:28]OFD Sender: No OFD packet to send [15:39:29]*** Cut start [15:39:29]*** Partial cut [15:39:29]*** CUTSNS_PIN = 1 [15:39:29]*** CUTSNS_PIN = 0 [15:39:29]*** Brake cut motor [15:39:29]Read from MH i2c: 01 [15:39:29]MH_I2C_Read... [15:39:29]*** Stop cut motor [15:39:29]*** Cut end [15:39:29]Read from MH i2c: 01 07 00 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: 01 07 00 0E FD 00 00 00 00 00 FF 0F 20 [15:39:29]process_action close_receipt done [15:39:29]requested_data is exist [15:39:29]produce_requested_data [15:39:29]requested_item fm.sn is exist - process it [15:39:29]wFMCommunicate request_size=4 [15:39:29]MH_SAM_APDU [15:39:29]CAPDU: 80 11 00 00 [15:39:29]Write to MH i2c: E2 08 00 0F FD 80 11 00 00 00 00 00 00 86 [15:39:29]Write i2c OK [15:39:29]MH_I2C_Read... [15:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:29]Read from MH i2c: E2 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: E2 17 00 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: E2 17 00 0F FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [15:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:39:29]wFMCommunicate OK [15:39:29]requested_item fd.num is exist - process it [15:39:29]SAM_PROTO_GetFieldsCounters [15:39:29]wFMCommunicate request_size=4 [15:39:29]MH_SAM_APDU [15:39:29]CAPDU: 80 13 00 00 [15:39:29]Write to MH i2c: E2 08 00 10 FD 80 13 00 00 00 00 00 00 89 [15:39:29]Write i2c OK [15:39:29]MH_I2C_Read... [15:39:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:29]Read from MH i2c: E2 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: E2 62 00 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: E2 62 00 10 FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 87 02 00 0E 04 04 00 16 02 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 5C [15:39:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 87 02 00 0E 04 04 00 16 02 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:39:29]wFMCommunicate OK [15:39:29]SAM_PROTO_GetFieldsCounters done [15:39:29]requested_item shift.num is exist - process it [15:39:29]requested_item shift.opened is exist - process it [15:39:29]req_shift_opened [15:39:29]FM_GetShiftState [15:39:29]SAM_PROTO_GetShiftState [15:39:29]wFMCommunicate request_size=4 [15:39:29]MH_SAM_APDU [15:39:29]CAPDU: 80 13 01 00 [15:39:29]Write to MH i2c: E2 08 00 11 FD 80 13 01 00 00 00 00 00 8B [15:39:29]Write i2c OK [15:39:29]MH_I2C_Read... [15:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:30]Read from MH i2c: E2 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 0E 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 0E 00 11 FD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D3 [15:39:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:39:30]wFMCommunicate OK [15:39:30]SAM_PROTO_GetShiftState done [15:39:30]FM_GetShiftState done [15:39:30]req_shift_opened done [15:39:30]requested_item shift.open_date is exist - process it [15:39:30]req_shift_open_date [15:39:30]req_shift_open_date done [15:39:30]produce_requested_data done [15:39:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165741,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:39:30]process_action_free close_receipt [15:39:30]json_value_free [15:39:30]json_value_free done [15:39:30]process_json_proto returns [15:39:30]Send response to host [15:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165741,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:39:30]free response buf [15:39:30]execute_script done [15:39:30]execute_script returns [15:39:30]free content buf [15:39:30]Sock 7.Close socket [15:39:30]Sock 7.Thread stoped [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:49]accept exits with 9 [15:51:49]New connection [15:51:49]New thread 3066776932 created [15:51:49]Thread 3066920292 joined [15:51:49]Waiting for new connection... [15:51:49] Sock 9.Parse request [15:51:49]Sock 9.Check first char [15:51:49]Sock 9.First char is OK [15:51:49]request: POST /json_proto HTTP/1.0 [15:51:49]Method: POST [15:51:49]URL: /json_proto [15:51:49]Method is POST - this is cgi request [15:51:49]url: /json_proto [15:51:49]query_string will be loaded in cgi processing [15:51:49]execute_cgi json_proto POST (null) [15:51:49]execute_cgi path=json_proto method=POST [15:51:49]POST find Content-Length [15:51:49]Host: 172.17.53.195:8080 [15:51:49]Content-Length: 677 [15:51:49]Content-Type: application/json [15:51:49] [15:51:49]POST finish read [15:51:49]Found Content-Length = 677 [15:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:49]execute_script... [15: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)220310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:49]POST & json_proto [15:51:49]process_json_proto [15:51:49]json parsed OK: [15:51:49]protocol is kg_v1.0 [15:51:49]action value=close_receipt [15:51:49]process_action close_receipt [15:51:49]cmd_close_receipt [15:51:49]MH_GetDate [15:51:49]Write to MH i2c: F0 00 00 12 FD FE [15:51:49]Write i2c OK [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: F0 [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: F0 09 00 [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: F0 09 00 12 FD 00 22 27 15 67 21 48 4A 65 E4 [15:51:49]GetLastDocTimeStamp 1729438778 [15:51:49]current date 1729439522 [15:51:49]FM_GetShiftState [15:51:49]SAM_PROTO_GetShiftState [15:51:49]wFMCommunicate request_size=4 [15:51:49]MH_SAM_APDU [15:51:49]CAPDU: 80 13 01 00 [15:51:49]Write to MH i2c: E2 08 00 13 FD 80 13 01 00 00 00 00 00 8D [15:51:49]Write i2c OK [15:51:49]MH_I2C_Read... [15:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:49]Read from MH i2c: E2 [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: E2 0E 00 [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: E2 0E 00 13 FD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D5 [15:51:49]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:51:49]wFMCommunicate OK [15:51:49]SAM_PROTO_GetShiftState done [15:51:49]FM_GetShiftState done [15:51:49]opened in 1729384561 [15:51:49]opened+sec_in_day 1729470961 [15:51:49]quantity*price = 50041 [15:51:49]sum+1 = 50042 [15:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 224 20.10.2024 15:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165742 ФПД: 45258593922055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155202&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165742&fm=45258593922055&tin=02508201610067®Number=0000000000091764&sum=50000 [15:51:50]StoreToDocumentArchive [15:51:50]shift 534 fd 165742 [15:51:50]save to /storage/0534/doc_00165742 [15:51:50]save last doc name /storage/0534/doc_00165742 to /storage/kkm_last_doc_name [15:51:50]save OK [15:51:50]Clear old archive folders... [15:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:50]tlvbuf is 0163FCE0 [15:51:50]SAM_PROTO_ClearQueue [15:51:50]wFMCommunicate request_size=4 [15:51:50]MH_SAM_APDU [15:51:50]CAPDU: 80 09 00 00 [15:51:50]Write to MH i2c: E2 08 00 20 FD 80 09 00 00 00 00 00 00 8F [15:51:50]Write i2c OK [15:51:50]MH_I2C_Read... [15:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:50]Read from MH i2c: E2 [15:51:50]MH_I2C_Read... [15:51:50]Read from MH i2c: E2 03 00 [15:51:50]MH_I2C_Read... [15:51:50]Read from MH i2c: E2 03 00 20 FD 00 90 00 91 [15:51:50]RAPDU: 90 00 [15:51:50]wFMCommunicate OK [15:51:50]SAM_PROTO_ClearQueue done [15:51:50]KKMCreateOFDPacket [15:51:50]OFDProtocolAddRootSTLVToBuf [15:51:50]FM_MakeSignedData [15:51:50]FM_MakeSignedData [15:51:50]SAM_PROTO_SignData [15:51:50]wFMCommunicate request_size=4 [15:51:50]MH_SAM_APDU [15:51:50]CAPDU: 80 0D 01 02 [15:51:50]Write to MH i2c: E2 08 00 21 FD 80 0D 01 02 00 00 00 00 97 [15:51:50]Write i2c OK [15:51:50]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 21 FD 00 90 00 92 [15:51:51]RAPDU: 90 00 [15:51:51]wFMCommunicate OK [15:51:51]wFMCommunicate request_size=255 [15:51:51]MH_SAM_APDU [15: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 22 27 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 87 02 00 35 04 06 00 29 [15:51:51]Write to MH i2c: E2 02 01 22 FD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 22 27 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 87 02 00 35 04 06 00 29 00 00 0A [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 22 FD 00 90 00 93 [15:51:51]RAPDU: 90 00 [15:51:51]wFMCommunicate OK [15:51:51]wFMCommunicate request_size=10 [15:51:51]MH_SAM_APDU [15:51:51]CAPDU: 80 0D 02 02 05 29 96 69 EC 07 [15:51:51]Write to MH i2c: E2 0D 00 23 FD 80 0D 02 02 05 00 29 96 69 EC 07 00 00 BF [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 23 FD 00 90 00 94 [15:51:51]RAPDU: 90 00 [15:51:51]wFMCommunicate OK [15:51:51]wFMCommunicate request_size=4 [15:51:51]MH_SAM_APDU [15:51:51]CAPDU: 80 0D 03 02 [15:51:51]Write to MH i2c: E2 08 00 24 FD 80 0D 03 02 00 00 00 00 9C [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 0B 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 0B 00 24 FD 00 07 D3 09 68 3C 92 14 08 90 00 D2 [15:51:51]RAPDU: 07 D3 09 68 3C 92 14 08 90 00 [15:51:51]wFMCommunicate OK [15:51:51]SAM_PROTO_SignData done [15:51:51]FM_MakeSignedData done [15:51:51]CreateOFDProtocolMessage [15:51:51]wFMCommunicate request_size=4 [15:51:51]MH_SAM_APDU [15:51:51]CAPDU: 80 11 00 00 [15:51:51]Write to MH i2c: E2 08 00 25 FD 80 11 00 00 00 00 00 00 9C [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 17 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 17 00 25 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [15:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:51:51]wFMCommunicate OK [15:51:51]CreateOFDProtocolMessage done [15:51:51]OFDSenderStorePacket 165742 [15:51:51]StoreOFDPacket docnum=165742 [15:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 00 07 01 07 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 22 27 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 87 02 00 35 04 06 00 29 29 96 69 EC 07 07 D3 09 68 3C 92 14 08 [15:51:51]CheckFolder [15:51:51]dirname=/storage/ofd_packets [15:51:51]CheckFolder done [15:51:51]ProducePacketName [15:51:51]name=ofd_packets/00165742 [15:51:51]NVStorageSaveData ofd_packets/00165742 [15:51:51]File name is /storage/ofd_packets/00165742 [15:51:51]Write 301 bytes [15:51:51]NVStorageSaveData done [15:51:51]OFDSenderStorePacket done [15:51:51]KKMCreateOFDPacket done [15:51:51]NVStorageSaveData kkm_last_timestamp [15:51:51]File name is /storage/kkm_last_timestamp [15:51:51]Write 4 bytes [15:51:51]NVStorageSaveData done [15:51:51]ExternCall_PrintAddStr [15:51:51]wPrintStart [15:51:51]Write to MH i2c: 01 00 00 26 FD 23 [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: 01 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: 01 07 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: 01 07 00 26 FD 00 00 00 00 00 FF 0F 38 [15:51:51]RasterBufferAndPrint [15:51:51]line Счет N : (1)220310 [15:51:51]line ИНН: 02508201610067 [15:51:51]line Контрольно-Кассовый Чек [15:51:51]line ПРОДАЖА [15:51:51]line ТРК (МРК, ГНК) : 33 [15:51:51]line Товар: 2710124130 [15:51:51]line Аи-92-К-5 [15:51:51]line 7.480 * 66.90 [15:51:51]line = 500.41 [15:51:51]line НДС 12% НСП 1% [15:51:51]line > о реализуемом товаре [15:51:51]line ОКРУГЛЕНИЕ: -0.41 [15:51:51]line ИТОГО: 500.00 [15:51:51]line Внесено: 500.00 [15:51:51]line СДАЧА: 0.00 [15:51:51]line НСП 1% : 4.43 [15:51:51]line НДС 12% : 53.14 [15:51:51]line Наличными: 500.00 [15:51:51]line Безнал.: 0.00 [15:51:51]line Место: АЗС № 161 "Партнер Нефть" [15:51:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:51:51]line СНО: Общий режим [15:51:51]line Чек 224 20.10.2024 15:52 [15:51:51]line Смена: 534 ФФД: 1.0 [15:51:51]line ЗНМ: 0300000104 [15:51:51]line РНМ: 0000000000091764 [15:51:51]line Версия ККМ: 001 [15:51:51]line ФМ: 0000000000871759 [15:51:51]line ФД: 165742 [15:51:51]line ФПД: 45258593922055 [15:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155202&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165742&fm=45258593922055&tin=02508201610067®Number=0000000000091764&sum=50000 [15:51:51]OFD Sender: Processing packet 165742 [packets to send 48, broken 47] [15:51:51]ProducePacketName [15:51:51]name=ofd_packets/00165742 [15:51:51]OFD Sender: To server: pG, [15:51:51]CommunicateWithHost lk.salyk.kg:30040 [15:51:51]ConnectInit lk.salyk.kg [15:51:51]written 0, free lines is 4095 [15:51:51]Connected sock=10 [15: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 31 37 35 39 0F 01 00 00 47 00 07 01 07 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 22 27 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 87 02 00 35 04 06 00 29 29 96 69 EC 07 07 D3 09 68 3C 92 14 08 [15:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 59 36 47 00 0B E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 87 02 00 F4 03 04 00 94 CD 14 67 B6 04 01 00 00 0D B4 84 98 BD D8 D1 4E [15:51:52]CommunicateWithHost err = 0 [15:51:52]CheckOFDResponse [15:51:52]1017 (14) - 77093643461234 [15:51:52]1041 (16) - 0000000000871759 [15:51:52]1040 (4) - 165742 [15:51:52]1012 (4) - 20.10.2024 09:29 [15:51:52]1206 (1) - 0 [15:51:52]OFD Sender: Remove packet 165742 [15:51:52]ProducePacketName [15:51:52]name=ofd_packets/00165742 [15:51:52]NVStorageDeleteData [15:51:52]Write to MH i2c: 01 00 00 51 FD 4E [15:51:52]Write i2c OK [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: 01 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: 01 07 00 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: 01 07 00 51 FD 00 00 00 00 00 C2 0C 23 [15:51:52]RasterBufferAndPrint [15:51:52]line [15:51:52]line [15:51:52]line [15:51:52]line [15:51:52]line [15:51:52]written 0, free lines is 3272 [15:51:52]MH_Cut [15:51:52]Write to MH i2c: D1 01 00 58 FD 01 27 [15:51:52]Write i2c OK [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: D1 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: D1 01 00 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: D1 01 00 58 FD 00 26 [15:51:52]Write to MH i2c: 01 00 00 59 FD 56 [15:51:52]Write i2c OK [15:51:52]MH_I2C_Read... [15:51:52]OFD Sender: No OFD packet to send [15:51:53]*** Cut start [15:51:53]*** Partial cut [15:51:53]*** CUTSNS_PIN = 1 [15:51:53]*** CUTSNS_PIN = 0 [15:51:53]*** Brake cut motor [15:51:53]Read from MH i2c: 01 [15:51:53]MH_I2C_Read... [15:51:53]*** Stop cut motor [15:51:53]*** Cut end [15:51:53]Read from MH i2c: 01 07 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: 01 07 00 59 FD 00 00 00 00 00 FF 0F 6B [15:51:53]process_action close_receipt done [15:51:53]requested_data is exist [15:51:53]produce_requested_data [15:51:53]requested_item fm.sn is exist - process it [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 11 00 00 [15:51:53]Write to MH i2c: E2 08 00 5A FD 80 11 00 00 00 00 00 00 D1 [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 17 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 17 00 5A FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [15:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:51:53]wFMCommunicate OK [15:51:53]requested_item fd.num is exist - process it [15:51:53]SAM_PROTO_GetFieldsCounters [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 13 00 00 [15:51:53]Write to MH i2c: E2 08 00 5B FD 80 13 00 00 00 00 00 00 D4 [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 62 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 62 00 5B FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 87 02 00 0E 04 04 00 16 02 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 AB [15: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 87 02 00 0E 04 04 00 16 02 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:51:53]wFMCommunicate OK [15:51:53]SAM_PROTO_GetFieldsCounters done [15:51:53]requested_item shift.num is exist - process it [15:51:53]requested_item shift.opened is exist - process it [15:51:53]req_shift_opened [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 5C FD 80 13 01 00 00 00 00 00 D6 [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 5C FD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1E [15:51:53]RAPDU: 09 00 01 71 50 14 67 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]req_shift_opened done [15:51:53]requested_item shift.open_date is exist - process it [15:51:53]req_shift_open_date [15:51:53]req_shift_open_date done [15:51:53]produce_requested_data done [15:51:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165742,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:51:53]process_action_free close_receipt [15:51:53]json_value_free [15:51:53]json_value_free done [15:51:53]process_json_proto returns [15:51:53]Send response to host [15:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165742,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:51:53]free response buf [15:51:53]execute_script done [15:51:53]execute_script returns [15:51:53]free content buf [15:51:53]Sock 9.Close socket [15:51:53]Sock 9.Thread stoped [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:40]accept exits with 7 [15:58:40]New connection [15:58:40]New thread 3066920292 created [15:58:40]Thread 3066776932 joined [15:58:40]Waiting for new connection... [15:58:40] Sock 7.Parse request [15:58:40]Sock 7.Check first char [15:58:40]Sock 7.First char is OK [15:58:40]request: POST /json_proto HTTP/1.0 [15:58:40]Method: POST [15:58:40]URL: /json_proto [15:58:40]Method is POST - this is cgi request [15:58:40]url: /json_proto [15:58:40]query_string will be loaded in cgi processing [15:58:40]execute_cgi json_proto POST (null) [15:58:40]execute_cgi path=json_proto method=POST [15:58:40]POST find Content-Length [15:58:40]Host: 172.17.53.195:8080 [15:58:40]Content-Length: 769 [15:58:40]Content-Type: application/json [15:58:40] [15:58:40]POST finish read [15:58:40]Found Content-Length = 769 [15:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:40]execute_script... [15:58: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)220311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:40]POST & json_proto [15:58:40]process_json_proto [15:58:40]json parsed OK: [15:58:40]protocol is kg_v1.0 [15:58:40]action value=close_receipt [15:58:40]process_action close_receipt [15:58:40]cmd_close_receipt [15:58:40]MH_GetDate [15:58:40]Write to MH i2c: F0 00 00 5D FD 49 [15:58:40]Write i2c OK [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: F0 [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: F0 09 00 [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: F0 09 00 5D FD 00 BD 28 15 67 21 48 4A 65 CB [15:58:40]GetLastDocTimeStamp 1729439522 [15:58:40]current date 1729439933 [15:58:40]FM_GetShiftState [15:58:40]SAM_PROTO_GetShiftState [15:58:40]wFMCommunicate request_size=4 [15:58:40]MH_SAM_APDU [15:58:40]CAPDU: 80 13 01 00 [15:58:40]Write to MH i2c: E2 08 00 5E FD 80 13 01 00 00 00 00 00 D8 [15:58:40]Write i2c OK [15:58:40]MH_I2C_Read... [15:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:40]Read from MH i2c: E2 [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: E2 0E 00 [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: E2 0E 00 5E FD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 20 [15:58:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:58:40]wFMCommunicate OK [15:58:40]SAM_PROTO_GetShiftState done [15:58:40]FM_GetShiftState done [15:58:40]opened in 1729384561 [15:58:40]opened+sec_in_day 1729470961 [15:58:40]quantity*price = 100021 [15:58:40]sum+1 = 100023 [15:58:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 225 20.10.2024 15:58 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165743 ФПД: 253531275239888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155853&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165743&fm=253531275239888&tin=02508201610067®Number=0000000000091764&sum=100022 [15:58:41]StoreToDocumentArchive [15:58:41]shift 534 fd 165743 [15:58:41]save to /storage/0534/doc_00165743 [15:58:41]save last doc name /storage/0534/doc_00165743 to /storage/kkm_last_doc_name [15:58:41]save OK [15:58:41]Clear old archive folders... [15:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:41]tlvbuf is 01484EF0 [15:58:41]SAM_PROTO_ClearQueue [15:58:41]wFMCommunicate request_size=4 [15:58:41]MH_SAM_APDU [15:58:41]CAPDU: 80 09 00 00 [15:58:41]Write to MH i2c: E2 08 00 6B FD 80 09 00 00 00 00 00 00 DA [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 6B FD 00 90 00 DC [15:58:41]RAPDU: 90 00 [15:58:41]wFMCommunicate OK [15:58:41]SAM_PROTO_ClearQueue done [15:58:41]KKMCreateOFDPacket [15:58:41]OFDProtocolAddRootSTLVToBuf [15:58:41]FM_MakeSignedData [15:58:41]FM_MakeSignedData [15:58:41]SAM_PROTO_SignData [15:58:41]wFMCommunicate request_size=4 [15:58:41]MH_SAM_APDU [15:58:41]CAPDU: 80 0D 01 02 [15:58:41]Write to MH i2c: E2 08 00 6C FD 80 0D 01 02 00 00 00 00 E2 [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 6C FD 00 90 00 DD [15:58:41]RAPDU: 90 00 [15:58:41]wFMCommunicate OK [15:58:41]wFMCommunicate request_size=255 [15:58:41]MH_SAM_APDU [15:58: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD 28 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 87 02 00 35 04 06 00 E6 [15:58:41]Write to MH i2c: E2 02 01 6D FD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD 28 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 87 02 00 35 04 06 00 E6 00 00 F9 [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 6D FD 00 90 00 DE [15:58:41]RAPDU: 90 00 [15:58:41]wFMCommunicate OK [15:58:41]wFMCommunicate request_size=10 [15:58:41]MH_SAM_APDU [15:58:41]CAPDU: 80 0D 02 02 05 95 D9 99 A1 D0 [15:58:41]Write to MH i2c: E2 0D 00 6E FD 80 0D 02 02 05 00 95 D9 99 A1 D0 00 00 67 [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 6E FD 00 90 00 DF [15:58:41]RAPDU: 90 00 [15:58:41]wFMCommunicate OK [15:58:41]wFMCommunicate request_size=4 [15:58:41]MH_SAM_APDU [15:58:41]CAPDU: 80 0D 03 02 [15:58:41]Write to MH i2c: E2 08 00 6F FD 80 0D 03 02 00 00 00 00 E7 [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 0B 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 0B 00 6F FD 00 6D 5E 6C E2 70 E7 38 21 90 00 B1 [15:58:41]RAPDU: 6D 5E 6C E2 70 E7 38 21 90 00 [15:58:41]wFMCommunicate OK [15:58:41]SAM_PROTO_SignData done [15:58:41]FM_MakeSignedData done [15:58:41]CreateOFDProtocolMessage [15:58:41]wFMCommunicate request_size=4 [15:58:41]MH_SAM_APDU [15:58:41]CAPDU: 80 11 00 00 [15:58:41]Write to MH i2c: E2 08 00 70 FD 80 11 00 00 00 00 00 00 E7 [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 17 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 17 00 70 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3F [15:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:58:41]wFMCommunicate OK [15:58:41]CreateOFDProtocolMessage done [15:58:41]OFDSenderStorePacket 165743 [15:58:41]StoreOFDPacket docnum=165743 [15:58:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 ED 07 01 3C 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD 28 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 87 02 00 35 04 06 00 E6 95 D9 99 A1 D0 6D 5E 6C E2 70 E7 38 21 [15:58:41]CheckFolder [15:58:41]dirname=/storage/ofd_packets [15:58:41]CheckFolder done [15:58:41]ProducePacketName [15:58:41]name=ofd_packets/00165743 [15:58:41]NVStorageSaveData ofd_packets/00165743 [15:58:41]File name is /storage/ofd_packets/00165743 [15:58:41]Write 301 bytes [15:58:41]NVStorageSaveData done [15:58:41]OFDSenderStorePacket done [15:58:41]KKMCreateOFDPacket done [15:58:41]NVStorageSaveData kkm_last_timestamp [15:58:41]File name is /storage/kkm_last_timestamp [15:58:41]Write 4 bytes [15:58:41]NVStorageSaveData done [15:58:41]ExternCall_PrintAddStr [15:58:41]wPrintStart [15:58:41]Write to MH i2c: 01 00 00 71 FD 6E [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: 01 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: 01 07 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: 01 07 00 71 FD 00 00 00 00 00 FF 0F 83 [15:58:41]RasterBufferAndPrint [15:58:41]line Счет N : (1)220311 [15:58:41]line ИНН: 02508201610067 [15:58:41]line Контрольно-Кассовый Чек [15:58:41]line ПРОДАЖА [15:58:41]line ТРК (МРК, ГНК) : 14 [15:58:41]line Товар: 2710124500 [15:58:41]line Аи-95-К-5 [15:58:41]line 13.480 * 74.20 [15:58:41]line = 1000.22 [15:58:41]line НДС 12% НСП 1% [15:58:41]line > о реализуемом товаре [15:58:41]line ИТОГО: 1000.22 [15:58:41]line НСП 1% : 8.85 [15:58:41]line НДС 12% : 106.22 [15:58:41]line Наличными: 0.00 [15:58:41]line Безнал.: 1000.22 [15:58:41]line Место: АЗС № 161 "Партнер Нефть" [15:58:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:58:41]line СНО: Общий режим [15:58:41]line Чек 225 20.10.2024 15:58 [15:58:41]line Смена: 534 ФФД: 1.0 [15:58:41]line ЗНМ: 0300000104 [15:58:41]line РНМ: 0000000000091764 [15:58:41]line Версия ККМ: 001 [15:58:41]line Платежная система: Mbank [15:58:41]line ФМ: 0000000000871759 [15:58:41]line ФД: 165743 [15:58:41]line ФПД: 253531275239888 [15:58:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155853&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165743&fm=253531275239888&tin=02508201610067®Number=0000000000091764&sum=100022 [15:58:42]written 0, free lines is 4095 [15:58:42]OFD Sender: Processing packet 165743 [packets to send 48, broken 47] [15:58:42]ProducePacketName [15:58:42]name=ofd_packets/00165743 [15:58:42]OFD Sender: To server: pG, [15:58:42]CommunicateWithHost lk.salyk.kg:30040 [15:58:42]ConnectInit lk.salyk.kg [15:58:42]Connected sock=10 [15:58:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 ED 07 01 3C 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD 28 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 87 02 00 35 04 06 00 E6 95 D9 99 A1 D0 6D 5E 6C E2 70 E7 38 21 [15:58:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7A 97 47 00 58 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 87 02 00 F4 03 04 00 2E CF 14 67 B6 04 01 00 00 B1 75 35 66 B7 4E 6C D9 [15:58:42]CommunicateWithHost err = 0 [15:58:42]CheckOFDResponse [15:58:42]1017 (14) - 77093643461234 [15:58:42]1041 (16) - 0000000000871759 [15:58:42]1040 (4) - 165743 [15:58:42]1012 (4) - 20.10.2024 09:36 [15:58:42]1206 (1) - 0 [15:58:42]OFD Sender: Remove packet 165743 [15:58:42]ProducePacketName [15:58:42]name=ofd_packets/00165743 [15:58:42]NVStorageDeleteData [15:58:42]Write to MH i2c: 01 00 00 9A FD 97 [15:58:42]Write i2c OK [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: 01 [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: 01 07 00 [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: 01 07 00 9A FD 00 00 00 00 00 E5 0C 8F [15:58:42]RasterBufferAndPrint [15:58:42]line [15:58:42]line [15:58:42]line [15:58:42]line [15:58:42]line [15:58:42]written 0, free lines is 3307 [15:58:42]MH_Cut [15:58:42]Write to MH i2c: D1 01 00 A1 FD 01 70 [15:58:42]Write i2c OK [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: D1 [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: D1 01 00 [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: D1 01 00 A1 FD 00 6F [15:58:42]Write to MH i2c: 01 00 00 A2 FD 9F [15:58:42]Write i2c OK [15:58:42]MH_I2C_Read... [15:58:43]OFD Sender: No OFD packet to send [15:58:43]*** Cut start [15:58:43]*** Partial cut [15:58:43]*** CUTSNS_PIN = 1 [15:58:43]*** CUTSNS_PIN = 0 [15:58:43]*** Brake cut motor [15:58:44]Read from MH i2c: 01 [15:58:44]MH_I2C_Read... [15:58:44]*** Stop cut motor [15:58:44]*** Cut end [15:58:44]Read from MH i2c: 01 07 00 [15:58:44]MH_I2C_Read... [15:58:44]Read from MH i2c: 01 07 00 A2 FD 00 00 00 00 00 FF 0F B4 [15:58:44]process_action close_receipt done [15:58:44]requested_data is exist [15:58:44]produce_requested_data [15:58:44]requested_item fm.sn is exist - process it [15:58:44]wFMCommunicate request_size=4 [15:58:44]MH_SAM_APDU [15:58:44]CAPDU: 80 11 00 00 [15:58:44]Write to MH i2c: E2 08 00 A3 FD 80 11 00 00 00 00 00 00 1A [15:58:44]Write i2c OK [15:58:44]MH_I2C_Read... [15:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:44]Read from MH i2c: E2 [15:58:44]MH_I2C_Read... [15:58:44]Read from MH i2c: E2 17 00 [15:58:44]MH_I2C_Read... [15:58:44]Read from MH i2c: E2 17 00 A3 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [15:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:58:44]wFMCommunicate OK [15:58:44]requested_item fd.num is exist - process it [15:58:44]SAM_PROTO_GetFieldsCounters [15:58:44]wFMCommunicate request_size=4 [15:58:44]MH_SAM_APDU [15:58:44]CAPDU: 80 13 00 00 [15:58:44]Write to MH i2c: E2 08 00 A4 FD 80 13 00 00 00 00 00 00 1D [15:58:44]Write i2c OK [15:58:44]MH_I2C_Read... [15:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:44]Read from MH i2c: E2 [15:58:44]MH_I2C_Read... [15:58:44]Read from MH i2c: E2 62 00 [15:58:44]MH_I2C_Read... [15:58:44]Read from MH i2c: E2 62 00 A4 FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 87 02 00 0E 04 04 00 16 02 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 F8 [15:58: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 87 02 00 0E 04 04 00 16 02 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 [15:58:44]wFMCommunicate OK [15:58:44]SAM_PROTO_GetFieldsCounters done [15:58:44]requested_item shift.num is exist - process it [15:58:44]requested_item shift.opened is exist - process it [15:58:44]req_shift_opened [15:58:44]FM_GetShiftState [15:58:44]SAM_PROTO_GetShiftState [15:58:44]wFMCommunicate request_size=4 [15:58:44]MH_SAM_APDU [15:58:44]CAPDU: 80 13 01 00 [15:58:44]Write to MH i2c: E2 08 00 A5 FD 80 13 01 00 00 00 00 00 1F [15:58:44]Write i2c OK [15:58:44]MH_I2C_Read... [15:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:44]Read from MH i2c: E2 [15:58:44]MH_I2C_Read... [15:58:44]Read from MH i2c: E2 0E 00 [15:58:44]MH_I2C_Read... [15:58:44]Read from MH i2c: E2 0E 00 A5 FD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 67 [15:58:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [15:58:44]wFMCommunicate OK [15:58:44]SAM_PROTO_GetShiftState done [15:58:44]FM_GetShiftState done [15:58:44]req_shift_opened done [15:58:44]requested_item shift.open_date is exist - process it [15:58:44]req_shift_open_date [15:58:44]req_shift_open_date done [15:58:44]produce_requested_data done [15:58:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165743,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [15:58:44]process_action_free close_receipt [15:58:44]json_value_free [15:58:44]json_value_free done [15:58:44]process_json_proto returns [15:58:44]Send response to host [15:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165743,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [15:58:44]free response buf [15:58:44]execute_script done [15:58:44]execute_script returns [15:58:44]free content buf [15:58:44]Sock 7.Close socket [15:58:44]Sock 7.Thread stoped [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:29]accept exits with 9 [16:01:29]New connection [16:01:29]New thread 3066776932 created [16:01:29]Thread 3066920292 joined [16:01:29]Waiting for new connection... [16:01:29] Sock 9.Parse request [16:01:29]Sock 9.Check first char [16:01:29]Sock 9.First char is OK [16:01:29]request: POST /json_proto HTTP/1.0 [16:01:29]Method: POST [16:01:29]URL: /json_proto [16:01:29]Method is POST - this is cgi request [16:01:29]url: /json_proto [16:01:29]query_string will be loaded in cgi processing [16:01:29]execute_cgi json_proto POST (null) [16:01:29]execute_cgi path=json_proto method=POST [16:01:29]POST find Content-Length [16:01:29]Host: 172.17.53.195:8080 [16:01:29]Content-Length: 677 [16:01:29]Content-Type: application/json [16:01:29] [16:01:29]POST finish read [16:01:29]Found Content-Length = 677 [16:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:29]execute_script... [16:01: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)220312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:29]POST & json_proto [16:01:29]process_json_proto [16:01:29]json parsed OK: [16:01:29]protocol is kg_v1.0 [16:01:29]action value=close_receipt [16:01:29]process_action close_receipt [16:01:29]cmd_close_receipt [16:01:29]MH_GetDate [16:01:29]Write to MH i2c: F0 00 00 A6 FD 92 [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 09 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 09 00 A6 FD 00 67 29 15 67 21 48 4A 65 BF [16:01:29]GetLastDocTimeStamp 1729439933 [16:01:29]current date 1729440103 [16:01:29]FM_GetShiftState [16:01:29]SAM_PROTO_GetShiftState [16:01:29]wFMCommunicate request_size=4 [16:01:29]MH_SAM_APDU [16:01:29]CAPDU: 80 13 01 00 [16:01:29]Write to MH i2c: E2 08 00 A7 FD 80 13 01 00 00 00 00 00 21 [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:29]Read from MH i2c: E2 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 0E 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 0E 00 A7 FD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 69 [16:01:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:01:29]wFMCommunicate OK [16:01:29]SAM_PROTO_GetShiftState done [16:01:29]FM_GetShiftState done [16:01:29]opened in 1729384561 [16:01:29]opened+sec_in_day 1729470961 [16:01:29]quantity*price = 50041 [16:01:29]sum+1 = 50042 [16:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 226 20.10.2024 16:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165744 ФПД: 116553291114197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160143&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165744&fm=116553291114197&tin=02508201610067®Number=0000000000091764&sum=50000 [16:01:31]StoreToDocumentArchive [16:01:31]shift 534 fd 165744 [16:01:31]save to /storage/0534/doc_00165744 [16:01:31]save last doc name /storage/0534/doc_00165744 to /storage/kkm_last_doc_name [16:01:31]save OK [16:01:31]Clear old archive folders... [16:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:31]tlvbuf is 01839B10 [16:01:31]SAM_PROTO_ClearQueue [16:01:31]wFMCommunicate request_size=4 [16:01:31]MH_SAM_APDU [16:01:31]CAPDU: 80 09 00 00 [16:01:31]Write to MH i2c: E2 08 00 B4 FD 80 09 00 00 00 00 00 00 23 [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:31]Read from MH i2c: E2 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 03 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 03 00 B4 FD 00 90 00 25 [16:01:31]RAPDU: 90 00 [16:01:31]wFMCommunicate OK [16:01:31]SAM_PROTO_ClearQueue done [16:01:31]KKMCreateOFDPacket [16:01:31]OFDProtocolAddRootSTLVToBuf [16:01:31]FM_MakeSignedData [16:01:31]FM_MakeSignedData [16:01:31]SAM_PROTO_SignData [16:01:31]wFMCommunicate request_size=4 [16:01:31]MH_SAM_APDU [16:01:31]CAPDU: 80 0D 01 02 [16:01:31]Write to MH i2c: E2 08 00 B5 FD 80 0D 01 02 00 00 00 00 2B [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:31]Read from MH i2c: E2 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 03 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 03 00 B5 FD 00 90 00 26 [16:01:31]RAPDU: 90 00 [16:01:31]wFMCommunicate OK [16:01:31]wFMCommunicate request_size=255 [16:01:31]MH_SAM_APDU [16:01: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 67 29 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 87 02 00 35 04 06 00 6A [16:01:31]Write to MH i2c: E2 02 01 B6 FD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 67 29 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 87 02 00 35 04 06 00 6A 00 00 2A [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:31]Read from MH i2c: E2 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 03 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 03 00 B6 FD 00 90 00 27 [16:01:31]RAPDU: 90 00 [16:01:31]wFMCommunicate OK [16:01:31]wFMCommunicate request_size=10 [16:01:31]MH_SAM_APDU [16:01:31]CAPDU: 80 0D 02 02 05 01 2D 83 A6 D5 [16:01:31]Write to MH i2c: E2 0D 00 B7 FD 80 0D 02 02 05 00 01 2D 83 A6 D5 00 00 64 [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:31]Read from MH i2c: E2 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 03 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 03 00 B7 FD 00 90 00 28 [16:01:31]RAPDU: 90 00 [16:01:31]wFMCommunicate OK [16:01:31]wFMCommunicate request_size=4 [16:01:31]MH_SAM_APDU [16:01:31]CAPDU: 80 0D 03 02 [16:01:31]Write to MH i2c: E2 08 00 B8 FD 80 0D 03 02 00 00 00 00 30 [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:31]Read from MH i2c: E2 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 0B 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 0B 00 B8 FD 00 A8 A9 41 48 3D C9 B4 4C 90 00 11 [16:01:31]RAPDU: A8 A9 41 48 3D C9 B4 4C 90 00 [16:01:31]wFMCommunicate OK [16:01:31]SAM_PROTO_SignData done [16:01:31]FM_MakeSignedData done [16:01:31]CreateOFDProtocolMessage [16:01:31]wFMCommunicate request_size=4 [16:01:31]MH_SAM_APDU [16:01:31]CAPDU: 80 11 00 00 [16:01:31]Write to MH i2c: E2 08 00 B9 FD 80 11 00 00 00 00 00 00 30 [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:31]Read from MH i2c: E2 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 17 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: E2 17 00 B9 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [16:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:01:31]wFMCommunicate OK [16:01:31]CreateOFDProtocolMessage done [16:01:31]OFDSenderStorePacket 165744 [16:01:31]StoreOFDPacket docnum=165744 [16:01:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 92 64 07 01 0E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 67 29 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 87 02 00 35 04 06 00 6A 01 2D 83 A6 D5 A8 A9 41 48 3D C9 B4 4C [16:01:31]CheckFolder [16:01:31]dirname=/storage/ofd_packets [16:01:31]CheckFolder done [16:01:31]ProducePacketName [16:01:31]name=ofd_packets/00165744 [16:01:31]NVStorageSaveData ofd_packets/00165744 [16:01:31]File name is /storage/ofd_packets/00165744 [16:01:31]Write 301 bytes [16:01:31]NVStorageSaveData done [16:01:31]OFDSenderStorePacket done [16:01:31]KKMCreateOFDPacket done [16:01:31]NVStorageSaveData kkm_last_timestamp [16:01:31]File name is /storage/kkm_last_timestamp [16:01:31]Write 4 bytes [16:01:31]NVStorageSaveData done [16:01:31]ExternCall_PrintAddStr [16:01:31]wPrintStart [16:01:31]Write to MH i2c: 01 00 00 BA FD B7 [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: 01 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: 01 07 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: 01 07 00 BA FD 00 00 00 00 00 FF 0F CC [16:01:31]RasterBufferAndPrint [16:01:31]line Счет N : (1)220312 [16:01:31]line ИНН: 02508201610067 [16:01:31]line Контрольно-Кассовый Чек [16:01:31]line ПРОДАЖА [16:01:31]line ТРК (МРК, ГНК) : 23 [16:01:31]line Товар: 2710124130 [16:01:31]line Аи-92-К-5 [16:01:31]line 7.480 * 66.90 [16:01:31]line = 500.41 [16:01:31]line НДС 12% НСП 1% [16:01:31]line > о реализуемом товаре [16:01:31]line ОКРУГЛЕНИЕ: -0.41 [16:01:31]line ИТОГО: 500.00 [16:01:31]line Внесено: 500.00 [16:01:31]line СДАЧА: 0.00 [16:01:31]line НСП 1% : 4.43 [16:01:31]line НДС 12% : 53.14 [16:01:31]line Наличными: 500.00 [16:01:31]line Безнал.: 0.00 [16:01:31]line Место: АЗС № 161 "Партнер Нефть" [16:01:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:01:31]line СНО: Общий режим [16:01:31]line Чек 226 20.10.2024 16:01 [16:01:31]line Смена: 534 ФФД: 1.0 [16:01:31]line ЗНМ: 0300000104 [16:01:31]line РНМ: 0000000000091764 [16:01:31]line Версия ККМ: 001 [16:01:31]line ФМ: 0000000000871759 [16:01:31]line ФД: 165744 [16:01:31]line ФПД: 116553291114197 [16:01:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160143&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165744&fm=116553291114197&tin=02508201610067®Number=0000000000091764&sum=50000 [16:01:31]written 0, free lines is 4095 [16:01:31]OFD Sender: Processing packet 165744 [packets to send 48, broken 47] [16:01:31]ProducePacketName [16:01:31]name=ofd_packets/00165744 [16:01:31]OFD Sender: To server: pG, [16:01:31]CommunicateWithHost lk.salyk.kg:30040 [16:01:31]ConnectInit lk.salyk.kg [16:01:31]Connected sock=11 [16:01:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 92 64 07 01 0E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 67 29 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 87 02 00 35 04 06 00 6A 01 2D 83 A6 D5 A8 A9 41 48 3D C9 B4 4C [16:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 65 1D 47 00 2C 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 31 37 35 39 10 04 04 00 70 87 02 00 F4 03 04 00 D8 CF 14 67 B6 04 01 00 00 B3 B2 46 78 1A 47 DE F0 [16:01:31]CommunicateWithHost err = 0 [16:01:31]CheckOFDResponse [16:01:31]1017 (14) - 77093643461234 [16:01:31]1041 (16) - 0000000000871759 [16:01:31]1040 (4) - 165744 [16:01:31]1012 (4) - 20.10.2024 09:39 [16:01:31]1206 (1) - 0 [16:01:31]OFD Sender: Remove packet 165744 [16:01:31]ProducePacketName [16:01:31]name=ofd_packets/00165744 [16:01:31]NVStorageDeleteData [16:01:32]Write to MH i2c: 01 00 00 E5 FD E2 [16:01:32]Write i2c OK [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: 01 [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: 01 07 00 [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: 01 07 00 E5 FD 00 00 00 00 00 BE 0C B3 [16:01:32]RasterBufferAndPrint [16:01:32]line [16:01:32]line [16:01:32]line [16:01:32]line [16:01:32]line [16:01:32]written 0, free lines is 3269 [16:01:32]MH_Cut [16:01:32]Write to MH i2c: D1 01 00 EC FD 01 BB [16:01:32]Write i2c OK [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: D1 [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: D1 01 00 [16:01:32]MH_I2C_Read... [16:01:32]Read from MH i2c: D1 01 00 EC FD 00 BA [16:01:32]Write to MH i2c: 01 00 00 ED FD EA [16:01:32]Write i2c OK [16:01:32]MH_I2C_Read... [16:01:32]OFD Sender: No OFD packet to send [16:01:32]*** Cut start [16:01:32]*** Partial cut [16:01:32]*** CUTSNS_PIN = 1 [16:01:32]*** CUTSNS_PIN = 0 [16:01:33]*** Brake cut motor [16:01:33]Read from MH i2c: 01 [16:01:33]MH_I2C_Read... [16:01:33]*** Stop cut motor [16:01:33]*** Cut end [16:01:33]Read from MH i2c: 01 07 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: 01 07 00 ED FD 00 00 00 00 00 FF 0F FF [16:01:33]process_action close_receipt done [16:01:33]requested_data is exist [16:01:33]produce_requested_data [16:01:33]requested_item fm.sn is exist - process it [16:01:33]wFMCommunicate request_size=4 [16:01:33]MH_SAM_APDU [16:01:33]CAPDU: 80 11 00 00 [16:01:33]Write to MH i2c: E2 08 00 EE FD 80 11 00 00 00 00 00 00 65 [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 17 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 17 00 EE FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [16:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:01:33]wFMCommunicate OK [16:01:33]requested_item fd.num is exist - process it [16:01:33]SAM_PROTO_GetFieldsCounters [16:01:33]wFMCommunicate request_size=4 [16:01:33]MH_SAM_APDU [16:01:33]CAPDU: 80 13 00 00 [16:01:33]Write to MH i2c: E2 08 00 EF FD 80 13 00 00 00 00 00 00 68 [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 62 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 62 00 EF FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 87 02 00 0E 04 04 00 16 02 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 47 [16:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 87 02 00 0E 04 04 00 16 02 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:01:33]wFMCommunicate OK [16:01:33]SAM_PROTO_GetFieldsCounters done [16:01:33]requested_item shift.num is exist - process it [16:01:33]requested_item shift.opened is exist - process it [16:01:33]req_shift_opened [16:01:33]FM_GetShiftState [16:01:33]SAM_PROTO_GetShiftState [16:01:33]wFMCommunicate request_size=4 [16:01:33]MH_SAM_APDU [16:01:33]CAPDU: 80 13 01 00 [16:01:33]Write to MH i2c: E2 08 00 F0 FD 80 13 01 00 00 00 00 00 6A [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 0E 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 0E 00 F0 FD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B2 [16:01:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:01:33]wFMCommunicate OK [16:01:33]SAM_PROTO_GetShiftState done [16:01:33]FM_GetShiftState done [16:01:33]req_shift_opened done [16:01:33]requested_item shift.open_date is exist - process it [16:01:33]req_shift_open_date [16:01:33]req_shift_open_date done [16:01:33]produce_requested_data done [16:01:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165744,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:01:33]process_action_free close_receipt [16:01:33]json_value_free [16:01:33]json_value_free done [16:01:33]process_json_proto returns [16:01:33]Send response to host [16:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165744,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:01:33]free response buf [16:01:33]execute_script done [16:01:33]execute_script returns [16:01:33]free content buf [16:01:33]Sock 9.Close socket [16:01:33]Sock 9.Thread stoped [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:53]accept exits with 7 [16:05:53]New connection [16:05:53]New thread 3066920292 created [16:05:53]Thread 3066776932 joined [16:05:53]Waiting for new connection... [16:05:53] Sock 7.Parse request [16:05:53]Sock 7.Check first char [16:05:53]Sock 7.First char is OK [16:05:53]request: POST /json_proto HTTP/1.0 [16:05:53]Method: POST [16:05:53]URL: /json_proto [16:05:53]Method is POST - this is cgi request [16:05:53]url: /json_proto [16:05:53]query_string will be loaded in cgi processing [16:05:53]execute_cgi json_proto POST (null) [16:05:53]execute_cgi path=json_proto method=POST [16:05:53]POST find Content-Length [16:05:53]Host: 172.17.53.195:8080 [16:05:53]Content-Length: 682 [16:05:53]Content-Type: application/json [16:05:53] [16:05:53]POST finish read [16:05:53]Found Content-Length = 682 [16:05:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "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" ] } } [16:05:53]execute_script... [16:05: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)220313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "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" ] } } [16:05:53]POST & json_proto [16:05:53]process_json_proto [16:05:53]json parsed OK: [16:05:53]protocol is kg_v1.0 [16:05:53]action value=close_receipt [16:05:53]process_action close_receipt [16:05:53]cmd_close_receipt [16:05:53]MH_GetDate [16:05:53]Write to MH i2c: F0 00 00 F1 FD DD [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: F0 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: F0 09 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: F0 09 00 F1 FD 00 6E 2A 15 67 21 48 4A 65 12 [16:05:53]GetLastDocTimeStamp 1729440103 [16:05:53]current date 1729440366 [16:05:53]FM_GetShiftState [16:05:53]SAM_PROTO_GetShiftState [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 13 01 00 [16:05:53]Write to MH i2c: E2 08 00 F2 FD 80 13 01 00 00 00 00 00 6C [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0E 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0E 00 F2 FD 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B4 [16:05:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:05:53]wFMCommunicate OK [16:05:53]SAM_PROTO_GetShiftState done [16:05:53]FM_GetShiftState done [16:05:53]opened in 1729384561 [16:05:53]opened+sec_in_day 1729470961 [16:05:53]quantity*price = 170066 [16:05:53]sum+1 = 170067 [16:05:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 227 20.10.2024 16:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165745 ФПД: 271929128500938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160606&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165745&fm=271929128500938&tin=02508201610067®Number=0000000000091764&sum=170000 [16:05:54]StoreToDocumentArchive [16:05:54]shift 534 fd 165745 [16:05:54]save to /storage/0534/doc_00165745 [16:05:54]save last doc name /storage/0534/doc_00165745 to /storage/kkm_last_doc_name [16:05:54]save OK [16:05:54]Clear old archive folders... [16:05:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:54]tlvbuf is 014653D0 [16:05:54]SAM_PROTO_ClearQueue [16:05:54]wFMCommunicate request_size=4 [16:05:54]MH_SAM_APDU [16:05:54]CAPDU: 80 09 00 00 [16:05:54]Write to MH i2c: E2 08 00 FF FD 80 09 00 00 00 00 00 00 6E [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:54]Read from MH i2c: E2 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 FF FD 00 90 00 70 [16:05:54]RAPDU: 90 00 [16:05:54]wFMCommunicate OK [16:05:54]SAM_PROTO_ClearQueue done [16:05:54]KKMCreateOFDPacket [16:05:54]OFDProtocolAddRootSTLVToBuf [16:05:54]FM_MakeSignedData [16:05:54]FM_MakeSignedData [16:05:54]SAM_PROTO_SignData [16:05:54]wFMCommunicate request_size=4 [16:05:54]MH_SAM_APDU [16:05:54]CAPDU: 80 0D 01 02 [16:05:54]Write to MH i2c: E2 08 00 00 FE 80 0D 01 02 00 00 00 00 77 [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:54]Read from MH i2c: E2 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 00 FE 00 90 00 72 [16:05:54]RAPDU: 90 00 [16:05:54]wFMCommunicate OK [16:05:54]wFMCommunicate request_size=255 [16:05:54]MH_SAM_APDU [16:05:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 8C 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 E3 00 00 00 F4 03 04 00 6E 2A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 87 02 00 35 04 06 00 F7 [16:05:54]Write to MH i2c: E2 02 01 01 FE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 8C 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 E3 00 00 00 F4 03 04 00 6E 2A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 87 02 00 35 04 06 00 F7 00 00 7D [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 03 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 03 00 01 FE 00 90 00 73 [16:05:55]RAPDU: 90 00 [16:05:55]wFMCommunicate OK [16:05:55]wFMCommunicate request_size=10 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 0D 02 02 05 51 6F 1B BE CA [16:05:55]Write to MH i2c: E2 0D 00 02 FE 80 0D 02 02 05 00 51 6F 1B BE CA 00 00 E7 [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 03 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 03 00 02 FE 00 90 00 74 [16:05:55]RAPDU: 90 00 [16:05:55]wFMCommunicate OK [16:05:55]wFMCommunicate request_size=4 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 0D 03 02 [16:05:55]Write to MH i2c: E2 08 00 03 FE 80 0D 03 02 00 00 00 00 7C [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 0B 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 0B 00 03 FE 00 84 E5 87 38 60 3A 58 D7 90 00 6E [16:05:55]RAPDU: 84 E5 87 38 60 3A 58 D7 90 00 [16:05:55]wFMCommunicate OK [16:05:55]SAM_PROTO_SignData done [16:05:55]FM_MakeSignedData done [16:05:55]CreateOFDProtocolMessage [16:05:55]wFMCommunicate request_size=4 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 11 00 00 [16:05:55]Write to MH i2c: E2 08 00 04 FE 80 11 00 00 00 00 00 00 7C [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 17 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 17 00 04 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [16:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:05:55]wFMCommunicate OK [16:05:55]CreateOFDProtocolMessage done [16:05:55]OFDSenderStorePacket 165745 [16:05:55]StoreOFDPacket docnum=165745 [16:05:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 08 07 01 DC 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 8C 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 E3 00 00 00 F4 03 04 00 6E 2A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 87 02 00 35 04 06 00 F7 51 6F 1B BE CA 84 E5 87 38 60 3A 58 D7 [16:05:55]CheckFolder [16:05:55]dirname=/storage/ofd_packets [16:05:55]CheckFolder done [16:05:55]ProducePacketName [16:05:55]name=ofd_packets/00165745 [16:05:55]NVStorageSaveData ofd_packets/00165745 [16:05:55]File name is /storage/ofd_packets/00165745 [16:05:55]Write 301 bytes [16:05:55]NVStorageSaveData done [16:05:55]OFDSenderStorePacket done [16:05:55]KKMCreateOFDPacket done [16:05:55]NVStorageSaveData kkm_last_timestamp [16:05:55]File name is /storage/kkm_last_timestamp [16:05:55]Write 4 bytes [16:05:55]NVStorageSaveData done [16:05:55]ExternCall_PrintAddStr [16:05:55]wPrintStart [16:05:55]Write to MH i2c: 01 00 00 05 FE 03 [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: 01 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: 01 07 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: 01 07 00 05 FE 00 00 00 00 00 FF 0F 18 [16:05:55]RasterBufferAndPrint [16:05:55]line Счет N : (1)220313 [16:05:55]line ИНН: 02508201610067 [16:05:55]line Контрольно-Кассовый Чек [16:05:55]line ПРОДАЖА [16:05:55]line ТРК (МРК, ГНК) : 24 [16:05:55]line Товар: 2710124500 [16:05:55]line Аи-95-К-5 [16:05:55]line 22.920 * 74.20 [16:05:55]line = 1700.66 [16:05:55]line НДС 12% НСП 1% [16:05:55]line > о реализуемом товаре [16:05:55]line ОКРУГЛЕНИЕ: -0.66 [16:05:55]line ИТОГО: 1700.00 [16:05:55]line Внесено: 1700.00 [16:05:55]line СДАЧА: 0.00 [16:05:55]line НСП 1% : 15.05 [16:05:55]line НДС 12% : 180.60 [16:05:55]line Наличными: 1700.00 [16:05:55]line Безнал.: 0.00 [16:05:55]line Место: АЗС № 161 "Партнер Нефть" [16:05:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:05:55]line СНО: Общий режим [16:05:55]line Чек 227 20.10.2024 16:06 [16:05:55]line Смена: 534 ФФД: 1.0 [16:05:55]line ЗНМ: 0300000104 [16:05:55]line РНМ: 0000000000091764 [16:05:55]line Версия ККМ: 001 [16:05:55]line ФМ: 0000000000871759 [16:05:55]line ФД: 165745 [16:05:55]line ФПД: 271929128500938 [16:05:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160606&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165745&fm=271929128500938&tin=02508201610067®Number=0000000000091764&sum=170000 [16:05:55]OFD Sender: Processing packet 165745 [packets to send 48, broken 47] [16:05:55]ProducePacketName [16:05:55]name=ofd_packets/00165745 [16:05:55]OFD Sender: To server: pG, [16:05:55]CommunicateWithHost lk.salyk.kg:30040 [16:05:55]ConnectInit lk.salyk.kg [16:05:55]written 0, free lines is 4095 [16:05:55]Connected sock=11 [16:05:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 08 07 01 DC 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 8C 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 E3 00 00 00 F4 03 04 00 6E 2A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 87 02 00 35 04 06 00 F7 51 6F 1B BE CA 84 E5 87 38 60 3A 58 D7 [16:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 35 71 47 00 0C 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 31 37 35 39 10 04 04 00 71 87 02 00 F4 03 04 00 E0 D0 14 67 B6 04 01 00 00 C0 FC EE A6 A5 02 A0 AB [16:05:56]CommunicateWithHost err = 0 [16:05:56]CheckOFDResponse [16:05:56]1017 (14) - 77093643461234 [16:05:56]1041 (16) - 0000000000871759 [16:05:56]1040 (4) - 165745 [16:05:56]1012 (4) - 20.10.2024 09:44 [16:05:56]1206 (1) - 0 [16:05:56]OFD Sender: Remove packet 165745 [16:05:56]ProducePacketName [16:05:56]name=ofd_packets/00165745 [16:05:56]NVStorageDeleteData [16:05:56]Write to MH i2c: 01 00 00 30 FE 2E [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: 01 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: 01 07 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: 01 07 00 30 FE 00 00 00 00 00 CD 0C 0E [16:05:56]RasterBufferAndPrint [16:05:56]line [16:05:56]line [16:05:56]line [16:05:56]line [16:05:56]line [16:05:56]written 0, free lines is 3283 [16:05:56]MH_Cut [16:05:56]Write to MH i2c: D1 01 00 37 FE 01 07 [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: D1 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: D1 01 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: D1 01 00 37 FE 00 06 [16:05:56]Write to MH i2c: 01 00 00 38 FE 36 [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]OFD Sender: No OFD packet to send [16:05:56]*** Cut start [16:05:56]*** Partial cut [16:05:56]*** CUTSNS_PIN = 1 [16:05:57]*** CUTSNS_PIN = 0 [16:05:57]*** Brake cut motor [16:05:57]Read from MH i2c: 01 [16:05:57]MH_I2C_Read... [16:05:57]*** Stop cut motor [16:05:57]*** Cut end [16:05:57]Read from MH i2c: 01 07 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: 01 07 00 38 FE 00 00 00 00 00 FF 0F 4B [16:05:57]process_action close_receipt done [16:05:57]requested_data is exist [16:05:57]produce_requested_data [16:05:57]requested_item fm.sn is exist - process it [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 11 00 00 [16:05:57]Write to MH i2c: E2 08 00 39 FE 80 11 00 00 00 00 00 00 B1 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 17 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 17 00 39 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 09 [16:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:05:57]wFMCommunicate OK [16:05:57]requested_item fd.num is exist - process it [16:05:57]SAM_PROTO_GetFieldsCounters [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 13 00 00 [16:05:57]Write to MH i2c: E2 08 00 3A FE 80 13 00 00 00 00 00 00 B4 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 62 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 62 00 3A FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 87 02 00 0E 04 04 00 16 02 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 97 [16:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 87 02 00 0E 04 04 00 16 02 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:05:57]wFMCommunicate OK [16:05:57]SAM_PROTO_GetFieldsCounters done [16:05:57]requested_item shift.num is exist - process it [16:05:57]requested_item shift.opened is exist - process it [16:05:57]req_shift_opened [16:05:57]FM_GetShiftState [16:05:57]SAM_PROTO_GetShiftState [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 13 01 00 [16:05:57]Write to MH i2c: E2 08 00 3B FE 80 13 01 00 00 00 00 00 B6 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 0E 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 0E 00 3B FE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FE [16:05:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:05:57]wFMCommunicate OK [16:05:57]SAM_PROTO_GetShiftState done [16:05:57]FM_GetShiftState done [16:05:57]req_shift_opened done [16:05:57]requested_item shift.open_date is exist - process it [16:05:57]req_shift_open_date [16:05:57]req_shift_open_date done [16:05:57]produce_requested_data done [16:05:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165745,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:05:57]process_action_free close_receipt [16:05:57]json_value_free [16:05:57]json_value_free done [16:05:57]process_json_proto returns [16:05:57]Send response to host [16:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165745,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:05:57]free response buf [16:05:57]execute_script done [16:05:57]execute_script returns [16:05:57]free content buf [16:05:57]Sock 7.Close socket [16:05:57]Sock 7.Thread stoped [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:51]accept exits with 9 [16:13:51]New connection [16:13:51]New thread 3066776932 created [16:13:51]Thread 3066920292 joined [16:13:51]Waiting for new connection... [16:13:51] Sock 9.Parse request [16:13:51]Sock 9.Check first char [16:13:51]Sock 9.First char is OK [16:13:51]request: POST /json_proto HTTP/1.0 [16:13:51]Method: POST [16:13:51]URL: /json_proto [16:13:51]Method is POST - this is cgi request [16:13:51]url: /json_proto [16:13:51]query_string will be loaded in cgi processing [16:13:51]execute_cgi json_proto POST (null) [16:13:51]execute_cgi path=json_proto method=POST [16:13:51]POST find Content-Length [16:13:51]Host: 172.17.53.195:8080 [16:13:51]Content-Length: 674 [16:13:51]Content-Type: application/json [16:13:51] [16:13:51]POST finish read [16:13:51]Found Content-Length = 674 [16:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220314", "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" : 76.20, "quantity" : 7.090, "sum" : 540.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:51]execute_script... [16: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)220314", "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" : 76.20, "quantity" : 7.090, "sum" : 540.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:51]POST & json_proto [16:13:51]process_json_proto [16:13:51]json parsed OK: [16:13:51]protocol is kg_v1.0 [16:13:51]action value=close_receipt [16:13:51]process_action close_receipt [16:13:51]cmd_close_receipt [16:13:51]MH_GetDate [16:13:51]Write to MH i2c: F0 00 00 3C FE 29 [16:13:51]Write i2c OK [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: F0 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: F0 09 00 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: F0 09 00 3C FE 00 4C 2C 15 67 21 48 4A 65 3E [16:13:51]GetLastDocTimeStamp 1729440366 [16:13:51]current date 1729440844 [16:13:51]FM_GetShiftState [16:13:51]SAM_PROTO_GetShiftState [16:13:51]wFMCommunicate request_size=4 [16:13:51]MH_SAM_APDU [16:13:51]CAPDU: 80 13 01 00 [16:13:51]Write to MH i2c: E2 08 00 3D FE 80 13 01 00 00 00 00 00 B8 [16:13:51]Write i2c OK [16:13:51]MH_I2C_Read... [16:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:51]Read from MH i2c: E2 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: E2 0E 00 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: E2 0E 00 3D FE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 00 [16:13:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:13:51]wFMCommunicate OK [16:13:51]SAM_PROTO_GetShiftState done [16:13:51]FM_GetShiftState done [16:13:51]opened in 1729384561 [16:13:51]opened+sec_in_day 1729470961 [16:13:51]quantity*price = 54025 [16:13:51]sum+1 = 54027 [16:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.37 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 228 20.10.2024 16:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165746 ФПД: 35850893884848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161404&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165746&fm=35850893884848&tin=02508201610067®Number=0000000000091764&sum=54000 [16:13:52]StoreToDocumentArchive [16:13:52]shift 534 fd 165746 [16:13:52]save to /storage/0534/doc_00165746 [16:13:52]save last doc name /storage/0534/doc_00165746 to /storage/kkm_last_doc_name [16:13:52]save OK [16:13:52]Clear old archive folders... [16:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:52]tlvbuf is 01469F40 [16:13:52]SAM_PROTO_ClearQueue [16:13:52]wFMCommunicate request_size=4 [16:13:52]MH_SAM_APDU [16:13:52]CAPDU: 80 09 00 00 [16:13:52]Write to MH i2c: E2 08 00 4A FE 80 09 00 00 00 00 00 00 BA [16:13:52]Write i2c OK [16:13:52]MH_I2C_Read... [16:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:52]Read from MH i2c: E2 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 03 00 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 03 00 4A FE 00 90 00 BC [16:13:52]RAPDU: 90 00 [16:13:52]wFMCommunicate OK [16:13:52]SAM_PROTO_ClearQueue done [16:13:52]KKMCreateOFDPacket [16:13:52]OFDProtocolAddRootSTLVToBuf [16:13:52]FM_MakeSignedData [16:13:52]FM_MakeSignedData [16:13:52]SAM_PROTO_SignData [16:13:52]wFMCommunicate request_size=4 [16:13:52]MH_SAM_APDU [16:13:52]CAPDU: 80 0D 01 02 [16:13:52]Write to MH i2c: E2 08 00 4B FE 80 0D 01 02 00 00 00 00 C2 [16:13:52]Write i2c OK [16:13:52]MH_I2C_Read... [16:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:52]Read from MH i2c: E2 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 03 00 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 03 00 4B FE 00 90 00 BD [16:13:52]RAPDU: 90 00 [16:13:52]wFMCommunicate OK [16:13:52]wFMCommunicate request_size=255 [16:13:52]MH_SAM_APDU [16:13: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 B2 1B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0A D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 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 4C 2C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 87 02 00 35 04 06 00 20 9B 2F CB [16:13:52]Write to MH i2c: E2 02 01 4C FE 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 B2 1B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0A D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 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 4C 2C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 87 02 00 35 04 06 00 20 9B 2F CB 00 00 33 [16:13:52]Write i2c OK [16:13:52]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 4C FE 00 90 00 BE [16:13:53]RAPDU: 90 00 [16:13:53]wFMCommunicate OK [16:13:53]wFMCommunicate request_size=7 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 0D 02 02 02 7D B0 [16:13:53]Write to MH i2c: E2 0A 00 4D FE 80 0D 02 02 02 00 7D B0 00 00 F6 [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 4D FE 00 90 00 BF [16:13:53]RAPDU: 90 00 [16:13:53]wFMCommunicate OK [16:13:53]wFMCommunicate request_size=4 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 0D 03 02 [16:13:53]Write to MH i2c: E2 08 00 4E FE 80 0D 03 02 00 00 00 00 C7 [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 0B 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 0B 00 4E FE 00 74 E0 07 D8 26 95 5E AC 90 00 C0 [16:13:53]RAPDU: 74 E0 07 D8 26 95 5E AC 90 00 [16:13:53]wFMCommunicate OK [16:13:53]SAM_PROTO_SignData done [16:13:53]FM_MakeSignedData done [16:13:53]CreateOFDProtocolMessage [16:13:53]wFMCommunicate request_size=4 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 11 00 00 [16:13:53]Write to MH i2c: E2 08 00 4F FE 80 11 00 00 00 00 00 00 C7 [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 17 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 17 00 4F FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [16:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:13:53]wFMCommunicate OK [16:13:53]CreateOFDProtocolMessage done [16:13:53]OFDSenderStorePacket 165746 [16:13:53]StoreOFDPacket docnum=165746 [16:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 63 1D 04 01 E4 10 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 B2 1B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0A D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 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 4C 2C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 87 02 00 35 04 06 00 20 9B 2F CB 7D B0 74 E0 07 D8 26 95 5E AC [16:13:53]CheckFolder [16:13:53]dirname=/storage/ofd_packets [16:13:53]CheckFolder done [16:13:53]ProducePacketName [16:13:53]name=ofd_packets/00165746 [16:13:53]NVStorageSaveData ofd_packets/00165746 [16:13:53]File name is /storage/ofd_packets/00165746 [16:13:53]Write 298 bytes [16:13:53]NVStorageSaveData done [16:13:53]OFDSenderStorePacket done [16:13:53]KKMCreateOFDPacket done [16:13:53]NVStorageSaveData kkm_last_timestamp [16:13:53]File name is /storage/kkm_last_timestamp [16:13:53]Write 4 bytes [16:13:53]NVStorageSaveData done [16:13:53]ExternCall_PrintAddStr [16:13:53]wPrintStart [16:13:53]Write to MH i2c: 01 00 00 50 FE 4E [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: 01 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: 01 07 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: 01 07 00 50 FE 00 00 00 00 00 FF 0F 63 [16:13:53]RasterBufferAndPrint [16:13:53]line Счет N : (1)220314 [16:13:53]line ИНН: 02508201610067 [16:13:53]line Контрольно-Кассовый Чек [16:13:53]line ПРОДАЖА [16:13:53]line ТРК (МРК, ГНК) : 11 [16:13:53]line Товар: 2710194210 [16:13:53]line ДТ-К-5 [16:13:53]line 7.090 * 76.20 [16:13:53]line = 540.26 [16:13:53]line НДС 12% НСП 1% [16:13:53]line > о реализуемом товаре [16:13:53]line ОКРУГЛЕНИЕ: -0.26 [16:13:53]line ИТОГО: 540.00 [16:13:53]line Внесено: 540.00 [16:13:53]line СДАЧА: 0.00 [16:13:53]line НСП 1% : 4.78 [16:13:53]line НДС 12% : 57.37 [16:13:53]line Наличными: 540.00 [16:13:53]line Безнал.: 0.00 [16:13:53]line Место: АЗС № 161 "Партнер Нефть" [16:13:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:13:53]line СНО: Общий режим [16:13:53]line Чек 228 20.10.2024 16:14 [16:13:53]line Смена: 534 ФФД: 1.0 [16:13:53]line ЗНМ: 0300000104 [16:13:53]line РНМ: 0000000000091764 [16:13:53]line Версия ККМ: 001 [16:13:53]line ФМ: 0000000000871759 [16:13:53]line ФД: 165746 [16:13:53]line ФПД: 35850893884848 [16:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161404&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165746&fm=35850893884848&tin=02508201610067®Number=0000000000091764&sum=54000 [16:13:53]OFD Sender: Processing packet 165746 [packets to send 48, broken 47] [16:13:53]ProducePacketName [16:13:53]name=ofd_packets/00165746 [16:13:53]OFD Sender: To server: pG, [16:13:53]CommunicateWithHost lk.salyk.kg:30040 [16:13:53]ConnectInit lk.salyk.kg [16:13:53]written 0, free lines is 4095 [16:13:53]Connected sock=10 [16: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 31 37 35 39 0C 01 00 00 63 1D 04 01 E4 10 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 B2 1B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0A D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 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 4C 2C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 87 02 00 35 04 06 00 20 9B 2F CB 7D B0 74 E0 07 D8 26 95 5E AC [16:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 49 A2 47 00 94 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 31 37 35 39 10 04 04 00 72 87 02 00 F4 03 04 00 BE D2 14 67 B6 04 01 00 00 88 49 BA 46 70 51 A8 EA [16:13:53]CommunicateWithHost err = 0 [16:13:53]CheckOFDResponse [16:13:53]1017 (14) - 77093643461234 [16:13:53]1041 (16) - 0000000000871759 [16:13:53]1040 (4) - 165746 [16:13:53]1012 (4) - 20.10.2024 09:51 [16:13:53]1206 (1) - 0 [16:13:53]OFD Sender: Remove packet 165746 [16:13:53]ProducePacketName [16:13:53]name=ofd_packets/00165746 [16:13:53]NVStorageDeleteData [16:13:54]Write to MH i2c: 01 00 00 7B FE 79 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 07 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 07 00 7B FE 00 00 00 00 00 BF 0C 4B [16:13:54]RasterBufferAndPrint [16:13:54]line [16:13:54]line [16:13:54]line [16:13:54]line [16:13:54]line [16:13:54]written 0, free lines is 3269 [16:13:54]MH_Cut [16:13:54]Write to MH i2c: D1 01 00 82 FE 01 52 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: D1 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: D1 01 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: D1 01 00 82 FE 00 51 [16:13:54]Write to MH i2c: 01 00 00 83 FE 81 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]OFD Sender: No OFD packet to send [16:13:54]*** Cut start [16:13:54]*** Partial cut [16:13:54]*** CUTSNS_PIN = 1 [16:13:54]*** CUTSNS_PIN = 0 [16:13:55]*** Brake cut motor [16:13:55]Read from MH i2c: 01 [16:13:55]MH_I2C_Read... [16:13:55]*** Stop cut motor [16:13:55]*** Cut end [16:13:55]Read from MH i2c: 01 07 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: 01 07 00 83 FE 00 00 00 00 00 FF 0F 96 [16:13:55]process_action close_receipt done [16:13:55]requested_data is exist [16:13:55]produce_requested_data [16:13:55]requested_item fm.sn is exist - process it [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 11 00 00 [16:13:55]Write to MH i2c: E2 08 00 84 FE 80 11 00 00 00 00 00 00 FC [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 17 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 17 00 84 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [16:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:13:55]wFMCommunicate OK [16:13:55]requested_item fd.num is exist - process it [16:13:55]SAM_PROTO_GetFieldsCounters [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 13 00 00 [16:13:55]Write to MH i2c: E2 08 00 85 FE 80 13 00 00 00 00 00 00 FF [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 62 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 62 00 85 FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 87 02 00 0E 04 04 00 16 02 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 E6 [16:13: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 87 02 00 0E 04 04 00 16 02 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:55]wFMCommunicate OK [16:13:55]SAM_PROTO_GetFieldsCounters done [16:13:55]requested_item shift.num is exist - process it [16:13:55]requested_item shift.opened is exist - process it [16:13:55]req_shift_opened [16:13:55]FM_GetShiftState [16:13:55]SAM_PROTO_GetShiftState [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 13 01 00 [16:13:55]Write to MH i2c: E2 08 00 86 FE 80 13 01 00 00 00 00 00 01 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 0E 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 0E 00 86 FE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 49 [16:13:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:13:55]wFMCommunicate OK [16:13:55]SAM_PROTO_GetShiftState done [16:13:55]FM_GetShiftState done [16:13:55]req_shift_opened done [16:13:55]requested_item shift.open_date is exist - process it [16:13:55]req_shift_open_date [16:13:55]req_shift_open_date done [16:13:55]produce_requested_data done [16:13:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165746,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:13:55]process_action_free close_receipt [16:13:55]json_value_free [16:13:55]json_value_free done [16:13:55]process_json_proto returns [16:13:55]Send response to host [16:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165746,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:13:55]free response buf [16:13:55]execute_script done [16:13:55]execute_script returns [16:13:55]free content buf [16:13:55]Sock 9.Close socket [16:13:55]Sock 9.Thread stoped [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:52]accept exits with 7 [16:16:52]New connection [16:16:52]New thread 3066920292 created [16:16:52]Thread 3066776932 joined [16:16:52]Waiting for new connection... [16:16:52] Sock 7.Parse request [16:16:52]Sock 7.Check first char [16:16:52]Sock 7.First char is OK [16:16:52]request: POST /json_proto HTTP/1.0 [16:16:52]Method: POST [16:16:52]URL: /json_proto [16:16:52]Method is POST - this is cgi request [16:16:52]url: /json_proto [16:16:52]query_string will be loaded in cgi processing [16:16:52]execute_cgi json_proto POST (null) [16:16:52]execute_cgi path=json_proto method=POST [16:16:52]POST find Content-Length [16:16:52]Host: 172.17.53.195:8080 [16:16:52]Content-Length: 674 [16:16:52]Content-Type: application/json [16:16:52] [16:16:52]POST finish read [16:16:52]Found Content-Length = 674 [16:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.930, "sum" : 299.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:52]execute_script... [16:16: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)220315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.930, "sum" : 299.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:52]POST & json_proto [16:16:52]process_json_proto [16:16:52]json parsed OK: [16:16:52]protocol is kg_v1.0 [16:16:52]action value=close_receipt [16:16:52]process_action close_receipt [16:16:52]cmd_close_receipt [16:16:52]MH_GetDate [16:16:52]Write to MH i2c: F0 00 00 87 FE 74 [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 09 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 09 00 87 FE 00 01 2D 15 67 21 48 4A 65 3F [16:16:52]GetLastDocTimeStamp 1729440844 [16:16:52]current date 1729441025 [16:16:52]FM_GetShiftState [16:16:52]SAM_PROTO_GetShiftState [16:16:52]wFMCommunicate request_size=4 [16:16:52]MH_SAM_APDU [16:16:52]CAPDU: 80 13 01 00 [16:16:52]Write to MH i2c: E2 08 00 88 FE 80 13 01 00 00 00 00 00 03 [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:52]Read from MH i2c: E2 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 0E 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 0E 00 88 FE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4B [16:16:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:16:52]wFMCommunicate OK [16:16:52]SAM_PROTO_GetShiftState done [16:16:52]FM_GetShiftState done [16:16:52]opened in 1729384561 [16:16:52]opened+sec_in_day 1729470961 [16:16:52]quantity*price = 29946 [16:16:52]sum+1 = 29948 [16:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.80 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 229 20.10.2024 16:17 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165747 ФПД: 192971840251126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165747&fm=192971840251126&tin=02508201610067®Number=0000000000091764&sum=29900 [16:16:53]StoreToDocumentArchive [16:16:53]shift 534 fd 165747 [16:16:53]save to /storage/0534/doc_00165747 [16:16:53]save last doc name /storage/0534/doc_00165747 to /storage/kkm_last_doc_name [16:16:53]save OK [16:16:53]Clear old archive folders... [16:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:16:53]tlvbuf is 014DA310 [16:16:53]SAM_PROTO_ClearQueue [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 09 00 00 [16:16:53]Write to MH i2c: E2 08 00 95 FE 80 09 00 00 00 00 00 00 05 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 95 FE 00 90 00 07 [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]SAM_PROTO_ClearQueue done [16:16:53]KKMCreateOFDPacket [16:16:53]OFDProtocolAddRootSTLVToBuf [16:16:53]FM_MakeSignedData [16:16:53]FM_MakeSignedData [16:16:53]SAM_PROTO_SignData [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 01 02 [16:16:53]Write to MH i2c: E2 08 00 96 FE 80 0D 01 02 00 00 00 00 0D [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 96 FE 00 90 00 08 [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]wFMCommunicate request_size=255 [16:16:53]MH_SAM_APDU [16:16:53]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 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6C 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 01 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 87 02 00 35 04 06 00 AF 81 C1 FD [16:16:53]Write to MH i2c: E2 02 01 97 FE 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 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6C 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 01 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 87 02 00 35 04 06 00 AF 81 C1 FD 00 00 BD [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 97 FE 00 90 00 09 [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]wFMCommunicate request_size=7 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 02 02 02 64 F6 [16:16:53]Write to MH i2c: E2 0A 00 98 FE 80 0D 02 02 02 00 64 F6 00 00 6E [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 98 FE 00 90 00 0A [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 03 02 [16:16:53]Write to MH i2c: E2 08 00 99 FE 80 0D 03 02 00 00 00 00 12 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 0B 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 0B 00 99 FE 00 8B BB E6 C6 E5 80 59 EF 90 00 B2 [16:16:53]RAPDU: 8B BB E6 C6 E5 80 59 EF 90 00 [16:16:53]wFMCommunicate OK [16:16:53]SAM_PROTO_SignData done [16:16:53]FM_MakeSignedData done [16:16:53]CreateOFDProtocolMessage [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 11 00 00 [16:16:53]Write to MH i2c: E2 08 00 9A FE 80 11 00 00 00 00 00 00 12 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 17 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 17 00 9A FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [16:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:16:53]wFMCommunicate OK [16:16:53]CreateOFDProtocolMessage done [16:16:53]OFDSenderStorePacket 165747 [16:16:53]StoreOFDPacket docnum=165747 [16:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8F EF 04 01 66 31 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 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6C 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 01 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 87 02 00 35 04 06 00 AF 81 C1 FD 64 F6 8B BB E6 C6 E5 80 59 EF [16:16:53]CheckFolder [16:16:53]dirname=/storage/ofd_packets [16:16:53]CheckFolder done [16:16:53]ProducePacketName [16:16:53]name=ofd_packets/00165747 [16:16:53]NVStorageSaveData ofd_packets/00165747 [16:16:53]File name is /storage/ofd_packets/00165747 [16:16:53]Write 298 bytes [16:16:53]NVStorageSaveData done [16:16:53]OFDSenderStorePacket done [16:16:53]KKMCreateOFDPacket done [16:16:53]NVStorageSaveData kkm_last_timestamp [16:16:53]File name is /storage/kkm_last_timestamp [16:16:53]Write 4 bytes [16:16:53]NVStorageSaveData done [16:16:53]ExternCall_PrintAddStr [16:16:53]wPrintStart [16:16:53]Write to MH i2c: 01 00 00 9B FE 99 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 07 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 07 00 9B FE 00 00 00 00 00 FF 0F AE [16:16:53]RasterBufferAndPrint [16:16:53]line Счет N : (1)220315 [16:16:53]line ИНН: 02508201610067 [16:16:53]line Контрольно-Кассовый Чек [16:16:53]line ПРОДАЖА [16:16:53]line ТРК (МРК, ГНК) : 41 [16:16:53]line Товар: 2710194210 [16:16:53]line ДТ-К-5 [16:16:53]line 3.930 * 76.20 [16:16:53]line = 299.47 [16:16:53]line НДС 12% НСП 1% [16:16:53]line > о реализуемом товаре [16:16:53]line ОКРУГЛЕНИЕ: -0.47 [16:16:53]line ИТОГО: 299.00 [16:16:53]line Внесено: 300.00 [16:16:53]line СДАЧА: 1.00 [16:16:53]line НСП 1% : 2.65 [16:16:53]line НДС 12% : 31.80 [16:16:53]line Наличными: 299.00 [16:16:53]line Безнал.: 0.00 [16:16:53]line Место: АЗС № 161 "Партнер Нефть" [16:16:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:16:53]line СНО: Общий режим [16:16:53]line Чек 229 20.10.2024 16:17 [16:16:53]line Смена: 534 ФФД: 1.0 [16:16:53]line ЗНМ: 0300000104 [16:16:53]line РНМ: 0000000000091764 [16:16:53]line Версия ККМ: 001 [16:16:53]line ФМ: 0000000000871759 [16:16:53]line ФД: 165747 [16:16:53]line ФПД: 192971840251126 [16:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165747&fm=192971840251126&tin=02508201610067®Number=0000000000091764&sum=29900 [16:16:54]OFD Sender: Processing packet 165747 [packets to send 48, broken 47] [16:16:54]ProducePacketName [16:16:54]name=ofd_packets/00165747 [16:16:54]OFD Sender: To server: pG, [16:16:54]CommunicateWithHost lk.salyk.kg:30040 [16:16:54]ConnectInit lk.salyk.kg [16:16:54]written 0, free lines is 4095 [16:16:54]Connected sock=10 [16:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8F EF 04 01 66 31 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 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6C 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 01 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 87 02 00 35 04 06 00 AF 81 C1 FD 64 F6 8B BB E6 C6 E5 80 59 EF [16:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 55 B2 47 00 90 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 31 37 35 39 10 04 04 00 73 87 02 00 F4 03 04 00 72 D3 14 67 B6 04 01 00 00 5D A0 B0 8D 47 BD 2D 2E [16:16:54]CommunicateWithHost err = 0 [16:16:54]CheckOFDResponse [16:16:54]1017 (14) - 77093643461234 [16:16:54]1041 (16) - 0000000000871759 [16:16:54]1040 (4) - 165747 [16:16:54]1012 (4) - 20.10.2024 09:54 [16:16:54]1206 (1) - 0 [16:16:54]OFD Sender: Remove packet 165747 [16:16:54]ProducePacketName [16:16:54]name=ofd_packets/00165747 [16:16:54]NVStorageDeleteData [16:16:54]Write to MH i2c: 01 00 00 C6 FE C4 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 07 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 07 00 C6 FE 00 00 00 00 00 D5 0C AC [16:16:54]RasterBufferAndPrint [16:16:54]line [16:16:54]line [16:16:54]line [16:16:54]line [16:16:54]line [16:16:54]written 0, free lines is 3294 [16:16:54]MH_Cut [16:16:54]Write to MH i2c: D1 01 00 CD FE 01 9D [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: D1 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: D1 01 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: D1 01 00 CD FE 00 9C [16:16:54]Write to MH i2c: 01 00 00 CE FE CC [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]OFD Sender: No OFD packet to send [16:16:55]*** Cut start [16:16:55]*** Partial cut [16:16:55]*** CUTSNS_PIN = 1 [16:16:55]*** CUTSNS_PIN = 0 [16:16:55]*** Brake cut motor [16:16:56]Read from MH i2c: 01 [16:16:56]MH_I2C_Read... [16:16:56]*** Stop cut motor [16:16:56]*** Cut end [16:16:56]Read from MH i2c: 01 07 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 CE FE 00 00 00 00 00 FF 0F E1 [16:16:56]process_action close_receipt done [16:16:56]requested_data is exist [16:16:56]produce_requested_data [16:16:56]requested_item fm.sn is exist - process it [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 11 00 00 [16:16:56]Write to MH i2c: E2 08 00 CF FE 80 11 00 00 00 00 00 00 47 [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 17 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 17 00 CF FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [16:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:16:56]wFMCommunicate OK [16:16:56]requested_item fd.num is exist - process it [16:16:56]SAM_PROTO_GetFieldsCounters [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 13 00 00 [16:16:56]Write to MH i2c: E2 08 00 D0 FE 80 13 00 00 00 00 00 00 4A [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 62 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 62 00 D0 FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 87 02 00 0E 04 04 00 16 02 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 35 [16:16: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 87 02 00 0E 04 04 00 16 02 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:16:56]wFMCommunicate OK [16:16:56]SAM_PROTO_GetFieldsCounters done [16:16:56]requested_item shift.num is exist - process it [16:16:56]requested_item shift.opened is exist - process it [16:16:56]req_shift_opened [16:16:56]FM_GetShiftState [16:16:56]SAM_PROTO_GetShiftState [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 13 01 00 [16:16:56]Write to MH i2c: E2 08 00 D1 FE 80 13 01 00 00 00 00 00 4C [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 0E 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 0E 00 D1 FE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 94 [16:16:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:16:56]wFMCommunicate OK [16:16:56]SAM_PROTO_GetShiftState done [16:16:56]FM_GetShiftState done [16:16:56]req_shift_opened done [16:16:56]requested_item shift.open_date is exist - process it [16:16:56]req_shift_open_date [16:16:56]req_shift_open_date done [16:16:56]produce_requested_data done [16:16:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165747,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:16:56]process_action_free close_receipt [16:16:56]json_value_free [16:16:56]json_value_free done [16:16:56]process_json_proto returns [16:16:56]Send response to host [16:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165747,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:16:56]free response buf [16:16:56]execute_script done [16:16:56]execute_script returns [16:16:56]free content buf [16:16:56]Sock 7.Close socket [16:16:56]Sock 7.Thread stoped [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:35]accept exits with 9 [16:19:35]New connection [16:19:35]New thread 3066776932 created [16:19:35]Thread 3066920292 joined [16:19:35]Waiting for new connection... [16:19:35] Sock 9.Parse request [16:19:35]Sock 9.Check first char [16:19:35]Sock 9.First char is OK [16:19:35]request: POST /json_proto HTTP/1.0 [16:19:35]Method: POST [16:19:35]URL: /json_proto [16:19:35]Method is POST - this is cgi request [16:19:35]url: /json_proto [16:19:35]query_string will be loaded in cgi processing [16:19:35]execute_cgi json_proto POST (null) [16:19:35]execute_cgi path=json_proto method=POST [16:19:35]POST find Content-Length [16:19:35]Host: 172.17.53.195:8080 [16:19:35]Content-Length: 677 [16:19:35]Content-Type: application/json [16:19:35] [16:19:35]POST finish read [16:19:35]Found Content-Length = 677 [16:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [16:19:35]execute_script... [16:19: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)220316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [16:19:35]POST & json_proto [16:19:35]process_json_proto [16:19:35]json parsed OK: [16:19:35]protocol is kg_v1.0 [16:19:35]action value=close_receipt [16:19:35]process_action close_receipt [16:19:35]cmd_close_receipt [16:19:35]MH_GetDate [16:19:35]Write to MH i2c: F0 00 00 D2 FE BF [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: F0 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: F0 09 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: F0 09 00 D2 FE 00 A4 2D 15 67 21 48 4A 65 2D [16:19:35]GetLastDocTimeStamp 1729441025 [16:19:35]current date 1729441188 [16:19:35]FM_GetShiftState [16:19:35]SAM_PROTO_GetShiftState [16:19:35]wFMCommunicate request_size=4 [16:19:35]MH_SAM_APDU [16:19:35]CAPDU: 80 13 01 00 [16:19:35]Write to MH i2c: E2 08 00 D3 FE 80 13 01 00 00 00 00 00 4E [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:35]Read from MH i2c: E2 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 0E 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 0E 00 D3 FE 00 09 00 01 71 50 14 67 00 00 00 00 90 00 96 [16:19:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:19:35]wFMCommunicate OK [16:19:35]SAM_PROTO_GetShiftState done [16:19:35]FM_GetShiftState done [16:19:35]opened in 1729384561 [16:19:35]opened+sec_in_day 1729470961 [16:19:35]quantity*price = 25020 [16:19:35]sum+1 = 25022 [16:19:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 230 20.10.2024 16:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165748 ФПД: 120985755381341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161948&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165748&fm=120985755381341&tin=02508201610067®Number=0000000000091764&sum=25000 [16:19:36]StoreToDocumentArchive [16:19:36]shift 534 fd 165748 [16:19:36]save to /storage/0534/doc_00165748 [16:19:36]save last doc name /storage/0534/doc_00165748 to /storage/kkm_last_doc_name [16:19:36]save OK [16:19:36]Clear old archive folders... [16:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:36]tlvbuf is 01484F50 [16:19:36]SAM_PROTO_ClearQueue [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 09 00 00 [16:19:36]Write to MH i2c: E2 08 00 E0 FE 80 09 00 00 00 00 00 00 50 [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 03 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 03 00 E0 FE 00 90 00 52 [16:19:36]RAPDU: 90 00 [16:19:36]wFMCommunicate OK [16:19:36]SAM_PROTO_ClearQueue done [16:19:36]KKMCreateOFDPacket [16:19:36]OFDProtocolAddRootSTLVToBuf [16:19:36]FM_MakeSignedData [16:19:36]FM_MakeSignedData [16:19:36]SAM_PROTO_SignData [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 0D 01 02 [16:19:36]Write to MH i2c: E2 08 00 E1 FE 80 0D 01 02 00 00 00 00 58 [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 03 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 03 00 E1 FE 00 90 00 53 [16:19:36]RAPDU: 90 00 [16:19:36]wFMCommunicate OK [16:19:36]wFMCommunicate request_size=255 [16:19:36]MH_SAM_APDU [16:19: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 0E 00 00 00 00 00 37 04 06 00 22 1A 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 E6 00 00 00 F4 03 04 00 A4 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 87 02 00 35 04 06 00 6E [16:19:37]Write to MH i2c: E2 02 01 E2 FE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0E 00 00 00 00 00 37 04 06 00 22 1A 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 E6 00 00 00 F4 03 04 00 A4 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 87 02 00 35 04 06 00 6E 00 00 7D [16:19:37]Write i2c OK [16:19:37]MH_I2C_Read... [16:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:37]Read from MH i2c: E2 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 03 00 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 03 00 E2 FE 00 90 00 54 [16:19:37]RAPDU: 90 00 [16:19:37]wFMCommunicate OK [16:19:37]wFMCommunicate request_size=10 [16:19:37]MH_SAM_APDU [16:19:37]CAPDU: 80 0D 02 02 05 09 30 F8 EE 5D [16:19:37]Write to MH i2c: E2 0D 00 E3 FE 80 0D 02 02 05 00 09 30 F8 EE 5D 00 00 E1 [16:19:37]Write i2c OK [16:19:37]MH_I2C_Read... [16:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:37]Read from MH i2c: E2 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 03 00 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 03 00 E3 FE 00 90 00 55 [16:19:37]RAPDU: 90 00 [16:19:37]wFMCommunicate OK [16:19:37]wFMCommunicate request_size=4 [16:19:37]MH_SAM_APDU [16:19:37]CAPDU: 80 0D 03 02 [16:19:37]Write to MH i2c: E2 08 00 E4 FE 80 0D 03 02 00 00 00 00 5D [16:19:37]Write i2c OK [16:19:37]MH_I2C_Read... [16:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:37]Read from MH i2c: E2 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 0B 00 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 0B 00 E4 FE 00 64 00 1D 17 A1 4A 43 F2 90 00 16 [16:19:37]RAPDU: 64 00 1D 17 A1 4A 43 F2 90 00 [16:19:37]wFMCommunicate OK [16:19:37]SAM_PROTO_SignData done [16:19:37]FM_MakeSignedData done [16:19:37]CreateOFDProtocolMessage [16:19:37]wFMCommunicate request_size=4 [16:19:37]MH_SAM_APDU [16:19:37]CAPDU: 80 11 00 00 [16:19:37]Write to MH i2c: E2 08 00 E5 FE 80 11 00 00 00 00 00 00 5D [16:19:37]Write i2c OK [16:19:37]MH_I2C_Read... [16:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:37]Read from MH i2c: E2 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 17 00 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 17 00 E5 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [16:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:19:37]wFMCommunicate OK [16:19:37]CreateOFDProtocolMessage done [16:19:37]OFDSenderStorePacket 165748 [16:19:37]StoreOFDPacket docnum=165748 [16:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4C B3 07 01 06 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 E6 00 00 00 F4 03 04 00 A4 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 87 02 00 35 04 06 00 6E 09 30 F8 EE 5D 64 00 1D 17 A1 4A 43 F2 [16:19:37]CheckFolder [16:19:37]dirname=/storage/ofd_packets [16:19:37]CheckFolder done [16:19:37]ProducePacketName [16:19:37]name=ofd_packets/00165748 [16:19:37]NVStorageSaveData ofd_packets/00165748 [16:19:37]File name is /storage/ofd_packets/00165748 [16:19:37]Write 301 bytes [16:19:37]NVStorageSaveData done [16:19:37]OFDSenderStorePacket done [16:19:37]KKMCreateOFDPacket done [16:19:37]NVStorageSaveData kkm_last_timestamp [16:19:37]File name is /storage/kkm_last_timestamp [16:19:37]Write 4 bytes [16:19:37]NVStorageSaveData done [16:19:37]ExternCall_PrintAddStr [16:19:37]wPrintStart [16:19:37]Write to MH i2c: 01 00 00 E6 FE E4 [16:19:37]Write i2c OK [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: 01 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: 01 07 00 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: 01 07 00 E6 FE 00 00 00 00 00 FF 0F F9 [16:19:37]RasterBufferAndPrint [16:19:37]line Счет N : (1)220316 [16:19:37]line ИНН: 02508201610067 [16:19:37]line Контрольно-Кассовый Чек [16:19:37]line ПРОДАЖА [16:19:37]line ТРК (МРК, ГНК) : 23 [16:19:37]line Товар: 2710124130 [16:19:37]line Аи-92-К-5 [16:19:37]line 3.740 * 66.90 [16:19:37]line = 250.21 [16:19:37]line НДС 12% НСП 1% [16:19:37]line > о реализуемом товаре [16:19:37]line ОКРУГЛЕНИЕ: -0.21 [16:19:37]line ИТОГО: 250.00 [16:19:37]line Внесено: 250.00 [16:19:37]line СДАЧА: 0.00 [16:19:37]line НСП 1% : 2.21 [16:19:37]line НДС 12% : 26.57 [16:19:37]line Наличными: 250.00 [16:19:37]line Безнал.: 0.00 [16:19:37]line Место: АЗС № 161 "Партнер Нефть" [16:19:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:19:37]line СНО: Общий режим [16:19:37]line Чек 230 20.10.2024 16:19 [16:19:37]line Смена: 534 ФФД: 1.0 [16:19:37]line ЗНМ: 0300000104 [16:19:37]line РНМ: 0000000000091764 [16:19:37]line Версия ККМ: 001 [16:19:37]line ФМ: 0000000000871759 [16:19:37]line ФД: 165748 [16:19:37]line ФПД: 120985755381341 [16:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161948&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165748&fm=120985755381341&tin=02508201610067®Number=0000000000091764&sum=25000 [16:19:37]OFD Sender: Processing packet 165748 [packets to send 48, broken 47] [16:19:37]ProducePacketName [16:19:37]name=ofd_packets/00165748 [16:19:37]OFD Sender: To server: pG, [16:19:37]CommunicateWithHost lk.salyk.kg:30040 [16:19:37]ConnectInit lk.salyk.kg [16:19:37]written 0, free lines is 4095 [16:19:37]Connected sock=10 [16:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4C B3 07 01 06 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 E6 00 00 00 F4 03 04 00 A4 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 87 02 00 35 04 06 00 6E 09 30 F8 EE 5D 64 00 1D 17 A1 4A 43 F2 [16:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C7 EC 47 00 A2 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 31 37 35 39 10 04 04 00 74 87 02 00 F4 03 04 00 16 D4 14 67 B6 04 01 00 00 D5 DF 30 8F C8 A6 85 67 [16:19:38]CommunicateWithHost err = 0 [16:19:38]CheckOFDResponse [16:19:38]1017 (14) - 77093643461234 [16:19:38]1041 (16) - 0000000000871759 [16:19:38]1040 (4) - 165748 [16:19:38]1012 (4) - 20.10.2024 09:57 [16:19:38]1206 (1) - 0 [16:19:38]OFD Sender: Remove packet 165748 [16:19:38]ProducePacketName [16:19:38]name=ofd_packets/00165748 [16:19:38]NVStorageDeleteData [16:19:38]Write to MH i2c: 01 00 00 11 FF 10 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: 01 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: 01 07 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: 01 07 00 11 FF 00 00 00 00 00 C8 0C EB [16:19:38]RasterBufferAndPrint [16:19:38]line [16:19:38]line [16:19:38]line [16:19:38]line [16:19:38]line [16:19:38]written 0, free lines is 3281 [16:19:38]MH_Cut [16:19:38]Write to MH i2c: D1 01 00 18 FF 01 E9 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: D1 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: D1 01 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: D1 01 00 18 FF 00 E8 [16:19:38]Write to MH i2c: 01 00 00 19 FF 18 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]OFD Sender: No OFD packet to send [16:19:39]*** Cut start [16:19:39]*** Partial cut [16:19:39]*** CUTSNS_PIN = 1 [16:19:39]*** CUTSNS_PIN = 0 [16:19:39]*** Brake cut motor [16:19:39]Read from MH i2c: 01 [16:19:39]MH_I2C_Read... [16:19:39]*** Stop cut motor [16:19:39]*** Cut end [16:19:39]Read from MH i2c: 01 07 00 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: 01 07 00 19 FF 00 00 00 00 00 FF 0F 2D [16:19:39]process_action close_receipt done [16:19:39]requested_data is exist [16:19:39]produce_requested_data [16:19:39]requested_item fm.sn is exist - process it [16:19:39]wFMCommunicate request_size=4 [16:19:39]MH_SAM_APDU [16:19:39]CAPDU: 80 11 00 00 [16:19:39]Write to MH i2c: E2 08 00 1A FF 80 11 00 00 00 00 00 00 93 [16:19:39]Write i2c OK [16:19:39]MH_I2C_Read... [16:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:39]Read from MH i2c: E2 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: E2 17 00 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: E2 17 00 1A FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EB [16:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:19:39]wFMCommunicate OK [16:19:39]requested_item fd.num is exist - process it [16:19:39]SAM_PROTO_GetFieldsCounters [16:19:39]wFMCommunicate request_size=4 [16:19:39]MH_SAM_APDU [16:19:39]CAPDU: 80 13 00 00 [16:19:39]Write to MH i2c: E2 08 00 1B FF 80 13 00 00 00 00 00 00 96 [16:19:39]Write i2c OK [16:19:39]MH_I2C_Read... [16:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:39]Read from MH i2c: E2 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: E2 62 00 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: E2 62 00 1B FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 87 02 00 0E 04 04 00 16 02 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 85 [16:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 87 02 00 0E 04 04 00 16 02 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:19:39]wFMCommunicate OK [16:19:39]SAM_PROTO_GetFieldsCounters done [16:19:39]requested_item shift.num is exist - process it [16:19:39]requested_item shift.opened is exist - process it [16:19:39]req_shift_opened [16:19:39]FM_GetShiftState [16:19:39]SAM_PROTO_GetShiftState [16:19:39]wFMCommunicate request_size=4 [16:19:39]MH_SAM_APDU [16:19:39]CAPDU: 80 13 01 00 [16:19:39]Write to MH i2c: E2 08 00 1C FF 80 13 01 00 00 00 00 00 98 [16:19:39]Write i2c OK [16:19:39]MH_I2C_Read... [16:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:39]Read from MH i2c: E2 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: E2 0E 00 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: E2 0E 00 1C FF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E0 [16:19:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:19:39]wFMCommunicate OK [16:19:39]SAM_PROTO_GetShiftState done [16:19:39]FM_GetShiftState done [16:19:39]req_shift_opened done [16:19:39]requested_item shift.open_date is exist - process it [16:19:39]req_shift_open_date [16:19:39]req_shift_open_date done [16:19:39]produce_requested_data done [16:19:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165748,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:19:39]process_action_free close_receipt [16:19:39]json_value_free [16:19:39]json_value_free done [16:19:39]process_json_proto returns [16:19:39]Send response to host [16:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165748,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:19:39]free response buf [16:19:39]execute_script done [16:19:39]execute_script returns [16:19:39]free content buf [16:19:39]Sock 9.Close socket [16:19:39]Sock 9.Thread stoped [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]accept exits with 7 [16:20:38]New connection [16:20:38]New thread 3066920292 created [16:20:38]Thread 3066776932 joined [16:20:38]Waiting for new connection... [16:20:38] Sock 7.Parse request [16:20:38]Sock 7.Check first char [16:20:38]Sock 7.First char is OK [16:20:38]request: POST /json_proto HTTP/1.0 [16:20:38]Method: POST [16:20:38]URL: /json_proto [16:20:38]Method is POST - this is cgi request [16:20:38]url: /json_proto [16:20:38]query_string will be loaded in cgi processing [16:20:38]execute_cgi json_proto POST (null) [16:20:38]execute_cgi path=json_proto method=POST [16:20:38]POST find Content-Length [16:20:38]Host: 172.17.53.195:8080 [16:20:38]Content-Length: 677 [16:20:38]Content-Type: application/json [16:20:38] [16:20:38]POST finish read [16:20:38]Found Content-Length = 677 [16:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:38]execute_script... [16:20: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)220317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:38]POST & json_proto [16:20:38]process_json_proto [16:20:38]json parsed OK: [16:20:38]protocol is kg_v1.0 [16:20:38]action value=close_receipt [16:20:38]process_action close_receipt [16:20:38]cmd_close_receipt [16:20:38]MH_GetDate [16:20:38]Write to MH i2c: F0 00 00 1D FF 0B [16:20:38]Write i2c OK [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: F0 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: F0 09 00 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: F0 09 00 1D FF 00 E3 2D 15 67 21 48 4A 65 B8 [16:20:38]GetLastDocTimeStamp 1729441188 [16:20:38]current date 1729441251 [16:20:38]FM_GetShiftState [16:20:38]SAM_PROTO_GetShiftState [16:20:38]wFMCommunicate request_size=4 [16:20:38]MH_SAM_APDU [16:20:38]CAPDU: 80 13 01 00 [16:20:38]Write to MH i2c: E2 08 00 1E FF 80 13 01 00 00 00 00 00 9A [16:20:38]Write i2c OK [16:20:38]MH_I2C_Read... [16:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:38]Read from MH i2c: E2 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: E2 0E 00 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: E2 0E 00 1E FF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E2 [16:20:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:20:38]wFMCommunicate OK [16:20:38]SAM_PROTO_GetShiftState done [16:20:38]FM_GetShiftState done [16:20:38]opened in 1729384561 [16:20:38]opened+sec_in_day 1729470961 [16:20:38]quantity*price = 10035 [16:20:38]sum+1 = 10036 [16:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 231 20.10.2024 16:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165749 ФПД: 174746533438988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162051&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165749&fm=174746533438988&tin=02508201610067®Number=0000000000091764&sum=10000 [16:20:39]StoreToDocumentArchive [16:20:39]shift 534 fd 165749 [16:20:39]save to /storage/0534/doc_00165749 [16:20:39]save last doc name /storage/0534/doc_00165749 to /storage/kkm_last_doc_name [16:20:39]save OK [16:20:39]Clear old archive folders... [16:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:39]tlvbuf is 01465250 [16:20:39]SAM_PROTO_ClearQueue [16:20:39]wFMCommunicate request_size=4 [16:20:39]MH_SAM_APDU [16:20:39]CAPDU: 80 09 00 00 [16:20:39]Write to MH i2c: E2 08 00 2B FF 80 09 00 00 00 00 00 00 9C [16:20:39]Write i2c OK [16:20:39]MH_I2C_Read... [16:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:39]Read from MH i2c: E2 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 03 00 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 03 00 2B FF 00 90 00 9E [16:20:39]RAPDU: 90 00 [16:20:39]wFMCommunicate OK [16:20:39]SAM_PROTO_ClearQueue done [16:20:39]KKMCreateOFDPacket [16:20:39]OFDProtocolAddRootSTLVToBuf [16:20:39]FM_MakeSignedData [16:20:39]FM_MakeSignedData [16:20:39]SAM_PROTO_SignData [16:20:39]wFMCommunicate request_size=4 [16:20:39]MH_SAM_APDU [16:20:39]CAPDU: 80 0D 01 02 [16:20:39]Write to MH i2c: E2 08 00 2C FF 80 0D 01 02 00 00 00 00 A4 [16:20:39]Write i2c OK [16:20:39]MH_I2C_Read... [16:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:39]Read from MH i2c: E2 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 03 00 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 03 00 2C FF 00 90 00 9F [16:20:39]RAPDU: 90 00 [16:20:39]wFMCommunicate OK [16:20:39]wFMCommunicate request_size=255 [16:20:39]MH_SAM_APDU [16:20: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E3 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 87 02 00 35 04 06 00 9E [16:20:39]Write to MH i2c: E2 02 01 2D FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E3 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 87 02 00 35 04 06 00 9E 00 00 48 [16:20:39]Write i2c OK [16:20:39]MH_I2C_Read... [16:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:39]Read from MH i2c: E2 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 03 00 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 03 00 2D FF 00 90 00 A0 [16:20:39]RAPDU: 90 00 [16:20:39]wFMCommunicate OK [16:20:39]wFMCommunicate request_size=10 [16:20:39]MH_SAM_APDU [16:20:39]CAPDU: 80 0D 02 02 05 EE 59 0D 26 0C [16:20:39]Write to MH i2c: E2 0D 00 2E FF 80 0D 02 02 05 00 EE 59 0D 26 0C 00 00 37 [16:20:39]Write i2c OK [16:20:39]MH_I2C_Read... [16:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:39]Read from MH i2c: E2 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 03 00 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 03 00 2E FF 00 90 00 A1 [16:20:39]RAPDU: 90 00 [16:20:39]wFMCommunicate OK [16:20:39]wFMCommunicate request_size=4 [16:20:39]MH_SAM_APDU [16:20:39]CAPDU: 80 0D 03 02 [16:20:39]Write to MH i2c: E2 08 00 2F FF 80 0D 03 02 00 00 00 00 A9 [16:20:39]Write i2c OK [16:20:39]MH_I2C_Read... [16:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:39]Read from MH i2c: E2 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 0B 00 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 0B 00 2F FF 00 A1 E9 FF CF D6 5E 11 5E 90 00 A5 [16:20:39]RAPDU: A1 E9 FF CF D6 5E 11 5E 90 00 [16:20:39]wFMCommunicate OK [16:20:39]SAM_PROTO_SignData done [16:20:39]FM_MakeSignedData done [16:20:39]CreateOFDProtocolMessage [16:20:39]wFMCommunicate request_size=4 [16:20:39]MH_SAM_APDU [16:20:39]CAPDU: 80 11 00 00 [16:20:39]Write to MH i2c: E2 08 00 30 FF 80 11 00 00 00 00 00 00 A9 [16:20:39]Write i2c OK [16:20:39]MH_I2C_Read... [16:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:39]Read from MH i2c: E2 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 17 00 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: E2 17 00 30 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [16:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:20:39]wFMCommunicate OK [16:20:39]CreateOFDProtocolMessage done [16:20:39]OFDSenderStorePacket 165749 [16:20:39]StoreOFDPacket docnum=165749 [16:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0C 05 07 01 44 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E3 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 87 02 00 35 04 06 00 9E EE 59 0D 26 0C A1 E9 FF CF D6 5E 11 5E [16:20:39]CheckFolder [16:20:39]dirname=/storage/ofd_packets [16:20:39]CheckFolder done [16:20:39]ProducePacketName [16:20:39]name=ofd_packets/00165749 [16:20:39]NVStorageSaveData ofd_packets/00165749 [16:20:39]File name is /storage/ofd_packets/00165749 [16:20:39]Write 301 bytes [16:20:39]NVStorageSaveData done [16:20:39]OFDSenderStorePacket done [16:20:39]KKMCreateOFDPacket done [16:20:39]NVStorageSaveData kkm_last_timestamp [16:20:39]File name is /storage/kkm_last_timestamp [16:20:39]Write 4 bytes [16:20:39]NVStorageSaveData done [16:20:39]ExternCall_PrintAddStr [16:20:39]wPrintStart [16:20:39]Write to MH i2c: 01 00 00 31 FF 30 [16:20:39]Write i2c OK [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: 01 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: 01 07 00 [16:20:39]MH_I2C_Read... [16:20:39]Read from MH i2c: 01 07 00 31 FF 00 00 00 00 00 FF 0F 45 [16:20:39]RasterBufferAndPrint [16:20:39]line Счет N : (1)220317 [16:20:39]line ИНН: 02508201610067 [16:20:39]line Контрольно-Кассовый Чек [16:20:39]line ПРОДАЖА [16:20:39]line ТРК (МРК, ГНК) : 23 [16:20:39]line Товар: 2710124130 [16:20:39]line Аи-92-К-5 [16:20:39]line 1.500 * 66.90 [16:20:39]line = 100.35 [16:20:39]line НДС 12% НСП 1% [16:20:39]line > о реализуемом товаре [16:20:39]line ОКРУГЛЕНИЕ: -0.35 [16:20:39]line ИТОГО: 100.00 [16:20:39]line Внесено: 100.00 [16:20:39]line СДАЧА: 0.00 [16:20:39]line НСП 1% : 0.89 [16:20:39]line НДС 12% : 10.66 [16:20:39]line Наличными: 100.00 [16:20:39]line Безнал.: 0.00 [16:20:39]line Место: АЗС № 161 "Партнер Нефть" [16:20:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:20:39]line СНО: Общий режим [16:20:39]line Чек 231 20.10.2024 16:20 [16:20:39]line Смена: 534 ФФД: 1.0 [16:20:39]line ЗНМ: 0300000104 [16:20:39]line РНМ: 0000000000091764 [16:20:39]line Версия ККМ: 001 [16:20:39]line ФМ: 0000000000871759 [16:20:39]line ФД: 165749 [16:20:39]line ФПД: 174746533438988 [16:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162051&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165749&fm=174746533438988&tin=02508201610067®Number=0000000000091764&sum=10000 [16:20:40]OFD Sender: Processing packet 165749 [packets to send 48, broken 47] [16:20:40]ProducePacketName [16:20:40]name=ofd_packets/00165749 [16:20:40]OFD Sender: To server: pG, [16:20:40]CommunicateWithHost lk.salyk.kg:30040 [16:20:40]ConnectInit lk.salyk.kg [16:20:40]written 0, free lines is 4095 [16:20:40]Connected sock=9 [16:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0C 05 07 01 44 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E3 2D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 87 02 00 35 04 06 00 9E EE 59 0D 26 0C A1 E9 FF CF D6 5E 11 5E [16:20:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A3 CA 47 00 76 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 87 02 00 F4 03 04 00 54 D4 14 67 B6 04 01 00 00 3E 17 00 CE 0F DD 4F 36 [16:20:40]CommunicateWithHost err = 0 [16:20:40]CheckOFDResponse [16:20:40]1017 (14) - 77093643461234 [16:20:40]1041 (16) - 0000000000871759 [16:20:40]1040 (4) - 165749 [16:20:40]1012 (4) - 20.10.2024 09:58 [16:20:40]1206 (1) - 0 [16:20:40]OFD Sender: Remove packet 165749 [16:20:40]ProducePacketName [16:20:40]name=ofd_packets/00165749 [16:20:40]NVStorageDeleteData [16:20:40]Write to MH i2c: 01 00 00 5C FF 5B [16:20:40]Write i2c OK [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: 01 [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: 01 07 00 [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: 01 07 00 5C FF 00 00 00 00 00 C6 0C 34 [16:20:40]RasterBufferAndPrint [16:20:40]line [16:20:40]line [16:20:40]line [16:20:40]line [16:20:40]line [16:20:40]written 0, free lines is 3279 [16:20:40]MH_Cut [16:20:40]Write to MH i2c: D1 01 00 63 FF 01 34 [16:20:40]Write i2c OK [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: D1 [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: D1 01 00 [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: D1 01 00 63 FF 00 33 [16:20:40]Write to MH i2c: 01 00 00 64 FF 63 [16:20:40]Write i2c OK [16:20:40]MH_I2C_Read... [16:20:40]OFD Sender: No OFD packet to send [16:20:41]*** Cut start [16:20:41]*** Partial cut [16:20:41]*** CUTSNS_PIN = 1 [16:20:41]*** CUTSNS_PIN = 0 [16:20:41]*** Brake cut motor [16:20:41]Read from MH i2c: 01 [16:20:42]MH_I2C_Read... [16:20:42]*** Stop cut motor [16:20:42]*** Cut end [16:20:42]Read from MH i2c: 01 07 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: 01 07 00 64 FF 00 00 00 00 00 FF 0F 78 [16:20:42]process_action close_receipt done [16:20:42]requested_data is exist [16:20:42]produce_requested_data [16:20:42]requested_item fm.sn is exist - process it [16:20:42]wFMCommunicate request_size=4 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 11 00 00 [16:20:42]Write to MH i2c: E2 08 00 65 FF 80 11 00 00 00 00 00 00 DE [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 17 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 17 00 65 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [16:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:20:42]wFMCommunicate OK [16:20:42]requested_item fd.num is exist - process it [16:20:42]SAM_PROTO_GetFieldsCounters [16:20:42]wFMCommunicate request_size=4 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 13 00 00 [16:20:42]Write to MH i2c: E2 08 00 66 FF 80 13 00 00 00 00 00 00 E1 [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 62 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 62 00 66 FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 87 02 00 0E 04 04 00 16 02 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 D4 [16:20: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 87 02 00 0E 04 04 00 16 02 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:20:42]wFMCommunicate OK [16:20:42]SAM_PROTO_GetFieldsCounters done [16:20:42]requested_item shift.num is exist - process it [16:20:42]requested_item shift.opened is exist - process it [16:20:42]req_shift_opened [16:20:42]FM_GetShiftState [16:20:42]SAM_PROTO_GetShiftState [16:20:42]wFMCommunicate request_size=4 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 13 01 00 [16:20:42]Write to MH i2c: E2 08 00 67 FF 80 13 01 00 00 00 00 00 E3 [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 0E 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 0E 00 67 FF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2B [16:20:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:20:42]wFMCommunicate OK [16:20:42]SAM_PROTO_GetShiftState done [16:20:42]FM_GetShiftState done [16:20:42]req_shift_opened done [16:20:42]requested_item shift.open_date is exist - process it [16:20:42]req_shift_open_date [16:20:42]req_shift_open_date done [16:20:42]produce_requested_data done [16:20:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165749,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:20:42]process_action_free close_receipt [16:20:42]json_value_free [16:20:42]json_value_free done [16:20:42]process_json_proto returns [16:20:42]Send response to host [16:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165749,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:20:42]free response buf [16:20:42]execute_script done [16:20:42]execute_script returns [16:20:42]free content buf [16:20:42]Sock 7.Close socket [16:20:42]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:02]accept exits with 10 [16:22:02]New connection [16:22:02]New thread 3066776932 created [16:22:02]Thread 3066920292 joined [16:22:02]Waiting for new connection... [16:22:02] Sock 10.Parse request [16:22:02]Sock 10.Check first char [16:22:02]Sock 10.First char is OK [16:22:02]request: POST /json_proto HTTP/1.0 [16:22:02]Method: POST [16:22:02]URL: /json_proto [16:22:02]Method is POST - this is cgi request [16:22:02]url: /json_proto [16:22:02]query_string will be loaded in cgi processing [16:22:02]execute_cgi json_proto POST (null) [16:22:02]execute_cgi path=json_proto method=POST [16:22:02]POST find Content-Length [16:22:02]Host: 172.17.53.195:8080 [16:22:02]Content-Length: 677 [16:22:02]Content-Type: application/json [16:22:02] [16:22:02]POST finish read [16:22:02]Found Content-Length = 677 [16:22:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:02]execute_script... [16:22: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)220318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:02]POST & json_proto [16:22:02]process_json_proto [16:22:02]json parsed OK: [16:22:02]protocol is kg_v1.0 [16:22:02]action value=close_receipt [16:22:02]process_action close_receipt [16:22:02]cmd_close_receipt [16:22:02]MH_GetDate [16:22:02]Write to MH i2c: F0 00 00 68 FF 56 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: F0 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: F0 09 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: F0 09 00 68 FF 00 37 2E 15 67 21 48 4A 65 58 [16:22:02]GetLastDocTimeStamp 1729441251 [16:22:02]current date 1729441335 [16:22:02]FM_GetShiftState [16:22:02]SAM_PROTO_GetShiftState [16:22:02]wFMCommunicate request_size=4 [16:22:02]MH_SAM_APDU [16:22:02]CAPDU: 80 13 01 00 [16:22:02]Write to MH i2c: E2 08 00 69 FF 80 13 01 00 00 00 00 00 E5 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:02]Read from MH i2c: E2 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 0E 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 0E 00 69 FF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2D [16:22:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:22:02]wFMCommunicate OK [16:22:02]SAM_PROTO_GetShiftState done [16:22:02]FM_GetShiftState done [16:22:02]opened in 1729384561 [16:22:02]opened+sec_in_day 1729470961 [16:22:02]quantity*price = 49974 [16:22:02]sum+1 = 49975 [16:22:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 232 20.10.2024 16:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165750 ФПД: 195613515980062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162215&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165750&fm=195613515980062&tin=02508201610067®Number=0000000000091764&sum=49900 [16:22:03]StoreToDocumentArchive [16:22:03]shift 534 fd 165750 [16:22:03]save to /storage/0534/doc_00165750 [16:22:03]save last doc name /storage/0534/doc_00165750 to /storage/kkm_last_doc_name [16:22:03]save OK [16:22:03]Clear old archive folders... [16:22:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:03]tlvbuf is 0165D270 [16:22:03]SAM_PROTO_ClearQueue [16:22:03]wFMCommunicate request_size=4 [16:22:03]MH_SAM_APDU [16:22:03]CAPDU: 80 09 00 00 [16:22:03]Write to MH i2c: E2 08 00 76 FF 80 09 00 00 00 00 00 00 E7 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 03 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 03 00 76 FF 00 90 00 E9 [16:22:03]RAPDU: 90 00 [16:22:03]wFMCommunicate OK [16:22:03]SAM_PROTO_ClearQueue done [16:22:03]KKMCreateOFDPacket [16:22:03]OFDProtocolAddRootSTLVToBuf [16:22:03]FM_MakeSignedData [16:22:03]FM_MakeSignedData [16:22:03]SAM_PROTO_SignData [16:22:03]wFMCommunicate request_size=4 [16:22:03]MH_SAM_APDU [16:22:03]CAPDU: 80 0D 01 02 [16:22:03]Write to MH i2c: E2 08 00 77 FF 80 0D 01 02 00 00 00 00 EF [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 03 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 03 00 77 FF 00 90 00 EA [16:22:03]RAPDU: 90 00 [16:22:03]wFMCommunicate OK [16:22:03]wFMCommunicate request_size=255 [16:22:03]MH_SAM_APDU [16:22: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 37 2E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 87 02 00 35 04 06 00 B1 [16:22:03]Write to MH i2c: E2 02 01 78 FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 37 2E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 87 02 00 35 04 06 00 B1 00 00 F7 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 03 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 03 00 78 FF 00 90 00 EB [16:22:03]RAPDU: 90 00 [16:22:03]wFMCommunicate OK [16:22:03]wFMCommunicate request_size=10 [16:22:03]MH_SAM_APDU [16:22:03]CAPDU: 80 0D 02 02 05 E8 D2 22 1D 1E [16:22:03]Write to MH i2c: E2 0D 00 79 FF 80 0D 02 02 05 00 E8 D2 22 1D 1E 00 00 13 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 03 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 03 00 79 FF 00 90 00 EC [16:22:03]RAPDU: 90 00 [16:22:03]wFMCommunicate OK [16:22:03]wFMCommunicate request_size=4 [16:22:03]MH_SAM_APDU [16:22:03]CAPDU: 80 0D 03 02 [16:22:03]Write to MH i2c: E2 08 00 7A FF 80 0D 03 02 00 00 00 00 F4 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 0B 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 0B 00 7A FF 00 F7 C9 D3 D0 5E 22 E6 B5 90 00 73 [16:22:03]RAPDU: F7 C9 D3 D0 5E 22 E6 B5 90 00 [16:22:03]wFMCommunicate OK [16:22:03]SAM_PROTO_SignData done [16:22:03]FM_MakeSignedData done [16:22:03]CreateOFDProtocolMessage [16:22:03]wFMCommunicate request_size=4 [16:22:03]MH_SAM_APDU [16:22:03]CAPDU: 80 11 00 00 [16:22:03]Write to MH i2c: E2 08 00 7B FF 80 11 00 00 00 00 00 00 F4 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 17 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 17 00 7B FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [16:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:22:03]wFMCommunicate OK [16:22:03]CreateOFDProtocolMessage done [16:22:03]OFDSenderStorePacket 165750 [16:22:03]StoreOFDPacket docnum=165750 [16:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 85 07 01 75 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 37 2E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 87 02 00 35 04 06 00 B1 E8 D2 22 1D 1E F7 C9 D3 D0 5E 22 E6 B5 [16:22:03]CheckFolder [16:22:03]dirname=/storage/ofd_packets [16:22:03]CheckFolder done [16:22:03]ProducePacketName [16:22:03]name=ofd_packets/00165750 [16:22:03]NVStorageSaveData ofd_packets/00165750 [16:22:03]File name is /storage/ofd_packets/00165750 [16:22:03]Write 301 bytes [16:22:03]NVStorageSaveData done [16:22:03]OFDSenderStorePacket done [16:22:03]KKMCreateOFDPacket done [16:22:03]NVStorageSaveData kkm_last_timestamp [16:22:03]File name is /storage/kkm_last_timestamp [16:22:03]Write 4 bytes [16:22:03]NVStorageSaveData done [16:22:03]ExternCall_PrintAddStr [16:22:03]wPrintStart [16:22:03]Write to MH i2c: 01 00 00 7C FF 7B [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: 01 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: 01 07 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: 01 07 00 7C FF 00 00 00 00 00 FF 0F 90 [16:22:03]RasterBufferAndPrint [16:22:03]line Счет N : (1)220318 [16:22:03]line ИНН: 02508201610067 [16:22:03]line Контрольно-Кассовый Чек [16:22:03]line ПРОДАЖА [16:22:03]line ТРК (МРК, ГНК) : 43 [16:22:03]line Товар: 2710124130 [16:22:03]line Аи-92-К-5 [16:22:03]line 7.470 * 66.90 [16:22:03]line = 499.74 [16:22:03]line НДС 12% НСП 1% [16:22:03]line > о реализуемом товаре [16:22:03]line ОКРУГЛЕНИЕ: -0.74 [16:22:03]line ИТОГО: 499.00 [16:22:03]line Внесено: 500.00 [16:22:03]line СДАЧА: 1.00 [16:22:03]line НСП 1% : 4.42 [16:22:03]line НДС 12% : 53.07 [16:22:03]line Наличными: 499.00 [16:22:03]line Безнал.: 0.00 [16:22:03]line Место: АЗС № 161 "Партнер Нефть" [16:22:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:22:03]line СНО: Общий режим [16:22:03]line Чек 232 20.10.2024 16:22 [16:22:03]line Смена: 534 ФФД: 1.0 [16:22:03]line ЗНМ: 0300000104 [16:22:03]line РНМ: 0000000000091764 [16:22:03]line Версия ККМ: 001 [16:22:03]line ФМ: 0000000000871759 [16:22:03]line ФД: 165750 [16:22:03]line ФПД: 195613515980062 [16:22:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162215&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165750&fm=195613515980062&tin=02508201610067®Number=0000000000091764&sum=49900 [16:22:04]OFD Sender: Processing packet 165750 [packets to send 48, broken 47] [16:22:04]ProducePacketName [16:22:04]name=ofd_packets/00165750 [16:22:04]OFD Sender: To server: pG, [16:22:04]CommunicateWithHost lk.salyk.kg:30040 [16:22:04]ConnectInit lk.salyk.kg [16:22:04]written 0, free lines is 4095 [16:22:04]Connected sock=9 [16:22:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 85 07 01 75 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 37 2E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 87 02 00 35 04 06 00 B1 E8 D2 22 1D 1E F7 C9 D3 D0 5E 22 E6 B5 [16:22:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FC EB 47 00 98 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 31 37 35 39 10 04 04 00 76 87 02 00 F4 03 04 00 A8 D4 14 67 B6 04 01 00 00 3F 60 6F 2C 8F 8F 47 C1 [16:22:04]CommunicateWithHost err = 0 [16:22:04]CheckOFDResponse [16:22:04]1017 (14) - 77093643461234 [16:22:04]1041 (16) - 0000000000871759 [16:22:04]1040 (4) - 165750 [16:22:04]1012 (4) - 20.10.2024 10:00 [16:22:04]1206 (1) - 0 [16:22:04]OFD Sender: Remove packet 165750 [16:22:04]ProducePacketName [16:22:04]name=ofd_packets/00165750 [16:22:04]NVStorageDeleteData [16:22:04]Write to MH i2c: 01 00 00 A7 FF A6 [16:22:04]Write i2c OK [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: 01 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: 01 07 00 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: 01 07 00 A7 FF 00 00 00 00 00 CD 0C 86 [16:22:04]RasterBufferAndPrint [16:22:04]line [16:22:04]line [16:22:04]line [16:22:04]line [16:22:04]line [16:22:04]written 0, free lines is 3283 [16:22:04]MH_Cut [16:22:04]Write to MH i2c: D1 01 00 AE FF 01 7F [16:22:04]Write i2c OK [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: D1 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: D1 01 00 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: D1 01 00 AE FF 00 7E [16:22:04]Write to MH i2c: 01 00 00 AF FF AE [16:22:04]Write i2c OK [16:22:04]MH_I2C_Read... [16:22:04]OFD Sender: No OFD packet to send [16:22:05]*** Cut start [16:22:05]*** Partial cut [16:22:05]*** CUTSNS_PIN = 1 [16:22:05]*** CUTSNS_PIN = 0 [16:22:05]*** Brake cut motor [16:22:05]Read from MH i2c: 01 [16:22:05]MH_I2C_Read... [16:22:05]*** Stop cut motor [16:22:05]*** Cut end [16:22:05]Read from MH i2c: 01 07 00 [16:22:05]MH_I2C_Read... [16:22:05]Read from MH i2c: 01 07 00 AF FF 00 00 00 00 00 FF 0F C3 [16:22:05]process_action close_receipt done [16:22:05]requested_data is exist [16:22:05]produce_requested_data [16:22:05]requested_item fm.sn is exist - process it [16:22:05]wFMCommunicate request_size=4 [16:22:05]MH_SAM_APDU [16:22:05]CAPDU: 80 11 00 00 [16:22:05]Write to MH i2c: E2 08 00 B0 FF 80 11 00 00 00 00 00 00 29 [16:22:05]Write i2c OK [16:22:05]MH_I2C_Read... [16:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:06]Read from MH i2c: E2 [16:22:06]MH_I2C_Read... [16:22:06]Read from MH i2c: E2 17 00 [16:22:06]MH_I2C_Read... [16:22:06]Read from MH i2c: E2 17 00 B0 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [16:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:22:06]wFMCommunicate OK [16:22:06]requested_item fd.num is exist - process it [16:22:06]SAM_PROTO_GetFieldsCounters [16:22:06]wFMCommunicate request_size=4 [16:22:06]MH_SAM_APDU [16:22:06]CAPDU: 80 13 00 00 [16:22:06]Write to MH i2c: E2 08 00 B1 FF 80 13 00 00 00 00 00 00 2C [16:22:06]Write i2c OK [16:22:06]MH_I2C_Read... [16:22:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:06]Read from MH i2c: E2 [16:22:06]MH_I2C_Read... [16:22:06]Read from MH i2c: E2 62 00 [16:22:06]MH_I2C_Read... [16:22:06]Read from MH i2c: E2 62 00 B1 FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 87 02 00 0E 04 04 00 16 02 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 23 [16:22:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 87 02 00 0E 04 04 00 16 02 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:22:06]wFMCommunicate OK [16:22:06]SAM_PROTO_GetFieldsCounters done [16:22:06]requested_item shift.num is exist - process it [16:22:06]requested_item shift.opened is exist - process it [16:22:06]req_shift_opened [16:22:06]FM_GetShiftState [16:22:06]SAM_PROTO_GetShiftState [16:22:06]wFMCommunicate request_size=4 [16:22:06]MH_SAM_APDU [16:22:06]CAPDU: 80 13 01 00 [16:22:06]Write to MH i2c: E2 08 00 B2 FF 80 13 01 00 00 00 00 00 2E [16:22:06]Write i2c OK [16:22:06]MH_I2C_Read... [16:22:06]Read from MH i2c: E2 [16:22:06]MH_I2C_Read... [16:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:06]Read from MH i2c: E2 0E 00 [16:22:06]MH_I2C_Read... [16:22:06]Read from MH i2c: E2 0E 00 B2 FF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 76 [16:22:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:22:06]wFMCommunicate OK [16:22:06]SAM_PROTO_GetShiftState done [16:22:06]FM_GetShiftState done [16:22:06]req_shift_opened done [16:22:06]requested_item shift.open_date is exist - process it [16:22:06]req_shift_open_date [16:22:06]req_shift_open_date done [16:22:06]produce_requested_data done [16:22:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165750,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:22:06]process_action_free close_receipt [16:22:06]json_value_free [16:22:06]json_value_free done [16:22:06]process_json_proto returns [16:22:06]Send response to host [16:22:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165750,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:22:06]free response buf [16:22:06]execute_script done [16:22:06]execute_script returns [16:22:06]free content buf [16:22:06]Sock 10.Close socket [16:22:06]Sock 10.Thread stoped [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25: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:03]accept exits with 7 [16:27:03]New connection [16:27:03]New thread 3066920292 created [16:27:03]Thread 3066776932 joined [16:27:03]Waiting for new connection... [16:27:03] Sock 7.Parse request [16:27:03]Sock 7.Check first char [16:27:03]Sock 7.First char is OK [16:27:03]request: POST /json_proto HTTP/1.0 [16:27:03]Method: POST [16:27:03]URL: /json_proto [16:27:03]Method is POST - this is cgi request [16:27:03]url: /json_proto [16:27:03]query_string will be loaded in cgi processing [16:27:03]execute_cgi json_proto POST (null) [16:27:03]execute_cgi path=json_proto method=POST [16:27:03]POST find Content-Length [16:27:03]Host: 172.17.53.195:8080 [16:27:03]Content-Length: 682 [16:27:03]Content-Type: application/json [16:27:03] [16:27:03]POST finish read [16:27:03]Found Content-Length = 682 [16:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.410, "sum" : 1699.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1699.00, "payments": [ { "type": 0, "sum" : 1699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:03]execute_script... [16:27: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)220319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.410, "sum" : 1699.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1699.00, "payments": [ { "type": 0, "sum" : 1699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:03]POST & json_proto [16:27:03]process_json_proto [16:27:03]json parsed OK: [16:27:03]protocol is kg_v1.0 [16:27:03]action value=close_receipt [16:27:03]process_action close_receipt [16:27:03]cmd_close_receipt [16:27:03]MH_GetDate [16:27:03]Write to MH i2c: F0 00 00 B3 FF A1 [16:27:03]Write i2c OK [16:27:03]MH_I2C_Read... [16:27:03]Read from MH i2c: F0 [16:27:03]MH_I2C_Read... [16:27:03]Read from MH i2c: F0 09 00 [16:27:03]MH_I2C_Read... [16:27:03]Read from MH i2c: F0 09 00 B3 FF 00 64 2F 15 67 21 48 4A 65 D1 [16:27:03]GetLastDocTimeStamp 1729441335 [16:27:03]current date 1729441636 [16:27:03]FM_GetShiftState [16:27:03]SAM_PROTO_GetShiftState [16:27:03]wFMCommunicate request_size=4 [16:27:03]MH_SAM_APDU [16:27:03]CAPDU: 80 13 01 00 [16:27:03]Write to MH i2c: E2 08 00 B4 FF 80 13 01 00 00 00 00 00 30 [16:27:03]Write i2c OK [16:27:03]MH_I2C_Read... [16:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:03]Read from MH i2c: E2 [16:27:03]MH_I2C_Read... [16:27:03]Read from MH i2c: E2 0E 00 [16:27:03]MH_I2C_Read... [16:27:03]Read from MH i2c: E2 0E 00 B4 FF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 78 [16:27:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:27:03]wFMCommunicate OK [16:27:03]SAM_PROTO_GetShiftState done [16:27:03]FM_GetShiftState done [16:27:03]opened in 1729384561 [16:27:03]opened+sec_in_day 1729470961 [16:27:03]quantity*price = 169992 [16:27:03]sum+1 = 169994 [16:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 1699.00 Внесено: 1700.00 СДАЧА: 1.00 НСП 1% : 15.04 НДС 12% : 180.52 Наличными: 1699.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 233 20.10.2024 16:27 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165751 ФПД: 85214045597432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162716&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165751&fm=85214045597432&tin=02508201610067®Number=0000000000091764&sum=169900 [16:27:04]StoreToDocumentArchive [16:27:04]shift 534 fd 165751 [16:27:04]save to /storage/0534/doc_00165751 [16:27:04]save last doc name /storage/0534/doc_00165751 to /storage/kkm_last_doc_name [16:27:04]save OK [16:27:04]Clear old archive folders... [16:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:04]tlvbuf is 01512EB0 [16:27:04]SAM_PROTO_ClearQueue [16:27:04]wFMCommunicate request_size=4 [16:27:04]MH_SAM_APDU [16:27:04]CAPDU: 80 09 00 00 [16:27:04]Write to MH i2c: E2 08 00 C1 FF 80 09 00 00 00 00 00 00 32 [16:27:04]Write i2c OK [16:27:04]MH_I2C_Read... [16:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:04]Read from MH i2c: E2 [16:27:04]MH_I2C_Read... [16:27:04]Read from MH i2c: E2 03 00 [16:27:04]MH_I2C_Read... [16:27:04]Read from MH i2c: E2 03 00 C1 FF 00 90 00 34 [16:27:04]RAPDU: 90 00 [16:27:04]wFMCommunicate OK [16:27:04]SAM_PROTO_ClearQueue done [16:27:04]KKMCreateOFDPacket [16:27:04]OFDProtocolAddRootSTLVToBuf [16:27:04]FM_MakeSignedData [16:27:04]FM_MakeSignedData [16:27:04]SAM_PROTO_SignData [16:27:04]wFMCommunicate request_size=4 [16:27:04]MH_SAM_APDU [16:27:04]CAPDU: 80 0D 01 02 [16:27:04]Write to MH i2c: E2 08 00 C2 FF 80 0D 01 02 00 00 00 00 3A [16:27:04]Write i2c OK [16:27:04]MH_I2C_Read... [16:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:04]Read from MH i2c: E2 [16:27:04]MH_I2C_Read... [16:27:04]Read from MH i2c: E2 03 00 [16:27:04]MH_I2C_Read... [16:27:04]Read from MH i2c: E2 03 00 C2 FF 00 90 00 35 [16:27:04]RAPDU: 90 00 [16:27:04]wFMCommunicate OK [16:27:04]wFMCommunicate request_size=255 [16:27:04]MH_SAM_APDU [16:27: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 42 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 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 64 2F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 87 02 00 35 04 06 00 4D [16:27:04]Write to MH i2c: E2 02 01 C3 FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 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 64 2F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 87 02 00 35 04 06 00 4D 00 00 65 [16:27:04]Write i2c OK [16:27:04]MH_I2C_Read... [16:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:05]Read from MH i2c: E2 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 03 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 03 00 C3 FF 00 90 00 36 [16:27:05]RAPDU: 90 00 [16:27:05]wFMCommunicate OK [16:27:05]wFMCommunicate request_size=10 [16:27:05]MH_SAM_APDU [16:27:05]CAPDU: 80 0D 02 02 05 80 70 EA EE F8 [16:27:05]Write to MH i2c: E2 0D 00 C4 FF 80 0D 02 02 05 00 80 70 EA EE F8 00 00 07 [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:05]Read from MH i2c: E2 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 03 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 03 00 C4 FF 00 90 00 37 [16:27:05]RAPDU: 90 00 [16:27:05]wFMCommunicate OK [16:27:05]wFMCommunicate request_size=4 [16:27:05]MH_SAM_APDU [16:27:05]CAPDU: 80 0D 03 02 [16:27:05]Write to MH i2c: E2 08 00 C5 FF 80 0D 03 02 00 00 00 00 3F [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:05]OFD Sender: No OFD packet to send [16:27:05]Read from MH i2c: E2 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 0B 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 0B 00 C5 FF 00 4B 1B 4A 65 77 CA 9B 4C 90 00 7D [16:27:05]RAPDU: 4B 1B 4A 65 77 CA 9B 4C 90 00 [16:27:05]wFMCommunicate OK [16:27:05]SAM_PROTO_SignData done [16:27:05]FM_MakeSignedData done [16:27:05]CreateOFDProtocolMessage [16:27:05]wFMCommunicate request_size=4 [16:27:05]MH_SAM_APDU [16:27:05]CAPDU: 80 11 00 00 [16:27:05]Write to MH i2c: E2 08 00 C6 FF 80 11 00 00 00 00 00 00 3F [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:05]Read from MH i2c: E2 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 17 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 17 00 C6 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [16:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:27:05]wFMCommunicate OK [16:27:05]CreateOFDProtocolMessage done [16:27:05]OFDSenderStorePacket 165751 [16:27:05]StoreOFDPacket docnum=165751 [16:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 21 2E 07 01 30 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 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 64 2F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 87 02 00 35 04 06 00 4D 80 70 EA EE F8 4B 1B 4A 65 77 CA 9B 4C [16:27:05]CheckFolder [16:27:05]dirname=/storage/ofd_packets [16:27:05]CheckFolder done [16:27:05]ProducePacketName [16:27:05]name=ofd_packets/00165751 [16:27:05]NVStorageSaveData ofd_packets/00165751 [16:27:05]File name is /storage/ofd_packets/00165751 [16:27:05]Write 301 bytes [16:27:05]NVStorageSaveData done [16:27:05]OFDSenderStorePacket done [16:27:05]KKMCreateOFDPacket done [16:27:05]NVStorageSaveData kkm_last_timestamp [16:27:05]File name is /storage/kkm_last_timestamp [16:27:05]Write 4 bytes [16:27:05]NVStorageSaveData done [16:27:05]ExternCall_PrintAddStr [16:27:05]wPrintStart [16:27:05]Write to MH i2c: 01 00 00 C7 FF C6 [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: 01 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: 01 07 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: 01 07 00 C7 FF 00 00 00 00 00 FF 0F DB [16:27:05]RasterBufferAndPrint [16:27:05]line Счет N : (1)220319 [16:27:05]line ИНН: 02508201610067 [16:27:05]line Контрольно-Кассовый Чек [16:27:05]line ПРОДАЖА [16:27:05]line ТРК (МРК, ГНК) : 13 [16:27:05]line Товар: 2710124130 [16:27:05]line Аи-92-К-5 [16:27:05]line 25.410 * 66.90 [16:27:05]line = 1699.93 [16:27:05]line НДС 12% НСП 1% [16:27:05]line > о реализуемом товаре [16:27:05]line ОКРУГЛЕНИЕ: -0.93 [16:27:05]line ИТОГО: 1699.00 [16:27:05]line Внесено: 1700.00 [16:27:05]line СДАЧА: 1.00 [16:27:05]line НСП 1% : 15.04 [16:27:05]line НДС 12% : 180.52 [16:27:05]line Наличными: 1699.00 [16:27:05]line Безнал.: 0.00 [16:27:05]line Место: АЗС № 161 "Партнер Нефть" [16:27:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:27:05]line СНО: Общий режим [16:27:05]line Чек 233 20.10.2024 16:27 [16:27:05]line Смена: 534 ФФД: 1.0 [16:27:05]line ЗНМ: 0300000104 [16:27:05]line РНМ: 0000000000091764 [16:27:05]line Версия ККМ: 001 [16:27:05]line ФМ: 0000000000871759 [16:27:05]line ФД: 165751 [16:27:05]line ФПД: 85214045597432 [16:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162716&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165751&fm=85214045597432&tin=02508201610067®Number=0000000000091764&sum=169900 [16:27:05]OFD Sender: Processing packet 165751 [packets to send 48, broken 47] [16:27:05]ProducePacketName [16:27:05]name=ofd_packets/00165751 [16:27:05]OFD Sender: To server: pG, [16:27:05]CommunicateWithHost lk.salyk.kg:30040 [16:27:05]ConnectInit lk.salyk.kg [16:27:05]written 0, free lines is 4095 [16:27:05]Connected sock=10 [16:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 21 2E 07 01 30 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 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 64 2F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 87 02 00 35 04 06 00 4D 80 70 EA EE F8 4B 1B 4A 65 77 CA 9B 4C [16:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A3 F9 47 00 CD 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 87 02 00 F4 03 04 00 D6 D5 14 67 B6 04 01 00 00 56 6B 83 F8 BC 8B 9A 59 [16:27:05]CommunicateWithHost err = 0 [16:27:05]CheckOFDResponse [16:27:05]1017 (14) - 77093643461234 [16:27:05]1041 (16) - 0000000000871759 [16:27:05]1040 (4) - 165751 [16:27:05]1012 (4) - 20.10.2024 10:05 [16:27:05]1206 (1) - 0 [16:27:05]OFD Sender: Remove packet 165751 [16:27:05]ProducePacketName [16:27:05]name=ofd_packets/00165751 [16:27:05]NVStorageDeleteData [16:27:06]Write to MH i2c: 01 00 00 F2 FF F1 [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: 01 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: 01 07 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: 01 07 00 F2 FF 00 00 00 00 00 C8 0C CC [16:27:06]RasterBufferAndPrint [16:27:06]line [16:27:06]line [16:27:06]line [16:27:06]line [16:27:06]line [16:27:06]written 0, free lines is 3278 [16:27:06]MH_Cut [16:27:06]Write to MH i2c: D1 01 00 F9 FF 01 CA [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: D1 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: D1 01 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: D1 01 00 F9 FF 00 C9 [16:27:06]Write to MH i2c: 01 00 00 FA FF F9 [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]OFD Sender: No OFD packet to send [16:27:06]*** Cut start [16:27:06]*** Partial cut [16:27:06]*** CUTSNS_PIN = 1 [16:27:06]*** CUTSNS_PIN = 0 [16:27:07]*** Brake cut motor [16:27:07]Read from MH i2c: 01 [16:27:07]MH_I2C_Read... [16:27:07]*** Stop cut motor [16:27:07]*** Cut end [16:27:07]Read from MH i2c: 01 07 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 07 00 FA FF 00 00 00 00 00 FF 0F 0E [16:27:07]process_action close_receipt done [16:27:07]requested_data is exist [16:27:07]produce_requested_data [16:27:07]requested_item fm.sn is exist - process it [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 11 00 00 [16:27:07]Write to MH i2c: E2 08 00 FB FF 80 11 00 00 00 00 00 00 74 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 17 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 17 00 FB FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [16:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:27:07]wFMCommunicate OK [16:27:07]requested_item fd.num is exist - process it [16:27:07]SAM_PROTO_GetFieldsCounters [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 13 00 00 [16:27:07]Write to MH i2c: E2 08 00 FC FF 80 13 00 00 00 00 00 00 77 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 62 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 62 00 FC FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 87 02 00 0E 04 04 00 16 02 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 72 [16:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 87 02 00 0E 04 04 00 16 02 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:27:07]wFMCommunicate OK [16:27:07]SAM_PROTO_GetFieldsCounters done [16:27:07]requested_item shift.num is exist - process it [16:27:07]requested_item shift.opened is exist - process it [16:27:07]req_shift_opened [16:27:07]FM_GetShiftState [16:27:07]SAM_PROTO_GetShiftState [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 13 01 00 [16:27:07]Write to MH i2c: E2 08 00 FD FF 80 13 01 00 00 00 00 00 79 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 0E 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 0E 00 FD FF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C1 [16:27:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:27:07]wFMCommunicate OK [16:27:07]SAM_PROTO_GetShiftState done [16:27:07]FM_GetShiftState done [16:27:07]req_shift_opened done [16:27:07]requested_item shift.open_date is exist - process it [16:27:07]req_shift_open_date [16:27:07]req_shift_open_date done [16:27:07]produce_requested_data done [16:27:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165751,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:27:07]process_action_free close_receipt [16:27:07]json_value_free [16:27:07]json_value_free done [16:27:07]process_json_proto returns [16:27:07]Send response to host [16:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165751,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:27:07]free response buf [16:27:07]execute_script done [16:27:07]execute_script returns [16:27:07]free content buf [16:27:07]Sock 7.Close socket [16:27:07]Sock 7.Thread stoped [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31: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:12]accept exits with 9 [16:32:12]New connection [16:32:12]New thread 3066776932 created [16:32:12]Thread 3066920292 joined [16:32:12]Waiting for new connection... [16:32:12] Sock 9.Parse request [16:32:12]Sock 9.Check first char [16:32:12]Sock 9.First char is OK [16:32:12]request: POST /json_proto HTTP/1.0 [16:32:12]Method: POST [16:32:12]URL: /json_proto [16:32:12]Method is POST - this is cgi request [16:32:12]url: /json_proto [16:32:12]query_string will be loaded in cgi processing [16:32:12]execute_cgi json_proto POST (null) [16:32:12]execute_cgi path=json_proto method=POST [16:32:12]POST find Content-Length [16:32:12]Host: 172.17.53.195:8080 [16:32:12]Content-Length: 677 [16:32:12]Content-Type: application/json [16:32:12] [16:32:12]POST finish read [16:32:12]Found Content-Length = 677 [16:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:12]execute_script... [16:32: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)220320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:12]POST & json_proto [16:32:12]process_json_proto [16:32:12]json parsed OK: [16:32:12]protocol is kg_v1.0 [16:32:12]action value=close_receipt [16:32:12]process_action close_receipt [16:32:12]cmd_close_receipt [16:32:12]MH_GetDate [16:32:12]Write to MH i2c: F0 00 00 FE FF EC [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: F0 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: F0 09 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: F0 09 00 FE FF 00 99 30 15 67 21 48 4A 65 52 [16:32:12]GetLastDocTimeStamp 1729441636 [16:32:12]current date 1729441945 [16:32:12]FM_GetShiftState [16:32:12]SAM_PROTO_GetShiftState [16:32:12]wFMCommunicate request_size=4 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 13 01 00 [16:32:12]Write to MH i2c: E2 08 00 FF FF 80 13 01 00 00 00 00 00 7B [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 0E 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 0E 00 FF FF 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C3 [16:32:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:32:12]wFMCommunicate OK [16:32:12]SAM_PROTO_GetShiftState done [16:32:12]FM_GetShiftState done [16:32:12]opened in 1729384561 [16:32:12]opened+sec_in_day 1729470961 [16:32:12]quantity*price = 21006 [16:32:12]sum+1 = 21008 [16:32:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 234 20.10.2024 16:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165752 ФПД: 245114831658790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163225&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165752&fm=245114831658790&tin=02508201610067®Number=0000000000091764&sum=21000 [16:32:13]StoreToDocumentArchive [16:32:13]shift 534 fd 165752 [16:32:13]save to /storage/0534/doc_00165752 [16:32:13]save last doc name /storage/0534/doc_00165752 to /storage/kkm_last_doc_name [16:32:13]save OK [16:32:13]Clear old archive folders... [16:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:13]tlvbuf is 014CB3A0 [16:32:13]SAM_PROTO_ClearQueue [16:32:13]wFMCommunicate request_size=4 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 09 00 00 [16:32:13]Write to MH i2c: E2 08 00 0D 00 80 09 00 00 00 00 00 00 7F [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:32:13]RAPDU: 90 00 [16:32:13]wFMCommunicate OK [16:32:13]SAM_PROTO_ClearQueue done [16:32:13]KKMCreateOFDPacket [16:32:13]OFDProtocolAddRootSTLVToBuf [16:32:13]FM_MakeSignedData [16:32:13]FM_MakeSignedData [16:32:13]SAM_PROTO_SignData [16:32:13]wFMCommunicate request_size=4 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 0D 01 02 [16:32:13]Write to MH i2c: E2 08 00 0E 00 80 0D 01 02 00 00 00 00 87 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 0E 00 00 90 00 82 [16:32:13]RAPDU: 90 00 [16:32:13]wFMCommunicate OK [16:32:13]wFMCommunicate request_size=255 [16:32:13]MH_SAM_APDU [16:32: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 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 99 30 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 87 02 00 35 04 06 00 DE [16:32:13]Write to MH i2c: E2 02 01 0F 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 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 99 30 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 87 02 00 35 04 06 00 DE 00 00 D8 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 0F 00 00 90 00 83 [16:32:13]RAPDU: 90 00 [16:32:13]wFMCommunicate OK [16:32:13]wFMCommunicate request_size=10 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 0D 02 02 05 EE 3E 78 5F 26 [16:32:13]Write to MH i2c: E2 0D 00 10 00 80 0D 02 02 05 00 EE 3E 78 5F 26 00 00 BD [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 10 00 00 90 00 84 [16:32:13]RAPDU: 90 00 [16:32:13]wFMCommunicate OK [16:32:13]wFMCommunicate request_size=4 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 0D 03 02 [16:32:13]Write to MH i2c: E2 08 00 11 00 80 0D 03 02 00 00 00 00 8C [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 0B 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 0B 00 11 00 00 FD 99 41 A8 CC 7E 02 55 90 00 AD [16:32:13]RAPDU: FD 99 41 A8 CC 7E 02 55 90 00 [16:32:13]wFMCommunicate OK [16:32:13]SAM_PROTO_SignData done [16:32:13]FM_MakeSignedData done [16:32:13]CreateOFDProtocolMessage [16:32:13]wFMCommunicate request_size=4 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 11 00 00 [16:32:13]Write to MH i2c: E2 08 00 12 00 80 11 00 00 00 00 00 00 8C [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 17 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 17 00 12 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [16:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:32:13]wFMCommunicate OK [16:32:13]CreateOFDProtocolMessage done [16:32:13]OFDSenderStorePacket 165752 [16:32:13]StoreOFDPacket docnum=165752 [16:32:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 34 38 07 01 63 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 99 30 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 87 02 00 35 04 06 00 DE EE 3E 78 5F 26 FD 99 41 A8 CC 7E 02 55 [16:32:13]CheckFolder [16:32:13]dirname=/storage/ofd_packets [16:32:13]CheckFolder done [16:32:13]ProducePacketName [16:32:13]name=ofd_packets/00165752 [16:32:13]NVStorageSaveData ofd_packets/00165752 [16:32:13]File name is /storage/ofd_packets/00165752 [16:32:13]Write 301 bytes [16:32:13]NVStorageSaveData done [16:32:13]OFDSenderStorePacket done [16:32:13]KKMCreateOFDPacket done [16:32:13]NVStorageSaveData kkm_last_timestamp [16:32:13]File name is /storage/kkm_last_timestamp [16:32:13]Write 4 bytes [16:32:13]NVStorageSaveData done [16:32:13]ExternCall_PrintAddStr [16:32:13]wPrintStart [16:32:13]Write to MH i2c: 01 00 00 13 00 13 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 07 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 07 00 13 00 00 00 00 00 00 FF 0F 28 [16:32:13]RasterBufferAndPrint [16:32:13]line Счет N : (1)220320 [16:32:13]line ИНН: 02508201610067 [16:32:13]line Контрольно-Кассовый Чек [16:32:13]line ПРОДАЖА [16:32:13]line ТРК (МРК, ГНК) : 43 [16:32:13]line Товар: 2710124130 [16:32:13]line Аи-92-К-5 [16:32:13]line 3.140 * 66.90 [16:32:13]line = 210.07 [16:32:13]line НДС 12% НСП 1% [16:32:13]line > о реализуемом товаре [16:32:13]line ОКРУГЛЕНИЕ: -0.07 [16:32:13]line ИТОГО: 210.00 [16:32:13]line Внесено: 210.00 [16:32:13]line СДАЧА: 0.00 [16:32:13]line НСП 1% : 1.86 [16:32:13]line НДС 12% : 22.31 [16:32:13]line Наличными: 210.00 [16:32:13]line Безнал.: 0.00 [16:32:13]line Место: АЗС № 161 "Партнер Нефть" [16:32:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:32:13]line СНО: Общий режим [16:32:13]line Чек 234 20.10.2024 16:32 [16:32:13]line Смена: 534 ФФД: 1.0 [16:32:13]line ЗНМ: 0300000104 [16:32:13]line РНМ: 0000000000091764 [16:32:13]line Версия ККМ: 001 [16:32:13]line ФМ: 0000000000871759 [16:32:13]line ФД: 165752 [16:32:13]line ФПД: 245114831658790 [16:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163225&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165752&fm=245114831658790&tin=02508201610067®Number=0000000000091764&sum=21000 [16:32:14]OFD Sender: Processing packet 165752 [packets to send 48, broken 47] [16:32:14]ProducePacketName [16:32:14]name=ofd_packets/00165752 [16:32:14]OFD Sender: To server: pG, [16:32:14]CommunicateWithHost lk.salyk.kg:30040 [16:32:14]ConnectInit lk.salyk.kg [16:32:14]written 0, free lines is 4095 [16:32:14]Connected sock=10 [16:32:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 34 38 07 01 63 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 99 30 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 87 02 00 35 04 06 00 DE EE 3E 78 5F 26 FD 99 41 A8 CC 7E 02 55 [16:32:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 94 DF 47 00 3B 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 87 02 00 F4 03 04 00 0A D7 14 67 B6 04 01 00 00 D2 4B 3E 38 7D 36 A7 47 [16:32:14]CommunicateWithHost err = 0 [16:32:14]CheckOFDResponse [16:32:14]1017 (14) - 77093643461234 [16:32:14]1041 (16) - 0000000000871759 [16:32:14]1040 (4) - 165752 [16:32:14]1012 (4) - 20.10.2024 10:10 [16:32:14]1206 (1) - 0 [16:32:14]OFD Sender: Remove packet 165752 [16:32:14]ProducePacketName [16:32:14]name=ofd_packets/00165752 [16:32:14]NVStorageDeleteData [16:32:14]Write to MH i2c: 01 00 00 3E 00 3E [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 07 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 BF 0C 10 [16:32:14]RasterBufferAndPrint [16:32:14]line [16:32:14]line [16:32:14]line [16:32:14]line [16:32:14]line [16:32:14]written 0, free lines is 3270 [16:32:14]MH_Cut [16:32:14]Write to MH i2c: D1 01 00 45 00 01 17 [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: D1 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: D1 01 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: D1 01 00 45 00 00 16 [16:32:14]Write to MH i2c: 01 00 00 46 00 46 [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:15]OFD Sender: No OFD packet to send [16:32:15]*** Cut start [16:32:15]*** Partial cut [16:32:15]*** CUTSNS_PIN = 1 [16:32:15]*** CUTSNS_PIN = 0 [16:32:15]*** Brake cut motor [16:32:16]Read from MH i2c: 01 [16:32:16]MH_I2C_Read... [16:32:16]*** Stop cut motor [16:32:16]*** Cut end [16:32:16]Read from MH i2c: 01 07 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 FF 0F 5B [16:32:16]process_action close_receipt done [16:32:16]requested_data is exist [16:32:16]produce_requested_data [16:32:16]requested_item fm.sn is exist - process it [16:32:16]wFMCommunicate request_size=4 [16:32:16]MH_SAM_APDU [16:32:16]CAPDU: 80 11 00 00 [16:32:16]Write to MH i2c: E2 08 00 47 00 80 11 00 00 00 00 00 00 C1 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 17 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 17 00 47 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 19 [16:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:32:16]wFMCommunicate OK [16:32:16]requested_item fd.num is exist - process it [16:32:16]SAM_PROTO_GetFieldsCounters [16:32:16]wFMCommunicate request_size=4 [16:32:16]MH_SAM_APDU [16:32:16]CAPDU: 80 13 00 00 [16:32:16]Write to MH i2c: E2 08 00 48 00 80 13 00 00 00 00 00 00 C4 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 62 00 [16:32:16]MH_I2C_Read... [16:32:16]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 87 02 00 0E 04 04 00 16 02 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 C3 [16:32:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 87 02 00 0E 04 04 00 16 02 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:32:16]wFMCommunicate OK [16:32:16]SAM_PROTO_GetFieldsCounters done [16:32:16]requested_item shift.num is exist - process it [16:32:16]requested_item shift.opened is exist - process it [16:32:16]req_shift_opened [16:32:16]FM_GetShiftState [16:32:16]SAM_PROTO_GetShiftState [16:32:16]wFMCommunicate request_size=4 [16:32:16]MH_SAM_APDU [16:32:16]CAPDU: 80 13 01 00 [16:32:16]Write to MH i2c: E2 08 00 49 00 80 13 01 00 00 00 00 00 C6 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 0E 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 0E 00 49 00 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0E [16:32:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:32:16]wFMCommunicate OK [16:32:16]SAM_PROTO_GetShiftState done [16:32:16]FM_GetShiftState done [16:32:16]req_shift_opened done [16:32:16]requested_item shift.open_date is exist - process it [16:32:16]req_shift_open_date [16:32:16]req_shift_open_date done [16:32:16]produce_requested_data done [16:32:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165752,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:32:16]process_action_free close_receipt [16:32:16]json_value_free [16:32:16]json_value_free done [16:32:16]process_json_proto returns [16:32:16]Send response to host [16:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165752,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:32:16]free response buf [16:32:16]execute_script done [16:32:16]execute_script returns [16:32:16]free content buf [16:32:16]Sock 9.Close socket [16:32:16]Sock 9.Thread stoped [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [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:11]accept exits with 7 [16:35:11]New connection [16:35:11]New thread 3066920292 created [16:35:11]Thread 3066776932 joined [16:35:11]Waiting for new connection... [16:35:11] Sock 7.Parse request [16:35:11]Sock 7.Check first char [16:35:11]Sock 7.First char is OK [16:35:11]request: POST /json_proto HTTP/1.0 [16:35:11]Method: POST [16:35:11]URL: /json_proto [16:35:11]Method is POST - this is cgi request [16:35:11]url: /json_proto [16:35:11]query_string will be loaded in cgi processing [16:35:11]execute_cgi json_proto POST (null) [16:35:11]execute_cgi path=json_proto method=POST [16:35:11]POST find Content-Length [16:35:11]Host: 172.17.53.195:8080 [16:35:11]Content-Length: 677 [16:35:11]Content-Type: application/json [16:35:11] [16:35:11]POST finish read [16:35:11]Found Content-Length = 677 [16:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:11]execute_script... [16:35: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)220321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:11]POST & json_proto [16:35:11]process_json_proto [16:35:11]json parsed OK: [16:35:11]protocol is kg_v1.0 [16:35:11]action value=close_receipt [16:35:11]process_action close_receipt [16:35:11]cmd_close_receipt [16:35:11]MH_GetDate [16:35:11]Write to MH i2c: F0 00 00 4A 00 39 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 09 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 09 00 4A 00 00 4C 31 15 67 21 48 4A 65 53 [16:35:11]GetLastDocTimeStamp 1729441945 [16:35:11]current date 1729442124 [16:35:11]FM_GetShiftState [16:35:11]SAM_PROTO_GetShiftState [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 13 01 00 [16:35:11]Write to MH i2c: E2 08 00 4B 00 80 13 01 00 00 00 00 00 C8 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 4B 00 00 09 00 01 71 50 14 67 00 00 00 00 90 00 10 [16:35:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetShiftState done [16:35:11]FM_GetShiftState done [16:35:11]opened in 1729384561 [16:35:11]opened+sec_in_day 1729470961 [16:35:11]quantity*price = 30038 [16:35:11]sum+1 = 30039 [16:35:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 235 20.10.2024 16:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165753 ФПД: 176372888158500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163524&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165753&fm=176372888158500&tin=02508201610067®Number=0000000000091764&sum=30000 [16:35:12]StoreToDocumentArchive [16:35:12]shift 534 fd 165753 [16:35:12]save to /storage/0534/doc_00165753 [16:35:12]save last doc name /storage/0534/doc_00165753 to /storage/kkm_last_doc_name [16:35:12]save OK [16:35:12]Clear old archive folders... [16:35:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:12]tlvbuf is 0161BF30 [16:35:12]SAM_PROTO_ClearQueue [16:35:12]wFMCommunicate request_size=4 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 09 00 00 [16:35:12]Write to MH i2c: E2 08 00 58 00 80 09 00 00 00 00 00 00 CA [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 03 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 03 00 58 00 00 90 00 CC [16:35:12]RAPDU: 90 00 [16:35:12]wFMCommunicate OK [16:35:12]SAM_PROTO_ClearQueue done [16:35:12]KKMCreateOFDPacket [16:35:12]OFDProtocolAddRootSTLVToBuf [16:35:12]FM_MakeSignedData [16:35:12]FM_MakeSignedData [16:35:12]SAM_PROTO_SignData [16:35:12]wFMCommunicate request_size=4 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 0D 01 02 [16:35:12]Write to MH i2c: E2 08 00 59 00 80 0D 01 02 00 00 00 00 D2 [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 03 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 03 00 59 00 00 90 00 CD [16:35:12]RAPDU: 90 00 [16:35:12]wFMCommunicate OK [16:35:12]wFMCommunicate request_size=255 [16:35:12]MH_SAM_APDU [16:35: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 4C 31 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 87 02 00 35 04 06 00 A0 [16:35:12]Write to MH i2c: E2 02 01 5A 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 4C 31 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 87 02 00 35 04 06 00 A0 00 00 FA [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 03 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 03 00 5A 00 00 90 00 CE [16:35:12]RAPDU: 90 00 [16:35:12]wFMCommunicate OK [16:35:12]wFMCommunicate request_size=10 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 0D 02 02 05 69 03 58 C1 24 [16:35:12]Write to MH i2c: E2 0D 00 5B 00 80 0D 02 02 05 00 69 03 58 C1 24 00 00 88 [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 03 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 03 00 5B 00 00 90 00 CF [16:35:12]RAPDU: 90 00 [16:35:12]wFMCommunicate OK [16:35:12]wFMCommunicate request_size=4 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 0D 03 02 [16:35:12]Write to MH i2c: E2 08 00 5C 00 80 0D 03 02 00 00 00 00 D7 [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 0B 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 0B 00 5C 00 00 81 B2 D3 3C D7 5E CD 47 90 00 63 [16:35:13]RAPDU: 81 B2 D3 3C D7 5E CD 47 90 00 [16:35:13]wFMCommunicate OK [16:35:13]SAM_PROTO_SignData done [16:35:13]FM_MakeSignedData done [16:35:13]CreateOFDProtocolMessage [16:35:13]wFMCommunicate request_size=4 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 11 00 00 [16:35:13]Write to MH i2c: E2 08 00 5D 00 80 11 00 00 00 00 00 00 D7 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 17 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 17 00 5D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2F [16:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:35:13]wFMCommunicate OK [16:35:13]CreateOFDProtocolMessage done [16:35:13]OFDSenderStorePacket 165753 [16:35:13]StoreOFDPacket docnum=165753 [16:35:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 B4 07 01 95 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 4C 31 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 87 02 00 35 04 06 00 A0 69 03 58 C1 24 81 B2 D3 3C D7 5E CD 47 [16:35:13]CheckFolder [16:35:13]dirname=/storage/ofd_packets [16:35:13]CheckFolder done [16:35:13]ProducePacketName [16:35:13]name=ofd_packets/00165753 [16:35:13]NVStorageSaveData ofd_packets/00165753 [16:35:13]File name is /storage/ofd_packets/00165753 [16:35:13]Write 301 bytes [16:35:13]NVStorageSaveData done [16:35:13]OFDSenderStorePacket done [16:35:13]KKMCreateOFDPacket done [16:35:13]NVStorageSaveData kkm_last_timestamp [16:35:13]File name is /storage/kkm_last_timestamp [16:35:13]Write 4 bytes [16:35:13]NVStorageSaveData done [16:35:13]ExternCall_PrintAddStr [16:35:13]wPrintStart [16:35:13]Write to MH i2c: 01 00 00 5E 00 5E [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 07 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 07 00 5E 00 00 00 00 00 00 FF 0F 73 [16:35:13]RasterBufferAndPrint [16:35:13]line Счет N : (1)220321 [16:35:13]line ИНН: 02508201610067 [16:35:13]line Контрольно-Кассовый Чек [16:35:13]line ПРОДАЖА [16:35:13]line ТРК (МРК, ГНК) : 23 [16:35:13]line Товар: 2710124130 [16:35:13]line Аи-92-К-5 [16:35:13]line 4.490 * 66.90 [16:35:13]line = 300.38 [16:35:13]line НДС 12% НСП 1% [16:35:13]line > о реализуемом товаре [16:35:13]line ОКРУГЛЕНИЕ: -0.38 [16:35:13]line ИТОГО: 300.00 [16:35:13]line Внесено: 300.00 [16:35:13]line СДАЧА: 0.00 [16:35:13]line НСП 1% : 2.66 [16:35:13]line НДС 12% : 31.90 [16:35:13]line Наличными: 300.00 [16:35:13]line Безнал.: 0.00 [16:35:13]line Место: АЗС № 161 "Партнер Нефть" [16:35:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:35:13]line СНО: Общий режим [16:35:13]line Чек 235 20.10.2024 16:35 [16:35:13]line Смена: 534 ФФД: 1.0 [16:35:13]line ЗНМ: 0300000104 [16:35:13]line РНМ: 0000000000091764 [16:35:13]line Версия ККМ: 001 [16:35:13]line ФМ: 0000000000871759 [16:35:13]line ФД: 165753 [16:35:13]line ФПД: 176372888158500 [16:35:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163524&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165753&fm=176372888158500&tin=02508201610067®Number=0000000000091764&sum=30000 [16:35:13]OFD Sender: Processing packet 165753 [packets to send 48, broken 47] [16:35:13]ProducePacketName [16:35:13]name=ofd_packets/00165753 [16:35:13]OFD Sender: To server: pG, [16:35:13]CommunicateWithHost lk.salyk.kg:30040 [16:35:13]ConnectInit lk.salyk.kg [16:35:13]written 0, free lines is 4095 [16:35:13]Connected sock=10 [16:35:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 B4 07 01 95 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 4C 31 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 87 02 00 35 04 06 00 A0 69 03 58 C1 24 81 B2 D3 3C D7 5E CD 47 [16:35:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AD 73 47 00 6B 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 87 02 00 F4 03 04 00 BE D7 14 67 B6 04 01 00 00 06 A8 78 FB 91 64 A8 B5 [16:35:13]CommunicateWithHost err = 0 [16:35:13]CheckOFDResponse [16:35:13]1017 (14) - 77093643461234 [16:35:13]1041 (16) - 0000000000871759 [16:35:13]1040 (4) - 165753 [16:35:13]1012 (4) - 20.10.2024 10:13 [16:35:13]1206 (1) - 0 [16:35:13]OFD Sender: Remove packet 165753 [16:35:13]ProducePacketName [16:35:13]name=ofd_packets/00165753 [16:35:13]NVStorageDeleteData [16:35:13]Write to MH i2c: 01 00 00 89 00 89 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 07 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 07 00 89 00 00 00 00 00 00 D1 0C 6D [16:35:13]RasterBufferAndPrint [16:35:13]line [16:35:13]line [16:35:13]line [16:35:13]line [16:35:13]line [16:35:13]written 0, free lines is 3289 [16:35:13]MH_Cut [16:35:13]Write to MH i2c: D1 01 00 90 00 01 62 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: D1 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: D1 01 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: D1 01 00 90 00 00 61 [16:35:13]Write to MH i2c: 01 00 00 91 00 91 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:14]OFD Sender: No OFD packet to send [16:35:14]*** Cut start [16:35:14]*** Partial cut [16:35:14]*** CUTSNS_PIN = 1 [16:35:14]*** CUTSNS_PIN = 0 [16:35:14]*** Brake cut motor [16:35:15]Read from MH i2c: 01 [16:35:15]MH_I2C_Read... [16:35:15]*** Stop cut motor [16:35:15]*** Cut end [16:35:15]Read from MH i2c: 01 07 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: 01 07 00 91 00 00 00 00 00 00 FF 0F A6 [16:35:15]process_action close_receipt done [16:35:15]requested_data is exist [16:35:15]produce_requested_data [16:35:15]requested_item fm.sn is exist - process it [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 11 00 00 [16:35:15]Write to MH i2c: E2 08 00 92 00 80 11 00 00 00 00 00 00 0C [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 17 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 17 00 92 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [16:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:35:15]wFMCommunicate OK [16:35:15]requested_item fd.num is exist - process it [16:35:15]SAM_PROTO_GetFieldsCounters [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 13 00 00 [16:35:15]Write to MH i2c: E2 08 00 93 00 80 13 00 00 00 00 00 00 0F [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 62 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 62 00 93 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 87 02 00 0E 04 04 00 16 02 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 12 [16:35:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 87 02 00 0E 04 04 00 16 02 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:35:15]wFMCommunicate OK [16:35:15]SAM_PROTO_GetFieldsCounters done [16:35:15]requested_item shift.num is exist - process it [16:35:15]requested_item shift.opened is exist - process it [16:35:15]req_shift_opened [16:35:15]FM_GetShiftState [16:35:15]SAM_PROTO_GetShiftState [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 13 01 00 [16:35:15]Write to MH i2c: E2 08 00 94 00 80 13 01 00 00 00 00 00 11 [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 0E 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 0E 00 94 00 00 09 00 01 71 50 14 67 00 00 00 00 90 00 59 [16:35:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:35:15]wFMCommunicate OK [16:35:15]SAM_PROTO_GetShiftState done [16:35:15]FM_GetShiftState done [16:35:15]req_shift_opened done [16:35:15]requested_item shift.open_date is exist - process it [16:35:15]req_shift_open_date [16:35:15]req_shift_open_date done [16:35:15]produce_requested_data done [16:35:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165753,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:35:15]process_action_free close_receipt [16:35:15]json_value_free [16:35:15]json_value_free done [16:35:15]process_json_proto returns [16:35:15]Send response to host [16:35:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165753,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:35:15]free response buf [16:35:15]execute_script done [16:35:15]execute_script returns [16:35:15]free content buf [16:35:15]Sock 7.Close socket [16:35:15]Sock 7.Thread stoped [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:57]accept exits with 9 [16:37:57]New connection [16:37:57]New thread 3066776932 created [16:37:57]Thread 3066920292 joined [16:37:57]Waiting for new connection... [16:37:57] Sock 9.Parse request [16:37:57]Sock 9.Check first char [16:37:57]Sock 9.First char is OK [16:37:57]request: POST /json_proto HTTP/1.0 [16:37:57]Method: POST [16:37:57]URL: /json_proto [16:37:57]Method is POST - this is cgi request [16:37:57]url: /json_proto [16:37:57]query_string will be loaded in cgi processing [16:37:57]execute_cgi json_proto POST (null) [16:37:57]execute_cgi path=json_proto method=POST [16:37:57]POST find Content-Length [16:37:57]Host: 172.17.53.195:8080 [16:37:57]Content-Length: 789 [16:37:57]Content-Type: application/json [16:37:57] [16:37:57]POST finish read [16:37:57]Found Content-Length = 789 [16:37:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:57]execute_script... [16:37: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)220322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:57]POST & json_proto [16:37:57]process_json_proto [16:37:57]json parsed OK: [16:37:57]protocol is kg_v1.0 [16:37:57]action value=close_receipt [16:37:57]process_action close_receipt [16:37:57]cmd_close_receipt [16:37:57]MH_GetDate [16:37:57]Write to MH i2c: F0 00 00 95 00 84 [16:37:57]Write i2c OK [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: F0 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: F0 09 00 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: F0 09 00 95 00 00 F2 31 15 67 21 48 4A 65 44 [16:37:57]GetLastDocTimeStamp 1729442124 [16:37:57]current date 1729442290 [16:37:57]FM_GetShiftState [16:37:57]SAM_PROTO_GetShiftState [16:37:57]wFMCommunicate request_size=4 [16:37:57]MH_SAM_APDU [16:37:57]CAPDU: 80 13 01 00 [16:37:57]Write to MH i2c: E2 08 00 96 00 80 13 01 00 00 00 00 00 13 [16:37:57]Write i2c OK [16:37:57]MH_I2C_Read... [16:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:57]Read from MH i2c: E2 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 0E 00 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 0E 00 96 00 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5B [16:37:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:37:57]wFMCommunicate OK [16:37:57]SAM_PROTO_GetShiftState done [16:37:57]FM_GetShiftState done [16:37:57]opened in 1729384561 [16:37:57]opened+sec_in_day 1729470961 [16:37:57]quantity*price = 0 [16:37:57]sum+1 = 1 [16:37:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 236 20.10.2024 16:38 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165754 ФПД: 235106211801116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163810&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165754&fm=235106211801116&tin=02508201610067®Number=0000000000091764&sum=0 [16:37:58]StoreToDocumentArchive [16:37:58]shift 534 fd 165754 [16:37:58]save to /storage/0534/doc_00165754 [16:37:58]save last doc name /storage/0534/doc_00165754 to /storage/kkm_last_doc_name [16:37:58]save OK [16:37:58]Clear old archive folders... [16:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:37:58]tlvbuf is 0162F140 [16:37:58]SAM_PROTO_ClearQueue [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 09 00 00 [16:37:58]Write to MH i2c: E2 08 00 A3 00 80 09 00 00 00 00 00 00 15 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 A3 00 00 90 00 17 [16:37:58]RAPDU: 90 00 [16:37:58]wFMCommunicate OK [16:37:58]SAM_PROTO_ClearQueue done [16:37:58]KKMCreateOFDPacket [16:37:58]OFDProtocolAddRootSTLVToBuf [16:37:58]FM_MakeSignedData [16:37:58]FM_MakeSignedData [16:37:58]SAM_PROTO_SignData [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 0D 01 02 [16:37:58]Write to MH i2c: E2 08 00 A4 00 80 0D 01 02 00 00 00 00 1D [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 A4 00 00 90 00 18 [16:37:58]RAPDU: 90 00 [16:37:58]wFMCommunicate OK [16:37:58]wFMCommunicate request_size=255 [16:37:58]MH_SAM_APDU [16:37: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F2 31 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 87 02 00 35 04 06 00 D5 D3 EE 3D [16:37:58]Write to MH i2c: E2 02 01 A5 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F2 31 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 87 02 00 35 04 06 00 D5 D3 EE 3D 00 00 EA [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 A5 00 00 90 00 19 [16:37:58]RAPDU: 90 00 [16:37:58]wFMCommunicate OK [16:37:58]wFMCommunicate request_size=7 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 0D 02 02 02 28 1C [16:37:58]Write to MH i2c: E2 0A 00 A6 00 80 0D 02 02 02 00 28 1C 00 00 68 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 A6 00 00 90 00 1A [16:37:58]RAPDU: 90 00 [16:37:58]wFMCommunicate OK [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 0D 03 02 [16:37:58]Write to MH i2c: E2 08 00 A7 00 80 0D 03 02 00 00 00 00 22 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0B 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0B 00 A7 00 00 B5 67 5D 16 22 5D 6D E2 90 00 80 [16:37:58]RAPDU: B5 67 5D 16 22 5D 6D E2 90 00 [16:37:58]wFMCommunicate OK [16:37:58]SAM_PROTO_SignData done [16:37:58]FM_MakeSignedData done [16:37:58]CreateOFDProtocolMessage [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 11 00 00 [16:37:58]Write to MH i2c: E2 08 00 A8 00 80 11 00 00 00 00 00 00 22 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 17 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 17 00 A8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7A [16:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:37:58]wFMCommunicate OK [16:37:58]CreateOFDProtocolMessage done [16:37:58]OFDSenderStorePacket 165754 [16:37:58]StoreOFDPacket docnum=165754 [16:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B3 F2 04 01 06 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F2 31 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 87 02 00 35 04 06 00 D5 D3 EE 3D 28 1C B5 67 5D 16 22 5D 6D E2 [16:37:58]CheckFolder [16:37:58]dirname=/storage/ofd_packets [16:37:58]CheckFolder done [16:37:58]ProducePacketName [16:37:58]name=ofd_packets/00165754 [16:37:58]NVStorageSaveData ofd_packets/00165754 [16:37:58]File name is /storage/ofd_packets/00165754 [16:37:58]Write 298 bytes [16:37:58]NVStorageSaveData done [16:37:58]OFDSenderStorePacket done [16:37:58]KKMCreateOFDPacket done [16:37:58]NVStorageSaveData kkm_last_timestamp [16:37:58]File name is /storage/kkm_last_timestamp [16:37:58]Write 4 bytes [16:37:58]NVStorageSaveData done [16:37:58]ExternCall_PrintAddStr [16:37:58]wPrintStart [16:37:58]Write to MH i2c: 01 00 00 A9 00 A9 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: 01 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: 01 07 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [16:37:58]RasterBufferAndPrint [16:37:58]line Счет N : (1)220322 [16:37:58]line ИНН: 02508201610067 [16:37:58]line Контрольно-Кассовый Чек [16:37:58]line ПРОДАЖА [16:37:58]line ТРК (МРК, ГНК) : 41 [16:37:58]line Товар: 2710194210 [16:37:58]line ДТ-К-5 [16:37:58]line 26.250 * 0.00 [16:37:58]line = 0.00 [16:37:58]line НДС 12% НСП 1% [16:37:58]line > о реализуемом товаре [16:37:58]line ИТОГО: 0.00 [16:37:58]line НСП 1% : 0.00 [16:37:58]line НДС 12% : 0.00 [16:37:58]line Наличными: 0.00 [16:37:58]line Безнал.: 0.00 [16:37:58]line Место: АЗС № 161 "Партнер Нефть" [16:37:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:37:58]line СНО: Общий режим [16:37:58]line Чек 236 20.10.2024 16:38 [16:37:58]line Смена: 534 ФФД: 1.0 [16:37:58]line ЗНМ: 0300000104 [16:37:58]line РНМ: 0000000000091764 [16:37:58]line Версия ККМ: 001 [16:37:58]line Талоны: Топливная Карта [16:37:58]line 38866 [16:37:58]line ФМ: 0000000000871759 [16:37:58]line ФД: 165754 [16:37:58]line ФПД: 235106211801116 [16:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163810&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165754&fm=235106211801116&tin=02508201610067®Number=0000000000091764&sum=0 [16:37:59]OFD Sender: Processing packet 165754 [packets to send 48, broken 47] [16:37:59]ProducePacketName [16:37:59]name=ofd_packets/00165754 [16:37:59]OFD Sender: To server: pG, [16:37:59]CommunicateWithHost lk.salyk.kg:30040 [16:37:59]ConnectInit lk.salyk.kg [16:37:59]written 0, free lines is 4095 [16:37:59]Connected sock=10 [16:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B3 F2 04 01 06 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F2 31 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 87 02 00 35 04 06 00 D5 D3 EE 3D 28 1C B5 67 5D 16 22 5D 6D E2 [16:37:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF 51 47 00 09 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 31 37 35 39 10 04 04 00 7A 87 02 00 F4 03 04 00 63 D8 14 67 B6 04 01 00 00 0B 02 50 30 28 84 9A 41 [16:37:59]CommunicateWithHost err = 0 [16:37:59]CheckOFDResponse [16:37:59]1017 (14) - 77093643461234 [16:37:59]1041 (16) - 0000000000871759 [16:37:59]1040 (4) - 165754 [16:37:59]1012 (4) - 20.10.2024 10:16 [16:37:59]1206 (1) - 0 [16:37:59]OFD Sender: Remove packet 165754 [16:37:59]ProducePacketName [16:37:59]name=ofd_packets/00165754 [16:37:59]NVStorageDeleteData [16:37:59]Write to MH i2c: 01 00 00 D3 00 D3 [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 07 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 07 00 D3 00 00 00 00 00 00 EF 0C D5 [16:37:59]RasterBufferAndPrint [16:37:59]line [16:37:59]line [16:37:59]line [16:37:59]line [16:37:59]line [16:37:59]written 0, free lines is 3318 [16:37:59]MH_Cut [16:37:59]Write to MH i2c: D1 01 00 DA 00 01 AC [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: D1 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: D1 01 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: D1 01 00 DA 00 00 AB [16:37:59]Write to MH i2c: 01 00 00 DB 00 DB [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]OFD Sender: No OFD packet to send [16:38:00]*** Cut start [16:38:00]*** Partial cut [16:38:00]*** CUTSNS_PIN = 1 [16:38:00]*** CUTSNS_PIN = 0 [16:38:00]*** Brake cut motor [16:38:00]Read from MH i2c: 01 [16:38:00]MH_I2C_Read... [16:38:00]*** Stop cut motor [16:38:00]*** Cut end [16:38:00]Read from MH i2c: 01 07 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 FF 0F F0 [16:38:00]process_action close_receipt done [16:38:00]requested_data is exist [16:38:00]produce_requested_data [16:38:00]requested_item fm.sn is exist - process it [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 11 00 00 [16:38:00]Write to MH i2c: E2 08 00 DC 00 80 11 00 00 00 00 00 00 56 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:00]Read from MH i2c: E2 17 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 DC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [16:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:38:00]wFMCommunicate OK [16:38:00]requested_item fd.num is exist - process it [16:38:00]SAM_PROTO_GetFieldsCounters [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 13 00 00 [16:38:00]Write to MH i2c: E2 08 00 DD 00 80 13 00 00 00 00 00 00 59 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:01]Read from MH i2c: E2 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 62 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 62 00 DD 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 87 02 00 0E 04 04 00 16 02 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 60 [16:38:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 87 02 00 0E 04 04 00 16 02 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:38:01]wFMCommunicate OK [16:38:01]SAM_PROTO_GetFieldsCounters done [16:38:01]requested_item shift.num is exist - process it [16:38:01]requested_item shift.opened is exist - process it [16:38:01]req_shift_opened [16:38:01]FM_GetShiftState [16:38:01]SAM_PROTO_GetShiftState [16:38:01]wFMCommunicate request_size=4 [16:38:01]MH_SAM_APDU [16:38:01]CAPDU: 80 13 01 00 [16:38:01]Write to MH i2c: E2 08 00 DE 00 80 13 01 00 00 00 00 00 5B [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:01]Read from MH i2c: E2 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 0E 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 0E 00 DE 00 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A3 [16:38:01]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:38:01]wFMCommunicate OK [16:38:01]SAM_PROTO_GetShiftState done [16:38:01]FM_GetShiftState done [16:38:01]req_shift_opened done [16:38:01]requested_item shift.open_date is exist - process it [16:38:01]req_shift_open_date [16:38:01]req_shift_open_date done [16:38:01]produce_requested_data done [16:38:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165754,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:38:01]process_action_free close_receipt [16:38:01]json_value_free [16:38:01]json_value_free done [16:38:01]process_json_proto returns [16:38:01]Send response to host [16:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165754,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:38:01]free response buf [16:38:01]execute_script done [16:38:01]execute_script returns [16:38:01]free content buf [16:38:01]Sock 9.Close socket [16:38:01]Sock 9.Thread stoped [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:42]accept exits with 7 [16:39:42]New connection [16:39:42]New thread 3066920292 created [16:39:42]Thread 3066776932 joined [16:39:42]Waiting for new connection... [16:39:42] Sock 7.Parse request [16:39:42]Sock 7.Check first char [16:39:42]Sock 7.First char is OK [16:39:42]request: POST /json_proto HTTP/1.0 [16:39:42]Method: POST [16:39:42]URL: /json_proto [16:39:42]Method is POST - this is cgi request [16:39:42]url: /json_proto [16:39:42]query_string will be loaded in cgi processing [16:39:42]execute_cgi json_proto POST (null) [16:39:42]execute_cgi path=json_proto method=POST [16:39:42]POST find Content-Length [16:39:42]Host: 172.17.53.195:8080 [16:39:42]Content-Length: 682 [16:39:42]Content-Type: application/json [16:39:42] [16:39:42]POST finish read [16:39:42]Found Content-Length = 682 [16:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [16:39:42]execute_script... [16:39: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)220323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [16:39:42]POST & json_proto [16:39:42]process_json_proto [16:39:42]json parsed OK: [16:39:42]protocol is kg_v1.0 [16:39:42]action value=close_receipt [16:39:42]process_action close_receipt [16:39:42]cmd_close_receipt [16:39:42]MH_GetDate [16:39:42]Write to MH i2c: F0 00 00 DF 00 CE [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: F0 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: F0 09 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: F0 09 00 DF 00 00 5B 32 15 67 21 48 4A 65 F8 [16:39:42]GetLastDocTimeStamp 1729442290 [16:39:42]current date 1729442395 [16:39:42]FM_GetShiftState [16:39:42]SAM_PROTO_GetShiftState [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 13 01 00 [16:39:42]Write to MH i2c: E2 08 00 E0 00 80 13 01 00 00 00 00 00 5D [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 0E 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 0E 00 E0 00 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A5 [16:39:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:39:42]wFMCommunicate OK [16:39:42]SAM_PROTO_GetShiftState done [16:39:42]FM_GetShiftState done [16:39:42]opened in 1729384561 [16:39:42]opened+sec_in_day 1729470961 [16:39:42]quantity*price = 200043 [16:39:42]sum+1 = 200044 [16:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 237 20.10.2024 16:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165755 ФПД: 280871189612300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163955&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165755&fm=280871189612300&tin=02508201610067®Number=0000000000091764&sum=200000 [16:39:43]StoreToDocumentArchive [16:39:43]shift 534 fd 165755 [16:39:43]save to /storage/0534/doc_00165755 [16:39:43]save last doc name /storage/0534/doc_00165755 to /storage/kkm_last_doc_name [16:39:43]save OK [16:39:43]Clear old archive folders... [16:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:43]tlvbuf is 014DA320 [16:39:43]SAM_PROTO_ClearQueue [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 09 00 00 [16:39:43]Write to MH i2c: E2 08 00 ED 00 80 09 00 00 00 00 00 00 5F [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 ED 00 00 90 00 61 [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]SAM_PROTO_ClearQueue done [16:39:43]KKMCreateOFDPacket [16:39:43]OFDProtocolAddRootSTLVToBuf [16:39:43]FM_MakeSignedData [16:39:43]FM_MakeSignedData [16:39:43]SAM_PROTO_SignData [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 0D 01 02 [16:39:43]Write to MH i2c: E2 08 00 EE 00 80 0D 01 02 00 00 00 00 67 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 EE 00 00 90 00 62 [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]wFMCommunicate request_size=255 [16:39:43]MH_SAM_APDU [16:39: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 ED 00 00 00 F4 03 04 00 5B 32 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 87 02 00 35 04 06 00 FF [16:39:43]Write to MH i2c: E2 02 01 EF 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 ED 00 00 00 F4 03 04 00 5B 32 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 87 02 00 35 04 06 00 FF 00 00 B6 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 03 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 03 00 EF 00 00 90 00 63 [16:39:44]RAPDU: 90 00 [16:39:44]wFMCommunicate OK [16:39:44]wFMCommunicate request_size=10 [16:39:44]MH_SAM_APDU [16:39:44]CAPDU: 80 0D 02 02 05 73 6B 7C 07 0C [16:39:44]Write to MH i2c: E2 0D 00 F0 00 80 0D 02 02 05 00 73 6B 7C 07 0C 00 00 E1 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 03 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 03 00 F0 00 00 90 00 64 [16:39:44]RAPDU: 90 00 [16:39:44]wFMCommunicate OK [16:39:44]wFMCommunicate request_size=4 [16:39:44]MH_SAM_APDU [16:39:44]CAPDU: 80 0D 03 02 [16:39:44]Write to MH i2c: E2 08 00 F1 00 80 0D 03 02 00 00 00 00 6C [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 0B 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 0B 00 F1 00 00 29 19 C5 7F 25 2B 1D C5 90 00 25 [16:39:44]RAPDU: 29 19 C5 7F 25 2B 1D C5 90 00 [16:39:44]wFMCommunicate OK [16:39:44]SAM_PROTO_SignData done [16:39:44]FM_MakeSignedData done [16:39:44]CreateOFDProtocolMessage [16:39:44]wFMCommunicate request_size=4 [16:39:44]MH_SAM_APDU [16:39:44]CAPDU: 80 11 00 00 [16:39:44]Write to MH i2c: E2 08 00 F2 00 80 11 00 00 00 00 00 00 6C [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 17 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 17 00 F2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [16:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:39:44]wFMCommunicate OK [16:39:44]CreateOFDProtocolMessage done [16:39:44]OFDSenderStorePacket 165755 [16:39:44]StoreOFDPacket docnum=165755 [16:39:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 75 4F 07 01 2E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 ED 00 00 00 F4 03 04 00 5B 32 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 87 02 00 35 04 06 00 FF 73 6B 7C 07 0C 29 19 C5 7F 25 2B 1D C5 [16:39:44]CheckFolder [16:39:44]dirname=/storage/ofd_packets [16:39:44]CheckFolder done [16:39:44]ProducePacketName [16:39:44]name=ofd_packets/00165755 [16:39:44]NVStorageSaveData ofd_packets/00165755 [16:39:44]File name is /storage/ofd_packets/00165755 [16:39:44]Write 301 bytes [16:39:44]NVStorageSaveData done [16:39:44]OFDSenderStorePacket done [16:39:44]KKMCreateOFDPacket done [16:39:44]NVStorageSaveData kkm_last_timestamp [16:39:44]File name is /storage/kkm_last_timestamp [16:39:44]Write 4 bytes [16:39:44]NVStorageSaveData done [16:39:44]ExternCall_PrintAddStr [16:39:44]wPrintStart [16:39:44]Write to MH i2c: 01 00 00 F3 00 F3 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 07 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 FF 0F 08 [16:39:44]RasterBufferAndPrint [16:39:44]line Счет N : (1)220323 [16:39:44]line ИНН: 02508201610067 [16:39:44]line Контрольно-Кассовый Чек [16:39:44]line ПРОДАЖА [16:39:44]line ТРК (МРК, ГНК) : 34 [16:39:44]line Товар: 2710124500 [16:39:44]line Аи-95-К-5 [16:39:44]line 26.960 * 74.20 [16:39:44]line = 2000.43 [16:39:44]line НДС 12% НСП 1% [16:39:44]line > о реализуемом товаре [16:39:44]line ОКРУГЛЕНИЕ: -0.43 [16:39:44]line ИТОГО: 2000.00 [16:39:44]line Внесено: 2000.00 [16:39:44]line СДАЧА: 0.00 [16:39:44]line НСП 1% : 17.70 [16:39:44]line НДС 12% : 212.43 [16:39:44]line Наличными: 2000.00 [16:39:44]line Безнал.: 0.00 [16:39:44]line Место: АЗС № 161 "Партнер Нефть" [16:39:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:39:44]line СНО: Общий режим [16:39:44]line Чек 237 20.10.2024 16:39 [16:39:44]line Смена: 534 ФФД: 1.0 [16:39:44]line ЗНМ: 0300000104 [16:39:44]line РНМ: 0000000000091764 [16:39:44]line Версия ККМ: 001 [16:39:44]line ФМ: 0000000000871759 [16:39:44]line ФД: 165755 [16:39:44]line ФПД: 280871189612300 [16:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163955&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165755&fm=280871189612300&tin=02508201610067®Number=0000000000091764&sum=200000 [16:39:44]OFD Sender: Processing packet 165755 [packets to send 48, broken 47] [16:39:44]ProducePacketName [16:39:44]name=ofd_packets/00165755 [16:39:44]OFD Sender: To server: pG, [16:39:44]CommunicateWithHost lk.salyk.kg:30040 [16:39:44]ConnectInit lk.salyk.kg [16:39:44]written 0, free lines is 4095 [16:39:44]Connected sock=11 [16:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 75 4F 07 01 2E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 ED 00 00 00 F4 03 04 00 5B 32 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 87 02 00 35 04 06 00 FF 73 6B 7C 07 0C 29 19 C5 7F 25 2B 1D C5 [16:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AC E4 47 00 F1 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 87 02 00 F4 03 04 00 CD D8 14 67 B6 04 01 00 00 4A C6 7C 51 C9 1A 38 56 [16:39:44]CommunicateWithHost err = 0 [16:39:44]CheckOFDResponse [16:39:44]1017 (14) - 77093643461234 [16:39:44]1041 (16) - 0000000000871759 [16:39:44]1040 (4) - 165755 [16:39:44]1012 (4) - 20.10.2024 10:17 [16:39:44]1206 (1) - 0 [16:39:44]OFD Sender: Remove packet 165755 [16:39:44]ProducePacketName [16:39:44]name=ofd_packets/00165755 [16:39:44]NVStorageDeleteData [16:39:44]Write to MH i2c: 01 00 00 1E 01 1F [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 07 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 07 00 1E 01 00 00 00 00 00 C8 0C FA [16:39:44]RasterBufferAndPrint [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]written 0, free lines is 3277 [16:39:44]MH_Cut [16:39:44]Write to MH i2c: D1 01 00 25 01 01 F8 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: D1 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: D1 01 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: D1 01 00 25 01 00 F7 [16:39:44]Write to MH i2c: 01 00 00 26 01 27 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:45]OFD Sender: No OFD packet to send [16:39:45]*** Cut start [16:39:45]*** Partial cut [16:39:45]*** CUTSNS_PIN = 1 [16:39:45]*** CUTSNS_PIN = 0 [16:39:46]*** Brake cut motor [16:39:46]Read from MH i2c: 01 [16:39:46]MH_I2C_Read... [16:39:46]*** Stop cut motor [16:39:46]*** Cut end [16:39:46]Read from MH i2c: 01 07 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [16:39:46]process_action close_receipt done [16:39:46]requested_data is exist [16:39:46]produce_requested_data [16:39:46]requested_item fm.sn is exist - process it [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 11 00 00 [16:39:46]Write to MH i2c: E2 08 00 27 01 80 11 00 00 00 00 00 00 A2 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 17 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 17 00 27 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [16:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:39:46]wFMCommunicate OK [16:39:46]requested_item fd.num is exist - process it [16:39:46]SAM_PROTO_GetFieldsCounters [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 13 00 00 [16:39:46]Write to MH i2c: E2 08 00 28 01 80 13 00 00 00 00 00 00 A5 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 62 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 62 00 28 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 87 02 00 0E 04 04 00 16 02 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 B0 [16:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 87 02 00 0E 04 04 00 16 02 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:39:46]wFMCommunicate OK [16:39:46]SAM_PROTO_GetFieldsCounters done [16:39:46]requested_item shift.num is exist - process it [16:39:46]requested_item shift.opened is exist - process it [16:39:46]req_shift_opened [16:39:46]FM_GetShiftState [16:39:46]SAM_PROTO_GetShiftState [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 13 01 00 [16:39:46]Write to MH i2c: E2 08 00 29 01 80 13 01 00 00 00 00 00 A7 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0E 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0E 00 29 01 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EF [16:39:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:39:46]wFMCommunicate OK [16:39:46]SAM_PROTO_GetShiftState done [16:39:46]FM_GetShiftState done [16:39:46]req_shift_opened done [16:39:46]requested_item shift.open_date is exist - process it [16:39:46]req_shift_open_date [16:39:46]req_shift_open_date done [16:39:46]produce_requested_data done [16:39:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165755,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:39:46]process_action_free close_receipt [16:39:46]json_value_free [16:39:46]json_value_free done [16:39:46]process_json_proto returns [16:39:46]Send response to host [16:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165755,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:39:46]free response buf [16:39:46]execute_script done [16:39:46]execute_script returns [16:39:46]free content buf [16:39:46]Sock 7.Close socket [16:39:46]Sock 7.Thread stoped [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:06]accept exits with 9 [16:43:06]New connection [16:43:06]New thread 3066776932 created [16:43:06]Thread 3066920292 joined [16:43:06]Waiting for new connection... [16:43:06] Sock 9.Parse request [16:43:06]Sock 9.Check first char [16:43:06]Sock 9.First char is OK [16:43:06]request: POST /json_proto HTTP/1.0 [16:43:06]Method: POST [16:43:06]URL: /json_proto [16:43:06]Method is POST - this is cgi request [16:43:06]url: /json_proto [16:43:06]query_string will be loaded in cgi processing [16:43:06]execute_cgi json_proto POST (null) [16:43:06]execute_cgi path=json_proto method=POST [16:43:06]POST find Content-Length [16:43:06]Host: 172.17.53.195:8080 [16:43:06]Content-Length: 682 [16:43:06]Content-Type: application/json [16:43:06] [16:43:06]POST finish read [16:43:06]Found Content-Length = 682 [16:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:06]execute_script... [16:43: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)220325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:06]POST & json_proto [16:43:06]process_json_proto [16:43:06]json parsed OK: [16:43:06]protocol is kg_v1.0 [16:43:06]action value=close_receipt [16:43:06]process_action close_receipt [16:43:06]cmd_close_receipt [16:43:06]MH_GetDate [16:43:06]Write to MH i2c: F0 00 00 2A 01 1A [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: F0 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: F0 09 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: F0 09 00 2A 01 00 27 33 15 67 21 48 4A 65 11 [16:43:06]GetLastDocTimeStamp 1729442395 [16:43:06]current date 1729442599 [16:43:06]FM_GetShiftState [16:43:06]SAM_PROTO_GetShiftState [16:43:06]wFMCommunicate request_size=4 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 13 01 00 [16:43:06]Write to MH i2c: E2 08 00 2B 01 80 13 01 00 00 00 00 00 A9 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 0E 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 0E 00 2B 01 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F1 [16:43:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:43:06]wFMCommunicate OK [16:43:06]SAM_PROTO_GetShiftState done [16:43:06]FM_GetShiftState done [16:43:06]opened in 1729384561 [16:43:06]opened+sec_in_day 1729470961 [16:43:06]quantity*price = 100015 [16:43:06]sum+1 = 100017 [16:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 238 20.10.2024 16:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165756 ФПД: 273227845844270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165756&fm=273227845844270&tin=02508201610067®Number=0000000000091764&sum=100000 [16:43:07]StoreToDocumentArchive [16:43:07]shift 534 fd 165756 [16:43:07]save to /storage/0534/doc_00165756 [16:43:07]save last doc name /storage/0534/doc_00165756 to /storage/kkm_last_doc_name [16:43:07]save OK [16:43:07]Clear old archive folders... [16:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:07]tlvbuf is 0169F810 [16:43:07]SAM_PROTO_ClearQueue [16:43:07]wFMCommunicate request_size=4 [16:43:07]MH_SAM_APDU [16:43:07]CAPDU: 80 09 00 00 [16:43:07]Write to MH i2c: E2 08 00 38 01 80 09 00 00 00 00 00 00 AB [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:07]Read from MH i2c: E2 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 03 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 03 00 38 01 00 90 00 AD [16:43:07]RAPDU: 90 00 [16:43:07]wFMCommunicate OK [16:43:07]SAM_PROTO_ClearQueue done [16:43:07]KKMCreateOFDPacket [16:43:07]OFDProtocolAddRootSTLVToBuf [16:43:07]FM_MakeSignedData [16:43:07]FM_MakeSignedData [16:43:07]SAM_PROTO_SignData [16:43:07]wFMCommunicate request_size=4 [16:43:07]MH_SAM_APDU [16:43:07]CAPDU: 80 0D 01 02 [16:43:07]Write to MH i2c: E2 08 00 39 01 80 0D 01 02 00 00 00 00 B3 [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:07]Read from MH i2c: E2 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 03 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 03 00 39 01 00 90 00 AE [16:43:07]RAPDU: 90 00 [16:43:07]wFMCommunicate OK [16:43:07]wFMCommunicate request_size=255 [16:43:07]MH_SAM_APDU [16:43: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 27 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 87 02 00 35 04 06 00 F8 [16:43:07]Write to MH i2c: E2 02 01 3A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 27 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 87 02 00 35 04 06 00 F8 00 00 1C [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 03 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 03 00 3A 01 00 90 00 AF [16:43:08]RAPDU: 90 00 [16:43:08]wFMCommunicate OK [16:43:08]wFMCommunicate request_size=10 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 0D 02 02 05 7F D0 B1 BD 2E [16:43:08]Write to MH i2c: E2 0D 00 3B 01 80 0D 02 02 05 00 7F D0 B1 BD 2E 00 00 AB [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 03 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [16:43:08]RAPDU: 90 00 [16:43:08]wFMCommunicate OK [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 0D 03 02 [16:43:08]Write to MH i2c: E2 08 00 3C 01 80 0D 03 02 00 00 00 00 B8 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 0B 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 0B 00 3C 01 00 A8 CF 6D 24 BC DE B0 FF 90 00 0A [16:43:08]RAPDU: A8 CF 6D 24 BC DE B0 FF 90 00 [16:43:08]wFMCommunicate OK [16:43:08]SAM_PROTO_SignData done [16:43:08]FM_MakeSignedData done [16:43:08]CreateOFDProtocolMessage [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 11 00 00 [16:43:08]Write to MH i2c: E2 08 00 3D 01 80 11 00 00 00 00 00 00 B8 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 17 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 17 00 3D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [16:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:43:08]wFMCommunicate OK [16:43:08]CreateOFDProtocolMessage done [16:43:08]OFDSenderStorePacket 165756 [16:43:08]StoreOFDPacket docnum=165756 [16:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F2 5E 07 01 3D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 27 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 87 02 00 35 04 06 00 F8 7F D0 B1 BD 2E A8 CF 6D 24 BC DE B0 FF [16:43:08]CheckFolder [16:43:08]dirname=/storage/ofd_packets [16:43:08]CheckFolder done [16:43:08]ProducePacketName [16:43:08]name=ofd_packets/00165756 [16:43:08]NVStorageSaveData ofd_packets/00165756 [16:43:08]File name is /storage/ofd_packets/00165756 [16:43:08]Write 301 bytes [16:43:08]NVStorageSaveData done [16:43:08]OFDSenderStorePacket done [16:43:08]KKMCreateOFDPacket done [16:43:08]NVStorageSaveData kkm_last_timestamp [16:43:08]File name is /storage/kkm_last_timestamp [16:43:08]Write 4 bytes [16:43:08]NVStorageSaveData done [16:43:08]ExternCall_PrintAddStr [16:43:08]wPrintStart [16:43:08]Write to MH i2c: 01 00 00 3E 01 3F [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: 01 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: 01 07 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 FF 0F 54 [16:43:08]RasterBufferAndPrint [16:43:08]line Счет N : (1)220325 [16:43:08]line ИНН: 02508201610067 [16:43:08]line Контрольно-Кассовый Чек [16:43:08]line ПРОДАЖА [16:43:08]line ТРК (МРК, ГНК) : 13 [16:43:08]line Товар: 2710124130 [16:43:08]line Аи-92-К-5 [16:43:08]line 14.950 * 66.90 [16:43:08]line = 1000.16 [16:43:08]line НДС 12% НСП 1% [16:43:08]line > о реализуемом товаре [16:43:08]line ОКРУГЛЕНИЕ: -0.16 [16:43:08]line ИТОГО: 1000.00 [16:43:08]line Внесено: 1000.00 [16:43:08]line СДАЧА: 0.00 [16:43:08]line НСП 1% : 8.85 [16:43:08]line НДС 12% : 106.21 [16:43:08]line Наличными: 1000.00 [16:43:08]line Безнал.: 0.00 [16:43:08]line Место: АЗС № 161 "Партнер Нефть" [16:43:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:43:08]line СНО: Общий режим [16:43:08]line Чек 238 20.10.2024 16:43 [16:43:08]line Смена: 534 ФФД: 1.0 [16:43:08]line ЗНМ: 0300000104 [16:43:08]line РНМ: 0000000000091764 [16:43:08]line Версия ККМ: 001 [16:43:08]line ФМ: 0000000000871759 [16:43:08]line ФД: 165756 [16:43:08]line ФПД: 273227845844270 [16:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165756&fm=273227845844270&tin=02508201610067®Number=0000000000091764&sum=100000 [16:43:08]OFD Sender: Processing packet 165756 [packets to send 48, broken 47] [16:43:08]ProducePacketName [16:43:08]name=ofd_packets/00165756 [16:43:08]OFD Sender: To server: pG, [16:43:08]CommunicateWithHost lk.salyk.kg:30040 [16:43:08]ConnectInit lk.salyk.kg [16:43:08]written 0, free lines is 4095 [16:43:08]Connected sock=10 [16:43:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F2 5E 07 01 3D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 27 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 87 02 00 35 04 06 00 F8 7F D0 B1 BD 2E A8 CF 6D 24 BC DE B0 FF [16:43:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A4 57 47 00 74 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 31 37 35 39 10 04 04 00 7C 87 02 00 F4 03 04 00 99 D9 14 67 B6 04 01 00 00 A5 87 52 D9 FB B1 34 FC [16:43:08]CommunicateWithHost err = 0 [16:43:08]CheckOFDResponse [16:43:08]1017 (14) - 77093643461234 [16:43:08]1041 (16) - 0000000000871759 [16:43:08]1040 (4) - 165756 [16:43:08]1012 (4) - 20.10.2024 10:21 [16:43:08]1206 (1) - 0 [16:43:08]OFD Sender: Remove packet 165756 [16:43:08]ProducePacketName [16:43:08]name=ofd_packets/00165756 [16:43:08]NVStorageDeleteData [16:43:09]Write to MH i2c: 01 00 00 69 01 6A [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 07 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 C0 0C 3D [16:43:09]RasterBufferAndPrint [16:43:09]line [16:43:09]line [16:43:09]line [16:43:09]line [16:43:09]line [16:43:09]written 0, free lines is 3269 [16:43:09]MH_Cut [16:43:09]Write to MH i2c: D1 01 00 70 01 01 43 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: D1 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: D1 01 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: D1 01 00 70 01 00 42 [16:43:09]Write to MH i2c: 01 00 00 71 01 72 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]OFD Sender: No OFD packet to send [16:43:09]*** Cut start [16:43:09]*** Partial cut [16:43:09]*** CUTSNS_PIN = 1 [16:43:09]*** CUTSNS_PIN = 0 [16:43:10]*** Brake cut motor [16:43:10]Read from MH i2c: 01 [16:43:10]MH_I2C_Read... [16:43:10]*** Stop cut motor [16:43:10]*** Cut end [16:43:10]Read from MH i2c: 01 07 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 FF 0F 87 [16:43:10]process_action close_receipt done [16:43:10]requested_data is exist [16:43:10]produce_requested_data [16:43:10]requested_item fm.sn is exist - process it [16:43:10]wFMCommunicate request_size=4 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 11 00 00 [16:43:10]Write to MH i2c: E2 08 00 72 01 80 11 00 00 00 00 00 00 ED [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 17 00 [16:43:10]MH_I2C_Read... [16:43:10]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 31 37 35 39 90 00 45 [16:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:43:10]wFMCommunicate OK [16:43:10]requested_item fd.num is exist - process it [16:43:10]SAM_PROTO_GetFieldsCounters [16:43:10]wFMCommunicate request_size=4 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 13 00 00 [16:43:10]Write to MH i2c: E2 08 00 73 01 80 13 00 00 00 00 00 00 F0 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 62 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 62 00 73 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 87 02 00 0E 04 04 00 16 02 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 FF [16:43:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 87 02 00 0E 04 04 00 16 02 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:43:10]wFMCommunicate OK [16:43:10]SAM_PROTO_GetFieldsCounters done [16:43:10]requested_item shift.num is exist - process it [16:43:10]requested_item shift.opened is exist - process it [16:43:10]req_shift_opened [16:43:10]FM_GetShiftState [16:43:10]SAM_PROTO_GetShiftState [16:43:10]wFMCommunicate request_size=4 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 13 01 00 [16:43:10]Write to MH i2c: E2 08 00 74 01 80 13 01 00 00 00 00 00 F2 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 0E 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 0E 00 74 01 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3A [16:43:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:43:10]wFMCommunicate OK [16:43:10]SAM_PROTO_GetShiftState done [16:43:10]FM_GetShiftState done [16:43:10]req_shift_opened done [16:43:10]requested_item shift.open_date is exist - process it [16:43:10]req_shift_open_date [16:43:10]req_shift_open_date done [16:43:10]produce_requested_data done [16:43:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165756,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:43:10]process_action_free close_receipt [16:43:10]json_value_free [16:43:10]json_value_free done [16:43:10]process_json_proto returns [16:43:10]Send response to host [16:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165756,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:43:10]free response buf [16:43:10]execute_script done [16:43:10]execute_script returns [16:43:10]free content buf [16:43:10]Sock 9.Close socket [16:43:10]Sock 9.Thread stoped [16:43:11]accept exits with 7 [16:43:11]New connection [16:43:11]New thread 3066920292 created [16:43:11]Thread 3066776932 joined [16:43:11]Waiting for new connection... [16:43:11] Sock 7.Parse request [16:43:11]Sock 7.Check first char [16:43:11]Sock 7.First char is OK [16:43:11]request: POST /json_proto HTTP/1.0 [16:43:11]Method: POST [16:43:11]URL: /json_proto [16:43:11]Method is POST - this is cgi request [16:43:11]url: /json_proto [16:43:11]query_string will be loaded in cgi processing [16:43:11]execute_cgi json_proto POST (null) [16:43:11]execute_cgi path=json_proto method=POST [16:43:11]POST find Content-Length [16:43:11]Host: 172.17.53.195:8080 [16:43:11]Content-Length: 789 [16:43:11]Content-Type: application/json [16:43:11] [16:43:11]POST finish read [16:43:11]Found Content-Length = 789 [16:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220324", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:11]execute_script... [16:43:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220324", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:11]POST & json_proto [16:43:11]process_json_proto [16:43:11]json parsed OK: [16:43:11]protocol is kg_v1.0 [16:43:11]action value=close_receipt [16:43:11]process_action close_receipt [16:43:11]cmd_close_receipt [16:43:11]MH_GetDate [16:43:11]Write to MH i2c: F0 00 00 75 01 65 [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: F0 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: F0 09 00 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: F0 09 00 75 01 00 2C 33 15 67 21 48 4A 65 61 [16:43:11]GetLastDocTimeStamp 1729442599 [16:43:11]current date 1729442604 [16:43:11]FM_GetShiftState [16:43:11]SAM_PROTO_GetShiftState [16:43:11]wFMCommunicate request_size=4 [16:43:11]MH_SAM_APDU [16:43:11]CAPDU: 80 13 01 00 [16:43:11]Write to MH i2c: E2 08 00 76 01 80 13 01 00 00 00 00 00 F4 [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:11]Read from MH i2c: E2 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: E2 0E 00 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: E2 0E 00 76 01 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3C [16:43:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:43:11]wFMCommunicate OK [16:43:11]SAM_PROTO_GetShiftState done [16:43:11]FM_GetShiftState done [16:43:11]opened in 1729384561 [16:43:11]opened+sec_in_day 1729470961 [16:43:11]quantity*price = 0 [16:43:11]sum+1 = 1 [16:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 239 20.10.2024 16:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165757 ФПД: 269144370596302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164324&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165757&fm=269144370596302&tin=02508201610067®Number=0000000000091764&sum=0 [16:43:12]StoreToDocumentArchive [16:43:12]shift 534 fd 165757 [16:43:12]save to /storage/0534/doc_00165757 [16:43:12]save last doc name /storage/0534/doc_00165757 to /storage/kkm_last_doc_name [16:43:12]save OK [16:43:12]Clear old archive folders... [16:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:43:12]tlvbuf is 01872590 [16:43:12]SAM_PROTO_ClearQueue [16:43:12]wFMCommunicate request_size=4 [16:43:12]MH_SAM_APDU [16:43:12]CAPDU: 80 09 00 00 [16:43:12]Write to MH i2c: E2 08 00 83 01 80 09 00 00 00 00 00 00 F6 [16:43:12]Write i2c OK [16:43:12]MH_I2C_Read... [16:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:12]Read from MH i2c: E2 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 03 00 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 03 00 83 01 00 90 00 F8 [16:43:12]RAPDU: 90 00 [16:43:12]wFMCommunicate OK [16:43:12]SAM_PROTO_ClearQueue done [16:43:12]KKMCreateOFDPacket [16:43:12]OFDProtocolAddRootSTLVToBuf [16:43:12]FM_MakeSignedData [16:43:12]FM_MakeSignedData [16:43:12]SAM_PROTO_SignData [16:43:12]wFMCommunicate request_size=4 [16:43:12]MH_SAM_APDU [16:43:12]CAPDU: 80 0D 01 02 [16:43:12]Write to MH i2c: E2 08 00 84 01 80 0D 01 02 00 00 00 00 FE [16:43:12]Write i2c OK [16:43:12]MH_I2C_Read... [16:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:12]Read from MH i2c: E2 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 03 00 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [16:43:12]RAPDU: 90 00 [16:43:12]wFMCommunicate OK [16:43:12]wFMCommunicate request_size=255 [16:43:12]MH_SAM_APDU [16:43: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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 2C 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 87 02 00 35 04 06 00 F4 C9 0E 9A [16:43:12]Write to MH i2c: E2 02 01 85 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 2C 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 87 02 00 35 04 06 00 F4 C9 0E 9A 00 00 2C [16:43:12]Write i2c OK [16:43:12]MH_I2C_Read... [16:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:13]Read from MH i2c: E2 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 03 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [16:43:13]RAPDU: 90 00 [16:43:13]wFMCommunicate OK [16:43:13]wFMCommunicate request_size=7 [16:43:13]MH_SAM_APDU [16:43:13]CAPDU: 80 0D 02 02 02 49 CE [16:43:13]Write to MH i2c: E2 0A 00 86 01 80 0D 02 02 02 00 49 CE 00 00 1C [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:13]Read from MH i2c: E2 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 03 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [16:43:13]RAPDU: 90 00 [16:43:13]wFMCommunicate OK [16:43:13]wFMCommunicate request_size=4 [16:43:13]MH_SAM_APDU [16:43:13]CAPDU: 80 0D 03 02 [16:43:13]Write to MH i2c: E2 08 00 87 01 80 0D 03 02 00 00 00 00 03 [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:13]Read from MH i2c: E2 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 0B 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 0B 00 87 01 00 A6 ED 61 A0 88 28 41 05 90 00 8E [16:43:13]RAPDU: A6 ED 61 A0 88 28 41 05 90 00 [16:43:13]wFMCommunicate OK [16:43:13]SAM_PROTO_SignData done [16:43:13]FM_MakeSignedData done [16:43:13]CreateOFDProtocolMessage [16:43:13]wFMCommunicate request_size=4 [16:43:13]MH_SAM_APDU [16:43:13]CAPDU: 80 11 00 00 [16:43:13]Write to MH i2c: E2 08 00 88 01 80 11 00 00 00 00 00 00 03 [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:13]Read from MH i2c: E2 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 17 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 17 00 88 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [16:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:43:13]wFMCommunicate OK [16:43:13]CreateOFDProtocolMessage done [16:43:13]OFDSenderStorePacket 165757 [16:43:13]StoreOFDPacket docnum=165757 [16:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AB 01 04 01 5B 98 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 2C 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 87 02 00 35 04 06 00 F4 C9 0E 9A 49 CE A6 ED 61 A0 88 28 41 05 [16:43:13]CheckFolder [16:43:13]dirname=/storage/ofd_packets [16:43:13]CheckFolder done [16:43:13]ProducePacketName [16:43:13]name=ofd_packets/00165757 [16:43:13]NVStorageSaveData ofd_packets/00165757 [16:43:13]File name is /storage/ofd_packets/00165757 [16:43:13]Write 298 bytes [16:43:13]NVStorageSaveData done [16:43:13]OFDSenderStorePacket done [16:43:13]KKMCreateOFDPacket done [16:43:13]NVStorageSaveData kkm_last_timestamp [16:43:13]File name is /storage/kkm_last_timestamp [16:43:13]Write 4 bytes [16:43:13]NVStorageSaveData done [16:43:13]ExternCall_PrintAddStr [16:43:13]wPrintStart [16:43:13]Write to MH i2c: 01 00 00 89 01 8A [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: 01 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: 01 07 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [16:43:13]RasterBufferAndPrint [16:43:13]line Счет N : (1)220324 [16:43:13]line ИНН: 02508201610067 [16:43:13]line Контрольно-Кассовый Чек [16:43:13]line ПРОДАЖА [16:43:13]line ТРК (МРК, ГНК) : 21 [16:43:13]line Товар: 2710194210 [16:43:13]line ДТ-К-5 [16:43:13]line 13.130 * 0.00 [16:43:13]line = 0.00 [16:43:13]line НДС 12% НСП 1% [16:43:13]line > о реализуемом товаре [16:43:13]line ИТОГО: 0.00 [16:43:13]line НСП 1% : 0.00 [16:43:13]line НДС 12% : 0.00 [16:43:13]line Наличными: 0.00 [16:43:13]line Безнал.: 0.00 [16:43:13]line Место: АЗС № 161 "Партнер Нефть" [16:43:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:43:13]line СНО: Общий режим [16:43:13]line Чек 239 20.10.2024 16:43 [16:43:13]line Смена: 534 ФФД: 1.0 [16:43:13]line ЗНМ: 0300000104 [16:43:13]line РНМ: 0000000000091764 [16:43:13]line Версия ККМ: 001 [16:43:13]line Талоны: Топливная Карта [16:43:13]line 38866 [16:43:13]line ФМ: 0000000000871759 [16:43:13]line ФД: 165757 [16:43:13]line ФПД: 269144370596302 [16:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164324&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165757&fm=269144370596302&tin=02508201610067®Number=0000000000091764&sum=0 [16:43:13]OFD Sender: Processing packet 165757 [packets to send 48, broken 47] [16:43:13]ProducePacketName [16:43:13]name=ofd_packets/00165757 [16:43:13]written 0, free lines is 4095 [16:43:13]OFD Sender: To server: pG, [16:43:13]CommunicateWithHost lk.salyk.kg:30040 [16:43:13]ConnectInit lk.salyk.kg [16:43:13]Connected sock=10 [16:43:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AB 01 04 01 5B 98 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 2C 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 87 02 00 35 04 06 00 F4 C9 0E 9A 49 CE A6 ED 61 A0 88 28 41 05 [16:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F2 5E 47 00 FB 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 31 37 35 39 10 04 04 00 7D 87 02 00 F4 03 04 00 9E D9 14 67 B6 04 01 00 00 E0 BD 62 6E 56 96 1D BE [16:43:14]CommunicateWithHost err = 0 [16:43:14]CheckOFDResponse [16:43:14]1017 (14) - 77093643461234 [16:43:14]1041 (16) - 0000000000871759 [16:43:14]1040 (4) - 165757 [16:43:14]1012 (4) - 20.10.2024 10:21 [16:43:14]1206 (1) - 0 [16:43:14]OFD Sender: Remove packet 165757 [16:43:14]ProducePacketName [16:43:14]name=ofd_packets/00165757 [16:43:14]NVStorageDeleteData [16:43:14]Write to MH i2c: 01 00 00 B3 01 B4 [16:43:14]Write i2c OK [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: 01 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: 01 07 00 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: 01 07 00 B3 01 00 00 00 00 00 DD 0C A4 [16:43:14]RasterBufferAndPrint [16:43:14]line [16:43:14]line [16:43:14]line [16:43:14]line [16:43:14]line [16:43:14]written 0, free lines is 3310 [16:43:14]MH_Cut [16:43:14]Write to MH i2c: D1 01 00 BA 01 01 8D [16:43:14]Write i2c OK [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: D1 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: D1 01 00 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: D1 01 00 BA 01 00 8C [16:43:14]Write to MH i2c: 01 00 00 BB 01 BC [16:43:14]Write i2c OK [16:43:14]MH_I2C_Read... [16:43:14]OFD Sender: No OFD packet to send [16:43:14]*** Cut start [16:43:14]*** Partial cut [16:43:14]*** CUTSNS_PIN = 1 [16:43:14]*** CUTSNS_PIN = 0 [16:43:15]*** Brake cut motor [16:43:15]Read from MH i2c: 01 [16:43:15]MH_I2C_Read... [16:43:15]*** Stop cut motor [16:43:15]*** Cut end [16:43:15]Read from MH i2c: 01 07 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 FF 0F D1 [16:43:15]process_action close_receipt done [16:43:15]requested_data is exist [16:43:15]produce_requested_data [16:43:15]requested_item fm.sn is exist - process it [16:43:15]wFMCommunicate request_size=4 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 11 00 00 [16:43:15]Write to MH i2c: E2 08 00 BC 01 80 11 00 00 00 00 00 00 37 [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 17 00 [16:43:15]MH_I2C_Read... [16:43:15]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 31 37 35 39 90 00 8F [16:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:43:15]wFMCommunicate OK [16:43:15]requested_item fd.num is exist - process it [16:43:15]SAM_PROTO_GetFieldsCounters [16:43:15]wFMCommunicate request_size=4 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 13 00 00 [16:43:15]Write to MH i2c: E2 08 00 BD 01 80 13 00 00 00 00 00 00 3A [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 62 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 62 00 BD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 87 02 00 0E 04 04 00 16 02 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 4D [16:43:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 87 02 00 0E 04 04 00 16 02 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:43:15]wFMCommunicate OK [16:43:15]SAM_PROTO_GetFieldsCounters done [16:43:15]requested_item shift.num is exist - process it [16:43:15]requested_item shift.opened is exist - process it [16:43:15]req_shift_opened [16:43:15]FM_GetShiftState [16:43:15]SAM_PROTO_GetShiftState [16:43:15]wFMCommunicate request_size=4 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 13 01 00 [16:43:15]Write to MH i2c: E2 08 00 BE 01 80 13 01 00 00 00 00 00 3C [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 0E 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 0E 00 BE 01 00 09 00 01 71 50 14 67 00 00 00 00 90 00 84 [16:43:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:43:15]wFMCommunicate OK [16:43:15]SAM_PROTO_GetShiftState done [16:43:15]FM_GetShiftState done [16:43:15]req_shift_opened done [16:43:15]requested_item shift.open_date is exist - process it [16:43:15]req_shift_open_date [16:43:15]req_shift_open_date done [16:43:15]produce_requested_data done [16:43:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165757,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:43:15]process_action_free close_receipt [16:43:15]json_value_free [16:43:15]json_value_free done [16:43:15]process_json_proto returns [16:43:15]Send response to host [16:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165757,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:43:15]free response buf [16:43:15]execute_script done [16:43:15]execute_script returns [16:43:15]free content buf [16:43:15]Sock 7.Close socket [16:43:15]Sock 7.Thread stoped [16:43:16]accept exits with 9 [16:43:16]New connection [16:43:16]New thread 3066776932 created [16:43:16]Thread 3066920292 joined [16:43:16]Waiting for new connection... [16:43:16] Sock 9.Parse request [16:43:16]Sock 9.Check first char [16:43:16]Sock 9.First char is OK [16:43:16]request: POST /json_proto HTTP/1.0 [16:43:16]Method: POST [16:43:16]URL: /json_proto [16:43:16]Method is POST - this is cgi request [16:43:16]url: /json_proto [16:43:16]query_string will be loaded in cgi processing [16:43:16]execute_cgi json_proto POST (null) [16:43:16]execute_cgi path=json_proto method=POST [16:43:16]POST find Content-Length [16:43:16]Host: 172.17.53.195:8080 [16:43:16]Content-Length: 677 [16:43:16]Content-Type: application/json [16:43:16] [16:43:16]POST finish read [16:43:16]Found Content-Length = 677 [16:43:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:16]execute_script... [16:43: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)220326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:16]POST & json_proto [16:43:16]process_json_proto [16:43:16]json parsed OK: [16:43:16]protocol is kg_v1.0 [16:43:16]action value=close_receipt [16:43:16]process_action close_receipt [16:43:16]cmd_close_receipt [16:43:16]MH_GetDate [16:43:16]Write to MH i2c: F0 00 00 BF 01 AF [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: F0 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: F0 09 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: F0 09 00 BF 01 00 31 33 15 67 21 48 4A 65 B0 [16:43:16]GetLastDocTimeStamp 1729442604 [16:43:16]current date 1729442609 [16:43:16]FM_GetShiftState [16:43:16]SAM_PROTO_GetShiftState [16:43:16]wFMCommunicate request_size=4 [16:43:16]MH_SAM_APDU [16:43:16]CAPDU: 80 13 01 00 [16:43:16]Write to MH i2c: E2 08 00 C0 01 80 13 01 00 00 00 00 00 3E [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:16]Read from MH i2c: E2 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: E2 0E 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: E2 0E 00 C0 01 00 09 00 01 71 50 14 67 00 00 00 00 90 00 86 [16:43:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:43:16]wFMCommunicate OK [16:43:16]SAM_PROTO_GetShiftState done [16:43:16]FM_GetShiftState done [16:43:16]opened in 1729384561 [16:43:16]opened+sec_in_day 1729470961 [16:43:16]quantity*price = 19066 [16:43:16]sum+1 = 19068 [16:43:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 240 20.10.2024 16:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165758 ФПД: 159491574448960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164330&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165758&fm=159491574448960&tin=02508201610067®Number=0000000000091764&sum=19000 [16:43:18]StoreToDocumentArchive [16:43:18]shift 534 fd 165758 [16:43:18]save to /storage/0534/doc_00165758 [16:43:18]save last doc name /storage/0534/doc_00165758 to /storage/kkm_last_doc_name [16:43:18]save OK [16:43:18]Clear old archive folders... [16:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:18]tlvbuf is 01467390 [16:43:18]SAM_PROTO_ClearQueue [16:43:18]wFMCommunicate request_size=4 [16:43:18]MH_SAM_APDU [16:43:18]CAPDU: 80 09 00 00 [16:43:18]Write to MH i2c: E2 08 00 CD 01 80 09 00 00 00 00 00 00 40 [16:43:18]Write i2c OK [16:43:18]MH_I2C_Read... [16:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:18]Read from MH i2c: E2 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 03 00 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 03 00 CD 01 00 90 00 42 [16:43:18]RAPDU: 90 00 [16:43:18]wFMCommunicate OK [16:43:18]SAM_PROTO_ClearQueue done [16:43:18]KKMCreateOFDPacket [16:43:18]OFDProtocolAddRootSTLVToBuf [16:43:18]FM_MakeSignedData [16:43:18]FM_MakeSignedData [16:43:18]SAM_PROTO_SignData [16:43:18]wFMCommunicate request_size=4 [16:43:18]MH_SAM_APDU [16:43:18]CAPDU: 80 0D 01 02 [16:43:18]Write to MH i2c: E2 08 00 CE 01 80 0D 01 02 00 00 00 00 48 [16:43:18]Write i2c OK [16:43:18]MH_I2C_Read... [16:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:18]Read from MH i2c: E2 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 03 00 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [16:43:18]RAPDU: 90 00 [16:43:18]wFMCommunicate OK [16:43:18]wFMCommunicate request_size=255 [16:43:18]MH_SAM_APDU [16:43: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 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 E9 07 00 00 00 00 07 04 06 00 38 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 F0 00 00 00 F4 03 04 00 32 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 87 02 00 35 04 06 00 91 [16:43:18]Write to MH i2c: E2 02 01 CF 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 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 E9 07 00 00 00 00 07 04 06 00 38 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 F0 00 00 00 F4 03 04 00 32 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 87 02 00 35 04 06 00 91 00 00 A5 [16:43:18]Write i2c OK [16:43:18]MH_I2C_Read... [16:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:18]Read from MH i2c: E2 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 03 00 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [16:43:18]RAPDU: 90 00 [16:43:18]wFMCommunicate OK [16:43:18]wFMCommunicate request_size=10 [16:43:18]MH_SAM_APDU [16:43:18]CAPDU: 80 0D 02 02 05 0E 86 A3 C3 40 [16:43:18]Write to MH i2c: E2 0D 00 D0 01 80 0D 02 02 05 00 0E 86 A3 C3 40 00 00 8F [16:43:18]Write i2c OK [16:43:18]MH_I2C_Read... [16:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:18]Read from MH i2c: E2 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 03 00 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [16:43:18]RAPDU: 90 00 [16:43:18]wFMCommunicate OK [16:43:18]wFMCommunicate request_size=4 [16:43:18]MH_SAM_APDU [16:43:18]CAPDU: 80 0D 03 02 [16:43:18]Write to MH i2c: E2 08 00 D1 01 80 0D 03 02 00 00 00 00 4D [16:43:18]Write i2c OK [16:43:18]MH_I2C_Read... [16:43:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:18]Read from MH i2c: E2 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 0B 00 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 0B 00 D1 01 00 98 A9 95 4A 05 FC AD B6 90 00 D2 [16:43:19]RAPDU: 98 A9 95 4A 05 FC AD B6 90 00 [16:43:19]wFMCommunicate OK [16:43:19]SAM_PROTO_SignData done [16:43:19]FM_MakeSignedData done [16:43:19]CreateOFDProtocolMessage [16:43:19]wFMCommunicate request_size=4 [16:43:19]MH_SAM_APDU [16:43:19]CAPDU: 80 11 00 00 [16:43:19]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [16:43:19]Write i2c OK [16:43:19]MH_I2C_Read... [16:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:19]Read from MH i2c: E2 [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: E2 17 00 [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [16:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:43:19]wFMCommunicate OK [16:43:19]CreateOFDProtocolMessage done [16:43:19]OFDSenderStorePacket 165758 [16:43:19]StoreOFDPacket docnum=165758 [16:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 30 07 01 B8 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 E9 07 00 00 00 00 07 04 06 00 38 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 F0 00 00 00 F4 03 04 00 32 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 87 02 00 35 04 06 00 91 0E 86 A3 C3 40 98 A9 95 4A 05 FC AD B6 [16:43:19]CheckFolder [16:43:19]dirname=/storage/ofd_packets [16:43:19]CheckFolder done [16:43:19]ProducePacketName [16:43:19]name=ofd_packets/00165758 [16:43:19]NVStorageSaveData ofd_packets/00165758 [16:43:19]File name is /storage/ofd_packets/00165758 [16:43:19]Write 301 bytes [16:43:19]NVStorageSaveData done [16:43:19]OFDSenderStorePacket done [16:43:19]KKMCreateOFDPacket done [16:43:19]NVStorageSaveData kkm_last_timestamp [16:43:19]File name is /storage/kkm_last_timestamp [16:43:19]Write 4 bytes [16:43:19]NVStorageSaveData done [16:43:19]ExternCall_PrintAddStr [16:43:19]wPrintStart [16:43:19]Write to MH i2c: 01 00 00 D3 01 D4 [16:43:19]Write i2c OK [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: 01 [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: 01 07 00 [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 FF 0F E9 [16:43:19]RasterBufferAndPrint [16:43:19]line Счет N : (1)220326 [16:43:19]line ИНН: 02508201610067 [16:43:19]line Контрольно-Кассовый Чек [16:43:19]line ПРОДАЖА [16:43:19]line ТРК (МРК, ГНК) : 33 [16:43:19]line Товар: 2710124130 [16:43:19]line Аи-92-К-5 [16:43:19]line 2.850 * 66.90 [16:43:19]line = 190.67 [16:43:19]line НДС 12% НСП 1% [16:43:19]line > о реализуемом товаре [16:43:19]line ОКРУГЛЕНИЕ: -0.67 [16:43:19]line ИТОГО: 190.00 [16:43:19]line Внесено: 190.00 [16:43:19]line СДАЧА: 0.00 [16:43:19]line НСП 1% : 1.69 [16:43:19]line НДС 12% : 20.25 [16:43:19]line Наличными: 190.00 [16:43:19]line Безнал.: 0.00 [16:43:19]line Место: АЗС № 161 "Партнер Нефть" [16:43:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:43:19]line СНО: Общий режим [16:43:19]line Чек 240 20.10.2024 16:43 [16:43:19]line Смена: 534 ФФД: 1.0 [16:43:19]line ЗНМ: 0300000104 [16:43:19]line РНМ: 0000000000091764 [16:43:19]line Версия ККМ: 001 [16:43:19]line ФМ: 0000000000871759 [16:43:19]line ФД: 165758 [16:43:19]line ФПД: 159491574448960 [16:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164330&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165758&fm=159491574448960&tin=02508201610067®Number=0000000000091764&sum=19000 [16:43:19]OFD Sender: Processing packet 165758 [packets to send 48, broken 47] [16:43:19]ProducePacketName [16:43:19]name=ofd_packets/00165758 [16:43:19]OFD Sender: To server: pG, [16:43:19]CommunicateWithHost lk.salyk.kg:30040 [16:43:19]ConnectInit lk.salyk.kg [16:43:19]written 0, free lines is 4095 [16:43:19]Connected sock=10 [16:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 30 07 01 B8 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 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 E9 07 00 00 00 00 07 04 06 00 38 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 F0 00 00 00 F4 03 04 00 32 33 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 87 02 00 35 04 06 00 91 0E 86 A3 C3 40 98 A9 95 4A 05 FC AD B6 [16:43:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 72 74 47 00 4A 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 31 37 35 39 10 04 04 00 7E 87 02 00 F4 03 04 00 A3 D9 14 67 B6 04 01 00 00 BA 09 6E 64 7F 03 7B D7 [16:43:19]CommunicateWithHost err = 0 [16:43:19]CheckOFDResponse [16:43:19]1017 (14) - 77093643461234 [16:43:19]1041 (16) - 0000000000871759 [16:43:19]1040 (4) - 165758 [16:43:19]1012 (4) - 20.10.2024 10:21 [16:43:19]1206 (1) - 0 [16:43:19]OFD Sender: Remove packet 165758 [16:43:19]ProducePacketName [16:43:19]name=ofd_packets/00165758 [16:43:19]NVStorageDeleteData [16:43:19]Write to MH i2c: 01 00 00 FE 01 FF [16:43:19]Write i2c OK [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: 01 [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: 01 07 00 [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: 01 07 00 FE 01 00 00 00 00 00 F9 0C 0B [16:43:19]RasterBufferAndPrint [16:43:19]line [16:43:19]line [16:43:19]line [16:43:19]line [16:43:19]line [16:43:19]written 0, free lines is 3347 [16:43:19]MH_Cut [16:43:19]Write to MH i2c: D1 01 00 05 02 01 D9 [16:43:19]Write i2c OK [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: D1 [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: D1 01 00 [16:43:19]MH_I2C_Read... [16:43:19]Read from MH i2c: D1 01 00 05 02 00 D8 [16:43:19]Write to MH i2c: 01 00 00 06 02 08 [16:43:19]Write i2c OK [16:43:19]MH_I2C_Read... [16:43:20]OFD Sender: No OFD packet to send [16:43:20]*** Cut start [16:43:20]*** Partial cut [16:43:20]*** CUTSNS_PIN = 1 [16:43:20]*** CUTSNS_PIN = 0 [16:43:20]*** Brake cut motor [16:43:21]Read from MH i2c: 01 [16:43:21]MH_I2C_Read... [16:43:21]*** Stop cut motor [16:43:21]*** Cut end [16:43:21]Read from MH i2c: 01 07 00 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 FF 0F 1D [16:43:21]process_action close_receipt done [16:43:21]requested_data is exist [16:43:21]produce_requested_data [16:43:21]requested_item fm.sn is exist - process it [16:43:21]wFMCommunicate request_size=4 [16:43:21]MH_SAM_APDU [16:43:21]CAPDU: 80 11 00 00 [16:43:21]Write to MH i2c: E2 08 00 07 02 80 11 00 00 00 00 00 00 83 [16:43:21]Write i2c OK [16:43:21]MH_I2C_Read... [16:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:21]Read from MH i2c: E2 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: E2 17 00 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: E2 17 00 07 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [16:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:43:21]wFMCommunicate OK [16:43:21]requested_item fd.num is exist - process it [16:43:21]SAM_PROTO_GetFieldsCounters [16:43:21]wFMCommunicate request_size=4 [16:43:21]MH_SAM_APDU [16:43:21]CAPDU: 80 13 00 00 [16:43:21]Write to MH i2c: E2 08 00 08 02 80 13 00 00 00 00 00 00 86 [16:43:21]Write i2c OK [16:43:21]MH_I2C_Read... [16:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:21]Read from MH i2c: E2 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: E2 62 00 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: E2 62 00 08 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 87 02 00 0E 04 04 00 16 02 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 9D [16:43: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 87 02 00 0E 04 04 00 16 02 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:43:21]wFMCommunicate OK [16:43:21]SAM_PROTO_GetFieldsCounters done [16:43:21]requested_item shift.num is exist - process it [16:43:21]requested_item shift.opened is exist - process it [16:43:21]req_shift_opened [16:43:21]FM_GetShiftState [16:43:21]SAM_PROTO_GetShiftState [16:43:21]wFMCommunicate request_size=4 [16:43:21]MH_SAM_APDU [16:43:21]CAPDU: 80 13 01 00 [16:43:21]Write to MH i2c: E2 08 00 09 02 80 13 01 00 00 00 00 00 88 [16:43:21]Write i2c OK [16:43:21]MH_I2C_Read... [16:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:21]Read from MH i2c: E2 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: E2 0E 00 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: E2 0E 00 09 02 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D0 [16:43:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:43:21]wFMCommunicate OK [16:43:21]SAM_PROTO_GetShiftState done [16:43:21]FM_GetShiftState done [16:43:21]req_shift_opened done [16:43:21]requested_item shift.open_date is exist - process it [16:43:21]req_shift_open_date [16:43:21]req_shift_open_date done [16:43:21]produce_requested_data done [16:43:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165758,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:43:21]process_action_free close_receipt [16:43:21]json_value_free [16:43:21]json_value_free done [16:43:21]process_json_proto returns [16:43:21]Send response to host [16:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165758,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:43:21]free response buf [16:43:21]execute_script done [16:43:21]execute_script returns [16:43:21]free content buf [16:43:21]Sock 9.Close socket [16:43:21]Sock 9.Thread stoped [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]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:52]accept exits with 7 [16:51:52]New connection [16:51:52]New thread 3066920292 created [16:51:52]Thread 3066776932 joined [16:51:52]Waiting for new connection... [16:51:52] Sock 7.Parse request [16:51:52]Sock 7.Check first char [16:51:52]Sock 7.First char is OK [16:51:52]request: POST /json_proto HTTP/1.0 [16:51:52]Method: POST [16:51:52]URL: /json_proto [16:51:52]Method is POST - this is cgi request [16:51:52]url: /json_proto [16:51:52]query_string will be loaded in cgi processing [16:51:52]execute_cgi json_proto POST (null) [16:51:52]execute_cgi path=json_proto method=POST [16:51:52]POST find Content-Length [16:51:52]Host: 172.17.53.195:8080 [16:51:52]Content-Length: 790 [16:51:52]Content-Type: application/json [16:51:52] [16:51:52]POST finish read [16:51:52]Found Content-Length = 790 [16:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 149.610, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:52]execute_script... [16:51: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)220327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 149.610, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:52]POST & json_proto [16:51:52]process_json_proto [16:51:52]json parsed OK: [16:51:52]protocol is kg_v1.0 [16:51:52]action value=close_receipt [16:51:52]process_action close_receipt [16:51:52]cmd_close_receipt [16:51:52]MH_GetDate [16:51:52]Write to MH i2c: F0 00 00 0A 02 FB [16:51:52]Write i2c OK [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: F0 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: F0 09 00 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: F0 09 00 0A 02 00 35 35 15 67 21 48 4A 65 02 [16:51:52]GetLastDocTimeStamp 1729442610 [16:51:52]current date 1729443125 [16:51:52]FM_GetShiftState [16:51:52]SAM_PROTO_GetShiftState [16:51:52]wFMCommunicate request_size=4 [16:51:52]MH_SAM_APDU [16:51:52]CAPDU: 80 13 01 00 [16:51:52]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [16:51:52]Write i2c OK [16:51:52]MH_I2C_Read... [16:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:52]Read from MH i2c: E2 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: E2 0E 00 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D2 [16:51:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:51:52]wFMCommunicate OK [16:51:52]SAM_PROTO_GetShiftState done [16:51:52]FM_GetShiftState done [16:51:52]opened in 1729384561 [16:51:52]opened+sec_in_day 1729470961 [16:51:52]quantity*price = 0 [16:51:52]sum+1 = 1 [16:51:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 241 20.10.2024 16:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165759 ФПД: 167807529046605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165205&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165759&fm=167807529046605&tin=02508201610067®Number=0000000000091764&sum=0 [16:51:53]StoreToDocumentArchive [16:51:53]shift 534 fd 165759 [16:51:53]save to /storage/0534/doc_00165759 [16:51:53]save last doc name /storage/0534/doc_00165759 to /storage/kkm_last_doc_name [16:51:53]save OK [16:51:53]Clear old archive folders... [16:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:51:53]tlvbuf is 01643A70 [16:51:53]SAM_PROTO_ClearQueue [16:51:53]wFMCommunicate request_size=4 [16:51:53]MH_SAM_APDU [16:51:53]CAPDU: 80 09 00 00 [16:51:53]Write to MH i2c: E2 08 00 18 02 80 09 00 00 00 00 00 00 8C [16:51:53]Write i2c OK [16:51:53]MH_I2C_Read... [16:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:53]Read from MH i2c: E2 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 03 00 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 03 00 18 02 00 90 00 8E [16:51:53]RAPDU: 90 00 [16:51:53]wFMCommunicate OK [16:51:53]SAM_PROTO_ClearQueue done [16:51:53]KKMCreateOFDPacket [16:51:53]OFDProtocolAddRootSTLVToBuf [16:51:53]FM_MakeSignedData [16:51:53]FM_MakeSignedData [16:51:53]SAM_PROTO_SignData [16:51:53]wFMCommunicate request_size=4 [16:51:53]MH_SAM_APDU [16:51:53]CAPDU: 80 0D 01 02 [16:51:53]Write to MH i2c: E2 08 00 19 02 80 0D 01 02 00 00 00 00 94 [16:51:53]Write i2c OK [16:51:53]MH_I2C_Read... [16:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:53]Read from MH i2c: E2 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 03 00 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 03 00 19 02 00 90 00 8F [16:51:53]RAPDU: 90 00 [16:51:53]wFMCommunicate OK [16:51:53]wFMCommunicate request_size=255 [16:51:53]MH_SAM_APDU [16:51:53]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 6A 48 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 35 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 87 02 00 35 04 06 00 98 9E BC 28 [16:51:53]Write to MH i2c: E2 02 01 1A 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 6A 48 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 35 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 87 02 00 35 04 06 00 98 9E BC 28 00 00 BD [16:51:53]Write i2c OK [16:51:53]MH_I2C_Read... [16:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:53]Read from MH i2c: E2 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 03 00 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [16:51:53]RAPDU: 90 00 [16:51:53]wFMCommunicate OK [16:51:53]wFMCommunicate request_size=7 [16:51:53]MH_SAM_APDU [16:51:53]CAPDU: 80 0D 02 02 02 D2 4D [16:51:53]Write to MH i2c: E2 0A 00 1B 02 80 0D 02 02 02 00 D2 4D 00 00 BA [16:51:53]Write i2c OK [16:51:53]MH_I2C_Read... [16:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:53]Read from MH i2c: E2 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 03 00 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [16:51:53]RAPDU: 90 00 [16:51:53]wFMCommunicate OK [16:51:53]wFMCommunicate request_size=4 [16:51:53]MH_SAM_APDU [16:51:53]CAPDU: 80 0D 03 02 [16:51:53]Write to MH i2c: E2 08 00 1C 02 80 0D 03 02 00 00 00 00 99 [16:51:53]Write i2c OK [16:51:53]MH_I2C_Read... [16:51:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:53]Read from MH i2c: E2 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 0B 00 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 0B 00 1C 02 00 B8 C6 A8 99 9C 1C 3A AC 90 00 F7 [16:51:53]RAPDU: B8 C6 A8 99 9C 1C 3A AC 90 00 [16:51:53]wFMCommunicate OK [16:51:53]SAM_PROTO_SignData done [16:51:53]FM_MakeSignedData done [16:51:53]CreateOFDProtocolMessage [16:51:53]wFMCommunicate request_size=4 [16:51:53]MH_SAM_APDU [16:51:53]CAPDU: 80 11 00 00 [16:51:53]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [16:51:53]Write i2c OK [16:51:53]MH_I2C_Read... [16:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:54]Read from MH i2c: E2 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: E2 17 00 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [16:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:51:54]wFMCommunicate OK [16:51:54]CreateOFDProtocolMessage done [16:51:54]OFDSenderStorePacket 165759 [16:51:54]StoreOFDPacket docnum=165759 [16:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9B F1 04 01 C9 9F 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 6A 48 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 35 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 87 02 00 35 04 06 00 98 9E BC 28 D2 4D B8 C6 A8 99 9C 1C 3A AC [16:51:54]CheckFolder [16:51:54]dirname=/storage/ofd_packets [16:51:54]CheckFolder done [16:51:54]ProducePacketName [16:51:54]name=ofd_packets/00165759 [16:51:54]NVStorageSaveData ofd_packets/00165759 [16:51:54]File name is /storage/ofd_packets/00165759 [16:51:54]Write 298 bytes [16:51:54]NVStorageSaveData done [16:51:54]OFDSenderStorePacket done [16:51:54]KKMCreateOFDPacket done [16:51:54]NVStorageSaveData kkm_last_timestamp [16:51:54]File name is /storage/kkm_last_timestamp [16:51:54]Write 4 bytes [16:51:54]NVStorageSaveData done [16:51:54]ExternCall_PrintAddStr [16:51:54]wPrintStart [16:51:54]Write to MH i2c: 01 00 00 1E 02 20 [16:51:54]Write i2c OK [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: 01 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: 01 07 00 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [16:51:54]RasterBufferAndPrint [16:51:54]line Счет N : (1)220327 [16:51:54]line ИНН: 02508201610067 [16:51:54]line Контрольно-Кассовый Чек [16:51:54]line ПРОДАЖА [16:51:54]line ТРК (МРК, ГНК) : 41 [16:51:54]line Товар: 2710194210 [16:51:54]line ДТ-К-5 [16:51:54]line 149.610 * 0.00 [16:51:54]line = 0.00 [16:51:54]line НДС 12% НСП 1% [16:51:54]line > о реализуемом товаре [16:51:54]line ИТОГО: 0.00 [16:51:54]line НСП 1% : 0.00 [16:51:54]line НДС 12% : 0.00 [16:51:54]line Наличными: 0.00 [16:51:54]line Безнал.: 0.00 [16:51:54]line Место: АЗС № 161 "Партнер Нефть" [16:51:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:51:54]line СНО: Общий режим [16:51:54]line Чек 241 20.10.2024 16:52 [16:51:54]line Смена: 534 ФФД: 1.0 [16:51:54]line ЗНМ: 0300000104 [16:51:54]line РНМ: 0000000000091764 [16:51:54]line Версия ККМ: 001 [16:51:54]line Талоны: Топливная Карта [16:51:54]line 38866 [16:51:54]line ФМ: 0000000000871759 [16:51:54]line ФД: 165759 [16:51:54]line ФПД: 167807529046605 [16:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165205&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165759&fm=167807529046605&tin=02508201610067®Number=0000000000091764&sum=0 [16:51:54]OFD Sender: Processing packet 165759 [packets to send 48, broken 47] [16:51:54]ProducePacketName [16:51:54]name=ofd_packets/00165759 [16:51:54]OFD Sender: To server: pG, [16:51:54]CommunicateWithHost lk.salyk.kg:30040 [16:51:54]ConnectInit lk.salyk.kg [16:51:54]written 0, free lines is 4095 [16:51:54]Connected sock=10 [16:51:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9B F1 04 01 C9 9F 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 6A 48 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 35 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 87 02 00 35 04 06 00 98 9E BC 28 D2 4D B8 C6 A8 99 9C 1C 3A AC [16:51:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0D 31 47 00 B9 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 31 37 35 39 10 04 04 00 7F 87 02 00 F4 03 04 00 A7 DB 14 67 B6 04 01 00 00 48 35 BF 32 C5 77 34 57 [16:51:54]CommunicateWithHost err = 0 [16:51:54]CheckOFDResponse [16:51:54]1017 (14) - 77093643461234 [16:51:54]1041 (16) - 0000000000871759 [16:51:54]1040 (4) - 165759 [16:51:54]1012 (4) - 20.10.2024 10:29 [16:51:54]1206 (1) - 0 [16:51:54]OFD Sender: Remove packet 165759 [16:51:54]ProducePacketName [16:51:54]name=ofd_packets/00165759 [16:51:54]NVStorageDeleteData [16:51:54]Write to MH i2c: 01 00 00 48 02 4A [16:51:54]Write i2c OK [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: 01 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: 01 07 00 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: 01 07 00 48 02 00 00 00 00 00 DC 0C 39 [16:51:54]RasterBufferAndPrint [16:51:54]line [16:51:54]line [16:51:54]line [16:51:54]line [16:51:54]line [16:51:54]written 0, free lines is 3300 [16:51:54]MH_Cut [16:51:54]Write to MH i2c: D1 01 00 4F 02 01 23 [16:51:54]Write i2c OK [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: D1 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: D1 01 00 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: D1 01 00 4F 02 00 22 [16:51:54]Write to MH i2c: 01 00 00 50 02 52 [16:51:54]Write i2c OK [16:51:54]MH_I2C_Read... [16:51:55]OFD Sender: No OFD packet to send [16:51:55]*** Cut start [16:51:55]*** Partial cut [16:51:55]*** CUTSNS_PIN = 1 [16:51:55]*** CUTSNS_PIN = 0 [16:51:55]*** Brake cut motor [16:51:56]Read from MH i2c: 01 [16:51:56]MH_I2C_Read... [16:51:56]*** Stop cut motor [16:51:56]*** Cut end [16:51:56]Read from MH i2c: 01 07 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 FF 0F 67 [16:51:56]process_action close_receipt done [16:51:56]requested_data is exist [16:51:56]produce_requested_data [16:51:56]requested_item fm.sn is exist - process it [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 11 00 00 [16:51:56]Write to MH i2c: E2 08 00 51 02 80 11 00 00 00 00 00 00 CD [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 17 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 17 00 51 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 25 [16:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:51:56]wFMCommunicate OK [16:51:56]requested_item fd.num is exist - process it [16:51:56]SAM_PROTO_GetFieldsCounters [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 13 00 00 [16:51:56]Write to MH i2c: E2 08 00 52 02 80 13 00 00 00 00 00 00 D0 [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 62 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 62 00 52 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 87 02 00 0E 04 04 00 16 02 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 EB [16: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 87 02 00 0E 04 04 00 16 02 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 [16:51:56]wFMCommunicate OK [16:51:56]SAM_PROTO_GetFieldsCounters done [16:51:56]requested_item shift.num is exist - process it [16:51:56]requested_item shift.opened is exist - process it [16:51:56]req_shift_opened [16:51:56]FM_GetShiftState [16:51:56]SAM_PROTO_GetShiftState [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 13 01 00 [16:51:56]Write to MH i2c: E2 08 00 53 02 80 13 01 00 00 00 00 00 D2 [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 0E 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 0E 00 53 02 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1A [16:51:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:51:56]wFMCommunicate OK [16:51:56]SAM_PROTO_GetShiftState done [16:51:56]FM_GetShiftState done [16:51:56]req_shift_opened done [16:51:56]requested_item shift.open_date is exist - process it [16:51:56]req_shift_open_date [16:51:56]req_shift_open_date done [16:51:56]produce_requested_data done [16:51:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165759,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:51:56]process_action_free close_receipt [16:51:56]json_value_free [16:51:56]json_value_free done [16:51:56]process_json_proto returns [16:51:56]Send response to host [16:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165759,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:51:56]free response buf [16:51:56]execute_script done [16:51:56]execute_script returns [16:51:56]free content buf [16:51:56]Sock 7.Close socket [16:51:56]Sock 7.Thread stoped [16:51:59]accept exits with 9 [16:51:59]New connection [16:51:59]New thread 3066776932 created [16:51:59]Thread 3066920292 joined [16:51:59]Waiting for new connection... [16:51:59] Sock 9.Parse request [16:51:59]Sock 9.Check first char [16:51:59]Sock 9.First char is OK [16:51:59]request: POST /json_proto HTTP/1.0 [16:51:59]Method: POST [16:51:59]URL: /json_proto [16:51:59]Method is POST - this is cgi request [16:51:59]url: /json_proto [16:51:59]query_string will be loaded in cgi processing [16:51:59]execute_cgi json_proto POST (null) [16:51:59]execute_cgi path=json_proto method=POST [16:51:59]POST find Content-Length [16:51:59]Host: 172.17.53.195:8080 [16:51:59]Content-Length: 789 [16:51:59]Content-Type: application/json [16:51:59] [16:51:59]POST finish read [16:51:59]Found Content-Length = 789 [16:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220328", "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" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:59]execute_script... [16:51: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)220328", "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" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:59]POST & json_proto [16:51:59]process_json_proto [16:51:59]json parsed OK: [16:51:59]protocol is kg_v1.0 [16:51:59]action value=close_receipt [16:51:59]process_action close_receipt [16:51:59]cmd_close_receipt [16:51:59]MH_GetDate [16:51:59]Write to MH i2c: F0 00 00 54 02 45 [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: F0 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: F0 09 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: F0 09 00 54 02 00 3C 35 15 67 21 48 4A 65 53 [16:51:59]GetLastDocTimeStamp 1729443125 [16:51:59]current date 1729443132 [16:51:59]FM_GetShiftState [16:51:59]SAM_PROTO_GetShiftState [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 13 01 00 [16:51:59]Write to MH i2c: E2 08 00 55 02 80 13 01 00 00 00 00 00 D4 [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 0E 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 0E 00 55 02 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1C [16:51:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:51:59]wFMCommunicate OK [16:51:59]SAM_PROTO_GetShiftState done [16:51:59]FM_GetShiftState done [16:51:59]opened in 1729384561 [16:51:59]opened+sec_in_day 1729470961 [16:51:59]quantity*price = 0 [16:51:59]sum+1 = 1 [16:51:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 242 20.10.2024 16:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165760 ФПД: 87501760866428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165212&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165760&fm=87501760866428&tin=02508201610067®Number=0000000000091764&sum=0 [16:52:00]StoreToDocumentArchive [16:52:00]shift 534 fd 165760 [16:52:00]save to /storage/0534/doc_00165760 [16:52:00]save last doc name /storage/0534/doc_00165760 to /storage/kkm_last_doc_name [16:52:00]save OK [16:52:00]Clear old archive folders... [16:52:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:52:00]tlvbuf is 0161BF80 [16:52:00]SAM_PROTO_ClearQueue [16:52:00]wFMCommunicate request_size=4 [16:52:00]MH_SAM_APDU [16:52:00]CAPDU: 80 09 00 00 [16:52:00]Write to MH i2c: E2 08 00 62 02 80 09 00 00 00 00 00 00 D6 [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:00]Read from MH i2c: E2 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [16:52:00]RAPDU: 90 00 [16:52:00]wFMCommunicate OK [16:52:00]SAM_PROTO_ClearQueue done [16:52:00]KKMCreateOFDPacket [16:52:00]OFDProtocolAddRootSTLVToBuf [16:52:00]FM_MakeSignedData [16:52:00]FM_MakeSignedData [16:52:00]SAM_PROTO_SignData [16:52:00]wFMCommunicate request_size=4 [16:52:00]MH_SAM_APDU [16:52:00]CAPDU: 80 0D 01 02 [16:52:00]Write to MH i2c: E2 08 00 63 02 80 0D 01 02 00 00 00 00 DE [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:00]Read from MH i2c: E2 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [16:52:00]RAPDU: 90 00 [16:52:00]wFMCommunicate OK [16:52:00]wFMCommunicate request_size=255 [16:52:00]MH_SAM_APDU [16:52: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3C 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 87 02 00 35 04 06 00 4F 95 17 5F [16:52:00]Write to MH i2c: E2 02 01 64 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3C 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 87 02 00 35 04 06 00 4F 95 17 5F 00 00 8C [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:00]Read from MH i2c: E2 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [16:52:00]RAPDU: 90 00 [16:52:00]wFMCommunicate OK [16:52:00]wFMCommunicate request_size=7 [16:52:00]MH_SAM_APDU [16:52:00]CAPDU: 80 0D 02 02 02 A8 7C [16:52:00]Write to MH i2c: E2 0A 00 65 02 80 0D 02 02 02 00 A8 7C 00 00 09 [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:00]Read from MH i2c: E2 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [16:52:00]RAPDU: 90 00 [16:52:00]wFMCommunicate OK [16:52:00]wFMCommunicate request_size=4 [16:52:00]MH_SAM_APDU [16:52:00]CAPDU: 80 0D 03 02 [16:52:00]Write to MH i2c: E2 08 00 66 02 80 0D 03 02 00 00 00 00 E3 [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:00]Read from MH i2c: E2 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 0B 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 0B 00 66 02 00 92 23 DA 33 88 9E F6 81 90 00 43 [16:52:00]RAPDU: 92 23 DA 33 88 9E F6 81 90 00 [16:52:00]wFMCommunicate OK [16:52:00]SAM_PROTO_SignData done [16:52:00]FM_MakeSignedData done [16:52:00]CreateOFDProtocolMessage [16:52:00]wFMCommunicate request_size=4 [16:52:00]MH_SAM_APDU [16:52:00]CAPDU: 80 11 00 00 [16:52:00]Write to MH i2c: E2 08 00 67 02 80 11 00 00 00 00 00 00 E3 [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:00]Read from MH i2c: E2 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 17 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 17 00 67 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3B [16:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:00]wFMCommunicate OK [16:52:00]CreateOFDProtocolMessage done [16:52:00]OFDSenderStorePacket 165760 [16:52:00]StoreOFDPacket docnum=165760 [16:52:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BB 17 04 01 AC 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3C 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 87 02 00 35 04 06 00 4F 95 17 5F A8 7C 92 23 DA 33 88 9E F6 81 [16:52:00]CheckFolder [16:52:00]dirname=/storage/ofd_packets [16:52:00]CheckFolder done [16:52:00]ProducePacketName [16:52:00]name=ofd_packets/00165760 [16:52:00]NVStorageSaveData ofd_packets/00165760 [16:52:00]File name is /storage/ofd_packets/00165760 [16:52:00]Write 298 bytes [16:52:00]NVStorageSaveData done [16:52:00]OFDSenderStorePacket done [16:52:00]KKMCreateOFDPacket done [16:52:00]NVStorageSaveData kkm_last_timestamp [16:52:00]File name is /storage/kkm_last_timestamp [16:52:00]Write 4 bytes [16:52:00]NVStorageSaveData done [16:52:00]ExternCall_PrintAddStr [16:52:00]wPrintStart [16:52:00]Write to MH i2c: 01 00 00 68 02 6A [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: 01 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: 01 07 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [16:52:00]RasterBufferAndPrint [16:52:00]line Счет N : (1)220328 [16:52:00]line ИНН: 02508201610067 [16:52:00]line Контрольно-Кассовый Чек [16:52:00]line ПРОДАЖА [16:52:00]line ТРК (МРК, ГНК) : 21 [16:52:00]line Товар: 2710194210 [16:52:00]line ДТ-К-5 [16:52:00]line 26.250 * 0.00 [16:52:00]line = 0.00 [16:52:00]line НДС 12% НСП 1% [16:52:00]line > о реализуемом товаре [16:52:00]line ИТОГО: 0.00 [16:52:00]line НСП 1% : 0.00 [16:52:00]line НДС 12% : 0.00 [16:52:00]line Наличными: 0.00 [16:52:00]line Безнал.: 0.00 [16:52:00]line Место: АЗС № 161 "Партнер Нефть" [16:52:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:52:00]line СНО: Общий режим [16:52:00]line Чек 242 20.10.2024 16:52 [16:52:00]line Смена: 534 ФФД: 1.0 [16:52:00]line ЗНМ: 0300000104 [16:52:00]line РНМ: 0000000000091764 [16:52:00]line Версия ККМ: 001 [16:52:00]line Талоны: Топливная Карта [16:52:00]line 38866 [16:52:00]line ФМ: 0000000000871759 [16:52:00]line ФД: 165760 [16:52:00]line ФПД: 87501760866428 [16:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165212&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165760&fm=87501760866428&tin=02508201610067®Number=0000000000091764&sum=0 [16:52:00]OFD Sender: Processing packet 165760 [packets to send 48, broken 47] [16:52:00]ProducePacketName [16:52:00]name=ofd_packets/00165760 [16:52:00]OFD Sender: To server: pG, [16:52:00]CommunicateWithHost lk.salyk.kg:30040 [16:52:00]ConnectInit lk.salyk.kg [16:52:00]written 0, free lines is 4095 [16:52:00]Connected sock=10 [16:52:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BB 17 04 01 AC 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3C 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 87 02 00 35 04 06 00 4F 95 17 5F A8 7C 92 23 DA 33 88 9E F6 81 [16:52:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 97 8C 47 00 FC 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 31 37 35 39 10 04 04 00 80 87 02 00 F4 03 04 00 AD DB 14 67 B6 04 01 00 00 50 BA 7F A4 77 E2 3A C2 [16:52:01]CommunicateWithHost err = 0 [16:52:01]CheckOFDResponse [16:52:01]1017 (14) - 77093643461234 [16:52:01]1041 (16) - 0000000000871759 [16:52:01]1040 (4) - 165760 [16:52:01]1012 (4) - 20.10.2024 10:30 [16:52:01]1206 (1) - 0 [16:52:01]OFD Sender: Remove packet 165760 [16:52:01]ProducePacketName [16:52:01]name=ofd_packets/00165760 [16:52:01]NVStorageDeleteData [16:52:01]Write to MH i2c: 01 00 00 92 02 94 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: 01 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: 01 07 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: 01 07 00 92 02 00 00 00 00 00 EA 0C 91 [16:52:01]RasterBufferAndPrint [16:52:01]line [16:52:01]line [16:52:01]line [16:52:01]line [16:52:01]line [16:52:01]written 0, free lines is 3316 [16:52:01]MH_Cut [16:52:01]Write to MH i2c: D1 01 00 99 02 01 6D [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: D1 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: D1 01 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: D1 01 00 99 02 00 6C [16:52:01]Write to MH i2c: 01 00 00 9A 02 9C [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]OFD Sender: No OFD packet to send [16:52:02]*** Cut start [16:52:02]*** Partial cut [16:52:02]*** CUTSNS_PIN = 1 [16:52:02]*** CUTSNS_PIN = 0 [16:52:02]*** Brake cut motor [16:52:02]Read from MH i2c: 01 [16:52:02]MH_I2C_Read... [16:52:02]*** Stop cut motor [16:52:02]*** Cut end [16:52:02]Read from MH i2c: 01 07 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 FF 0F B1 [16:52:02]process_action close_receipt done [16:52:02]requested_data is exist [16:52:02]produce_requested_data [16:52:02]requested_item fm.sn is exist - process it [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 11 00 00 [16:52:02]Write to MH i2c: E2 08 00 9B 02 80 11 00 00 00 00 00 00 17 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 17 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 17 00 9B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6F [16:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:02]wFMCommunicate OK [16:52:02]requested_item fd.num is exist - process it [16:52:02]SAM_PROTO_GetFieldsCounters [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 13 00 00 [16:52:02]Write to MH i2c: E2 08 00 9C 02 80 13 00 00 00 00 00 00 1A [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 62 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 62 00 9C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 87 02 00 0E 04 04 00 16 02 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 39 [16:52:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 87 02 00 0E 04 04 00 16 02 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 [16:52:02]wFMCommunicate OK [16:52:02]SAM_PROTO_GetFieldsCounters done [16:52:02]requested_item shift.num is exist - process it [16:52:02]requested_item shift.opened is exist - process it [16:52:02]req_shift_opened [16:52:02]FM_GetShiftState [16:52:02]SAM_PROTO_GetShiftState [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 13 01 00 [16:52:02]Write to MH i2c: E2 08 00 9D 02 80 13 01 00 00 00 00 00 1C [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 0E 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 0E 00 9D 02 00 09 00 01 71 50 14 67 00 00 00 00 90 00 64 [16:52:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:52:02]wFMCommunicate OK [16:52:02]SAM_PROTO_GetShiftState done [16:52:02]FM_GetShiftState done [16:52:02]req_shift_opened done [16:52:02]requested_item shift.open_date is exist - process it [16:52:02]req_shift_open_date [16:52:02]req_shift_open_date done [16:52:02]produce_requested_data done [16:52:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165760,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:52:02]process_action_free close_receipt [16:52:02]json_value_free [16:52:02]json_value_free done [16:52:02]process_json_proto returns [16:52:02]Send response to host [16:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165760,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:52:02]free response buf [16:52:02]execute_script done [16:52:02]execute_script returns [16:52:02]free content buf [16:52:02]Sock 9.Close socket [16:52:02]Sock 9.Thread stoped [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:27]accept exits with 7 [16:52:27]New connection [16:52:27]New thread 3066920292 created [16:52:27]Thread 3066776932 joined [16:52:27]Waiting for new connection... [16:52:27] Sock 7.Parse request [16:52:27]Sock 7.Check first char [16:52:27]Sock 7.First char is OK [16:52:27]request: POST /json_proto HTTP/1.0 [16:52:27]Method: POST [16:52:27]URL: /json_proto [16:52:27]Method is POST - this is cgi request [16:52:27]url: /json_proto [16:52:27]query_string will be loaded in cgi processing [16:52:27]execute_cgi json_proto POST (null) [16:52:27]execute_cgi path=json_proto method=POST [16:52:27]POST find Content-Length [16:52:27]Host: 172.17.53.195:8080 [16:52:27]Content-Length: 677 [16:52:27]Content-Type: application/json [16:52:27] [16:52:27]POST finish read [16:52:27]Found Content-Length = 677 [16:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:27]execute_script... [16: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)220329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:27]POST & json_proto [16:52:27]process_json_proto [16:52:27]json parsed OK: [16:52:27]protocol is kg_v1.0 [16:52:27]action value=close_receipt [16:52:27]process_action close_receipt [16:52:27]cmd_close_receipt [16:52:27]MH_GetDate [16:52:27]Write to MH i2c: F0 00 00 9E 02 8F [16:52:27]Write i2c OK [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: F0 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: F0 09 00 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: F0 09 00 9E 02 00 58 35 15 67 21 48 4A 65 B9 [16:52:27]GetLastDocTimeStamp 1729443132 [16:52:27]current date 1729443160 [16:52:27]FM_GetShiftState [16:52:27]SAM_PROTO_GetShiftState [16:52:27]wFMCommunicate request_size=4 [16:52:27]MH_SAM_APDU [16:52:27]CAPDU: 80 13 01 00 [16:52:27]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [16:52:27]Write i2c OK [16:52:27]MH_I2C_Read... [16:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:27]Read from MH i2c: E2 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: E2 0E 00 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 71 50 14 67 00 00 00 00 90 00 66 [16:52:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:52:27]wFMCommunicate OK [16:52:27]SAM_PROTO_GetShiftState done [16:52:27]FM_GetShiftState done [16:52:27]opened in 1729384561 [16:52:27]opened+sec_in_day 1729470961 [16:52:27]quantity*price = 52048 [16:52:27]sum+1 = 52049 [16:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 243 20.10.2024 16:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165761 ФПД: 203855038864071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165241&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165761&fm=203855038864071&tin=02508201610067®Number=0000000000091764&sum=52000 [16:52:28]StoreToDocumentArchive [16:52:28]shift 534 fd 165761 [16:52:28]save to /storage/0534/doc_00165761 [16:52:28]save last doc name /storage/0534/doc_00165761 to /storage/kkm_last_doc_name [16:52:28]save OK [16:52:28]Clear old archive folders... [16:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:28]tlvbuf is 01616620 [16:52:28]SAM_PROTO_ClearQueue [16:52:28]wFMCommunicate request_size=4 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 09 00 00 [16:52:28]Write to MH i2c: E2 08 00 AC 02 80 09 00 00 00 00 00 00 20 [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [16:52:28]RAPDU: 90 00 [16:52:28]wFMCommunicate OK [16:52:28]SAM_PROTO_ClearQueue done [16:52:28]KKMCreateOFDPacket [16:52:28]OFDProtocolAddRootSTLVToBuf [16:52:28]FM_MakeSignedData [16:52:28]FM_MakeSignedData [16:52:28]SAM_PROTO_SignData [16:52:28]wFMCommunicate request_size=4 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 0D 01 02 [16:52:28]Write to MH i2c: E2 08 00 AD 02 80 0D 01 02 00 00 00 00 28 [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [16:52:28]RAPDU: 90 00 [16:52:28]wFMCommunicate OK [16:52:28]wFMCommunicate request_size=255 [16:52:28]MH_SAM_APDU [16: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 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 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 59 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 87 02 00 35 04 06 00 B9 [16:52:28]Write to MH i2c: E2 02 01 AE 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 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 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 59 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 87 02 00 35 04 06 00 B9 00 00 3A [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:29]Read from MH i2c: E2 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: E2 03 00 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [16:52:29]RAPDU: 90 00 [16:52:29]wFMCommunicate OK [16:52:29]wFMCommunicate request_size=10 [16:52:29]MH_SAM_APDU [16:52:29]CAPDU: 80 0D 02 02 05 67 B3 2D 5A C7 [16:52:29]Write to MH i2c: E2 0D 00 AF 02 80 0D 02 02 05 00 67 B3 2D 5A C7 00 00 9D [16:52:29]Write i2c OK [16:52:29]MH_I2C_Read... [16:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:29]Read from MH i2c: E2 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: E2 03 00 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [16:52:29]RAPDU: 90 00 [16:52:29]wFMCommunicate OK [16:52:29]wFMCommunicate request_size=4 [16:52:29]MH_SAM_APDU [16:52:29]CAPDU: 80 0D 03 02 [16:52:29]Write to MH i2c: E2 08 00 B0 02 80 0D 03 02 00 00 00 00 2D [16:52:29]Write i2c OK [16:52:29]MH_I2C_Read... [16:52:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:29]Read from MH i2c: E2 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: E2 0B 00 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: E2 0B 00 B0 02 00 81 5B A6 A4 95 71 C8 6B 90 00 8D [16:52:29]RAPDU: 81 5B A6 A4 95 71 C8 6B 90 00 [16:52:29]wFMCommunicate OK [16:52:29]SAM_PROTO_SignData done [16:52:29]FM_MakeSignedData done [16:52:29]CreateOFDProtocolMessage [16:52:29]wFMCommunicate request_size=4 [16:52:29]MH_SAM_APDU [16:52:29]CAPDU: 80 11 00 00 [16:52:29]Write to MH i2c: E2 08 00 B1 02 80 11 00 00 00 00 00 00 2D [16:52:29]Write i2c OK [16:52:29]MH_I2C_Read... [16:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:29]Read from MH i2c: E2 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: E2 17 00 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: E2 17 00 B1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [16:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:29]wFMCommunicate OK [16:52:29]CreateOFDProtocolMessage done [16:52:29]OFDSenderStorePacket 165761 [16:52:29]StoreOFDPacket docnum=165761 [16:52:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D8 88 07 01 98 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 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 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 59 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 87 02 00 35 04 06 00 B9 67 B3 2D 5A C7 81 5B A6 A4 95 71 C8 6B [16:52:29]CheckFolder [16:52:29]dirname=/storage/ofd_packets [16:52:29]CheckFolder done [16:52:29]ProducePacketName [16:52:29]name=ofd_packets/00165761 [16:52:29]NVStorageSaveData ofd_packets/00165761 [16:52:29]File name is /storage/ofd_packets/00165761 [16:52:29]Write 301 bytes [16:52:29]NVStorageSaveData done [16:52:29]OFDSenderStorePacket done [16:52:29]KKMCreateOFDPacket done [16:52:29]NVStorageSaveData kkm_last_timestamp [16:52:29]File name is /storage/kkm_last_timestamp [16:52:29]Write 4 bytes [16:52:29]NVStorageSaveData done [16:52:29]ExternCall_PrintAddStr [16:52:29]wPrintStart [16:52:29]Write to MH i2c: 01 00 00 B2 02 B4 [16:52:29]Write i2c OK [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: 01 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: 01 07 00 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [16:52:29]RasterBufferAndPrint [16:52:29]line Счет N : (1)220329 [16:52:29]line ИНН: 02508201610067 [16:52:29]line Контрольно-Кассовый Чек [16:52:29]line ПРОДАЖА [16:52:29]line ТРК (МРК, ГНК) : 33 [16:52:29]line Товар: 2710124130 [16:52:29]line Аи-92-К-5 [16:52:29]line 7.780 * 66.90 [16:52:29]line = 520.48 [16:52:29]line НДС 12% НСП 1% [16:52:29]line > о реализуемом товаре [16:52:29]line ОКРУГЛЕНИЕ: -0.48 [16:52:29]line ИТОГО: 520.00 [16:52:29]line Внесено: 520.00 [16:52:29]line СДАЧА: 0.00 [16:52:29]line НСП 1% : 4.61 [16:52:29]line НДС 12% : 55.27 [16:52:29]line Наличными: 520.00 [16:52:29]line Безнал.: 0.00 [16:52:29]line Место: АЗС № 161 "Партнер Нефть" [16:52:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:52:29]line СНО: Общий режим [16:52:29]line Чек 243 20.10.2024 16:52 [16:52:29]line Смена: 534 ФФД: 1.0 [16:52:29]line ЗНМ: 0300000104 [16:52:29]line РНМ: 0000000000091764 [16:52:29]line Версия ККМ: 001 [16:52:29]line ФМ: 0000000000871759 [16:52:29]line ФД: 165761 [16:52:29]line ФПД: 203855038864071 [16:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165241&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165761&fm=203855038864071&tin=02508201610067®Number=0000000000091764&sum=52000 [16:52:29]OFD Sender: Processing packet 165761 [packets to send 48, broken 47] [16:52:29]ProducePacketName [16:52:29]name=ofd_packets/00165761 [16:52:29]OFD Sender: To server: pG, [16:52:29]CommunicateWithHost lk.salyk.kg:30040 [16:52:29]ConnectInit lk.salyk.kg [16:52:29]written 0, free lines is 4095 [16:52:29]Connected sock=10 [16: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 31 37 35 39 0F 01 00 00 D8 88 07 01 98 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 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 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 59 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 87 02 00 35 04 06 00 B9 67 B3 2D 5A C7 81 5B A6 A4 95 71 C8 6B [16:52:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BF BA 47 00 CF EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 87 02 00 F4 03 04 00 CA DB 14 67 B6 04 01 00 00 A1 A3 8B E7 88 E8 48 F9 [16:52:30]CommunicateWithHost err = 0 [16:52:30]CheckOFDResponse [16:52:30]1017 (14) - 77093643461234 [16:52:30]1041 (16) - 0000000000871759 [16:52:30]1040 (4) - 165761 [16:52:30]1012 (4) - 20.10.2024 10:30 [16:52:30]1206 (1) - 0 [16:52:30]OFD Sender: Remove packet 165761 [16:52:30]ProducePacketName [16:52:30]name=ofd_packets/00165761 [16:52:30]NVStorageDeleteData [16:52:30]Write to MH i2c: 01 00 00 DD 02 DF [16:52:30]Write i2c OK [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: 01 [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: 01 07 00 [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 D4 0C C6 [16:52:30]RasterBufferAndPrint [16:52:30]line [16:52:30]line [16:52:30]line [16:52:30]line [16:52:30]line [16:52:30]written 0, free lines is 3292 [16:52:30]MH_Cut [16:52:30]Write to MH i2c: D1 01 00 E4 02 01 B8 [16:52:30]Write i2c OK [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: D1 [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: D1 01 00 [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: D1 01 00 E4 02 00 B7 [16:52:30]Write to MH i2c: 01 00 00 E5 02 E7 [16:52:30]Write i2c OK [16:52:30]MH_I2C_Read... [16:52:30]OFD Sender: No OFD packet to send [16:52:30]*** Cut start [16:52:30]*** Partial cut [16:52:30]*** CUTSNS_PIN = 1 [16:52:31]*** CUTSNS_PIN = 0 [16:52:31]*** Brake cut motor [16:52:31]Read from MH i2c: 01 [16:52:31]MH_I2C_Read... [16:52:31]*** Stop cut motor [16:52:31]*** Cut end [16:52:31]Read from MH i2c: 01 07 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 FF 0F FC [16:52:31]process_action close_receipt done [16:52:31]requested_data is exist [16:52:31]produce_requested_data [16:52:31]requested_item fm.sn is exist - process it [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 11 00 00 [16:52:31]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 17 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BA [16:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:31]wFMCommunicate OK [16:52:31]requested_item fd.num is exist - process it [16:52:31]SAM_PROTO_GetFieldsCounters [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 13 00 00 [16:52:31]Write to MH i2c: E2 08 00 E7 02 80 13 00 00 00 00 00 00 65 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 62 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 62 00 E7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 87 02 00 0E 04 04 00 16 02 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 88 [16: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 87 02 00 0E 04 04 00 16 02 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 [16:52:31]wFMCommunicate OK [16:52:31]SAM_PROTO_GetFieldsCounters done [16:52:31]requested_item shift.num is exist - process it [16:52:31]requested_item shift.opened is exist - process it [16:52:31]req_shift_opened [16:52:31]FM_GetShiftState [16:52:31]SAM_PROTO_GetShiftState [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 13 01 00 [16:52:31]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 0E 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AF [16:52:31]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:52:31]wFMCommunicate OK [16:52:31]SAM_PROTO_GetShiftState done [16:52:31]FM_GetShiftState done [16:52:31]req_shift_opened done [16:52:31]requested_item shift.open_date is exist - process it [16:52:31]req_shift_open_date [16:52:31]req_shift_open_date done [16:52:31]produce_requested_data done [16:52:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165761,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:52:31]process_action_free close_receipt [16:52:31]json_value_free [16:52:31]json_value_free done [16:52:31]process_json_proto returns [16:52:31]Send response to host [16:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165761,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:52:31]free response buf [16:52:31]execute_script done [16:52:31]execute_script returns [16:52:31]free content buf [16:52:31]Sock 7.Close socket [16:52:31]Sock 7.Thread stoped [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:30]accept exits with 9 [16:54:30]New connection [16:54:30]New thread 3066776932 created [16:54:30]Thread 3066920292 joined [16:54:30]Waiting for new connection... [16:54:30] Sock 9.Parse request [16:54:30]Sock 9.Check first char [16:54:30]Sock 9.First char is OK [16:54:30]request: POST /json_proto HTTP/1.0 [16:54:30]Method: POST [16:54:30]URL: /json_proto [16:54:30]Method is POST - this is cgi request [16:54:30]url: /json_proto [16:54:30]query_string will be loaded in cgi processing [16:54:30]execute_cgi json_proto POST (null) [16:54:30]execute_cgi path=json_proto method=POST [16:54:30]POST find Content-Length [16:54:30]Host: 172.17.53.195:8080 [16:54:30]Content-Length: 677 [16:54:30]Content-Type: application/json [16:54:30] [16:54:30]POST finish read [16:54:30]Found Content-Length = 677 [16:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:30]execute_script... [16:54: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)220331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:30]POST & json_proto [16:54:30]process_json_proto [16:54:30]json parsed OK: [16:54:30]protocol is kg_v1.0 [16:54:30]action value=close_receipt [16:54:30]process_action close_receipt [16:54:30]cmd_close_receipt [16:54:30]MH_GetDate [16:54:30]Write to MH i2c: F0 00 00 E9 02 DA [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: F0 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: F0 09 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: F0 09 00 E9 02 00 D4 35 15 67 21 48 4A 65 80 [16:54:30]GetLastDocTimeStamp 1729443161 [16:54:30]current date 1729443284 [16:54:30]FM_GetShiftState [16:54:30]SAM_PROTO_GetShiftState [16:54:30]wFMCommunicate request_size=4 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 13 01 00 [16:54:30]Write to MH i2c: E2 08 00 EA 02 80 13 01 00 00 00 00 00 69 [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 0E 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 0E 00 EA 02 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B1 [16:54:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:54:30]wFMCommunicate OK [16:54:30]SAM_PROTO_GetShiftState done [16:54:30]FM_GetShiftState done [16:54:30]opened in 1729384561 [16:54:30]opened+sec_in_day 1729470961 [16:54:30]quantity*price = 50041 [16:54:30]sum+1 = 50042 [16:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 244 20.10.2024 16:54 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165762 ФПД: 162519361935007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165444&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165762&fm=162519361935007&tin=02508201610067®Number=0000000000091764&sum=50000 [16:54:31]StoreToDocumentArchive [16:54:31]shift 534 fd 165762 [16:54:31]save to /storage/0534/doc_00165762 [16:54:31]save last doc name /storage/0534/doc_00165762 to /storage/kkm_last_doc_name [16:54:31]save OK [16:54:31]Clear old archive folders... [16:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:31]tlvbuf is 014B8200 [16:54:31]SAM_PROTO_ClearQueue [16:54:31]wFMCommunicate request_size=4 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 09 00 00 [16:54:31]Write to MH i2c: E2 08 00 F7 02 80 09 00 00 00 00 00 00 6B [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:31]Read from MH i2c: E2 03 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [16:54:31]RAPDU: 90 00 [16:54:31]wFMCommunicate OK [16:54:31]SAM_PROTO_ClearQueue done [16:54:31]KKMCreateOFDPacket [16:54:31]OFDProtocolAddRootSTLVToBuf [16:54:31]FM_MakeSignedData [16:54:31]FM_MakeSignedData [16:54:31]SAM_PROTO_SignData [16:54:31]wFMCommunicate request_size=4 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 0D 01 02 [16:54:31]Write to MH i2c: E2 08 00 F8 02 80 0D 01 02 00 00 00 00 73 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [16:54:31]RAPDU: 90 00 [16:54:31]wFMCommunicate OK [16:54:31]wFMCommunicate request_size=255 [16:54:31]MH_SAM_APDU [16:54: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D4 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 87 02 00 35 04 06 00 93 [16:54:31]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D4 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 87 02 00 35 04 06 00 93 00 00 38 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:32]Read from MH i2c: E2 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 03 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [16:54:32]RAPDU: 90 00 [16:54:32]wFMCommunicate OK [16:54:32]wFMCommunicate request_size=10 [16:54:32]MH_SAM_APDU [16:54:32]CAPDU: 80 0D 02 02 05 CF 7C D6 56 9F [16:54:32]Write to MH i2c: E2 0D 00 FA 02 80 0D 02 02 05 00 CF 7C D6 56 9F 00 00 96 [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:32]Read from MH i2c: E2 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 03 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [16:54:32]RAPDU: 90 00 [16:54:32]wFMCommunicate OK [16:54:32]wFMCommunicate request_size=4 [16:54:32]MH_SAM_APDU [16:54:32]CAPDU: 80 0D 03 02 [16:54:32]Write to MH i2c: E2 08 00 FB 02 80 0D 03 02 00 00 00 00 78 [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:32]Read from MH i2c: E2 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 0B 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 0B 00 FB 02 00 CB 51 41 51 F0 5A 76 99 90 00 80 [16:54:32]RAPDU: CB 51 41 51 F0 5A 76 99 90 00 [16:54:32]wFMCommunicate OK [16:54:32]SAM_PROTO_SignData done [16:54:32]FM_MakeSignedData done [16:54:32]CreateOFDProtocolMessage [16:54:32]wFMCommunicate request_size=4 [16:54:32]MH_SAM_APDU [16:54:32]CAPDU: 80 11 00 00 [16:54:32]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:32]Read from MH i2c: E2 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 17 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D0 [16:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:54:32]wFMCommunicate OK [16:54:32]CreateOFDProtocolMessage done [16:54:32]OFDSenderStorePacket 165762 [16:54:32]StoreOFDPacket docnum=165762 [16:54:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0C E7 07 01 44 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D4 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 87 02 00 35 04 06 00 93 CF 7C D6 56 9F CB 51 41 51 F0 5A 76 99 [16:54:32]CheckFolder [16:54:32]dirname=/storage/ofd_packets [16:54:32]CheckFolder done [16:54:32]ProducePacketName [16:54:32]name=ofd_packets/00165762 [16:54:32]NVStorageSaveData ofd_packets/00165762 [16:54:32]File name is /storage/ofd_packets/00165762 [16:54:32]Write 301 bytes [16:54:32]NVStorageSaveData done [16:54:32]OFDSenderStorePacket done [16:54:32]KKMCreateOFDPacket done [16:54:32]NVStorageSaveData kkm_last_timestamp [16:54:32]File name is /storage/kkm_last_timestamp [16:54:32]Write 4 bytes [16:54:32]NVStorageSaveData done [16:54:32]ExternCall_PrintAddStr [16:54:32]wPrintStart [16:54:32]Write to MH i2c: 01 00 00 FD 02 FF [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: 01 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: 01 07 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [16:54:32]RasterBufferAndPrint [16:54:32]line Счет N : (1)220331 [16:54:32]line ИНН: 02508201610067 [16:54:32]line Контрольно-Кассовый Чек [16:54:32]line ПРОДАЖА [16:54:32]line ТРК (МРК, ГНК) : 43 [16:54:32]line Товар: 2710124130 [16:54:32]line Аи-92-К-5 [16:54:32]line 7.480 * 66.90 [16:54:32]line = 500.41 [16:54:32]line НДС 12% НСП 1% [16:54:32]line > о реализуемом товаре [16:54:32]line ОКРУГЛЕНИЕ: -0.41 [16:54:32]line ИТОГО: 500.00 [16:54:32]line Внесено: 500.00 [16:54:32]line СДАЧА: 0.00 [16:54:32]line НСП 1% : 4.43 [16:54:32]line НДС 12% : 53.14 [16:54:32]line Наличными: 500.00 [16:54:32]line Безнал.: 0.00 [16:54:32]line Место: АЗС № 161 "Партнер Нефть" [16:54:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:54:32]line СНО: Общий режим [16:54:32]line Чек 244 20.10.2024 16:54 [16:54:32]line Смена: 534 ФФД: 1.0 [16:54:32]line ЗНМ: 0300000104 [16:54:32]line РНМ: 0000000000091764 [16:54:32]line Версия ККМ: 001 [16:54:32]line ФМ: 0000000000871759 [16:54:32]line ФД: 165762 [16:54:32]line ФПД: 162519361935007 [16:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165444&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165762&fm=162519361935007&tin=02508201610067®Number=0000000000091764&sum=50000 [16:54:32]OFD Sender: Processing packet 165762 [packets to send 48, broken 47] [16:54:32]ProducePacketName [16:54:32]name=ofd_packets/00165762 [16:54:32]OFD Sender: To server: pG, [16:54:32]CommunicateWithHost lk.salyk.kg:30040 [16:54:32]ConnectInit lk.salyk.kg [16:54:32]written 0, free lines is 4095 [16:54:32]Connected sock=10 [16:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0C E7 07 01 44 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D4 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 87 02 00 35 04 06 00 93 CF 7C D6 56 9F CB 51 41 51 F0 5A 76 99 [16:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FC 9C 47 00 DF 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 87 02 00 F4 03 04 00 45 DC 14 67 B6 04 01 00 00 CA C2 8D 87 C8 D5 66 65 [16:54:33]CommunicateWithHost err = 0 [16:54:33]CheckOFDResponse [16:54:33]1017 (14) - 77093643461234 [16:54:33]1041 (16) - 0000000000871759 [16:54:33]1040 (4) - 165762 [16:54:33]1012 (4) - 20.10.2024 10:32 [16:54:33]1206 (1) - 0 [16:54:33]OFD Sender: Remove packet 165762 [16:54:33]ProducePacketName [16:54:33]name=ofd_packets/00165762 [16:54:33]NVStorageDeleteData [16:54:33]Write to MH i2c: 01 00 00 28 03 2B [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 07 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 D4 0C 12 [16:54:33]RasterBufferAndPrint [16:54:33]line [16:54:33]line [16:54:33]line [16:54:33]line [16:54:33]line [16:54:33]written 0, free lines is 3292 [16:54:33]MH_Cut [16:54:33]Write to MH i2c: D1 01 00 2F 03 01 04 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: D1 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: D1 01 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: D1 01 00 2F 03 00 03 [16:54:33]Write to MH i2c: 01 00 00 30 03 33 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]OFD Sender: No OFD packet to send [16:54:33]*** Cut start [16:54:33]*** Partial cut [16:54:33]*** CUTSNS_PIN = 1 [16:54:34]*** CUTSNS_PIN = 0 [16:54:34]*** Brake cut motor [16:54:34]Read from MH i2c: 01 [16:54:34]MH_I2C_Read... [16:54:34]*** Stop cut motor [16:54:34]*** Cut end [16:54:34]Read from MH i2c: 01 07 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [16:54:34]process_action close_receipt done [16:54:34]requested_data is exist [16:54:34]produce_requested_data [16:54:34]requested_item fm.sn is exist - process it [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 11 00 00 [16:54:34]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 17 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [16:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:54:34]wFMCommunicate OK [16:54:34]requested_item fd.num is exist - process it [16:54:34]SAM_PROTO_GetFieldsCounters [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 13 00 00 [16:54:34]Write to MH i2c: E2 08 00 32 03 80 13 00 00 00 00 00 00 B1 [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 62 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 62 00 32 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 87 02 00 0E 04 04 00 16 02 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 D8 [16:54: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 87 02 00 0E 04 04 00 16 02 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 [16:54:34]wFMCommunicate OK [16:54:34]SAM_PROTO_GetFieldsCounters done [16:54:34]requested_item shift.num is exist - process it [16:54:34]requested_item shift.opened is exist - process it [16:54:34]req_shift_opened [16:54:34]FM_GetShiftState [16:54:34]SAM_PROTO_GetShiftState [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 13 01 00 [16:54:34]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 0E 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FB [16:54:34]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:54:34]wFMCommunicate OK [16:54:34]SAM_PROTO_GetShiftState done [16:54:34]FM_GetShiftState done [16:54:34]req_shift_opened done [16:54:34]requested_item shift.open_date is exist - process it [16:54:34]req_shift_open_date [16:54:34]req_shift_open_date done [16:54:34]produce_requested_data done [16:54:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165762,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:54:34]process_action_free close_receipt [16:54:34]json_value_free [16:54:34]json_value_free done [16:54:34]process_json_proto returns [16:54:34]Send response to host [16:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165762,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:54:34]free response buf [16:54:34]execute_script done [16:54:34]execute_script returns [16:54:34]free content buf [16:54:34]Sock 9.Close socket [16:54:34]Sock 9.Thread stoped [16:54:35]accept exits with 7 [16:54:35]New connection [16:54:35]New thread 3066920292 created [16:54:35]Thread 3066776932 joined [16:54:35]Waiting for new connection... [16:54:35] Sock 7.Parse request [16:54:35]Sock 7.Check first char [16:54:35]Sock 7.First char is OK [16:54:35]request: POST /json_proto HTTP/1.0 [16:54:35]Method: POST [16:54:35]URL: /json_proto [16:54:35]Method is POST - this is cgi request [16:54:35]url: /json_proto [16:54:35]query_string will be loaded in cgi processing [16:54:35]execute_cgi json_proto POST (null) [16:54:35]execute_cgi path=json_proto method=POST [16:54:35]POST find Content-Length [16:54:35]Host: 172.17.53.195:8080 [16:54:35]Content-Length: 679 [16:54:35]Content-Type: application/json [16:54:35] [16:54:35]POST finish read [16:54:35]Found Content-Length = 679 [16:54:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220330", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [16:54:35]execute_script... [16:54: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)220330", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [16:54:35]POST & json_proto [16:54:35]process_json_proto [16:54:35]json parsed OK: [16:54:35]protocol is kg_v1.0 [16:54:35]action value=close_receipt [16:54:35]process_action close_receipt [16:54:35]cmd_close_receipt [16:54:35]MH_GetDate [16:54:35]Write to MH i2c: F0 00 00 34 03 26 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: F0 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: F0 09 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: F0 09 00 34 03 00 D8 35 15 67 21 48 4A 65 D0 [16:54:35]GetLastDocTimeStamp 1729443284 [16:54:35]current date 1729443288 [16:54:35]FM_GetShiftState [16:54:35]SAM_PROTO_GetShiftState [16:54:35]wFMCommunicate request_size=4 [16:54:35]MH_SAM_APDU [16:54:35]CAPDU: 80 13 01 00 [16:54:35]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:35]Read from MH i2c: E2 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 0E 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FD [16:54:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:54:35]wFMCommunicate OK [16:54:35]SAM_PROTO_GetShiftState done [16:54:35]FM_GetShiftState done [16:54:35]opened in 1729384561 [16:54:35]opened+sec_in_day 1729470961 [16:54:35]quantity*price = 150037 [16:54:35]sum+1 = 150039 [16:54:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 245 20.10.2024 16:54 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165763 ФПД: 143473665162738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165448&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165763&fm=143473665162738&tin=02508201610067®Number=0000000000091764&sum=150000 [16:54:36]StoreToDocumentArchive [16:54:36]shift 534 fd 165763 [16:54:36]save to /storage/0534/doc_00165763 [16:54:36]save last doc name /storage/0534/doc_00165763 to /storage/kkm_last_doc_name [16:54:36]save OK [16:54:36]Clear old archive folders... [16:54:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:54:36]tlvbuf is 018B8A40 [16:54:36]SAM_PROTO_ClearQueue [16:54:36]wFMCommunicate request_size=4 [16:54:36]MH_SAM_APDU [16:54:36]CAPDU: 80 09 00 00 [16:54:36]Write to MH i2c: E2 08 00 42 03 80 09 00 00 00 00 00 00 B7 [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:36]Read from MH i2c: E2 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 03 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [16:54:36]RAPDU: 90 00 [16:54:36]wFMCommunicate OK [16:54:36]SAM_PROTO_ClearQueue done [16:54:36]KKMCreateOFDPacket [16:54:36]OFDProtocolAddRootSTLVToBuf [16:54:36]FM_MakeSignedData [16:54:36]FM_MakeSignedData [16:54:36]SAM_PROTO_SignData [16:54:36]wFMCommunicate request_size=4 [16:54:36]MH_SAM_APDU [16:54:36]CAPDU: 80 0D 01 02 [16:54:36]Write to MH i2c: E2 08 00 43 03 80 0D 01 02 00 00 00 00 BF [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:36]Read from MH i2c: E2 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 03 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [16:54:36]RAPDU: 90 00 [16:54:36]wFMCommunicate OK [16:54:36]wFMCommunicate request_size=255 [16:54:36]MH_SAM_APDU [16:54:36]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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F5 00 00 00 F4 03 04 00 D8 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 87 02 00 35 04 06 00 82 7D 10 D8 [16:54:36]Write to MH i2c: E2 02 01 44 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F5 00 00 00 F4 03 04 00 D8 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 87 02 00 35 04 06 00 82 7D 10 D8 00 00 4B [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:37]Read from MH i2c: E2 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 03 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [16:54:37]RAPDU: 90 00 [16:54:37]wFMCommunicate OK [16:54:37]wFMCommunicate request_size=7 [16:54:37]MH_SAM_APDU [16:54:37]CAPDU: 80 0D 02 02 02 BD F2 [16:54:37]Write to MH i2c: E2 0A 00 45 03 80 0D 02 02 02 00 BD F2 00 00 75 [16:54:37]Write i2c OK [16:54:37]MH_I2C_Read... [16:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:37]Read from MH i2c: E2 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 03 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [16:54:37]RAPDU: 90 00 [16:54:37]wFMCommunicate OK [16:54:37]wFMCommunicate request_size=4 [16:54:37]MH_SAM_APDU [16:54:37]CAPDU: 80 0D 03 02 [16:54:37]Write to MH i2c: E2 08 00 46 03 80 0D 03 02 00 00 00 00 C4 [16:54:37]Write i2c OK [16:54:37]MH_I2C_Read... [16:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:37]Read from MH i2c: E2 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 0B 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 0B 00 46 03 00 F5 9C A0 A6 CF 92 F2 91 90 00 80 [16:54:37]RAPDU: F5 9C A0 A6 CF 92 F2 91 90 00 [16:54:37]wFMCommunicate OK [16:54:37]SAM_PROTO_SignData done [16:54:37]FM_MakeSignedData done [16:54:37]CreateOFDProtocolMessage [16:54:37]wFMCommunicate request_size=4 [16:54:37]MH_SAM_APDU [16:54:37]CAPDU: 80 11 00 00 [16:54:37]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [16:54:37]Write i2c OK [16:54:37]MH_I2C_Read... [16:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:37]Read from MH i2c: E2 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 17 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [16:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:54:37]wFMCommunicate OK [16:54:37]CreateOFDProtocolMessage done [16:54:37]OFDSenderStorePacket 165763 [16:54:37]StoreOFDPacket docnum=165763 [16:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 65 1E 04 01 22 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F5 00 00 00 F4 03 04 00 D8 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 87 02 00 35 04 06 00 82 7D 10 D8 BD F2 F5 9C A0 A6 CF 92 F2 91 [16:54:37]CheckFolder [16:54:37]dirname=/storage/ofd_packets [16:54:37]CheckFolder done [16:54:37]ProducePacketName [16:54:37]name=ofd_packets/00165763 [16:54:37]NVStorageSaveData ofd_packets/00165763 [16:54:37]File name is /storage/ofd_packets/00165763 [16:54:37]Write 298 bytes [16:54:37]NVStorageSaveData done [16:54:37]OFDSenderStorePacket done [16:54:37]KKMCreateOFDPacket done [16:54:37]NVStorageSaveData kkm_last_timestamp [16:54:37]File name is /storage/kkm_last_timestamp [16:54:37]Write 4 bytes [16:54:37]NVStorageSaveData done [16:54:37]ExternCall_PrintAddStr [16:54:37]wPrintStart [16:54:37]Write to MH i2c: 01 00 00 48 03 4B [16:54:37]Write i2c OK [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: 01 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: 01 07 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [16:54:37]RasterBufferAndPrint [16:54:37]line Счет N : (1)220330 [16:54:37]line ИНН: 02508201610067 [16:54:37]line Контрольно-Кассовый Чек [16:54:37]line ПРОДАЖА [16:54:37]line ТРК (МРК, ГНК) : 21 [16:54:37]line Товар: 2710194210 [16:54:37]line ДТ-К-5 [16:54:37]line 19.690 * 76.20 [16:54:37]line = 1500.38 [16:54:37]line НДС 12% НСП 1% [16:54:37]line > о реализуемом товаре [16:54:37]line ОКРУГЛЕНИЕ: -0.38 [16:54:37]line ИТОГО: 1500.00 [16:54:37]line Внесено: 1500.00 [16:54:37]line СДАЧА: 0.00 [16:54:37]line НСП 1% : 13.28 [16:54:37]line НДС 12% : 159.33 [16:54:37]line Наличными: 1500.00 [16:54:37]line Безнал.: 0.00 [16:54:37]line Место: АЗС № 161 "Партнер Нефть" [16:54:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:54:37]line СНО: Общий режим [16:54:37]line Чек 245 20.10.2024 16:54 [16:54:37]line Смена: 534 ФФД: 1.0 [16:54:37]line ЗНМ: 0300000104 [16:54:37]line РНМ: 0000000000091764 [16:54:37]line Версия ККМ: 001 [16:54:37]line ФМ: 0000000000871759 [16:54:37]line ФД: 165763 [16:54:37]line ФПД: 143473665162738 [16:54:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165448&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165763&fm=143473665162738&tin=02508201610067®Number=0000000000091764&sum=150000 [16:54:37]OFD Sender: Processing packet 165763 [packets to send 48, broken 47] [16:54:37]ProducePacketName [16:54:37]name=ofd_packets/00165763 [16:54:37]OFD Sender: To server: pG, [16:54:37]CommunicateWithHost lk.salyk.kg:30040 [16:54:37]ConnectInit lk.salyk.kg [16:54:37]written 0, free lines is 4095 [16:54:37]Connected sock=10 [16:54:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 65 1E 04 01 22 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F5 00 00 00 F4 03 04 00 D8 35 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 87 02 00 35 04 06 00 82 7D 10 D8 BD F2 F5 9C A0 A6 CF 92 F2 91 [16:54:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A8 D0 47 00 5D 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 31 37 35 39 10 04 04 00 83 87 02 00 F4 03 04 00 4A DC 14 67 B6 04 01 00 00 82 69 52 C7 93 BB 9D 6D [16:54:37]CommunicateWithHost err = 0 [16:54:37]CheckOFDResponse [16:54:37]1017 (14) - 77093643461234 [16:54:37]1041 (16) - 0000000000871759 [16:54:37]1040 (4) - 165763 [16:54:37]1012 (4) - 20.10.2024 10:32 [16:54:37]1206 (1) - 0 [16:54:37]OFD Sender: Remove packet 165763 [16:54:37]ProducePacketName [16:54:37]name=ofd_packets/00165763 [16:54:37]NVStorageDeleteData [16:54:38]Write to MH i2c: 01 00 00 73 03 76 [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 07 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 D6 0C 5F [16:54:38]RasterBufferAndPrint [16:54:38]line [16:54:38]line [16:54:38]line [16:54:38]line [16:54:38]line [16:54:38]written 0, free lines is 3296 [16:54:38]MH_Cut [16:54:38]Write to MH i2c: D1 01 00 7A 03 01 4F [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: D1 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: D1 01 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: D1 01 00 7A 03 00 4E [16:54:38]Write to MH i2c: 01 00 00 7B 03 7E [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]OFD Sender: No OFD packet to send [16:54:38]*** Cut start [16:54:38]*** Partial cut [16:54:38]*** CUTSNS_PIN = 1 [16:54:38]*** CUTSNS_PIN = 0 [16:54:39]*** Brake cut motor [16:54:39]Read from MH i2c: 01 [16:54:39]MH_I2C_Read... [16:54:39]*** Stop cut motor [16:54:39]*** Cut end [16:54:39]Read from MH i2c: 01 07 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 7B 03 00 00 00 00 00 FF 0F 93 [16:54:39]process_action close_receipt done [16:54:39]requested_data is exist [16:54:39]produce_requested_data [16:54:39]requested_item fm.sn is exist - process it [16:54:39]wFMCommunicate request_size=4 [16:54:39]MH_SAM_APDU [16:54:39]CAPDU: 80 11 00 00 [16:54:39]Write to MH i2c: E2 08 00 7C 03 80 11 00 00 00 00 00 00 F9 [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:39]Read from MH i2c: E2 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 17 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 17 00 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [16:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:54:39]wFMCommunicate OK [16:54:39]requested_item fd.num is exist - process it [16:54:39]SAM_PROTO_GetFieldsCounters [16:54:39]wFMCommunicate request_size=4 [16:54:39]MH_SAM_APDU [16:54:39]CAPDU: 80 13 00 00 [16:54:39]Write to MH i2c: E2 08 00 7D 03 80 13 00 00 00 00 00 00 FC [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:39]Read from MH i2c: E2 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 62 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 62 00 7D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 87 02 00 0E 04 04 00 16 02 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 27 [16:54:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 87 02 00 0E 04 04 00 16 02 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 [16:54:39]wFMCommunicate OK [16:54:39]SAM_PROTO_GetFieldsCounters done [16:54:39]requested_item shift.num is exist - process it [16:54:39]requested_item shift.opened is exist - process it [16:54:39]req_shift_opened [16:54:39]FM_GetShiftState [16:54:39]SAM_PROTO_GetShiftState [16:54:39]wFMCommunicate request_size=4 [16:54:39]MH_SAM_APDU [16:54:39]CAPDU: 80 13 01 00 [16:54:39]Write to MH i2c: E2 08 00 7E 03 80 13 01 00 00 00 00 00 FE [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:39]Read from MH i2c: E2 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 0E 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 0E 00 7E 03 00 09 00 01 71 50 14 67 00 00 00 00 90 00 46 [16:54:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:54:39]wFMCommunicate OK [16:54:39]SAM_PROTO_GetShiftState done [16:54:39]FM_GetShiftState done [16:54:39]req_shift_opened done [16:54:39]requested_item shift.open_date is exist - process it [16:54:39]req_shift_open_date [16:54:39]req_shift_open_date done [16:54:39]produce_requested_data done [16:54:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165763,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:54:39]process_action_free close_receipt [16:54:39]json_value_free [16:54:39]json_value_free done [16:54:39]process_json_proto returns [16:54:39]Send response to host [16:54:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165763,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:54:39]free response buf [16:54:39]execute_script done [16:54:39]execute_script returns [16:54:39]free content buf [16:54:39]Sock 7.Close socket [16:54:39]Sock 7.Thread stoped [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [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:26]accept exits with 9 [16:59:26]New connection [16:59:26]New thread 3066776932 created [16:59:26]Thread 3066920292 joined [16:59:26]Waiting for new connection... [16:59:26] Sock 9.Parse request [16:59:26]Sock 9.Check first char [16:59:26]Sock 9.First char is OK [16:59:26]request: POST /json_proto HTTP/1.0 [16:59:26]Method: POST [16:59:26]URL: /json_proto [16:59:26]Method is POST - this is cgi request [16:59:26]url: /json_proto [16:59:26]query_string will be loaded in cgi processing [16:59:26]execute_cgi json_proto POST (null) [16:59:26]execute_cgi path=json_proto method=POST [16:59:26]POST find Content-Length [16:59:26]Host: 172.17.53.195:8080 [16:59:26]Content-Length: 674 [16:59:26]Content-Type: application/json [16:59:26] [16:59:26]POST finish read [16:59:26]Found Content-Length = 674 [16:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220333", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:59:26]execute_script... [16:59: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)220333", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:59:26]POST & json_proto [16:59:26]process_json_proto [16:59:26]json parsed OK: [16:59:26]protocol is kg_v1.0 [16:59:26]action value=close_receipt [16:59:26]process_action close_receipt [16:59:26]cmd_close_receipt [16:59:26]MH_GetDate [16:59:26]Write to MH i2c: F0 00 00 7F 03 71 [16:59:26]Write i2c OK [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: F0 [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: F0 09 00 [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: F0 09 00 7F 03 00 FC 36 15 67 21 48 4A 65 40 [16:59:26]GetLastDocTimeStamp 1729443288 [16:59:26]current date 1729443580 [16:59:26]FM_GetShiftState [16:59:26]SAM_PROTO_GetShiftState [16:59:26]wFMCommunicate request_size=4 [16:59:26]MH_SAM_APDU [16:59:26]CAPDU: 80 13 01 00 [16:59:26]Write to MH i2c: E2 08 00 80 03 80 13 01 00 00 00 00 00 00 [16:59:26]Write i2c OK [16:59:26]MH_I2C_Read... [16:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:26]Read from MH i2c: E2 [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: E2 0E 00 [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: E2 0E 00 80 03 00 09 00 01 71 50 14 67 00 00 00 00 90 00 48 [16:59:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:59:26]wFMCommunicate OK [16:59:26]SAM_PROTO_GetShiftState done [16:59:26]FM_GetShiftState done [16:59:26]opened in 1729384561 [16:59:26]opened+sec_in_day 1729470961 [16:59:26]quantity*price = 50063 [16:59:26]sum+1 = 50064 [16:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 246 20.10.2024 16:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165764 ФПД: 250505677790803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165940&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165764&fm=250505677790803&tin=02508201610067®Number=0000000000091764&sum=50000 [16:59:27]StoreToDocumentArchive [16:59:27]shift 534 fd 165764 [16:59:27]save to /storage/0534/doc_00165764 [16:59:27]save last doc name /storage/0534/doc_00165764 to /storage/kkm_last_doc_name [16:59:27]save OK [16:59:27]Clear old archive folders... [16:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:59:27]tlvbuf is 01891E80 [16:59:27]SAM_PROTO_ClearQueue [16:59:27]wFMCommunicate request_size=4 [16:59:27]MH_SAM_APDU [16:59:27]CAPDU: 80 09 00 00 [16:59:27]Write to MH i2c: E2 08 00 8D 03 80 09 00 00 00 00 00 00 02 [16:59:27]Write i2c OK [16:59:27]MH_I2C_Read... [16:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:27]Read from MH i2c: E2 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: E2 03 00 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [16:59:28]RAPDU: 90 00 [16:59:28]wFMCommunicate OK [16:59:28]SAM_PROTO_ClearQueue done [16:59:28]KKMCreateOFDPacket [16:59:28]OFDProtocolAddRootSTLVToBuf [16:59:28]FM_MakeSignedData [16:59:28]FM_MakeSignedData [16:59:28]SAM_PROTO_SignData [16:59:28]wFMCommunicate request_size=4 [16:59:28]MH_SAM_APDU [16:59:28]CAPDU: 80 0D 01 02 [16:59:28]Write to MH i2c: E2 08 00 8E 03 80 0D 01 02 00 00 00 00 0A [16:59:28]Write i2c OK [16:59:28]MH_I2C_Read... [16:59:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:28]Read from MH i2c: E2 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 03 00 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [16:59:28]RAPDU: 90 00 [16:59:28]wFMCommunicate OK [16:59:28]wFMCommunicate request_size=255 [16:59:28]MH_SAM_APDU [16:59: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 FC 36 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 87 02 00 35 04 06 00 E3 D5 65 F0 [16:59:28]Write to MH i2c: E2 02 01 8F 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 FC 36 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 87 02 00 35 04 06 00 E3 D5 65 F0 00 00 F4 [16:59:28]Write i2c OK [16:59:28]MH_I2C_Read... [16:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:28]Read from MH i2c: E2 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 03 00 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [16:59:28]RAPDU: 90 00 [16:59:28]wFMCommunicate OK [16:59:28]wFMCommunicate request_size=7 [16:59:28]MH_SAM_APDU [16:59:28]CAPDU: 80 0D 02 02 02 5E 53 [16:59:28]Write to MH i2c: E2 0A 00 90 03 80 0D 02 02 02 00 5E 53 00 00 C2 [16:59:28]Write i2c OK [16:59:28]MH_I2C_Read... [16:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:28]Read from MH i2c: E2 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 03 00 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [16:59:28]RAPDU: 90 00 [16:59:28]wFMCommunicate OK [16:59:28]wFMCommunicate request_size=4 [16:59:28]MH_SAM_APDU [16:59:28]CAPDU: 80 0D 03 02 [16:59:28]Write to MH i2c: E2 08 00 91 03 80 0D 03 02 00 00 00 00 0F [16:59:28]Write i2c OK [16:59:28]MH_I2C_Read... [16:59:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:28]Read from MH i2c: E2 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 0B 00 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 0B 00 91 03 00 31 2C FB CF 7D FD 86 EA 90 00 21 [16:59:28]RAPDU: 31 2C FB CF 7D FD 86 EA 90 00 [16:59:28]wFMCommunicate OK [16:59:28]SAM_PROTO_SignData done [16:59:28]FM_MakeSignedData done [16:59:28]CreateOFDProtocolMessage [16:59:28]wFMCommunicate request_size=4 [16:59:28]MH_SAM_APDU [16:59:28]CAPDU: 80 11 00 00 [16:59:28]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [16:59:28]Write i2c OK [16:59:28]MH_I2C_Read... [16:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:28]Read from MH i2c: E2 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 17 00 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [16:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:59:28]wFMCommunicate OK [16:59:28]CreateOFDProtocolMessage done [16:59:28]OFDSenderStorePacket 165764 [16:59:28]StoreOFDPacket docnum=165764 [16:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 77 FC 04 01 1A 6D 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 FC 36 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 87 02 00 35 04 06 00 E3 D5 65 F0 5E 53 31 2C FB CF 7D FD 86 EA [16:59:28]CheckFolder [16:59:28]dirname=/storage/ofd_packets [16:59:28]CheckFolder done [16:59:28]ProducePacketName [16:59:28]name=ofd_packets/00165764 [16:59:28]NVStorageSaveData ofd_packets/00165764 [16:59:28]File name is /storage/ofd_packets/00165764 [16:59:28]Write 298 bytes [16:59:28]NVStorageSaveData done [16:59:28]OFDSenderStorePacket done [16:59:28]KKMCreateOFDPacket done [16:59:28]NVStorageSaveData kkm_last_timestamp [16:59:28]File name is /storage/kkm_last_timestamp [16:59:28]Write 4 bytes [16:59:28]NVStorageSaveData done [16:59:28]ExternCall_PrintAddStr [16:59:28]wPrintStart [16:59:28]Write to MH i2c: 01 00 00 93 03 96 [16:59:28]Write i2c OK [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: 01 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: 01 07 00 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [16:59:28]RasterBufferAndPrint [16:59:28]line Счет N : (1)220333 [16:59:28]line ИНН: 02508201610067 [16:59:28]line Контрольно-Кассовый Чек [16:59:28]line ПРОДАЖА [16:59:28]line ТРК (МРК, ГНК) : 21 [16:59:28]line Товар: 2710194210 [16:59:28]line ДТ-К-5 [16:59:28]line 6.570 * 76.20 [16:59:28]line = 500.63 [16:59:28]line НДС 12% НСП 1% [16:59:28]line > о реализуемом товаре [16:59:28]line ОКРУГЛЕНИЕ: -0.63 [16:59:28]line ИТОГО: 500.00 [16:59:28]line Внесено: 500.00 [16:59:28]line СДАЧА: 0.00 [16:59:28]line НСП 1% : 4.43 [16:59:28]line НДС 12% : 53.16 [16:59:28]line Наличными: 500.00 [16:59:28]line Безнал.: 0.00 [16:59:28]line Место: АЗС № 161 "Партнер Нефть" [16:59:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:59:28]line СНО: Общий режим [16:59:28]line Чек 246 20.10.2024 16:59 [16:59:28]line Смена: 534 ФФД: 1.0 [16:59:28]line ЗНМ: 0300000104 [16:59:28]line РНМ: 0000000000091764 [16:59:28]line Версия ККМ: 001 [16:59:28]line ФМ: 0000000000871759 [16:59:28]line ФД: 165764 [16:59:28]line ФПД: 250505677790803 [16:59:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165940&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165764&fm=250505677790803&tin=02508201610067®Number=0000000000091764&sum=50000 [16:59:28]OFD Sender: Processing packet 165764 [packets to send 48, broken 47] [16:59:28]ProducePacketName [16:59:28]name=ofd_packets/00165764 [16:59:28]OFD Sender: To server: pG, [16:59:28]CommunicateWithHost lk.salyk.kg:30040 [16:59:28]ConnectInit lk.salyk.kg [16:59:28]written 0, free lines is 4095 [16:59:28]Connected sock=10 [16:59:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 77 FC 04 01 1A 6D 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 FC 36 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 87 02 00 35 04 06 00 E3 D5 65 F0 5E 53 31 2C FB CF 7D FD 86 EA [16:59:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3D A2 47 00 72 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 87 02 00 F4 03 04 00 6D DD 14 67 B6 04 01 00 00 0A 14 25 BD 85 5C 6B 3F [16:59:29]CommunicateWithHost err = 0 [16:59:29]CheckOFDResponse [16:59:29]1017 (14) - 77093643461234 [16:59:29]1041 (16) - 0000000000871759 [16:59:29]1040 (4) - 165764 [16:59:29]1012 (4) - 20.10.2024 10:37 [16:59:29]1206 (1) - 0 [16:59:29]OFD Sender: Remove packet 165764 [16:59:29]ProducePacketName [16:59:29]name=ofd_packets/00165764 [16:59:29]NVStorageDeleteData [16:59:29]Write to MH i2c: 01 00 00 BE 03 C1 [16:59:29]Write i2c OK [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: 01 [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: 01 07 00 [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 C3 0C 97 [16:59:29]RasterBufferAndPrint [16:59:29]line [16:59:29]line [16:59:29]line [16:59:29]line [16:59:29]line [16:59:29]written 0, free lines is 3273 [16:59:29]MH_Cut [16:59:29]Write to MH i2c: D1 01 00 C5 03 01 9A [16:59:29]Write i2c OK [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: D1 [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: D1 01 00 [16:59:29]MH_I2C_Read... [16:59:29]Read from MH i2c: D1 01 00 C5 03 00 99 [16:59:29]Write to MH i2c: 01 00 00 C6 03 C9 [16:59:29]Write i2c OK [16:59:29]MH_I2C_Read... [16:59:29]OFD Sender: No OFD packet to send [16:59:30]*** Cut start [16:59:30]*** Partial cut [16:59:30]*** CUTSNS_PIN = 1 [16:59:30]*** CUTSNS_PIN = 0 [16:59:30]*** Brake cut motor [16:59:30]Read from MH i2c: 01 [16:59:30]MH_I2C_Read... [16:59:30]*** Stop cut motor [16:59:30]*** Cut end [16:59:30]Read from MH i2c: 01 07 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: 01 07 00 C6 03 00 00 00 00 00 FF 0F DE [16:59:30]process_action close_receipt done [16:59:30]requested_data is exist [16:59:30]produce_requested_data [16:59:30]requested_item fm.sn is exist - process it [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 11 00 00 [16:59:30]Write to MH i2c: E2 08 00 C7 03 80 11 00 00 00 00 00 00 44 [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 17 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 17 00 C7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [16:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:59:30]wFMCommunicate OK [16:59:30]requested_item fd.num is exist - process it [16:59:30]SAM_PROTO_GetFieldsCounters [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 13 00 00 [16:59:30]Write to MH i2c: E2 08 00 C8 03 80 13 00 00 00 00 00 00 47 [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 62 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 62 00 C8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 87 02 00 0E 04 04 00 16 02 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 76 [16:59:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 87 02 00 0E 04 04 00 16 02 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 [16:59:30]wFMCommunicate OK [16:59:30]SAM_PROTO_GetFieldsCounters done [16:59:30]requested_item shift.num is exist - process it [16:59:30]requested_item shift.opened is exist - process it [16:59:30]req_shift_opened [16:59:30]FM_GetShiftState [16:59:30]SAM_PROTO_GetShiftState [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 13 01 00 [16:59:30]Write to MH i2c: E2 08 00 C9 03 80 13 01 00 00 00 00 00 49 [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 0E 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 0E 00 C9 03 00 09 00 01 71 50 14 67 00 00 00 00 90 00 91 [16:59:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:59:30]wFMCommunicate OK [16:59:30]SAM_PROTO_GetShiftState done [16:59:30]FM_GetShiftState done [16:59:30]req_shift_opened done [16:59:30]requested_item shift.open_date is exist - process it [16:59:30]req_shift_open_date [16:59:30]req_shift_open_date done [16:59:30]produce_requested_data done [16:59:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165764,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:59:30]process_action_free close_receipt [16:59:30]json_value_free [16:59:30]json_value_free done [16:59:30]process_json_proto returns [16:59:30]Send response to host [16:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165764,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:59:30]free response buf [16:59:30]execute_script done [16:59:30]execute_script returns [16:59:30]free content buf [16:59:30]Sock 9.Close socket [16:59:30]Sock 9.Thread stoped [16:59:33]accept exits with 7 [16:59:33]New connection [16:59:33]New thread 3066920292 created [16:59:33]Thread 3066776932 joined [16:59:33]Waiting for new connection... [16:59:33] Sock 7.Parse request [16:59:33]Sock 7.Check first char [16:59:33]Sock 7.First char is OK [16:59:33]request: POST /json_proto HTTP/1.0 [16:59:33]Method: POST [16:59:33]URL: /json_proto [16:59:33]Method is POST - this is cgi request [16:59:33]url: /json_proto [16:59:33]query_string will be loaded in cgi processing [16:59:33]execute_cgi json_proto POST (null) [16:59:33]execute_cgi path=json_proto method=POST [16:59:33]POST find Content-Length [16:59:33]Host: 172.17.53.195:8080 [16:59:33]Content-Length: 682 [16:59:33]Content-Type: application/json [16:59:33] [16:59:33]POST finish read [16:59:33]Found Content-Length = 682 [16:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:33]execute_script... [16:59: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)220334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:33]POST & json_proto [16:59:33]process_json_proto [16:59:33]json parsed OK: [16:59:33]protocol is kg_v1.0 [16:59:33]action value=close_receipt [16:59:33]process_action close_receipt [16:59:33]cmd_close_receipt [16:59:33]MH_GetDate [16:59:33]Write to MH i2c: F0 00 00 CA 03 BC [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: F0 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: F0 09 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: F0 09 00 CA 03 00 02 37 15 67 21 48 4A 65 92 [16:59:33]GetLastDocTimeStamp 1729443580 [16:59:33]current date 1729443586 [16:59:33]FM_GetShiftState [16:59:33]SAM_PROTO_GetShiftState [16:59:33]wFMCommunicate request_size=4 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 13 01 00 [16:59:33]Write to MH i2c: E2 08 00 CB 03 80 13 01 00 00 00 00 00 4B [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 0E 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 0E 00 CB 03 00 09 00 01 71 50 14 67 00 00 00 00 90 00 93 [16:59:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:59:33]wFMCommunicate OK [16:59:33]SAM_PROTO_GetShiftState done [16:59:33]FM_GetShiftState done [16:59:33]opened in 1729384561 [16:59:33]opened+sec_in_day 1729470961 [16:59:33]quantity*price = 100015 [16:59:33]sum+1 = 100017 [16:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 247 20.10.2024 16:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165765 ФПД: 226931000789857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165946&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165765&fm=226931000789857&tin=02508201610067®Number=0000000000091764&sum=100000 [16:59:34]StoreToDocumentArchive [16:59:34]shift 534 fd 165765 [16:59:34]save to /storage/0534/doc_00165765 [16:59:34]save last doc name /storage/0534/doc_00165765 to /storage/kkm_last_doc_name [16:59:34]save OK [16:59:34]Clear old archive folders... [16:59:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:34]tlvbuf is 0161BF10 [16:59:34]SAM_PROTO_ClearQueue [16:59:34]wFMCommunicate request_size=4 [16:59:34]MH_SAM_APDU [16:59:34]CAPDU: 80 09 00 00 [16:59:34]Write to MH i2c: E2 08 00 D8 03 80 09 00 00 00 00 00 00 4D [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:34]Read from MH i2c: E2 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 03 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [16:59:34]RAPDU: 90 00 [16:59:34]wFMCommunicate OK [16:59:34]SAM_PROTO_ClearQueue done [16:59:34]KKMCreateOFDPacket [16:59:34]OFDProtocolAddRootSTLVToBuf [16:59:34]FM_MakeSignedData [16:59:34]FM_MakeSignedData [16:59:34]SAM_PROTO_SignData [16:59:34]wFMCommunicate request_size=4 [16:59:34]MH_SAM_APDU [16:59:34]CAPDU: 80 0D 01 02 [16:59:34]Write to MH i2c: E2 08 00 D9 03 80 0D 01 02 00 00 00 00 55 [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:34]Read from MH i2c: E2 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 03 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [16:59:34]RAPDU: 90 00 [16:59:34]wFMCommunicate OK [16:59:34]wFMCommunicate request_size=255 [16:59:34]MH_SAM_APDU [16:59: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 02 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 87 02 00 35 04 06 00 CE [16:59:34]Write to MH i2c: E2 02 01 DA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 02 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 87 02 00 35 04 06 00 CE 00 00 85 [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]OFD Sender: No OFD packet to send [16:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:34]Read from MH i2c: E2 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 03 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [16:59:34]RAPDU: 90 00 [16:59:34]wFMCommunicate OK [16:59:34]wFMCommunicate request_size=10 [16:59:34]MH_SAM_APDU [16:59:34]CAPDU: 80 0D 02 02 05 64 7D B0 CB 61 [16:59:34]Write to MH i2c: E2 0D 00 DB 03 80 0D 02 02 05 00 64 7D B0 CB 61 00 00 1F [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:34]Read from MH i2c: E2 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 03 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [16:59:34]RAPDU: 90 00 [16:59:34]wFMCommunicate OK [16:59:34]wFMCommunicate request_size=4 [16:59:34]MH_SAM_APDU [16:59:34]CAPDU: 80 0D 03 02 [16:59:34]Write to MH i2c: E2 08 00 DC 03 80 0D 03 02 00 00 00 00 5A [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:34]Read from MH i2c: E2 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 0B 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 0B 00 DC 03 00 8E FA D6 4C 61 B0 7C 6B 90 00 FD [16:59:34]RAPDU: 8E FA D6 4C 61 B0 7C 6B 90 00 [16:59:34]wFMCommunicate OK [16:59:34]SAM_PROTO_SignData done [16:59:34]FM_MakeSignedData done [16:59:34]CreateOFDProtocolMessage [16:59:34]wFMCommunicate request_size=4 [16:59:34]MH_SAM_APDU [16:59:34]CAPDU: 80 11 00 00 [16:59:34]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:35]Read from MH i2c: E2 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: E2 17 00 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [16:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:59:35]wFMCommunicate OK [16:59:35]CreateOFDProtocolMessage done [16:59:35]OFDSenderStorePacket 165765 [16:59:35]StoreOFDPacket docnum=165765 [16:59:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3A BB 07 01 13 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 02 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 87 02 00 35 04 06 00 CE 64 7D B0 CB 61 8E FA D6 4C 61 B0 7C 6B [16:59:35]CheckFolder [16:59:35]dirname=/storage/ofd_packets [16:59:35]CheckFolder done [16:59:35]ProducePacketName [16:59:35]name=ofd_packets/00165765 [16:59:35]NVStorageSaveData ofd_packets/00165765 [16:59:35]File name is /storage/ofd_packets/00165765 [16:59:35]Write 301 bytes [16:59:35]NVStorageSaveData done [16:59:35]OFDSenderStorePacket done [16:59:35]KKMCreateOFDPacket done [16:59:35]NVStorageSaveData kkm_last_timestamp [16:59:35]File name is /storage/kkm_last_timestamp [16:59:35]Write 4 bytes [16:59:35]NVStorageSaveData done [16:59:35]ExternCall_PrintAddStr [16:59:35]wPrintStart [16:59:35]Write to MH i2c: 01 00 00 DE 03 E1 [16:59:35]Write i2c OK [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 07 00 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [16:59:35]RasterBufferAndPrint [16:59:35]line Счет N : (1)220334 [16:59:35]line ИНН: 02508201610067 [16:59:35]line Контрольно-Кассовый Чек [16:59:35]line ПРОДАЖА [16:59:35]line ТРК (МРК, ГНК) : 13 [16:59:35]line Товар: 2710124130 [16:59:35]line Аи-92-К-5 [16:59:35]line 14.950 * 66.90 [16:59:35]line = 1000.16 [16:59:35]line НДС 12% НСП 1% [16:59:35]line > о реализуемом товаре [16:59:35]line ОКРУГЛЕНИЕ: -0.16 [16:59:35]line ИТОГО: 1000.00 [16:59:35]line Внесено: 1000.00 [16:59:35]line СДАЧА: 0.00 [16:59:35]line НСП 1% : 8.85 [16:59:35]line НДС 12% : 106.21 [16:59:35]line Наличными: 1000.00 [16:59:35]line Безнал.: 0.00 [16:59:35]line Место: АЗС № 161 "Партнер Нефть" [16:59:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:59:35]line СНО: Общий режим [16:59:35]line Чек 247 20.10.2024 16:59 [16:59:35]line Смена: 534 ФФД: 1.0 [16:59:35]line ЗНМ: 0300000104 [16:59:35]line РНМ: 0000000000091764 [16:59:35]line Версия ККМ: 001 [16:59:35]line ФМ: 0000000000871759 [16:59:35]line ФД: 165765 [16:59:35]line ФПД: 226931000789857 [16:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165946&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165765&fm=226931000789857&tin=02508201610067®Number=0000000000091764&sum=100000 [16:59:35]written 0, free lines is 4095 [16:59:35]OFD Sender: Processing packet 165765 [packets to send 48, broken 47] [16:59:35]ProducePacketName [16:59:35]name=ofd_packets/00165765 [16:59:35]OFD Sender: To server: pG, [16:59:35]CommunicateWithHost lk.salyk.kg:30040 [16:59:35]ConnectInit lk.salyk.kg [16:59:35]Connected sock=10 [16:59:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3A BB 07 01 13 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 02 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 87 02 00 35 04 06 00 CE 64 7D B0 CB 61 8E FA D6 4C 61 B0 7C 6B [16:59:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CD F8 47 00 10 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 31 37 35 39 10 04 04 00 85 87 02 00 F4 03 04 00 73 DD 14 67 B6 04 01 00 00 2A BA 40 3A 8E 06 24 CB [16:59:35]CommunicateWithHost err = 0 [16:59:35]CheckOFDResponse [16:59:35]1017 (14) - 77093643461234 [16:59:35]1041 (16) - 0000000000871759 [16:59:35]1040 (4) - 165765 [16:59:35]1012 (4) - 20.10.2024 10:37 [16:59:35]1206 (1) - 0 [16:59:35]OFD Sender: Remove packet 165765 [16:59:35]ProducePacketName [16:59:35]name=ofd_packets/00165765 [16:59:35]NVStorageDeleteData [16:59:35]Write to MH i2c: 01 00 00 09 04 0D [16:59:35]Write i2c OK [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 07 00 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 D5 0C F5 [16:59:35]RasterBufferAndPrint [16:59:35]line [16:59:35]line [16:59:35]line [16:59:35]line [16:59:35]line [16:59:35]written 0, free lines is 3297 [16:59:35]MH_Cut [16:59:35]Write to MH i2c: D1 01 00 10 04 01 E6 [16:59:35]Write i2c OK [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: D1 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: D1 01 00 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: D1 01 00 10 04 00 E5 [16:59:35]Write to MH i2c: 01 00 00 11 04 15 [16:59:35]Write i2c OK [16:59:35]MH_I2C_Read... [16:59:35]OFD Sender: No OFD packet to send [16:59:36]*** Cut start [16:59:36]*** Partial cut [16:59:36]*** CUTSNS_PIN = 1 [16:59:36]*** CUTSNS_PIN = 0 [16:59:36]*** Brake cut motor [16:59:36]Read from MH i2c: 01 [16:59:36]MH_I2C_Read... [16:59:36]*** Stop cut motor [16:59:36]*** Cut end [16:59:36]Read from MH i2c: 01 07 00 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [16:59:36]process_action close_receipt done [16:59:36]requested_data is exist [16:59:36]produce_requested_data [16:59:36]requested_item fm.sn is exist - process it [16:59:36]wFMCommunicate request_size=4 [16:59:36]MH_SAM_APDU [16:59:36]CAPDU: 80 11 00 00 [16:59:36]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [16:59:36]Write i2c OK [16:59:36]MH_I2C_Read... [16:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:36]Read from MH i2c: E2 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 17 00 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [16:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:59:36]wFMCommunicate OK [16:59:36]requested_item fd.num is exist - process it [16:59:36]SAM_PROTO_GetFieldsCounters [16:59:36]wFMCommunicate request_size=4 [16:59:36]MH_SAM_APDU [16:59:36]CAPDU: 80 13 00 00 [16:59:36]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [16:59:36]Write i2c OK [16:59:36]MH_I2C_Read... [16:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:37]Read from MH i2c: E2 [16:59:37]MH_I2C_Read... [16:59:37]Read from MH i2c: E2 62 00 [16:59:37]MH_I2C_Read... [16:59:37]Read from MH i2c: E2 62 00 13 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 87 02 00 0E 04 04 00 16 02 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 C6 [16:59:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 87 02 00 0E 04 04 00 16 02 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 [16:59:37]wFMCommunicate OK [16:59:37]SAM_PROTO_GetFieldsCounters done [16:59:37]requested_item shift.num is exist - process it [16:59:37]requested_item shift.opened is exist - process it [16:59:37]req_shift_opened [16:59:37]FM_GetShiftState [16:59:37]SAM_PROTO_GetShiftState [16:59:37]wFMCommunicate request_size=4 [16:59:37]MH_SAM_APDU [16:59:37]CAPDU: 80 13 01 00 [16:59:37]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [16:59:37]Write i2c OK [16:59:37]MH_I2C_Read... [16:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:37]Read from MH i2c: E2 [16:59:37]MH_I2C_Read... [16:59:37]Read from MH i2c: E2 0E 00 [16:59:37]MH_I2C_Read... [16:59:37]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DD [16:59:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:59:37]wFMCommunicate OK [16:59:37]SAM_PROTO_GetShiftState done [16:59:37]FM_GetShiftState done [16:59:37]req_shift_opened done [16:59:37]requested_item shift.open_date is exist - process it [16:59:37]req_shift_open_date [16:59:37]req_shift_open_date done [16:59:37]produce_requested_data done [16:59:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165765,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:59:37]process_action_free close_receipt [16:59:37]json_value_free [16:59:37]json_value_free done [16:59:37]process_json_proto returns [16:59:37]Send response to host [16:59:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165765,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:59:37]free response buf [16:59:37]execute_script done [16:59:37]execute_script returns [16:59:37]free content buf [16:59:37]Sock 7.Close socket [16:59:37]Sock 7.Thread stoped [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:47]accept exits with 9 [16:59:47]New connection [16:59:47]New thread 3066776932 created [16:59:47]Thread 3066920292 joined [16:59:47]Waiting for new connection... [16:59:47] Sock 9.Parse request [16:59:47]Sock 9.Check first char [16:59:47]Sock 9.First char is OK [16:59:47]request: POST /json_proto HTTP/1.0 [16:59:47]Method: POST [16:59:47]URL: /json_proto [16:59:47]Method is POST - this is cgi request [16:59:47]url: /json_proto [16:59:47]query_string will be loaded in cgi processing [16:59:47]execute_cgi json_proto POST (null) [16:59:47]execute_cgi path=json_proto method=POST [16:59:47]POST find Content-Length [16:59:47]Host: 172.17.53.195:8080 [16:59:47]Content-Length: 789 [16:59:47]Content-Type: application/json [16:59:47] [16:59:47]POST finish read [16:59:47]Found Content-Length = 789 [16:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:47]execute_script... [16:59: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)220332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:47]POST & json_proto [16:59:47]process_json_proto [16:59:47]json parsed OK: [16:59:47]protocol is kg_v1.0 [16:59:47]action value=close_receipt [16:59:47]process_action close_receipt [16:59:47]cmd_close_receipt [16:59:47]MH_GetDate [16:59:47]Write to MH i2c: F0 00 00 15 04 08 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: F0 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: F0 09 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: F0 09 00 15 04 00 10 37 15 67 21 48 4A 65 EC [16:59:47]GetLastDocTimeStamp 1729443586 [16:59:47]current date 1729443600 [16:59:47]FM_GetShiftState [16:59:47]SAM_PROTO_GetShiftState [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 13 01 00 [16:59:47]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 0E 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DF [16:59:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:59:47]wFMCommunicate OK [16:59:47]SAM_PROTO_GetShiftState done [16:59:47]FM_GetShiftState done [16:59:47]opened in 1729384561 [16:59:47]opened+sec_in_day 1729470961 [16:59:47]quantity*price = 0 [16:59:47]sum+1 = 1 [16:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 248 20.10.2024 17:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165766 ФПД: 230879153671236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165766&fm=230879153671236&tin=02508201610067®Number=0000000000091764&sum=0 [16:59:48]StoreToDocumentArchive [16:59:48]shift 534 fd 165766 [16:59:48]save to /storage/0534/doc_00165766 [16:59:48]save last doc name /storage/0534/doc_00165766 to /storage/kkm_last_doc_name [16:59:48]save OK [16:59:48]Clear old archive folders... [16:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:59:48]tlvbuf is 0157ED00 [16:59:48]SAM_PROTO_ClearQueue [16:59:48]wFMCommunicate request_size=4 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 09 00 00 [16:59:48]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [16:59:48]RAPDU: 90 00 [16:59:48]wFMCommunicate OK [16:59:48]SAM_PROTO_ClearQueue done [16:59:48]KKMCreateOFDPacket [16:59:48]OFDProtocolAddRootSTLVToBuf [16:59:48]FM_MakeSignedData [16:59:48]FM_MakeSignedData [16:59:48]SAM_PROTO_SignData [16:59:48]wFMCommunicate request_size=4 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 0D 01 02 [16:59:48]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [16:59:48]RAPDU: 90 00 [16:59:48]wFMCommunicate OK [16:59:48]wFMCommunicate request_size=255 [16:59:48]MH_SAM_APDU [16:59: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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 10 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 87 02 00 35 04 06 00 D1 FB BD F0 [16:59:48]Write to MH i2c: E2 02 01 25 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 10 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 87 02 00 35 04 06 00 D1 FB BD F0 00 00 CD [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [16:59:48]RAPDU: 90 00 [16:59:48]wFMCommunicate OK [16:59:48]wFMCommunicate request_size=7 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 0D 02 02 02 CC 44 [16:59:48]Write to MH i2c: E2 0A 00 26 04 80 0D 02 02 02 00 CC 44 00 00 B8 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:49]Read from MH i2c: E2 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 03 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [16:59:49]RAPDU: 90 00 [16:59:49]wFMCommunicate OK [16:59:49]wFMCommunicate request_size=4 [16:59:49]MH_SAM_APDU [16:59:49]CAPDU: 80 0D 03 02 [16:59:49]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:49]Read from MH i2c: E2 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 0B 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 0B 00 27 04 00 E8 E0 CC 18 CB F0 46 F2 90 00 46 [16:59:49]RAPDU: E8 E0 CC 18 CB F0 46 F2 90 00 [16:59:49]wFMCommunicate OK [16:59:49]SAM_PROTO_SignData done [16:59:49]FM_MakeSignedData done [16:59:49]CreateOFDProtocolMessage [16:59:49]wFMCommunicate request_size=4 [16:59:49]MH_SAM_APDU [16:59:49]CAPDU: 80 11 00 00 [16:59:49]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 [16:59:49]MH_I2C_Read... [16:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:49]Read from MH i2c: E2 17 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [16:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:59:49]wFMCommunicate OK [16:59:49]CreateOFDProtocolMessage done [16:59:49]OFDSenderStorePacket 165766 [16:59:49]StoreOFDPacket docnum=165766 [16:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A6 FF 04 01 84 F4 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 10 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 87 02 00 35 04 06 00 D1 FB BD F0 CC 44 E8 E0 CC 18 CB F0 46 F2 [16:59:49]CheckFolder [16:59:49]dirname=/storage/ofd_packets [16:59:49]CheckFolder done [16:59:49]ProducePacketName [16:59:49]name=ofd_packets/00165766 [16:59:49]NVStorageSaveData ofd_packets/00165766 [16:59:49]File name is /storage/ofd_packets/00165766 [16:59:49]Write 298 bytes [16:59:49]NVStorageSaveData done [16:59:49]OFDSenderStorePacket done [16:59:49]KKMCreateOFDPacket done [16:59:49]NVStorageSaveData kkm_last_timestamp [16:59:49]File name is /storage/kkm_last_timestamp [16:59:49]Write 4 bytes [16:59:49]NVStorageSaveData done [16:59:49]ExternCall_PrintAddStr [16:59:49]wPrintStart [16:59:49]Write to MH i2c: 01 00 00 29 04 2D [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: 01 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: 01 07 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [16:59:49]RasterBufferAndPrint [16:59:49]line Счет N : (1)220332 [16:59:49]line ИНН: 02508201610067 [16:59:49]line Контрольно-Кассовый Чек [16:59:49]line ПРОДАЖА [16:59:49]line ТРК (МРК, ГНК) : 31 [16:59:49]line Товар: 2710194210 [16:59:49]line ДТ-К-5 [16:59:49]line 39.380 * 0.00 [16:59:49]line = 0.00 [16:59:49]line НДС 12% НСП 1% [16:59:49]line > о реализуемом товаре [16:59:49]line ИТОГО: 0.00 [16:59:49]line НСП 1% : 0.00 [16:59:49]line НДС 12% : 0.00 [16:59:49]line Наличными: 0.00 [16:59:49]line Безнал.: 0.00 [16:59:49]line Место: АЗС № 161 "Партнер Нефть" [16:59:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:59:49]line СНО: Общий режим [16:59:49]line Чек 248 20.10.2024 17:00 [16:59:49]line Смена: 534 ФФД: 1.0 [16:59:49]line ЗНМ: 0300000104 [16:59:49]line РНМ: 0000000000091764 [16:59:49]line Версия ККМ: 001 [16:59:49]line Талоны: Топливная Карта [16:59:49]line 38866 [16:59:49]line ФМ: 0000000000871759 [16:59:49]line ФД: 165766 [16:59:49]line ФПД: 230879153671236 [16:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165766&fm=230879153671236&tin=02508201610067®Number=0000000000091764&sum=0 [16:59:49]written 0, free lines is 4095 [16:59:49]OFD Sender: Processing packet 165766 [packets to send 48, broken 47] [16:59:49]ProducePacketName [16:59:49]name=ofd_packets/00165766 [16:59:49]OFD Sender: To server: pG, [16:59:49]CommunicateWithHost lk.salyk.kg:30040 [16:59:49]ConnectInit lk.salyk.kg [16:59:49]Connected sock=10 [16:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A6 FF 04 01 84 F4 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 10 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 87 02 00 35 04 06 00 D1 FB BD F0 CC 44 E8 E0 CC 18 CB F0 46 F2 [16:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 54 62 47 00 21 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 31 37 35 39 10 04 04 00 86 87 02 00 F4 03 04 00 81 DD 14 67 B6 04 01 00 00 CE 34 F7 FF 93 F3 86 90 [16:59:49]CommunicateWithHost err = 0 [16:59:49]CheckOFDResponse [16:59:49]1017 (14) - 77093643461234 [16:59:49]1041 (16) - 0000000000871759 [16:59:49]1040 (4) - 165766 [16:59:49]1012 (4) - 20.10.2024 10:37 [16:59:49]1206 (1) - 0 [16:59:49]OFD Sender: Remove packet 165766 [16:59:49]ProducePacketName [16:59:49]name=ofd_packets/00165766 [16:59:49]NVStorageDeleteData [16:59:49]Write to MH i2c: 01 00 00 53 04 57 [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: 01 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: 01 07 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 D8 0C 42 [16:59:49]RasterBufferAndPrint [16:59:49]line [16:59:49]line [16:59:49]line [16:59:49]line [16:59:49]line [16:59:49]written 0, free lines is 3300 [16:59:49]MH_Cut [16:59:49]Write to MH i2c: D1 01 00 5A 04 01 30 [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: D1 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: D1 01 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: D1 01 00 5A 04 00 2F [16:59:49]Write to MH i2c: 01 00 00 5B 04 5F [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:50]OFD Sender: No OFD packet to send [16:59:50]*** Cut start [16:59:50]*** Partial cut [16:59:50]*** CUTSNS_PIN = 1 [16:59:50]*** CUTSNS_PIN = 0 [16:59:50]*** Brake cut motor [16:59:51]Read from MH i2c: 01 [16:59:51]MH_I2C_Read... [16:59:51]*** Stop cut motor [16:59:51]*** Cut end [16:59:51]Read from MH i2c: 01 07 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [16:59:51]process_action close_receipt done [16:59:51]requested_data is exist [16:59:51]produce_requested_data [16:59:51]requested_item fm.sn is exist - process it [16:59:51]wFMCommunicate request_size=4 [16:59:51]MH_SAM_APDU [16:59:51]CAPDU: 80 11 00 00 [16:59:51]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 17 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [16:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:59:51]wFMCommunicate OK [16:59:51]requested_item fd.num is exist - process it [16:59:51]SAM_PROTO_GetFieldsCounters [16:59:51]wFMCommunicate request_size=4 [16:59:51]MH_SAM_APDU [16:59:51]CAPDU: 80 13 00 00 [16:59:51]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 62 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 87 02 00 0E 04 04 00 16 02 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 14 [16:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 87 02 00 0E 04 04 00 16 02 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 [16:59:51]wFMCommunicate OK [16:59:51]SAM_PROTO_GetFieldsCounters done [16:59:51]requested_item shift.num is exist - process it [16:59:51]requested_item shift.opened is exist - process it [16:59:51]req_shift_opened [16:59:51]FM_GetShiftState [16:59:51]SAM_PROTO_GetShiftState [16:59:51]wFMCommunicate request_size=4 [16:59:51]MH_SAM_APDU [16:59:51]CAPDU: 80 13 01 00 [16:59:51]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 0E 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 71 50 14 67 00 00 00 00 90 00 27 [16:59:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [16:59:51]wFMCommunicate OK [16:59:51]SAM_PROTO_GetShiftState done [16:59:51]FM_GetShiftState done [16:59:51]req_shift_opened done [16:59:51]requested_item shift.open_date is exist - process it [16:59:51]req_shift_open_date [16:59:51]req_shift_open_date done [16:59:51]produce_requested_data done [16:59:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165766,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [16:59:51]process_action_free close_receipt [16:59:51]json_value_free [16:59:51]json_value_free done [16:59:51]process_json_proto returns [16:59:51]Send response to host [16:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165766,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [16:59:51]free response buf [16:59:51]execute_script done [16:59:51]execute_script returns [16:59:51]free content buf [16:59:51]Sock 9.Close socket [16:59:51]Sock 9.Thread stoped [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:07]accept exits with 7 [17:02:07]New connection [17:02:07]New thread 3066920292 created [17:02:07]Thread 3066776932 joined [17:02:07]Waiting for new connection... [17:02:07] Sock 7.Parse request [17:02:07]Sock 7.Check first char [17:02:07]Sock 7.First char is OK [17:02:07]request: POST /json_proto HTTP/1.0 [17:02:07]Method: POST [17:02:07]URL: /json_proto [17:02:07]Method is POST - this is cgi request [17:02:07]url: /json_proto [17:02:07]query_string will be loaded in cgi processing [17:02:07]execute_cgi json_proto POST (null) [17:02:07]execute_cgi path=json_proto method=POST [17:02:07]POST find Content-Length [17:02:07]Host: 172.17.53.195:8080 [17:02:07]Content-Length: 679 [17:02:07]Content-Type: application/json [17:02:07] [17:02:07]POST finish read [17:02:07]Found Content-Length = 679 [17:02:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [17:02:07]execute_script... [17:02:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [17:02:07]POST & json_proto [17:02:07]process_json_proto [17:02:07]json parsed OK: [17:02:07]protocol is kg_v1.0 [17:02:07]action value=close_receipt [17:02:07]process_action close_receipt [17:02:07]cmd_close_receipt [17:02:07]MH_GetDate [17:02:07]Write to MH i2c: F0 00 00 5F 04 52 [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: F0 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: F0 09 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: F0 09 00 5F 04 00 9C 37 15 67 21 48 4A 65 C2 [17:02:07]GetLastDocTimeStamp 1729443600 [17:02:07]current date 1729443740 [17:02:07]FM_GetShiftState [17:02:07]SAM_PROTO_GetShiftState [17:02:07]wFMCommunicate request_size=4 [17:02:07]MH_SAM_APDU [17:02:07]CAPDU: 80 13 01 00 [17:02:07]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:07]Read from MH i2c: E2 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 0E 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 71 50 14 67 00 00 00 00 90 00 29 [17:02:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:02:07]wFMCommunicate OK [17:02:07]SAM_PROTO_GetShiftState done [17:02:07]FM_GetShiftState done [17:02:07]opened in 1729384561 [17:02:07]opened+sec_in_day 1729470961 [17:02:07]quantity*price = 150037 [17:02:07]sum+1 = 150039 [17:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 249 20.10.2024 17:02 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165767 ФПД: 34126048799461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170220&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165767&fm=34126048799461&tin=02508201610067®Number=0000000000091764&sum=150000 [17:02:08]StoreToDocumentArchive [17:02:08]shift 534 fd 165767 [17:02:08]save to /storage/0534/doc_00165767 [17:02:08]save last doc name /storage/0534/doc_00165767 to /storage/kkm_last_doc_name [17:02:08]save OK [17:02:08]Clear old archive folders... [17:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:02:08]tlvbuf is 014D9ED0 [17:02:08]SAM_PROTO_ClearQueue [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 09 00 00 [17:02:08]Write to MH i2c: E2 08 00 6D 04 80 09 00 00 00 00 00 00 E3 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]SAM_PROTO_ClearQueue done [17:02:08]KKMCreateOFDPacket [17:02:08]OFDProtocolAddRootSTLVToBuf [17:02:08]FM_MakeSignedData [17:02:08]FM_MakeSignedData [17:02:08]SAM_PROTO_SignData [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 01 02 [17:02:08]Write to MH i2c: E2 08 00 6E 04 80 0D 01 02 00 00 00 00 EB [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=255 [17:02:08]MH_SAM_APDU [17:02:08]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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F9 00 00 00 F4 03 04 00 9C 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 87 02 00 35 04 06 00 1F 09 97 04 [17:02:08]Write to MH i2c: E2 02 01 6F 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F9 00 00 00 F4 03 04 00 9C 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 87 02 00 35 04 06 00 1F 09 97 04 00 00 21 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=7 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 02 02 02 2A E5 [17:02:08]Write to MH i2c: E2 0A 00 70 04 80 0D 02 02 02 00 2A E5 00 00 01 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 03 02 [17:02:08]Write to MH i2c: E2 08 00 71 04 80 0D 03 02 00 00 00 00 F0 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 0B 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 0B 00 71 04 00 42 2F 56 AB 30 30 C1 ED 90 00 71 [17:02:08]RAPDU: 42 2F 56 AB 30 30 C1 ED 90 00 [17:02:08]wFMCommunicate OK [17:02:08]SAM_PROTO_SignData done [17:02:08]FM_MakeSignedData done [17:02:08]CreateOFDProtocolMessage [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 11 00 00 [17:02:08]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 17 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 48 [17:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:02:08]wFMCommunicate OK [17:02:08]CreateOFDProtocolMessage done [17:02:08]OFDSenderStorePacket 165767 [17:02:08]StoreOFDPacket docnum=165767 [17:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 67 3E 04 01 02 55 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F9 00 00 00 F4 03 04 00 9C 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 87 02 00 35 04 06 00 1F 09 97 04 2A E5 42 2F 56 AB 30 30 C1 ED [17:02:08]CheckFolder [17:02:08]dirname=/storage/ofd_packets [17:02:08]CheckFolder done [17:02:08]ProducePacketName [17:02:08]name=ofd_packets/00165767 [17:02:08]NVStorageSaveData ofd_packets/00165767 [17:02:08]File name is /storage/ofd_packets/00165767 [17:02:08]Write 298 bytes [17:02:08]NVStorageSaveData done [17:02:08]OFDSenderStorePacket done [17:02:08]KKMCreateOFDPacket done [17:02:08]NVStorageSaveData kkm_last_timestamp [17:02:08]File name is /storage/kkm_last_timestamp [17:02:08]Write 4 bytes [17:02:08]NVStorageSaveData done [17:02:08]ExternCall_PrintAddStr [17:02:08]wPrintStart [17:02:08]Write to MH i2c: 01 00 00 73 04 77 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 07 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [17:02:08]RasterBufferAndPrint [17:02:08]line Счет N : (1)220335 [17:02:08]line ИНН: 02508201610067 [17:02:08]line Контрольно-Кассовый Чек [17:02:08]line ПРОДАЖА [17:02:08]line ТРК (МРК, ГНК) : 31 [17:02:08]line Товар: 2710194210 [17:02:08]line ДТ-К-5 [17:02:08]line 19.690 * 76.20 [17:02:08]line = 1500.38 [17:02:08]line НДС 12% НСП 1% [17:02:08]line > о реализуемом товаре [17:02:08]line ОКРУГЛЕНИЕ: -0.38 [17:02:08]line ИТОГО: 1500.00 [17:02:08]line Внесено: 1500.00 [17:02:08]line СДАЧА: 0.00 [17:02:08]line НСП 1% : 13.28 [17:02:08]line НДС 12% : 159.33 [17:02:08]line Наличными: 1500.00 [17:02:08]line Безнал.: 0.00 [17:02:08]line Место: АЗС № 161 "Партнер Нефть" [17:02:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:02:08]line СНО: Общий режим [17:02:08]line Чек 249 20.10.2024 17:02 [17:02:08]line Смена: 534 ФФД: 1.0 [17:02:08]line ЗНМ: 0300000104 [17:02:08]line РНМ: 0000000000091764 [17:02:08]line Версия ККМ: 001 [17:02:08]line ФМ: 0000000000871759 [17:02:08]line ФД: 165767 [17:02:08]line ФПД: 34126048799461 [17:02:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170220&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165767&fm=34126048799461&tin=02508201610067®Number=0000000000091764&sum=150000 [17:02:09]OFD Sender: Processing packet 165767 [packets to send 48, broken 47] [17:02:09]ProducePacketName [17:02:09]name=ofd_packets/00165767 [17:02:09]OFD Sender: To server: pG, [17:02:09]CommunicateWithHost lk.salyk.kg:30040 [17:02:09]ConnectInit lk.salyk.kg [17:02:09]written 0, free lines is 4095 [17:02:09]Connected sock=10 [17:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 67 3E 04 01 02 55 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F9 00 00 00 F4 03 04 00 9C 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 87 02 00 35 04 06 00 1F 09 97 04 2A E5 42 2F 56 AB 30 30 C1 ED [17:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5D 49 47 00 F2 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 31 37 35 39 10 04 04 00 87 87 02 00 F4 03 04 00 0D DE 14 67 B6 04 01 00 00 49 D6 E1 BD CB BB 9A 3D [17:02:09]CommunicateWithHost err = 0 [17:02:09]CheckOFDResponse [17:02:09]1017 (14) - 77093643461234 [17:02:09]1041 (16) - 0000000000871759 [17:02:09]1040 (4) - 165767 [17:02:09]1012 (4) - 20.10.2024 10:40 [17:02:09]1206 (1) - 0 [17:02:09]OFD Sender: Remove packet 165767 [17:02:09]ProducePacketName [17:02:09]name=ofd_packets/00165767 [17:02:09]NVStorageDeleteData [17:02:09]Write to MH i2c: 01 00 00 9E 04 A2 [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 07 00 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 D1 0C 86 [17:02:09]RasterBufferAndPrint [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]written 0, free lines is 3288 [17:02:09]MH_Cut [17:02:09]Write to MH i2c: D1 01 00 A5 04 01 7B [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 01 00 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 01 00 A5 04 00 7A [17:02:09]Write to MH i2c: 01 00 00 A6 04 AA [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:10]OFD Sender: No OFD packet to send [17:02:10]*** Cut start [17:02:10]*** Partial cut [17:02:10]*** CUTSNS_PIN = 1 [17:02:10]*** CUTSNS_PIN = 0 [17:02:10]*** Brake cut motor [17:02:11]Read from MH i2c: 01 [17:02:11]MH_I2C_Read... [17:02:11]*** Stop cut motor [17:02:11]*** Cut end [17:02:11]Read from MH i2c: 01 07 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: 01 07 00 A6 04 00 00 00 00 00 FF 0F BF [17:02:11]process_action close_receipt done [17:02:11]requested_data is exist [17:02:11]produce_requested_data [17:02:11]requested_item fm.sn is exist - process it [17:02:11]wFMCommunicate request_size=4 [17:02:11]MH_SAM_APDU [17:02:11]CAPDU: 80 11 00 00 [17:02:11]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 17 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [17:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:02:11]wFMCommunicate OK [17:02:11]requested_item fd.num is exist - process it [17:02:11]SAM_PROTO_GetFieldsCounters [17:02:11]wFMCommunicate request_size=4 [17:02:11]MH_SAM_APDU [17:02:11]CAPDU: 80 13 00 00 [17:02:11]Write to MH i2c: E2 08 00 A8 04 80 13 00 00 00 00 00 00 28 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 62 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 62 00 A8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 87 02 00 0E 04 04 00 16 02 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 63 [17:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 87 02 00 0E 04 04 00 16 02 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:02:11]wFMCommunicate OK [17:02:11]SAM_PROTO_GetFieldsCounters done [17:02:11]requested_item shift.num is exist - process it [17:02:11]requested_item shift.opened is exist - process it [17:02:11]req_shift_opened [17:02:11]FM_GetShiftState [17:02:11]SAM_PROTO_GetShiftState [17:02:11]wFMCommunicate request_size=4 [17:02:11]MH_SAM_APDU [17:02:11]CAPDU: 80 13 01 00 [17:02:11]Write to MH i2c: E2 08 00 A9 04 80 13 01 00 00 00 00 00 2A [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 0E 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 0E 00 A9 04 00 09 00 01 71 50 14 67 00 00 00 00 90 00 72 [17:02:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:02:11]wFMCommunicate OK [17:02:11]SAM_PROTO_GetShiftState done [17:02:11]FM_GetShiftState done [17:02:11]req_shift_opened done [17:02:11]requested_item shift.open_date is exist - process it [17:02:11]req_shift_open_date [17:02:11]req_shift_open_date done [17:02:11]produce_requested_data done [17:02:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165767,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:02:11]process_action_free close_receipt [17:02:11]json_value_free [17:02:11]json_value_free done [17:02:11]process_json_proto returns [17:02:11]Send response to host [17:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165767,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:02:11]free response buf [17:02:11]execute_script done [17:02:11]execute_script returns [17:02:11]free content buf [17:02:11]Sock 7.Close socket [17:02:11]Sock 7.Thread stoped [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:02:57]accept exits with 9 [17:02:57]New connection [17:02:57]New thread 3066776932 created [17:02:57]Thread 3066920292 joined [17:02:57]Waiting for new connection... [17:02:57] Sock 9.Parse request [17:02:57]Sock 9.Check first char [17:02:57]Sock 9.First char is OK [17:02:57]request: POST /json_proto HTTP/1.0 [17:02:57]Method: POST [17:02:57]URL: /json_proto [17:02:57]Method is POST - this is cgi request [17:02:57]url: /json_proto [17:02:57]query_string will be loaded in cgi processing [17:02:57]execute_cgi json_proto POST (null) [17:02:57]execute_cgi path=json_proto method=POST [17:02:57]POST find Content-Length [17:02:57]Host: 172.17.53.195:8080 [17:02:57]Content-Length: 789 [17:02:57]Content-Type: application/json [17:02:57] [17:02:57]POST finish read [17:02:57]Found Content-Length = 789 [17:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 32.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:57]execute_script... [17:02: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)220336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 32.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:57]POST & json_proto [17:02:57]process_json_proto [17:02:57]json parsed OK: [17:02:57]protocol is kg_v1.0 [17:02:57]action value=close_receipt [17:02:57]process_action close_receipt [17:02:57]cmd_close_receipt [17:02:57]MH_GetDate [17:02:57]Write to MH i2c: F0 00 00 AA 04 9D [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: F0 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: F0 09 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: F0 09 00 AA 04 00 CF 37 15 67 21 48 4A 65 40 [17:02:57]GetLastDocTimeStamp 1729443740 [17:02:57]current date 1729443791 [17:02:57]FM_GetShiftState [17:02:57]SAM_PROTO_GetShiftState [17:02:57]wFMCommunicate request_size=4 [17:02:57]MH_SAM_APDU [17:02:57]CAPDU: 80 13 01 00 [17:02:57]Write to MH i2c: E2 08 00 AB 04 80 13 01 00 00 00 00 00 2C [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 0E 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 0E 00 AB 04 00 09 00 01 71 50 14 67 00 00 00 00 90 00 74 [17:02:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:02:57]wFMCommunicate OK [17:02:57]SAM_PROTO_GetShiftState done [17:02:57]FM_GetShiftState done [17:02:57]opened in 1729384561 [17:02:57]opened+sec_in_day 1729470961 [17:02:57]quantity*price = 0 [17:02:57]sum+1 = 1 [17:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 250 20.10.2024 17:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165768 ФПД: 126497019526134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170311&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165768&fm=126497019526134&tin=02508201610067®Number=0000000000091764&sum=0 [17:02:58]StoreToDocumentArchive [17:02:58]shift 534 fd 165768 [17:02:58]save to /storage/0534/doc_00165768 [17:02:58]save last doc name /storage/0534/doc_00165768 to /storage/kkm_last_doc_name [17:02:58]save OK [17:02:58]Clear old archive folders... [17:02:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:02:58]tlvbuf is 0165D460 [17:02:58]SAM_PROTO_ClearQueue [17:02:58]wFMCommunicate request_size=4 [17:02:58]MH_SAM_APDU [17:02:58]CAPDU: 80 09 00 00 [17:02:58]Write to MH i2c: E2 08 00 B8 04 80 09 00 00 00 00 00 00 2E [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 03 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [17:02:59]RAPDU: 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_ClearQueue done [17:02:59]KKMCreateOFDPacket [17:02:59]OFDProtocolAddRootSTLVToBuf [17:02:59]FM_MakeSignedData [17:02:59]FM_MakeSignedData [17:02:59]SAM_PROTO_SignData [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 0D 01 02 [17:02:59]Write to MH i2c: E2 08 00 B9 04 80 0D 01 02 00 00 00 00 36 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 03 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [17:02:59]RAPDU: 90 00 [17:02:59]wFMCommunicate OK [17:02:59]wFMCommunicate request_size=255 [17:02:59]MH_SAM_APDU [17:02: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 2A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 CF 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 87 02 00 35 04 06 00 73 0C 61 E9 [17:02:59]Write to MH i2c: E2 02 01 BA 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 2A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 CF 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 87 02 00 35 04 06 00 73 0C 61 E9 00 00 B2 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 03 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [17:02:59]RAPDU: 90 00 [17:02:59]wFMCommunicate OK [17:02:59]wFMCommunicate request_size=7 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 0D 02 02 02 FB F6 [17:02:59]Write to MH i2c: E2 0A 00 BB 04 80 0D 02 02 02 00 FB F6 00 00 2E [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 03 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [17:02:59]RAPDU: 90 00 [17:02:59]wFMCommunicate OK [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 0D 03 02 [17:02:59]Write to MH i2c: E2 08 00 BC 04 80 0D 03 02 00 00 00 00 3B [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0B 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0B 00 BC 04 00 DC 35 24 17 52 1A 24 2C 90 00 44 [17:02:59]RAPDU: DC 35 24 17 52 1A 24 2C 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_SignData done [17:02:59]FM_MakeSignedData done [17:02:59]CreateOFDProtocolMessage [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 11 00 00 [17:02:59]Write to MH i2c: E2 08 00 BD 04 80 11 00 00 00 00 00 00 3B [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 17 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 17 00 BD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 93 [17:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:02:59]wFMCommunicate OK [17:02:59]CreateOFDProtocolMessage done [17:02:59]OFDSenderStorePacket 165768 [17:02:59]StoreOFDPacket docnum=165768 [17:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7D 6F 04 01 A3 54 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 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 CF 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 87 02 00 35 04 06 00 73 0C 61 E9 FB F6 DC 35 24 17 52 1A 24 2C [17:02:59]CheckFolder [17:02:59]dirname=/storage/ofd_packets [17:02:59]CheckFolder done [17:02:59]ProducePacketName [17:02:59]name=ofd_packets/00165768 [17:02:59]NVStorageSaveData ofd_packets/00165768 [17:02:59]File name is /storage/ofd_packets/00165768 [17:02:59]Write 298 bytes [17:02:59]NVStorageSaveData done [17:02:59]OFDSenderStorePacket done [17:02:59]KKMCreateOFDPacket done [17:02:59]NVStorageSaveData kkm_last_timestamp [17:02:59]File name is /storage/kkm_last_timestamp [17:02:59]Write 4 bytes [17:02:59]NVStorageSaveData done [17:02:59]ExternCall_PrintAddStr [17:02:59]wPrintStart [17:02:59]Write to MH i2c: 01 00 00 BE 04 C2 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 07 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [17:02:59]RasterBufferAndPrint [17:02:59]line Счет N : (1)220336 [17:02:59]line ИНН: 02508201610067 [17:02:59]line Контрольно-Кассовый Чек [17:02:59]line ПРОДАЖА [17:02:59]line ТРК (МРК, ГНК) : 41 [17:02:59]line Товар: 2710194210 [17:02:59]line ДТ-К-5 [17:02:59]line 32.810 * 0.00 [17:02:59]line = 0.00 [17:02:59]line НДС 12% НСП 1% [17:02:59]line > о реализуемом товаре [17:02:59]line ИТОГО: 0.00 [17:02:59]line НСП 1% : 0.00 [17:02:59]line НДС 12% : 0.00 [17:02:59]line Наличными: 0.00 [17:02:59]line Безнал.: 0.00 [17:02:59]line Место: АЗС № 161 "Партнер Нефть" [17:02:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:02:59]line СНО: Общий режим [17:02:59]line Чек 250 20.10.2024 17:03 [17:02:59]line Смена: 534 ФФД: 1.0 [17:02:59]line ЗНМ: 0300000104 [17:02:59]line РНМ: 0000000000091764 [17:02:59]line Версия ККМ: 001 [17:02:59]line Талоны: Топливная Карта [17:02:59]line 38866 [17:02:59]line ФМ: 0000000000871759 [17:02:59]line ФД: 165768 [17:02:59]line ФПД: 126497019526134 [17:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170311&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165768&fm=126497019526134&tin=02508201610067®Number=0000000000091764&sum=0 [17:02:59]OFD Sender: Processing packet 165768 [packets to send 48, broken 47] [17:02:59]ProducePacketName [17:02:59]name=ofd_packets/00165768 [17:02:59]OFD Sender: To server: pG, [17:02:59]CommunicateWithHost lk.salyk.kg:30040 [17:02:59]ConnectInit lk.salyk.kg [17:02:59]written 0, free lines is 4095 [17:02:59]Connected sock=10 [17:02:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7D 6F 04 01 A3 54 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 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 CF 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 87 02 00 35 04 06 00 73 0C 61 E9 FB F6 DC 35 24 17 52 1A 24 2C [17:03:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7E 09 47 00 0A 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 31 37 35 39 10 04 04 00 88 87 02 00 F4 03 04 00 40 DE 14 67 B6 04 01 00 00 58 95 A0 35 6C 7A 86 54 [17:03:00]CommunicateWithHost err = 0 [17:03:00]CheckOFDResponse [17:03:00]1017 (14) - 77093643461234 [17:03:00]1041 (16) - 0000000000871759 [17:03:00]1040 (4) - 165768 [17:03:00]1012 (4) - 20.10.2024 10:41 [17:03:00]1206 (1) - 0 [17:03:00]OFD Sender: Remove packet 165768 [17:03:00]ProducePacketName [17:03:00]name=ofd_packets/00165768 [17:03:00]NVStorageDeleteData [17:03:00]Write to MH i2c: 01 00 00 E8 04 EC [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: 01 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: 01 07 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 DD 0C DC [17:03:00]RasterBufferAndPrint [17:03:00]line [17:03:00]line [17:03:00]line [17:03:00]line [17:03:00]line [17:03:00]written 0, free lines is 3300 [17:03:00]MH_Cut [17:03:00]Write to MH i2c: D1 01 00 EF 04 01 C5 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: D1 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: D1 01 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: D1 01 00 EF 04 00 C4 [17:03:00]Write to MH i2c: 01 00 00 F0 04 F4 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]OFD Sender: No OFD packet to send [17:03:01]*** Cut start [17:03:01]*** Partial cut [17:03:01]*** CUTSNS_PIN = 1 [17:03:01]*** CUTSNS_PIN = 0 [17:03:01]*** Brake cut motor [17:03:01]Read from MH i2c: 01 [17:03:01]MH_I2C_Read... [17:03:01]*** Stop cut motor [17:03:01]*** Cut end [17:03:01]Read from MH i2c: 01 07 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 FF 0F 09 [17:03:01]process_action close_receipt done [17:03:01]requested_data is exist [17:03:01]produce_requested_data [17:03:01]requested_item fm.sn is exist - process it [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 11 00 00 [17:03:01]Write to MH i2c: E2 08 00 F1 04 80 11 00 00 00 00 00 00 6F [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 F1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C7 [17:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:03:01]wFMCommunicate OK [17:03:01]requested_item fd.num is exist - process it [17:03:01]SAM_PROTO_GetFieldsCounters [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 13 00 00 [17:03:01]Write to MH i2c: E2 08 00 F2 04 80 13 00 00 00 00 00 00 72 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 62 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 62 00 F2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 87 02 00 0E 04 04 00 16 02 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 B1 [17:03:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 87 02 00 0E 04 04 00 16 02 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:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_GetFieldsCounters done [17:03:01]requested_item shift.num is exist - process it [17:03:01]requested_item shift.opened is exist - process it [17:03:01]req_shift_opened [17:03:01]FM_GetShiftState [17:03:01]SAM_PROTO_GetShiftState [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 13 01 00 [17:03:01]Write to MH i2c: E2 08 00 F3 04 80 13 01 00 00 00 00 00 74 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 F3 04 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BC [17:03:01]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_GetShiftState done [17:03:01]FM_GetShiftState done [17:03:01]req_shift_opened done [17:03:01]requested_item shift.open_date is exist - process it [17:03:01]req_shift_open_date [17:03:01]req_shift_open_date done [17:03:01]produce_requested_data done [17:03:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165768,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:03:01]process_action_free close_receipt [17:03:01]json_value_free [17:03:01]json_value_free done [17:03:01]process_json_proto returns [17:03:01]Send response to host [17:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165768,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:03:01]free response buf [17:03:01]execute_script done [17:03:01]execute_script returns [17:03:01]free content buf [17:03:01]Sock 9.Close socket [17:03:01]Sock 9.Thread stoped [17:03:02]accept exits with 7 [17:03:02]New connection [17:03:02]New thread 3066920292 created [17:03:02]Thread 3066776932 joined [17:03:02]Waiting for new connection... [17:03:02] Sock 7.Parse request [17:03:02]Sock 7.Check first char [17:03:02]Sock 7.First char is OK [17:03:02]request: POST /json_proto HTTP/1.0 [17:03:02]Method: POST [17:03:02]URL: /json_proto [17:03:02]Method is POST - this is cgi request [17:03:02]url: /json_proto [17:03:02]query_string will be loaded in cgi processing [17:03:02]execute_cgi json_proto POST (null) [17:03:02]execute_cgi path=json_proto method=POST [17:03:02]POST find Content-Length [17:03:02]Host: 172.17.53.195:8080 [17:03:02]Content-Length: 677 [17:03:02]Content-Type: application/json [17:03:02] [17:03:02]POST finish read [17:03:02]Found Content-Length = 677 [17:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:02]execute_script... [17:03: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)220337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:02]POST & json_proto [17:03:02]process_json_proto [17:03:02]json parsed OK: [17:03:02]protocol is kg_v1.0 [17:03:02]action value=close_receipt [17:03:02]process_action close_receipt [17:03:02]cmd_close_receipt [17:03:02]MH_GetDate [17:03:02]Write to MH i2c: F0 00 00 F4 04 E7 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: F0 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: F0 09 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: F0 09 00 F4 04 00 D3 37 15 67 21 48 4A 65 8E [17:03:02]GetLastDocTimeStamp 1729443791 [17:03:02]current date 1729443795 [17:03:02]FM_GetShiftState [17:03:02]SAM_PROTO_GetShiftState [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 13 01 00 [17:03:02]Write to MH i2c: E2 08 00 F5 04 80 13 01 00 00 00 00 00 76 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 0E 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 0E 00 F5 04 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BE [17:03:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:03:02]wFMCommunicate OK [17:03:02]SAM_PROTO_GetShiftState done [17:03:02]FM_GetShiftState done [17:03:02]opened in 1729384561 [17:03:02]opened+sec_in_day 1729470961 [17:03:02]quantity*price = 30038 [17:03:02]sum+1 = 30039 [17:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 251 20.10.2024 17:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165769 ФПД: 91384291172007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165769&fm=91384291172007&tin=02508201610067®Number=0000000000091764&sum=30000 [17:03:03]StoreToDocumentArchive [17:03:03]shift 534 fd 165769 [17:03:03]save to /storage/0534/doc_00165769 [17:03:03]save last doc name /storage/0534/doc_00165769 to /storage/kkm_last_doc_name [17:03:03]save OK [17:03:03]Clear old archive folders... [17:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:03]tlvbuf is 01482DE0 [17:03:03]SAM_PROTO_ClearQueue [17:03:03]wFMCommunicate request_size=4 [17:03:03]MH_SAM_APDU [17:03:03]CAPDU: 80 09 00 00 [17:03:03]Write to MH i2c: E2 08 00 02 05 80 09 00 00 00 00 00 00 79 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 03 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [17:03:03]RAPDU: 90 00 [17:03:03]wFMCommunicate OK [17:03:03]SAM_PROTO_ClearQueue done [17:03:03]KKMCreateOFDPacket [17:03:03]OFDProtocolAddRootSTLVToBuf [17:03:03]FM_MakeSignedData [17:03:03]FM_MakeSignedData [17:03:03]SAM_PROTO_SignData [17:03:03]wFMCommunicate request_size=4 [17:03:03]MH_SAM_APDU [17:03:03]CAPDU: 80 0D 01 02 [17:03:03]Write to MH i2c: E2 08 00 03 05 80 0D 01 02 00 00 00 00 81 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 03 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [17:03:03]RAPDU: 90 00 [17:03:03]wFMCommunicate OK [17:03:03]wFMCommunicate request_size=255 [17:03:03]MH_SAM_APDU [17:03: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 D3 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 87 02 00 35 04 06 00 53 [17:03:03]Write to MH i2c: E2 02 01 04 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 D3 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 87 02 00 35 04 06 00 53 00 00 09 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 03 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [17:03:04]RAPDU: 90 00 [17:03:04]wFMCommunicate OK [17:03:04]wFMCommunicate request_size=10 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 0D 02 02 05 1D 10 36 9E A7 [17:03:04]Write to MH i2c: E2 0D 00 05 05 80 0D 02 02 05 00 1D 10 36 9E A7 00 00 36 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 03 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [17:03:04]RAPDU: 90 00 [17:03:04]wFMCommunicate OK [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 0D 03 02 [17:03:04]Write to MH i2c: E2 08 00 06 05 80 0D 03 02 00 00 00 00 86 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0B 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0B 00 06 05 00 F6 A6 51 AD 99 9A F0 DA 90 00 1E [17:03:04]RAPDU: F6 A6 51 AD 99 9A F0 DA 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_SignData done [17:03:04]FM_MakeSignedData done [17:03:04]CreateOFDProtocolMessage [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 11 00 00 [17:03:04]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 07 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [17:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:03:04]wFMCommunicate OK [17:03:04]CreateOFDProtocolMessage done [17:03:04]OFDSenderStorePacket 165769 [17:03:04]StoreOFDPacket docnum=165769 [17:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 0A 07 01 88 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 D3 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 87 02 00 35 04 06 00 53 1D 10 36 9E A7 F6 A6 51 AD 99 9A F0 DA [17:03:04]CheckFolder [17:03:04]dirname=/storage/ofd_packets [17:03:04]CheckFolder done [17:03:04]ProducePacketName [17:03:04]name=ofd_packets/00165769 [17:03:04]NVStorageSaveData ofd_packets/00165769 [17:03:04]File name is /storage/ofd_packets/00165769 [17:03:04]Write 301 bytes [17:03:04]NVStorageSaveData done [17:03:04]OFDSenderStorePacket done [17:03:04]KKMCreateOFDPacket done [17:03:04]NVStorageSaveData kkm_last_timestamp [17:03:04]File name is /storage/kkm_last_timestamp [17:03:04]Write 4 bytes [17:03:04]NVStorageSaveData done [17:03:04]ExternCall_PrintAddStr [17:03:04]wPrintStart [17:03:04]Write to MH i2c: 01 00 00 08 05 0D [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 FF 0F 22 [17:03:04]RasterBufferAndPrint [17:03:04]line Счет N : (1)220337 [17:03:04]line ИНН: 02508201610067 [17:03:04]line Контрольно-Кассовый Чек [17:03:04]line ПРОДАЖА [17:03:04]line ТРК (МРК, ГНК) : 33 [17:03:04]line Товар: 2710124130 [17:03:04]line Аи-92-К-5 [17:03:04]line 4.490 * 66.90 [17:03:04]line = 300.38 [17:03:04]line НДС 12% НСП 1% [17:03:04]line > о реализуемом товаре [17:03:04]line ОКРУГЛЕНИЕ: -0.38 [17:03:04]line ИТОГО: 300.00 [17:03:04]line Внесено: 300.00 [17:03:04]line СДАЧА: 0.00 [17:03:04]line НСП 1% : 2.66 [17:03:04]line НДС 12% : 31.90 [17:03:04]line Наличными: 300.00 [17:03:04]line Безнал.: 0.00 [17:03:04]line Место: АЗС № 161 "Партнер Нефть" [17:03:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:03:04]line СНО: Общий режим [17:03:04]line Чек 251 20.10.2024 17:03 [17:03:04]line Смена: 534 ФФД: 1.0 [17:03:04]line ЗНМ: 0300000104 [17:03:04]line РНМ: 0000000000091764 [17:03:04]line Версия ККМ: 001 [17:03:04]line ФМ: 0000000000871759 [17:03:04]line ФД: 165769 [17:03:04]line ФПД: 91384291172007 [17:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165769&fm=91384291172007&tin=02508201610067®Number=0000000000091764&sum=30000 [17:03:04]written 0, free lines is 4095 [17:03:04]OFD Sender: Processing packet 165769 [packets to send 48, broken 47] [17:03:04]ProducePacketName [17:03:04]name=ofd_packets/00165769 [17:03:04]OFD Sender: To server: pG, [17:03:04]CommunicateWithHost lk.salyk.kg:30040 [17:03:04]ConnectInit lk.salyk.kg [17:03:04]Connected sock=10 [17:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 0A 07 01 88 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 D3 37 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 87 02 00 35 04 06 00 53 1D 10 36 9E A7 F6 A6 51 AD 99 9A F0 DA [17:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 75 47 00 EA A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 87 02 00 F4 03 04 00 45 DE 14 67 B6 04 01 00 00 20 B4 B6 A3 05 7B CC 35 [17:03:04]CommunicateWithHost err = 0 [17:03:04]CheckOFDResponse [17:03:04]1017 (14) - 77093643461234 [17:03:04]1041 (16) - 0000000000871759 [17:03:04]1040 (4) - 165769 [17:03:04]1012 (4) - 20.10.2024 10:41 [17:03:04]1206 (1) - 0 [17:03:04]OFD Sender: Remove packet 165769 [17:03:04]ProducePacketName [17:03:04]name=ofd_packets/00165769 [17:03:04]NVStorageDeleteData [17:03:04]Write to MH i2c: 01 00 00 33 05 38 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 CD 0C 18 [17:03:04]RasterBufferAndPrint [17:03:04]line [17:03:04]line [17:03:04]line [17:03:04]line [17:03:04]line [17:03:04]written 0, free lines is 3289 [17:03:04]MH_Cut [17:03:04]Write to MH i2c: D1 01 00 3A 05 01 11 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: D1 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: D1 01 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: D1 01 00 3A 05 00 10 [17:03:04]Write to MH i2c: 01 00 00 3B 05 40 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:05]OFD Sender: No OFD packet to send [17:03:05]*** Cut start [17:03:05]*** Partial cut [17:03:05]*** CUTSNS_PIN = 1 [17:03:05]*** CUTSNS_PIN = 0 [17:03:05]*** Brake cut motor [17:03:06]Read from MH i2c: 01 [17:03:06]MH_I2C_Read... [17:03:06]*** Stop cut motor [17:03:06]*** Cut end [17:03:06]Read from MH i2c: 01 07 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: 01 07 00 3B 05 00 00 00 00 00 FF 0F 55 [17:03:06]process_action close_receipt done [17:03:06]requested_data is exist [17:03:06]produce_requested_data [17:03:06]requested_item fm.sn is exist - process it [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 11 00 00 [17:03:06]Write to MH i2c: E2 08 00 3C 05 80 11 00 00 00 00 00 00 BB [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 17 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 17 00 3C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [17:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:03:06]wFMCommunicate OK [17:03:06]requested_item fd.num is exist - process it [17:03:06]SAM_PROTO_GetFieldsCounters [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 13 00 00 [17:03:06]Write to MH i2c: E2 08 00 3D 05 80 13 00 00 00 00 00 00 BE [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 62 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 62 00 3D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 87 02 00 0E 04 04 00 16 02 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 01 [17:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 87 02 00 0E 04 04 00 16 02 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:03:06]wFMCommunicate OK [17:03:06]SAM_PROTO_GetFieldsCounters done [17:03:06]requested_item shift.num is exist - process it [17:03:06]requested_item shift.opened is exist - process it [17:03:06]req_shift_opened [17:03:06]FM_GetShiftState [17:03:06]SAM_PROTO_GetShiftState [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 13 01 00 [17:03:06]Write to MH i2c: E2 08 00 3E 05 80 13 01 00 00 00 00 00 C0 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 0E 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 0E 00 3E 05 00 09 00 01 71 50 14 67 00 00 00 00 90 00 08 [17:03:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:03:06]wFMCommunicate OK [17:03:06]SAM_PROTO_GetShiftState done [17:03:06]FM_GetShiftState done [17:03:06]req_shift_opened done [17:03:06]requested_item shift.open_date is exist - process it [17:03:06]req_shift_open_date [17:03:06]req_shift_open_date done [17:03:06]produce_requested_data done [17:03:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165769,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:03:06]process_action_free close_receipt [17:03:06]json_value_free [17:03:06]json_value_free done [17:03:06]process_json_proto returns [17:03:06]Send response to host [17:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165769,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:03:06]free response buf [17:03:06]execute_script done [17:03:06]execute_script returns [17:03:06]free content buf [17:03:06]Sock 7.Close socket [17:03:06]Sock 7.Thread stoped [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:42]accept exits with 9 [17:06:42]New connection [17:06:42]New thread 3066776932 created [17:06:42]Thread 3066920292 joined [17:06:42]Waiting for new connection... [17:06:42] Sock 9.Parse request [17:06:42]Sock 9.Check first char [17:06:42]Sock 9.First char is OK [17:06:42]request: POST /json_proto HTTP/1.0 [17:06:42]Method: POST [17:06:42]URL: /json_proto [17:06:42]Method is POST - this is cgi request [17:06:42]url: /json_proto [17:06:42]query_string will be loaded in cgi processing [17:06:42]execute_cgi json_proto POST (null) [17:06:42]execute_cgi path=json_proto method=POST [17:06:42]POST find Content-Length [17:06:42]Host: 172.17.53.195:8080 [17:06:42]Content-Length: 789 [17:06:42]Content-Type: application/json [17:06:42] [17:06:42]POST finish read [17:06:42]Found Content-Length = 789 [17:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:42]execute_script... [17:06: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)220338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:42]POST & json_proto [17:06:42]process_json_proto [17:06:42]json parsed OK: [17:06:42]protocol is kg_v1.0 [17:06:42]action value=close_receipt [17:06:42]process_action close_receipt [17:06:42]cmd_close_receipt [17:06:42]MH_GetDate [17:06:42]Write to MH i2c: F0 00 00 3F 05 33 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: F0 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: F0 09 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: F0 09 00 3F 05 00 AF 38 15 67 21 48 4A 65 B7 [17:06:42]GetLastDocTimeStamp 1729443795 [17:06:42]current date 1729444015 [17:06:42]FM_GetShiftState [17:06:42]SAM_PROTO_GetShiftState [17:06:42]wFMCommunicate request_size=4 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 13 01 00 [17:06:42]Write to MH i2c: E2 08 00 40 05 80 13 01 00 00 00 00 00 C2 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 0E 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 0E 00 40 05 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0A [17:06:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:06:42]wFMCommunicate OK [17:06:42]SAM_PROTO_GetShiftState done [17:06:42]FM_GetShiftState done [17:06:42]opened in 1729384561 [17:06:42]opened+sec_in_day 1729470961 [17:06:42]quantity*price = 0 [17:06:42]sum+1 = 1 [17:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 252 20.10.2024 17:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165770 ФПД: 4908044613067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165770&fm=4908044613067&tin=02508201610067®Number=0000000000091764&sum=0 [17:06:43]StoreToDocumentArchive [17:06:43]shift 534 fd 165770 [17:06:43]save to /storage/0534/doc_00165770 [17:06:43]save last doc name /storage/0534/doc_00165770 to /storage/kkm_last_doc_name [17:06:43]save OK [17:06:43]Clear old archive folders... [17:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:06:43]tlvbuf is 0146A0F0 [17:06:43]SAM_PROTO_ClearQueue [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 09 00 00 [17:06:43]Write to MH i2c: E2 08 00 4D 05 80 09 00 00 00 00 00 00 C4 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]SAM_PROTO_ClearQueue done [17:06:43]KKMCreateOFDPacket [17:06:43]OFDProtocolAddRootSTLVToBuf [17:06:43]FM_MakeSignedData [17:06:43]FM_MakeSignedData [17:06:43]SAM_PROTO_SignData [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 0D 01 02 [17:06:43]Write to MH i2c: E2 08 00 4E 05 80 0D 01 02 00 00 00 00 CC [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]wFMCommunicate request_size=255 [17:06:43]MH_SAM_APDU [17:06: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 AF 38 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 87 02 00 35 04 06 00 04 76 BE 41 [17:06:43]Write to MH i2c: E2 02 01 4F 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 AF 38 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 87 02 00 35 04 06 00 04 76 BE 41 00 00 23 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [17:06:44]RAPDU: 90 00 [17:06:44]wFMCommunicate OK [17:06:44]wFMCommunicate request_size=7 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 0D 02 02 02 75 CB [17:06:44]Write to MH i2c: E2 0A 00 50 05 80 0D 02 02 02 00 75 CB 00 00 13 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [17:06:44]RAPDU: 90 00 [17:06:44]wFMCommunicate OK [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 0D 03 02 [17:06:44]Write to MH i2c: E2 08 00 51 05 80 0D 03 02 00 00 00 00 D1 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 0B 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 0B 00 51 05 00 27 24 0A 72 7C C8 B6 11 90 00 A4 [17:06:44]RAPDU: 27 24 0A 72 7C C8 B6 11 90 00 [17:06:44]wFMCommunicate OK [17:06:44]SAM_PROTO_SignData done [17:06:44]FM_MakeSignedData done [17:06:44]CreateOFDProtocolMessage [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 11 00 00 [17:06:44]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 17 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [17:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:06:44]wFMCommunicate OK [17:06:44]CreateOFDProtocolMessage done [17:06:44]OFDSenderStorePacket 165770 [17:06:44]StoreOFDPacket docnum=165770 [17:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 77 BD 04 01 74 5A 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 AF 38 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 87 02 00 35 04 06 00 04 76 BE 41 75 CB 27 24 0A 72 7C C8 B6 11 [17:06:44]CheckFolder [17:06:44]dirname=/storage/ofd_packets [17:06:44]CheckFolder done [17:06:44]ProducePacketName [17:06:44]name=ofd_packets/00165770 [17:06:44]NVStorageSaveData ofd_packets/00165770 [17:06:44]File name is /storage/ofd_packets/00165770 [17:06:44]Write 298 bytes [17:06:44]NVStorageSaveData done [17:06:44]OFDSenderStorePacket done [17:06:44]KKMCreateOFDPacket done [17:06:44]NVStorageSaveData kkm_last_timestamp [17:06:44]File name is /storage/kkm_last_timestamp [17:06:44]Write 4 bytes [17:06:44]NVStorageSaveData done [17:06:44]ExternCall_PrintAddStr [17:06:44]wPrintStart [17:06:44]Write to MH i2c: 01 00 00 53 05 58 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 07 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 FF 0F 6D [17:06:44]RasterBufferAndPrint [17:06:44]line Счет N : (1)220338 [17:06:44]line ИНН: 02508201610067 [17:06:44]line Контрольно-Кассовый Чек [17:06:44]line ПРОДАЖА [17:06:44]line ТРК (МРК, ГНК) : 31 [17:06:44]line Товар: 2710194210 [17:06:44]line ДТ-К-5 [17:06:44]line 26.250 * 0.00 [17:06:44]line = 0.00 [17:06:44]line НДС 12% НСП 1% [17:06:44]line > о реализуемом товаре [17:06:44]line ИТОГО: 0.00 [17:06:44]line НСП 1% : 0.00 [17:06:44]line НДС 12% : 0.00 [17:06:44]line Наличными: 0.00 [17:06:44]line Безнал.: 0.00 [17:06:44]line Место: АЗС № 161 "Партнер Нефть" [17:06:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:06:44]line СНО: Общий режим [17:06:44]line Чек 252 20.10.2024 17:06 [17:06:44]line Смена: 534 ФФД: 1.0 [17:06:44]line ЗНМ: 0300000104 [17:06:44]line РНМ: 0000000000091764 [17:06:44]line Версия ККМ: 001 [17:06:44]line Талоны: Топливная Карта [17:06:44]line 38866 [17:06:44]line ФМ: 0000000000871759 [17:06:44]line ФД: 165770 [17:06:44]line ФПД: 4908044613067 [17:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165770&fm=4908044613067&tin=02508201610067®Number=0000000000091764&sum=0 [17:06:44]OFD Sender: Processing packet 165770 [packets to send 48, broken 47] [17:06:44]ProducePacketName [17:06:44]name=ofd_packets/00165770 [17:06:44]OFD Sender: To server: pG, [17:06:44]CommunicateWithHost lk.salyk.kg:30040 [17:06:44]ConnectInit lk.salyk.kg [17:06:44]written 0, free lines is 4095 [17:06:44]Connected sock=10 [17:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 77 BD 04 01 74 5A 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 AF 38 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 87 02 00 35 04 06 00 04 76 BE 41 75 CB 27 24 0A 72 7C C8 B6 11 [17:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 07 6D 47 00 89 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 87 02 00 F4 03 04 00 21 DF 14 67 B6 04 01 00 00 9C 33 54 94 16 E2 EB D9 [17:06:44]CommunicateWithHost err = 0 [17:06:44]CheckOFDResponse [17:06:44]1017 (14) - 77093643461234 [17:06:44]1041 (16) - 0000000000871759 [17:06:44]1040 (4) - 165770 [17:06:44]1012 (4) - 20.10.2024 10:44 [17:06:44]1206 (1) - 0 [17:06:44]OFD Sender: Remove packet 165770 [17:06:44]ProducePacketName [17:06:44]name=ofd_packets/00165770 [17:06:44]NVStorageDeleteData [17:06:44]Write to MH i2c: 01 00 00 7D 05 82 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 07 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 D6 0C 6B [17:06:44]RasterBufferAndPrint [17:06:44]line [17:06:44]line [17:06:44]line [17:06:44]line [17:06:44]line [17:06:44]written 0, free lines is 3293 [17:06:44]MH_Cut [17:06:44]Write to MH i2c: D1 01 00 84 05 01 5B [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: D1 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: D1 01 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: D1 01 00 84 05 00 5A [17:06:44]Write to MH i2c: 01 00 00 85 05 8A [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:45]OFD Sender: No OFD packet to send [17:06:45]*** Cut start [17:06:45]*** Partial cut [17:06:45]*** CUTSNS_PIN = 1 [17:06:45]*** CUTSNS_PIN = 0 [17:06:46]*** Brake cut motor [17:06:46]Read from MH i2c: 01 [17:06:46]MH_I2C_Read... [17:06:46]*** Stop cut motor [17:06:46]*** Cut end [17:06:46]Read from MH i2c: 01 07 00 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: 01 07 00 85 05 00 00 00 00 00 FF 0F 9F [17:06:46]process_action close_receipt done [17:06:46]requested_data is exist [17:06:46]produce_requested_data [17:06:46]requested_item fm.sn is exist - process it [17:06:46]wFMCommunicate request_size=4 [17:06:46]MH_SAM_APDU [17:06:46]CAPDU: 80 11 00 00 [17:06:46]Write to MH i2c: E2 08 00 86 05 80 11 00 00 00 00 00 00 05 [17:06:46]Write i2c OK [17:06:46]MH_I2C_Read... [17:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:46]Read from MH i2c: E2 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 17 00 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 17 00 86 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [17:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:06:46]wFMCommunicate OK [17:06:46]requested_item fd.num is exist - process it [17:06:46]SAM_PROTO_GetFieldsCounters [17:06:46]wFMCommunicate request_size=4 [17:06:46]MH_SAM_APDU [17:06:46]CAPDU: 80 13 00 00 [17:06:46]Write to MH i2c: E2 08 00 87 05 80 13 00 00 00 00 00 00 08 [17:06:46]Write i2c OK [17:06:46]MH_I2C_Read... [17:06:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:46]Read from MH i2c: E2 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 62 00 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 62 00 87 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 87 02 00 0E 04 04 00 16 02 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 4F [17:06:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 87 02 00 0E 04 04 00 16 02 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:06:46]wFMCommunicate OK [17:06:46]SAM_PROTO_GetFieldsCounters done [17:06:46]requested_item shift.num is exist - process it [17:06:46]requested_item shift.opened is exist - process it [17:06:46]req_shift_opened [17:06:46]FM_GetShiftState [17:06:46]SAM_PROTO_GetShiftState [17:06:46]wFMCommunicate request_size=4 [17:06:46]MH_SAM_APDU [17:06:46]CAPDU: 80 13 01 00 [17:06:46]Write to MH i2c: E2 08 00 88 05 80 13 01 00 00 00 00 00 0A [17:06:46]Write i2c OK [17:06:46]MH_I2C_Read... [17:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:46]Read from MH i2c: E2 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 0E 00 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 0E 00 88 05 00 09 00 01 71 50 14 67 00 00 00 00 90 00 52 [17:06:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:06:46]wFMCommunicate OK [17:06:46]SAM_PROTO_GetShiftState done [17:06:46]FM_GetShiftState done [17:06:46]req_shift_opened done [17:06:46]requested_item shift.open_date is exist - process it [17:06:46]req_shift_open_date [17:06:46]req_shift_open_date done [17:06:46]produce_requested_data done [17:06:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165770,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:06:46]process_action_free close_receipt [17:06:46]json_value_free [17:06:46]json_value_free done [17:06:46]process_json_proto returns [17:06:46]Send response to host [17:06:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165770,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:06:46]free response buf [17:06:46]execute_script done [17:06:46]execute_script returns [17:06:46]free content buf [17:06:46]Sock 9.Close socket [17:06:46]Sock 9.Thread stoped [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:07:59]accept exits with 7 [17:07:59]New connection [17:07:59]New thread 3066920292 created [17:07:59]Thread 3066776932 joined [17:07:59]Waiting for new connection... [17:07:59] Sock 7.Parse request [17:07:59]Sock 7.Check first char [17:07:59]Sock 7.First char is OK [17:07:59]request: POST /json_proto HTTP/1.0 [17:07:59]Method: POST [17:07:59]URL: /json_proto [17:07:59]Method is POST - this is cgi request [17:07:59]url: /json_proto [17:07:59]query_string will be loaded in cgi processing [17:07:59]execute_cgi json_proto POST (null) [17:07:59]execute_cgi path=json_proto method=POST [17:07:59]POST find Content-Length [17:07:59]Host: 172.17.53.195:8080 [17:07:59]Content-Length: 682 [17:07:59]Content-Type: application/json [17:07:59] [17:07:59]POST finish read [17:07:59]Found Content-Length = 682 [17:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [17:07:59]execute_script... [17:07: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)220339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [17:07:59]POST & json_proto [17:07:59]process_json_proto [17:07:59]json parsed OK: [17:07:59]protocol is kg_v1.0 [17:07:59]action value=close_receipt [17:07:59]process_action close_receipt [17:07:59]cmd_close_receipt [17:07:59]MH_GetDate [17:07:59]Write to MH i2c: F0 00 00 89 05 7D [17:07:59]Write i2c OK [17:07:59]MH_I2C_Read... [17:07:59]Read from MH i2c: F0 [17:07:59]MH_I2C_Read... [17:07:59]Read from MH i2c: F0 09 00 [17:07:59]MH_I2C_Read... [17:07:59]Read from MH i2c: F0 09 00 89 05 00 FD 38 15 67 21 48 4A 65 4F [17:07:59]GetLastDocTimeStamp 1729444015 [17:07:59]current date 1729444093 [17:07:59]FM_GetShiftState [17:07:59]SAM_PROTO_GetShiftState [17:07:59]wFMCommunicate request_size=4 [17:07:59]MH_SAM_APDU [17:07:59]CAPDU: 80 13 01 00 [17:07:59]Write to MH i2c: E2 08 00 8A 05 80 13 01 00 00 00 00 00 0C [17:07:59]Write i2c OK [17:07:59]MH_I2C_Read... [17:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:59]Read from MH i2c: E2 [17:07:59]MH_I2C_Read... [17:07:59]Read from MH i2c: E2 0E 00 [17:07:59]MH_I2C_Read... [17:07:59]Read from MH i2c: E2 0E 00 8A 05 00 09 00 01 71 50 14 67 00 00 00 00 90 00 54 [17:07:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:07:59]wFMCommunicate OK [17:07:59]SAM_PROTO_GetShiftState done [17:07:59]FM_GetShiftState done [17:07:59]opened in 1729384561 [17:07:59]opened+sec_in_day 1729470961 [17:07:59]quantity*price = 200043 [17:07:59]sum+1 = 200044 [17:07:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 253 20.10.2024 17:08 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165771 ФПД: 201629357116026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165771&fm=201629357116026&tin=02508201610067®Number=0000000000091764&sum=200000 [17:08:00]StoreToDocumentArchive [17:08:00]shift 534 fd 165771 [17:08:00]save to /storage/0534/doc_00165771 [17:08:00]save last doc name /storage/0534/doc_00165771 to /storage/kkm_last_doc_name [17:08:00]save OK [17:08:00]Clear old archive folders... [17:08:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:00]tlvbuf is 01469B60 [17:08:00]SAM_PROTO_ClearQueue [17:08:00]wFMCommunicate request_size=4 [17:08:00]MH_SAM_APDU [17:08:00]CAPDU: 80 09 00 00 [17:08:00]Write to MH i2c: E2 08 00 97 05 80 09 00 00 00 00 00 00 0E [17:08:00]Write i2c OK [17:08:00]MH_I2C_Read... [17:08:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:00]Read from MH i2c: E2 [17:08:00]MH_I2C_Read... [17:08:00]Read from MH i2c: E2 03 00 [17:08:00]MH_I2C_Read... [17:08:00]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [17:08:00]RAPDU: 90 00 [17:08:00]wFMCommunicate OK [17:08:00]SAM_PROTO_ClearQueue done [17:08:00]KKMCreateOFDPacket [17:08:00]OFDProtocolAddRootSTLVToBuf [17:08:00]FM_MakeSignedData [17:08:00]FM_MakeSignedData [17:08:00]SAM_PROTO_SignData [17:08:00]wFMCommunicate request_size=4 [17:08:00]MH_SAM_APDU [17:08:00]CAPDU: 80 0D 01 02 [17:08:00]Write to MH i2c: E2 08 00 98 05 80 0D 01 02 00 00 00 00 16 [17:08:00]Write i2c OK [17:08:00]MH_I2C_Read... [17:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:01]Read from MH i2c: E2 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 03 00 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [17:08:01]RAPDU: 90 00 [17:08:01]wFMCommunicate OK [17:08:01]wFMCommunicate request_size=255 [17:08:01]MH_SAM_APDU [17:08:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 FD 00 00 00 F4 03 04 00 FD 38 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 87 02 00 35 04 06 00 B7 [17:08:01]Write to MH i2c: E2 02 01 99 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 FD 00 00 00 F4 03 04 00 FD 38 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 87 02 00 35 04 06 00 B7 00 00 E5 [17:08:01]Write i2c OK [17:08:01]MH_I2C_Read... [17:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:01]Read from MH i2c: E2 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 03 00 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [17:08:01]RAPDU: 90 00 [17:08:01]wFMCommunicate OK [17:08:01]wFMCommunicate request_size=10 [17:08:01]MH_SAM_APDU [17:08:01]CAPDU: 80 0D 02 02 05 61 7E 35 0A 7A [17:08:01]Write to MH i2c: E2 0D 00 9A 05 80 0D 02 02 05 00 61 7E 35 0A 7A 00 00 BB [17:08:01]Write i2c OK [17:08:01]MH_I2C_Read... [17:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:01]Read from MH i2c: E2 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 03 00 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [17:08:01]RAPDU: 90 00 [17:08:01]wFMCommunicate OK [17:08:01]wFMCommunicate request_size=4 [17:08:01]MH_SAM_APDU [17:08:01]CAPDU: 80 0D 03 02 [17:08:01]Write to MH i2c: E2 08 00 9B 05 80 0D 03 02 00 00 00 00 1B [17:08:01]Write i2c OK [17:08:01]MH_I2C_Read... [17:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:01]Read from MH i2c: E2 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 0B 00 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 0B 00 9B 05 00 97 2F 32 FC 0F 51 FF D1 90 00 40 [17:08:01]RAPDU: 97 2F 32 FC 0F 51 FF D1 90 00 [17:08:01]wFMCommunicate OK [17:08:01]SAM_PROTO_SignData done [17:08:01]FM_MakeSignedData done [17:08:01]CreateOFDProtocolMessage [17:08:01]wFMCommunicate request_size=4 [17:08:01]MH_SAM_APDU [17:08:01]CAPDU: 80 11 00 00 [17:08:01]Write to MH i2c: E2 08 00 9C 05 80 11 00 00 00 00 00 00 1B [17:08:01]Write i2c OK [17:08:01]MH_I2C_Read... [17:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:01]Read from MH i2c: E2 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 17 00 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 17 00 9C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [17:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:08:01]wFMCommunicate OK [17:08:01]CreateOFDProtocolMessage done [17:08:01]OFDSenderStorePacket 165771 [17:08:01]StoreOFDPacket docnum=165771 [17:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 27 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 FD 00 00 00 F4 03 04 00 FD 38 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 87 02 00 35 04 06 00 B7 61 7E 35 0A 7A 97 2F 32 FC 0F 51 FF D1 [17:08:01]CheckFolder [17:08:01]dirname=/storage/ofd_packets [17:08:01]CheckFolder done [17:08:01]ProducePacketName [17:08:01]name=ofd_packets/00165771 [17:08:01]NVStorageSaveData ofd_packets/00165771 [17:08:01]File name is /storage/ofd_packets/00165771 [17:08:01]Write 301 bytes [17:08:01]NVStorageSaveData done [17:08:01]OFDSenderStorePacket done [17:08:01]KKMCreateOFDPacket done [17:08:01]NVStorageSaveData kkm_last_timestamp [17:08:01]File name is /storage/kkm_last_timestamp [17:08:01]Write 4 bytes [17:08:01]NVStorageSaveData done [17:08:01]ExternCall_PrintAddStr [17:08:01]wPrintStart [17:08:01]Write to MH i2c: 01 00 00 9D 05 A2 [17:08:01]Write i2c OK [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: 01 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: 01 07 00 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 FF 0F B7 [17:08:01]RasterBufferAndPrint [17:08:01]line Счет N : (1)220339 [17:08:01]line ИНН: 02508201610067 [17:08:01]line Контрольно-Кассовый Чек [17:08:01]line ПРОДАЖА [17:08:01]line ТРК (МРК, ГНК) : 24 [17:08:01]line Товар: 2710124500 [17:08:01]line Аи-95-К-5 [17:08:01]line 26.960 * 74.20 [17:08:01]line = 2000.43 [17:08:01]line НДС 12% НСП 1% [17:08:01]line > о реализуемом товаре [17:08:01]line ОКРУГЛЕНИЕ: -0.43 [17:08:01]line ИТОГО: 2000.00 [17:08:01]line Внесено: 2000.00 [17:08:01]line СДАЧА: 0.00 [17:08:01]line НСП 1% : 17.70 [17:08:01]line НДС 12% : 212.43 [17:08:01]line Наличными: 2000.00 [17:08:01]line Безнал.: 0.00 [17:08:01]line Место: АЗС № 161 "Партнер Нефть" [17:08:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:08:01]line СНО: Общий режим [17:08:01]line Чек 253 20.10.2024 17:08 [17:08:01]line Смена: 534 ФФД: 1.0 [17:08:01]line ЗНМ: 0300000104 [17:08:01]line РНМ: 0000000000091764 [17:08:01]line Версия ККМ: 001 [17:08:01]line ФМ: 0000000000871759 [17:08:01]line ФД: 165771 [17:08:01]line ФПД: 201629357116026 [17:08:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165771&fm=201629357116026&tin=02508201610067®Number=0000000000091764&sum=200000 [17:08:01]OFD Sender: Processing packet 165771 [packets to send 48, broken 47] [17:08:01]ProducePacketName [17:08:01]name=ofd_packets/00165771 [17:08:01]OFD Sender: To server: pG, [17:08:01]CommunicateWithHost lk.salyk.kg:30040 [17:08:01]ConnectInit lk.salyk.kg [17:08:01]written 0, free lines is 4095 [17:08:01]Connected sock=9 [17:08:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 27 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FB 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 FD 00 00 00 F4 03 04 00 FD 38 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 87 02 00 35 04 06 00 B7 61 7E 35 0A 7A 97 2F 32 FC 0F 51 FF D1 [17:08:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 18 4E 47 00 F7 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 87 02 00 F4 03 04 00 6E DF 14 67 B6 04 01 00 00 A4 A8 D3 33 50 F1 DB 58 [17:08:02]CommunicateWithHost err = 0 [17:08:02]CheckOFDResponse [17:08:02]1017 (14) - 77093643461234 [17:08:02]1041 (16) - 0000000000871759 [17:08:02]1040 (4) - 165771 [17:08:02]1012 (4) - 20.10.2024 10:46 [17:08:02]1206 (1) - 0 [17:08:02]OFD Sender: Remove packet 165771 [17:08:02]ProducePacketName [17:08:02]name=ofd_packets/00165771 [17:08:02]NVStorageDeleteData [17:08:02]Write to MH i2c: 01 00 00 C8 05 CD [17:08:02]Write i2c OK [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: 01 [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: 01 07 00 [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 D4 0C B4 [17:08:02]RasterBufferAndPrint [17:08:02]line [17:08:02]line [17:08:02]line [17:08:02]line [17:08:02]line [17:08:02]written 0, free lines is 3292 [17:08:02]MH_Cut [17:08:02]Write to MH i2c: D1 01 00 CF 05 01 A6 [17:08:02]Write i2c OK [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: D1 [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: D1 01 00 [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: D1 01 00 CF 05 00 A5 [17:08:02]Write to MH i2c: 01 00 00 D0 05 D5 [17:08:02]Write i2c OK [17:08:02]MH_I2C_Read... [17:08:02]OFD Sender: No OFD packet to send [17:08:03]*** Cut start [17:08:03]*** Partial cut [17:08:03]*** CUTSNS_PIN = 1 [17:08:03]*** CUTSNS_PIN = 0 [17:08:03]*** Brake cut motor [17:08:03]Read from MH i2c: 01 [17:08:03]MH_I2C_Read... [17:08:03]*** Stop cut motor [17:08:03]*** Cut end [17:08:03]Read from MH i2c: 01 07 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 FF 0F EA [17:08:03]process_action close_receipt done [17:08:03]requested_data is exist [17:08:03]produce_requested_data [17:08:03]requested_item fm.sn is exist - process it [17:08:03]wFMCommunicate request_size=4 [17:08:03]MH_SAM_APDU [17:08:03]CAPDU: 80 11 00 00 [17:08:03]Write to MH i2c: E2 08 00 D1 05 80 11 00 00 00 00 00 00 50 [17:08:03]Write i2c OK [17:08:03]MH_I2C_Read... [17:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:03]Read from MH i2c: E2 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 17 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 17 00 D1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [17:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:08:03]wFMCommunicate OK [17:08:03]requested_item fd.num is exist - process it [17:08:03]SAM_PROTO_GetFieldsCounters [17:08:03]wFMCommunicate request_size=4 [17:08:03]MH_SAM_APDU [17:08:03]CAPDU: 80 13 00 00 [17:08:03]Write to MH i2c: E2 08 00 D2 05 80 13 00 00 00 00 00 00 53 [17:08:03]Write i2c OK [17:08:03]MH_I2C_Read... [17:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:03]Read from MH i2c: E2 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 62 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 62 00 D2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 87 02 00 0E 04 04 00 16 02 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 9E [17:08:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 87 02 00 0E 04 04 00 16 02 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:08:03]wFMCommunicate OK [17:08:03]SAM_PROTO_GetFieldsCounters done [17:08:03]requested_item shift.num is exist - process it [17:08:03]requested_item shift.opened is exist - process it [17:08:03]req_shift_opened [17:08:03]FM_GetShiftState [17:08:03]SAM_PROTO_GetShiftState [17:08:03]wFMCommunicate request_size=4 [17:08:03]MH_SAM_APDU [17:08:03]CAPDU: 80 13 01 00 [17:08:03]Write to MH i2c: E2 08 00 D3 05 80 13 01 00 00 00 00 00 55 [17:08:03]Write i2c OK [17:08:03]MH_I2C_Read... [17:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:03]Read from MH i2c: E2 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 0E 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 0E 00 D3 05 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9D [17:08:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:08:03]wFMCommunicate OK [17:08:03]SAM_PROTO_GetShiftState done [17:08:03]FM_GetShiftState done [17:08:03]req_shift_opened done [17:08:03]requested_item shift.open_date is exist - process it [17:08:03]req_shift_open_date [17:08:03]req_shift_open_date done [17:08:03]produce_requested_data done [17:08:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165771,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:08:03]process_action_free close_receipt [17:08:03]json_value_free [17:08:03]json_value_free done [17:08:03]process_json_proto returns [17:08:03]Send response to host [17:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165771,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:08:03]free response buf [17:08:03]execute_script done [17:08:03]execute_script returns [17:08:03]free content buf [17:08:03]Sock 7.Close socket [17:08:03]Sock 7.Thread stoped [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:14]accept exits with 10 [17:11:14]New connection [17:11:14]New thread 3066776932 created [17:11:14]Thread 3066920292 joined [17:11:14]Waiting for new connection... [17:11:14] Sock 10.Parse request [17:11:14]Sock 10.Check first char [17:11:14]Sock 10.First char is OK [17:11:14]request: POST /json_proto HTTP/1.0 [17:11:14]Method: POST [17:11:14]URL: /json_proto [17:11:14]Method is POST - this is cgi request [17:11:14]url: /json_proto [17:11:14]query_string will be loaded in cgi processing [17:11:14]execute_cgi json_proto POST (null) [17:11:14]execute_cgi path=json_proto method=POST [17:11:14]POST find Content-Length [17:11:14]Host: 172.17.53.195:8080 [17:11:14]Content-Length: 677 [17:11:14]Content-Type: application/json [17:11:14] [17:11:14]POST finish read [17:11:14]Found Content-Length = 677 [17:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:14]execute_script... [17:11: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)220340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:14]POST & json_proto [17:11:14]process_json_proto [17:11:14]json parsed OK: [17:11:14]protocol is kg_v1.0 [17:11:14]action value=close_receipt [17:11:14]process_action close_receipt [17:11:14]cmd_close_receipt [17:11:14]MH_GetDate [17:11:14]Write to MH i2c: F0 00 00 D4 05 C8 [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: F0 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: F0 09 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: F0 09 00 D4 05 00 BF 39 15 67 21 48 4A 65 5D [17:11:14]GetLastDocTimeStamp 1729444093 [17:11:14]current date 1729444287 [17:11:14]FM_GetShiftState [17:11:14]SAM_PROTO_GetShiftState [17:11:14]wFMCommunicate request_size=4 [17:11:14]MH_SAM_APDU [17:11:14]CAPDU: 80 13 01 00 [17:11:14]Write to MH i2c: E2 08 00 D5 05 80 13 01 00 00 00 00 00 57 [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 0E 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 0E 00 D5 05 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9F [17:11:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:11:14]wFMCommunicate OK [17:11:14]SAM_PROTO_GetShiftState done [17:11:14]FM_GetShiftState done [17:11:14]opened in 1729384561 [17:11:14]opened+sec_in_day 1729470961 [17:11:14]quantity*price = 60009 [17:11:14]sum+1 = 60010 [17:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 254 20.10.2024 17:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165772 ФПД: 236196913033000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171127&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165772&fm=236196913033000&tin=02508201610067®Number=0000000000091764&sum=60000 [17:11:15]StoreToDocumentArchive [17:11:15]shift 534 fd 165772 [17:11:15]save to /storage/0534/doc_00165772 [17:11:15]save last doc name /storage/0534/doc_00165772 to /storage/kkm_last_doc_name [17:11:15]save OK [17:11:15]Clear old archive folders... [17:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:15]tlvbuf is 019EA300 [17:11:15]SAM_PROTO_ClearQueue [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 09 00 00 [17:11:15]Write to MH i2c: E2 08 00 E2 05 80 09 00 00 00 00 00 00 59 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [17:11:15]RAPDU: 90 00 [17:11:15]wFMCommunicate OK [17:11:15]SAM_PROTO_ClearQueue done [17:11:15]KKMCreateOFDPacket [17:11:15]OFDProtocolAddRootSTLVToBuf [17:11:15]FM_MakeSignedData [17:11:15]FM_MakeSignedData [17:11:15]SAM_PROTO_SignData [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 0D 01 02 [17:11:15]Write to MH i2c: E2 08 00 E3 05 80 0D 01 02 00 00 00 00 61 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [17:11:15]RAPDU: 90 00 [17:11:15]wFMCommunicate OK [17:11:15]wFMCommunicate request_size=255 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BF 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 87 02 00 35 04 06 00 D6 [17:11:15]Write to MH i2c: E2 02 01 E4 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BF 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 87 02 00 35 04 06 00 D6 00 00 49 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 E4 05 00 90 00 5D [17:11:15]RAPDU: 90 00 [17:11:15]wFMCommunicate OK [17:11:15]wFMCommunicate request_size=10 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 0D 02 02 05 D1 E1 19 2F 28 [17:11:15]Write to MH i2c: E2 0D 00 E5 05 80 0D 02 02 05 00 D1 E1 19 2F 28 00 00 90 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 E5 05 00 90 00 5E [17:11:15]RAPDU: 90 00 [17:11:15]wFMCommunicate OK [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 0D 03 02 [17:11:15]Write to MH i2c: E2 08 00 E6 05 80 0D 03 02 00 00 00 00 66 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 0B 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 0B 00 E6 05 00 88 80 04 8F 9B 7E 5E B7 90 00 30 [17:11:15]RAPDU: 88 80 04 8F 9B 7E 5E B7 90 00 [17:11:15]wFMCommunicate OK [17:11:15]SAM_PROTO_SignData done [17:11:15]FM_MakeSignedData done [17:11:15]CreateOFDProtocolMessage [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 11 00 00 [17:11:15]Write to MH i2c: E2 08 00 E7 05 80 11 00 00 00 00 00 00 66 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 17 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 17 00 E7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [17:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:11:15]wFMCommunicate OK [17:11:15]CreateOFDProtocolMessage done [17:11:15]OFDSenderStorePacket 165772 [17:11:15]StoreOFDPacket docnum=165772 [17:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D8 81 07 01 69 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BF 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 87 02 00 35 04 06 00 D6 D1 E1 19 2F 28 88 80 04 8F 9B 7E 5E B7 [17:11:15]CheckFolder [17:11:15]dirname=/storage/ofd_packets [17:11:15]CheckFolder done [17:11:15]ProducePacketName [17:11:15]name=ofd_packets/00165772 [17:11:15]NVStorageSaveData ofd_packets/00165772 [17:11:15]File name is /storage/ofd_packets/00165772 [17:11:15]Write 301 bytes [17:11:15]NVStorageSaveData done [17:11:15]OFDSenderStorePacket done [17:11:15]KKMCreateOFDPacket done [17:11:15]NVStorageSaveData kkm_last_timestamp [17:11:15]File name is /storage/kkm_last_timestamp [17:11:15]Write 4 bytes [17:11:15]NVStorageSaveData done [17:11:15]ExternCall_PrintAddStr [17:11:15]wPrintStart [17:11:15]Write to MH i2c: 01 00 00 E8 05 ED [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 07 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 07 00 E8 05 00 00 00 00 00 FF 0F 02 [17:11:15]RasterBufferAndPrint [17:11:15]line Счет N : (1)220340 [17:11:15]line ИНН: 02508201610067 [17:11:15]line Контрольно-Кассовый Чек [17:11:15]line ПРОДАЖА [17:11:15]line ТРК (МРК, ГНК) : 13 [17:11:15]line Товар: 2710124130 [17:11:15]line Аи-92-К-5 [17:11:15]line 8.970 * 66.90 [17:11:15]line = 600.09 [17:11:15]line НДС 12% НСП 1% [17:11:15]line > о реализуемом товаре [17:11:15]line ОКРУГЛЕНИЕ: -0.09 [17:11:15]line ИТОГО: 600.00 [17:11:15]line Внесено: 600.00 [17:11:15]line СДАЧА: 0.00 [17:11:15]line НСП 1% : 5.31 [17:11:15]line НДС 12% : 63.73 [17:11:15]line Наличными: 600.00 [17:11:15]line Безнал.: 0.00 [17:11:15]line Место: АЗС № 161 "Партнер Нефть" [17:11:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:11:15]line СНО: Общий режим [17:11:15]line Чек 254 20.10.2024 17:11 [17:11:15]line Смена: 534 ФФД: 1.0 [17:11:15]line ЗНМ: 0300000104 [17:11:15]line РНМ: 0000000000091764 [17:11:15]line Версия ККМ: 001 [17:11:15]line ФМ: 0000000000871759 [17:11:15]line ФД: 165772 [17:11:15]line ФПД: 236196913033000 [17:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171127&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165772&fm=236196913033000&tin=02508201610067®Number=0000000000091764&sum=60000 [17:11:16]OFD Sender: Processing packet 165772 [packets to send 48, broken 47] [17:11:16]ProducePacketName [17:11:16]name=ofd_packets/00165772 [17:11:16]OFD Sender: To server: pG, [17:11:16]CommunicateWithHost lk.salyk.kg:30040 [17:11:16]ConnectInit lk.salyk.kg [17:11:16]written 0, free lines is 4095 [17:11:16]Connected sock=9 [17:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D8 81 07 01 69 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BF 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 87 02 00 35 04 06 00 D6 D1 E1 19 2F 28 88 80 04 8F 9B 7E 5E B7 [17:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 07 7A 47 00 16 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 87 02 00 F4 03 04 00 30 E0 14 67 B6 04 01 00 00 A8 12 3F 1B B4 AF 8A D4 [17:11:16]CommunicateWithHost err = 0 [17:11:16]CheckOFDResponse [17:11:16]1017 (14) - 77093643461234 [17:11:16]1041 (16) - 0000000000871759 [17:11:16]1040 (4) - 165772 [17:11:16]1012 (4) - 20.10.2024 10:49 [17:11:16]1206 (1) - 0 [17:11:16]OFD Sender: Remove packet 165772 [17:11:16]ProducePacketName [17:11:16]name=ofd_packets/00165772 [17:11:16]NVStorageDeleteData [17:11:16]Write to MH i2c: 01 00 00 13 06 19 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: 01 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: 01 07 00 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: 01 07 00 13 06 00 00 00 00 00 D3 0C FF [17:11:16]RasterBufferAndPrint [17:11:16]line [17:11:16]line [17:11:16]line [17:11:16]line [17:11:16]line [17:11:16]written 0, free lines is 3289 [17:11:16]MH_Cut [17:11:16]Write to MH i2c: D1 01 00 1A 06 01 F2 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: D1 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: D1 01 00 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: D1 01 00 1A 06 00 F1 [17:11:16]Write to MH i2c: 01 00 00 1B 06 21 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:17]OFD Sender: No OFD packet to send [17:11:17]*** Cut start [17:11:17]*** Partial cut [17:11:17]*** CUTSNS_PIN = 1 [17:11:17]*** CUTSNS_PIN = 0 [17:11:17]*** Brake cut motor [17:11:18]Read from MH i2c: 01 [17:11:18]MH_I2C_Read... [17:11:18]*** Stop cut motor [17:11:18]*** Cut end [17:11:18]Read from MH i2c: 01 07 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: 01 07 00 1B 06 00 00 00 00 00 FF 0F 36 [17:11:18]process_action close_receipt done [17:11:18]requested_data is exist [17:11:18]produce_requested_data [17:11:18]requested_item fm.sn is exist - process it [17:11:18]wFMCommunicate request_size=4 [17:11:18]MH_SAM_APDU [17:11:18]CAPDU: 80 11 00 00 [17:11:18]Write to MH i2c: E2 08 00 1C 06 80 11 00 00 00 00 00 00 9C [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:18]Read from MH i2c: E2 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: E2 17 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: E2 17 00 1C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [17:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:11:18]wFMCommunicate OK [17:11:18]requested_item fd.num is exist - process it [17:11:18]SAM_PROTO_GetFieldsCounters [17:11:18]wFMCommunicate request_size=4 [17:11:18]MH_SAM_APDU [17:11:18]CAPDU: 80 13 00 00 [17:11:18]Write to MH i2c: E2 08 00 1D 06 80 13 00 00 00 00 00 00 9F [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:18]Read from MH i2c: E2 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: E2 62 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: E2 62 00 1D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 87 02 00 0E 04 04 00 16 02 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 EE [17:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 87 02 00 0E 04 04 00 16 02 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:11:18]wFMCommunicate OK [17:11:18]SAM_PROTO_GetFieldsCounters done [17:11:18]requested_item shift.num is exist - process it [17:11:18]requested_item shift.opened is exist - process it [17:11:18]req_shift_opened [17:11:18]FM_GetShiftState [17:11:18]SAM_PROTO_GetShiftState [17:11:18]wFMCommunicate request_size=4 [17:11:18]MH_SAM_APDU [17:11:18]CAPDU: 80 13 01 00 [17:11:18]Write to MH i2c: E2 08 00 1E 06 80 13 01 00 00 00 00 00 A1 [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:18]Read from MH i2c: E2 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: E2 0E 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: E2 0E 00 1E 06 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E9 [17:11:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:11:18]wFMCommunicate OK [17:11:18]SAM_PROTO_GetShiftState done [17:11:18]FM_GetShiftState done [17:11:18]req_shift_opened done [17:11:18]requested_item shift.open_date is exist - process it [17:11:18]req_shift_open_date [17:11:18]req_shift_open_date done [17:11:18]produce_requested_data done [17:11:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165772,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:11:18]process_action_free close_receipt [17:11:18]json_value_free [17:11:18]json_value_free done [17:11:18]process_json_proto returns [17:11:18]Send response to host [17:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165772,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:11:18]free response buf [17:11:18]execute_script done [17:11:18]execute_script returns [17:11:18]free content buf [17:11:18]Sock 10.Close socket [17:11:18]Sock 10.Thread stoped [17:11:18]accept exits with 7 [17:11:18]New connection [17:11:18]New thread 3066920292 created [17:11:18]Thread 3066776932 joined [17:11:18]Waiting for new connection... [17:11:18] Sock 7.Parse request [17:11:18]Sock 7.Check first char [17:11:18]Sock 7.First char is OK [17:11:18]request: POST /json_proto HTTP/1.0 [17:11:18]Method: POST [17:11:18]URL: /json_proto [17:11:18]Method is POST - this is cgi request [17:11:18]url: /json_proto [17:11:18]query_string will be loaded in cgi processing [17:11:18]execute_cgi json_proto POST (null) [17:11:18]execute_cgi path=json_proto method=POST [17:11:18]POST find Content-Length [17:11:18]Host: 172.17.53.195:8080 [17:11:18]Content-Length: 677 [17:11:18]Content-Type: application/json [17:11:18] [17:11:18]POST finish read [17:11:18]Found Content-Length = 677 [17:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:18]execute_script... [17:11: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)220342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:18]POST & json_proto [17:11:18]process_json_proto [17:11:18]json parsed OK: [17:11:18]protocol is kg_v1.0 [17:11:18]action value=close_receipt [17:11:18]process_action close_receipt [17:11:18]cmd_close_receipt [17:11:18]MH_GetDate [17:11:18]Write to MH i2c: F0 00 00 1F 06 14 [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: F0 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: F0 09 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: F0 09 00 1F 06 00 C4 39 15 67 21 48 4A 65 AE [17:11:18]GetLastDocTimeStamp 1729444287 [17:11:18]current date 1729444292 [17:11:18]FM_GetShiftState [17:11:18]SAM_PROTO_GetShiftState [17:11:18]wFMCommunicate request_size=4 [17:11:18]MH_SAM_APDU [17:11:18]CAPDU: 80 13 01 00 [17:11:18]Write to MH i2c: E2 08 00 20 06 80 13 01 00 00 00 00 00 A3 [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:18]Read from MH i2c: E2 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: E2 0E 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: E2 0E 00 20 06 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EB [17:11:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:11:18]wFMCommunicate OK [17:11:18]SAM_PROTO_GetShiftState done [17:11:18]FM_GetShiftState done [17:11:18]opened in 1729384561 [17:11:18]opened+sec_in_day 1729470961 [17:11:18]quantity*price = 50041 [17:11:18]sum+1 = 50042 [17:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 255 20.10.2024 17:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165773 ФПД: 201898270328151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171132&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165773&fm=201898270328151&tin=02508201610067®Number=0000000000091764&sum=50000 [17:11:20]StoreToDocumentArchive [17:11:20]shift 534 fd 165773 [17:11:20]save to /storage/0534/doc_00165773 [17:11:20]save last doc name /storage/0534/doc_00165773 to /storage/kkm_last_doc_name [17:11:20]save OK [17:11:20]Clear old archive folders... [17:11:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:20]tlvbuf is 019B62B0 [17:11:20]SAM_PROTO_ClearQueue [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 09 00 00 [17:11:20]Write to MH i2c: E2 08 00 2D 06 80 09 00 00 00 00 00 00 A5 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:20]Read from MH i2c: E2 03 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [17:11:20]RAPDU: 90 00 [17:11:20]wFMCommunicate OK [17:11:20]SAM_PROTO_ClearQueue done [17:11:20]KKMCreateOFDPacket [17:11:20]OFDProtocolAddRootSTLVToBuf [17:11:20]FM_MakeSignedData [17:11:20]FM_MakeSignedData [17:11:20]SAM_PROTO_SignData [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 0D 01 02 [17:11:20]Write to MH i2c: E2 08 00 2E 06 80 0D 01 02 00 00 00 00 AD [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 03 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 03 00 2E 06 00 90 00 A8 [17:11:20]RAPDU: 90 00 [17:11:20]wFMCommunicate OK [17:11:20]wFMCommunicate request_size=255 [17:11:20]MH_SAM_APDU [17:11: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C4 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 87 02 00 35 04 06 00 B7 [17:11:20]Write to MH i2c: E2 02 01 2F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C4 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 87 02 00 35 04 06 00 B7 00 00 A0 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 03 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 03 00 2F 06 00 90 00 A9 [17:11:20]RAPDU: 90 00 [17:11:20]wFMCommunicate OK [17:11:20]wFMCommunicate request_size=10 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 0D 02 02 05 A0 1A AF 05 57 [17:11:20]Write to MH i2c: E2 0D 00 30 06 80 0D 02 02 05 00 A0 1A AF 05 57 00 00 7F [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 03 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 03 00 30 06 00 90 00 AA [17:11:20]RAPDU: 90 00 [17:11:20]wFMCommunicate OK [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 0D 03 02 [17:11:20]Write to MH i2c: E2 08 00 31 06 80 0D 03 02 00 00 00 00 B2 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 0B 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 0B 00 31 06 00 A9 2B 15 0D D2 B0 FC E2 90 00 09 [17:11:20]RAPDU: A9 2B 15 0D D2 B0 FC E2 90 00 [17:11:20]wFMCommunicate OK [17:11:20]SAM_PROTO_SignData done [17:11:20]FM_MakeSignedData done [17:11:20]CreateOFDProtocolMessage [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 11 00 00 [17:11:20]Write to MH i2c: E2 08 00 32 06 80 11 00 00 00 00 00 00 B2 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 17 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 17 00 32 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [17:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:11:20]wFMCommunicate OK [17:11:20]CreateOFDProtocolMessage done [17:11:20]OFDSenderStorePacket 165773 [17:11:20]StoreOFDPacket docnum=165773 [17:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 89 07 01 48 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C4 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 87 02 00 35 04 06 00 B7 A0 1A AF 05 57 A9 2B 15 0D D2 B0 FC E2 [17:11:20]CheckFolder [17:11:20]dirname=/storage/ofd_packets [17:11:20]CheckFolder done [17:11:20]ProducePacketName [17:11:20]name=ofd_packets/00165773 [17:11:20]NVStorageSaveData ofd_packets/00165773 [17:11:20]File name is /storage/ofd_packets/00165773 [17:11:20]Write 301 bytes [17:11:20]NVStorageSaveData done [17:11:20]OFDSenderStorePacket done [17:11:20]KKMCreateOFDPacket done [17:11:20]NVStorageSaveData kkm_last_timestamp [17:11:20]File name is /storage/kkm_last_timestamp [17:11:20]Write 4 bytes [17:11:20]NVStorageSaveData done [17:11:20]ExternCall_PrintAddStr [17:11:20]wPrintStart [17:11:20]Write to MH i2c: 01 00 00 33 06 39 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: 01 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: 01 07 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 FF 0F 4E [17:11:20]RasterBufferAndPrint [17:11:20]line Счет N : (1)220342 [17:11:20]line ИНН: 02508201610067 [17:11:20]line Контрольно-Кассовый Чек [17:11:20]line ПРОДАЖА [17:11:20]line ТРК (МРК, ГНК) : 23 [17:11:20]line Товар: 2710124130 [17:11:20]line Аи-92-К-5 [17:11:20]line 7.480 * 66.90 [17:11:20]line = 500.41 [17:11:20]line НДС 12% НСП 1% [17:11:20]line > о реализуемом товаре [17:11:20]line ОКРУГЛЕНИЕ: -0.41 [17:11:20]line ИТОГО: 500.00 [17:11:20]line Внесено: 500.00 [17:11:20]line СДАЧА: 0.00 [17:11:20]line НСП 1% : 4.43 [17:11:20]line НДС 12% : 53.14 [17:11:20]line Наличными: 500.00 [17:11:20]line Безнал.: 0.00 [17:11:20]line Место: АЗС № 161 "Партнер Нефть" [17:11:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:11:20]line СНО: Общий режим [17:11:20]line Чек 255 20.10.2024 17:11 [17:11:20]line Смена: 534 ФФД: 1.0 [17:11:20]line ЗНМ: 0300000104 [17:11:20]line РНМ: 0000000000091764 [17:11:20]line Версия ККМ: 001 [17:11:20]line ФМ: 0000000000871759 [17:11:20]line ФД: 165773 [17:11:20]line ФПД: 201898270328151 [17:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171132&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165773&fm=201898270328151&tin=02508201610067®Number=0000000000091764&sum=50000 [17:11:20]written 0, free lines is 4095 [17:11:20]OFD Sender: Processing packet 165773 [packets to send 48, broken 47] [17:11:20]ProducePacketName [17:11:20]name=ofd_packets/00165773 [17:11:20]OFD Sender: To server: pG, [17:11:20]CommunicateWithHost lk.salyk.kg:30040 [17:11:20]ConnectInit lk.salyk.kg [17:11:20]Connected sock=10 [17:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 89 07 01 48 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C4 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 87 02 00 35 04 06 00 B7 A0 1A AF 05 57 A9 2B 15 0D D2 B0 FC E2 [17:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2A 1A 47 00 B6 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 87 02 00 F4 03 04 00 35 E0 14 67 B6 04 01 00 00 9A 2B 38 E3 1F CC 9C 23 [17:11:21]CommunicateWithHost err = 0 [17:11:21]CheckOFDResponse [17:11:21]1017 (14) - 77093643461234 [17:11:21]1041 (16) - 0000000000871759 [17:11:21]1040 (4) - 165773 [17:11:21]1012 (4) - 20.10.2024 10:49 [17:11:21]1206 (1) - 0 [17:11:21]OFD Sender: Remove packet 165773 [17:11:21]ProducePacketName [17:11:21]name=ofd_packets/00165773 [17:11:21]NVStorageDeleteData [17:11:21]Write to MH i2c: 01 00 00 5E 06 64 [17:11:21]Write i2c OK [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: 01 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: 01 07 00 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 E2 0C 59 [17:11:21]RasterBufferAndPrint [17:11:21]line [17:11:21]line [17:11:21]line [17:11:21]line [17:11:21]line [17:11:21]written 0, free lines is 3310 [17:11:21]MH_Cut [17:11:21]Write to MH i2c: D1 01 00 65 06 01 3D [17:11:21]Write i2c OK [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: D1 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: D1 01 00 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: D1 01 00 65 06 00 3C [17:11:21]Write to MH i2c: 01 00 00 66 06 6C [17:11:21]Write i2c OK [17:11:21]MH_I2C_Read... [17:11:21]OFD Sender: No OFD packet to send [17:11:21]*** Cut start [17:11:21]*** Partial cut [17:11:21]*** CUTSNS_PIN = 1 [17:11:22]*** CUTSNS_PIN = 0 [17:11:22]*** Brake cut motor [17:11:22]Read from MH i2c: 01 [17:11:22]MH_I2C_Read... [17:11:22]*** Stop cut motor [17:11:22]*** Cut end [17:11:22]Read from MH i2c: 01 07 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 FF 0F 81 [17:11:22]process_action close_receipt done [17:11:22]requested_data is exist [17:11:22]produce_requested_data [17:11:22]requested_item fm.sn is exist - process it [17:11:22]wFMCommunicate request_size=4 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 11 00 00 [17:11:22]Write to MH i2c: E2 08 00 67 06 80 11 00 00 00 00 00 00 E7 [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 17 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 17 00 67 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3F [17:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:11:22]wFMCommunicate OK [17:11:22]requested_item fd.num is exist - process it [17:11:22]SAM_PROTO_GetFieldsCounters [17:11:22]wFMCommunicate request_size=4 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 13 00 00 [17:11:22]Write to MH i2c: E2 08 00 68 06 80 13 00 00 00 00 00 00 EA [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 62 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 62 00 68 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 87 02 00 0E 04 04 00 16 02 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 3E [17:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 87 02 00 0E 04 04 00 16 02 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:11:22]wFMCommunicate OK [17:11:22]SAM_PROTO_GetFieldsCounters done [17:11:22]requested_item shift.num is exist - process it [17:11:22]requested_item shift.opened is exist - process it [17:11:22]req_shift_opened [17:11:22]FM_GetShiftState [17:11:22]SAM_PROTO_GetShiftState [17:11:22]wFMCommunicate request_size=4 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 13 01 00 [17:11:22]Write to MH i2c: E2 08 00 69 06 80 13 01 00 00 00 00 00 EC [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 0E 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 0E 00 69 06 00 09 00 01 71 50 14 67 00 00 00 00 90 00 34 [17:11:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:11:22]wFMCommunicate OK [17:11:22]SAM_PROTO_GetShiftState done [17:11:22]FM_GetShiftState done [17:11:22]req_shift_opened done [17:11:22]requested_item shift.open_date is exist - process it [17:11:22]req_shift_open_date [17:11:22]req_shift_open_date done [17:11:22]produce_requested_data done [17:11:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165773,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:11:22]process_action_free close_receipt [17:11:22]json_value_free [17:11:22]json_value_free done [17:11:22]process_json_proto returns [17:11:22]Send response to host [17:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165773,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:11:22]free response buf [17:11:22]execute_script done [17:11:22]execute_script returns [17:11:22]free content buf [17:11:22]Sock 7.Close socket [17:11:22]Sock 7.Thread stoped [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:55]accept exits with 9 [17:11:55]New connection [17:11:55]New thread 3066776932 created [17:11:55]Thread 3066920292 joined [17:11:55]Waiting for new connection... [17:11:55] Sock 9.Parse request [17:11:55]Sock 9.Check first char [17:11:55]Sock 9.First char is OK [17:11:55]request: POST /json_proto HTTP/1.0 [17:11:55]Method: POST [17:11:55]URL: /json_proto [17:11:55]Method is POST - this is cgi request [17:11:55]url: /json_proto [17:11:55]query_string will be loaded in cgi processing [17:11:55]execute_cgi json_proto POST (null) [17:11:55]execute_cgi path=json_proto method=POST [17:11:55]POST find Content-Length [17:11:55]Host: 172.17.53.195:8080 [17:11:55]Content-Length: 682 [17:11:55]Content-Type: application/json [17:11:55] [17:11:55]POST finish read [17:11:55]Found Content-Length = 682 [17:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "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" ] } } [17:11:55]execute_script... [17: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)220341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "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" ] } } [17:11:55]POST & json_proto [17:11:55]process_json_proto [17:11:55]json parsed OK: [17:11:55]protocol is kg_v1.0 [17:11:55]action value=close_receipt [17:11:55]process_action close_receipt [17:11:55]cmd_close_receipt [17:11:55]MH_GetDate [17:11:55]Write to MH i2c: F0 00 00 6A 06 5F [17:11:55]Write i2c OK [17:11:55]MH_I2C_Read... [17:11:55]Read from MH i2c: F0 [17:11:55]MH_I2C_Read... [17:11:55]Read from MH i2c: F0 09 00 [17:11:55]MH_I2C_Read... [17:11:55]Read from MH i2c: F0 09 00 6A 06 00 E9 39 15 67 21 48 4A 65 1E [17:11:55]GetLastDocTimeStamp 1729444292 [17:11:55]current date 1729444329 [17:11:55]FM_GetShiftState [17:11:55]SAM_PROTO_GetShiftState [17:11:55]wFMCommunicate request_size=4 [17:11:55]MH_SAM_APDU [17:11:55]CAPDU: 80 13 01 00 [17:11:55]Write to MH i2c: E2 08 00 6B 06 80 13 01 00 00 00 00 00 EE [17:11:55]Write i2c OK [17:11:55]MH_I2C_Read... [17:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:56]Read from MH i2c: E2 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 0E 00 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 0E 00 6B 06 00 09 00 01 71 50 14 67 00 00 00 00 90 00 36 [17:11:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:11:56]wFMCommunicate OK [17:11:56]SAM_PROTO_GetShiftState done [17:11:56]FM_GetShiftState done [17:11:56]opened in 1729384561 [17:11:56]opened+sec_in_day 1729470961 [17:11:56]quantity*price = 170066 [17:11:56]sum+1 = 170067 [17:11:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 256 20.10.2024 17:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165774 ФПД: 227791038326909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165774&fm=227791038326909&tin=02508201610067®Number=0000000000091764&sum=170000 [17:11:57]StoreToDocumentArchive [17:11:57]shift 534 fd 165774 [17:11:57]save to /storage/0534/doc_00165774 [17:11:57]save last doc name /storage/0534/doc_00165774 to /storage/kkm_last_doc_name [17:11:57]save OK [17:11:57]Clear old archive folders... [17:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:57]tlvbuf is 0146A120 [17:11:57]SAM_PROTO_ClearQueue [17:11:57]wFMCommunicate request_size=4 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 09 00 00 [17:11:57]Write to MH i2c: E2 08 00 78 06 80 09 00 00 00 00 00 00 F0 [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 03 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 03 00 78 06 00 90 00 F2 [17:11:57]RAPDU: 90 00 [17:11:57]wFMCommunicate OK [17:11:57]SAM_PROTO_ClearQueue done [17:11:57]KKMCreateOFDPacket [17:11:57]OFDProtocolAddRootSTLVToBuf [17:11:57]FM_MakeSignedData [17:11:57]FM_MakeSignedData [17:11:57]SAM_PROTO_SignData [17:11:57]wFMCommunicate request_size=4 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 0D 01 02 [17:11:57]Write to MH i2c: E2 08 00 79 06 80 0D 01 02 00 00 00 00 F8 [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 03 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 03 00 79 06 00 90 00 F3 [17:11:57]RAPDU: 90 00 [17:11:57]wFMCommunicate OK [17:11:57]wFMCommunicate request_size=255 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 8C 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 00 01 00 00 F4 03 04 00 E9 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 87 02 00 35 04 06 00 CF [17:11:57]Write to MH i2c: E2 02 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 8C 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 00 01 00 00 F4 03 04 00 E9 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 87 02 00 35 04 06 00 CF 00 00 9B [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 03 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 03 00 7A 06 00 90 00 F4 [17:11:57]RAPDU: 90 00 [17:11:57]wFMCommunicate OK [17:11:57]wFMCommunicate request_size=10 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 0D 02 02 05 2C BB EC 28 7D [17:11:57]Write to MH i2c: E2 0D 00 7B 06 80 0D 02 02 05 00 2C BB EC 28 7D 00 00 7D [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 03 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [17:11:57]RAPDU: 90 00 [17:11:57]wFMCommunicate OK [17:11:57]wFMCommunicate request_size=4 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 0D 03 02 [17:11:57]Write to MH i2c: E2 08 00 7C 06 80 0D 03 02 00 00 00 00 FD [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 0B 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 0B 00 7C 06 00 5B 9F F8 33 C6 6F BD DE 90 00 F3 [17:11:57]RAPDU: 5B 9F F8 33 C6 6F BD DE 90 00 [17:11:57]wFMCommunicate OK [17:11:57]SAM_PROTO_SignData done [17:11:57]FM_MakeSignedData done [17:11:57]CreateOFDProtocolMessage [17:11:57]wFMCommunicate request_size=4 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 11 00 00 [17:11:57]Write to MH i2c: E2 08 00 7D 06 80 11 00 00 00 00 00 00 FD [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 17 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 17 00 7D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 55 [17:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:11:57]wFMCommunicate OK [17:11:57]CreateOFDProtocolMessage done [17:11:57]OFDSenderStorePacket 165774 [17:11:57]StoreOFDPacket docnum=165774 [17:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D 10 07 01 82 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 8C 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 00 01 00 00 F4 03 04 00 E9 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 87 02 00 35 04 06 00 CF 2C BB EC 28 7D 5B 9F F8 33 C6 6F BD DE [17:11:57]CheckFolder [17:11:57]dirname=/storage/ofd_packets [17:11:57]CheckFolder done [17:11:57]ProducePacketName [17:11:57]name=ofd_packets/00165774 [17:11:57]NVStorageSaveData ofd_packets/00165774 [17:11:57]File name is /storage/ofd_packets/00165774 [17:11:57]Write 301 bytes [17:11:57]NVStorageSaveData done [17:11:57]OFDSenderStorePacket done [17:11:57]KKMCreateOFDPacket done [17:11:57]NVStorageSaveData kkm_last_timestamp [17:11:57]File name is /storage/kkm_last_timestamp [17:11:57]Write 4 bytes [17:11:57]NVStorageSaveData done [17:11:57]ExternCall_PrintAddStr [17:11:57]wPrintStart [17:11:57]Write to MH i2c: 01 00 00 7E 06 84 [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: 01 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: 01 07 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 FF 0F 99 [17:11:57]RasterBufferAndPrint [17:11:57]line Счет N : (1)220341 [17:11:57]line ИНН: 02508201610067 [17:11:57]line Контрольно-Кассовый Чек [17:11:57]line ПРОДАЖА [17:11:57]line ТРК (МРК, ГНК) : 34 [17:11:57]line Товар: 2710124500 [17:11:57]line Аи-95-К-5 [17:11:57]line 22.920 * 74.20 [17:11:57]line = 1700.66 [17:11:57]line НДС 12% НСП 1% [17:11:57]line > о реализуемом товаре [17:11:57]line ОКРУГЛЕНИЕ: -0.66 [17:11:57]line ИТОГО: 1700.00 [17:11:57]line Внесено: 1700.00 [17:11:57]line СДАЧА: 0.00 [17:11:57]line НСП 1% : 15.05 [17:11:57]line НДС 12% : 180.60 [17:11:57]line Наличными: 1700.00 [17:11:57]line Безнал.: 0.00 [17:11:57]line Место: АЗС № 161 "Партнер Нефть" [17:11:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:11:57]line СНО: Общий режим [17:11:57]line Чек 256 20.10.2024 17:12 [17:11:57]line Смена: 534 ФФД: 1.0 [17:11:57]line ЗНМ: 0300000104 [17:11:57]line РНМ: 0000000000091764 [17:11:57]line Версия ККМ: 001 [17:11:57]line ФМ: 0000000000871759 [17:11:57]line ФД: 165774 [17:11:57]line ФПД: 227791038326909 [17:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165774&fm=227791038326909&tin=02508201610067®Number=0000000000091764&sum=170000 [17:11:58]OFD Sender: Processing packet 165774 [packets to send 48, broken 47] [17:11:58]ProducePacketName [17:11:58]name=ofd_packets/00165774 [17:11:58]OFD Sender: To server: pG, [17:11:58]CommunicateWithHost lk.salyk.kg:30040 [17:11:58]ConnectInit lk.salyk.kg [17:11:58]written 0, free lines is 4095 [17:11:58]Connected sock=10 [17:11:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D 10 07 01 82 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 8C 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 00 01 00 00 F4 03 04 00 E9 39 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 87 02 00 35 04 06 00 CF 2C BB EC 28 7D 5B 9F F8 33 C6 6F BD DE [17:11:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9E 76 47 00 CB AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 87 02 00 F4 03 04 00 5A E0 14 67 B6 04 01 00 00 70 26 4C 03 ED 2A 3E 0E [17:11:58]CommunicateWithHost err = 0 [17:11:58]CheckOFDResponse [17:11:58]1017 (14) - 77093643461234 [17:11:58]1041 (16) - 0000000000871759 [17:11:58]1040 (4) - 165774 [17:11:58]1012 (4) - 20.10.2024 10:50 [17:11:58]1206 (1) - 0 [17:11:58]OFD Sender: Remove packet 165774 [17:11:58]ProducePacketName [17:11:58]name=ofd_packets/00165774 [17:11:58]NVStorageDeleteData [17:11:58]Write to MH i2c: 01 00 00 A9 06 AF [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: 01 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: 01 07 00 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: 01 07 00 A9 06 00 00 00 00 00 D8 0C 9A [17:11:58]RasterBufferAndPrint [17:11:58]line [17:11:58]line [17:11:58]line [17:11:58]line [17:11:58]line [17:11:58]written 0, free lines is 3297 [17:11:58]MH_Cut [17:11:58]Write to MH i2c: D1 01 00 B0 06 01 88 [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: D1 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: D1 01 00 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: D1 01 00 B0 06 00 87 [17:11:58]Write to MH i2c: 01 00 00 B1 06 B7 [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:58]OFD Sender: No OFD packet to send [17:11:59]*** Cut start [17:11:59]*** Partial cut [17:11:59]*** CUTSNS_PIN = 1 [17:11:59]*** CUTSNS_PIN = 0 [17:11:59]*** Brake cut motor [17:11:59]Read from MH i2c: 01 [17:11:59]MH_I2C_Read... [17:11:59]*** Stop cut motor [17:11:59]*** Cut end [17:11:59]Read from MH i2c: 01 07 00 [17:11:59]MH_I2C_Read... [17:11:59]Read from MH i2c: 01 07 00 B1 06 00 00 00 00 00 FF 0F CC [17:11:59]process_action close_receipt done [17:11:59]requested_data is exist [17:11:59]produce_requested_data [17:11:59]requested_item fm.sn is exist - process it [17:11:59]wFMCommunicate request_size=4 [17:11:59]MH_SAM_APDU [17:11:59]CAPDU: 80 11 00 00 [17:11:59]Write to MH i2c: E2 08 00 B2 06 80 11 00 00 00 00 00 00 32 [17:11:59]Write i2c OK [17:11:59]MH_I2C_Read... [17:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:59]Read from MH i2c: E2 [17:11:59]MH_I2C_Read... [17:11:59]Read from MH i2c: E2 17 00 [17:11:59]MH_I2C_Read... [17:11:59]Read from MH i2c: E2 17 00 B2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8A [17:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:11:59]wFMCommunicate OK [17:11:59]requested_item fd.num is exist - process it [17:11:59]SAM_PROTO_GetFieldsCounters [17:11:59]wFMCommunicate request_size=4 [17:11:59]MH_SAM_APDU [17:11:59]CAPDU: 80 13 00 00 [17:11:59]Write to MH i2c: E2 08 00 B3 06 80 13 00 00 00 00 00 00 35 [17:11:59]Write i2c OK [17:11:59]MH_I2C_Read... [17:12:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:00]Read from MH i2c: E2 [17:12:00]MH_I2C_Read... [17:12:00]Read from MH i2c: E2 62 00 [17:12:00]MH_I2C_Read... [17:12:00]Read from MH i2c: E2 62 00 B3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8E 87 02 00 0E 04 04 00 16 02 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 8F [17:12:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8E 87 02 00 0E 04 04 00 16 02 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:12:00]wFMCommunicate OK [17:12:00]SAM_PROTO_GetFieldsCounters done [17:12:00]requested_item shift.num is exist - process it [17:12:00]requested_item shift.opened is exist - process it [17:12:00]req_shift_opened [17:12:00]FM_GetShiftState [17:12:00]SAM_PROTO_GetShiftState [17:12:00]wFMCommunicate request_size=4 [17:12:00]MH_SAM_APDU [17:12:00]CAPDU: 80 13 01 00 [17:12:00]Write to MH i2c: E2 08 00 B4 06 80 13 01 00 00 00 00 00 37 [17:12:00]Write i2c OK [17:12:00]MH_I2C_Read... [17:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:00]Read from MH i2c: E2 [17:12:00]MH_I2C_Read... [17:12:00]Read from MH i2c: E2 0E 00 [17:12:00]MH_I2C_Read... [17:12:00]Read from MH i2c: E2 0E 00 B4 06 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7F [17:12:00]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:12:00]wFMCommunicate OK [17:12:00]SAM_PROTO_GetShiftState done [17:12:00]FM_GetShiftState done [17:12:00]req_shift_opened done [17:12:00]requested_item shift.open_date is exist - process it [17:12:00]req_shift_open_date [17:12:00]req_shift_open_date done [17:12:00]produce_requested_data done [17:12:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165774,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:12:00]process_action_free close_receipt [17:12:00]json_value_free [17:12:00]json_value_free done [17:12:00]process_json_proto returns [17:12:00]Send response to host [17:12:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165774,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:12:00]free response buf [17:12:00]execute_script done [17:12:00]execute_script returns [17:12:00]free content buf [17:12:00]Sock 9.Close socket [17:12:00]Sock 9.Thread stoped [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:46]accept exits with 7 [17:13:46]New connection [17:13:46]New thread 3066920292 created [17:13:46]Thread 3066776932 joined [17:13:46]Waiting for new connection... [17:13:46] Sock 7.Parse request [17:13:46]Sock 7.Check first char [17:13:46]Sock 7.First char is OK [17:13:46]request: POST /json_proto HTTP/1.0 [17:13:46]Method: POST [17:13:46]URL: /json_proto [17:13:46]Method is POST - this is cgi request [17:13:46]url: /json_proto [17:13:46]query_string will be loaded in cgi processing [17:13:46]execute_cgi json_proto POST (null) [17:13:46]execute_cgi path=json_proto method=POST [17:13:46]POST find Content-Length [17:13:46]Host: 172.17.53.195:8080 [17:13:46]Content-Length: 679 [17:13:46]Content-Type: application/json [17:13:46] [17:13:46]POST finish read [17:13:46]Found Content-Length = 679 [17:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [17:13:46]execute_script... [17:13: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)220343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [17:13:46]POST & json_proto [17:13:46]process_json_proto [17:13:46]json parsed OK: [17:13:46]protocol is kg_v1.0 [17:13:46]action value=close_receipt [17:13:46]process_action close_receipt [17:13:46]cmd_close_receipt [17:13:46]MH_GetDate [17:13:46]Write to MH i2c: F0 00 00 B5 06 AA [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 09 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 09 00 B5 06 00 57 3A 15 67 21 48 4A 65 D8 [17:13:46]GetLastDocTimeStamp 1729444329 [17:13:46]current date 1729444439 [17:13:46]FM_GetShiftState [17:13:46]SAM_PROTO_GetShiftState [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 13 01 00 [17:13:46]Write to MH i2c: E2 08 00 B6 06 80 13 01 00 00 00 00 00 39 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0E 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0E 00 B6 06 00 09 00 01 71 50 14 67 00 00 00 00 90 00 81 [17:13:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:13:46]wFMCommunicate OK [17:13:46]SAM_PROTO_GetShiftState done [17:13:46]FM_GetShiftState done [17:13:46]opened in 1729384561 [17:13:46]opened+sec_in_day 1729470961 [17:13:46]quantity*price = 150037 [17:13:46]sum+1 = 150039 [17:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 257 20.10.2024 17:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165775 ФПД: 128056915302539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165775&fm=128056915302539&tin=02508201610067®Number=0000000000091764&sum=150000 [17:13:47]StoreToDocumentArchive [17:13:47]shift 534 fd 165775 [17:13:47]save to /storage/0534/doc_00165775 [17:13:47]save last doc name /storage/0534/doc_00165775 to /storage/kkm_last_doc_name [17:13:47]save OK [17:13:47]Clear old archive folders... [17:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:47]tlvbuf is 0169F210 [17:13:47]SAM_PROTO_ClearQueue [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 09 00 00 [17:13:47]Write to MH i2c: E2 08 00 C3 06 80 09 00 00 00 00 00 00 3B [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 C3 06 00 90 00 3D [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]SAM_PROTO_ClearQueue done [17:13:47]KKMCreateOFDPacket [17:13:47]OFDProtocolAddRootSTLVToBuf [17:13:47]FM_MakeSignedData [17:13:47]FM_MakeSignedData [17:13:47]SAM_PROTO_SignData [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 01 02 [17:13:47]Write to MH i2c: E2 08 00 C4 06 80 0D 01 02 00 00 00 00 43 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 C4 06 00 90 00 3E [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=255 [17:13:47]MH_SAM_APDU [17:13: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 01 01 00 00 F4 03 04 00 57 3A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 87 02 00 35 04 06 00 74 77 92 F2 [17:13:47]Write to MH i2c: E2 02 01 C5 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 01 01 00 00 F4 03 04 00 57 3A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 87 02 00 35 04 06 00 74 77 92 F2 00 00 F4 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 C5 06 00 90 00 3F [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=7 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 02 02 02 98 8B [17:13:47]Write to MH i2c: E2 0A 00 C6 06 80 0D 02 02 02 00 98 8B 00 00 6D [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 03 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [17:13:48]RAPDU: 90 00 [17:13:48]wFMCommunicate OK [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 0D 03 02 [17:13:48]Write to MH i2c: E2 08 00 C7 06 80 0D 03 02 00 00 00 00 48 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 0B 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 0B 00 C7 06 00 B3 45 0C 41 0D A3 30 50 90 00 BE [17:13:48]RAPDU: B3 45 0C 41 0D A3 30 50 90 00 [17:13:48]wFMCommunicate OK [17:13:48]SAM_PROTO_SignData done [17:13:48]FM_MakeSignedData done [17:13:48]CreateOFDProtocolMessage [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 11 00 00 [17:13:48]Write to MH i2c: E2 08 00 C8 06 80 11 00 00 00 00 00 00 48 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 17 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 17 00 C8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A0 [17:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:13:48]wFMCommunicate OK [17:13:48]CreateOFDProtocolMessage done [17:13:48]OFDSenderStorePacket 165775 [17:13:48]StoreOFDPacket docnum=165775 [17:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F2 67 04 01 37 3D 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 01 01 00 00 F4 03 04 00 57 3A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 87 02 00 35 04 06 00 74 77 92 F2 98 8B B3 45 0C 41 0D A3 30 50 [17:13:48]CheckFolder [17:13:48]dirname=/storage/ofd_packets [17:13:48]CheckFolder done [17:13:48]ProducePacketName [17:13:48]name=ofd_packets/00165775 [17:13:48]NVStorageSaveData ofd_packets/00165775 [17:13:48]File name is /storage/ofd_packets/00165775 [17:13:48]Write 298 bytes [17:13:48]NVStorageSaveData done [17:13:48]OFDSenderStorePacket done [17:13:48]KKMCreateOFDPacket done [17:13:48]NVStorageSaveData kkm_last_timestamp [17:13:48]File name is /storage/kkm_last_timestamp [17:13:48]Write 4 bytes [17:13:48]NVStorageSaveData done [17:13:48]ExternCall_PrintAddStr [17:13:48]wPrintStart [17:13:48]Write to MH i2c: 01 00 00 C9 06 CF [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 FF 0F E4 [17:13:48]RasterBufferAndPrint [17:13:48]line Счет N : (1)220343 [17:13:48]line ИНН: 02508201610067 [17:13:48]line Контрольно-Кассовый Чек [17:13:48]line ПРОДАЖА [17:13:48]line ТРК (МРК, ГНК) : 31 [17:13:48]line Товар: 2710194210 [17:13:48]line ДТ-К-5 [17:13:48]line 19.690 * 76.20 [17:13:48]line = 1500.38 [17:13:48]line НДС 12% НСП 1% [17:13:48]line > о реализуемом товаре [17:13:48]line ОКРУГЛЕНИЕ: -0.38 [17:13:48]line ИТОГО: 1500.00 [17:13:48]line Внесено: 1500.00 [17:13:48]line СДАЧА: 0.00 [17:13:48]line НСП 1% : 13.28 [17:13:48]line НДС 12% : 159.33 [17:13:48]line Наличными: 1500.00 [17:13:48]line Безнал.: 0.00 [17:13:48]line Место: АЗС № 161 "Партнер Нефть" [17:13:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:13:48]line СНО: Общий режим [17:13:48]line Чек 257 20.10.2024 17:13 [17:13:48]line Смена: 534 ФФД: 1.0 [17:13:48]line ЗНМ: 0300000104 [17:13:48]line РНМ: 0000000000091764 [17:13:48]line Версия ККМ: 001 [17:13:48]line ФМ: 0000000000871759 [17:13:48]line ФД: 165775 [17:13:48]line ФПД: 128056915302539 [17:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165775&fm=128056915302539&tin=02508201610067®Number=0000000000091764&sum=150000 [17:13:48]written 0, free lines is 4095 [17:13:48]OFD Sender: Processing packet 165775 [packets to send 48, broken 47] [17:13:48]ProducePacketName [17:13:48]name=ofd_packets/00165775 [17:13:48]OFD Sender: To server: pG, [17:13:48]CommunicateWithHost lk.salyk.kg:30040 [17:13:48]ConnectInit lk.salyk.kg [17:13:48]Connected sock=10 [17:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F2 67 04 01 37 3D 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 01 01 00 00 F4 03 04 00 57 3A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 87 02 00 35 04 06 00 74 77 92 F2 98 8B B3 45 0C 41 0D A3 30 50 [17:13:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 14 47 00 62 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 31 37 35 39 10 04 04 00 8F 87 02 00 F4 03 04 00 C9 E0 14 67 B6 04 01 00 00 E5 38 E9 2A 23 ED 39 0B [17:13:48]CommunicateWithHost err = 0 [17:13:48]CheckOFDResponse [17:13:48]1017 (14) - 77093643461234 [17:13:48]1041 (16) - 0000000000871759 [17:13:48]1040 (4) - 165775 [17:13:48]1012 (4) - 20.10.2024 10:51 [17:13:48]1206 (1) - 0 [17:13:48]OFD Sender: Remove packet 165775 [17:13:48]ProducePacketName [17:13:48]name=ofd_packets/00165775 [17:13:48]NVStorageDeleteData [17:13:48]Write to MH i2c: 01 00 00 F4 06 FA [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 F4 06 00 00 00 00 00 C4 0C D1 [17:13:48]RasterBufferAndPrint [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]written 0, free lines is 3273 [17:13:48]MH_Cut [17:13:48]Write to MH i2c: D1 01 00 FB 06 01 D3 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 01 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 01 00 FB 06 00 D2 [17:13:48]Write to MH i2c: 01 00 00 FC 06 02 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:49]OFD Sender: No OFD packet to send [17:13:49]*** Cut start [17:13:49]*** Partial cut [17:13:49]*** CUTSNS_PIN = 1 [17:13:49]*** CUTSNS_PIN = 0 [17:13:50]*** Brake cut motor [17:13:50]Read from MH i2c: 01 [17:13:50]MH_I2C_Read... [17:13:50]*** Stop cut motor [17:13:50]*** Cut end [17:13:50]Read from MH i2c: 01 07 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: 01 07 00 FC 06 00 00 00 00 00 FF 0F 17 [17:13:50]process_action close_receipt done [17:13:50]requested_data is exist [17:13:50]produce_requested_data [17:13:50]requested_item fm.sn is exist - process it [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 11 00 00 [17:13:50]Write to MH i2c: E2 08 00 FD 06 80 11 00 00 00 00 00 00 7D [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 17 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 17 00 FD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D5 [17:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:13:50]wFMCommunicate OK [17:13:50]requested_item fd.num is exist - process it [17:13:50]SAM_PROTO_GetFieldsCounters [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 13 00 00 [17:13:50]Write to MH i2c: E2 08 00 FE 06 80 13 00 00 00 00 00 00 80 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 62 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 62 00 FE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 87 02 00 0E 04 04 00 16 02 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 DE [17:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 87 02 00 0E 04 04 00 16 02 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:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetFieldsCounters done [17:13:50]requested_item shift.num is exist - process it [17:13:50]requested_item shift.opened is exist - process it [17:13:50]req_shift_opened [17:13:50]FM_GetShiftState [17:13:50]SAM_PROTO_GetShiftState [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 13 01 00 [17:13:50]Write to MH i2c: E2 08 00 FF 06 80 13 01 00 00 00 00 00 82 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0E 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0E 00 FF 06 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CA [17:13:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetShiftState done [17:13:50]FM_GetShiftState done [17:13:50]req_shift_opened done [17:13:50]requested_item shift.open_date is exist - process it [17:13:50]req_shift_open_date [17:13:50]req_shift_open_date done [17:13:50]produce_requested_data done [17:13:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165775,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:13:50]process_action_free close_receipt [17:13:50]json_value_free [17:13:50]json_value_free done [17:13:50]process_json_proto returns [17:13:50]Send response to host [17:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165775,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:13:50]free response buf [17:13:50]execute_script done [17:13:50]execute_script returns [17:13:50]free content buf [17:13:50]Sock 7.Close socket [17:13:50]Sock 7.Thread stoped [17:13:54]OFD Sender: No OFD packet to send [17:13:58]accept exits with 9 [17:13:58]New connection [17:13:58]New thread 3066776932 created [17:13:58]Thread 3066920292 joined [17:13:58]Waiting for new connection... [17:13:58] Sock 9.Parse request [17:13:58]Sock 9.Check first char [17:13:58]Sock 9.First char is OK [17:13:58]request: POST /json_proto HTTP/1.0 [17:13:58]Method: POST [17:13:58]URL: /json_proto [17:13:58]Method is POST - this is cgi request [17:13:58]url: /json_proto [17:13:58]query_string will be loaded in cgi processing [17:13:58]execute_cgi json_proto POST (null) [17:13:58]execute_cgi path=json_proto method=POST [17:13:58]POST find Content-Length [17:13:58]Host: 172.17.53.195:8080 [17:13:58]Content-Length: 674 [17:13:58]Content-Type: application/json [17:13:58] [17:13:58]POST finish read [17:13:58]Found Content-Length = 674 [17:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220344", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:58]execute_script... [17:13: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)220344", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:58]POST & json_proto [17:13:58]process_json_proto [17:13:58]json parsed OK: [17:13:58]protocol is kg_v1.0 [17:13:58]action value=close_receipt [17:13:58]process_action close_receipt [17:13:58]cmd_close_receipt [17:13:58]MH_GetDate [17:13:58]Write to MH i2c: F0 00 00 00 07 F6 [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: F0 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: F0 09 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: F0 09 00 00 07 00 63 3A 15 67 21 48 4A 65 30 [17:13:58]GetLastDocTimeStamp 1729444439 [17:13:58]current date 1729444451 [17:13:58]FM_GetShiftState [17:13:58]SAM_PROTO_GetShiftState [17:13:58]wFMCommunicate request_size=4 [17:13:58]MH_SAM_APDU [17:13:58]CAPDU: 80 13 01 00 [17:13:58]Write to MH i2c: E2 08 00 01 07 80 13 01 00 00 00 00 00 85 [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:58]Read from MH i2c: E2 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: E2 0E 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: E2 0E 00 01 07 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CD [17:13:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:13:58]wFMCommunicate OK [17:13:58]SAM_PROTO_GetShiftState done [17:13:58]FM_GetShiftState done [17:13:58]opened in 1729384561 [17:13:58]opened+sec_in_day 1729470961 [17:13:58]quantity*price = 50063 [17:13:58]sum+1 = 50064 [17:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 258 20.10.2024 17:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165776 ФПД: 158908146776081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165776&fm=158908146776081&tin=02508201610067®Number=0000000000091764&sum=50000 [17:13:59]StoreToDocumentArchive [17:13:59]shift 534 fd 165776 [17:13:59]save to /storage/0534/doc_00165776 [17:13:59]save last doc name /storage/0534/doc_00165776 to /storage/kkm_last_doc_name [17:13:59]save OK [17:13:59]Clear old archive folders... [17:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:59]tlvbuf is 01891F30 [17:13:59]SAM_PROTO_ClearQueue [17:13:59]wFMCommunicate request_size=4 [17:13:59]MH_SAM_APDU [17:13:59]CAPDU: 80 09 00 00 [17:13:59]Write to MH i2c: E2 08 00 0E 07 80 09 00 00 00 00 00 00 87 [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:59]OFD Sender: No OFD packet to send [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 03 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 03 00 0E 07 00 90 00 89 [17:13:59]RAPDU: 90 00 [17:13:59]wFMCommunicate OK [17:13:59]SAM_PROTO_ClearQueue done [17:13:59]KKMCreateOFDPacket [17:13:59]OFDProtocolAddRootSTLVToBuf [17:13:59]FM_MakeSignedData [17:13:59]FM_MakeSignedData [17:13:59]SAM_PROTO_SignData [17:13:59]wFMCommunicate request_size=4 [17:13:59]MH_SAM_APDU [17:13:59]CAPDU: 80 0D 01 02 [17:13:59]Write to MH i2c: E2 08 00 0F 07 80 0D 01 02 00 00 00 00 8F [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 03 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [17:13:59]RAPDU: 90 00 [17:13:59]wFMCommunicate OK [17:13:59]wFMCommunicate request_size=255 [17:13:59]MH_SAM_APDU [17:13: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 02 01 00 00 F4 03 04 00 63 3A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 87 02 00 35 04 06 00 90 86 AF A3 [17:13:59]Write to MH i2c: E2 02 01 10 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 02 01 00 00 F4 03 04 00 63 3A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 87 02 00 35 04 06 00 90 86 AF A3 00 00 58 [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 03 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [17:13:59]RAPDU: 90 00 [17:13:59]wFMCommunicate OK [17:13:59]wFMCommunicate request_size=7 [17:13:59]MH_SAM_APDU [17:13:59]CAPDU: 80 0D 02 02 02 F8 11 [17:13:59]Write to MH i2c: E2 0A 00 11 07 80 0D 02 02 02 00 F8 11 00 00 9F [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 03 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [17:13:59]RAPDU: 90 00 [17:13:59]wFMCommunicate OK [17:13:59]wFMCommunicate request_size=4 [17:13:59]MH_SAM_APDU [17:13:59]CAPDU: 80 0D 03 02 [17:13:59]Write to MH i2c: E2 08 00 12 07 80 0D 03 02 00 00 00 00 94 [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 0B 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 0B 00 12 07 00 2D 59 61 93 68 08 30 13 90 00 C2 [17:13:59]RAPDU: 2D 59 61 93 68 08 30 13 90 00 [17:13:59]wFMCommunicate OK [17:13:59]SAM_PROTO_SignData done [17:13:59]FM_MakeSignedData done [17:13:59]CreateOFDProtocolMessage [17:13:59]wFMCommunicate request_size=4 [17:13:59]MH_SAM_APDU [17:13:59]CAPDU: 80 11 00 00 [17:13:59]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:59]Read from MH i2c: E2 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 17 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [17:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:13:59]wFMCommunicate OK [17:13:59]CreateOFDProtocolMessage done [17:13:59]OFDSenderStorePacket 165776 [17:13:59]StoreOFDPacket docnum=165776 [17:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8F D5 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 02 01 00 00 F4 03 04 00 63 3A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 87 02 00 35 04 06 00 90 86 AF A3 F8 11 2D 59 61 93 68 08 30 13 [17:13:59]CheckFolder [17:13:59]dirname=/storage/ofd_packets [17:13:59]CheckFolder done [17:13:59]ProducePacketName [17:13:59]name=ofd_packets/00165776 [17:13:59]NVStorageSaveData ofd_packets/00165776 [17:13:59]File name is /storage/ofd_packets/00165776 [17:13:59]Write 298 bytes [17:13:59]NVStorageSaveData done [17:13:59]OFDSenderStorePacket done [17:13:59]KKMCreateOFDPacket done [17:13:59]NVStorageSaveData kkm_last_timestamp [17:13:59]File name is /storage/kkm_last_timestamp [17:13:59]Write 4 bytes [17:13:59]NVStorageSaveData done [17:13:59]ExternCall_PrintAddStr [17:13:59]wPrintStart [17:13:59]Write to MH i2c: 01 00 00 14 07 1B [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: 01 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: 01 07 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 FF 0F 30 [17:13:59]RasterBufferAndPrint [17:13:59]line Счет N : (1)220344 [17:13:59]line ИНН: 02508201610067 [17:13:59]line Контрольно-Кассовый Чек [17:13:59]line ПРОДАЖА [17:13:59]line ТРК (МРК, ГНК) : 21 [17:13:59]line Товар: 2710194210 [17:13:59]line ДТ-К-5 [17:13:59]line 6.570 * 76.20 [17:13:59]line = 500.63 [17:13:59]line НДС 12% НСП 1% [17:13:59]line > о реализуемом товаре [17:13:59]line ОКРУГЛЕНИЕ: -0.63 [17:13:59]line ИТОГО: 500.00 [17:13:59]line Внесено: 500.00 [17:13:59]line СДАЧА: 0.00 [17:13:59]line НСП 1% : 4.43 [17:13:59]line НДС 12% : 53.16 [17:13:59]line Наличными: 500.00 [17:13:59]line Безнал.: 0.00 [17:13:59]line Место: АЗС № 161 "Партнер Нефть" [17:13:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:13:59]line СНО: Общий режим [17:13:59]line Чек 258 20.10.2024 17:14 [17:13:59]line Смена: 534 ФФД: 1.0 [17:13:59]line ЗНМ: 0300000104 [17:13:59]line РНМ: 0000000000091764 [17:13:59]line Версия ККМ: 001 [17:13:59]line ФМ: 0000000000871759 [17:13:59]line ФД: 165776 [17:13:59]line ФПД: 158908146776081 [17:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165776&fm=158908146776081&tin=02508201610067®Number=0000000000091764&sum=50000 [17:14:00]OFD Sender: Processing packet 165776 [packets to send 48, broken 47] [17:14:00]ProducePacketName [17:14:00]name=ofd_packets/00165776 [17:14:00]OFD Sender: To server: pG, [17:14:00]CommunicateWithHost lk.salyk.kg:30040 [17:14:00]ConnectInit lk.salyk.kg [17:14:00]written 0, free lines is 4095 [17:14:00]Connected sock=10 [17:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8F D5 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 02 01 00 00 F4 03 04 00 63 3A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 87 02 00 35 04 06 00 90 86 AF A3 F8 11 2D 59 61 93 68 08 30 13 [17:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 47 D2 47 00 78 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 31 37 35 39 10 04 04 00 90 87 02 00 F4 03 04 00 D4 E0 14 67 B6 04 01 00 00 CD 0A DA BB AF 1D 70 AC [17:14:00]CommunicateWithHost err = 0 [17:14:00]CheckOFDResponse [17:14:00]1017 (14) - 77093643461234 [17:14:00]1041 (16) - 0000000000871759 [17:14:00]1040 (4) - 165776 [17:14:00]1012 (4) - 20.10.2024 10:52 [17:14:00]1206 (1) - 0 [17:14:00]OFD Sender: Remove packet 165776 [17:14:00]ProducePacketName [17:14:00]name=ofd_packets/00165776 [17:14:00]NVStorageDeleteData [17:14:00]Write to MH i2c: 01 00 00 3F 07 46 [17:14:00]Write i2c OK [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: 01 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: 01 07 00 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: 01 07 00 3F 07 00 00 00 00 00 D3 0C 2C [17:14:00]RasterBufferAndPrint [17:14:00]line [17:14:00]line [17:14:00]line [17:14:00]line [17:14:00]line [17:14:00]written 0, free lines is 3289 [17:14:00]MH_Cut [17:14:00]Write to MH i2c: D1 01 00 46 07 01 1F [17:14:00]Write i2c OK [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: D1 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: D1 01 00 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: D1 01 00 46 07 00 1E [17:14:00]Write to MH i2c: 01 00 00 47 07 4E [17:14:00]Write i2c OK [17:14:00]MH_I2C_Read... [17:14:01]OFD Sender: No OFD packet to send [17:14:01]*** Cut start [17:14:01]*** Partial cut [17:14:01]*** CUTSNS_PIN = 1 [17:14:01]*** CUTSNS_PIN = 0 [17:14:01]*** Brake cut motor [17:14:02]Read from MH i2c: 01 [17:14:02]MH_I2C_Read... [17:14:02]*** Stop cut motor [17:14:02]*** Cut end [17:14:02]Read from MH i2c: 01 07 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 FF 0F 63 [17:14:02]process_action close_receipt done [17:14:02]requested_data is exist [17:14:02]produce_requested_data [17:14:02]requested_item fm.sn is exist - process it [17:14:02]wFMCommunicate request_size=4 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 11 00 00 [17:14:02]Write to MH i2c: E2 08 00 48 07 80 11 00 00 00 00 00 00 C9 [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 17 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 17 00 48 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 21 [17:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:14:02]wFMCommunicate OK [17:14:02]requested_item fd.num is exist - process it [17:14:02]SAM_PROTO_GetFieldsCounters [17:14:02]wFMCommunicate request_size=4 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 13 00 00 [17:14:02]Write to MH i2c: E2 08 00 49 07 80 13 00 00 00 00 00 00 CC [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 62 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 62 00 49 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [17:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:02]wFMCommunicate OK [17:14:02]SAM_PROTO_GetFieldsCounters done [17:14:02]requested_item shift.num is exist - process it [17:14:02]requested_item shift.opened is exist - process it [17:14:02]req_shift_opened [17:14:02]FM_GetShiftState [17:14:02]SAM_PROTO_GetShiftState [17:14:02]wFMCommunicate request_size=4 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 13 01 00 [17:14:02]Write to MH i2c: E2 08 00 4A 07 80 13 01 00 00 00 00 00 CE [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 0E 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 0E 00 4A 07 00 09 00 01 71 50 14 67 00 00 00 00 90 00 16 [17:14:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:14:02]wFMCommunicate OK [17:14:02]SAM_PROTO_GetShiftState done [17:14:02]FM_GetShiftState done [17:14:02]req_shift_opened done [17:14:02]requested_item shift.open_date is exist - process it [17:14:02]req_shift_open_date [17:14:02]req_shift_open_date done [17:14:02]produce_requested_data done [17:14:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165776,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:14:02]process_action_free close_receipt [17:14:02]json_value_free [17:14:02]json_value_free done [17:14:02]process_json_proto returns [17:14:02]Send response to host [17:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165776,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:14:02]free response buf [17:14:02]execute_script done [17:14:02]execute_script returns [17:14:02]free content buf [17:14:02]Sock 9.Close socket [17:14:02]Sock 9.Thread stoped [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:54]accept exits with 7 [17:17:54]New connection [17:17:54]New thread 3066920292 created [17:17:54]Thread 3066776932 joined [17:17:54]Waiting for new connection... [17:17:54] Sock 7.Parse request [17:17:54]Sock 7.Check first char [17:17:54]Sock 7.First char is OK [17:17:54]request: POST /json_proto HTTP/1.0 [17:17:54]Method: POST [17:17:54]URL: /json_proto [17:17:54]Method is POST - this is cgi request [17:17:54]url: /json_proto [17:17:54]query_string will be loaded in cgi processing [17:17:54]execute_cgi json_proto POST (null) [17:17:54]execute_cgi path=json_proto method=POST [17:17:54]POST find Content-Length [17:17:54]Host: 172.17.53.195:8080 [17:17:54]Content-Length: 677 [17:17:54]Content-Type: application/json [17:17:54] [17:17:54]POST finish read [17:17:54]Found Content-Length = 677 [17:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:54]execute_script... [17:17: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)220345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:54]POST & json_proto [17:17:54]process_json_proto [17:17:54]json parsed OK: [17:17:54]protocol is kg_v1.0 [17:17:54]action value=close_receipt [17:17:54]process_action close_receipt [17:17:54]cmd_close_receipt [17:17:54]MH_GetDate [17:17:54]Write to MH i2c: F0 00 00 4B 07 41 [17:17:54]Write i2c OK [17:17:54]MH_I2C_Read... [17:17:54]Read from MH i2c: F0 [17:17:54]MH_I2C_Read... [17:17:54]Read from MH i2c: F0 09 00 [17:17:54]MH_I2C_Read... [17:17:54]Read from MH i2c: F0 09 00 4B 07 00 4F 3B 15 67 21 48 4A 65 68 [17:17:54]GetLastDocTimeStamp 1729444451 [17:17:54]current date 1729444687 [17:17:54]FM_GetShiftState [17:17:54]SAM_PROTO_GetShiftState [17:17:54]wFMCommunicate request_size=4 [17:17:54]MH_SAM_APDU [17:17:54]CAPDU: 80 13 01 00 [17:17:54]Write to MH i2c: E2 08 00 4C 07 80 13 01 00 00 00 00 00 D0 [17:17:54]Write i2c OK [17:17:54]MH_I2C_Read... [17:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:54]Read from MH i2c: E2 [17:17:54]MH_I2C_Read... [17:17:54]Read from MH i2c: E2 0E 00 [17:17:54]MH_I2C_Read... [17:17:54]Read from MH i2c: E2 0E 00 4C 07 00 09 00 01 71 50 14 67 00 00 00 00 90 00 18 [17:17:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:17:54]wFMCommunicate OK [17:17:54]SAM_PROTO_GetShiftState done [17:17:54]FM_GetShiftState done [17:17:54]opened in 1729384561 [17:17:54]opened+sec_in_day 1729470961 [17:17:54]quantity*price = 20003 [17:17:54]sum+1 = 20004 [17:17: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 259 20.10.2024 17:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165777 ФПД: 70856816051675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171807&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165777&fm=70856816051675&tin=02508201610067®Number=0000000000091764&sum=20000 [17:17:55]StoreToDocumentArchive [17:17:55]shift 534 fd 165777 [17:17:55]save to /storage/0534/doc_00165777 [17:17:55]save last doc name /storage/0534/doc_00165777 to /storage/kkm_last_doc_name [17:17:55]save OK [17:17:55]Clear old archive folders... [17:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:55]tlvbuf is 014D9F30 [17:17:55]SAM_PROTO_ClearQueue [17:17:55]wFMCommunicate request_size=4 [17:17:55]MH_SAM_APDU [17:17:55]CAPDU: 80 09 00 00 [17:17:55]Write to MH i2c: E2 08 00 59 07 80 09 00 00 00 00 00 00 D2 [17:17:55]Write i2c OK [17:17:55]MH_I2C_Read... [17:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:55]Read from MH i2c: E2 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 03 00 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 03 00 59 07 00 90 00 D4 [17:17:55]RAPDU: 90 00 [17:17:55]wFMCommunicate OK [17:17:55]SAM_PROTO_ClearQueue done [17:17:55]KKMCreateOFDPacket [17:17:55]OFDProtocolAddRootSTLVToBuf [17:17:55]FM_MakeSignedData [17:17:55]FM_MakeSignedData [17:17:55]SAM_PROTO_SignData [17:17:55]wFMCommunicate request_size=4 [17:17:55]MH_SAM_APDU [17:17:55]CAPDU: 80 0D 01 02 [17:17:55]Write to MH i2c: E2 08 00 5A 07 80 0D 01 02 00 00 00 00 DA [17:17:55]Write i2c OK [17:17:55]MH_I2C_Read... [17:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:55]Read from MH i2c: E2 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 03 00 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 03 00 5A 07 00 90 00 D5 [17:17:55]RAPDU: 90 00 [17:17:55]wFMCommunicate OK [17:17:55]wFMCommunicate request_size=255 [17:17:55]MH_SAM_APDU [17:17: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 4F 3B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 87 02 00 35 04 06 00 40 [17:17:55]Write to MH i2c: E2 02 01 5B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 4F 3B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 87 02 00 35 04 06 00 40 00 00 AE [17:17:55]Write i2c OK [17:17:55]MH_I2C_Read... [17:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:55]Read from MH i2c: E2 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 03 00 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 03 00 5B 07 00 90 00 D6 [17:17:55]RAPDU: 90 00 [17:17:55]wFMCommunicate OK [17:17:55]wFMCommunicate request_size=10 [17:17:55]MH_SAM_APDU [17:17:55]CAPDU: 80 0D 02 02 05 71 A3 59 C5 DB [17:17:55]Write to MH i2c: E2 0D 00 5C 07 80 0D 02 02 05 00 71 A3 59 C5 DB 00 00 F4 [17:17:55]Write i2c OK [17:17:55]MH_I2C_Read... [17:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:55]Read from MH i2c: E2 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 03 00 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [17:17:55]RAPDU: 90 00 [17:17:55]wFMCommunicate OK [17:17:55]wFMCommunicate request_size=4 [17:17:55]MH_SAM_APDU [17:17:55]CAPDU: 80 0D 03 02 [17:17:55]Write to MH i2c: E2 08 00 5D 07 80 0D 03 02 00 00 00 00 DF [17:17:55]Write i2c OK [17:17:55]MH_I2C_Read... [17:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:55]Read from MH i2c: E2 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 0B 00 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 0B 00 5D 07 00 B0 C4 62 1C 3A 9A BE BE 90 00 22 [17:17:55]RAPDU: B0 C4 62 1C 3A 9A BE BE 90 00 [17:17:55]wFMCommunicate OK [17:17:55]SAM_PROTO_SignData done [17:17:55]FM_MakeSignedData done [17:17:55]CreateOFDProtocolMessage [17:17:55]wFMCommunicate request_size=4 [17:17:55]MH_SAM_APDU [17:17:55]CAPDU: 80 11 00 00 [17:17:55]Write to MH i2c: E2 08 00 5E 07 80 11 00 00 00 00 00 00 DF [17:17:55]Write i2c OK [17:17:55]MH_I2C_Read... [17:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:55]Read from MH i2c: E2 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 17 00 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: E2 17 00 5E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [17:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:17:55]wFMCommunicate OK [17:17:55]CreateOFDProtocolMessage done [17:17:55]OFDSenderStorePacket 165777 [17:17:55]StoreOFDPacket docnum=165777 [17:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 55 A0 07 01 89 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 4F 3B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 87 02 00 35 04 06 00 40 71 A3 59 C5 DB B0 C4 62 1C 3A 9A BE BE [17:17:55]CheckFolder [17:17:55]dirname=/storage/ofd_packets [17:17:55]CheckFolder done [17:17:55]ProducePacketName [17:17:55]name=ofd_packets/00165777 [17:17:55]NVStorageSaveData ofd_packets/00165777 [17:17:55]File name is /storage/ofd_packets/00165777 [17:17:55]Write 301 bytes [17:17:55]NVStorageSaveData done [17:17:55]OFDSenderStorePacket done [17:17:55]KKMCreateOFDPacket done [17:17:55]NVStorageSaveData kkm_last_timestamp [17:17:55]File name is /storage/kkm_last_timestamp [17:17:55]Write 4 bytes [17:17:55]NVStorageSaveData done [17:17:55]ExternCall_PrintAddStr [17:17:55]wPrintStart [17:17:55]Write to MH i2c: 01 00 00 5F 07 66 [17:17:55]Write i2c OK [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: 01 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: 01 07 00 [17:17:55]MH_I2C_Read... [17:17:55]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 FF 0F 7B [17:17:55]RasterBufferAndPrint [17:17:55]line Счет N : (1)220345 [17:17:55]line ИНН: 02508201610067 [17:17:55]line Контрольно-Кассовый Чек [17:17:55]line ПРОДАЖА [17:17:55]line ТРК (МРК, ГНК) : 23 [17:17:55]line Товар: 2710124130 [17:17:55]line Аи-92-К-5 [17:17:55]line 2.990 * 66.90 [17:17:55]line = 200.03 [17:17:55]line НДС 12% НСП 1% [17:17:55]line > о реализуемом товаре [17:17:55]line ОКРУГЛЕНИЕ: -0.03 [17:17:55]line ИТОГО: 200.00 [17:17:55]line Внесено: 200.00 [17:17:55]line СДАЧА: 0.00 [17:17:55]line НСП 1% : 1.77 [17:17:55]line НДС 12% : 21.24 [17:17:55]line Наличными: 200.00 [17:17:55]line Безнал.: 0.00 [17:17:55]line Место: АЗС № 161 "Партнер Нефть" [17:17:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:17:55]line СНО: Общий режим [17:17:55]line Чек 259 20.10.2024 17:18 [17:17:55]line Смена: 534 ФФД: 1.0 [17:17:55]line ЗНМ: 0300000104 [17:17:55]line РНМ: 0000000000091764 [17:17:55]line Версия ККМ: 001 [17:17:55]line ФМ: 0000000000871759 [17:17:55]line ФД: 165777 [17:17:55]line ФПД: 70856816051675 [17:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171807&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165777&fm=70856816051675&tin=02508201610067®Number=0000000000091764&sum=20000 [17:17:56]OFD Sender: Processing packet 165777 [packets to send 48, broken 47] [17:17:56]ProducePacketName [17:17:56]name=ofd_packets/00165777 [17:17:56]OFD Sender: To server: pG, [17:17:56]CommunicateWithHost lk.salyk.kg:30040 [17:17:56]ConnectInit lk.salyk.kg [17:17:56]written 0, free lines is 4095 [17:17:56]Connected sock=10 [17:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 55 A0 07 01 89 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 4F 3B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 87 02 00 35 04 06 00 40 71 A3 59 C5 DB B0 C4 62 1C 3A 9A BE BE [17:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 74 21 47 00 EC 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 31 37 35 39 10 04 04 00 91 87 02 00 F4 03 04 00 C0 E1 14 67 B6 04 01 00 00 A1 E2 72 D6 4E 2B 0B 5B [17:17:56]CommunicateWithHost err = 0 [17:17:56]CheckOFDResponse [17:17:56]1017 (14) - 77093643461234 [17:17:56]1041 (16) - 0000000000871759 [17:17:56]1040 (4) - 165777 [17:17:56]1012 (4) - 20.10.2024 10:56 [17:17:56]1206 (1) - 0 [17:17:56]OFD Sender: Remove packet 165777 [17:17:56]ProducePacketName [17:17:56]name=ofd_packets/00165777 [17:17:56]NVStorageDeleteData [17:17:56]Write to MH i2c: 01 00 00 8A 07 91 [17:17:56]Write i2c OK [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: 01 [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: 01 07 00 [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: 01 07 00 8A 07 00 00 00 00 00 CF 0C 73 [17:17:56]RasterBufferAndPrint [17:17:56]line [17:17:56]line [17:17:56]line [17:17:56]line [17:17:56]line [17:17:56]written 0, free lines is 3286 [17:17:56]MH_Cut [17:17:56]Write to MH i2c: D1 01 00 91 07 01 6A [17:17:56]Write i2c OK [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: D1 [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: D1 01 00 [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: D1 01 00 91 07 00 69 [17:17:56]Write to MH i2c: 01 00 00 92 07 99 [17:17:56]Write i2c OK [17:17:56]MH_I2C_Read... [17:17:57]OFD Sender: No OFD packet to send [17:17:57]*** Cut start [17:17:57]*** Partial cut [17:17:57]*** CUTSNS_PIN = 1 [17:17:57]*** CUTSNS_PIN = 0 [17:17:57]*** Brake cut motor [17:17:58]Read from MH i2c: 01 [17:17:58]MH_I2C_Read... [17:17:58]*** Stop cut motor [17:17:58]*** Cut end [17:17:58]Read from MH i2c: 01 07 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: 01 07 00 92 07 00 00 00 00 00 FF 0F AE [17:17:58]process_action close_receipt done [17:17:58]requested_data is exist [17:17:58]produce_requested_data [17:17:58]requested_item fm.sn is exist - process it [17:17:58]wFMCommunicate request_size=4 [17:17:58]MH_SAM_APDU [17:17:58]CAPDU: 80 11 00 00 [17:17:58]Write to MH i2c: E2 08 00 93 07 80 11 00 00 00 00 00 00 14 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:58]Read from MH i2c: E2 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 17 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 17 00 93 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [17:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:17:58]wFMCommunicate OK [17:17:58]requested_item fd.num is exist - process it [17:17:58]SAM_PROTO_GetFieldsCounters [17:17:58]wFMCommunicate request_size=4 [17:17:58]MH_SAM_APDU [17:17:58]CAPDU: 80 13 00 00 [17:17:58]Write to MH i2c: E2 08 00 94 07 80 13 00 00 00 00 00 00 17 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:58]Read from MH i2c: E2 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 62 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 62 00 94 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 87 02 00 0E 04 04 00 16 02 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 7D [17:17:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 87 02 00 0E 04 04 00 16 02 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:17:58]wFMCommunicate OK [17:17:58]SAM_PROTO_GetFieldsCounters done [17:17:58]requested_item shift.num is exist - process it [17:17:58]requested_item shift.opened is exist - process it [17:17:58]req_shift_opened [17:17:58]FM_GetShiftState [17:17:58]SAM_PROTO_GetShiftState [17:17:58]wFMCommunicate request_size=4 [17:17:58]MH_SAM_APDU [17:17:58]CAPDU: 80 13 01 00 [17:17:58]Write to MH i2c: E2 08 00 95 07 80 13 01 00 00 00 00 00 19 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:58]Read from MH i2c: E2 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 0E 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 0E 00 95 07 00 09 00 01 71 50 14 67 00 00 00 00 90 00 61 [17:17:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:17:58]wFMCommunicate OK [17:17:58]SAM_PROTO_GetShiftState done [17:17:58]FM_GetShiftState done [17:17:58]req_shift_opened done [17:17:58]requested_item shift.open_date is exist - process it [17:17:58]req_shift_open_date [17:17:58]req_shift_open_date done [17:17:58]produce_requested_data done [17:17:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165777,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:17:58]process_action_free close_receipt [17:17:58]json_value_free [17:17:58]json_value_free done [17:17:58]process_json_proto returns [17:17:58]Send response to host [17:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165777,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:17:58]free response buf [17:17:58]execute_script done [17:17:58]execute_script returns [17:17:58]free content buf [17:17:58]Sock 7.Close socket [17:17:58]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:21]accept exits with 9 [17:23:21]New connection [17:23:21]New thread 3066776932 created [17:23:21]Thread 3066920292 joined [17:23:21]Waiting for new connection... [17:23:21] Sock 9.Parse request [17:23:21]Sock 9.Check first char [17:23:21]Sock 9.First char is OK [17:23:21]request: POST /json_proto HTTP/1.0 [17:23:21]Method: POST [17:23:21]URL: /json_proto [17:23:21]Method is POST - this is cgi request [17:23:21]url: /json_proto [17:23:21]query_string will be loaded in cgi processing [17:23:21]execute_cgi json_proto POST (null) [17:23:21]execute_cgi path=json_proto method=POST [17:23:21]POST find Content-Length [17:23:21]Host: 172.17.53.195:8080 [17:23:21]Content-Length: 677 [17:23:21]Content-Type: application/json [17:23:21] [17:23:21]POST finish read [17:23:21]Found Content-Length = 677 [17:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:21]execute_script... [17:23: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)220346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:21]POST & json_proto [17:23:21]process_json_proto [17:23:21]json parsed OK: [17:23:21]protocol is kg_v1.0 [17:23:21]action value=close_receipt [17:23:21]process_action close_receipt [17:23:21]cmd_close_receipt [17:23:21]MH_GetDate [17:23:21]Write to MH i2c: F0 00 00 96 07 8C [17:23:21]Write i2c OK [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: F0 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: F0 09 00 [17:23:21]MH_I2C_Read... [17:23:21]Read from MH i2c: F0 09 00 96 07 00 97 3C 15 67 21 48 4A 65 FC [17:23:21]GetLastDocTimeStamp 1729444687 [17:23:21]current date 1729445015 [17:23:21]FM_GetShiftState [17:23:21]SAM_PROTO_GetShiftState [17:23:21]wFMCommunicate request_size=4 [17:23:21]MH_SAM_APDU [17:23:21]CAPDU: 80 13 01 00 [17:23:21]Write to MH i2c: E2 08 00 97 07 80 13 01 00 00 00 00 00 1B [17:23:21]Write i2c OK [17:23:21]MH_I2C_Read... [17:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:22]Read from MH i2c: E2 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: E2 0E 00 [17:23:22]MH_I2C_Read... [17:23:22]Read from MH i2c: E2 0E 00 97 07 00 09 00 01 71 50 14 67 00 00 00 00 90 00 63 [17:23:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:23:22]wFMCommunicate OK [17:23:22]SAM_PROTO_GetShiftState done [17:23:22]FM_GetShiftState done [17:23:22]opened in 1729384561 [17:23:22]opened+sec_in_day 1729470961 [17:23:22]quantity*price = 49974 [17:23:22]sum+1 = 49975 [17:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 260 20.10.2024 17:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165778 ФПД: 64024336447443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172335&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165778&fm=64024336447443&tin=02508201610067®Number=0000000000091764&sum=49900 [17:23:23]StoreToDocumentArchive [17:23:23]shift 534 fd 165778 [17:23:23]save to /storage/0534/doc_00165778 [17:23:23]save last doc name /storage/0534/doc_00165778 to /storage/kkm_last_doc_name [17:23:23]save OK [17:23:23]Clear old archive folders... [17:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:23]tlvbuf is 01456610 [17:23:23]SAM_PROTO_ClearQueue [17:23:23]wFMCommunicate request_size=4 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 09 00 00 [17:23:23]Write to MH i2c: E2 08 00 A4 07 80 09 00 00 00 00 00 00 1D [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [17:23:23]RAPDU: 90 00 [17:23:23]wFMCommunicate OK [17:23:23]SAM_PROTO_ClearQueue done [17:23:23]KKMCreateOFDPacket [17:23:23]OFDProtocolAddRootSTLVToBuf [17:23:23]FM_MakeSignedData [17:23:23]FM_MakeSignedData [17:23:23]SAM_PROTO_SignData [17:23:23]wFMCommunicate request_size=4 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 0D 01 02 [17:23:23]Write to MH i2c: E2 08 00 A5 07 80 0D 01 02 00 00 00 00 25 [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [17:23:23]RAPDU: 90 00 [17:23:23]wFMCommunicate OK [17:23:23]wFMCommunicate request_size=255 [17:23:23]MH_SAM_APDU [17:23: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 97 3C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 87 02 00 35 04 06 00 3A [17:23:23]Write to MH i2c: E2 02 01 A6 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 97 3C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 87 02 00 35 04 06 00 3A 00 00 5D [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [17:23:23]RAPDU: 90 00 [17:23:23]wFMCommunicate OK [17:23:23]wFMCommunicate request_size=10 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 0D 02 02 05 3A D3 D4 B7 D3 [17:23:23]Write to MH i2c: E2 0D 00 A7 07 80 0D 02 02 05 00 3A D3 D4 B7 D3 00 00 9D [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 03 00 A7 07 00 90 00 22 [17:23:23]RAPDU: 90 00 [17:23:23]wFMCommunicate OK [17:23:23]wFMCommunicate request_size=4 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 0D 03 02 [17:23:23]Write to MH i2c: E2 08 00 A8 07 80 0D 03 02 00 00 00 00 2A [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 0B 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 0B 00 A8 07 00 9D CD 06 20 7B 81 B9 3C 90 00 AC [17:23:23]RAPDU: 9D CD 06 20 7B 81 B9 3C 90 00 [17:23:23]wFMCommunicate OK [17:23:23]SAM_PROTO_SignData done [17:23:23]FM_MakeSignedData done [17:23:23]CreateOFDProtocolMessage [17:23:23]wFMCommunicate request_size=4 [17:23:23]MH_SAM_APDU [17:23:23]CAPDU: 80 11 00 00 [17:23:23]Write to MH i2c: E2 08 00 A9 07 80 11 00 00 00 00 00 00 2A [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:23]Read from MH i2c: E2 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 17 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: E2 17 00 A9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [17:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:23:23]wFMCommunicate OK [17:23:23]CreateOFDProtocolMessage done [17:23:23]OFDSenderStorePacket 165778 [17:23:23]StoreOFDPacket docnum=165778 [17:23:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 35 07 01 98 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 97 3C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 87 02 00 35 04 06 00 3A 3A D3 D4 B7 D3 9D CD 06 20 7B 81 B9 3C [17:23:23]CheckFolder [17:23:23]dirname=/storage/ofd_packets [17:23:23]CheckFolder done [17:23:23]ProducePacketName [17:23:23]name=ofd_packets/00165778 [17:23:23]NVStorageSaveData ofd_packets/00165778 [17:23:23]File name is /storage/ofd_packets/00165778 [17:23:23]Write 301 bytes [17:23:23]NVStorageSaveData done [17:23:23]OFDSenderStorePacket done [17:23:23]KKMCreateOFDPacket done [17:23:23]NVStorageSaveData kkm_last_timestamp [17:23:23]File name is /storage/kkm_last_timestamp [17:23:23]Write 4 bytes [17:23:23]NVStorageSaveData done [17:23:23]ExternCall_PrintAddStr [17:23:23]wPrintStart [17:23:23]Write to MH i2c: 01 00 00 AA 07 B1 [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 07 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 07 00 AA 07 00 00 00 00 00 FF 0F C6 [17:23:23]RasterBufferAndPrint [17:23:23]line Счет N : (1)220346 [17:23:23]line ИНН: 02508201610067 [17:23:23]line Контрольно-Кассовый Чек [17:23:23]line ПРОДАЖА [17:23:23]line ТРК (МРК, ГНК) : 13 [17:23:23]line Товар: 2710124130 [17:23:23]line Аи-92-К-5 [17:23:23]line 7.470 * 66.90 [17:23:23]line = 499.74 [17:23:23]line НДС 12% НСП 1% [17:23:23]line > о реализуемом товаре [17:23:23]line ОКРУГЛЕНИЕ: -0.74 [17:23:23]line ИТОГО: 499.00 [17:23:23]line Внесено: 500.00 [17:23:23]line СДАЧА: 1.00 [17:23:23]line НСП 1% : 4.42 [17:23:23]line НДС 12% : 53.07 [17:23:23]line Наличными: 499.00 [17:23:23]line Безнал.: 0.00 [17:23:23]line Место: АЗС № 161 "Партнер Нефть" [17:23:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:23:23]line СНО: Общий режим [17:23:23]line Чек 260 20.10.2024 17:23 [17:23:23]line Смена: 534 ФФД: 1.0 [17:23:23]line ЗНМ: 0300000104 [17:23:23]line РНМ: 0000000000091764 [17:23:23]line Версия ККМ: 001 [17:23:23]line ФМ: 0000000000871759 [17:23:23]line ФД: 165778 [17:23:23]line ФПД: 64024336447443 [17:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172335&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165778&fm=64024336447443&tin=02508201610067®Number=0000000000091764&sum=49900 [17:23:24]OFD Sender: Processing packet 165778 [packets to send 48, broken 47] [17:23:24]ProducePacketName [17:23:24]name=ofd_packets/00165778 [17:23:24]OFD Sender: To server: pG, [17:23:24]CommunicateWithHost lk.salyk.kg:30040 [17:23:24]ConnectInit lk.salyk.kg [17:23:24]written 0, free lines is 4095 [17:23:24]Connected sock=10 [17:23:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 35 07 01 98 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 97 3C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 87 02 00 35 04 06 00 3A 3A D3 D4 B7 D3 9D CD 06 20 7B 81 B9 3C [17:23:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 34 85 47 00 FC 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 87 02 00 F4 03 04 00 08 E3 14 67 B6 04 01 00 00 52 FB 45 31 12 B5 06 11 [17:23:24]CommunicateWithHost err = 0 [17:23:24]CheckOFDResponse [17:23:24]1017 (14) - 77093643461234 [17:23:24]1041 (16) - 0000000000871759 [17:23:24]1040 (4) - 165778 [17:23:24]1012 (4) - 20.10.2024 11:01 [17:23:24]1206 (1) - 0 [17:23:24]OFD Sender: Remove packet 165778 [17:23:24]ProducePacketName [17:23:24]name=ofd_packets/00165778 [17:23:24]NVStorageDeleteData [17:23:24]Write to MH i2c: 01 00 00 D5 07 DC [17:23:24]Write i2c OK [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: 01 [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: 01 07 00 [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: 01 07 00 D5 07 00 00 00 00 00 D5 0C C4 [17:23:24]RasterBufferAndPrint [17:23:24]line [17:23:24]line [17:23:24]line [17:23:24]line [17:23:24]line [17:23:24]written 0, free lines is 3293 [17:23:24]MH_Cut [17:23:24]Write to MH i2c: D1 01 00 DC 07 01 B5 [17:23:24]Write i2c OK [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: D1 [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: D1 01 00 [17:23:24]MH_I2C_Read... [17:23:24]Read from MH i2c: D1 01 00 DC 07 00 B4 [17:23:24]Write to MH i2c: 01 00 00 DD 07 E4 [17:23:24]Write i2c OK [17:23:24]MH_I2C_Read... [17:23:24]OFD Sender: No OFD packet to send [17:23:25]*** Cut start [17:23:25]*** Partial cut [17:23:25]*** CUTSNS_PIN = 1 [17:23:25]*** CUTSNS_PIN = 0 [17:23:25]*** Brake cut motor [17:23:25]Read from MH i2c: 01 [17:23:25]MH_I2C_Read... [17:23:25]*** Stop cut motor [17:23:25]*** Cut end [17:23:25]Read from MH i2c: 01 07 00 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: 01 07 00 DD 07 00 00 00 00 00 FF 0F F9 [17:23:25]process_action close_receipt done [17:23:25]requested_data is exist [17:23:25]produce_requested_data [17:23:25]requested_item fm.sn is exist - process it [17:23:25]wFMCommunicate request_size=4 [17:23:25]MH_SAM_APDU [17:23:25]CAPDU: 80 11 00 00 [17:23:25]Write to MH i2c: E2 08 00 DE 07 80 11 00 00 00 00 00 00 5F [17:23:25]Write i2c OK [17:23:25]MH_I2C_Read... [17:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:25]Read from MH i2c: E2 [17:23:25]MH_I2C_Read... [17:23:25]Read from MH i2c: E2 17 00 [17:23:25]MH_I2C_Read... [17:23:25]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 31 37 35 39 90 00 B7 [17:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:23:25]wFMCommunicate OK [17:23:25]requested_item fd.num is exist - process it [17:23:25]SAM_PROTO_GetFieldsCounters [17:23:25]wFMCommunicate request_size=4 [17:23:25]MH_SAM_APDU [17:23:25]CAPDU: 80 13 00 00 [17:23:25]Write to MH i2c: E2 08 00 DF 07 80 13 00 00 00 00 00 00 62 [17:23:25]Write i2c OK [17:23:25]MH_I2C_Read... [17:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:26]Read from MH i2c: E2 [17:23:26]MH_I2C_Read... [17:23:26]Read from MH i2c: E2 62 00 [17:23:26]MH_I2C_Read... [17:23:26]Read from MH i2c: E2 62 00 DF 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 87 02 00 0E 04 04 00 16 02 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 CC [17:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 87 02 00 0E 04 04 00 16 02 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:23:26]wFMCommunicate OK [17:23:26]SAM_PROTO_GetFieldsCounters done [17:23:26]requested_item shift.num is exist - process it [17:23:26]requested_item shift.opened is exist - process it [17:23:26]req_shift_opened [17:23:26]FM_GetShiftState [17:23:26]SAM_PROTO_GetShiftState [17:23:26]wFMCommunicate request_size=4 [17:23:26]MH_SAM_APDU [17:23:26]CAPDU: 80 13 01 00 [17:23:26]Write to MH i2c: E2 08 00 E0 07 80 13 01 00 00 00 00 00 64 [17:23:26]Write i2c OK [17:23:26]MH_I2C_Read... [17:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:26]Read from MH i2c: E2 [17:23:26]MH_I2C_Read... [17:23:26]Read from MH i2c: E2 0E 00 [17:23:26]MH_I2C_Read... [17:23:26]Read from MH i2c: E2 0E 00 E0 07 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AC [17:23:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:23:26]wFMCommunicate OK [17:23:26]SAM_PROTO_GetShiftState done [17:23:26]FM_GetShiftState done [17:23:26]req_shift_opened done [17:23:26]requested_item shift.open_date is exist - process it [17:23:26]req_shift_open_date [17:23:26]req_shift_open_date done [17:23:26]produce_requested_data done [17:23:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165778,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:23:26]process_action_free close_receipt [17:23:26]json_value_free [17:23:26]json_value_free done [17:23:26]process_json_proto returns [17:23:26]Send response to host [17:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165778,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:23:26]free response buf [17:23:26]execute_script done [17:23:26]execute_script returns [17:23:26]free content buf [17:23:26]Sock 9.Close socket [17:23:26]Sock 9.Thread stoped [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26: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:22]accept exits with 7 [17:28:22]New connection [17:28:22]New thread 3066920292 created [17:28:22]Thread 3066776932 joined [17:28:22]Waiting for new connection... [17:28:22] Sock 7.Parse request [17:28:22]Sock 7.Check first char [17:28:22]Sock 7.First char is OK [17:28:22]request: POST /json_proto HTTP/1.0 [17:28:22]Method: POST [17:28:22]URL: /json_proto [17:28:22]Method is POST - this is cgi request [17:28:22]url: /json_proto [17:28:22]query_string will be loaded in cgi processing [17:28:22]execute_cgi json_proto POST (null) [17:28:22]execute_cgi path=json_proto method=POST [17:28:22]POST find Content-Length [17:28:22]Host: 172.17.53.195:8080 [17:28:22]Content-Length: 677 [17:28:22]Content-Type: application/json [17:28:22] [17:28:22]POST finish read [17:28:22]Found Content-Length = 677 [17:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:22]execute_script... [17:28: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)220347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:22]POST & json_proto [17:28:22]process_json_proto [17:28:22]json parsed OK: [17:28:22]protocol is kg_v1.0 [17:28:22]action value=close_receipt [17:28:22]process_action close_receipt [17:28:22]cmd_close_receipt [17:28:22]MH_GetDate [17:28:22]Write to MH i2c: F0 00 00 E1 07 D7 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: F0 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: F0 09 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: F0 09 00 E1 07 00 C3 3D 15 67 21 48 4A 65 74 [17:28:22]GetLastDocTimeStamp 1729445015 [17:28:22]current date 1729445315 [17:28:22]FM_GetShiftState [17:28:22]SAM_PROTO_GetShiftState [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 13 01 00 [17:28:22]Write to MH i2c: E2 08 00 E2 07 80 13 01 00 00 00 00 00 66 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 0E 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 0E 00 E2 07 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AE [17:28:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:28:22]wFMCommunicate OK [17:28:22]SAM_PROTO_GetShiftState done [17:28:22]FM_GetShiftState done [17:28:22]opened in 1729384561 [17:28:22]opened+sec_in_day 1729470961 [17:28:22]quantity*price = 49974 [17:28:22]sum+1 = 49975 [17:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 261 20.10.2024 17:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165779 ФПД: 46816576340635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172835&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165779&fm=46816576340635&tin=02508201610067®Number=0000000000091764&sum=49900 [17:28:23]StoreToDocumentArchive [17:28:23]shift 534 fd 165779 [17:28:23]save to /storage/0534/doc_00165779 [17:28:23]save last doc name /storage/0534/doc_00165779 to /storage/kkm_last_doc_name [17:28:23]save OK [17:28:23]Clear old archive folders... [17:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:23]tlvbuf is 0184B9F0 [17:28:23]SAM_PROTO_ClearQueue [17:28:23]wFMCommunicate request_size=4 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 09 00 00 [17:28:23]Write to MH i2c: E2 08 00 EF 07 80 09 00 00 00 00 00 00 68 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 03 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [17:28:23]RAPDU: 90 00 [17:28:23]wFMCommunicate OK [17:28:23]SAM_PROTO_ClearQueue done [17:28:23]KKMCreateOFDPacket [17:28:23]OFDProtocolAddRootSTLVToBuf [17:28:23]FM_MakeSignedData [17:28:23]FM_MakeSignedData [17:28:23]SAM_PROTO_SignData [17:28:23]wFMCommunicate request_size=4 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 0D 01 02 [17:28:23]Write to MH i2c: E2 08 00 F0 07 80 0D 01 02 00 00 00 00 70 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 03 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [17:28:23]RAPDU: 90 00 [17:28:23]wFMCommunicate OK [17:28:23]wFMCommunicate request_size=255 [17:28:23]MH_SAM_APDU [17:28: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 C3 3D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 87 02 00 35 04 06 00 2A [17:28:23]Write to MH i2c: E2 02 01 F1 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 C3 3D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 87 02 00 35 04 06 00 2A 00 00 C7 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 03 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 03 00 F1 07 00 90 00 6C [17:28:23]RAPDU: 90 00 [17:28:23]wFMCommunicate OK [17:28:23]wFMCommunicate request_size=10 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 0D 02 02 05 94 55 67 02 9B [17:28:23]Write to MH i2c: E2 0D 00 F2 07 80 0D 02 02 05 00 94 55 67 02 9B 00 00 6A [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 03 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 03 00 F2 07 00 90 00 6D [17:28:23]RAPDU: 90 00 [17:28:23]wFMCommunicate OK [17:28:23]wFMCommunicate request_size=4 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 0D 03 02 [17:28:23]Write to MH i2c: E2 08 00 F3 07 80 0D 03 02 00 00 00 00 75 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 0B 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 0B 00 F3 07 00 BE 47 BC 04 4B 1E 1C AC 90 00 6C [17:28:23]RAPDU: BE 47 BC 04 4B 1E 1C AC 90 00 [17:28:23]wFMCommunicate OK [17:28:23]SAM_PROTO_SignData done [17:28:23]FM_MakeSignedData done [17:28:23]CreateOFDProtocolMessage [17:28:23]wFMCommunicate request_size=4 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 11 00 00 [17:28:23]Write to MH i2c: E2 08 00 F4 07 80 11 00 00 00 00 00 00 75 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 17 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 17 00 F4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [17:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:28:23]wFMCommunicate OK [17:28:23]CreateOFDProtocolMessage done [17:28:23]OFDSenderStorePacket 165779 [17:28:23]StoreOFDPacket docnum=165779 [17:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EC 40 07 01 24 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 C3 3D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 87 02 00 35 04 06 00 2A 94 55 67 02 9B BE 47 BC 04 4B 1E 1C AC [17:28:23]CheckFolder [17:28:23]dirname=/storage/ofd_packets [17:28:23]CheckFolder done [17:28:23]ProducePacketName [17:28:23]name=ofd_packets/00165779 [17:28:23]NVStorageSaveData ofd_packets/00165779 [17:28:23]File name is /storage/ofd_packets/00165779 [17:28:23]Write 301 bytes [17:28:23]NVStorageSaveData done [17:28:23]OFDSenderStorePacket done [17:28:23]KKMCreateOFDPacket done [17:28:23]NVStorageSaveData kkm_last_timestamp [17:28:23]File name is /storage/kkm_last_timestamp [17:28:23]Write 4 bytes [17:28:23]NVStorageSaveData done [17:28:23]ExternCall_PrintAddStr [17:28:23]wPrintStart [17:28:23]Write to MH i2c: 01 00 00 F5 07 FC [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 F5 07 00 00 00 00 00 FF 0F 11 [17:28:23]RasterBufferAndPrint [17:28:23]line Счет N : (1)220347 [17:28:23]line ИНН: 02508201610067 [17:28:23]line Контрольно-Кассовый Чек [17:28:23]line ПРОДАЖА [17:28:23]line ТРК (МРК, ГНК) : 13 [17:28:23]line Товар: 2710124130 [17:28:23]line Аи-92-К-5 [17:28:23]line 7.470 * 66.90 [17:28:23]line = 499.74 [17:28:23]line НДС 12% НСП 1% [17:28:23]line > о реализуемом товаре [17:28:23]line ОКРУГЛЕНИЕ: -0.74 [17:28:23]line ИТОГО: 499.00 [17:28:23]line Внесено: 500.00 [17:28:23]line СДАЧА: 1.00 [17:28:23]line НСП 1% : 4.42 [17:28:23]line НДС 12% : 53.07 [17:28:23]line Наличными: 499.00 [17:28:23]line Безнал.: 0.00 [17:28:23]line Место: АЗС № 161 "Партнер Нефть" [17:28:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:28:23]line СНО: Общий режим [17:28:23]line Чек 261 20.10.2024 17:28 [17:28:23]line Смена: 534 ФФД: 1.0 [17:28:23]line ЗНМ: 0300000104 [17:28:23]line РНМ: 0000000000091764 [17:28:23]line Версия ККМ: 001 [17:28:23]line ФМ: 0000000000871759 [17:28:23]line ФД: 165779 [17:28:23]line ФПД: 46816576340635 [17:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172835&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165779&fm=46816576340635&tin=02508201610067®Number=0000000000091764&sum=49900 [17:28:24]OFD Sender: Processing packet 165779 [packets to send 48, broken 47] [17:28:24]ProducePacketName [17:28:24]name=ofd_packets/00165779 [17:28:24]OFD Sender: To server: pG, [17:28:24]CommunicateWithHost lk.salyk.kg:30040 [17:28:24]ConnectInit lk.salyk.kg [17:28:24]written 0, free lines is 4095 [17:28:24]Connected sock=10 [17:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EC 40 07 01 24 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 C3 3D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 87 02 00 35 04 06 00 2A 94 55 67 02 9B BE 47 BC 04 4B 1E 1C AC [17:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2F D9 47 00 1E 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 31 37 35 39 10 04 04 00 93 87 02 00 F4 03 04 00 34 E4 14 67 B6 04 01 00 00 18 3C A7 5E 31 25 85 CE [17:28:24]CommunicateWithHost err = 0 [17:28:24]CheckOFDResponse [17:28:24]1017 (14) - 77093643461234 [17:28:24]1041 (16) - 0000000000871759 [17:28:24]1040 (4) - 165779 [17:28:24]1012 (4) - 20.10.2024 11:06 [17:28:24]1206 (1) - 0 [17:28:24]OFD Sender: Remove packet 165779 [17:28:24]ProducePacketName [17:28:24]name=ofd_packets/00165779 [17:28:24]NVStorageDeleteData [17:28:24]Write to MH i2c: 01 00 00 20 08 28 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: 01 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: 01 07 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: 01 07 00 20 08 00 00 00 00 00 C6 0C 01 [17:28:24]RasterBufferAndPrint [17:28:24]line [17:28:24]line [17:28:24]line [17:28:24]line [17:28:24]line [17:28:24]written 0, free lines is 3279 [17:28:24]MH_Cut [17:28:24]Write to MH i2c: D1 01 00 27 08 01 01 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: D1 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: D1 01 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: D1 01 00 27 08 00 00 [17:28:24]Write to MH i2c: 01 00 00 28 08 30 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]OFD Sender: No OFD packet to send [17:28:25]*** Cut start [17:28:25]*** Partial cut [17:28:25]*** CUTSNS_PIN = 1 [17:28:25]*** CUTSNS_PIN = 0 [17:28:25]*** Brake cut motor [17:28:25]Read from MH i2c: 01 [17:28:25]MH_I2C_Read... [17:28:25]*** Stop cut motor [17:28:25]Read from MH i2c: 01 07 00 [17:28:25]MH_I2C_Read... [17:28:25]*** Cut end [17:28:25]Read from MH i2c: 01 07 00 28 08 00 00 00 00 00 FF 0F 45 [17:28:25]process_action close_receipt done [17:28:25]requested_data is exist [17:28:25]produce_requested_data [17:28:25]requested_item fm.sn is exist - process it [17:28:25]wFMCommunicate request_size=4 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 11 00 00 [17:28:25]Write to MH i2c: E2 08 00 29 08 80 11 00 00 00 00 00 00 AB [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 17 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 17 00 29 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [17:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:28:26]wFMCommunicate OK [17:28:26]requested_item fd.num is exist - process it [17:28:26]SAM_PROTO_GetFieldsCounters [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 13 00 00 [17:28:26]Write to MH i2c: E2 08 00 2A 08 80 13 00 00 00 00 00 00 AE [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 62 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 62 00 2A 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 87 02 00 0E 04 04 00 16 02 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 1C [17:28:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 87 02 00 0E 04 04 00 16 02 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:28:26]wFMCommunicate OK [17:28:26]SAM_PROTO_GetFieldsCounters done [17:28:26]requested_item shift.num is exist - process it [17:28:26]requested_item shift.opened is exist - process it [17:28:26]req_shift_opened [17:28:26]FM_GetShiftState [17:28:26]SAM_PROTO_GetShiftState [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 13 01 00 [17:28:26]Write to MH i2c: E2 08 00 2B 08 80 13 01 00 00 00 00 00 B0 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0E 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0E 00 2B 08 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F8 [17:28:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:28:26]wFMCommunicate OK [17:28:26]SAM_PROTO_GetShiftState done [17:28:26]FM_GetShiftState done [17:28:26]req_shift_opened done [17:28:26]requested_item shift.open_date is exist - process it [17:28:26]req_shift_open_date [17:28:26]req_shift_open_date done [17:28:26]produce_requested_data done [17:28:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165779,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:28:26]process_action_free close_receipt [17:28:26]json_value_free [17:28:26]json_value_free done [17:28:26]process_json_proto returns [17:28:26]Send response to host [17:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165779,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:28:26]free response buf [17:28:26]execute_script done [17:28:26]execute_script returns [17:28:26]free content buf [17:28:26]Sock 7.Close socket [17:28:26]Sock 7.Thread stoped [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29: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:25]accept exits with 9 [17:33:25]New connection [17:33:25]New thread 3066776932 created [17:33:25]Thread 3066920292 joined [17:33:25]Waiting for new connection... [17:33:25] Sock 9.Parse request [17:33:25]Sock 9.Check first char [17:33:25]Sock 9.First char is OK [17:33:25]request: POST /json_proto HTTP/1.0 [17:33:25]Method: POST [17:33:25]URL: /json_proto [17:33:25]Method is POST - this is cgi request [17:33:25]url: /json_proto [17:33:25]query_string will be loaded in cgi processing [17:33:25]execute_cgi json_proto POST (null) [17:33:25]execute_cgi path=json_proto method=POST [17:33:25]POST find Content-Length [17:33:25]Host: 172.17.53.195:8080 [17:33:25]Content-Length: 679 [17:33:25]Content-Type: application/json [17:33:25] [17:33:25]POST finish read [17:33:25]Found Content-Length = 679 [17:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:25]execute_script... [17:33: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)220349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:25]POST & json_proto [17:33:25]process_json_proto [17:33:25]json parsed OK: [17:33:25]protocol is kg_v1.0 [17:33:25]action value=close_receipt [17:33:25]process_action close_receipt [17:33:25]cmd_close_receipt [17:33:25]MH_GetDate [17:33:25]Write to MH i2c: F0 00 00 2C 08 23 [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: F0 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: F0 09 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: F0 09 00 2C 08 00 F2 3E 15 67 21 48 4A 65 F0 [17:33:25]GetLastDocTimeStamp 1729445315 [17:33:25]current date 1729445618 [17:33:25]FM_GetShiftState [17:33:25]SAM_PROTO_GetShiftState [17:33:25]wFMCommunicate request_size=4 [17:33:25]MH_SAM_APDU [17:33:25]CAPDU: 80 13 01 00 [17:33:25]Write to MH i2c: E2 08 00 2D 08 80 13 01 00 00 00 00 00 B2 [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:25]Read from MH i2c: E2 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 0E 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 0E 00 2D 08 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FA [17:33:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:33:25]wFMCommunicate OK [17:33:25]SAM_PROTO_GetShiftState done [17:33:25]FM_GetShiftState done [17:33:25]opened in 1729384561 [17:33:25]opened+sec_in_day 1729470961 [17:33:25]quantity*price = 99947 [17:33:25]sum+1 = 99948 [17:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 262 20.10.2024 17:33 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165780 ФПД: 75563614626246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173339&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165780&fm=75563614626246&tin=02508201610067®Number=0000000000091764&sum=99900 [17:33:26]StoreToDocumentArchive [17:33:26]shift 534 fd 165780 [17:33:26]save to /storage/0534/doc_00165780 [17:33:26]save last doc name /storage/0534/doc_00165780 to /storage/kkm_last_doc_name [17:33:26]save OK [17:33:26]Clear old archive folders... [17:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:26]tlvbuf is 01470DF0 [17:33:26]SAM_PROTO_ClearQueue [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 09 00 00 [17:33:26]Write to MH i2c: E2 08 00 3A 08 80 09 00 00 00 00 00 00 B4 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [17:33:26]RAPDU: 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_ClearQueue done [17:33:26]KKMCreateOFDPacket [17:33:26]OFDProtocolAddRootSTLVToBuf [17:33:26]FM_MakeSignedData [17:33:26]FM_MakeSignedData [17:33:26]SAM_PROTO_SignData [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 0D 01 02 [17:33:26]Write to MH i2c: E2 08 00 3B 08 80 0D 01 02 00 00 00 00 BC [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [17:33:26]RAPDU: 90 00 [17:33:26]wFMCommunicate OK [17:33:26]wFMCommunicate request_size=255 [17:33:26]MH_SAM_APDU [17:33: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 06 01 00 00 F4 03 04 00 F3 3E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 87 02 00 35 04 06 00 44 [17:33:26]Write to MH i2c: E2 02 01 3C 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 06 01 00 00 F4 03 04 00 F3 3E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 87 02 00 35 04 06 00 44 00 00 76 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:27]Read from MH i2c: E2 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 03 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [17:33:27]RAPDU: 90 00 [17:33:27]wFMCommunicate OK [17:33:27]wFMCommunicate request_size=10 [17:33:27]MH_SAM_APDU [17:33:27]CAPDU: 80 0D 02 02 05 B9 86 68 61 C6 [17:33:27]Write to MH i2c: E2 0D 00 3D 08 80 0D 02 02 05 00 B9 86 68 61 C6 00 00 97 [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:27]Read from MH i2c: E2 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 03 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [17:33:27]RAPDU: 90 00 [17:33:27]wFMCommunicate OK [17:33:27]wFMCommunicate request_size=4 [17:33:27]MH_SAM_APDU [17:33:27]CAPDU: 80 0D 03 02 [17:33:27]Write to MH i2c: E2 08 00 3E 08 80 0D 03 02 00 00 00 00 C1 [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:27]Read from MH i2c: E2 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 0B 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 0B 00 3E 08 00 F2 3C 1F 6F A3 6A 99 F6 90 00 1A [17:33:27]RAPDU: F2 3C 1F 6F A3 6A 99 F6 90 00 [17:33:27]wFMCommunicate OK [17:33:27]SAM_PROTO_SignData done [17:33:27]FM_MakeSignedData done [17:33:27]CreateOFDProtocolMessage [17:33:27]wFMCommunicate request_size=4 [17:33:27]MH_SAM_APDU [17:33:27]CAPDU: 80 11 00 00 [17:33:27]Write to MH i2c: E2 08 00 3F 08 80 11 00 00 00 00 00 00 C1 [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:27]Read from MH i2c: E2 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 17 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 17 00 3F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 19 [17:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:33:27]wFMCommunicate OK [17:33:27]CreateOFDProtocolMessage done [17:33:27]OFDSenderStorePacket 165780 [17:33:27]StoreOFDPacket docnum=165780 [17:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF E8 07 01 20 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 06 01 00 00 F4 03 04 00 F3 3E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 87 02 00 35 04 06 00 44 B9 86 68 61 C6 F2 3C 1F 6F A3 6A 99 F6 [17:33:27]CheckFolder [17:33:27]dirname=/storage/ofd_packets [17:33:27]CheckFolder done [17:33:27]ProducePacketName [17:33:27]name=ofd_packets/00165780 [17:33:27]NVStorageSaveData ofd_packets/00165780 [17:33:27]File name is /storage/ofd_packets/00165780 [17:33:27]Write 301 bytes [17:33:27]NVStorageSaveData done [17:33:27]OFDSenderStorePacket done [17:33:27]KKMCreateOFDPacket done [17:33:27]NVStorageSaveData kkm_last_timestamp [17:33:27]File name is /storage/kkm_last_timestamp [17:33:27]Write 4 bytes [17:33:27]NVStorageSaveData done [17:33:27]ExternCall_PrintAddStr [17:33:27]wPrintStart [17:33:27]Write to MH i2c: 01 00 00 40 08 48 [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 07 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 07 00 40 08 00 00 00 00 00 FF 0F 5D [17:33:27]RasterBufferAndPrint [17:33:27]line Счет N : (1)220349 [17:33:27]line ИНН: 02508201610067 [17:33:27]line Контрольно-Кассовый Чек [17:33:27]line ПРОДАЖА [17:33:27]line ТРК (МРК, ГНК) : 44 [17:33:27]line Товар: 2710124500 [17:33:27]line Аи-95-К-5 [17:33:27]line 13.470 * 74.20 [17:33:27]line = 999.47 [17:33:27]line НДС 12% НСП 1% [17:33:27]line > о реализуемом товаре [17:33:27]line ОКРУГЛЕНИЕ: -0.47 [17:33:27]line ИТОГО: 999.00 [17:33:27]line Внесено: 1000.00 [17:33:27]line СДАЧА: 1.00 [17:33:27]line НСП 1% : 8.84 [17:33:27]line НДС 12% : 106.14 [17:33:27]line Наличными: 999.00 [17:33:27]line Безнал.: 0.00 [17:33:27]line Место: АЗС № 161 "Партнер Нефть" [17:33:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:33:27]line СНО: Общий режим [17:33:27]line Чек 262 20.10.2024 17:33 [17:33:27]line Смена: 534 ФФД: 1.0 [17:33:27]line ЗНМ: 0300000104 [17:33:27]line РНМ: 0000000000091764 [17:33:27]line Версия ККМ: 001 [17:33:27]line ФМ: 0000000000871759 [17:33:27]line ФД: 165780 [17:33:27]line ФПД: 75563614626246 [17:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173339&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165780&fm=75563614626246&tin=02508201610067®Number=0000000000091764&sum=99900 [17:33:27]OFD Sender: Processing packet 165780 [packets to send 48, broken 47] [17:33:27]ProducePacketName [17:33:27]name=ofd_packets/00165780 [17:33:27]OFD Sender: To server: pG, [17:33:27]CommunicateWithHost lk.salyk.kg:30040 [17:33:27]ConnectInit lk.salyk.kg [17:33:27]written 0, free lines is 4095 [17:33:27]Connected sock=10 [17:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF E8 07 01 20 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 06 01 00 00 F4 03 04 00 F3 3E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 87 02 00 35 04 06 00 44 B9 86 68 61 C6 F2 3C 1F 6F A3 6A 99 F6 [17:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 87 DE 47 00 3B 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 87 02 00 F4 03 04 00 64 E5 14 67 B6 04 01 00 00 BE AC 8F F4 4A 90 2B 78 [17:33:27]CommunicateWithHost err = 0 [17:33:27]CheckOFDResponse [17:33:27]1017 (14) - 77093643461234 [17:33:27]1041 (16) - 0000000000871759 [17:33:27]1040 (4) - 165780 [17:33:27]1012 (4) - 20.10.2024 11:11 [17:33:27]1206 (1) - 0 [17:33:27]OFD Sender: Remove packet 165780 [17:33:27]ProducePacketName [17:33:27]name=ofd_packets/00165780 [17:33:27]NVStorageDeleteData [17:33:27]Write to MH i2c: 01 00 00 6B 08 73 [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 07 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 07 00 6B 08 00 00 00 00 00 D3 0C 59 [17:33:27]RasterBufferAndPrint [17:33:27]line [17:33:27]line [17:33:27]line [17:33:27]line [17:33:27]line [17:33:27]written 0, free lines is 3288 [17:33:27]MH_Cut [17:33:27]Write to MH i2c: D1 01 00 72 08 01 4C [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: D1 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: D1 01 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: D1 01 00 72 08 00 4B [17:33:27]Write to MH i2c: 01 00 00 73 08 7B [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:28]OFD Sender: No OFD packet to send [17:33:28]*** Cut start [17:33:28]*** Partial cut [17:33:28]*** CUTSNS_PIN = 1 [17:33:28]*** CUTSNS_PIN = 0 [17:33:29]*** Brake cut motor [17:33:29]Read from MH i2c: 01 [17:33:29]MH_I2C_Read... [17:33:29]*** Stop cut motor [17:33:29]*** Cut end [17:33:29]Read from MH i2c: 01 07 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [17:33:29]process_action close_receipt done [17:33:29]requested_data is exist [17:33:29]produce_requested_data [17:33:29]requested_item fm.sn is exist - process it [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 11 00 00 [17:33:29]Write to MH i2c: E2 08 00 74 08 80 11 00 00 00 00 00 00 F6 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 17 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 17 00 74 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [17:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:33:29]wFMCommunicate OK [17:33:29]requested_item fd.num is exist - process it [17:33:29]SAM_PROTO_GetFieldsCounters [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 13 00 00 [17:33:29]Write to MH i2c: E2 08 00 75 08 80 13 00 00 00 00 00 00 F9 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 62 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 62 00 75 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 87 02 00 0E 04 04 00 16 02 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 6B [17:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 87 02 00 0E 04 04 00 16 02 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:33:29]wFMCommunicate OK [17:33:29]SAM_PROTO_GetFieldsCounters done [17:33:29]requested_item shift.num is exist - process it [17:33:29]requested_item shift.opened is exist - process it [17:33:29]req_shift_opened [17:33:29]FM_GetShiftState [17:33:29]SAM_PROTO_GetShiftState [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 13 01 00 [17:33:29]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 0E 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 71 50 14 67 00 00 00 00 90 00 43 [17:33:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:33:29]wFMCommunicate OK [17:33:29]SAM_PROTO_GetShiftState done [17:33:29]FM_GetShiftState done [17:33:29]req_shift_opened done [17:33:29]requested_item shift.open_date is exist - process it [17:33:29]req_shift_open_date [17:33:29]req_shift_open_date done [17:33:29]produce_requested_data done [17:33:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165780,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:33:29]process_action_free close_receipt [17:33:29]json_value_free [17:33:29]json_value_free done [17:33:29]process_json_proto returns [17:33:29]Send response to host [17:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165780,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:33:29]free response buf [17:33:29]execute_script done [17:33:29]execute_script returns [17:33:29]free content buf [17:33:29]Sock 9.Close socket [17:33:29]Sock 9.Thread stoped [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:20]accept exits with 7 [17:38:20]New connection [17:38:20]New thread 3066920292 created [17:38:20]Thread 3066776932 joined [17:38:20]Waiting for new connection... [17:38:20] Sock 7.Parse request [17:38:20]Sock 7.Check first char [17:38:20]Sock 7.First char is OK [17:38:20]request: POST /json_proto HTTP/1.0 [17:38:20]Method: POST [17:38:20]URL: /json_proto [17:38:20]Method is POST - this is cgi request [17:38:20]url: /json_proto [17:38:20]query_string will be loaded in cgi processing [17:38:20]execute_cgi json_proto POST (null) [17:38:20]execute_cgi path=json_proto method=POST [17:38:20]POST find Content-Length [17:38:20]Host: 172.17.53.195:8080 [17:38:20]Content-Length: 942 [17:38:20]Content-Type: application/json [17:38:20] [17:38:20]POST finish read [17:38:20]Found Content-Length = 942 [17:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220348", "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" : 75.20, "quantity" : 300.000, "sum" : 22560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 300.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 22560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:20]execute_script... [17:38: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)220348", "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" : 75.20, "quantity" : 300.000, "sum" : 22560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 300.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 22560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:20]POST & json_proto [17:38:20]process_json_proto [17:38:20]json parsed OK: [17:38:20]protocol is kg_v1.0 [17:38:20]action value=close_receipt [17:38:20]process_action close_receipt [17:38:20]cmd_close_receipt [17:38:20]MH_GetDate [17:38:20]Write to MH i2c: F0 00 00 77 08 6E [17:38:20]Write i2c OK [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: F0 [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: F0 09 00 [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: F0 09 00 77 08 00 1A 40 15 67 21 48 4A 65 65 [17:38:20]GetLastDocTimeStamp 1729445619 [17:38:20]current date 1729445914 [17:38:20]FM_GetShiftState [17:38:20]SAM_PROTO_GetShiftState [17:38:20]wFMCommunicate request_size=4 [17:38:20]MH_SAM_APDU [17:38:20]CAPDU: 80 13 01 00 [17:38:20]Write to MH i2c: E2 08 00 78 08 80 13 01 00 00 00 00 00 FD [17:38:20]Write i2c OK [17:38:20]MH_I2C_Read... [17:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:20]Read from MH i2c: E2 [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: E2 0E 00 [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: E2 0E 00 78 08 00 09 00 01 71 50 14 67 00 00 00 00 90 00 45 [17:38:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:38:20]wFMCommunicate OK [17:38:20]SAM_PROTO_GetShiftState done [17:38:20]FM_GetShiftState done [17:38:20]opened in 1729384561 [17:38:20]opened+sec_in_day 1729470961 [17:38:20]quantity*price = 2256000 [17:38:20]sum+1 = 2256001 [17:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 22560.00 НСП 1% : 199.65 НДС 12% : 2395.75 Наличными: 22560.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 263 20.10.2024 17:38 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Дисконтная программа ДТ номер 161 сэкономлено 300.00 сом ФМ: 0000000000871759 ФД: 165781 ФПД: 188325602603375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173834&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165781&fm=188325602603375&tin=02508201610067®Number=0000000000091764&sum=2256000 [17:38:21]StoreToDocumentArchive [17:38:21]shift 534 fd 165781 [17:38:21]save to /storage/0534/doc_00165781 [17:38:21]save last doc name /storage/0534/doc_00165781 to /storage/kkm_last_doc_name [17:38:21]save OK [17:38:21]Clear old archive folders... [17:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:38:21]tlvbuf is 014ED120 [17:38:21]SAM_PROTO_ClearQueue [17:38:21]wFMCommunicate request_size=4 [17:38:21]MH_SAM_APDU [17:38:21]CAPDU: 80 09 00 00 [17:38:21]Write to MH i2c: E2 08 00 85 08 80 09 00 00 00 00 00 00 FF [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:21]Read from MH i2c: E2 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [17:38:21]RAPDU: 90 00 [17:38:21]wFMCommunicate OK [17:38:21]SAM_PROTO_ClearQueue done [17:38:21]KKMCreateOFDPacket [17:38:21]OFDProtocolAddRootSTLVToBuf [17:38:21]FM_MakeSignedData [17:38:21]FM_MakeSignedData [17:38:21]SAM_PROTO_SignData [17:38:21]wFMCommunicate request_size=4 [17:38:21]MH_SAM_APDU [17:38:21]CAPDU: 80 0D 01 02 [17:38:21]Write to MH i2c: E2 08 00 86 08 80 0D 01 02 00 00 00 00 07 [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:21]Read from MH i2c: E2 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [17:38:21]RAPDU: 90 00 [17:38:21]wFMCommunicate OK [17:38:21]wFMCommunicate request_size=255 [17:38:21]MH_SAM_APDU [17:38: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 E0 93 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 6C 22 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 6C 22 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 4D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 A7 03 00 00 00 07 04 06 00 80 6C 22 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 1A 40 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 87 02 00 35 04 06 00 AB 47 F8 A5 [17:38:21]Write to MH i2c: E2 02 01 87 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 E0 93 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 6C 22 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 6C 22 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 4D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 A7 03 00 00 00 07 04 06 00 80 6C 22 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 1A 40 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 87 02 00 35 04 06 00 AB 47 F8 A5 00 00 F7 [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:22]Read from MH i2c: E2 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 03 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [17:38:22]RAPDU: 90 00 [17:38:22]wFMCommunicate OK [17:38:22]wFMCommunicate request_size=7 [17:38:22]MH_SAM_APDU [17:38:22]CAPDU: 80 0D 02 02 02 31 6F [17:38:22]Write to MH i2c: E2 0A 00 88 08 80 0D 02 02 02 00 31 6F 00 00 AE [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:22]Read from MH i2c: E2 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 03 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [17:38:22]RAPDU: 90 00 [17:38:22]wFMCommunicate OK [17:38:22]wFMCommunicate request_size=4 [17:38:22]MH_SAM_APDU [17:38:22]CAPDU: 80 0D 03 02 [17:38:22]Write to MH i2c: E2 08 00 89 08 80 0D 03 02 00 00 00 00 0C [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:22]Read from MH i2c: E2 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 0B 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 0B 00 89 08 00 0A 19 12 97 2D 44 90 C5 90 00 9F [17:38:22]RAPDU: 0A 19 12 97 2D 44 90 C5 90 00 [17:38:22]wFMCommunicate OK [17:38:22]SAM_PROTO_SignData done [17:38:22]FM_MakeSignedData done [17:38:22]CreateOFDProtocolMessage [17:38:22]wFMCommunicate request_size=4 [17:38:22]MH_SAM_APDU [17:38:22]CAPDU: 80 11 00 00 [17:38:22]Write to MH i2c: E2 08 00 8A 08 80 11 00 00 00 00 00 00 0C [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:22]Read from MH i2c: E2 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 17 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 17 00 8A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [17:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:38:22]wFMCommunicate OK [17:38:22]CreateOFDProtocolMessage done [17:38:22]OFDSenderStorePacket 165781 [17:38:22]StoreOFDPacket docnum=165781 [17:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 45 FE 04 01 F8 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 E0 93 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 6C 22 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 6C 22 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 4D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 A7 03 00 00 00 07 04 06 00 80 6C 22 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 1A 40 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 87 02 00 35 04 06 00 AB 47 F8 A5 31 6F 0A 19 12 97 2D 44 90 C5 [17:38:22]CheckFolder [17:38:22]dirname=/storage/ofd_packets [17:38:22]CheckFolder done [17:38:22]ProducePacketName [17:38:22]name=ofd_packets/00165781 [17:38:22]NVStorageSaveData ofd_packets/00165781 [17:38:22]File name is /storage/ofd_packets/00165781 [17:38:22]Write 298 bytes [17:38:22]NVStorageSaveData done [17:38:22]OFDSenderStorePacket done [17:38:22]KKMCreateOFDPacket done [17:38:22]NVStorageSaveData kkm_last_timestamp [17:38:22]File name is /storage/kkm_last_timestamp [17:38:22]Write 4 bytes [17:38:22]NVStorageSaveData done [17:38:22]ExternCall_PrintAddStr [17:38:22]wPrintStart [17:38:22]Write to MH i2c: 01 00 00 8B 08 93 [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: 01 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: 01 07 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 FF 0F A8 [17:38:22]RasterBufferAndPrint [17:38:22]line Счет N : (1)220348 [17:38:22]line ИНН: 02508201610067 [17:38:22]line Контрольно-Кассовый Чек [17:38:22]line ПРОДАЖА [17:38:22]line ТРК (МРК, ГНК) : 21 [17:38:22]line Товар: 2710194210 [17:38:22]line ДТ-К-5 [17:38:22]line 300.000 * 75.20 [17:38:22]line = 22560.00 [17:38:22]line НДС 12% НСП 1% [17:38:22]line > о реализуемом товаре [17:38:22]line ИТОГО: 22560.00 [17:38:22]line НСП 1% : 199.65 [17:38:22]line НДС 12% : 2395.75 [17:38:22]line Наличными: 22560.00 [17:38:22]line Безнал.: 0.00 [17:38:22]line Место: АЗС № 161 "Партнер Нефть" [17:38:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:38:22]line СНО: Общий режим [17:38:22]line Чек 263 20.10.2024 17:38 [17:38:22]line Смена: 534 ФФД: 1.0 [17:38:22]line ЗНМ: 0300000104 [17:38:22]line РНМ: 0000000000091764 [17:38:22]line Версия ККМ: 001 [17:38:22]line [17:38:22]line Дисконтная программа [17:38:22]line ДТ [17:38:22]line номер 161 [17:38:22]line сэкономлено 300.00 сом [17:38:22]line ФМ: 0000000000871759 [17:38:22]line ФД: 165781 [17:38:22]line ФПД: 188325602603375 [17:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173834&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165781&fm=188325602603375&tin=02508201610067®Number=0000000000091764&sum=2256000 [17:38:22]OFD Sender: Processing packet 165781 [packets to send 48, broken 47] [17:38:22]ProducePacketName [17:38:22]name=ofd_packets/00165781 [17:38:22]OFD Sender: To server: pG, [17:38:22]CommunicateWithHost lk.salyk.kg:30040 [17:38:22]ConnectInit lk.salyk.kg [17:38:22]written 0, free lines is 4095 [17:38:22]Connected sock=10 [17:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 45 FE 04 01 F8 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 E0 93 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 6C 22 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 6C 22 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 4D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 A7 03 00 00 00 07 04 06 00 80 6C 22 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 1A 40 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 87 02 00 35 04 06 00 AB 47 F8 A5 31 6F 0A 19 12 97 2D 44 90 C5 [17:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E5 EA 47 00 24 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 31 37 35 39 10 04 04 00 95 87 02 00 F4 03 04 00 8B E6 14 67 B6 04 01 00 00 55 0C C5 37 42 D9 BD D7 [17:38:22]CommunicateWithHost err = 0 [17:38:22]CheckOFDResponse [17:38:22]1017 (14) - 77093643461234 [17:38:22]1041 (16) - 0000000000871759 [17:38:22]1040 (4) - 165781 [17:38:22]1012 (4) - 20.10.2024 11:16 [17:38:22]1206 (1) - 0 [17:38:22]OFD Sender: Remove packet 165781 [17:38:22]ProducePacketName [17:38:22]name=ofd_packets/00165781 [17:38:22]NVStorageDeleteData [17:38:23]Write to MH i2c: 01 00 00 B8 08 C0 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: 01 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: 01 07 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: 01 07 00 B8 08 00 00 00 00 00 A1 0C 74 [17:38:23]RasterBufferAndPrint [17:38:23]line [17:38:23]line [17:38:23]line [17:38:23]line [17:38:23]line [17:38:23]written 0, free lines is 3240 [17:38:23]MH_Cut [17:38:23]Write to MH i2c: D1 01 00 BF 08 01 99 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: D1 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: D1 01 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: D1 01 00 BF 08 00 98 [17:38:23]Write to MH i2c: 01 00 00 C0 08 C8 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]OFD Sender: No OFD packet to send [17:38:23]*** Cut start [17:38:23]*** Partial cut [17:38:23]*** CUTSNS_PIN = 1 [17:38:23]*** CUTSNS_PIN = 0 [17:38:24]*** Brake cut motor [17:38:24]Read from MH i2c: 01 [17:38:24]MH_I2C_Read... [17:38:24]*** Stop cut motor [17:38:24]*** Cut end [17:38:24]Read from MH i2c: 01 07 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 FF 0F DD [17:38:24]process_action close_receipt done [17:38:24]requested_data is exist [17:38:24]produce_requested_data [17:38:24]requested_item fm.sn is exist - process it [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 11 00 00 [17:38:24]Write to MH i2c: E2 08 00 C1 08 80 11 00 00 00 00 00 00 43 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 17 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 17 00 C1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [17:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:38:24]wFMCommunicate OK [17:38:24]requested_item fd.num is exist - process it [17:38:24]SAM_PROTO_GetFieldsCounters [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 13 00 00 [17:38:24]Write to MH i2c: E2 08 00 C2 08 80 13 00 00 00 00 00 00 46 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 62 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 62 00 C2 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 87 02 00 0E 04 04 00 16 02 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 BC [17:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 87 02 00 0E 04 04 00 16 02 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:38:24]wFMCommunicate OK [17:38:24]SAM_PROTO_GetFieldsCounters done [17:38:24]requested_item shift.num is exist - process it [17:38:24]requested_item shift.opened is exist - process it [17:38:24]req_shift_opened [17:38:24]FM_GetShiftState [17:38:24]SAM_PROTO_GetShiftState [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 13 01 00 [17:38:24]Write to MH i2c: E2 08 00 C3 08 80 13 01 00 00 00 00 00 48 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 0E 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 0E 00 C3 08 00 09 00 01 71 50 14 67 00 00 00 00 90 00 90 [17:38:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:38:24]wFMCommunicate OK [17:38:24]SAM_PROTO_GetShiftState done [17:38:24]FM_GetShiftState done [17:38:24]req_shift_opened done [17:38:24]requested_item shift.open_date is exist - process it [17:38:24]req_shift_open_date [17:38:24]req_shift_open_date done [17:38:24]produce_requested_data done [17:38:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165781,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:38:24]process_action_free close_receipt [17:38:24]json_value_free [17:38:24]json_value_free done [17:38:24]process_json_proto returns [17:38:24]Send response to host [17:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165781,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:38:24]free response buf [17:38:24]execute_script done [17:38:24]execute_script returns [17:38:24]free content buf [17:38:24]Sock 7.Close socket [17:38:24]Sock 7.Thread stoped [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:18]accept exits with 9 [17:39:18]New connection [17:39:18]New thread 3066776932 created [17:39:18]Thread 3066920292 joined [17:39:18]Waiting for new connection... [17:39:18] Sock 9.Parse request [17:39:18]Sock 9.Check first char [17:39:18]Sock 9.First char is OK [17:39:18]request: POST /json_proto HTTP/1.0 [17:39:18]Method: POST [17:39:18]URL: /json_proto [17:39:18]Method is POST - this is cgi request [17:39:18]url: /json_proto [17:39:18]query_string will be loaded in cgi processing [17:39:18]execute_cgi json_proto POST (null) [17:39:18]execute_cgi path=json_proto method=POST [17:39:18]POST find Content-Length [17:39:18]Host: 172.17.53.195:8080 [17:39:18]Content-Length: 679 [17:39:18]Content-Type: application/json [17:39:18] [17:39:18]POST finish read [17:39:18]Found Content-Length = 679 [17:39:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:18]execute_script... [17:39: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)220350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:18]POST & json_proto [17:39:18]process_json_proto [17:39:18]json parsed OK: [17:39:18]protocol is kg_v1.0 [17:39:18]action value=close_receipt [17:39:18]process_action close_receipt [17:39:18]cmd_close_receipt [17:39:18]MH_GetDate [17:39:18]Write to MH i2c: F0 00 00 C4 08 BB [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: F0 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: F0 09 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: F0 09 00 C4 08 00 54 40 15 67 21 48 4A 65 EC [17:39:18]GetLastDocTimeStamp 1729445914 [17:39:18]current date 1729445972 [17:39:18]FM_GetShiftState [17:39:18]SAM_PROTO_GetShiftState [17:39:18]wFMCommunicate request_size=4 [17:39:18]MH_SAM_APDU [17:39:18]CAPDU: 80 13 01 00 [17:39:18]Write to MH i2c: E2 08 00 C5 08 80 13 01 00 00 00 00 00 4A [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:18]Read from MH i2c: E2 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 0E 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 0E 00 C5 08 00 09 00 01 71 50 14 67 00 00 00 00 90 00 92 [17:39:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:39:18]wFMCommunicate OK [17:39:18]SAM_PROTO_GetShiftState done [17:39:18]FM_GetShiftState done [17:39:18]opened in 1729384561 [17:39:18]opened+sec_in_day 1729470961 [17:39:18]quantity*price = 99948 [17:39:18]sum+1 = 99950 [17:39:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 264 20.10.2024 17:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165782 ФПД: 246436614404020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173932&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165782&fm=246436614404020&tin=02508201610067®Number=0000000000091764&sum=99900 [17:39:20]StoreToDocumentArchive [17:39:20]shift 534 fd 165782 [17:39:20]save to /storage/0534/doc_00165782 [17:39:20]save last doc name /storage/0534/doc_00165782 to /storage/kkm_last_doc_name [17:39:20]save OK [17:39:20]Clear old archive folders... [17:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:20]tlvbuf is 0146A070 [17:39:20]SAM_PROTO_ClearQueue [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 09 00 00 [17:39:20]Write to MH i2c: E2 08 00 D2 08 80 09 00 00 00 00 00 00 4C [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [17:39:20]RAPDU: 90 00 [17:39:20]wFMCommunicate OK [17:39:20]SAM_PROTO_ClearQueue done [17:39:20]KKMCreateOFDPacket [17:39:20]OFDProtocolAddRootSTLVToBuf [17:39:20]FM_MakeSignedData [17:39:20]FM_MakeSignedData [17:39:20]SAM_PROTO_SignData [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 0D 01 02 [17:39:20]Write to MH i2c: E2 08 00 D3 08 80 0D 01 02 00 00 00 00 54 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [17:39:20]RAPDU: 90 00 [17:39:20]wFMCommunicate OK [17:39:20]wFMCommunicate request_size=255 [17:39:20]MH_SAM_APDU [17:39: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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 08 01 00 00 F4 03 04 00 54 40 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 87 02 00 35 04 06 00 E0 [17:39:20]Write to MH i2c: E2 02 01 D4 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 08 01 00 00 F4 03 04 00 54 40 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 87 02 00 35 04 06 00 E0 00 00 F7 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [17:39:20]RAPDU: 90 00 [17:39:20]wFMCommunicate OK [17:39:20]wFMCommunicate request_size=10 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 0D 02 02 05 21 FE DC 77 B4 [17:39:20]Write to MH i2c: E2 0D 00 D5 08 80 0D 02 02 05 00 21 FE DC 77 B4 00 00 87 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [17:39:20]RAPDU: 90 00 [17:39:20]wFMCommunicate OK [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 0D 03 02 [17:39:20]Write to MH i2c: E2 08 00 D6 08 80 0D 03 02 00 00 00 00 59 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0B 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0B 00 D6 08 00 0B 9A 80 48 4B 9E 9D 9D 90 00 EA [17:39:20]RAPDU: 0B 9A 80 48 4B 9E 9D 9D 90 00 [17:39:20]wFMCommunicate OK [17:39:20]SAM_PROTO_SignData done [17:39:20]FM_MakeSignedData done [17:39:20]CreateOFDProtocolMessage [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 11 00 00 [17:39:20]Write to MH i2c: E2 08 00 D7 08 80 11 00 00 00 00 00 00 59 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 17 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 17 00 D7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [17:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:39:20]wFMCommunicate OK [17:39:20]CreateOFDProtocolMessage done [17:39:20]OFDSenderStorePacket 165782 [17:39:20]StoreOFDPacket docnum=165782 [17:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 80 07 01 D0 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 08 01 00 00 F4 03 04 00 54 40 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 87 02 00 35 04 06 00 E0 21 FE DC 77 B4 0B 9A 80 48 4B 9E 9D 9D [17:39:20]CheckFolder [17:39:20]dirname=/storage/ofd_packets [17:39:20]CheckFolder done [17:39:20]ProducePacketName [17:39:20]name=ofd_packets/00165782 [17:39:20]NVStorageSaveData ofd_packets/00165782 [17:39:20]File name is /storage/ofd_packets/00165782 [17:39:20]Write 301 bytes [17:39:20]NVStorageSaveData done [17:39:20]OFDSenderStorePacket done [17:39:20]KKMCreateOFDPacket done [17:39:20]NVStorageSaveData kkm_last_timestamp [17:39:20]File name is /storage/kkm_last_timestamp [17:39:20]Write 4 bytes [17:39:20]NVStorageSaveData done [17:39:20]ExternCall_PrintAddStr [17:39:20]wPrintStart [17:39:20]Write to MH i2c: 01 00 00 D8 08 E0 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 07 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 FF 0F F5 [17:39:20]RasterBufferAndPrint [17:39:20]line Счет N : (1)220350 [17:39:20]line ИНН: 02508201610067 [17:39:20]line Контрольно-Кассовый Чек [17:39:20]line ПРОДАЖА [17:39:20]line ТРК (МРК, ГНК) : 43 [17:39:20]line Товар: 2710124130 [17:39:20]line Аи-92-К-5 [17:39:20]line 14.940 * 66.90 [17:39:20]line = 999.49 [17:39:20]line НДС 12% НСП 1% [17:39:20]line > о реализуемом товаре [17:39:20]line ОКРУГЛЕНИЕ: -0.49 [17:39:20]line ИТОГО: 999.00 [17:39:20]line Внесено: 1000.00 [17:39:20]line СДАЧА: 1.00 [17:39:20]line НСП 1% : 8.84 [17:39:20]line НДС 12% : 106.14 [17:39:20]line Наличными: 999.00 [17:39:20]line Безнал.: 0.00 [17:39:20]line Место: АЗС № 161 "Партнер Нефть" [17:39:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:39:20]line СНО: Общий режим [17:39:20]line Чек 264 20.10.2024 17:39 [17:39:20]line Смена: 534 ФФД: 1.0 [17:39:20]line ЗНМ: 0300000104 [17:39:20]line РНМ: 0000000000091764 [17:39:20]line Версия ККМ: 001 [17:39:20]line ФМ: 0000000000871759 [17:39:20]line ФД: 165782 [17:39:20]line ФПД: 246436614404020 [17:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173932&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165782&fm=246436614404020&tin=02508201610067®Number=0000000000091764&sum=99900 [17:39:20]OFD Sender: Processing packet 165782 [packets to send 48, broken 47] [17:39:20]ProducePacketName [17:39:20]name=ofd_packets/00165782 [17:39:20]OFD Sender: To server: pG, [17:39:20]CommunicateWithHost lk.salyk.kg:30040 [17:39:20]ConnectInit lk.salyk.kg [17:39:20]written 0, free lines is 4095 [17:39:20]Connected sock=10 [17:39:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 80 07 01 D0 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 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 08 01 00 00 F4 03 04 00 54 40 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 87 02 00 35 04 06 00 E0 21 FE DC 77 B4 0B 9A 80 48 4B 9E 9D 9D [17:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 67 9D 47 00 CB E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 87 02 00 F4 03 04 00 C5 E6 14 67 B6 04 01 00 00 9F 6F 5D 09 75 AA 2C EC [17:39:21]CommunicateWithHost err = 0 [17:39:21]CheckOFDResponse [17:39:21]1017 (14) - 77093643461234 [17:39:21]1041 (16) - 0000000000871759 [17:39:21]1040 (4) - 165782 [17:39:21]1012 (4) - 20.10.2024 11:17 [17:39:21]1206 (1) - 0 [17:39:21]OFD Sender: Remove packet 165782 [17:39:21]ProducePacketName [17:39:21]name=ofd_packets/00165782 [17:39:21]NVStorageDeleteData [17:39:21]Write to MH i2c: 01 00 00 03 09 0C [17:39:21]Write i2c OK [17:39:21]MH_I2C_Read... [17:39:21]Read from MH i2c: 01 [17:39:21]MH_I2C_Read... [17:39:21]Read from MH i2c: 01 07 00 [17:39:21]MH_I2C_Read... [17:39:21]Read from MH i2c: 01 07 00 03 09 00 00 00 00 00 CD 0C EC [17:39:21]RasterBufferAndPrint [17:39:21]line [17:39:21]line [17:39:21]line [17:39:21]line [17:39:21]line [17:39:21]written 0, free lines is 3282 [17:39:21]MH_Cut [17:39:21]Write to MH i2c: D1 01 00 0A 09 01 E5 [17:39:21]Write i2c OK [17:39:21]MH_I2C_Read... [17:39:21]Read from MH i2c: D1 [17:39:21]MH_I2C_Read... [17:39:21]Read from MH i2c: D1 01 00 [17:39:21]MH_I2C_Read... [17:39:21]Read from MH i2c: D1 01 00 0A 09 00 E4 [17:39:21]Write to MH i2c: 01 00 00 0B 09 14 [17:39:21]Write i2c OK [17:39:21]MH_I2C_Read... [17:39:21]OFD Sender: No OFD packet to send [17:39:22]*** Cut start [17:39:22]*** Partial cut [17:39:22]*** CUTSNS_PIN = 1 [17:39:22]*** CUTSNS_PIN = 0 [17:39:22]*** Brake cut motor [17:39:22]Read from MH i2c: 01 [17:39:22]MH_I2C_Read... [17:39:22]*** Stop cut motor [17:39:22]*** Cut end [17:39:22]Read from MH i2c: 01 07 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: 01 07 00 0B 09 00 00 00 00 00 FF 0F 29 [17:39:22]process_action close_receipt done [17:39:22]requested_data is exist [17:39:22]produce_requested_data [17:39:22]requested_item fm.sn is exist - process it [17:39:22]wFMCommunicate request_size=4 [17:39:22]MH_SAM_APDU [17:39:22]CAPDU: 80 11 00 00 [17:39:22]Write to MH i2c: E2 08 00 0C 09 80 11 00 00 00 00 00 00 8F [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:22]Read from MH i2c: E2 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 17 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 17 00 0C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E7 [17:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:39:22]wFMCommunicate OK [17:39:22]requested_item fd.num is exist - process it [17:39:22]SAM_PROTO_GetFieldsCounters [17:39:22]wFMCommunicate request_size=4 [17:39:22]MH_SAM_APDU [17:39:22]CAPDU: 80 13 00 00 [17:39:22]Write to MH i2c: E2 08 00 0D 09 80 13 00 00 00 00 00 00 92 [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:22]Read from MH i2c: E2 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 62 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 62 00 0D 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 87 02 00 0E 04 04 00 16 02 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 0C [17:39:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 87 02 00 0E 04 04 00 16 02 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:39:22]wFMCommunicate OK [17:39:22]SAM_PROTO_GetFieldsCounters done [17:39:22]requested_item shift.num is exist - process it [17:39:23]requested_item shift.opened is exist - process it [17:39:23]req_shift_opened [17:39:23]FM_GetShiftState [17:39:23]SAM_PROTO_GetShiftState [17:39:23]wFMCommunicate request_size=4 [17:39:23]MH_SAM_APDU [17:39:23]CAPDU: 80 13 01 00 [17:39:23]Write to MH i2c: E2 08 00 0E 09 80 13 01 00 00 00 00 00 94 [17:39:23]Write i2c OK [17:39:23]MH_I2C_Read... [17:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:23]Read from MH i2c: E2 [17:39:23]MH_I2C_Read... [17:39:23]Read from MH i2c: E2 0E 00 [17:39:23]MH_I2C_Read... [17:39:23]Read from MH i2c: E2 0E 00 0E 09 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DC [17:39:23]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:39:23]wFMCommunicate OK [17:39:23]SAM_PROTO_GetShiftState done [17:39:23]FM_GetShiftState done [17:39:23]req_shift_opened done [17:39:23]requested_item shift.open_date is exist - process it [17:39:23]req_shift_open_date [17:39:23]req_shift_open_date done [17:39:23]produce_requested_data done [17:39:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165782,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:39:23]process_action_free close_receipt [17:39:23]json_value_free [17:39:23]json_value_free done [17:39:23]process_json_proto returns [17:39:23]Send response to host [17:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165782,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:39:23]free response buf [17:39:23]execute_script done [17:39:23]execute_script returns [17:39:23]free content buf [17:39:23]Sock 9.Close socket [17:39:23]Sock 9.Thread stoped [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:17]accept exits with 7 [17:42:17]New connection [17:42:17]New thread 3066920292 created [17:42:17]Thread 3066776932 joined [17:42:17]Waiting for new connection... [17:42:17] Sock 7.Parse request [17:42:17]Sock 7.Check first char [17:42:17]Sock 7.First char is OK [17:42:17]request: POST /json_proto HTTP/1.0 [17:42:17]Method: POST [17:42:17]URL: /json_proto [17:42:17]Method is POST - this is cgi request [17:42:17]url: /json_proto [17:42:17]query_string will be loaded in cgi processing [17:42:17]execute_cgi json_proto POST (null) [17:42:17]execute_cgi path=json_proto method=POST [17:42:17]POST find Content-Length [17:42:17]Host: 172.17.53.195:8080 [17:42:17]Content-Length: 678 [17:42:17]Content-Type: application/json [17:42:17] [17:42:17]POST finish read [17:42:17]Found Content-Length = 678 [17:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:17]execute_script... [17:42: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)220351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:17]POST & json_proto [17:42:17]process_json_proto [17:42:17]json parsed OK: [17:42:17]protocol is kg_v1.0 [17:42:17]action value=close_receipt [17:42:17]process_action close_receipt [17:42:17]cmd_close_receipt [17:42:17]MH_GetDate [17:42:17]Write to MH i2c: F0 00 00 0F 09 07 [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: F0 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: F0 09 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: F0 09 00 0F 09 00 06 41 15 67 21 48 4A 65 EB [17:42:17]GetLastDocTimeStamp 1729445972 [17:42:17]current date 1729446150 [17:42:17]FM_GetShiftState [17:42:17]SAM_PROTO_GetShiftState [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 13 01 00 [17:42:17]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:17]Read from MH i2c: E2 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 0E 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DE [17:42:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:42:17]wFMCommunicate OK [17:42:17]SAM_PROTO_GetShiftState done [17:42:17]FM_GetShiftState done [17:42:17]opened in 1729384561 [17:42:17]opened+sec_in_day 1729470961 [17:42:17]quantity*price = 70044 [17:42:17]sum+1 = 70045 [17:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 265 20.10.2024 17:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165783 ФПД: 17621053522911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174230&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165783&fm=17621053522911&tin=02508201610067®Number=0000000000091764&sum=70000 [17:42:18]StoreToDocumentArchive [17:42:18]shift 534 fd 165783 [17:42:18]save to /storage/0534/doc_00165783 [17:42:18]save last doc name /storage/0534/doc_00165783 to /storage/kkm_last_doc_name [17:42:18]save OK [17:42:18]Clear old archive folders... [17:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:18]tlvbuf is 019A63D0 [17:42:18]SAM_PROTO_ClearQueue [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 09 00 00 [17:42:18]Write to MH i2c: E2 08 00 1D 09 80 09 00 00 00 00 00 00 98 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [17:42:18]RAPDU: 90 00 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_ClearQueue done [17:42:18]KKMCreateOFDPacket [17:42:18]OFDProtocolAddRootSTLVToBuf [17:42:18]FM_MakeSignedData [17:42:18]FM_MakeSignedData [17:42:18]SAM_PROTO_SignData [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 0D 01 02 [17:42:18]Write to MH i2c: E2 08 00 1E 09 80 0D 01 02 00 00 00 00 A0 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [17:42:18]RAPDU: 90 00 [17:42:18]wFMCommunicate OK [17:42:18]wFMCommunicate request_size=255 [17:42:18]MH_SAM_APDU [17:42: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 06 41 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 87 02 00 35 04 06 00 10 [17:42:18]Write to MH i2c: E2 02 01 1F 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 06 41 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 87 02 00 35 04 06 00 10 00 00 5B [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [17:42:18]RAPDU: 90 00 [17:42:18]wFMCommunicate OK [17:42:18]wFMCommunicate request_size=10 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 0D 02 02 05 06 B8 A2 C3 DF [17:42:18]Write to MH i2c: E2 0D 00 20 09 80 0D 02 02 05 00 06 B8 A2 C3 DF 00 00 AF [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [17:42:18]RAPDU: 90 00 [17:42:18]wFMCommunicate OK [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 0D 03 02 [17:42:18]Write to MH i2c: E2 08 00 21 09 80 0D 03 02 00 00 00 00 A5 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:19]Read from MH i2c: E2 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: E2 0B 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: E2 0B 00 21 09 00 D4 4F 54 1D 8E 8F E1 D5 90 00 0D [17:42:19]RAPDU: D4 4F 54 1D 8E 8F E1 D5 90 00 [17:42:19]wFMCommunicate OK [17:42:19]SAM_PROTO_SignData done [17:42:19]FM_MakeSignedData done [17:42:19]CreateOFDProtocolMessage [17:42:19]wFMCommunicate request_size=4 [17:42:19]MH_SAM_APDU [17:42:19]CAPDU: 80 11 00 00 [17:42:19]Write to MH i2c: E2 08 00 22 09 80 11 00 00 00 00 00 00 A5 [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:19]Read from MH i2c: E2 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: E2 17 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: E2 17 00 22 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [17:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:42:19]wFMCommunicate OK [17:42:19]CreateOFDProtocolMessage done [17:42:19]OFDSenderStorePacket 165783 [17:42:19]StoreOFDPacket docnum=165783 [17:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 54 07 01 4E 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 06 41 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 87 02 00 35 04 06 00 10 06 B8 A2 C3 DF D4 4F 54 1D 8E 8F E1 D5 [17:42:19]CheckFolder [17:42:19]dirname=/storage/ofd_packets [17:42:19]CheckFolder done [17:42:19]ProducePacketName [17:42:19]name=ofd_packets/00165783 [17:42:19]NVStorageSaveData ofd_packets/00165783 [17:42:19]File name is /storage/ofd_packets/00165783 [17:42:19]Write 301 bytes [17:42:19]NVStorageSaveData done [17:42:19]OFDSenderStorePacket done [17:42:19]KKMCreateOFDPacket done [17:42:19]NVStorageSaveData kkm_last_timestamp [17:42:19]File name is /storage/kkm_last_timestamp [17:42:19]Write 4 bytes [17:42:19]NVStorageSaveData done [17:42:19]ExternCall_PrintAddStr [17:42:19]wPrintStart [17:42:19]Write to MH i2c: 01 00 00 23 09 2C [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 07 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0F 41 [17:42:19]RasterBufferAndPrint [17:42:19]line Счет N : (1)220351 [17:42:19]line ИНН: 02508201610067 [17:42:19]line Контрольно-Кассовый Чек [17:42:19]line ПРОДАЖА [17:42:19]line ТРК (МРК, ГНК) : 13 [17:42:19]line Товар: 2710124130 [17:42:19]line Аи-92-К-5 [17:42:19]line 10.470 * 66.90 [17:42:19]line = 700.44 [17:42:19]line НДС 12% НСП 1% [17:42:19]line > о реализуемом товаре [17:42:19]line ОКРУГЛЕНИЕ: -0.44 [17:42:19]line ИТОГО: 700.00 [17:42:19]line Внесено: 700.00 [17:42:19]line СДАЧА: 0.00 [17:42:19]line НСП 1% : 6.20 [17:42:19]line НДС 12% : 74.38 [17:42:19]line Наличными: 700.00 [17:42:19]line Безнал.: 0.00 [17:42:19]line Место: АЗС № 161 "Партнер Нефть" [17:42:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:42:19]line СНО: Общий режим [17:42:19]line Чек 265 20.10.2024 17:42 [17:42:19]line Смена: 534 ФФД: 1.0 [17:42:19]line ЗНМ: 0300000104 [17:42:19]line РНМ: 0000000000091764 [17:42:19]line Версия ККМ: 001 [17:42:19]line ФМ: 0000000000871759 [17:42:19]line ФД: 165783 [17:42:19]line ФПД: 17621053522911 [17:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174230&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165783&fm=17621053522911&tin=02508201610067®Number=0000000000091764&sum=70000 [17:42:19]OFD Sender: Processing packet 165783 [packets to send 48, broken 47] [17:42:19]ProducePacketName [17:42:19]name=ofd_packets/00165783 [17:42:19]OFD Sender: To server: pG, [17:42:19]CommunicateWithHost lk.salyk.kg:30040 [17:42:19]ConnectInit lk.salyk.kg [17:42:19]written 0, free lines is 4095 [17:42:19]Connected sock=10 [17:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 54 07 01 4E 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 06 41 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 87 02 00 35 04 06 00 10 06 B8 A2 C3 DF D4 4F 54 1D 8E 8F E1 D5 [17:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 F3 47 00 F4 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 31 37 35 39 10 04 04 00 97 87 02 00 F4 03 04 00 78 E7 14 67 B6 04 01 00 00 48 6F 18 7B 55 A0 36 EC [17:42:19]CommunicateWithHost err = 0 [17:42:19]CheckOFDResponse [17:42:19]1017 (14) - 77093643461234 [17:42:19]1041 (16) - 0000000000871759 [17:42:19]1040 (4) - 165783 [17:42:19]1012 (4) - 20.10.2024 11:20 [17:42:19]1206 (1) - 0 [17:42:19]OFD Sender: Remove packet 165783 [17:42:19]ProducePacketName [17:42:19]name=ofd_packets/00165783 [17:42:19]NVStorageDeleteData [17:42:19]Write to MH i2c: 01 00 00 4E 09 57 [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 07 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: 01 07 00 4E 09 00 00 00 00 00 BA 0C 24 [17:42:19]RasterBufferAndPrint [17:42:19]line [17:42:19]line [17:42:19]line [17:42:19]line [17:42:19]line [17:42:19]written 0, free lines is 3265 [17:42:19]MH_Cut [17:42:19]Write to MH i2c: D1 01 00 55 09 01 30 [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: D1 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: D1 01 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: D1 01 00 55 09 00 2F [17:42:19]Write to MH i2c: 01 00 00 56 09 5F [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:20]OFD Sender: No OFD packet to send [17:42:20]*** Cut start [17:42:20]*** Partial cut [17:42:20]*** CUTSNS_PIN = 1 [17:42:20]*** CUTSNS_PIN = 0 [17:42:20]*** Brake cut motor [17:42:21]Read from MH i2c: 01 [17:42:21]MH_I2C_Read... [17:42:21]*** Stop cut motor [17:42:21]*** Cut end [17:42:21]Read from MH i2c: 01 07 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: 01 07 00 56 09 00 00 00 00 00 FF 0F 74 [17:42:21]process_action close_receipt done [17:42:21]requested_data is exist [17:42:21]produce_requested_data [17:42:21]requested_item fm.sn is exist - process it [17:42:21]wFMCommunicate request_size=4 [17:42:21]MH_SAM_APDU [17:42:21]CAPDU: 80 11 00 00 [17:42:21]Write to MH i2c: E2 08 00 57 09 80 11 00 00 00 00 00 00 DA [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:21]Read from MH i2c: E2 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 17 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 17 00 57 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [17:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:42:21]wFMCommunicate OK [17:42:21]requested_item fd.num is exist - process it [17:42:21]SAM_PROTO_GetFieldsCounters [17:42:21]wFMCommunicate request_size=4 [17:42:21]MH_SAM_APDU [17:42:21]CAPDU: 80 13 00 00 [17:42:21]Write to MH i2c: E2 08 00 58 09 80 13 00 00 00 00 00 00 DD [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:21]Read from MH i2c: E2 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 62 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 62 00 58 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 87 02 00 0E 04 04 00 16 02 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 5B [17:42: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 87 02 00 0E 04 04 00 16 02 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 [17:42:21]wFMCommunicate OK [17:42:21]SAM_PROTO_GetFieldsCounters done [17:42:21]requested_item shift.num is exist - process it [17:42:21]requested_item shift.opened is exist - process it [17:42:21]req_shift_opened [17:42:21]FM_GetShiftState [17:42:21]SAM_PROTO_GetShiftState [17:42:21]wFMCommunicate request_size=4 [17:42:21]MH_SAM_APDU [17:42:21]CAPDU: 80 13 01 00 [17:42:21]Write to MH i2c: E2 08 00 59 09 80 13 01 00 00 00 00 00 DF [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:21]Read from MH i2c: E2 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 0E 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 0E 00 59 09 00 09 00 01 71 50 14 67 00 00 00 00 90 00 27 [17:42:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:42:21]wFMCommunicate OK [17:42:21]SAM_PROTO_GetShiftState done [17:42:21]FM_GetShiftState done [17:42:21]req_shift_opened done [17:42:21]requested_item shift.open_date is exist - process it [17:42:21]req_shift_open_date [17:42:21]req_shift_open_date done [17:42:21]produce_requested_data done [17:42:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165783,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:42:21]process_action_free close_receipt [17:42:21]json_value_free [17:42:21]json_value_free done [17:42:21]process_json_proto returns [17:42:21]Send response to host [17:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165783,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:42:21]free response buf [17:42:21]execute_script done [17:42:21]execute_script returns [17:42:21]free content buf [17:42:21]Sock 7.Close socket [17:42:21]Sock 7.Thread stoped [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:40]accept exits with 9 [17:45:40]New connection [17:45:40]New thread 3066776932 created [17:45:40]Thread 3066920292 joined [17:45:40]Waiting for new connection... [17:45:40] Sock 9.Parse request [17:45:40]Sock 9.Check first char [17:45:40]Sock 9.First char is OK [17:45:40]request: POST /json_proto HTTP/1.0 [17:45:40]Method: POST [17:45:40]URL: /json_proto [17:45:40]Method is POST - this is cgi request [17:45:40]url: /json_proto [17:45:40]query_string will be loaded in cgi processing [17:45:40]execute_cgi json_proto POST (null) [17:45:40]execute_cgi path=json_proto method=POST [17:45:40]POST find Content-Length [17:45:40]Host: 172.17.53.195:8080 [17:45:40]Content-Length: 682 [17:45:40]Content-Type: application/json [17:45:40] [17:45:40]POST finish read [17:45:40]Found Content-Length = 682 [17:45:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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" ] } } [17:45:40]execute_script... [17:45: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)220352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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" ] } } [17:45:40]POST & json_proto [17:45:40]process_json_proto [17:45:40]json parsed OK: [17:45:40]protocol is kg_v1.0 [17:45:40]action value=close_receipt [17:45:40]process_action close_receipt [17:45:40]cmd_close_receipt [17:45:40]MH_GetDate [17:45:40]Write to MH i2c: F0 00 00 5A 09 52 [17:45:40]Write i2c OK [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: F0 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: F0 09 00 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: F0 09 00 5A 09 00 D2 41 15 67 21 48 4A 65 02 [17:45:40]GetLastDocTimeStamp 1729446150 [17:45:40]current date 1729446354 [17:45:40]FM_GetShiftState [17:45:40]SAM_PROTO_GetShiftState [17:45:40]wFMCommunicate request_size=4 [17:45:40]MH_SAM_APDU [17:45:40]CAPDU: 80 13 01 00 [17:45:40]Write to MH i2c: E2 08 00 5B 09 80 13 01 00 00 00 00 00 E1 [17:45:40]Write i2c OK [17:45:40]MH_I2C_Read... [17:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:40]Read from MH i2c: E2 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: E2 0E 00 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: E2 0E 00 5B 09 00 09 00 01 71 50 14 67 00 00 00 00 90 00 29 [17:45:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:45:40]wFMCommunicate OK [17:45:40]SAM_PROTO_GetShiftState done [17:45:40]FM_GetShiftState done [17:45:40]opened in 1729384561 [17:45:40]opened+sec_in_day 1729470961 [17:45:40]quantity*price = 250005 [17:45:40]sum+1 = 250006 [17:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 266 20.10.2024 17:45 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165784 ФПД: 132319982547538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174554&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165784&fm=132319982547538&tin=02508201610067®Number=0000000000091764&sum=250000 [17:45:41]StoreToDocumentArchive [17:45:41]shift 534 fd 165784 [17:45:41]save to /storage/0534/doc_00165784 [17:45:41]save last doc name /storage/0534/doc_00165784 to /storage/kkm_last_doc_name [17:45:41]save OK [17:45:41]Clear old archive folders... [17:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:41]tlvbuf is 01484A60 [17:45:41]SAM_PROTO_ClearQueue [17:45:41]wFMCommunicate request_size=4 [17:45:41]MH_SAM_APDU [17:45:41]CAPDU: 80 09 00 00 [17:45:41]Write to MH i2c: E2 08 00 68 09 80 09 00 00 00 00 00 00 E3 [17:45:41]Write i2c OK [17:45:41]MH_I2C_Read... [17:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:41]Read from MH i2c: E2 [17:45:41]MH_I2C_Read... [17:45:41]Read from MH i2c: E2 03 00 [17:45:41]MH_I2C_Read... [17:45:41]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [17:45:41]RAPDU: 90 00 [17:45:41]wFMCommunicate OK [17:45:41]SAM_PROTO_ClearQueue done [17:45:41]KKMCreateOFDPacket [17:45:41]OFDProtocolAddRootSTLVToBuf [17:45:41]FM_MakeSignedData [17:45:41]FM_MakeSignedData [17:45:41]SAM_PROTO_SignData [17:45:41]wFMCommunicate request_size=4 [17:45:41]MH_SAM_APDU [17:45:41]CAPDU: 80 0D 01 02 [17:45:41]Write to MH i2c: E2 08 00 69 09 80 0D 01 02 00 00 00 00 EB [17:45:41]Write i2c OK [17:45:41]MH_I2C_Read... [17:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:41]Read from MH i2c: E2 [17:45:41]MH_I2C_Read... [17:45:41]Read from MH i2c: E2 03 00 [17:45:41]MH_I2C_Read... [17:45:41]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [17:45:41]RAPDU: 90 00 [17:45:41]wFMCommunicate OK [17:45:41]wFMCommunicate request_size=255 [17:45:41]MH_SAM_APDU [17:45: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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 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 0A 01 00 00 F4 03 04 00 D2 41 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 87 02 00 35 04 06 00 78 [17:45:41]Write to MH i2c: E2 02 01 6A 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 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 0A 01 00 00 F4 03 04 00 D2 41 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 87 02 00 35 04 06 00 78 00 00 04 [17:45:41]Write i2c OK [17:45:41]MH_I2C_Read... [17:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:42]Read from MH i2c: E2 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 03 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [17:45:42]RAPDU: 90 00 [17:45:42]wFMCommunicate OK [17:45:42]wFMCommunicate request_size=10 [17:45:42]MH_SAM_APDU [17:45:42]CAPDU: 80 0D 02 02 05 58 25 8E 72 52 [17:45:42]Write to MH i2c: E2 0D 00 6B 09 80 0D 02 02 05 00 58 25 8E 72 52 00 00 C7 [17:45:42]Write i2c OK [17:45:42]MH_I2C_Read... [17:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:42]Read from MH i2c: E2 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 03 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 03 00 6B 09 00 90 00 E8 [17:45:42]RAPDU: 90 00 [17:45:42]wFMCommunicate OK [17:45:42]wFMCommunicate request_size=4 [17:45:42]MH_SAM_APDU [17:45:42]CAPDU: 80 0D 03 02 [17:45:42]Write to MH i2c: E2 08 00 6C 09 80 0D 03 02 00 00 00 00 F0 [17:45:42]Write i2c OK [17:45:42]MH_I2C_Read... [17:45:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:42]Read from MH i2c: E2 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 0B 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 0B 00 6C 09 00 FE AC 14 87 E7 6C 1A 09 90 00 AC [17:45:42]RAPDU: FE AC 14 87 E7 6C 1A 09 90 00 [17:45:42]wFMCommunicate OK [17:45:42]SAM_PROTO_SignData done [17:45:42]FM_MakeSignedData done [17:45:42]CreateOFDProtocolMessage [17:45:42]wFMCommunicate request_size=4 [17:45:42]MH_SAM_APDU [17:45:42]CAPDU: 80 11 00 00 [17:45:42]Write to MH i2c: E2 08 00 6D 09 80 11 00 00 00 00 00 00 F0 [17:45:42]Write i2c OK [17:45:42]MH_I2C_Read... [17:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:42]Read from MH i2c: E2 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 17 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 17 00 6D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 48 [17:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:45:42]wFMCommunicate OK [17:45:42]CreateOFDProtocolMessage done [17:45:42]OFDSenderStorePacket 165784 [17:45:42]StoreOFDPacket docnum=165784 [17:45:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 1B 07 01 7C 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 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 0A 01 00 00 F4 03 04 00 D2 41 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 87 02 00 35 04 06 00 78 58 25 8E 72 52 FE AC 14 87 E7 6C 1A 09 [17:45:42]CheckFolder [17:45:42]dirname=/storage/ofd_packets [17:45:42]CheckFolder done [17:45:42]ProducePacketName [17:45:42]name=ofd_packets/00165784 [17:45:42]NVStorageSaveData ofd_packets/00165784 [17:45:42]File name is /storage/ofd_packets/00165784 [17:45:42]Write 301 bytes [17:45:42]NVStorageSaveData done [17:45:42]OFDSenderStorePacket done [17:45:42]KKMCreateOFDPacket done [17:45:42]NVStorageSaveData kkm_last_timestamp [17:45:42]File name is /storage/kkm_last_timestamp [17:45:42]Write 4 bytes [17:45:42]NVStorageSaveData done [17:45:42]ExternCall_PrintAddStr [17:45:42]wPrintStart [17:45:42]Write to MH i2c: 01 00 00 6E 09 77 [17:45:42]Write i2c OK [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: 01 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: 01 07 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: 01 07 00 6E 09 00 00 00 00 00 FF 0F 8C [17:45:42]RasterBufferAndPrint [17:45:42]line Счет N : (1)220352 [17:45:42]line ИНН: 02508201610067 [17:45:42]line Контрольно-Кассовый Чек [17:45:42]line ПРОДАЖА [17:45:42]line ТРК (МРК, ГНК) : 33 [17:45:42]line Товар: 2710124130 [17:45:42]line Аи-92-К-5 [17:45:42]line 37.370 * 66.90 [17:45:42]line = 2500.05 [17:45:42]line НДС 12% НСП 1% [17:45:42]line > о реализуемом товаре [17:45:42]line ОКРУГЛЕНИЕ: -0.05 [17:45:42]line ИТОГО: 2500.00 [17:45:42]line Внесено: 2500.00 [17:45:42]line СДАЧА: 0.00 [17:45:42]line НСП 1% : 22.12 [17:45:42]line НДС 12% : 265.49 [17:45:42]line Наличными: 2500.00 [17:45:42]line Безнал.: 0.00 [17:45:42]line Место: АЗС № 161 "Партнер Нефть" [17:45:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:45:42]line СНО: Общий режим [17:45:42]line Чек 266 20.10.2024 17:45 [17:45:42]line Смена: 534 ФФД: 1.0 [17:45:42]line ЗНМ: 0300000104 [17:45:42]line РНМ: 0000000000091764 [17:45:42]line Версия ККМ: 001 [17:45:42]line ФМ: 0000000000871759 [17:45:42]line ФД: 165784 [17:45:42]line ФПД: 132319982547538 [17:45:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174554&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165784&fm=132319982547538&tin=02508201610067®Number=0000000000091764&sum=250000 [17:45:42]OFD Sender: Processing packet 165784 [packets to send 48, broken 47] [17:45:42]ProducePacketName [17:45:42]name=ofd_packets/00165784 [17:45:42]OFD Sender: To server: pG, [17:45:42]CommunicateWithHost lk.salyk.kg:30040 [17:45:42]ConnectInit lk.salyk.kg [17:45:42]written 0, free lines is 4095 [17:45:42]Connected sock=10 [17:45:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 1B 07 01 7C 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 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 0A 01 00 00 F4 03 04 00 D2 41 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 87 02 00 35 04 06 00 78 58 25 8E 72 52 FE AC 14 87 E7 6C 1A 09 [17:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 74 47 00 99 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 87 02 00 F4 03 04 00 43 E8 14 67 B6 04 01 00 00 8E FA 68 BD D2 F6 5E E7 [17:45:42]CommunicateWithHost err = 0 [17:45:42]CheckOFDResponse [17:45:42]1017 (14) - 77093643461234 [17:45:42]1041 (16) - 0000000000871759 [17:45:42]1040 (4) - 165784 [17:45:42]1012 (4) - 20.10.2024 11:23 [17:45:42]1206 (1) - 0 [17:45:42]OFD Sender: Remove packet 165784 [17:45:42]ProducePacketName [17:45:42]name=ofd_packets/00165784 [17:45:42]NVStorageDeleteData [17:45:43]Write to MH i2c: 01 00 00 99 09 A2 [17:45:43]Write i2c OK [17:45:43]MH_I2C_Read... [17:45:43]Read from MH i2c: 01 [17:45:43]MH_I2C_Read... [17:45:43]Read from MH i2c: 01 07 00 [17:45:43]MH_I2C_Read... [17:45:43]Read from MH i2c: 01 07 00 99 09 00 00 00 00 00 C6 0C 7B [17:45:43]RasterBufferAndPrint [17:45:43]line [17:45:43]line [17:45:43]line [17:45:43]line [17:45:43]line [17:45:43]written 0, free lines is 3276 [17:45:43]MH_Cut [17:45:43]Write to MH i2c: D1 01 00 A0 09 01 7B [17:45:43]Write i2c OK [17:45:43]MH_I2C_Read... [17:45:43]Read from MH i2c: D1 [17:45:43]MH_I2C_Read... [17:45:43]Read from MH i2c: D1 01 00 [17:45:43]MH_I2C_Read... [17:45:43]Read from MH i2c: D1 01 00 A0 09 00 7A [17:45:43]Write to MH i2c: 01 00 00 A1 09 AA [17:45:43]Write i2c OK [17:45:43]MH_I2C_Read... [17:45:43]OFD Sender: No OFD packet to send [17:45:43]*** Cut start [17:45:43]*** Partial cut [17:45:43]*** CUTSNS_PIN = 1 [17:45:43]*** CUTSNS_PIN = 0 [17:45:44]*** Brake cut motor [17:45:44]Read from MH i2c: 01 [17:45:44]MH_I2C_Read... [17:45:44]*** Stop cut motor [17:45:44]*** Cut end [17:45:44]Read from MH i2c: 01 07 00 [17:45:44]MH_I2C_Read... [17:45:44]Read from MH i2c: 01 07 00 A1 09 00 00 00 00 00 FF 0F BF [17:45:44]process_action close_receipt done [17:45:44]requested_data is exist [17:45:44]produce_requested_data [17:45:44]requested_item fm.sn is exist - process it [17:45:44]wFMCommunicate request_size=4 [17:45:44]MH_SAM_APDU [17:45:44]CAPDU: 80 11 00 00 [17:45:44]Write to MH i2c: E2 08 00 A2 09 80 11 00 00 00 00 00 00 25 [17:45:44]Write i2c OK [17:45:44]MH_I2C_Read... [17:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:44]Read from MH i2c: E2 [17:45:44]MH_I2C_Read... [17:45:44]Read from MH i2c: E2 17 00 [17:45:44]MH_I2C_Read... [17:45:44]Read from MH i2c: E2 17 00 A2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [17:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:45:44]wFMCommunicate OK [17:45:44]requested_item fd.num is exist - process it [17:45:44]SAM_PROTO_GetFieldsCounters [17:45:44]wFMCommunicate request_size=4 [17:45:44]MH_SAM_APDU [17:45:44]CAPDU: 80 13 00 00 [17:45:44]Write to MH i2c: E2 08 00 A3 09 80 13 00 00 00 00 00 00 28 [17:45:44]Write i2c OK [17:45:44]MH_I2C_Read... [17:45:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:44]Read from MH i2c: E2 [17:45:44]MH_I2C_Read... [17:45:44]Read from MH i2c: E2 62 00 [17:45:44]MH_I2C_Read... [17:45:44]Read from MH i2c: E2 62 00 A3 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 87 02 00 0E 04 04 00 16 02 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 AA [17:45: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 87 02 00 0E 04 04 00 16 02 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 [17:45:44]wFMCommunicate OK [17:45:44]SAM_PROTO_GetFieldsCounters done [17:45:44]requested_item shift.num is exist - process it [17:45:44]requested_item shift.opened is exist - process it [17:45:44]req_shift_opened [17:45:44]FM_GetShiftState [17:45:44]SAM_PROTO_GetShiftState [17:45:44]wFMCommunicate request_size=4 [17:45:44]MH_SAM_APDU [17:45:44]CAPDU: 80 13 01 00 [17:45:44]Write to MH i2c: E2 08 00 A4 09 80 13 01 00 00 00 00 00 2A [17:45:44]Write i2c OK [17:45:44]MH_I2C_Read... [17:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:44]Read from MH i2c: E2 [17:45:44]MH_I2C_Read... [17:45:44]Read from MH i2c: E2 0E 00 [17:45:44]MH_I2C_Read... [17:45:44]Read from MH i2c: E2 0E 00 A4 09 00 09 00 01 71 50 14 67 00 00 00 00 90 00 72 [17:45:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:45:44]wFMCommunicate OK [17:45:44]SAM_PROTO_GetShiftState done [17:45:44]FM_GetShiftState done [17:45:44]req_shift_opened done [17:45:44]requested_item shift.open_date is exist - process it [17:45:44]req_shift_open_date [17:45:44]req_shift_open_date done [17:45:44]produce_requested_data done [17:45:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165784,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:45:44]process_action_free close_receipt [17:45:44]json_value_free [17:45:44]json_value_free done [17:45:44]process_json_proto returns [17:45:44]Send response to host [17:45:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165784,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:45:44]free response buf [17:45:44]execute_script done [17:45:44]execute_script returns [17:45:44]free content buf [17:45:44]Sock 9.Close socket [17:45:44]Sock 9.Thread stoped [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]accept exits with 7 [17:48:18]New connection [17:48:18]New thread 3066920292 created [17:48:18]Thread 3066776932 joined [17:48:18]Waiting for new connection... [17:48:18] Sock 7.Parse request [17:48:18]Sock 7.Check first char [17:48:18]Sock 7.First char is OK [17:48:18]request: POST /json_proto HTTP/1.0 [17:48:18]Method: POST [17:48:18]URL: /json_proto [17:48:18]Method is POST - this is cgi request [17:48:18]url: /json_proto [17:48:18]query_string will be loaded in cgi processing [17:48:18]execute_cgi json_proto POST (null) [17:48:18]execute_cgi path=json_proto method=POST [17:48:18]POST find Content-Length [17:48:18]Host: 172.17.53.195:8080 [17:48:18]Content-Length: 677 [17:48:18]Content-Type: application/json [17:48:18] [17:48:18]POST finish read [17:48:18]Found Content-Length = 677 [17:48:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:18]execute_script... [17:48: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)220353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:18]POST & json_proto [17:48:18]process_json_proto [17:48:18]json parsed OK: [17:48:18]protocol is kg_v1.0 [17:48:18]action value=close_receipt [17:48:18]process_action close_receipt [17:48:18]cmd_close_receipt [17:48:18]MH_GetDate [17:48:18]Write to MH i2c: F0 00 00 A5 09 9D [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: F0 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: F0 09 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: F0 09 00 A5 09 00 70 42 15 67 21 48 4A 65 EC [17:48:18]GetLastDocTimeStamp 1729446354 [17:48:18]current date 1729446512 [17:48:18]FM_GetShiftState [17:48:18]SAM_PROTO_GetShiftState [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 13 01 00 [17:48:18]Write to MH i2c: E2 08 00 A6 09 80 13 01 00 00 00 00 00 2C [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 0E 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 0E 00 A6 09 00 09 00 01 71 50 14 67 00 00 00 00 90 00 74 [17:48:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:48:18]wFMCommunicate OK [17:48:18]SAM_PROTO_GetShiftState done [17:48:18]FM_GetShiftState done [17:48:18]opened in 1729384561 [17:48:18]opened+sec_in_day 1729470961 [17:48:18]quantity*price = 40006 [17:48:18]sum+1 = 40007 [17:48: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 267 20.10.2024 17:48 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165785 ФПД: 172533557920294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174832&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165785&fm=172533557920294&tin=02508201610067®Number=0000000000091764&sum=40000 [17:48:19]StoreToDocumentArchive [17:48:19]shift 534 fd 165785 [17:48:19]save to /storage/0534/doc_00165785 [17:48:19]save last doc name /storage/0534/doc_00165785 to /storage/kkm_last_doc_name [17:48:19]save OK [17:48:19]Clear old archive folders... [17:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:19]tlvbuf is 01599AF0 [17:48:19]SAM_PROTO_ClearQueue [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 09 00 00 [17:48:19]Write to MH i2c: E2 08 00 B3 09 80 09 00 00 00 00 00 00 2E [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [17:48:19]RAPDU: 90 00 [17:48:19]wFMCommunicate OK [17:48:19]SAM_PROTO_ClearQueue done [17:48:19]KKMCreateOFDPacket [17:48:19]OFDProtocolAddRootSTLVToBuf [17:48:19]FM_MakeSignedData [17:48:19]FM_MakeSignedData [17:48:19]SAM_PROTO_SignData [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 0D 01 02 [17:48:19]Write to MH i2c: E2 08 00 B4 09 80 0D 01 02 00 00 00 00 36 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [17:48:19]RAPDU: 90 00 [17:48:19]wFMCommunicate OK [17:48:19]wFMCommunicate request_size=255 [17:48:19]MH_SAM_APDU [17:48: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 70 42 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 87 02 00 35 04 06 00 9C [17:48:19]Write to MH i2c: E2 02 01 B5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 70 42 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 87 02 00 35 04 06 00 9C 00 00 AB [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 03 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [17:48:20]RAPDU: 90 00 [17:48:20]wFMCommunicate OK [17:48:20]wFMCommunicate request_size=10 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 0D 02 02 05 EB 19 6E 82 26 [17:48:20]Write to MH i2c: E2 0D 00 B6 09 80 0D 02 02 05 00 EB 19 6E 82 26 00 00 5D [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 03 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [17:48:20]RAPDU: 90 00 [17:48:20]wFMCommunicate OK [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 0D 03 02 [17:48:20]Write to MH i2c: E2 08 00 B7 09 80 0D 03 02 00 00 00 00 3B [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 0B 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 0B 00 B7 09 00 37 AC 75 31 8B 68 24 B6 90 00 92 [17:48:20]RAPDU: 37 AC 75 31 8B 68 24 B6 90 00 [17:48:20]wFMCommunicate OK [17:48:20]SAM_PROTO_SignData done [17:48:20]FM_MakeSignedData done [17:48:20]CreateOFDProtocolMessage [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 B8 09 80 11 00 00 00 00 00 00 3B [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 B8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 93 [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:48:20]wFMCommunicate OK [17:48:20]CreateOFDProtocolMessage done [17:48:20]OFDSenderStorePacket 165785 [17:48:20]StoreOFDPacket docnum=165785 [17:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F2 0D 07 01 99 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 70 42 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 87 02 00 35 04 06 00 9C EB 19 6E 82 26 37 AC 75 31 8B 68 24 B6 [17:48:20]CheckFolder [17:48:20]dirname=/storage/ofd_packets [17:48:20]CheckFolder done [17:48:20]ProducePacketName [17:48:20]name=ofd_packets/00165785 [17:48:20]NVStorageSaveData ofd_packets/00165785 [17:48:20]File name is /storage/ofd_packets/00165785 [17:48:20]Write 301 bytes [17:48:20]NVStorageSaveData done [17:48:20]OFDSenderStorePacket done [17:48:20]KKMCreateOFDPacket done [17:48:20]NVStorageSaveData kkm_last_timestamp [17:48:20]File name is /storage/kkm_last_timestamp [17:48:20]Write 4 bytes [17:48:20]NVStorageSaveData done [17:48:20]ExternCall_PrintAddStr [17:48:20]wPrintStart [17:48:20]Write to MH i2c: 01 00 00 B9 09 C2 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: 01 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: 01 07 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: 01 07 00 B9 09 00 00 00 00 00 FF 0F D7 [17:48:20]RasterBufferAndPrint [17:48:20]line Счет N : (1)220353 [17:48:20]line ИНН: 02508201610067 [17:48:20]line Контрольно-Кассовый Чек [17:48:20]line ПРОДАЖА [17:48:20]line ТРК (МРК, ГНК) : 23 [17:48:20]line Товар: 2710124130 [17:48:20]line Аи-92-К-5 [17:48:20]line 5.980 * 66.90 [17:48:20]line = 400.06 [17:48:20]line НДС 12% НСП 1% [17:48:20]line > о реализуемом товаре [17:48:20]line ОКРУГЛЕНИЕ: -0.06 [17:48:20]line ИТОГО: 400.00 [17:48:20]line Внесено: 400.00 [17:48:20]line СДАЧА: 0.00 [17:48:20]line НСП 1% : 3.54 [17:48:20]line НДС 12% : 42.48 [17:48:20]line Наличными: 400.00 [17:48:20]line Безнал.: 0.00 [17:48:20]line Место: АЗС № 161 "Партнер Нефть" [17:48:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:48:20]line СНО: Общий режим [17:48:20]line Чек 267 20.10.2024 17:48 [17:48:20]line Смена: 534 ФФД: 1.0 [17:48:20]line ЗНМ: 0300000104 [17:48:20]line РНМ: 0000000000091764 [17:48:20]line Версия ККМ: 001 [17:48:20]line ФМ: 0000000000871759 [17:48:20]line ФД: 165785 [17:48:20]line ФПД: 172533557920294 [17:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174832&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165785&fm=172533557920294&tin=02508201610067®Number=0000000000091764&sum=40000 [17:48:20]OFD Sender: Processing packet 165785 [packets to send 48, broken 47] [17:48:20]ProducePacketName [17:48:20]name=ofd_packets/00165785 [17:48:20]OFD Sender: To server: pG, [17:48:20]CommunicateWithHost lk.salyk.kg:30040 [17:48:20]ConnectInit lk.salyk.kg [17:48:20]written 0, free lines is 4095 [17:48:20]Connected sock=10 [17:48:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F2 0D 07 01 99 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 70 42 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 87 02 00 35 04 06 00 9C EB 19 6E 82 26 37 AC 75 31 8B 68 24 B6 [17:48:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 92 89 47 00 2F 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 31 37 35 39 10 04 04 00 99 87 02 00 F4 03 04 00 E1 E8 14 67 B6 04 01 00 00 25 CE 23 E5 6F 4F E6 3B [17:48:20]CommunicateWithHost err = 0 [17:48:20]CheckOFDResponse [17:48:20]1017 (14) - 77093643461234 [17:48:20]1041 (16) - 0000000000871759 [17:48:20]1040 (4) - 165785 [17:48:20]1012 (4) - 20.10.2024 11:26 [17:48:20]1206 (1) - 0 [17:48:20]OFD Sender: Remove packet 165785 [17:48:20]ProducePacketName [17:48:20]name=ofd_packets/00165785 [17:48:20]NVStorageDeleteData [17:48:21]Write to MH i2c: 01 00 00 E4 09 ED [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: 01 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: 01 07 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: 01 07 00 E4 09 00 00 00 00 00 CF 0C CF [17:48:21]RasterBufferAndPrint [17:48:21]line [17:48:21]line [17:48:21]line [17:48:21]line [17:48:21]line [17:48:21]written 0, free lines is 3286 [17:48:21]MH_Cut [17:48:21]Write to MH i2c: D1 01 00 EB 09 01 C6 [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: D1 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: D1 01 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: D1 01 00 EB 09 00 C5 [17:48:21]Write to MH i2c: 01 00 00 EC 09 F5 [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]OFD Sender: No OFD packet to send [17:48:21]*** Cut start [17:48:21]*** Partial cut [17:48:21]*** CUTSNS_PIN = 1 [17:48:21]*** CUTSNS_PIN = 0 [17:48:22]*** Brake cut motor [17:48:22]Read from MH i2c: 01 [17:48:22]MH_I2C_Read... [17:48:22]*** Stop cut motor [17:48:22]*** Cut end [17:48:22]Read from MH i2c: 01 07 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: 01 07 00 EC 09 00 00 00 00 00 FF 0F 0A [17:48:22]process_action close_receipt done [17:48:22]requested_data is exist [17:48:22]produce_requested_data [17:48:22]requested_item fm.sn is exist - process it [17:48:22]wFMCommunicate request_size=4 [17:48:22]MH_SAM_APDU [17:48:22]CAPDU: 80 11 00 00 [17:48:22]Write to MH i2c: E2 08 00 ED 09 80 11 00 00 00 00 00 00 70 [17:48:22]Write i2c OK [17:48:22]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 17 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 17 00 ED 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C8 [17:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:48:22]wFMCommunicate OK [17:48:22]requested_item fd.num is exist - process it [17:48:22]SAM_PROTO_GetFieldsCounters [17:48:22]wFMCommunicate request_size=4 [17:48:22]MH_SAM_APDU [17:48:22]CAPDU: 80 13 00 00 [17:48:22]Write to MH i2c: E2 08 00 EE 09 80 13 00 00 00 00 00 00 73 [17:48:22]Write i2c OK [17:48:22]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 62 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 62 00 EE 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 87 02 00 0E 04 04 00 16 02 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 F9 [17:48:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 87 02 00 0E 04 04 00 16 02 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 [17:48:22]wFMCommunicate OK [17:48:22]SAM_PROTO_GetFieldsCounters done [17:48:22]requested_item shift.num is exist - process it [17:48:22]requested_item shift.opened is exist - process it [17:48:22]req_shift_opened [17:48:22]FM_GetShiftState [17:48:22]SAM_PROTO_GetShiftState [17:48:22]wFMCommunicate request_size=4 [17:48:22]MH_SAM_APDU [17:48:22]CAPDU: 80 13 01 00 [17:48:22]Write to MH i2c: E2 08 00 EF 09 80 13 01 00 00 00 00 00 75 [17:48:22]Write i2c OK [17:48:22]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 0E 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 0E 00 EF 09 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BD [17:48:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:48:22]wFMCommunicate OK [17:48:22]SAM_PROTO_GetShiftState done [17:48:22]FM_GetShiftState done [17:48:22]req_shift_opened done [17:48:22]requested_item shift.open_date is exist - process it [17:48:22]req_shift_open_date [17:48:22]req_shift_open_date done [17:48:22]produce_requested_data done [17:48:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165785,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:48:22]process_action_free close_receipt [17:48:22]json_value_free [17:48:22]json_value_free done [17:48:22]process_json_proto returns [17:48:22]Send response to host [17:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165785,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:48:22]free response buf [17:48:22]execute_script done [17:48:22]execute_script returns [17:48:22]free content buf [17:48:22]Sock 7.Close socket [17:48:22]Sock 7.Thread stoped [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:48:56]accept exits with 9 [17:48:56]New connection [17:48:56]New thread 3066776932 created [17:48:56]Thread 3066920292 joined [17:48:56]Waiting for new connection... [17:48:56] Sock 9.Parse request [17:48:56]Sock 9.Check first char [17:48:56]Sock 9.First char is OK [17:48:56]request: POST /json_proto HTTP/1.0 [17:48:56]Method: POST [17:48:56]URL: /json_proto [17:48:56]Method is POST - this is cgi request [17:48:56]url: /json_proto [17:48:56]query_string will be loaded in cgi processing [17:48:56]execute_cgi json_proto POST (null) [17:48:56]execute_cgi path=json_proto method=POST [17:48:56]POST find Content-Length [17:48:56]Host: 172.17.53.195:8080 [17:48:56]Content-Length: 682 [17:48:56]Content-Type: application/json [17:48:56] [17:48:56]POST finish read [17:48:56]Found Content-Length = 682 [17:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:56]execute_script... [17:48:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:56]POST & json_proto [17:48:56]process_json_proto [17:48:56]json parsed OK: [17:48:56]protocol is kg_v1.0 [17:48:56]action value=close_receipt [17:48:56]process_action close_receipt [17:48:56]cmd_close_receipt [17:48:56]MH_GetDate [17:48:56]Write to MH i2c: F0 00 00 F0 09 E8 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: F0 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: F0 09 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: F0 09 00 F0 09 00 96 42 15 67 21 48 4A 65 5D [17:48:56]GetLastDocTimeStamp 1729446512 [17:48:56]current date 1729446550 [17:48:56]FM_GetShiftState [17:48:56]SAM_PROTO_GetShiftState [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 13 01 00 [17:48:56]Write to MH i2c: E2 08 00 F1 09 80 13 01 00 00 00 00 00 77 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 0E 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 0E 00 F1 09 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BF [17:48:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:48:56]wFMCommunicate OK [17:48:56]SAM_PROTO_GetShiftState done [17:48:56]FM_GetShiftState done [17:48:56]opened in 1729384561 [17:48:56]opened+sec_in_day 1729470961 [17:48:56]quantity*price = 100015 [17:48:56]sum+1 = 100017 [17:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 268 20.10.2024 17:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165786 ФПД: 145462558375898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174910&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165786&fm=145462558375898&tin=02508201610067®Number=0000000000091764&sum=100000 [17:48:57]StoreToDocumentArchive [17:48:57]shift 534 fd 165786 [17:48:57]save to /storage/0534/doc_00165786 [17:48:57]save last doc name /storage/0534/doc_00165786 to /storage/kkm_last_doc_name [17:48:57]save OK [17:48:57]Clear old archive folders... [17:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:57]tlvbuf is 01A0A580 [17:48:57]SAM_PROTO_ClearQueue [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 09 00 00 [17:48:57]Write to MH i2c: E2 08 00 FE 09 80 09 00 00 00 00 00 00 79 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 03 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [17:48:57]RAPDU: 90 00 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_ClearQueue done [17:48:57]KKMCreateOFDPacket [17:48:57]OFDProtocolAddRootSTLVToBuf [17:48:57]FM_MakeSignedData [17:48:57]FM_MakeSignedData [17:48:57]SAM_PROTO_SignData [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 0D 01 02 [17:48:57]Write to MH i2c: E2 08 00 FF 09 80 0D 01 02 00 00 00 00 81 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 03 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [17:48:57]RAPDU: 90 00 [17:48:57]wFMCommunicate OK [17:48:57]wFMCommunicate request_size=255 [17:48:57]MH_SAM_APDU [17:48: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 96 42 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 87 02 00 35 04 06 00 84 [17:48:57]Write to MH i2c: E2 02 01 00 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 96 42 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 87 02 00 35 04 06 00 84 00 00 32 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [17:48:58]RAPDU: 90 00 [17:48:58]wFMCommunicate OK [17:48:58]wFMCommunicate request_size=10 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 0D 02 02 05 4C 24 1E BF DA [17:48:58]Write to MH i2c: E2 0D 00 01 0A 80 0D 02 02 05 00 4C 24 1E BF DA 00 00 B6 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 01 0A 00 90 00 7F [17:48:58]RAPDU: 90 00 [17:48:58]wFMCommunicate OK [17:48:58]wFMCommunicate request_size=4 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 0D 03 02 [17:48:58]Write to MH i2c: E2 08 00 02 0A 80 0D 03 02 00 00 00 00 87 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 0B 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 0B 00 02 0A 00 50 E0 04 5B 87 98 A5 7A 90 00 55 [17:48:58]RAPDU: 50 E0 04 5B 87 98 A5 7A 90 00 [17:48:58]wFMCommunicate OK [17:48:58]SAM_PROTO_SignData done [17:48:58]FM_MakeSignedData done [17:48:58]CreateOFDProtocolMessage [17:48:58]wFMCommunicate request_size=4 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 11 00 00 [17:48:58]Write to MH i2c: E2 08 00 03 0A 80 11 00 00 00 00 00 00 87 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 17 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 17 00 03 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [17:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:48:58]wFMCommunicate OK [17:48:58]CreateOFDProtocolMessage done [17:48:58]OFDSenderStorePacket 165786 [17:48:58]StoreOFDPacket docnum=165786 [17:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 19 07 01 E1 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 96 42 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 87 02 00 35 04 06 00 84 4C 24 1E BF DA 50 E0 04 5B 87 98 A5 7A [17:48:58]CheckFolder [17:48:58]dirname=/storage/ofd_packets [17:48:58]CheckFolder done [17:48:58]ProducePacketName [17:48:58]name=ofd_packets/00165786 [17:48:58]NVStorageSaveData ofd_packets/00165786 [17:48:58]File name is /storage/ofd_packets/00165786 [17:48:58]Write 301 bytes [17:48:58]NVStorageSaveData done [17:48:58]OFDSenderStorePacket done [17:48:58]KKMCreateOFDPacket done [17:48:58]NVStorageSaveData kkm_last_timestamp [17:48:58]File name is /storage/kkm_last_timestamp [17:48:58]Write 4 bytes [17:48:58]NVStorageSaveData done [17:48:58]ExternCall_PrintAddStr [17:48:58]wPrintStart [17:48:58]Write to MH i2c: 01 00 00 04 0A 0E [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: 01 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: 01 07 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 FF 0F 23 [17:48:58]RasterBufferAndPrint [17:48:58]line Счет N : (1)220354 [17:48:58]line ИНН: 02508201610067 [17:48:58]line Контрольно-Кассовый Чек [17:48:58]line ПРОДАЖА [17:48:58]line ТРК (МРК, ГНК) : 33 [17:48:58]line Товар: 2710124130 [17:48:58]line Аи-92-К-5 [17:48:58]line 14.950 * 66.90 [17:48:58]line = 1000.16 [17:48:58]line НДС 12% НСП 1% [17:48:58]line > о реализуемом товаре [17:48:58]line ОКРУГЛЕНИЕ: -0.16 [17:48:58]line ИТОГО: 1000.00 [17:48:58]line Внесено: 1000.00 [17:48:58]line СДАЧА: 0.00 [17:48:58]line НСП 1% : 8.85 [17:48:58]line НДС 12% : 106.21 [17:48:58]line Наличными: 1000.00 [17:48:58]line Безнал.: 0.00 [17:48:58]line Место: АЗС № 161 "Партнер Нефть" [17:48:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:48:58]line СНО: Общий режим [17:48:58]line Чек 268 20.10.2024 17:49 [17:48:58]line Смена: 534 ФФД: 1.0 [17:48:58]line ЗНМ: 0300000104 [17:48:58]line РНМ: 0000000000091764 [17:48:58]line Версия ККМ: 001 [17:48:58]line ФМ: 0000000000871759 [17:48:58]line ФД: 165786 [17:48:58]line ФПД: 145462558375898 [17:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174910&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165786&fm=145462558375898&tin=02508201610067®Number=0000000000091764&sum=100000 [17:48:58]OFD Sender: Processing packet 165786 [packets to send 48, broken 47] [17:48:58]ProducePacketName [17:48:58]name=ofd_packets/00165786 [17:48:58]OFD Sender: To server: pG, [17:48:58]CommunicateWithHost lk.salyk.kg:30040 [17:48:58]ConnectInit lk.salyk.kg [17:48:58]written 0, free lines is 4095 [17:48:58]Connected sock=10 [17:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 19 07 01 E1 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 96 42 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 87 02 00 35 04 06 00 84 4C 24 1E BF DA 50 E0 04 5B 87 98 A5 7A [17:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 02 47 00 C8 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 31 37 35 39 10 04 04 00 9A 87 02 00 F4 03 04 00 07 E9 14 67 B6 04 01 00 00 0D 57 4B DB C3 24 16 D7 [17:48:58]CommunicateWithHost err = 0 [17:48:58]CheckOFDResponse [17:48:58]1017 (14) - 77093643461234 [17:48:58]1041 (16) - 0000000000871759 [17:48:58]1040 (4) - 165786 [17:48:58]1012 (4) - 20.10.2024 11:27 [17:48:58]1206 (1) - 0 [17:48:58]OFD Sender: Remove packet 165786 [17:48:58]ProducePacketName [17:48:58]name=ofd_packets/00165786 [17:48:58]NVStorageDeleteData [17:48:59]Write to MH i2c: 01 00 00 2F 0A 39 [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 07 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 BC 0C 08 [17:48:59]RasterBufferAndPrint [17:48:59]line [17:48:59]line [17:48:59]line [17:48:59]line [17:48:59]line [17:48:59]written 0, free lines is 3267 [17:48:59]MH_Cut [17:48:59]Write to MH i2c: D1 01 00 36 0A 01 12 [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: D1 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: D1 01 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: D1 01 00 36 0A 00 11 [17:48:59]Write to MH i2c: 01 00 00 37 0A 41 [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]OFD Sender: No OFD packet to send [17:48:59]*** Cut start [17:48:59]*** Partial cut [17:48:59]*** CUTSNS_PIN = 1 [17:48:59]*** CUTSNS_PIN = 0 [17:49:00]*** Brake cut motor [17:49:00]Read from MH i2c: 01 [17:49:00]MH_I2C_Read... [17:49:00]*** Stop cut motor [17:49:00]*** Cut end [17:49:00]Read from MH i2c: 01 07 00 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: 01 07 00 37 0A 00 00 00 00 00 FF 0F 56 [17:49:00]process_action close_receipt done [17:49:00]requested_data is exist [17:49:00]produce_requested_data [17:49:00]requested_item fm.sn is exist - process it [17:49:00]wFMCommunicate request_size=4 [17:49:00]MH_SAM_APDU [17:49:00]CAPDU: 80 11 00 00 [17:49:00]Write to MH i2c: E2 08 00 38 0A 80 11 00 00 00 00 00 00 BC [17:49:00]Write i2c OK [17:49:00]MH_I2C_Read... [17:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:00]Read from MH i2c: E2 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 17 00 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 17 00 38 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 14 [17:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:49:00]wFMCommunicate OK [17:49:00]requested_item fd.num is exist - process it [17:49:00]SAM_PROTO_GetFieldsCounters [17:49:00]wFMCommunicate request_size=4 [17:49:00]MH_SAM_APDU [17:49:00]CAPDU: 80 13 00 00 [17:49:00]Write to MH i2c: E2 08 00 39 0A 80 13 00 00 00 00 00 00 BF [17:49:00]Write i2c OK [17:49:00]MH_I2C_Read... [17:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:00]Read from MH i2c: E2 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 62 00 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 62 00 39 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 87 02 00 0E 04 04 00 16 02 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 49 [17:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 87 02 00 0E 04 04 00 16 02 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 [17:49:00]wFMCommunicate OK [17:49:00]SAM_PROTO_GetFieldsCounters done [17:49:00]requested_item shift.num is exist - process it [17:49:00]requested_item shift.opened is exist - process it [17:49:00]req_shift_opened [17:49:00]FM_GetShiftState [17:49:00]SAM_PROTO_GetShiftState [17:49:00]wFMCommunicate request_size=4 [17:49:00]MH_SAM_APDU [17:49:00]CAPDU: 80 13 01 00 [17:49:00]Write to MH i2c: E2 08 00 3A 0A 80 13 01 00 00 00 00 00 C1 [17:49:00]Write i2c OK [17:49:00]MH_I2C_Read... [17:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:00]Read from MH i2c: E2 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 0E 00 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 0E 00 3A 0A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 09 [17:49:00]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:49:00]wFMCommunicate OK [17:49:00]SAM_PROTO_GetShiftState done [17:49:00]FM_GetShiftState done [17:49:00]req_shift_opened done [17:49:00]requested_item shift.open_date is exist - process it [17:49:00]req_shift_open_date [17:49:00]req_shift_open_date done [17:49:00]produce_requested_data done [17:49:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165786,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:49:00]process_action_free close_receipt [17:49:00]json_value_free [17:49:00]json_value_free done [17:49:00]process_json_proto returns [17:49:00]Send response to host [17:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165786,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:49:00]free response buf [17:49:00]execute_script done [17:49:00]execute_script returns [17:49:00]free content buf [17:49:00]Sock 9.Close socket [17:49:00]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:51]accept exits with 7 [17:50:51]New connection [17:50:51]New thread 3066920292 created [17:50:51]Thread 3066776932 joined [17:50:51]Waiting for new connection... [17:50:51] Sock 7.Parse request [17:50:51]Sock 7.Check first char [17:50:51]Sock 7.First char is OK [17:50:51]request: POST /json_proto HTTP/1.0 [17:50:51]Method: POST [17:50:51]URL: /json_proto [17:50:51]Method is POST - this is cgi request [17:50:51]url: /json_proto [17:50:51]query_string will be loaded in cgi processing [17:50:51]execute_cgi json_proto POST (null) [17:50:51]execute_cgi path=json_proto method=POST [17:50:51]POST find Content-Length [17:50:51]Host: 172.17.53.195:8080 [17:50:51]Content-Length: 682 [17:50:51]Content-Type: application/json [17:50:51] [17:50:51]POST finish read [17:50:51]Found Content-Length = 682 [17:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:51]execute_script... [17:50: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)220355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:51]POST & json_proto [17:50:51]process_json_proto [17:50:51]json parsed OK: [17:50:51]protocol is kg_v1.0 [17:50:51]action value=close_receipt [17:50:51]process_action close_receipt [17:50:51]cmd_close_receipt [17:50:51]MH_GetDate [17:50:51]Write to MH i2c: F0 00 00 3B 0A 34 [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: F0 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: F0 09 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: F0 09 00 3B 0A 00 08 43 15 67 21 48 4A 65 1C [17:50:51]GetLastDocTimeStamp 1729446550 [17:50:51]current date 1729446664 [17:50:51]FM_GetShiftState [17:50:51]SAM_PROTO_GetShiftState [17:50:51]wFMCommunicate request_size=4 [17:50:51]MH_SAM_APDU [17:50:51]CAPDU: 80 13 01 00 [17:50:51]Write to MH i2c: E2 08 00 3C 0A 80 13 01 00 00 00 00 00 C3 [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:51]Read from MH i2c: E2 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 0E 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 0E 00 3C 0A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0B [17:50:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:50:51]wFMCommunicate OK [17:50:51]SAM_PROTO_GetShiftState done [17:50:51]FM_GetShiftState done [17:50:51]opened in 1729384561 [17:50:51]opened+sec_in_day 1729470961 [17:50:51]quantity*price = 100015 [17:50:51]sum+1 = 100017 [17:50: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 269 20.10.2024 17:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165787 ФПД: 176097613659402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175105&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165787&fm=176097613659402&tin=02508201610067®Number=0000000000091764&sum=100000 [17:50:52]StoreToDocumentArchive [17:50:52]shift 534 fd 165787 [17:50:52]save to /storage/0534/doc_00165787 [17:50:52]save last doc name /storage/0534/doc_00165787 to /storage/kkm_last_doc_name [17:50:52]save OK [17:50:52]Clear old archive folders... [17:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:52]tlvbuf is 018B0110 [17:50:52]SAM_PROTO_ClearQueue [17:50:52]wFMCommunicate request_size=4 [17:50:52]MH_SAM_APDU [17:50:52]CAPDU: 80 09 00 00 [17:50:52]Write to MH i2c: E2 08 00 49 0A 80 09 00 00 00 00 00 00 C5 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:52]Read from MH i2c: E2 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 03 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 03 00 49 0A 00 90 00 C7 [17:50:52]RAPDU: 90 00 [17:50:52]wFMCommunicate OK [17:50:52]SAM_PROTO_ClearQueue done [17:50:52]KKMCreateOFDPacket [17:50:52]OFDProtocolAddRootSTLVToBuf [17:50:52]FM_MakeSignedData [17:50:52]FM_MakeSignedData [17:50:52]SAM_PROTO_SignData [17:50:52]wFMCommunicate request_size=4 [17:50:52]MH_SAM_APDU [17:50:52]CAPDU: 80 0D 01 02 [17:50:52]Write to MH i2c: E2 08 00 4A 0A 80 0D 01 02 00 00 00 00 CD [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:52]Read from MH i2c: E2 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 03 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [17:50:52]RAPDU: 90 00 [17:50:52]wFMCommunicate OK [17:50:52]wFMCommunicate request_size=255 [17:50:52]MH_SAM_APDU [17:50: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 09 43 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 87 02 00 35 04 06 00 A0 [17:50:52]Write to MH i2c: E2 02 01 4B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 09 43 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 87 02 00 35 04 06 00 A0 00 00 0F [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 [17:50:52]MH_I2C_Read... [17:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:52]Read from MH i2c: E2 03 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [17:50:52]RAPDU: 90 00 [17:50:52]wFMCommunicate OK [17:50:52]wFMCommunicate request_size=10 [17:50:52]MH_SAM_APDU [17:50:52]CAPDU: 80 0D 02 02 05 28 EB B5 3D 0A [17:50:52]Write to MH i2c: E2 0D 00 4C 0A 80 0D 02 02 05 00 28 EB B5 3D 0A 00 00 E9 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:52]Read from MH i2c: E2 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 03 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [17:50:52]RAPDU: 90 00 [17:50:52]wFMCommunicate OK [17:50:52]wFMCommunicate request_size=4 [17:50:52]MH_SAM_APDU [17:50:52]CAPDU: 80 0D 03 02 [17:50:52]Write to MH i2c: E2 08 00 4D 0A 80 0D 03 02 00 00 00 00 D2 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0B 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0B 00 4D 0A 00 61 7C C4 C6 5F EE A3 90 90 00 BA [17:50:53]RAPDU: 61 7C C4 C6 5F EE A3 90 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_SignData done [17:50:53]FM_MakeSignedData done [17:50:53]CreateOFDProtocolMessage [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 11 00 00 [17:50:53]Write to MH i2c: E2 08 00 4E 0A 80 11 00 00 00 00 00 00 D2 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 17 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 17 00 4E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2A [17:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:50:53]wFMCommunicate OK [17:50:53]CreateOFDProtocolMessage done [17:50:53]OFDSenderStorePacket 165787 [17:50:53]StoreOFDPacket docnum=165787 [17:50:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F AE 07 01 98 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 09 43 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 87 02 00 35 04 06 00 A0 28 EB B5 3D 0A 61 7C C4 C6 5F EE A3 90 [17:50:53]CheckFolder [17:50:53]dirname=/storage/ofd_packets [17:50:53]CheckFolder done [17:50:53]ProducePacketName [17:50:53]name=ofd_packets/00165787 [17:50:53]NVStorageSaveData ofd_packets/00165787 [17:50:53]File name is /storage/ofd_packets/00165787 [17:50:53]Write 301 bytes [17:50:53]NVStorageSaveData done [17:50:53]OFDSenderStorePacket done [17:50:53]KKMCreateOFDPacket done [17:50:53]NVStorageSaveData kkm_last_timestamp [17:50:53]File name is /storage/kkm_last_timestamp [17:50:53]Write 4 bytes [17:50:53]NVStorageSaveData done [17:50:53]ExternCall_PrintAddStr [17:50:53]wPrintStart [17:50:53]Write to MH i2c: 01 00 00 4F 0A 59 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 07 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 07 00 4F 0A 00 00 00 00 00 FF 0F 6E [17:50:53]RasterBufferAndPrint [17:50:53]line Счет N : (1)220355 [17:50:53]line ИНН: 02508201610067 [17:50:53]line Контрольно-Кассовый Чек [17:50:53]line ПРОДАЖА [17:50:53]line ТРК (МРК, ГНК) : 23 [17:50:53]line Товар: 2710124130 [17:50:53]line Аи-92-К-5 [17:50:53]line 14.950 * 66.90 [17:50:53]line = 1000.16 [17:50:53]line НДС 12% НСП 1% [17:50:53]line > о реализуемом товаре [17:50:53]line ОКРУГЛЕНИЕ: -0.16 [17:50:53]line ИТОГО: 1000.00 [17:50:53]line Внесено: 1000.00 [17:50:53]line СДАЧА: 0.00 [17:50:53]line НСП 1% : 8.85 [17:50:53]line НДС 12% : 106.21 [17:50:53]line Наличными: 1000.00 [17:50:53]line Безнал.: 0.00 [17:50:53]line Место: АЗС № 161 "Партнер Нефть" [17:50:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:50:53]line СНО: Общий режим [17:50:53]line Чек 269 20.10.2024 17:51 [17:50:53]line Смена: 534 ФФД: 1.0 [17:50:53]line ЗНМ: 0300000104 [17:50:53]line РНМ: 0000000000091764 [17:50:53]line Версия ККМ: 001 [17:50:53]line ФМ: 0000000000871759 [17:50:53]line ФД: 165787 [17:50:53]line ФПД: 176097613659402 [17:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175105&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165787&fm=176097613659402&tin=02508201610067®Number=0000000000091764&sum=100000 [17:50:53]OFD Sender: Processing packet 165787 [packets to send 48, broken 47] [17:50:53]ProducePacketName [17:50:53]name=ofd_packets/00165787 [17:50:53]OFD Sender: To server: pG, [17:50:53]CommunicateWithHost lk.salyk.kg:30040 [17:50:53]ConnectInit lk.salyk.kg [17:50:53]written 0, free lines is 4095 [17:50:53]Connected sock=10 [17:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F AE 07 01 98 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 09 43 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 87 02 00 35 04 06 00 A0 28 EB B5 3D 0A 61 7C C4 C6 5F EE A3 90 [17:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 56 0F 47 00 30 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 31 37 35 39 10 04 04 00 9B 87 02 00 F4 03 04 00 7A E9 14 67 B6 04 01 00 00 A5 A4 44 AD C6 52 3A 62 [17:50:53]CommunicateWithHost err = 0 [17:50:53]CheckOFDResponse [17:50:53]1017 (14) - 77093643461234 [17:50:53]1041 (16) - 0000000000871759 [17:50:53]1040 (4) - 165787 [17:50:53]1012 (4) - 20.10.2024 11:28 [17:50:53]1206 (1) - 0 [17:50:53]OFD Sender: Remove packet 165787 [17:50:53]ProducePacketName [17:50:53]name=ofd_packets/00165787 [17:50:53]NVStorageDeleteData [17:50:53]Write to MH i2c: 01 00 00 7A 0A 84 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 07 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 07 00 7A 0A 00 00 00 00 00 C0 0C 57 [17:50:53]RasterBufferAndPrint [17:50:53]line [17:50:53]line [17:50:53]line [17:50:53]line [17:50:53]line [17:50:53]written 0, free lines is 3269 [17:50:53]MH_Cut [17:50:53]Write to MH i2c: D1 01 00 81 0A 01 5D [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: D1 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: D1 01 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: D1 01 00 81 0A 00 5C [17:50:53]Write to MH i2c: 01 00 00 82 0A 8C [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:54]OFD Sender: No OFD packet to send [17:50:54]*** Cut start [17:50:54]*** Partial cut [17:50:54]*** CUTSNS_PIN = 1 [17:50:54]*** CUTSNS_PIN = 0 [17:50:54]*** Brake cut motor [17:50:55]Read from MH i2c: 01 [17:50:55]MH_I2C_Read... [17:50:55]*** Stop cut motor [17:50:55]*** Cut end [17:50:55]Read from MH i2c: 01 07 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: 01 07 00 82 0A 00 00 00 00 00 FF 0F A1 [17:50:55]process_action close_receipt done [17:50:55]requested_data is exist [17:50:55]produce_requested_data [17:50:55]requested_item fm.sn is exist - process it [17:50:55]wFMCommunicate request_size=4 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 11 00 00 [17:50:55]Write to MH i2c: E2 08 00 83 0A 80 11 00 00 00 00 00 00 07 [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 17 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 17 00 83 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5F [17:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:50:55]wFMCommunicate OK [17:50:55]requested_item fd.num is exist - process it [17:50:55]SAM_PROTO_GetFieldsCounters [17:50:55]wFMCommunicate request_size=4 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 13 00 00 [17:50:55]Write to MH i2c: E2 08 00 84 0A 80 13 00 00 00 00 00 00 0A [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 62 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 62 00 84 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 87 02 00 0E 04 04 00 16 02 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 98 [17:50: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 87 02 00 0E 04 04 00 16 02 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 [17:50:55]wFMCommunicate OK [17:50:55]SAM_PROTO_GetFieldsCounters done [17:50:55]requested_item shift.num is exist - process it [17:50:55]requested_item shift.opened is exist - process it [17:50:55]req_shift_opened [17:50:55]FM_GetShiftState [17:50:55]SAM_PROTO_GetShiftState [17:50:55]wFMCommunicate request_size=4 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 13 01 00 [17:50:55]Write to MH i2c: E2 08 00 85 0A 80 13 01 00 00 00 00 00 0C [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 0E 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 0E 00 85 0A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 54 [17:50:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:50:55]wFMCommunicate OK [17:50:55]SAM_PROTO_GetShiftState done [17:50:55]FM_GetShiftState done [17:50:55]req_shift_opened done [17:50:55]requested_item shift.open_date is exist - process it [17:50:55]req_shift_open_date [17:50:55]req_shift_open_date done [17:50:55]produce_requested_data done [17:50:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165787,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:50:55]process_action_free close_receipt [17:50:55]json_value_free [17:50:55]json_value_free done [17:50:55]process_json_proto returns [17:50:55]Send response to host [17:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165787,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:50:55]free response buf [17:50:55]execute_script done [17:50:55]execute_script returns [17:50:55]free content buf [17:50:55]Sock 7.Close socket [17:50:55]Sock 7.Thread stoped [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]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:40]accept exits with 9 [17:52:40]New connection [17:52:40]New thread 3066776932 created [17:52:40]Thread 3066920292 joined [17:52:40]Waiting for new connection... [17:52:40] Sock 9.Parse request [17:52:40]Sock 9.Check first char [17:52:40]Sock 9.First char is OK [17:52:40]request: POST /json_proto HTTP/1.0 [17:52:40]Method: POST [17:52:40]URL: /json_proto [17:52:40]Method is POST - this is cgi request [17:52:40]url: /json_proto [17:52:40]query_string will be loaded in cgi processing [17:52:40]execute_cgi json_proto POST (null) [17:52:40]execute_cgi path=json_proto method=POST [17:52:40]POST find Content-Length [17:52:40]Host: 172.17.53.195:8080 [17:52:40]Content-Length: 677 [17:52:40]Content-Type: application/json [17:52:40] [17:52:40]POST finish read [17:52:40]Found Content-Length = 677 [17:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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:40]execute_script... [17:52: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)220356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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:40]POST & json_proto [17:52:40]process_json_proto [17:52:40]json parsed OK: [17:52:40]protocol is kg_v1.0 [17:52:40]action value=close_receipt [17:52:40]process_action close_receipt [17:52:40]cmd_close_receipt [17:52:40]MH_GetDate [17:52:40]Write to MH i2c: F0 00 00 86 0A 7F [17:52:40]Write i2c OK [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: F0 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: F0 09 00 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: F0 09 00 86 0A 00 75 43 15 67 21 48 4A 65 D4 [17:52:40]GetLastDocTimeStamp 1729446665 [17:52:40]current date 1729446773 [17:52:40]FM_GetShiftState [17:52:40]SAM_PROTO_GetShiftState [17:52:40]wFMCommunicate request_size=4 [17:52:40]MH_SAM_APDU [17:52:40]CAPDU: 80 13 01 00 [17:52:40]Write to MH i2c: E2 08 00 87 0A 80 13 01 00 00 00 00 00 0E [17:52:40]Write i2c OK [17:52:40]MH_I2C_Read... [17:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:40]Read from MH i2c: E2 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: E2 0E 00 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: E2 0E 00 87 0A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 56 [17:52:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:52:40]wFMCommunicate OK [17:52:40]SAM_PROTO_GetShiftState done [17:52:40]FM_GetShiftState done [17:52:40]opened in 1729384561 [17:52:40]opened+sec_in_day 1729470961 [17:52:40]quantity*price = 30051 [17:52:40]sum+1 = 30052 [17:52:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 270 20.10.2024 17:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165788 ФПД: 260227884976526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175254&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165788&fm=260227884976526&tin=02508201610067®Number=0000000000091764&sum=30000 [17:52:41]StoreToDocumentArchive [17:52:41]shift 534 fd 165788 [17:52:41]save to /storage/0534/doc_00165788 [17:52:41]save last doc name /storage/0534/doc_00165788 to /storage/kkm_last_doc_name [17:52:41]save OK [17:52:41]Clear old archive folders... [17:52:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:41]tlvbuf is 01599860 [17:52:41]SAM_PROTO_ClearQueue [17:52:41]wFMCommunicate request_size=4 [17:52:41]MH_SAM_APDU [17:52:41]CAPDU: 80 09 00 00 [17:52:41]Write to MH i2c: E2 08 00 94 0A 80 09 00 00 00 00 00 00 10 [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:41]Read from MH i2c: E2 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 03 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 03 00 94 0A 00 90 00 12 [17:52:41]RAPDU: 90 00 [17:52:41]wFMCommunicate OK [17:52:41]SAM_PROTO_ClearQueue done [17:52:41]KKMCreateOFDPacket [17:52:41]OFDProtocolAddRootSTLVToBuf [17:52:41]FM_MakeSignedData [17:52:41]FM_MakeSignedData [17:52:41]SAM_PROTO_SignData [17:52:41]wFMCommunicate request_size=4 [17:52:41]MH_SAM_APDU [17:52:41]CAPDU: 80 0D 01 02 [17:52:41]Write to MH i2c: E2 08 00 95 0A 80 0D 01 02 00 00 00 00 18 [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:41]Read from MH i2c: E2 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 03 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [17:52:41]RAPDU: 90 00 [17:52:41]wFMCommunicate OK [17:52:41]wFMCommunicate request_size=255 [17:52:41]MH_SAM_APDU [17:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 0E 01 00 00 F4 03 04 00 76 43 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 87 02 00 35 04 06 00 EC [17:52:41]Write to MH i2c: E2 02 01 96 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 0E 01 00 00 F4 03 04 00 76 43 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 87 02 00 35 04 06 00 EC 00 00 43 [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:41]Read from MH i2c: E2 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 03 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [17:52:41]RAPDU: 90 00 [17:52:41]wFMCommunicate OK [17:52:41]wFMCommunicate request_size=10 [17:52:41]MH_SAM_APDU [17:52:41]CAPDU: 80 0D 02 02 05 AD 06 A5 09 8E [17:52:41]Write to MH i2c: E2 0D 00 97 0A 80 0D 02 02 05 00 AD 06 A5 09 8E 00 00 14 [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:41]Read from MH i2c: E2 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 03 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [17:52:41]RAPDU: 90 00 [17:52:41]wFMCommunicate OK [17:52:41]wFMCommunicate request_size=4 [17:52:41]MH_SAM_APDU [17:52:41]CAPDU: 80 0D 03 02 [17:52:41]Write to MH i2c: E2 08 00 98 0A 80 0D 03 02 00 00 00 00 1D [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:42]Read from MH i2c: E2 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: E2 0B 00 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: E2 0B 00 98 0A 00 5F D7 6C 42 51 DB 48 2B 90 00 A1 [17:52:42]RAPDU: 5F D7 6C 42 51 DB 48 2B 90 00 [17:52:42]wFMCommunicate OK [17:52:42]SAM_PROTO_SignData done [17:52:42]FM_MakeSignedData done [17:52:42]CreateOFDProtocolMessage [17:52:42]wFMCommunicate request_size=4 [17:52:42]MH_SAM_APDU [17:52:42]CAPDU: 80 11 00 00 [17:52:42]Write to MH i2c: E2 08 00 99 0A 80 11 00 00 00 00 00 00 1D [17:52:42]Write i2c OK [17:52:42]MH_I2C_Read... [17:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:42]Read from MH i2c: E2 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: E2 17 00 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: E2 17 00 99 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [17:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:52:42]wFMCommunicate OK [17:52:42]CreateOFDProtocolMessage done [17:52:42]OFDSenderStorePacket 165788 [17:52:42]StoreOFDPacket docnum=165788 [17:52:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 1A 07 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 0E 01 00 00 F4 03 04 00 76 43 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 87 02 00 35 04 06 00 EC AD 06 A5 09 8E 5F D7 6C 42 51 DB 48 2B [17:52:42]CheckFolder [17:52:42]dirname=/storage/ofd_packets [17:52:42]CheckFolder done [17:52:42]ProducePacketName [17:52:42]name=ofd_packets/00165788 [17:52:42]NVStorageSaveData ofd_packets/00165788 [17:52:42]File name is /storage/ofd_packets/00165788 [17:52:42]Write 301 bytes [17:52:42]NVStorageSaveData done [17:52:42]OFDSenderStorePacket done [17:52:42]KKMCreateOFDPacket done [17:52:42]NVStorageSaveData kkm_last_timestamp [17:52:42]File name is /storage/kkm_last_timestamp [17:52:42]Write 4 bytes [17:52:42]NVStorageSaveData done [17:52:42]ExternCall_PrintAddStr [17:52:42]wPrintStart [17:52:42]Write to MH i2c: 01 00 00 9A 0A A4 [17:52:42]Write i2c OK [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: 01 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: 01 07 00 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: 01 07 00 9A 0A 00 00 00 00 00 FF 0F B9 [17:52:42]RasterBufferAndPrint [17:52:42]line Счет N : (1)220356 [17:52:42]line ИНН: 02508201610067 [17:52:42]line Контрольно-Кассовый Чек [17:52:42]line ПРОДАЖА [17:52:42]line ТРК (МРК, ГНК) : 24 [17:52:42]line Товар: 2710124500 [17:52:42]line Аи-95-К-5 [17:52:42]line 4.050 * 74.20 [17:52:42]line = 300.51 [17:52:42]line НДС 12% НСП 1% [17:52:42]line > о реализуемом товаре [17:52:42]line ОКРУГЛЕНИЕ: -0.51 [17:52:42]line ИТОГО: 300.00 [17:52:42]line Внесено: 300.00 [17:52:42]line СДАЧА: 0.00 [17:52:42]line НСП 1% : 2.66 [17:52:42]line НДС 12% : 31.91 [17:52:42]line Наличными: 300.00 [17:52:42]line Безнал.: 0.00 [17:52:42]line Место: АЗС № 161 "Партнер Нефть" [17:52:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:52:42]line СНО: Общий режим [17:52:42]line Чек 270 20.10.2024 17:52 [17:52:42]line Смена: 534 ФФД: 1.0 [17:52:42]line ЗНМ: 0300000104 [17:52:42]line РНМ: 0000000000091764 [17:52:42]line Версия ККМ: 001 [17:52:42]line ФМ: 0000000000871759 [17:52:42]line ФД: 165788 [17:52:42]line ФПД: 260227884976526 [17:52:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175254&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165788&fm=260227884976526&tin=02508201610067®Number=0000000000091764&sum=30000 [17:52:42]OFD Sender: Processing packet 165788 [packets to send 48, broken 47] [17:52:42]ProducePacketName [17:52:42]name=ofd_packets/00165788 [17:52:42]OFD Sender: To server: pG, [17:52:42]CommunicateWithHost lk.salyk.kg:30040 [17:52:42]ConnectInit lk.salyk.kg [17:52:42]written 0, free lines is 4095 [17:52:42]Connected sock=11 [17:52:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 1A 07 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 0E 01 00 00 F4 03 04 00 76 43 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 87 02 00 35 04 06 00 EC AD 06 A5 09 8E 5F D7 6C 42 51 DB 48 2B [17:52:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4B 55 47 00 34 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 31 37 35 39 10 04 04 00 9C 87 02 00 F4 03 04 00 E7 E9 14 67 B6 04 01 00 00 67 F3 11 AE E9 72 11 43 [17:52:42]CommunicateWithHost err = 0 [17:52:42]CheckOFDResponse [17:52:42]1017 (14) - 77093643461234 [17:52:42]1041 (16) - 0000000000871759 [17:52:42]1040 (4) - 165788 [17:52:42]1012 (4) - 20.10.2024 11:30 [17:52:42]1206 (1) - 0 [17:52:42]OFD Sender: Remove packet 165788 [17:52:42]ProducePacketName [17:52:42]name=ofd_packets/00165788 [17:52:42]NVStorageDeleteData [17:52:42]Write to MH i2c: 01 00 00 C5 0A CF [17:52:42]Write i2c OK [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: 01 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: 01 07 00 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 C7 0C A9 [17:52:42]RasterBufferAndPrint [17:52:42]line [17:52:42]line [17:52:42]line [17:52:42]line [17:52:42]line [17:52:42]written 0, free lines is 3277 [17:52:42]MH_Cut [17:52:42]Write to MH i2c: D1 01 00 CC 0A 01 A8 [17:52:42]Write i2c OK [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: D1 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: D1 01 00 [17:52:42]MH_I2C_Read... [17:52:42]Read from MH i2c: D1 01 00 CC 0A 00 A7 [17:52:42]Write to MH i2c: 01 00 00 CD 0A D7 [17:52:42]Write i2c OK [17:52:42]MH_I2C_Read... [17:52:43]OFD Sender: No OFD packet to send [17:52:43]*** Cut start [17:52:43]*** Partial cut [17:52:43]*** CUTSNS_PIN = 1 [17:52:43]*** CUTSNS_PIN = 0 [17:52:43]*** Brake cut motor [17:52:44]Read from MH i2c: 01 [17:52:44]MH_I2C_Read... [17:52:44]*** Stop cut motor [17:52:44]*** Cut end [17:52:44]Read from MH i2c: 01 07 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 FF 0F EC [17:52:44]process_action close_receipt done [17:52:44]requested_data is exist [17:52:44]produce_requested_data [17:52:44]requested_item fm.sn is exist - process it [17:52:44]wFMCommunicate request_size=4 [17:52:44]MH_SAM_APDU [17:52:44]CAPDU: 80 11 00 00 [17:52:44]Write to MH i2c: E2 08 00 CE 0A 80 11 00 00 00 00 00 00 52 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:44]Read from MH i2c: E2 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: E2 17 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: E2 17 00 CE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [17:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:52:44]wFMCommunicate OK [17:52:44]requested_item fd.num is exist - process it [17:52:44]SAM_PROTO_GetFieldsCounters [17:52:44]wFMCommunicate request_size=4 [17:52:44]MH_SAM_APDU [17:52:44]CAPDU: 80 13 00 00 [17:52:44]Write to MH i2c: E2 08 00 CF 0A 80 13 00 00 00 00 00 00 55 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:44]Read from MH i2c: E2 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: E2 62 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: E2 62 00 CF 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 87 02 00 0E 04 04 00 16 02 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 E7 [17:52: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 87 02 00 0E 04 04 00 16 02 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 [17:52:44]wFMCommunicate OK [17:52:44]SAM_PROTO_GetFieldsCounters done [17:52:44]requested_item shift.num is exist - process it [17:52:44]requested_item shift.opened is exist - process it [17:52:44]req_shift_opened [17:52:44]FM_GetShiftState [17:52:44]SAM_PROTO_GetShiftState [17:52:44]wFMCommunicate request_size=4 [17:52:44]MH_SAM_APDU [17:52:44]CAPDU: 80 13 01 00 [17:52:44]Write to MH i2c: E2 08 00 D0 0A 80 13 01 00 00 00 00 00 57 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:44]Read from MH i2c: E2 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: E2 0E 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: E2 0E 00 D0 0A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9F [17:52:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:52:44]wFMCommunicate OK [17:52:44]SAM_PROTO_GetShiftState done [17:52:44]FM_GetShiftState done [17:52:44]req_shift_opened done [17:52:44]requested_item shift.open_date is exist - process it [17:52:44]req_shift_open_date [17:52:44]req_shift_open_date done [17:52:44]produce_requested_data done [17:52:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165788,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:52:44]process_action_free close_receipt [17:52:44]json_value_free [17:52:44]json_value_free done [17:52:44]process_json_proto returns [17:52:44]Send response to host [17:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165788,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:52:44]free response buf [17:52:44]execute_script done [17:52:44]execute_script returns [17:52:44]free content buf [17:52:44]Sock 9.Close socket [17:52:44]Sock 9.Thread stoped [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:46]accept exits with 7 [17:56:46]New connection [17:56:46]New thread 3066920292 created [17:56:46]Thread 3066776932 joined [17:56:46]Waiting for new connection... [17:56:46] Sock 7.Parse request [17:56:46]Sock 7.Check first char [17:56:46]Sock 7.First char is OK [17:56:46]request: POST /json_proto HTTP/1.0 [17:56:46]Method: POST [17:56:46]URL: /json_proto [17:56:46]Method is POST - this is cgi request [17:56:46]url: /json_proto [17:56:46]query_string will be loaded in cgi processing [17:56:46]execute_cgi json_proto POST (null) [17:56:46]execute_cgi path=json_proto method=POST [17:56:46]POST find Content-Length [17:56:46]Host: 172.17.53.195:8080 [17:56:46]Content-Length: 675 [17:56:46]Content-Type: application/json [17:56:46] [17:56:46]POST finish read [17:56:46]Found Content-Length = 675 [17:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220359", "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" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [17:56:46]execute_script... [17:56: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)220359", "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" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [17:56:46]POST & json_proto [17:56:46]process_json_proto [17:56:46]json parsed OK: [17:56:46]protocol is kg_v1.0 [17:56:46]action value=close_receipt [17:56:46]process_action close_receipt [17:56:46]cmd_close_receipt [17:56:46]MH_GetDate [17:56:46]Write to MH i2c: F0 00 00 D1 0A CA [17:56:46]Write i2c OK [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: F0 [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: F0 09 00 [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: F0 09 00 D1 0A 00 6B 44 15 67 21 48 4A 65 16 [17:56:46]GetLastDocTimeStamp 1729446774 [17:56:46]current date 1729447019 [17:56:46]FM_GetShiftState [17:56:46]SAM_PROTO_GetShiftState [17:56:46]wFMCommunicate request_size=4 [17:56:46]MH_SAM_APDU [17:56:46]CAPDU: 80 13 01 00 [17:56:46]Write to MH i2c: E2 08 00 D2 0A 80 13 01 00 00 00 00 00 59 [17:56:46]Write i2c OK [17:56:46]MH_I2C_Read... [17:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:46]Read from MH i2c: E2 [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: E2 0E 00 [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: E2 0E 00 D2 0A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A1 [17:56:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:56:46]wFMCommunicate OK [17:56:46]SAM_PROTO_GetShiftState done [17:56:46]FM_GetShiftState done [17:56:46]opened in 1729384561 [17:56:46]opened+sec_in_day 1729470961 [17:56:46]quantity*price = 80010 [17:56:46]sum+1 = 80011 [17:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 271 20.10.2024 17:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165789 ФПД: 87473653923883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165789&fm=87473653923883&tin=02508201610067®Number=0000000000091764&sum=80000 [17:56:47]StoreToDocumentArchive [17:56:47]shift 534 fd 165789 [17:56:47]save to /storage/0534/doc_00165789 [17:56:47]save last doc name /storage/0534/doc_00165789 to /storage/kkm_last_doc_name [17:56:47]save OK [17:56:47]Clear old archive folders... [17:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:56:47]tlvbuf is 018AFC80 [17:56:47]SAM_PROTO_ClearQueue [17:56:47]wFMCommunicate request_size=4 [17:56:47]MH_SAM_APDU [17:56:47]CAPDU: 80 09 00 00 [17:56:47]Write to MH i2c: E2 08 00 DF 0A 80 09 00 00 00 00 00 00 5B [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 03 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 03 00 DF 0A 00 90 00 5D [17:56:47]RAPDU: 90 00 [17:56:47]wFMCommunicate OK [17:56:47]SAM_PROTO_ClearQueue done [17:56:47]KKMCreateOFDPacket [17:56:47]OFDProtocolAddRootSTLVToBuf [17:56:47]FM_MakeSignedData [17:56:47]FM_MakeSignedData [17:56:47]SAM_PROTO_SignData [17:56:47]wFMCommunicate request_size=4 [17:56:47]MH_SAM_APDU [17:56:47]CAPDU: 80 0D 01 02 [17:56:47]Write to MH i2c: E2 08 00 E0 0A 80 0D 01 02 00 00 00 00 63 [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 03 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [17:56:47]RAPDU: 90 00 [17:56:47]wFMCommunicate OK [17:56:47]wFMCommunicate request_size=255 [17:56:47]MH_SAM_APDU [17:56: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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6B 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 87 02 00 35 04 06 00 4F 8E 8C 11 [17:56:47]Write to MH i2c: E2 02 01 E1 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6B 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 87 02 00 35 04 06 00 4F 8E 8C 11 00 00 15 [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 03 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [17:56:47]RAPDU: 90 00 [17:56:47]wFMCommunicate OK [17:56:47]wFMCommunicate request_size=7 [17:56:47]MH_SAM_APDU [17:56:47]CAPDU: 80 0D 02 02 02 C0 2B [17:56:47]Write to MH i2c: E2 0A 00 E2 0A 80 0D 02 02 02 00 C0 2B 00 00 55 [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 03 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [17:56:47]RAPDU: 90 00 [17:56:47]wFMCommunicate OK [17:56:47]wFMCommunicate request_size=4 [17:56:47]MH_SAM_APDU [17:56:47]CAPDU: 80 0D 03 02 [17:56:47]Write to MH i2c: E2 08 00 E3 0A 80 0D 03 02 00 00 00 00 68 [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 0B 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 0B 00 E3 0A 00 98 49 82 51 9A 6B 03 6A 90 00 8F [17:56:47]RAPDU: 98 49 82 51 9A 6B 03 6A 90 00 [17:56:47]wFMCommunicate OK [17:56:47]SAM_PROTO_SignData done [17:56:47]FM_MakeSignedData done [17:56:47]CreateOFDProtocolMessage [17:56:47]wFMCommunicate request_size=4 [17:56:47]MH_SAM_APDU [17:56:47]CAPDU: 80 11 00 00 [17:56:47]Write to MH i2c: E2 08 00 E4 0A 80 11 00 00 00 00 00 00 68 [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 17 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 17 00 E4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C0 [17:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:56:47]wFMCommunicate OK [17:56:47]CreateOFDProtocolMessage done [17:56:47]OFDSenderStorePacket 165789 [17:56:47]StoreOFDPacket docnum=165789 [17:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 98 79 04 01 FF 2E 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6B 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 87 02 00 35 04 06 00 4F 8E 8C 11 C0 2B 98 49 82 51 9A 6B 03 6A [17:56:47]CheckFolder [17:56:47]dirname=/storage/ofd_packets [17:56:47]CheckFolder done [17:56:47]ProducePacketName [17:56:47]name=ofd_packets/00165789 [17:56:47]NVStorageSaveData ofd_packets/00165789 [17:56:47]File name is /storage/ofd_packets/00165789 [17:56:47]Write 298 bytes [17:56:47]NVStorageSaveData done [17:56:47]OFDSenderStorePacket done [17:56:47]KKMCreateOFDPacket done [17:56:47]NVStorageSaveData kkm_last_timestamp [17:56:47]File name is /storage/kkm_last_timestamp [17:56:47]Write 4 bytes [17:56:47]NVStorageSaveData done [17:56:47]ExternCall_PrintAddStr [17:56:47]wPrintStart [17:56:47]Write to MH i2c: 01 00 00 E5 0A EF [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: 01 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: 01 07 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: 01 07 00 E5 0A 00 00 00 00 00 FF 0F 04 [17:56:47]RasterBufferAndPrint [17:56:47]line Счет N : (1)220359 [17:56:47]line ИНН: 02508201610067 [17:56:47]line Контрольно-Кассовый Чек [17:56:47]line ПРОДАЖА [17:56:47]line ТРК (МРК, ГНК) : 11 [17:56:47]line Товар: 2710194210 [17:56:47]line ДТ-К-5 [17:56:47]line 10.500 * 76.20 [17:56:47]line = 800.10 [17:56:47]line НДС 12% НСП 1% [17:56:47]line > о реализуемом товаре [17:56:47]line ОКРУГЛЕНИЕ: -0.10 [17:56:47]line ИТОГО: 800.00 [17:56:47]line Внесено: 800.00 [17:56:47]line СДАЧА: 0.00 [17:56:47]line НСП 1% : 7.08 [17:56:47]line НДС 12% : 84.97 [17:56:47]line Наличными: 800.00 [17:56:47]line Безнал.: 0.00 [17:56:47]line Место: АЗС № 161 "Партнер Нефть" [17:56:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:56:47]line СНО: Общий режим [17:56:47]line Чек 271 20.10.2024 17:56 [17:56:47]line Смена: 534 ФФД: 1.0 [17:56:47]line ЗНМ: 0300000104 [17:56:47]line РНМ: 0000000000091764 [17:56:47]line Версия ККМ: 001 [17:56:47]line ФМ: 0000000000871759 [17:56:47]line ФД: 165789 [17:56:47]line ФПД: 87473653923883 [17:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165789&fm=87473653923883&tin=02508201610067®Number=0000000000091764&sum=80000 [17:56:48]OFD Sender: Processing packet 165789 [packets to send 48, broken 47] [17:56:48]ProducePacketName [17:56:48]name=ofd_packets/00165789 [17:56:48]OFD Sender: To server: pG, [17:56:48]CommunicateWithHost lk.salyk.kg:30040 [17:56:48]ConnectInit lk.salyk.kg [17:56:48]written 0, free lines is 4095 [17:56:48]Connected sock=10 [17:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 98 79 04 01 FF 2E 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6B 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 87 02 00 35 04 06 00 4F 8E 8C 11 C0 2B 98 49 82 51 9A 6B 03 6A [17:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 56 4B 47 00 CC 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 87 02 00 F4 03 04 00 DC EA 14 67 B6 04 01 00 00 4D E8 8C 28 AA 31 BD 2D [17:56:48]CommunicateWithHost err = 0 [17:56:48]CheckOFDResponse [17:56:48]1017 (14) - 77093643461234 [17:56:48]1041 (16) - 0000000000871759 [17:56:48]1040 (4) - 165789 [17:56:48]1012 (4) - 20.10.2024 11:34 [17:56:48]1206 (1) - 0 [17:56:48]OFD Sender: Remove packet 165789 [17:56:48]ProducePacketName [17:56:48]name=ofd_packets/00165789 [17:56:48]NVStorageDeleteData [17:56:48]Write to MH i2c: 01 00 00 10 0B 1B [17:56:48]Write i2c OK [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: 01 [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: 01 07 00 [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 C9 0C F7 [17:56:48]RasterBufferAndPrint [17:56:48]line [17:56:48]line [17:56:48]line [17:56:48]line [17:56:48]line [17:56:48]written 0, free lines is 3279 [17:56:48]MH_Cut [17:56:48]Write to MH i2c: D1 01 00 17 0B 01 F4 [17:56:48]Write i2c OK [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: D1 [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: D1 01 00 [17:56:48]MH_I2C_Read... [17:56:48]Read from MH i2c: D1 01 00 17 0B 00 F3 [17:56:48]Write to MH i2c: 01 00 00 18 0B 23 [17:56:48]Write i2c OK [17:56:48]MH_I2C_Read... [17:56:48]OFD Sender: No OFD packet to send [17:56:49]*** Cut start [17:56:49]*** Partial cut [17:56:49]*** CUTSNS_PIN = 1 [17:56:49]*** CUTSNS_PIN = 0 [17:56:49]*** Brake cut motor [17:56:49]Read from MH i2c: 01 [17:56:49]MH_I2C_Read... [17:56:49]*** Stop cut motor [17:56:49]*** Cut end [17:56:49]Read from MH i2c: 01 07 00 [17:56:49]MH_I2C_Read... [17:56:49]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 FF 0F 38 [17:56:49]process_action close_receipt done [17:56:49]requested_data is exist [17:56:49]produce_requested_data [17:56:49]requested_item fm.sn is exist - process it [17:56:49]wFMCommunicate request_size=4 [17:56:49]MH_SAM_APDU [17:56:49]CAPDU: 80 11 00 00 [17:56:49]Write to MH i2c: E2 08 00 19 0B 80 11 00 00 00 00 00 00 9E [17:56:49]Write i2c OK [17:56:49]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 17 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 17 00 19 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F6 [17:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:56:50]wFMCommunicate OK [17:56:50]requested_item fd.num is exist - process it [17:56:50]SAM_PROTO_GetFieldsCounters [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 13 00 00 [17:56:50]Write to MH i2c: E2 08 00 1A 0B 80 13 00 00 00 00 00 00 A1 [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 62 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 62 00 1A 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 87 02 00 0E 04 04 00 16 02 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 37 [17:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 87 02 00 0E 04 04 00 16 02 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 [17:56:50]wFMCommunicate OK [17:56:50]SAM_PROTO_GetFieldsCounters done [17:56:50]requested_item shift.num is exist - process it [17:56:50]requested_item shift.opened is exist - process it [17:56:50]req_shift_opened [17:56:50]FM_GetShiftState [17:56:50]SAM_PROTO_GetShiftState [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 13 01 00 [17:56:50]Write to MH i2c: E2 08 00 1B 0B 80 13 01 00 00 00 00 00 A3 [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 0E 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 0E 00 1B 0B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EB [17:56:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:56:50]wFMCommunicate OK [17:56:50]SAM_PROTO_GetShiftState done [17:56:50]FM_GetShiftState done [17:56:50]req_shift_opened done [17:56:50]requested_item shift.open_date is exist - process it [17:56:50]req_shift_open_date [17:56:50]req_shift_open_date done [17:56:50]produce_requested_data done [17:56:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165789,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:56:50]process_action_free close_receipt [17:56:50]json_value_free [17:56:50]json_value_free done [17:56:50]process_json_proto returns [17:56:50]Send response to host [17:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165789,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:56:50]free response buf [17:56:50]execute_script done [17:56:50]execute_script returns [17:56:50]free content buf [17:56:50]Sock 7.Close socket [17:56:50]Sock 7.Thread stoped [17:56:50]accept exits with 9 [17:56:50]New connection [17:56:50]New thread 3066776932 created [17:56:50]Thread 3066920292 joined [17:56:50]Waiting for new connection... [17:56:50] Sock 9.Parse request [17:56:50]Sock 9.Check first char [17:56:50]Sock 9.First char is OK [17:56:50]request: POST /json_proto HTTP/1.0 [17:56:50]Method: POST [17:56:50]URL: /json_proto [17:56:50]Method is POST - this is cgi request [17:56:50]url: /json_proto [17:56:50]query_string will be loaded in cgi processing [17:56:50]execute_cgi json_proto POST (null) [17:56:50]execute_cgi path=json_proto method=POST [17:56:50]POST find Content-Length [17:56:50]Host: 172.17.53.195:8080 [17:56:50]Content-Length: 675 [17:56:50]Content-Type: application/json [17:56:50] [17:56:50]POST finish read [17:56:50]Found Content-Length = 675 [17:56:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220358", "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" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [17:56:50]execute_script... [17:56: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)220358", "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" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [17:56:50]POST & json_proto [17:56:50]process_json_proto [17:56:50]json parsed OK: [17:56:50]protocol is kg_v1.0 [17:56:50]action value=close_receipt [17:56:50]process_action close_receipt [17:56:50]cmd_close_receipt [17:56:50]MH_GetDate [17:56:50]Write to MH i2c: F0 00 00 1C 0B 16 [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: F0 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: F0 09 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: F0 09 00 1C 0B 00 70 44 15 67 21 48 4A 65 67 [17:56:50]GetLastDocTimeStamp 1729447019 [17:56:50]current date 1729447024 [17:56:50]FM_GetShiftState [17:56:50]SAM_PROTO_GetShiftState [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 13 01 00 [17:56:50]Write to MH i2c: E2 08 00 1D 0B 80 13 01 00 00 00 00 00 A5 [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 0E 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 0E 00 1D 0B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 ED [17:56:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:56:50]wFMCommunicate OK [17:56:50]SAM_PROTO_GetShiftState done [17:56:50]FM_GetShiftState done [17:56:50]opened in 1729384561 [17:56:50]opened+sec_in_day 1729470961 [17:56:50]quantity*price = 80010 [17:56:50]sum+1 = 80011 [17:56:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 272 20.10.2024 17:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165790 ФПД: 194589690837979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175704&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165790&fm=194589690837979&tin=02508201610067®Number=0000000000091764&sum=80000 [17:56:51]StoreToDocumentArchive [17:56:51]shift 534 fd 165790 [17:56:51]save to /storage/0534/doc_00165790 [17:56:51]save last doc name /storage/0534/doc_00165790 to /storage/kkm_last_doc_name [17:56:51]save OK [17:56:51]Clear old archive folders... [17:56:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:56:51]tlvbuf is 017000C0 [17:56:51]SAM_PROTO_ClearQueue [17:56:51]wFMCommunicate request_size=4 [17:56:51]MH_SAM_APDU [17:56:51]CAPDU: 80 09 00 00 [17:56:51]Write to MH i2c: E2 08 00 2A 0B 80 09 00 00 00 00 00 00 A7 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:51]Read from MH i2c: E2 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 03 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 03 00 2A 0B 00 90 00 A9 [17:56:51]RAPDU: 90 00 [17:56:51]wFMCommunicate OK [17:56:51]SAM_PROTO_ClearQueue done [17:56:51]KKMCreateOFDPacket [17:56:51]OFDProtocolAddRootSTLVToBuf [17:56:51]FM_MakeSignedData [17:56:51]FM_MakeSignedData [17:56:51]SAM_PROTO_SignData [17:56:51]wFMCommunicate request_size=4 [17:56:51]MH_SAM_APDU [17:56:51]CAPDU: 80 0D 01 02 [17:56:51]Write to MH i2c: E2 08 00 2B 0B 80 0D 01 02 00 00 00 00 AF [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [17:56:52]RAPDU: 90 00 [17:56:52]wFMCommunicate OK [17:56:52]wFMCommunicate request_size=255 [17:56:52]MH_SAM_APDU [17:56: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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 10 01 00 00 F4 03 04 00 70 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 87 02 00 35 04 06 00 B0 FA 71 66 [17:56:52]Write to MH i2c: E2 02 01 2C 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 10 01 00 00 F4 03 04 00 70 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 87 02 00 35 04 06 00 B0 FA 71 66 00 00 6F [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [17:56:52]RAPDU: 90 00 [17:56:52]wFMCommunicate OK [17:56:52]wFMCommunicate request_size=7 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 0D 02 02 02 3B DB [17:56:52]Write to MH i2c: E2 0A 00 2D 0B 80 0D 02 02 02 00 3B DB 00 00 CC [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:52]Read from MH i2c: E2 03 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [17:56:52]RAPDU: 90 00 [17:56:52]wFMCommunicate OK [17:56:52]wFMCommunicate request_size=4 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 0D 03 02 [17:56:52]Write to MH i2c: E2 08 00 2E 0B 80 0D 03 02 00 00 00 00 B4 [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 0B 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 0B 00 2E 0B 00 87 5F 53 C0 01 13 69 EB 90 00 16 [17:56:52]RAPDU: 87 5F 53 C0 01 13 69 EB 90 00 [17:56:52]wFMCommunicate OK [17:56:52]SAM_PROTO_SignData done [17:56:52]FM_MakeSignedData done [17:56:52]CreateOFDProtocolMessage [17:56:52]wFMCommunicate request_size=4 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 11 00 00 [17:56:52]Write to MH i2c: E2 08 00 2F 0B 80 11 00 00 00 00 00 00 B4 [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 17 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 17 00 2F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0C [17:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:56:52]wFMCommunicate OK [17:56:52]CreateOFDProtocolMessage done [17:56:52]OFDSenderStorePacket 165790 [17:56:52]StoreOFDPacket docnum=165790 [17:56:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 6C 04 01 49 C0 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 10 01 00 00 F4 03 04 00 70 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 87 02 00 35 04 06 00 B0 FA 71 66 3B DB 87 5F 53 C0 01 13 69 EB [17:56:52]CheckFolder [17:56:52]dirname=/storage/ofd_packets [17:56:52]CheckFolder done [17:56:52]ProducePacketName [17:56:52]name=ofd_packets/00165790 [17:56:52]NVStorageSaveData ofd_packets/00165790 [17:56:52]File name is /storage/ofd_packets/00165790 [17:56:52]Write 298 bytes [17:56:52]NVStorageSaveData done [17:56:52]OFDSenderStorePacket done [17:56:53]KKMCreateOFDPacket done [17:56:53]NVStorageSaveData kkm_last_timestamp [17:56:53]File name is /storage/kkm_last_timestamp [17:56:53]Write 4 bytes [17:56:53]NVStorageSaveData done [17:56:53]ExternCall_PrintAddStr [17:56:53]wPrintStart [17:56:53]Write to MH i2c: 01 00 00 30 0B 3B [17:56:53]OFD Sender: Processing packet 165790 [packets to send 48, broken 47] [17:56:53]ProducePacketName [17:56:53]name=ofd_packets/00165790 [17:56:53]OFD Sender: To server: pG, [17:56:53]CommunicateWithHost lk.salyk.kg:30040 [17:56:53]ConnectInit lk.salyk.kg [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 FF 0F 50 [17:56:53]RasterBufferAndPrint [17:56:53]line Счет N : (1)220358 [17:56:53]line ИНН: 02508201610067 [17:56:53]line Контрольно-Кассовый Чек [17:56:53]line ПРОДАЖА [17:56:53]line ТРК (МРК, ГНК) : 21 [17:56:53]line Товар: 2710194210 [17:56:53]line ДТ-К-5 [17:56:53]line 10.500 * 76.20 [17:56:53]line = 800.10 [17:56:53]line НДС 12% НСП 1% [17:56:53]line > о реализуемом товаре [17:56:53]line ОКРУГЛЕНИЕ: -0.10 [17:56:53]line ИТОГО: 800.00 [17:56:53]line Внесено: 800.00 [17:56:53]line СДАЧА: 0.00 [17:56:53]line НСП 1% : 7.08 [17:56:53]line НДС 12% : 84.97 [17:56:53]line Наличными: 800.00 [17:56:53]line Безнал.: 0.00 [17:56:53]line Место: АЗС № 161 "Партнер Нефть" [17:56:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:56:53]line СНО: Общий режим [17:56:53]line Чек 272 20.10.2024 17:57 [17:56:53]line Смена: 534 ФФД: 1.0 [17:56:53]line ЗНМ: 0300000104 [17:56:53]line РНМ: 0000000000091764 [17:56:53]line Версия ККМ: 001 [17:56:53]line ФМ: 0000000000871759 [17:56:53]line ФД: 165790 [17:56:53]line ФПД: 194589690837979 [17:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175704&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165790&fm=194589690837979&tin=02508201610067®Number=0000000000091764&sum=80000 [17:56:53]written 0, free lines is 4095 [17:56:53]Connected sock=10 [17:56:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 6C 04 01 49 C0 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 10 01 00 00 F4 03 04 00 70 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 87 02 00 35 04 06 00 B0 FA 71 66 3B DB 87 5F 53 C0 01 13 69 EB [17:56:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0E 6E 47 00 46 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 87 02 00 F4 03 04 00 E1 EA 14 67 B6 04 01 00 00 2A F3 12 E4 EB A8 B5 81 [17:56:53]CommunicateWithHost err = 0 [17:56:53]CheckOFDResponse [17:56:53]1017 (14) - 77093643461234 [17:56:53]1041 (16) - 0000000000871759 [17:56:53]1040 (4) - 165790 [17:56:53]1012 (4) - 20.10.2024 11:34 [17:56:53]1206 (1) - 0 [17:56:53]OFD Sender: Remove packet 165790 [17:56:53]ProducePacketName [17:56:53]name=ofd_packets/00165790 [17:56:53]NVStorageDeleteData [17:56:53]Write to MH i2c: 01 00 00 5B 0B 66 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 C1 0C 3A [17:56:53]RasterBufferAndPrint [17:56:53]line [17:56:53]line [17:56:53]line [17:56:53]line [17:56:53]line [17:56:53]written 0, free lines is 3280 [17:56:53]MH_Cut [17:56:53]Write to MH i2c: D1 01 00 62 0B 01 3F [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: D1 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: D1 01 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: D1 01 00 62 0B 00 3E [17:56:53]Write to MH i2c: 01 00 00 63 0B 6E [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]OFD Sender: No OFD packet to send [17:56:54]*** Cut start [17:56:54]*** Partial cut [17:56:54]*** CUTSNS_PIN = 1 [17:56:54]*** CUTSNS_PIN = 0 [17:56:54]*** Brake cut motor [17:56:54]Read from MH i2c: 01 [17:56:54]MH_I2C_Read... [17:56:54]*** Stop cut motor [17:56:54]*** Cut end [17:56:54]Read from MH i2c: 01 07 00 [17:56:54]MH_I2C_Read... [17:56:54]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 FF 0F 83 [17:56:54]process_action close_receipt done [17:56:54]requested_data is exist [17:56:54]produce_requested_data [17:56:54]requested_item fm.sn is exist - process it [17:56:54]wFMCommunicate request_size=4 [17:56:54]MH_SAM_APDU [17:56:54]CAPDU: 80 11 00 00 [17:56:54]Write to MH i2c: E2 08 00 64 0B 80 11 00 00 00 00 00 00 E9 [17:56:54]Write i2c OK [17:56:54]MH_I2C_Read... [17:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:55]Read from MH i2c: E2 [17:56:55]MH_I2C_Read... [17:56:55]Read from MH i2c: E2 17 00 [17:56:55]MH_I2C_Read... [17:56:55]Read from MH i2c: E2 17 00 64 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [17:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:56:55]wFMCommunicate OK [17:56:55]requested_item fd.num is exist - process it [17:56:55]SAM_PROTO_GetFieldsCounters [17:56:55]wFMCommunicate request_size=4 [17:56:55]MH_SAM_APDU [17:56:55]CAPDU: 80 13 00 00 [17:56:55]Write to MH i2c: E2 08 00 65 0B 80 13 00 00 00 00 00 00 EC [17:56:55]Write i2c OK [17:56:55]MH_I2C_Read... [17:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:55]Read from MH i2c: E2 [17:56:55]MH_I2C_Read... [17:56:55]Read from MH i2c: E2 62 00 [17:56:55]MH_I2C_Read... [17:56:55]Read from MH i2c: E2 62 00 65 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 87 02 00 0E 04 04 00 16 02 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 86 [17:56: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 87 02 00 0E 04 04 00 16 02 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 [17:56:55]wFMCommunicate OK [17:56:55]SAM_PROTO_GetFieldsCounters done [17:56:55]requested_item shift.num is exist - process it [17:56:55]requested_item shift.opened is exist - process it [17:56:55]req_shift_opened [17:56:55]FM_GetShiftState [17:56:55]SAM_PROTO_GetShiftState [17:56:55]wFMCommunicate request_size=4 [17:56:55]MH_SAM_APDU [17:56:55]CAPDU: 80 13 01 00 [17:56:55]Write to MH i2c: E2 08 00 66 0B 80 13 01 00 00 00 00 00 EE [17:56:55]Write i2c OK [17:56:55]MH_I2C_Read... [17:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:55]Read from MH i2c: E2 [17:56:55]MH_I2C_Read... [17:56:55]Read from MH i2c: E2 0E 00 [17:56:55]MH_I2C_Read... [17:56:55]Read from MH i2c: E2 0E 00 66 0B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 36 [17:56:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:56:55]wFMCommunicate OK [17:56:55]SAM_PROTO_GetShiftState done [17:56:55]FM_GetShiftState done [17:56:55]req_shift_opened done [17:56:55]requested_item shift.open_date is exist - process it [17:56:55]req_shift_open_date [17:56:55]req_shift_open_date done [17:56:55]produce_requested_data done [17:56:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165790,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:56:55]process_action_free close_receipt [17:56:55]json_value_free [17:56:55]json_value_free done [17:56:55]process_json_proto returns [17:56:55]Send response to host [17:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165790,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:56:55]free response buf [17:56:55]execute_script done [17:56:55]execute_script returns [17:56:55]free content buf [17:56:55]Sock 9.Close socket [17:56:55]Sock 9.Thread stoped [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:08]accept exits with 7 [17:57:08]New connection [17:57:08]New thread 3066920292 created [17:57:08]Thread 3066776932 joined [17:57:08]Waiting for new connection... [17:57:08] Sock 7.Parse request [17:57:08]Sock 7.Check first char [17:57:08]Sock 7.First char is OK [17:57:08]request: POST /json_proto HTTP/1.0 [17:57:08]Method: POST [17:57:08]URL: /json_proto [17:57:08]Method is POST - this is cgi request [17:57:08]url: /json_proto [17:57:08]query_string will be loaded in cgi processing [17:57:08]execute_cgi json_proto POST (null) [17:57:08]execute_cgi path=json_proto method=POST [17:57:08]POST find Content-Length [17:57:08]Host: 172.17.53.195:8080 [17:57:08]Content-Length: 789 [17:57:08]Content-Type: application/json [17:57:08] [17:57:08]POST finish read [17:57:08]Found Content-Length = 789 [17:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:08]execute_script... [17: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)220357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:08]POST & json_proto [17:57:08]process_json_proto [17:57:08]json parsed OK: [17:57:08]protocol is kg_v1.0 [17:57:08]action value=close_receipt [17:57:08]process_action close_receipt [17:57:08]cmd_close_receipt [17:57:08]MH_GetDate [17:57:08]Write to MH i2c: F0 00 00 67 0B 61 [17:57:08]Write i2c OK [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: F0 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: F0 09 00 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: F0 09 00 67 0B 00 82 44 15 67 21 48 4A 65 C4 [17:57:08]GetLastDocTimeStamp 1729447024 [17:57:08]current date 1729447042 [17:57:08]FM_GetShiftState [17:57:08]SAM_PROTO_GetShiftState [17:57:08]wFMCommunicate request_size=4 [17:57:08]MH_SAM_APDU [17:57:08]CAPDU: 80 13 01 00 [17:57:08]Write to MH i2c: E2 08 00 68 0B 80 13 01 00 00 00 00 00 F0 [17:57:08]Write i2c OK [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:08] [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: E2 0E 00 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: E2 0E 00 68 0B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 38 [17:57:08]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:57:08]wFMCommunicate OK [17:57:08]SAM_PROTO_GetShiftState done [17:57:08]FM_GetShiftState done [17:57:08]opened in 1729384561 [17:57:08]opened+sec_in_day 1729470961 [17:57:08]quantity*price = 0 [17:57:08]sum+1 = 1 [17:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 273 20.10.2024 17:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165791 ФПД: 140321257536922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175722&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165791&fm=140321257536922&tin=02508201610067®Number=0000000000091764&sum=0 [17:57:10]StoreToDocumentArchive [17:57:10]shift 534 fd 165791 [17:57:10]save to /storage/0534/doc_00165791 [17:57:10]save last doc name /storage/0534/doc_00165791 to /storage/kkm_last_doc_name [17:57:10]save OK [17:57:10]Clear old archive folders... [17:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:57:10]tlvbuf is 01A0ACB0 [17:57:10]SAM_PROTO_ClearQueue [17:57:10]wFMCommunicate request_size=4 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 09 00 00 [17:57:10]Write to MH i2c: E2 08 00 75 0B 80 09 00 00 00 00 00 00 F2 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [17:57:10]RAPDU: 90 00 [17:57:10]wFMCommunicate OK [17:57:10]SAM_PROTO_ClearQueue done [17:57:10]KKMCreateOFDPacket [17:57:10]OFDProtocolAddRootSTLVToBuf [17:57:10]FM_MakeSignedData [17:57:10]FM_MakeSignedData [17:57:10]SAM_PROTO_SignData [17:57:10]wFMCommunicate request_size=4 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 0D 01 02 [17:57:10]Write to MH i2c: E2 08 00 76 0B 80 0D 01 02 00 00 00 00 FA [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [17:57:10]RAPDU: 90 00 [17:57:10]wFMCommunicate OK [17:57:10]wFMCommunicate request_size=255 [17:57:10]MH_SAM_APDU [17: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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 82 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 87 02 00 35 04 06 00 7F 9F 16 B5 [17:57:10]Write to MH i2c: E2 02 01 77 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 82 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 87 02 00 35 04 06 00 7F 9F 16 B5 00 00 48 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [17:57:10]RAPDU: 90 00 [17:57:10]wFMCommunicate OK [17:57:10]wFMCommunicate request_size=7 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 0D 02 02 02 BD 9A [17:57:10]Write to MH i2c: E2 0A 00 78 0B 80 0D 02 02 02 00 BD 9A 00 00 58 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 78 0B 00 90 00 F7 [17:57:10]RAPDU: 90 00 [17:57:10]wFMCommunicate OK [17:57:10]wFMCommunicate request_size=4 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 0D 03 02 [17:57:10]Write to MH i2c: E2 08 00 79 0B 80 0D 03 02 00 00 00 00 FF [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 0B 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 0B 00 79 0B 00 34 35 22 42 21 3F 90 7B 90 00 38 [17:57:10]RAPDU: 34 35 22 42 21 3F 90 7B 90 00 [17:57:10]wFMCommunicate OK [17:57:10]SAM_PROTO_SignData done [17:57:10]FM_MakeSignedData done [17:57:10]CreateOFDProtocolMessage [17:57:10]wFMCommunicate request_size=4 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 11 00 00 [17:57:10]Write to MH i2c: E2 08 00 7A 0B 80 11 00 00 00 00 00 00 FF [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 17 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 17 00 7A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [17:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:57:10]wFMCommunicate OK [17:57:10]CreateOFDProtocolMessage done [17:57:10]OFDSenderStorePacket 165791 [17:57:10]StoreOFDPacket docnum=165791 [17:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3A 82 04 01 66 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 82 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 87 02 00 35 04 06 00 7F 9F 16 B5 BD 9A 34 35 22 42 21 3F 90 7B [17:57:10]CheckFolder [17:57:10]dirname=/storage/ofd_packets [17:57:10]CheckFolder done [17:57:10]ProducePacketName [17:57:10]name=ofd_packets/00165791 [17:57:10]NVStorageSaveData ofd_packets/00165791 [17:57:10]File name is /storage/ofd_packets/00165791 [17:57:10]Write 298 bytes [17:57:10]NVStorageSaveData done [17:57:10]OFDSenderStorePacket done [17:57:10]KKMCreateOFDPacket done [17:57:10]NVStorageSaveData kkm_last_timestamp [17:57:10]File name is /storage/kkm_last_timestamp [17:57:10]Write 4 bytes [17:57:10]NVStorageSaveData done [17:57:10]ExternCall_PrintAddStr [17:57:10]wPrintStart [17:57:10]Write to MH i2c: 01 00 00 7B 0B 86 [17:57:10]OFD Sender: Processing packet 165791 [packets to send 48, broken 47] [17:57:10]ProducePacketName [17:57:10]name=ofd_packets/00165791 [17:57:10]OFD Sender: To server: pG, [17:57:10]CommunicateWithHost lk.salyk.kg:30040 [17:57:10]ConnectInit lk.salyk.kg [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 07 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 FF 0F 9B [17:57:10]RasterBufferAndPrint [17:57:10]line Счет N : (1)220357 [17:57:10]line ИНН: 02508201610067 [17:57:10]line Контрольно-Кассовый Чек [17:57:10]line ПРОДАЖА [17:57:10]line ТРК (МРК, ГНК) : 41 [17:57:10]line Товар: 2710194210 [17:57:10]line ДТ-К-5 [17:57:10]line 39.380 * 0.00 [17:57:10]line = 0.00 [17:57:10]line НДС 12% НСП 1% [17:57:10]line > о реализуемом товаре [17:57:10]line ИТОГО: 0.00 [17:57:10]line НСП 1% : 0.00 [17:57:10]line НДС 12% : 0.00 [17:57:10]line Наличными: 0.00 [17:57:10]line Безнал.: 0.00 [17:57:10]line Место: АЗС № 161 "Партнер Нефть" [17:57:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:57:10]line СНО: Общий режим [17:57:10]line Чек 273 20.10.2024 17:57 [17:57:10]line Смена: 534 ФФД: 1.0 [17:57:10]line ЗНМ: 0300000104 [17:57:10]line РНМ: 0000000000091764 [17:57:10]line Версия ККМ: 001 [17:57:10]line Талоны: Топливная Карта [17:57:10]line 39590 [17:57:10]line ФМ: 0000000000871759 [17:57:10]line ФД: 165791 [17:57:10]line ФПД: 140321257536922 [17:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175722&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165791&fm=140321257536922&tin=02508201610067®Number=0000000000091764&sum=0 [17:57:10]written 0, free lines is 4095 [17:57:10]Connected sock=10 [17: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 31 37 35 39 0C 01 00 00 3A 82 04 01 66 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 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 82 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 87 02 00 35 04 06 00 7F 9F 16 B5 BD 9A 34 35 22 42 21 3F 90 7B [17:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D9 20 47 00 CD AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 87 02 00 F4 03 04 00 F3 EA 14 67 B6 04 01 00 00 F7 0A EC 63 67 7F 59 C0 [17:57:11]CommunicateWithHost err = 0 [17:57:11]CheckOFDResponse [17:57:11]1017 (14) - 77093643461234 [17:57:11]1041 (16) - 0000000000871759 [17:57:11]1040 (4) - 165791 [17:57:11]1012 (4) - 20.10.2024 11:35 [17:57:11]1206 (1) - 0 [17:57:11]OFD Sender: Remove packet 165791 [17:57:11]ProducePacketName [17:57:11]name=ofd_packets/00165791 [17:57:11]NVStorageDeleteData [17:57:11]Write to MH i2c: 01 00 00 A5 0B B0 [17:57:11]Write i2c OK [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: 01 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: 01 07 00 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 DA 0C 9D [17:57:11]RasterBufferAndPrint [17:57:11]line [17:57:11]line [17:57:11]line [17:57:11]line [17:57:11]line [17:57:11]written 0, free lines is 3306 [17:57:11]MH_Cut [17:57:11]Write to MH i2c: D1 01 00 AC 0B 01 89 [17:57:11]Write i2c OK [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: D1 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: D1 01 00 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: D1 01 00 AC 0B 00 88 [17:57:11]Write to MH i2c: 01 00 00 AD 0B B8 [17:57:11]Write i2c OK [17:57:11]MH_I2C_Read... [17:57:11]OFD Sender: No OFD packet to send [17:57:11]*** Cut start [17:57:11]*** Partial cut [17:57:11]*** CUTSNS_PIN = 1 [17:57:12]*** CUTSNS_PIN = 0 [17:57:12]*** Brake cut motor [17:57:12]Read from MH i2c: 01 [17:57:12]MH_I2C_Read... [17:57:12]*** Stop cut motor [17:57:12]*** Cut end [17:57:12]Read from MH i2c: 01 07 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: 01 07 00 AD 0B 00 00 00 00 00 FF 0F CD [17:57:12]process_action close_receipt done [17:57:12]requested_data is exist [17:57:12]produce_requested_data [17:57:12]requested_item fm.sn is exist - process it [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 11 00 00 [17:57:12]Write to MH i2c: E2 08 00 AE 0B 80 11 00 00 00 00 00 00 33 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 17 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 17 00 AE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [17:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:57:12]wFMCommunicate OK [17:57:12]requested_item fd.num is exist - process it [17:57:12]SAM_PROTO_GetFieldsCounters [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 13 00 00 [17:57:12]Write to MH i2c: E2 08 00 AF 0B 80 13 00 00 00 00 00 00 36 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 62 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 62 00 AF 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 87 02 00 0E 04 04 00 16 02 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 D4 [17: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 87 02 00 0E 04 04 00 16 02 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 [17:57:12]wFMCommunicate OK [17:57:12]SAM_PROTO_GetFieldsCounters done [17:57:12]requested_item shift.num is exist - process it [17:57:12]requested_item shift.opened is exist - process it [17:57:12]req_shift_opened [17:57:12]FM_GetShiftState [17:57:12]SAM_PROTO_GetShiftState [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 13 01 00 [17:57:12]Write to MH i2c: E2 08 00 B0 0B 80 13 01 00 00 00 00 00 38 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 0E 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 0E 00 B0 0B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 80 [17:57:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:57:12]wFMCommunicate OK [17:57:12]SAM_PROTO_GetShiftState done [17:57:12]FM_GetShiftState done [17:57:12]req_shift_opened done [17:57:12]requested_item shift.open_date is exist - process it [17:57:12]req_shift_open_date [17:57:12]req_shift_open_date done [17:57:12]produce_requested_data done [17:57:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165791,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:57:12]process_action_free close_receipt [17:57:12]json_value_free [17:57:12]json_value_free done [17:57:12]process_json_proto returns [17:57:12]Send response to host [17:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165791,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:57:12]free response buf [17:57:12]execute_script done [17:57:12]execute_script returns [17:57:12]free content buf [17:57:12]Sock 7.Close socket [17:57:12]Sock 7.Thread stoped [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]accept exits with 9 [17:58:21]New connection [17:58:21]New thread 3066776932 created [17:58:21]Thread 3066920292 joined [17:58:21]Waiting for new connection... [17:58:21] Sock 9.Parse request [17:58:21]Sock 9.Check first char [17:58:21]Sock 9.First char is OK [17:58:21]request: POST /json_proto HTTP/1.0 [17:58:21]Method: POST [17:58:21]URL: /json_proto [17:58:21]Method is POST - this is cgi request [17:58:21]url: /json_proto [17:58:21]query_string will be loaded in cgi processing [17:58:21]execute_cgi json_proto POST (null) [17:58:21]execute_cgi path=json_proto method=POST [17:58:21]POST find Content-Length [17:58:21]Host: 172.17.53.195:8080 [17:58:21]Content-Length: 682 [17:58:21]Content-Type: application/json [17:58:21] [17:58:21]POST finish read [17:58:21]Found Content-Length = 682 [17:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:21]execute_script... [17:58: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)220360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:21]POST & json_proto [17:58:21]process_json_proto [17:58:21]json parsed OK: [17:58:21]protocol is kg_v1.0 [17:58:21]action value=close_receipt [17:58:21]process_action close_receipt [17:58:21]cmd_close_receipt [17:58:21]MH_GetDate [17:58:21]Write to MH i2c: F0 00 00 B1 0B AB [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: F0 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: F0 09 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: F0 09 00 B1 0B 00 CA 44 15 67 21 48 4A 65 56 [17:58:21]GetLastDocTimeStamp 1729447042 [17:58:21]current date 1729447114 [17:58:21]FM_GetShiftState [17:58:21]SAM_PROTO_GetShiftState [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 13 01 00 [17:58:21]Write to MH i2c: E2 08 00 B2 0B 80 13 01 00 00 00 00 00 3A [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 0E 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 0E 00 B2 0B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 82 [17:58:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [17:58:21]wFMCommunicate OK [17:58:21]SAM_PROTO_GetShiftState done [17:58:21]FM_GetShiftState done [17:58:21]opened in 1729384561 [17:58:21]opened+sec_in_day 1729470961 [17:58:21]quantity*price = 100015 [17:58:21]sum+1 = 100017 [17:58: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 274 20.10.2024 17:58 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165792 ФПД: 107237174692874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175834&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165792&fm=107237174692874&tin=02508201610067®Number=0000000000091764&sum=100000 [17:58:22]StoreToDocumentArchive [17:58:22]shift 534 fd 165792 [17:58:22]save to /storage/0534/doc_00165792 [17:58:22]save last doc name /storage/0534/doc_00165792 to /storage/kkm_last_doc_name [17:58:22]save OK [17:58:22]Clear old archive folders... [17:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:22]tlvbuf is 016C7A70 [17:58:22]SAM_PROTO_ClearQueue [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 09 00 00 [17:58:22]Write to MH i2c: E2 08 00 BF 0B 80 09 00 00 00 00 00 00 3C [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [17:58:22]RAPDU: 90 00 [17:58:22]wFMCommunicate OK [17:58:22]SAM_PROTO_ClearQueue done [17:58:22]KKMCreateOFDPacket [17:58:22]OFDProtocolAddRootSTLVToBuf [17:58:22]FM_MakeSignedData [17:58:22]FM_MakeSignedData [17:58:22]SAM_PROTO_SignData [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 0D 01 02 [17:58:22]Write to MH i2c: E2 08 00 C0 0B 80 0D 01 02 00 00 00 00 44 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [17:58:22]RAPDU: 90 00 [17:58:22]wFMCommunicate OK [17:58:22]wFMCommunicate request_size=255 [17:58:22]MH_SAM_APDU [17:58: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 CA 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 87 02 00 35 04 06 00 61 [17:58:22]Write to MH i2c: E2 02 01 C1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 CA 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 87 02 00 35 04 06 00 61 00 00 13 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [17:58:22]RAPDU: 90 00 [17:58:22]wFMCommunicate OK [17:58:22]wFMCommunicate request_size=10 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 0D 02 02 05 88 19 B4 4C 0A [17:58:22]Write to MH i2c: E2 0D 00 C2 0B 80 0D 02 02 05 00 88 19 B4 4C 0A 00 00 FC [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 C2 0B 00 90 00 41 [17:58:22]RAPDU: 90 00 [17:58:22]wFMCommunicate OK [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 0D 03 02 [17:58:22]Write to MH i2c: E2 08 00 C3 0B 80 0D 03 02 00 00 00 00 49 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 0B 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 0B 00 C3 0B 00 71 58 9C D6 49 43 88 8D 90 00 26 [17:58:22]RAPDU: 71 58 9C D6 49 43 88 8D 90 00 [17:58:22]wFMCommunicate OK [17:58:22]SAM_PROTO_SignData done [17:58:22]FM_MakeSignedData done [17:58:22]CreateOFDProtocolMessage [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 11 00 00 [17:58:22]Write to MH i2c: E2 08 00 C4 0B 80 11 00 00 00 00 00 00 49 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 17 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 17 00 C4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [17:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:22]wFMCommunicate OK [17:58:22]CreateOFDProtocolMessage done [17:58:22]OFDSenderStorePacket 165792 [17:58:22]StoreOFDPacket docnum=165792 [17:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D C3 07 01 EC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 CA 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 87 02 00 35 04 06 00 61 88 19 B4 4C 0A 71 58 9C D6 49 43 88 8D [17:58:22]CheckFolder [17:58:22]dirname=/storage/ofd_packets [17:58:22]CheckFolder done [17:58:22]ProducePacketName [17:58:22]name=ofd_packets/00165792 [17:58:22]NVStorageSaveData ofd_packets/00165792 [17:58:22]File name is /storage/ofd_packets/00165792 [17:58:22]Write 301 bytes [17:58:22]NVStorageSaveData done [17:58:22]OFDSenderStorePacket done [17:58:22]KKMCreateOFDPacket done [17:58:22]NVStorageSaveData kkm_last_timestamp [17:58:22]File name is /storage/kkm_last_timestamp [17:58:22]Write 4 bytes [17:58:22]NVStorageSaveData done [17:58:22]ExternCall_PrintAddStr [17:58:22]wPrintStart [17:58:22]Write to MH i2c: 01 00 00 C5 0B D0 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 07 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 FF 0F E5 [17:58:22]RasterBufferAndPrint [17:58:22]line Счет N : (1)220360 [17:58:22]line ИНН: 02508201610067 [17:58:22]line Контрольно-Кассовый Чек [17:58:22]line ПРОДАЖА [17:58:22]line ТРК (МРК, ГНК) : 33 [17:58:22]line Товар: 2710124130 [17:58:22]line Аи-92-К-5 [17:58:22]line 14.950 * 66.90 [17:58:22]line = 1000.16 [17:58:22]line НДС 12% НСП 1% [17:58:22]line > о реализуемом товаре [17:58:22]line ОКРУГЛЕНИЕ: -0.16 [17:58:22]line ИТОГО: 1000.00 [17:58:22]line Внесено: 1000.00 [17:58:22]line СДАЧА: 0.00 [17:58:22]line НСП 1% : 8.85 [17:58:22]line НДС 12% : 106.21 [17:58:22]line Наличными: 1000.00 [17:58:22]line Безнал.: 0.00 [17:58:22]line Место: АЗС № 161 "Партнер Нефть" [17:58:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:58:22]line СНО: Общий режим [17:58:22]line Чек 274 20.10.2024 17:58 [17:58:22]line Смена: 534 ФФД: 1.0 [17:58:22]line ЗНМ: 0300000104 [17:58:22]line РНМ: 0000000000091764 [17:58:22]line Версия ККМ: 001 [17:58:22]line ФМ: 0000000000871759 [17:58:22]line ФД: 165792 [17:58:22]line ФПД: 107237174692874 [17:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175834&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165792&fm=107237174692874&tin=02508201610067®Number=0000000000091764&sum=100000 [17:58:23]OFD Sender: Processing packet 165792 [packets to send 48, broken 47] [17:58:23]ProducePacketName [17:58:23]name=ofd_packets/00165792 [17:58:23]OFD Sender: To server: pG, [17:58:23]CommunicateWithHost lk.salyk.kg:30040 [17:58:23]ConnectInit lk.salyk.kg [17:58:23]written 0, free lines is 4095 [17:58:23]Connected sock=10 [17:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D C3 07 01 EC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 CA 44 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 87 02 00 35 04 06 00 61 88 19 B4 4C 0A 71 58 9C D6 49 43 88 8D [17:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B 90 47 00 58 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 31 37 35 39 10 04 04 00 A0 87 02 00 F4 03 04 00 3C EB 14 67 B6 04 01 00 00 08 20 30 AA F6 D3 06 1E [17:58:23]CommunicateWithHost err = 0 [17:58:23]CheckOFDResponse [17:58:23]1017 (14) - 77093643461234 [17:58:23]1041 (16) - 0000000000871759 [17:58:23]1040 (4) - 165792 [17:58:23]1012 (4) - 20.10.2024 11:36 [17:58:23]1206 (1) - 0 [17:58:23]OFD Sender: Remove packet 165792 [17:58:23]ProducePacketName [17:58:23]name=ofd_packets/00165792 [17:58:23]NVStorageDeleteData [17:58:23]Write to MH i2c: 01 00 00 F0 0B FB [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 F0 0B 00 00 00 00 00 C8 0C D6 [17:58:23]RasterBufferAndPrint [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]written 0, free lines is 3278 [17:58:23]MH_Cut [17:58:23]Write to MH i2c: D1 01 00 F7 0B 01 D4 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: D1 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: D1 01 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: D1 01 00 F7 0B 00 D3 [17:58:23]Write to MH i2c: 01 00 00 F8 0B 03 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:24]OFD Sender: No OFD packet to send [17:58:24]*** Cut start [17:58:24]*** Partial cut [17:58:24]*** CUTSNS_PIN = 1 [17:58:24]*** CUTSNS_PIN = 0 [17:58:24]*** Brake cut motor [17:58:25]Read from MH i2c: 01 [17:58:25]MH_I2C_Read... [17:58:25]*** Stop cut motor [17:58:25]*** Cut end [17:58:25]Read from MH i2c: 01 07 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: 01 07 00 F8 0B 00 00 00 00 00 FF 0F 18 [17:58:25]process_action close_receipt done [17:58:25]requested_data is exist [17:58:25]produce_requested_data [17:58:25]requested_item fm.sn is exist - process it [17:58:25]wFMCommunicate request_size=4 [17:58:25]MH_SAM_APDU [17:58:25]CAPDU: 80 11 00 00 [17:58:25]Write to MH i2c: E2 08 00 F9 0B 80 11 00 00 00 00 00 00 7E [17:58:25]Write i2c OK [17:58:25]MH_I2C_Read... [17:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:25]Read from MH i2c: E2 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 17 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 17 00 F9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D6 [17:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:25]wFMCommunicate OK [17:58:25]requested_item fd.num is exist - process it [17:58:25]SAM_PROTO_GetFieldsCounters [17:58:25]wFMCommunicate request_size=4 [17:58:25]MH_SAM_APDU [17:58:25]CAPDU: 80 13 00 00 [17:58:25]Write to MH i2c: E2 08 00 FA 0B 80 13 00 00 00 00 00 00 81 [17:58:25]Write i2c OK [17:58:25]MH_I2C_Read... [17:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:25]Read from MH i2c: E2 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 62 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 62 00 FA 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 87 02 00 0E 04 04 00 16 02 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 23 [17:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 87 02 00 0E 04 04 00 16 02 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 [17:58:25]wFMCommunicate OK [17:58:25]SAM_PROTO_GetFieldsCounters done [17:58:25]requested_item shift.num is exist - process it [17:58:25]requested_item shift.opened is exist - process it [17:58:25]req_shift_opened [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 FB 0B 80 13 01 00 00 00 00 00 83 [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 FB 0B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CB [17:58:25]RAPDU: 09 00 01 71 50 14 67 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]req_shift_opened done [17:58:25]requested_item shift.open_date is exist - process it [17:58:25]req_shift_open_date [17:58:25]req_shift_open_date done [17:58:25]produce_requested_data done [17:58:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165792,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [17:58:25]process_action_free close_receipt [17:58:25]json_value_free [17:58:25]json_value_free done [17:58:25]process_json_proto returns [17:58:25]Send response to host [17:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165792,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [17:58:25]free response buf [17:58:25]execute_script done [17:58:25]execute_script returns [17:58:25]free content buf [17:58:25]Sock 9.Close socket [17:58:25]Sock 9.Thread stoped [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:18]accept exits with 7 [18:02:18]New connection [18:02:18]New thread 3066920292 created [18:02:18]Thread 3066776932 joined [18:02:18]Waiting for new connection... [18:02:18] Sock 7.Parse request [18:02:18]Sock 7.Check first char [18:02:18]Sock 7.First char is OK [18:02:18]request: POST /json_proto HTTP/1.0 [18:02:18]Method: POST [18:02:18]URL: /json_proto [18:02:18]Method is POST - this is cgi request [18:02:18]url: /json_proto [18:02:18]query_string will be loaded in cgi processing [18:02:18]execute_cgi json_proto POST (null) [18:02:18]execute_cgi path=json_proto method=POST [18:02:18]POST find Content-Length [18:02:18]Host: 172.17.53.195:8080 [18:02:18]Content-Length: 682 [18:02:18]Content-Type: application/json [18:02:18] [18:02:18]POST finish read [18:02:18]Found Content-Length = 682 [18:02:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.220, "sum" : 1954.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1955.00, "total" : 1954.00, "payments": [ { "type": 0, "sum" : 1954.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:18]execute_script... [18: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)220307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.220, "sum" : 1954.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1955.00, "total" : 1954.00, "payments": [ { "type": 0, "sum" : 1954.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:18]POST & json_proto [18:02:18]process_json_proto [18:02:18]json parsed OK: [18:02:18]protocol is kg_v1.0 [18:02:18]action value=close_receipt [18:02:18]process_action close_receipt [18:02:18]cmd_close_receipt [18:02:18]MH_GetDate [18:02:18]Write to MH i2c: F0 00 00 FC 0B F6 [18:02:18]Write i2c OK [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: F0 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: F0 09 00 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: F0 09 00 FC 0B 00 B8 45 15 67 21 48 4A 65 90 [18:02:18]GetLastDocTimeStamp 1729447114 [18:02:18]current date 1729447352 [18:02:18]FM_GetShiftState [18:02:18]SAM_PROTO_GetShiftState [18:02:18]wFMCommunicate request_size=4 [18:02:18]MH_SAM_APDU [18:02:18]CAPDU: 80 13 01 00 [18:02:18]Write to MH i2c: E2 08 00 FD 0B 80 13 01 00 00 00 00 00 85 [18:02:18]Write i2c OK [18:02:18]MH_I2C_Read... [18:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:18]Read from MH i2c: E2 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: E2 0E 00 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: E2 0E 00 FD 0B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CD [18:02:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:02:18]wFMCommunicate OK [18:02:18]SAM_PROTO_GetShiftState done [18:02:18]FM_GetShiftState done [18:02:18]opened in 1729384561 [18:02:18]opened+sec_in_day 1729470961 [18:02:18]quantity*price = 195481 [18:02:18]sum+1 = 195483 [18:02:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 1954.00 Внесено: 1955.00 СДАЧА: 1.00 НСП 1% : 17.30 НДС 12% : 207.59 Наличными: 1954.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 275 20.10.2024 18:02 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165793 ФПД: 220364431745847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180232&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165793&fm=220364431745847&tin=02508201610067®Number=0000000000091764&sum=195400 [18:02:19]StoreToDocumentArchive [18:02:19]shift 534 fd 165793 [18:02:19]save to /storage/0534/doc_00165793 [18:02:19]save last doc name /storage/0534/doc_00165793 to /storage/kkm_last_doc_name [18:02:19]save OK [18:02:19]Clear old archive folders... [18:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:19]tlvbuf is 016C7430 [18:02:19]SAM_PROTO_ClearQueue [18:02:19]wFMCommunicate request_size=4 [18:02:19]MH_SAM_APDU [18:02:19]CAPDU: 80 09 00 00 [18:02:19]Write to MH i2c: E2 08 00 0A 0C 80 09 00 00 00 00 00 00 88 [18:02:19]Write i2c OK [18:02:19]MH_I2C_Read... [18:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:19]Read from MH i2c: E2 [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: E2 03 00 [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: E2 03 00 0A 0C 00 90 00 8A [18:02:19]RAPDU: 90 00 [18:02:19]wFMCommunicate OK [18:02:19]SAM_PROTO_ClearQueue done [18:02:19]KKMCreateOFDPacket [18:02:19]OFDProtocolAddRootSTLVToBuf [18:02:19]FM_MakeSignedData [18:02:19]FM_MakeSignedData [18:02:19]SAM_PROTO_SignData [18:02:19]wFMCommunicate request_size=4 [18:02:19]MH_SAM_APDU [18:02:19]CAPDU: 80 0D 01 02 [18:02:19]Write to MH i2c: E2 08 00 0B 0C 80 0D 01 02 00 00 00 00 90 [18:02:19]Write i2c OK [18:02:19]MH_I2C_Read... [18:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:19]Read from MH i2c: E2 [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: E2 03 00 [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: E2 03 00 0B 0C 00 90 00 8B [18:02:19]RAPDU: 90 00 [18:02:19]wFMCommunicate OK [18:02:19]wFMCommunicate request_size=255 [18:02:19]MH_SAM_APDU [18:02: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 24 72 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9A FB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 FB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 51 00 00 00 00 07 04 06 00 48 FB 02 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 B8 45 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 87 02 00 35 04 06 00 C8 [18:02:19]Write to MH i2c: E2 02 01 0C 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 24 72 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9A FB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 FB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 51 00 00 00 00 07 04 06 00 48 FB 02 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 B8 45 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 87 02 00 35 04 06 00 C8 00 00 5B [18:02:19]Write i2c OK [18:02:19]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 0C 0C 00 90 00 8C [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]wFMCommunicate request_size=10 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 02 02 05 6B 97 AC E3 37 [18:02:20]Write to MH i2c: E2 0D 00 0D 0C 80 0D 02 02 05 00 6B 97 AC E3 37 00 00 65 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 0D 0C 00 90 00 8D [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 03 02 [18:02:20]Write to MH i2c: E2 08 00 0E 0C 80 0D 03 02 00 00 00 00 95 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 0B 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 0B 00 0E 0C 00 CF 14 8F 97 AD 22 3A 16 90 00 BE [18:02:20]RAPDU: CF 14 8F 97 AD 22 3A 16 90 00 [18:02:20]wFMCommunicate OK [18:02:20]SAM_PROTO_SignData done [18:02:20]FM_MakeSignedData done [18:02:20]CreateOFDProtocolMessage [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 11 00 00 [18:02:20]Write to MH i2c: E2 08 00 0F 0C 80 11 00 00 00 00 00 00 95 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 17 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 17 00 0F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [18:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:02:20]wFMCommunicate OK [18:02:20]CreateOFDProtocolMessage done [18:02:20]OFDSenderStorePacket 165793 [18:02:20]StoreOFDPacket docnum=165793 [18:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 CC 07 01 C2 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 72 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9A FB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 FB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 51 00 00 00 00 07 04 06 00 48 FB 02 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 B8 45 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 87 02 00 35 04 06 00 C8 6B 97 AC E3 37 CF 14 8F 97 AD 22 3A 16 [18:02:20]CheckFolder [18:02:20]dirname=/storage/ofd_packets [18:02:20]CheckFolder done [18:02:20]ProducePacketName [18:02:20]name=ofd_packets/00165793 [18:02:20]NVStorageSaveData ofd_packets/00165793 [18:02:20]File name is /storage/ofd_packets/00165793 [18:02:20]Write 301 bytes [18:02:20]NVStorageSaveData done [18:02:20]OFDSenderStorePacket done [18:02:20]KKMCreateOFDPacket done [18:02:20]NVStorageSaveData kkm_last_timestamp [18:02:20]File name is /storage/kkm_last_timestamp [18:02:20]Write 4 bytes [18:02:20]NVStorageSaveData done [18:02:20]ExternCall_PrintAddStr [18:02:20]wPrintStart [18:02:20]Write to MH i2c: 01 00 00 10 0C 1C [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 07 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 FF 0F 31 [18:02:20]RasterBufferAndPrint [18:02:20]line Счет N : (1)220307 [18:02:20]line ИНН: 02508201610067 [18:02:20]line Контрольно-Кассовый Чек [18:02:20]line ПРОДАЖА [18:02:20]line ТРК (МРК, ГНК) : 13 [18:02:20]line Товар: 2710124130 [18:02:20]line Аи-92-К-5 [18:02:20]line 29.220 * 66.90 [18:02:20]line = 1954.82 [18:02:20]line НДС 12% НСП 1% [18:02:20]line > о реализуемом товаре [18:02:20]line ОКРУГЛЕНИЕ: -0.82 [18:02:20]line ИТОГО: 1954.00 [18:02:20]line Внесено: 1955.00 [18:02:20]line СДАЧА: 1.00 [18:02:20]line НСП 1% : 17.30 [18:02:20]line НДС 12% : 207.59 [18:02:20]line Наличными: 1954.00 [18:02:20]line Безнал.: 0.00 [18:02:20]line Место: АЗС № 161 "Партнер Нефть" [18:02:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:02:20]line СНО: Общий режим [18:02:20]line Чек 275 20.10.2024 18:02 [18:02:20]line Смена: 534 ФФД: 1.0 [18:02:20]line ЗНМ: 0300000104 [18:02:20]line РНМ: 0000000000091764 [18:02:20]line Версия ККМ: 001 [18:02:20]line ФМ: 0000000000871759 [18:02:20]line ФД: 165793 [18:02:20]line ФПД: 220364431745847 [18:02:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180232&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165793&fm=220364431745847&tin=02508201610067®Number=0000000000091764&sum=195400 [18:02:20]OFD Sender: Processing packet 165793 [packets to send 48, broken 47] [18:02:20]ProducePacketName [18:02:20]name=ofd_packets/00165793 [18:02:20]OFD Sender: To server: pG, [18:02:20]CommunicateWithHost lk.salyk.kg:30040 [18:02:20]ConnectInit lk.salyk.kg [18:02:20]written 0, free lines is 4095 [18:02:20]Connected sock=10 [18: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 31 37 35 39 0F 01 00 00 39 CC 07 01 C2 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 72 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9A FB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 FB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 51 00 00 00 00 07 04 06 00 48 FB 02 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 B8 45 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 87 02 00 35 04 06 00 C8 6B 97 AC E3 37 CF 14 8F 97 AD 22 3A 16 [18:02:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 48 A3 47 00 E2 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 87 02 00 F4 03 04 00 29 EC 14 67 B6 04 01 00 00 D3 FD E7 FE 94 82 B3 9F [18:02:20]CommunicateWithHost err = 0 [18:02:20]CheckOFDResponse [18:02:20]1017 (14) - 77093643461234 [18:02:20]1041 (16) - 0000000000871759 [18:02:20]1040 (4) - 165793 [18:02:20]1012 (4) - 20.10.2024 11:40 [18:02:20]1206 (1) - 0 [18:02:20]OFD Sender: Remove packet 165793 [18:02:20]ProducePacketName [18:02:20]name=ofd_packets/00165793 [18:02:20]NVStorageDeleteData [18:02:20]Write to MH i2c: 01 00 00 3B 0C 47 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 07 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 C0 0C 1A [18:02:20]RasterBufferAndPrint [18:02:20]line [18:02:20]line [18:02:20]line [18:02:20]line [18:02:20]line [18:02:20]written 0, free lines is 3271 [18:02:20]MH_Cut [18:02:20]Write to MH i2c: D1 01 00 42 0C 01 20 [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 01 00 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 01 00 42 0C 00 1F [18:02:21]Write to MH i2c: 01 00 00 43 0C 4F [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]OFD Sender: No OFD packet to send [18:02:21]*** Cut start [18:02:21]*** Partial cut [18:02:21]*** CUTSNS_PIN = 1 [18:02:21]*** CUTSNS_PIN = 0 [18:02:22]*** Brake cut motor [18:02:22]Read from MH i2c: 01 [18:02:22]MH_I2C_Read... [18:02:22]*** Stop cut motor [18:02:22]*** Cut end [18:02:22]Read from MH i2c: 01 07 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 FF 0F 64 [18:02:22]process_action close_receipt done [18:02:22]requested_data is exist [18:02:22]produce_requested_data [18:02:22]requested_item fm.sn is exist - process it [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 11 00 00 [18:02:22]Write to MH i2c: E2 08 00 44 0C 80 11 00 00 00 00 00 00 CA [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 17 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 17 00 44 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [18:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:02:22]wFMCommunicate OK [18:02:22]requested_item fd.num is exist - process it [18:02:22]SAM_PROTO_GetFieldsCounters [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 13 00 00 [18:02:22]Write to MH i2c: E2 08 00 45 0C 80 13 00 00 00 00 00 00 CD [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 62 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 62 00 45 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 87 02 00 0E 04 04 00 16 02 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 73 [18: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 87 02 00 0E 04 04 00 16 02 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:02:22]wFMCommunicate OK [18:02:22]SAM_PROTO_GetFieldsCounters done [18:02:22]requested_item shift.num is exist - process it [18:02:22]requested_item shift.opened is exist - process it [18:02:22]req_shift_opened [18:02:22]FM_GetShiftState [18:02:22]SAM_PROTO_GetShiftState [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 13 01 00 [18:02:22]Write to MH i2c: E2 08 00 46 0C 80 13 01 00 00 00 00 00 CF [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 0E 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 0E 00 46 0C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 17 [18:02:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:02:22]wFMCommunicate OK [18:02:22]SAM_PROTO_GetShiftState done [18:02:22]FM_GetShiftState done [18:02:22]req_shift_opened done [18:02:22]requested_item shift.open_date is exist - process it [18:02:22]req_shift_open_date [18:02:22]req_shift_open_date done [18:02:22]produce_requested_data done [18:02:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165793,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:02:22]process_action_free close_receipt [18:02:22]json_value_free [18:02:22]json_value_free done [18:02:22]process_json_proto returns [18:02:22]Send response to host [18:02:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165793,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:02:22]free response buf [18:02:22]execute_script done [18:02:22]execute_script returns [18:02:22]free content buf [18:02:22]Sock 7.Close socket [18:02:22]Sock 7.Thread stoped [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:42]accept exits with 9 [18:09:42]New connection [18:09:42]New thread 3066776932 created [18:09:42]Thread 3066920292 joined [18:09:42]Waiting for new connection... [18:09:42] Sock 9.Parse request [18:09:42]Sock 9.Check first char [18:09:42]Sock 9.First char is OK [18:09:42]request: POST /json_proto HTTP/1.0 [18:09:42]Method: POST [18:09:42]URL: /json_proto [18:09:42]Method is POST - this is cgi request [18:09:42]url: /json_proto [18:09:42]query_string will be loaded in cgi processing [18:09:42]execute_cgi json_proto POST (null) [18:09:42]execute_cgi path=json_proto method=POST [18:09:42]POST find Content-Length [18:09:42]Host: 172.17.53.195:8080 [18:09:42]Content-Length: 682 [18:09:42]Content-Type: application/json [18:09:42] [18:09:42]POST finish read [18:09:42]Found Content-Length = 682 [18:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [18:09:42]execute_script... [18:09: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)220361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [18:09:42]POST & json_proto [18:09:42]process_json_proto [18:09:42]json parsed OK: [18:09:42]protocol is kg_v1.0 [18:09:42]action value=close_receipt [18:09:42]process_action close_receipt [18:09:42]cmd_close_receipt [18:09:42]MH_GetDate [18:09:42]Write to MH i2c: F0 00 00 47 0C 42 [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: F0 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: F0 09 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: F0 09 00 47 0C 00 73 47 15 67 21 48 4A 65 99 [18:09:42]GetLastDocTimeStamp 1729447352 [18:09:42]current date 1729447795 [18:09:42]FM_GetShiftState [18:09:42]SAM_PROTO_GetShiftState [18:09:42]wFMCommunicate request_size=4 [18:09:42]MH_SAM_APDU [18:09:42]CAPDU: 80 13 01 00 [18:09:42]Write to MH i2c: E2 08 00 48 0C 80 13 01 00 00 00 00 00 D1 [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:42]Read from MH i2c: E2 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 0E 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 0E 00 48 0C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 19 [18:09:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:09:42]wFMCommunicate OK [18:09:42]SAM_PROTO_GetShiftState done [18:09:42]FM_GetShiftState done [18:09:42]opened in 1729384561 [18:09:42]opened+sec_in_day 1729470961 [18:09:42]quantity*price = 150032 [18:09:42]sum+1 = 150033 [18:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 276 20.10.2024 18:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165794 ФПД: 262849121525785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180955&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165794&fm=262849121525785&tin=02508201610067®Number=0000000000091764&sum=150000 [18:09:43]StoreToDocumentArchive [18:09:43]shift 534 fd 165794 [18:09:43]save to /storage/0534/doc_00165794 [18:09:43]save last doc name /storage/0534/doc_00165794 to /storage/kkm_last_doc_name [18:09:43]save OK [18:09:43]Clear old archive folders... [18:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:43]tlvbuf is 01839500 [18:09:43]SAM_PROTO_ClearQueue [18:09:43]wFMCommunicate request_size=4 [18:09:43]MH_SAM_APDU [18:09:43]CAPDU: 80 09 00 00 [18:09:43]Write to MH i2c: E2 08 00 55 0C 80 09 00 00 00 00 00 00 D3 [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:43]Read from MH i2c: E2 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 55 0C 00 90 00 D5 [18:09:43]RAPDU: 90 00 [18:09:43]wFMCommunicate OK [18:09:43]SAM_PROTO_ClearQueue done [18:09:43]KKMCreateOFDPacket [18:09:43]OFDProtocolAddRootSTLVToBuf [18:09:43]FM_MakeSignedData [18:09:43]FM_MakeSignedData [18:09:43]SAM_PROTO_SignData [18:09:43]wFMCommunicate request_size=4 [18:09:43]MH_SAM_APDU [18:09:43]CAPDU: 80 0D 01 02 [18:09:43]Write to MH i2c: E2 08 00 56 0C 80 0D 01 02 00 00 00 00 DB [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:43]Read from MH i2c: E2 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 56 0C 00 90 00 D6 [18:09:43]RAPDU: 90 00 [18:09:43]wFMCommunicate OK [18:09:43]wFMCommunicate request_size=255 [18:09:43]MH_SAM_APDU [18:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 14 01 00 00 F4 03 04 00 73 47 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 87 02 00 35 04 06 00 EF [18:09:43]Write to MH i2c: E2 02 01 57 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 14 01 00 00 F4 03 04 00 73 47 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 87 02 00 35 04 06 00 EF 00 00 51 [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:43]Read from MH i2c: E2 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 57 0C 00 90 00 D7 [18:09:43]RAPDU: 90 00 [18:09:43]wFMCommunicate OK [18:09:43]wFMCommunicate request_size=10 [18:09:43]MH_SAM_APDU [18:09:43]CAPDU: 80 0D 02 02 05 0F 54 84 A0 19 [18:09:43]Write to MH i2c: E2 0D 00 58 0C 80 0D 02 02 05 00 0F 54 84 A0 19 00 00 88 [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:43]Read from MH i2c: E2 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [18:09:43]RAPDU: 90 00 [18:09:43]wFMCommunicate OK [18:09:43]wFMCommunicate request_size=4 [18:09:43]MH_SAM_APDU [18:09:43]CAPDU: 80 0D 03 02 [18:09:43]Write to MH i2c: E2 08 00 59 0C 80 0D 03 02 00 00 00 00 E0 [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:43]Read from MH i2c: E2 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 0B 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 0B 00 59 0C 00 B2 85 AD B1 70 65 15 83 90 00 E3 [18:09:43]RAPDU: B2 85 AD B1 70 65 15 83 90 00 [18:09:43]wFMCommunicate OK [18:09:43]SAM_PROTO_SignData done [18:09:43]FM_MakeSignedData done [18:09:43]CreateOFDProtocolMessage [18:09:43]wFMCommunicate request_size=4 [18:09:43]MH_SAM_APDU [18:09:43]CAPDU: 80 11 00 00 [18:09:43]Write to MH i2c: E2 08 00 5A 0C 80 11 00 00 00 00 00 00 E0 [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:43]Read from MH i2c: E2 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 17 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: E2 17 00 5A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [18:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:09:43]wFMCommunicate OK [18:09:43]CreateOFDProtocolMessage done [18:09:43]OFDSenderStorePacket 165794 [18:09:43]StoreOFDPacket docnum=165794 [18:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 39 07 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 14 01 00 00 F4 03 04 00 73 47 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 87 02 00 35 04 06 00 EF 0F 54 84 A0 19 B2 85 AD B1 70 65 15 83 [18:09:43]CheckFolder [18:09:43]dirname=/storage/ofd_packets [18:09:43]CheckFolder done [18:09:43]ProducePacketName [18:09:43]name=ofd_packets/00165794 [18:09:43]NVStorageSaveData ofd_packets/00165794 [18:09:43]File name is /storage/ofd_packets/00165794 [18:09:43]Write 301 bytes [18:09:43]NVStorageSaveData done [18:09:43]OFDSenderStorePacket done [18:09:43]KKMCreateOFDPacket done [18:09:43]NVStorageSaveData kkm_last_timestamp [18:09:43]File name is /storage/kkm_last_timestamp [18:09:43]Write 4 bytes [18:09:43]NVStorageSaveData done [18:09:43]ExternCall_PrintAddStr [18:09:43]wPrintStart [18:09:43]Write to MH i2c: 01 00 00 5B 0C 67 [18:09:43]Write i2c OK [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: 01 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: 01 07 00 [18:09:43]MH_I2C_Read... [18:09:43]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 FF 0F 7C [18:09:43]RasterBufferAndPrint [18:09:43]line Счет N : (1)220361 [18:09:43]line ИНН: 02508201610067 [18:09:43]line Контрольно-Кассовый Чек [18:09:43]line ПРОДАЖА [18:09:43]line ТРК (МРК, ГНК) : 24 [18:09:43]line Товар: 2710124500 [18:09:43]line Аи-95-К-5 [18:09:43]line 20.220 * 74.20 [18:09:43]line = 1500.32 [18:09:43]line НДС 12% НСП 1% [18:09:43]line > о реализуемом товаре [18:09:43]line ОКРУГЛЕНИЕ: -0.32 [18:09:43]line ИТОГО: 1500.00 [18:09:43]line Внесено: 1500.00 [18:09:43]line СДАЧА: 0.00 [18:09:43]line НСП 1% : 13.28 [18:09:43]line НДС 12% : 159.33 [18:09:43]line Наличными: 1500.00 [18:09:43]line Безнал.: 0.00 [18:09:43]line Место: АЗС № 161 "Партнер Нефть" [18:09:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:09:43]line СНО: Общий режим [18:09:43]line Чек 276 20.10.2024 18:09 [18:09:43]line Смена: 534 ФФД: 1.0 [18:09:43]line ЗНМ: 0300000104 [18:09:43]line РНМ: 0000000000091764 [18:09:43]line Версия ККМ: 001 [18:09:43]line ФМ: 0000000000871759 [18:09:43]line ФД: 165794 [18:09:43]line ФПД: 262849121525785 [18:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180955&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165794&fm=262849121525785&tin=02508201610067®Number=0000000000091764&sum=150000 [18:09:43]written 0, free lines is 4095 [18:09:43]OFD Sender: Processing packet 165794 [packets to send 48, broken 47] [18:09:43]ProducePacketName [18:09:43]name=ofd_packets/00165794 [18:09:43]OFD Sender: To server: pG, [18:09:43]CommunicateWithHost lk.salyk.kg:30040 [18:09:43]ConnectInit lk.salyk.kg [18:09:44]Connected sock=10 [18:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 39 07 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 3D 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 14 01 00 00 F4 03 04 00 73 47 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 87 02 00 35 04 06 00 EF 0F 54 84 A0 19 B2 85 AD B1 70 65 15 83 [18:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C FB 47 00 AE 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 31 37 35 39 10 04 04 00 A2 87 02 00 F4 03 04 00 E4 ED 14 67 B6 04 01 00 00 A7 63 F2 18 B1 23 1D 8D [18:09:44]CommunicateWithHost err = 0 [18:09:44]CheckOFDResponse [18:09:44]1017 (14) - 77093643461234 [18:09:44]1041 (16) - 0000000000871759 [18:09:44]1040 (4) - 165794 [18:09:44]1012 (4) - 20.10.2024 11:47 [18:09:44]1206 (1) - 0 [18:09:44]OFD Sender: Remove packet 165794 [18:09:44]ProducePacketName [18:09:44]name=ofd_packets/00165794 [18:09:44]NVStorageDeleteData [18:09:44]Write to MH i2c: 01 00 00 86 0C 92 [18:09:44]Write i2c OK [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: 01 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: 01 07 00 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: 01 07 00 86 0C 00 00 00 00 00 CA 0C 6F [18:09:44]RasterBufferAndPrint [18:09:44]line [18:09:44]line [18:09:44]line [18:09:44]line [18:09:44]line [18:09:44]written 0, free lines is 3280 [18:09:44]MH_Cut [18:09:44]Write to MH i2c: D1 01 00 8D 0C 01 6B [18:09:44]Write i2c OK [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: D1 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: D1 01 00 [18:09:44]MH_I2C_Read... [18:09:44]Read from MH i2c: D1 01 00 8D 0C 00 6A [18:09:44]Write to MH i2c: 01 00 00 8E 0C 9A [18:09:44]Write i2c OK [18:09:44]MH_I2C_Read... [18:09:44]OFD Sender: No OFD packet to send [18:09:45]*** Cut start [18:09:45]*** Partial cut [18:09:45]*** CUTSNS_PIN = 1 [18:09:45]*** CUTSNS_PIN = 0 [18:09:45]*** Brake cut motor [18:09:45]Read from MH i2c: 01 [18:09:45]MH_I2C_Read... [18:09:45]*** Stop cut motor [18:09:45]*** Cut end [18:09:45]Read from MH i2c: 01 07 00 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: 01 07 00 8E 0C 00 00 00 00 00 FF 0F AF [18:09:45]process_action close_receipt done [18:09:45]requested_data is exist [18:09:45]produce_requested_data [18:09:45]requested_item fm.sn is exist - process it [18:09:45]wFMCommunicate request_size=4 [18:09:45]MH_SAM_APDU [18:09:45]CAPDU: 80 11 00 00 [18:09:45]Write to MH i2c: E2 08 00 8F 0C 80 11 00 00 00 00 00 00 15 [18:09:45]Write i2c OK [18:09:45]MH_I2C_Read... [18:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:45]Read from MH i2c: E2 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 17 00 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 17 00 8F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [18:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:09:45]wFMCommunicate OK [18:09:45]requested_item fd.num is exist - process it [18:09:45]SAM_PROTO_GetFieldsCounters [18:09:45]wFMCommunicate request_size=4 [18:09:45]MH_SAM_APDU [18:09:45]CAPDU: 80 13 00 00 [18:09:45]Write to MH i2c: E2 08 00 90 0C 80 13 00 00 00 00 00 00 18 [18:09:45]Write i2c OK [18:09:45]MH_I2C_Read... [18:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:46]Read from MH i2c: E2 [18:09:46]MH_I2C_Read... [18:09:46]Read from MH i2c: E2 62 00 [18:09:46]MH_I2C_Read... [18:09:46]Read from MH i2c: E2 62 00 90 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 87 02 00 0E 04 04 00 16 02 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 C2 [18:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 87 02 00 0E 04 04 00 16 02 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:09:46]wFMCommunicate OK [18:09:46]SAM_PROTO_GetFieldsCounters done [18:09:46]requested_item shift.num is exist - process it [18:09:46]requested_item shift.opened is exist - process it [18:09:46]req_shift_opened [18:09:46]FM_GetShiftState [18:09:46]SAM_PROTO_GetShiftState [18:09:46]wFMCommunicate request_size=4 [18:09:46]MH_SAM_APDU [18:09:46]CAPDU: 80 13 01 00 [18:09:46]Write to MH i2c: E2 08 00 91 0C 80 13 01 00 00 00 00 00 1A [18:09:46]Write i2c OK [18:09:46]MH_I2C_Read... [18:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:46]Read from MH i2c: E2 [18:09:46]MH_I2C_Read... [18:09:46]Read from MH i2c: E2 0E 00 [18:09:46]MH_I2C_Read... [18:09:46]Read from MH i2c: E2 0E 00 91 0C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 62 [18:09:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:09:46]wFMCommunicate OK [18:09:46]SAM_PROTO_GetShiftState done [18:09:46]FM_GetShiftState done [18:09:46]req_shift_opened done [18:09:46]requested_item shift.open_date is exist - process it [18:09:46]req_shift_open_date [18:09:46]req_shift_open_date done [18:09:46]produce_requested_data done [18:09:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165794,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:09:46]process_action_free close_receipt [18:09:46]json_value_free [18:09:46]json_value_free done [18:09:46]process_json_proto returns [18:09:46]Send response to host [18:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165794,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:09:46]free response buf [18:09:46]execute_script done [18:09:46]execute_script returns [18:09:46]free content buf [18:09:46]Sock 9.Close socket [18:09:46]Sock 9.Thread stoped [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:58]accept exits with 7 [18:11:58]New connection [18:11:58]New thread 3066920292 created [18:11:58]Thread 3066776932 joined [18:11:58]Waiting for new connection... [18:11:58] Sock 7.Parse request [18:11:58]Sock 7.Check first char [18:11:58]Sock 7.First char is OK [18:11:58]request: POST /json_proto HTTP/1.0 [18:11:58]Method: POST [18:11:58]URL: /json_proto [18:11:58]Method is POST - this is cgi request [18:11:58]url: /json_proto [18:11:58]query_string will be loaded in cgi processing [18:11:58]execute_cgi json_proto POST (null) [18:11:58]execute_cgi path=json_proto method=POST [18:11:58]POST find Content-Length [18:11:58]Host: 172.17.53.195:8080 [18:11:58]Content-Length: 677 [18:11:58]Content-Type: application/json [18:11:58] [18:11:58]POST finish read [18:11:58]Found Content-Length = 677 [18:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:58]execute_script... [18:11: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)220362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:58]POST & json_proto [18:11:58]process_json_proto [18:11:58]json parsed OK: [18:11:58]protocol is kg_v1.0 [18:11:58]action value=close_receipt [18:11:58]process_action close_receipt [18:11:58]cmd_close_receipt [18:11:58]MH_GetDate [18:11:58]Write to MH i2c: F0 00 00 92 0C 8D [18:11:58]Write i2c OK [18:11:58]MH_I2C_Read... [18:11:58]Read from MH i2c: F0 [18:11:58]MH_I2C_Read... [18:11:58]Read from MH i2c: F0 09 00 [18:11:58]MH_I2C_Read... [18:11:58]Read from MH i2c: F0 09 00 92 0C 00 FB 47 15 67 21 48 4A 65 6C [18:11:58]GetLastDocTimeStamp 1729447795 [18:11:58]current date 1729447931 [18:11:58]FM_GetShiftState [18:11:58]SAM_PROTO_GetShiftState [18:11:58]wFMCommunicate request_size=4 [18:11:58]MH_SAM_APDU [18:11:58]CAPDU: 80 13 01 00 [18:11:58]Write to MH i2c: E2 08 00 93 0C 80 13 01 00 00 00 00 00 1C [18:11:58]Write i2c OK [18:11:58]MH_I2C_Read... [18:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:58]Read from MH i2c: E2 [18:11:58]MH_I2C_Read... [18:11:58]Read from MH i2c: E2 0E 00 [18:11:58]MH_I2C_Read... [18:11:58]Read from MH i2c: E2 0E 00 93 0C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 64 [18:11:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:11:58]wFMCommunicate OK [18:11:58]SAM_PROTO_GetShiftState done [18:11:58]FM_GetShiftState done [18:11:58]opened in 1729384561 [18:11:58]opened+sec_in_day 1729470961 [18:11:58]quantity*price = 30038 [18:11:58]sum+1 = 30039 [18:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 277 20.10.2024 18:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165795 ФПД: 158172069652781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181211&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165795&fm=158172069652781&tin=02508201610067®Number=0000000000091764&sum=30000 [18:11:59]StoreToDocumentArchive [18:11:59]shift 534 fd 165795 [18:11:59]save to /storage/0534/doc_00165795 [18:11:59]save last doc name /storage/0534/doc_00165795 to /storage/kkm_last_doc_name [18:11:59]save OK [18:11:59]Clear old archive folders... [18:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:59]tlvbuf is 014B8190 [18:11:59]SAM_PROTO_ClearQueue [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 09 00 00 [18:11:59]Write to MH i2c: E2 08 00 A0 0C 80 09 00 00 00 00 00 00 1E [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 03 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [18:11:59]RAPDU: 90 00 [18:11:59]wFMCommunicate OK [18:11:59]SAM_PROTO_ClearQueue done [18:11:59]KKMCreateOFDPacket [18:11:59]OFDProtocolAddRootSTLVToBuf [18:11:59]FM_MakeSignedData [18:11:59]FM_MakeSignedData [18:11:59]SAM_PROTO_SignData [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 0D 01 02 [18:11:59]Write to MH i2c: E2 08 00 A1 0C 80 0D 01 02 00 00 00 00 26 [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 03 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 03 00 A1 0C 00 90 00 21 [18:11:59]RAPDU: 90 00 [18:11:59]wFMCommunicate OK [18:11:59]wFMCommunicate request_size=255 [18:11:59]MH_SAM_APDU [18:11: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 FB 47 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 87 02 00 35 04 06 00 8F [18:11:59]Write to MH i2c: E2 02 01 A2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 FB 47 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 87 02 00 35 04 06 00 8F 00 00 57 [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 03 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 03 00 A2 0C 00 90 00 22 [18:11:59]RAPDU: 90 00 [18:11:59]wFMCommunicate OK [18:11:59]wFMCommunicate request_size=10 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 0D 02 02 05 DB 4E 06 69 2D [18:11:59]Write to MH i2c: E2 0D 00 A3 0C 80 0D 02 02 05 00 DB 4E 06 69 2D 00 00 F8 [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 03 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 03 00 A3 0C 00 90 00 23 [18:11:59]RAPDU: 90 00 [18:11:59]wFMCommunicate OK [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 0D 03 02 [18:11:59]Write to MH i2c: E2 08 00 A4 0C 80 0D 03 02 00 00 00 00 2B [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 0B 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 0B 00 A4 0C 00 42 E5 B3 78 83 66 BF 65 90 00 8B [18:11:59]RAPDU: 42 E5 B3 78 83 66 BF 65 90 00 [18:11:59]wFMCommunicate OK [18:11:59]SAM_PROTO_SignData done [18:11:59]FM_MakeSignedData done [18:11:59]CreateOFDProtocolMessage [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 11 00 00 [18:11:59]Write to MH i2c: E2 08 00 A5 0C 80 11 00 00 00 00 00 00 2B [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]OFD Sender: No OFD packet to send [18:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 17 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 17 00 A5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [18:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:11:59]wFMCommunicate OK [18:11:59]CreateOFDProtocolMessage done [18:11:59]OFDSenderStorePacket 165795 [18:11:59]StoreOFDPacket docnum=165795 [18:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 00 14 07 01 E3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 FB 47 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 87 02 00 35 04 06 00 8F DB 4E 06 69 2D 42 E5 B3 78 83 66 BF 65 [18:11:59]CheckFolder [18:11:59]dirname=/storage/ofd_packets [18:11:59]CheckFolder done [18:11:59]ProducePacketName [18:11:59]name=ofd_packets/00165795 [18:11:59]NVStorageSaveData ofd_packets/00165795 [18:11:59]File name is /storage/ofd_packets/00165795 [18:11:59]Write 301 bytes [18:11:59]NVStorageSaveData done [18:11:59]OFDSenderStorePacket done [18:11:59]KKMCreateOFDPacket done [18:11:59]NVStorageSaveData kkm_last_timestamp [18:11:59]File name is /storage/kkm_last_timestamp [18:11:59]Write 4 bytes [18:11:59]NVStorageSaveData done [18:11:59]ExternCall_PrintAddStr [18:11:59]wPrintStart [18:11:59]Write to MH i2c: 01 00 00 A6 0C B2 [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: 01 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: 01 07 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: 01 07 00 A6 0C 00 00 00 00 00 FF 0F C7 [18:11:59]RasterBufferAndPrint [18:11:59]line Счет N : (1)220362 [18:11:59]line ИНН: 02508201610067 [18:11:59]line Контрольно-Кассовый Чек [18:11:59]line ПРОДАЖА [18:11:59]line ТРК (МРК, ГНК) : 33 [18:11:59]line Товар: 2710124130 [18:11:59]line Аи-92-К-5 [18:11:59]line 4.490 * 66.90 [18:11:59]line = 300.38 [18:11:59]line НДС 12% НСП 1% [18:11:59]line > о реализуемом товаре [18:11:59]line ОКРУГЛЕНИЕ: -0.38 [18:11:59]line ИТОГО: 300.00 [18:11:59]line Внесено: 300.00 [18:11:59]line СДАЧА: 0.00 [18:11:59]line НСП 1% : 2.66 [18:11:59]line НДС 12% : 31.90 [18:11:59]line Наличными: 300.00 [18:11:59]line Безнал.: 0.00 [18:11:59]line Место: АЗС № 161 "Партнер Нефть" [18:11:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:11:59]line СНО: Общий режим [18:11:59]line Чек 277 20.10.2024 18:12 [18:11:59]line Смена: 534 ФФД: 1.0 [18:11:59]line ЗНМ: 0300000104 [18:11:59]line РНМ: 0000000000091764 [18:11:59]line Версия ККМ: 001 [18:11:59]line ФМ: 0000000000871759 [18:11:59]line ФД: 165795 [18:11:59]line ФПД: 158172069652781 [18:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181211&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165795&fm=158172069652781&tin=02508201610067®Number=0000000000091764&sum=30000 [18:12:00]OFD Sender: Processing packet 165795 [packets to send 48, broken 47] [18:12:00]ProducePacketName [18:12:00]name=ofd_packets/00165795 [18:12:00]OFD Sender: To server: pG, [18:12:00]CommunicateWithHost lk.salyk.kg:30040 [18:12:00]ConnectInit lk.salyk.kg [18:12:00]written 0, free lines is 4095 [18:12:00]Connected sock=10 [18:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 00 14 07 01 E3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 FB 47 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 87 02 00 35 04 06 00 8F DB 4E 06 69 2D 42 E5 B3 78 83 66 BF 65 [18:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A1 15 47 00 E9 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 87 02 00 F4 03 04 00 6D EE 14 67 B6 04 01 00 00 5D D2 F5 B9 28 B5 16 39 [18:12:00]CommunicateWithHost err = 0 [18:12:00]CheckOFDResponse [18:12:00]1017 (14) - 77093643461234 [18:12:00]1041 (16) - 0000000000871759 [18:12:00]1040 (4) - 165795 [18:12:00]1012 (4) - 20.10.2024 11:50 [18:12:00]1206 (1) - 0 [18:12:00]OFD Sender: Remove packet 165795 [18:12:00]ProducePacketName [18:12:00]name=ofd_packets/00165795 [18:12:00]NVStorageDeleteData [18:12:00]Write to MH i2c: 01 00 00 D1 0C DD [18:12:00]Write i2c OK [18:12:00]MH_I2C_Read... [18:12:00]Read from MH i2c: 01 [18:12:00]MH_I2C_Read... [18:12:00]Read from MH i2c: 01 07 00 [18:12:00]MH_I2C_Read... [18:12:00]Read from MH i2c: 01 07 00 D1 0C 00 00 00 00 00 CD 0C BD [18:12:00]RasterBufferAndPrint [18:12:00]line [18:12:00]line [18:12:00]line [18:12:00]line [18:12:00]line [18:12:00]written 0, free lines is 3283 [18:12:00]MH_Cut [18:12:00]Write to MH i2c: D1 01 00 D8 0C 01 B6 [18:12:00]Write i2c OK [18:12:00]MH_I2C_Read... [18:12:00]Read from MH i2c: D1 [18:12:00]MH_I2C_Read... [18:12:00]Read from MH i2c: D1 01 00 [18:12:00]MH_I2C_Read... [18:12:00]Read from MH i2c: D1 01 00 D8 0C 00 B5 [18:12:00]Write to MH i2c: 01 00 00 D9 0C E5 [18:12:00]Write i2c OK [18:12:00]MH_I2C_Read... [18:12:01]OFD Sender: No OFD packet to send [18:12:01]*** Cut start [18:12:01]*** Partial cut [18:12:01]*** CUTSNS_PIN = 1 [18:12:01]*** CUTSNS_PIN = 0 [18:12:01]*** Brake cut motor [18:12:02]Read from MH i2c: 01 [18:12:02]MH_I2C_Read... [18:12:02]*** Stop cut motor [18:12:02]*** Cut end [18:12:02]Read from MH i2c: 01 07 00 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: 01 07 00 D9 0C 00 00 00 00 00 FF 0F FA [18:12:02]process_action close_receipt done [18:12:02]requested_data is exist [18:12:02]produce_requested_data [18:12:02]requested_item fm.sn is exist - process it [18:12:02]wFMCommunicate request_size=4 [18:12:02]MH_SAM_APDU [18:12:02]CAPDU: 80 11 00 00 [18:12:02]Write to MH i2c: E2 08 00 DA 0C 80 11 00 00 00 00 00 00 60 [18:12:02]Write i2c OK [18:12:02]MH_I2C_Read... [18:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:02]Read from MH i2c: E2 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: E2 17 00 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: E2 17 00 DA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B8 [18:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:12:02]wFMCommunicate OK [18:12:02]requested_item fd.num is exist - process it [18:12:02]SAM_PROTO_GetFieldsCounters [18:12:02]wFMCommunicate request_size=4 [18:12:02]MH_SAM_APDU [18:12:02]CAPDU: 80 13 00 00 [18:12:02]Write to MH i2c: E2 08 00 DB 0C 80 13 00 00 00 00 00 00 63 [18:12:02]Write i2c OK [18:12:02]MH_I2C_Read... [18:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:02]Read from MH i2c: E2 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: E2 62 00 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: E2 62 00 DB 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 87 02 00 0E 04 04 00 16 02 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 11 [18:12:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 87 02 00 0E 04 04 00 16 02 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:12:02]wFMCommunicate OK [18:12:02]SAM_PROTO_GetFieldsCounters done [18:12:02]requested_item shift.num is exist - process it [18:12:02]requested_item shift.opened is exist - process it [18:12:02]req_shift_opened [18:12:02]FM_GetShiftState [18:12:02]SAM_PROTO_GetShiftState [18:12:02]wFMCommunicate request_size=4 [18:12:02]MH_SAM_APDU [18:12:02]CAPDU: 80 13 01 00 [18:12:02]Write to MH i2c: E2 08 00 DC 0C 80 13 01 00 00 00 00 00 65 [18:12:02]Write i2c OK [18:12:02]MH_I2C_Read... [18:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:02]Read from MH i2c: E2 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: E2 0E 00 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: E2 0E 00 DC 0C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AD [18:12:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:12:02]wFMCommunicate OK [18:12:02]SAM_PROTO_GetShiftState done [18:12:02]FM_GetShiftState done [18:12:02]req_shift_opened done [18:12:02]requested_item shift.open_date is exist - process it [18:12:02]req_shift_open_date [18:12:02]req_shift_open_date done [18:12:02]produce_requested_data done [18:12:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165795,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:12:02]process_action_free close_receipt [18:12:02]json_value_free [18:12:02]json_value_free done [18:12:02]process_json_proto returns [18:12:02]Send response to host [18:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165795,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:12:02]free response buf [18:12:02]execute_script done [18:12:02]execute_script returns [18:12:02]free content buf [18:12:02]Sock 7.Close socket [18:12:02]Sock 7.Thread stoped [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:09]accept exits with 9 [18:14:09]New connection [18:14:09]New thread 3066776932 created [18:14:09]Thread 3066920292 joined [18:14:09]Waiting for new connection... [18:14:09] Sock 9.Parse request [18:14:09]Sock 9.Check first char [18:14:09]Sock 9.First char is OK [18:14:09]request: POST /json_proto HTTP/1.0 [18:14:09]Method: POST [18:14:09]URL: /json_proto [18:14:09]Method is POST - this is cgi request [18:14:09]url: /json_proto [18:14:09]query_string will be loaded in cgi processing [18:14:09]execute_cgi json_proto POST (null) [18:14:09]execute_cgi path=json_proto method=POST [18:14:09]POST find Content-Length [18:14:09]Host: 172.17.53.195:8080 [18:14:09]Content-Length: 674 [18:14:09]Content-Type: application/json [18:14:09] [18:14:09]POST finish read [18:14:09]Found Content-Length = 674 [18:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220364", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:14:09]execute_script... [18:14: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)220364", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:14:09]POST & json_proto [18:14:09]process_json_proto [18:14:09]json parsed OK: [18:14:09]protocol is kg_v1.0 [18:14:09]action value=close_receipt [18:14:09]process_action close_receipt [18:14:09]cmd_close_receipt [18:14:09]MH_GetDate [18:14:09]Write to MH i2c: F0 00 00 DD 0C D8 [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: F0 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: F0 09 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: F0 09 00 DD 0C 00 7F 48 15 67 21 48 4A 65 3C [18:14:09]GetLastDocTimeStamp 1729447931 [18:14:09]current date 1729448063 [18:14:09]FM_GetShiftState [18:14:09]SAM_PROTO_GetShiftState [18:14:09]wFMCommunicate request_size=4 [18:14:09]MH_SAM_APDU [18:14:09]CAPDU: 80 13 01 00 [18:14:09]Write to MH i2c: E2 08 00 DE 0C 80 13 01 00 00 00 00 00 67 [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 0E 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 0E 00 DE 0C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AF [18:14:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:14:09]wFMCommunicate OK [18:14:09]SAM_PROTO_GetShiftState done [18:14:09]FM_GetShiftState done [18:14:09]opened in 1729384561 [18:14:09]opened+sec_in_day 1729470961 [18:14:09]quantity*price = 50063 [18:14:09]sum+1 = 50064 [18:14:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 278 20.10.2024 18:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165796 ФПД: 65041881772888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181423&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165796&fm=65041881772888&tin=02508201610067®Number=0000000000091764&sum=50000 [18:14:11]StoreToDocumentArchive [18:14:11]shift 534 fd 165796 [18:14:11]save to /storage/0534/doc_00165796 [18:14:11]save last doc name /storage/0534/doc_00165796 to /storage/kkm_last_doc_name [18:14:11]save OK [18:14:11]Clear old archive folders... [18:14:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:14:11]tlvbuf is 0166B440 [18:14:11]SAM_PROTO_ClearQueue [18:14:11]wFMCommunicate request_size=4 [18:14:11]MH_SAM_APDU [18:14:11]CAPDU: 80 09 00 00 [18:14:11]Write to MH i2c: E2 08 00 EB 0C 80 09 00 00 00 00 00 00 69 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 03 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 03 00 EB 0C 00 90 00 6B [18:14:11]RAPDU: 90 00 [18:14:11]wFMCommunicate OK [18:14:11]SAM_PROTO_ClearQueue done [18:14:11]KKMCreateOFDPacket [18:14:11]OFDProtocolAddRootSTLVToBuf [18:14:11]FM_MakeSignedData [18:14:11]FM_MakeSignedData [18:14:11]SAM_PROTO_SignData [18:14:11]wFMCommunicate request_size=4 [18:14:11]MH_SAM_APDU [18:14:11]CAPDU: 80 0D 01 02 [18:14:11]Write to MH i2c: E2 08 00 EC 0C 80 0D 01 02 00 00 00 00 71 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 03 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 03 00 EC 0C 00 90 00 6C [18:14:11]RAPDU: 90 00 [18:14:11]wFMCommunicate OK [18:14:11]wFMCommunicate request_size=255 [18:14:11]MH_SAM_APDU [18:14: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 16 01 00 00 F4 03 04 00 7F 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 87 02 00 35 04 06 00 3B 27 BE 42 [18:14:11]Write to MH i2c: E2 02 01 ED 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 16 01 00 00 F4 03 04 00 7F 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 87 02 00 35 04 06 00 3B 27 BE 42 00 00 86 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]OFD Sender: No OFD packet to send [18:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 03 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 03 00 ED 0C 00 90 00 6D [18:14:11]RAPDU: 90 00 [18:14:11]wFMCommunicate OK [18:14:11]wFMCommunicate request_size=7 [18:14:11]MH_SAM_APDU [18:14:11]CAPDU: 80 0D 02 02 02 33 58 [18:14:11]Write to MH i2c: E2 0A 00 EE 0C 80 0D 02 02 02 00 33 58 00 00 03 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 03 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 03 00 EE 0C 00 90 00 6E [18:14:11]RAPDU: 90 00 [18:14:11]wFMCommunicate OK [18:14:11]wFMCommunicate request_size=4 [18:14:11]MH_SAM_APDU [18:14:11]CAPDU: 80 0D 03 02 [18:14:11]Write to MH i2c: E2 08 00 EF 0C 80 0D 03 02 00 00 00 00 76 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 0B 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 0B 00 EF 0C 00 D8 87 24 E4 F6 04 A5 13 90 00 90 [18:14:11]RAPDU: D8 87 24 E4 F6 04 A5 13 90 00 [18:14:11]wFMCommunicate OK [18:14:11]SAM_PROTO_SignData done [18:14:11]FM_MakeSignedData done [18:14:11]CreateOFDProtocolMessage [18:14:11]wFMCommunicate request_size=4 [18:14:11]MH_SAM_APDU [18:14:11]CAPDU: 80 11 00 00 [18:14:11]Write to MH i2c: E2 08 00 F0 0C 80 11 00 00 00 00 00 00 76 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 17 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 17 00 F0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [18:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:11]wFMCommunicate OK [18:14:11]CreateOFDProtocolMessage done [18:14:11]OFDSenderStorePacket 165796 [18:14:11]StoreOFDPacket docnum=165796 [18:14:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5F 00 04 01 41 9D 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 16 01 00 00 F4 03 04 00 7F 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 87 02 00 35 04 06 00 3B 27 BE 42 33 58 D8 87 24 E4 F6 04 A5 13 [18:14:11]CheckFolder [18:14:11]dirname=/storage/ofd_packets [18:14:11]CheckFolder done [18:14:11]ProducePacketName [18:14:11]name=ofd_packets/00165796 [18:14:11]NVStorageSaveData ofd_packets/00165796 [18:14:11]File name is /storage/ofd_packets/00165796 [18:14:11]Write 298 bytes [18:14:11]NVStorageSaveData done [18:14:11]OFDSenderStorePacket done [18:14:11]KKMCreateOFDPacket done [18:14:11]NVStorageSaveData kkm_last_timestamp [18:14:11]File name is /storage/kkm_last_timestamp [18:14:11]Write 4 bytes [18:14:11]NVStorageSaveData done [18:14:11]ExternCall_PrintAddStr [18:14:11]wPrintStart [18:14:11]Write to MH i2c: 01 00 00 F1 0C FD [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 F1 0C 00 00 00 00 00 FF 0F 12 [18:14:11]RasterBufferAndPrint [18:14:11]line Счет N : (1)220364 [18:14:11]line ИНН: 02508201610067 [18:14:11]line Контрольно-Кассовый Чек [18:14:11]line ПРОДАЖА [18:14:11]line ТРК (МРК, ГНК) : 21 [18:14:11]line Товар: 2710194210 [18:14:11]line ДТ-К-5 [18:14:11]line 6.570 * 76.20 [18:14:11]line = 500.63 [18:14:11]line НДС 12% НСП 1% [18:14:11]line > о реализуемом товаре [18:14:11]line ОКРУГЛЕНИЕ: -0.63 [18:14:11]line ИТОГО: 500.00 [18:14:11]line Внесено: 500.00 [18:14:11]line СДАЧА: 0.00 [18:14:11]line НСП 1% : 4.43 [18:14:11]line НДС 12% : 53.16 [18:14:11]line Наличными: 500.00 [18:14:11]line Безнал.: 0.00 [18:14:11]line Место: АЗС № 161 "Партнер Нефть" [18:14:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:14:11]line СНО: Общий режим [18:14:11]line Чек 278 20.10.2024 18:14 [18:14:11]line Смена: 534 ФФД: 1.0 [18:14:11]line ЗНМ: 0300000104 [18:14:11]line РНМ: 0000000000091764 [18:14:11]line Версия ККМ: 001 [18:14:11]line ФМ: 0000000000871759 [18:14:11]line ФД: 165796 [18:14:11]line ФПД: 65041881772888 [18:14:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181423&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165796&fm=65041881772888&tin=02508201610067®Number=0000000000091764&sum=50000 [18:14:11]OFD Sender: Processing packet 165796 [packets to send 48, broken 47] [18:14:11]ProducePacketName [18:14:11]name=ofd_packets/00165796 [18:14:11]OFD Sender: To server: pG, [18:14:11]CommunicateWithHost lk.salyk.kg:30040 [18:14:11]ConnectInit lk.salyk.kg [18:14:11]written 0, free lines is 4095 [18:14:12]Connected sock=10 [18:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5F 00 04 01 41 9D 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 16 01 00 00 F4 03 04 00 7F 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 87 02 00 35 04 06 00 3B 27 BE 42 33 58 D8 87 24 E4 F6 04 A5 13 [18:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7F 4F 47 00 32 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 87 02 00 F4 03 04 00 F0 EE 14 67 B6 04 01 00 00 AD 3A 46 BC B9 BA 70 98 [18:14:12]CommunicateWithHost err = 0 [18:14:12]CheckOFDResponse [18:14:12]1017 (14) - 77093643461234 [18:14:12]1041 (16) - 0000000000871759 [18:14:12]1040 (4) - 165796 [18:14:12]1012 (4) - 20.10.2024 11:52 [18:14:12]1206 (1) - 0 [18:14:12]OFD Sender: Remove packet 165796 [18:14:12]ProducePacketName [18:14:12]name=ofd_packets/00165796 [18:14:12]NVStorageDeleteData [18:14:12]Write to MH i2c: 01 00 00 1C 0D 29 [18:14:12]Write i2c OK [18:14:12]MH_I2C_Read... [18:14:12]Read from MH i2c: 01 [18:14:12]MH_I2C_Read... [18:14:12]Read from MH i2c: 01 07 00 [18:14:12]MH_I2C_Read... [18:14:12]Read from MH i2c: 01 07 00 1C 0D 00 00 00 00 00 B5 0C F1 [18:14:12]RasterBufferAndPrint [18:14:12]line [18:14:12]line [18:14:12]line [18:14:12]line [18:14:12]line [18:14:12]written 0, free lines is 3259 [18:14:12]MH_Cut [18:14:12]Write to MH i2c: D1 01 00 23 0D 01 02 [18:14:12]Write i2c OK [18:14:12]MH_I2C_Read... [18:14:12]Read from MH i2c: D1 [18:14:12]MH_I2C_Read... [18:14:12]Read from MH i2c: D1 01 00 [18:14:12]MH_I2C_Read... [18:14:12]Read from MH i2c: D1 01 00 23 0D 00 01 [18:14:12]Write to MH i2c: 01 00 00 24 0D 31 [18:14:12]Write i2c OK [18:14:12]MH_I2C_Read... [18:14:12]OFD Sender: No OFD packet to send [18:14:13]*** Cut start [18:14:13]*** Partial cut [18:14:13]*** CUTSNS_PIN = 1 [18:14:13]*** CUTSNS_PIN = 0 [18:14:13]*** Brake cut motor [18:14:13]Read from MH i2c: 01 [18:14:13]MH_I2C_Read... [18:14:13]*** Stop cut motor [18:14:13]*** Cut end [18:14:13]Read from MH i2c: 01 07 00 [18:14:13]MH_I2C_Read... [18:14:13]Read from MH i2c: 01 07 00 24 0D 00 00 00 00 00 FF 0F 46 [18:14:13]process_action close_receipt done [18:14:13]requested_data is exist [18:14:13]produce_requested_data [18:14:13]requested_item fm.sn is exist - process it [18:14:13]wFMCommunicate request_size=4 [18:14:13]MH_SAM_APDU [18:14:13]CAPDU: 80 11 00 00 [18:14:13]Write to MH i2c: E2 08 00 25 0D 80 11 00 00 00 00 00 00 AC [18:14:13]Write i2c OK [18:14:13]MH_I2C_Read... [18:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:13]Read from MH i2c: E2 [18:14:13]MH_I2C_Read... [18:14:13]Read from MH i2c: E2 17 00 [18:14:13]MH_I2C_Read... [18:14:13]Read from MH i2c: E2 17 00 25 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [18:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:13]wFMCommunicate OK [18:14:13]requested_item fd.num is exist - process it [18:14:13]SAM_PROTO_GetFieldsCounters [18:14:13]wFMCommunicate request_size=4 [18:14:13]MH_SAM_APDU [18:14:13]CAPDU: 80 13 00 00 [18:14:13]Write to MH i2c: E2 08 00 26 0D 80 13 00 00 00 00 00 00 AF [18:14:13]Write i2c OK [18:14:13]MH_I2C_Read... [18:14:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:14]Read from MH i2c: E2 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: E2 62 00 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: E2 62 00 26 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 87 02 00 0E 04 04 00 16 02 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 61 [18:14:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 87 02 00 0E 04 04 00 16 02 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:14:14]wFMCommunicate OK [18:14:14]SAM_PROTO_GetFieldsCounters done [18:14:14]requested_item shift.num is exist - process it [18:14:14]requested_item shift.opened is exist - process it [18:14:14]req_shift_opened [18:14:14]FM_GetShiftState [18:14:14]SAM_PROTO_GetShiftState [18:14:14]wFMCommunicate request_size=4 [18:14:14]MH_SAM_APDU [18:14:14]CAPDU: 80 13 01 00 [18:14:14]Write to MH i2c: E2 08 00 27 0D 80 13 01 00 00 00 00 00 B1 [18:14:14]Write i2c OK [18:14:14]MH_I2C_Read... [18:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:14]Read from MH i2c: E2 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: E2 0E 00 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: E2 0E 00 27 0D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F9 [18:14:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:14:14]wFMCommunicate OK [18:14:14]SAM_PROTO_GetShiftState done [18:14:14]FM_GetShiftState done [18:14:14]req_shift_opened done [18:14:14]requested_item shift.open_date is exist - process it [18:14:14]req_shift_open_date [18:14:14]req_shift_open_date done [18:14:14]produce_requested_data done [18:14:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165796,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:14:14]process_action_free close_receipt [18:14:14]json_value_free [18:14:14]json_value_free done [18:14:14]process_json_proto returns [18:14:14]Send response to host [18:14:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165796,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:14:14]free response buf [18:14:14]execute_script done [18:14:14]execute_script returns [18:14:14]free content buf [18:14:14]Sock 9.Close socket [18:14:14]Sock 9.Thread stoped [18:14:17]accept exits with 7 [18:14:17]New connection [18:14:17]New thread 3066920292 created [18:14:17]Thread 3066776932 joined [18:14:17]Waiting for new connection... [18:14:17] Sock 7.Parse request [18:14:17]Sock 7.Check first char [18:14:17]Sock 7.First char is OK [18:14:17]request: POST /json_proto HTTP/1.0 [18:14:17]Method: POST [18:14:17]URL: /json_proto [18:14:17]Method is POST - this is cgi request [18:14:17]url: /json_proto [18:14:17]query_string will be loaded in cgi processing [18:14:17]execute_cgi json_proto POST (null) [18:14:17]execute_cgi path=json_proto method=POST [18:14:17]POST find Content-Length [18:14:17]Host: 172.17.53.195:8080 [18:14:17]Content-Length: 676 [18:14:17]Content-Type: application/json [18:14:17] [18:14:17]POST finish read [18:14:17]Found Content-Length = 676 [18:14:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220365", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:17]execute_script... [18:14: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)220365", "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" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:17]POST & json_proto [18:14:17]process_json_proto [18:14:17]json parsed OK: [18:14:17]protocol is kg_v1.0 [18:14:17]action value=close_receipt [18:14:17]process_action close_receipt [18:14:17]cmd_close_receipt [18:14:17]MH_GetDate [18:14:17]Write to MH i2c: F0 00 00 28 0D 24 [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 09 00 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 09 00 28 0D 00 86 48 15 67 21 48 4A 65 8F [18:14:17]GetLastDocTimeStamp 1729448063 [18:14:17]current date 1729448070 [18:14:17]FM_GetShiftState [18:14:17]SAM_PROTO_GetShiftState [18:14:17]wFMCommunicate request_size=4 [18:14:17]MH_SAM_APDU [18:14:17]CAPDU: 80 13 01 00 [18:14:17]Write to MH i2c: E2 08 00 29 0D 80 13 01 00 00 00 00 00 B3 [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:17]Read from MH i2c: E2 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: E2 0E 00 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: E2 0E 00 29 0D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FB [18:14:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:14:17]wFMCommunicate OK [18:14:17]SAM_PROTO_GetShiftState done [18:14:17]FM_GetShiftState done [18:14:17]opened in 1729384561 [18:14:17]opened+sec_in_day 1729470961 [18:14:17]quantity*price = 99974 [18:14:17]sum+1 = 99975 [18:14:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 279 20.10.2024 18:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165797 ФПД: 122319715919647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165797&fm=122319715919647&tin=02508201610067®Number=0000000000091764&sum=99900 [18:14:18]StoreToDocumentArchive [18:14:18]shift 534 fd 165797 [18:14:18]save to /storage/0534/doc_00165797 [18:14:18]save last doc name /storage/0534/doc_00165797 to /storage/kkm_last_doc_name [18:14:18]save OK [18:14:18]Clear old archive folders... [18:14:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:14:18]tlvbuf is 01A0AB90 [18:14:18]SAM_PROTO_ClearQueue [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 09 00 00 [18:14:18]Write to MH i2c: E2 08 00 36 0D 80 09 00 00 00 00 00 00 B5 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 36 0D 00 90 00 B7 [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]SAM_PROTO_ClearQueue done [18:14:18]KKMCreateOFDPacket [18:14:18]OFDProtocolAddRootSTLVToBuf [18:14:18]FM_MakeSignedData [18:14:18]FM_MakeSignedData [18:14:18]SAM_PROTO_SignData [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 01 02 [18:14:18]Write to MH i2c: E2 08 00 37 0D 80 0D 01 02 00 00 00 00 BD [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 37 0D 00 90 00 B8 [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=255 [18:14:18]MH_SAM_APDU [18:14: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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 86 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 87 02 00 35 04 06 00 6F 3F C7 37 [18:14:18]Write to MH i2c: E2 02 01 38 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 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 86 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 87 02 00 35 04 06 00 6F 3F C7 37 00 00 76 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 38 0D 00 90 00 B9 [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=7 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 02 02 02 67 1F [18:14:18]Write to MH i2c: E2 0A 00 39 0D 80 0D 02 02 02 00 67 1F 00 00 4A [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 39 0D 00 90 00 BA [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 03 02 [18:14:18]Write to MH i2c: E2 08 00 3A 0D 80 0D 03 02 00 00 00 00 C2 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 0B 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 0B 00 3A 0D 00 9C 82 15 A5 C8 3B F8 B2 90 00 48 [18:14:18]RAPDU: 9C 82 15 A5 C8 3B F8 B2 90 00 [18:14:18]wFMCommunicate OK [18:14:18]SAM_PROTO_SignData done [18:14:18]FM_MakeSignedData done [18:14:18]CreateOFDProtocolMessage [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 11 00 00 [18:14:18]Write to MH i2c: E2 08 00 3B 0D 80 11 00 00 00 00 00 00 C2 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 17 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 17 00 3B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [18:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:18]wFMCommunicate OK [18:14:18]CreateOFDProtocolMessage done [18:14:18]OFDSenderStorePacket 165797 [18:14:18]StoreOFDPacket docnum=165797 [18:14:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AE 1C 04 01 91 49 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 86 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 87 02 00 35 04 06 00 6F 3F C7 37 67 1F 9C 82 15 A5 C8 3B F8 B2 [18:14:18]CheckFolder [18:14:18]dirname=/storage/ofd_packets [18:14:18]CheckFolder done [18:14:18]ProducePacketName [18:14:18]name=ofd_packets/00165797 [18:14:18]NVStorageSaveData ofd_packets/00165797 [18:14:18]File name is /storage/ofd_packets/00165797 [18:14:18]Write 298 bytes [18:14:18]NVStorageSaveData done [18:14:18]OFDSenderStorePacket done [18:14:18]KKMCreateOFDPacket done [18:14:18]NVStorageSaveData kkm_last_timestamp [18:14:18]File name is /storage/kkm_last_timestamp [18:14:18]Write 4 bytes [18:14:18]NVStorageSaveData done [18:14:18]ExternCall_PrintAddStr [18:14:18]wPrintStart [18:14:18]Write to MH i2c: 01 00 00 3C 0D 49 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 07 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 07 00 3C 0D 00 00 00 00 00 FF 0F 5E [18:14:18]RasterBufferAndPrint [18:14:18]line Счет N : (1)220365 [18:14:18]line ИНН: 02508201610067 [18:14:18]line Контрольно-Кассовый Чек [18:14:18]line ПРОДАЖА [18:14:18]line ТРК (МРК, ГНК) : 11 [18:14:18]line Товар: 2710194210 [18:14:18]line ДТ-К-5 [18:14:18]line 13.120 * 76.20 [18:14:18]line = 999.74 [18:14:18]line НДС 12% НСП 1% [18:14:18]line > о реализуемом товаре [18:14:18]line ОКРУГЛЕНИЕ: -0.74 [18:14:18]line ИТОГО: 999.00 [18:14:18]line Внесено: 1000.00 [18:14:18]line СДАЧА: 1.00 [18:14:18]line НСП 1% : 8.85 [18:14:18]line НДС 12% : 106.17 [18:14:18]line Наличными: 999.00 [18:14:18]line Безнал.: 0.00 [18:14:18]line Место: АЗС № 161 "Партнер Нефть" [18:14:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:14:18]line СНО: Общий режим [18:14:18]line Чек 279 20.10.2024 18:14 [18:14:18]line Смена: 534 ФФД: 1.0 [18:14:18]line ЗНМ: 0300000104 [18:14:18]line РНМ: 0000000000091764 [18:14:18]line Версия ККМ: 001 [18:14:18]line ФМ: 0000000000871759 [18:14:18]line ФД: 165797 [18:14:18]line ФПД: 122319715919647 [18:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165797&fm=122319715919647&tin=02508201610067®Number=0000000000091764&sum=99900 [18:14:18]written 0, free lines is 4095 [18:14:18]OFD Sender: Processing packet 165797 [packets to send 48, broken 47] [18:14:18]ProducePacketName [18:14:18]name=ofd_packets/00165797 [18:14:18]OFD Sender: To server: pG, [18:14:18]CommunicateWithHost lk.salyk.kg:30040 [18:14:18]ConnectInit lk.salyk.kg [18:14:18]Connected sock=10 [18:14:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AE 1C 04 01 91 49 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 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 86 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 87 02 00 35 04 06 00 6F 3F C7 37 67 1F 9C 82 15 A5 C8 3B F8 B2 [18:14:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 94 83 47 00 F1 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 31 37 35 39 10 04 04 00 A5 87 02 00 F4 03 04 00 F7 EE 14 67 B6 04 01 00 00 B5 C5 77 98 8A AA FE 2A [18:14:19]CommunicateWithHost err = 0 [18:14:19]CheckOFDResponse [18:14:19]1017 (14) - 77093643461234 [18:14:19]1041 (16) - 0000000000871759 [18:14:19]1040 (4) - 165797 [18:14:19]1012 (4) - 20.10.2024 11:52 [18:14:19]1206 (1) - 0 [18:14:19]OFD Sender: Remove packet 165797 [18:14:19]ProducePacketName [18:14:19]name=ofd_packets/00165797 [18:14:19]NVStorageDeleteData [18:14:19]Write to MH i2c: 01 00 00 67 0D 74 [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 07 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 07 00 67 0D 00 00 00 00 00 CD 0C 54 [18:14:19]RasterBufferAndPrint [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]written 0, free lines is 3286 [18:14:19]MH_Cut [18:14:19]Write to MH i2c: D1 01 00 6E 0D 01 4D [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: D1 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: D1 01 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: D1 01 00 6E 0D 00 4C [18:14:19]Write to MH i2c: 01 00 00 6F 0D 7C [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]OFD Sender: No OFD packet to send [18:14:20]*** Cut start [18:14:20]*** Partial cut [18:14:20]*** CUTSNS_PIN = 1 [18:14:20]*** CUTSNS_PIN = 0 [18:14:20]*** Brake cut motor [18:14:20]Read from MH i2c: 01 [18:14:20]MH_I2C_Read... [18:14:20]*** Stop cut motor [18:14:20]*** Cut end [18:14:20]Read from MH i2c: 01 07 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: 01 07 00 6F 0D 00 00 00 00 00 FF 0F 91 [18:14:20]process_action close_receipt done [18:14:20]requested_data is exist [18:14:20]produce_requested_data [18:14:20]requested_item fm.sn is exist - process it [18:14:20]wFMCommunicate request_size=4 [18:14:20]MH_SAM_APDU [18:14:20]CAPDU: 80 11 00 00 [18:14:20]Write to MH i2c: E2 08 00 70 0D 80 11 00 00 00 00 00 00 F7 [18:14:20]Write i2c OK [18:14:20]MH_I2C_Read... [18:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:20]Read from MH i2c: E2 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 17 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 17 00 70 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4F [18:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:20]wFMCommunicate OK [18:14:20]requested_item fd.num is exist - process it [18:14:20]SAM_PROTO_GetFieldsCounters [18:14:20]wFMCommunicate request_size=4 [18:14:20]MH_SAM_APDU [18:14:20]CAPDU: 80 13 00 00 [18:14:20]Write to MH i2c: E2 08 00 71 0D 80 13 00 00 00 00 00 00 FA [18:14:20]Write i2c OK [18:14:20]MH_I2C_Read... [18:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:20]Read from MH i2c: E2 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 62 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 62 00 71 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 87 02 00 0E 04 04 00 16 02 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 B0 [18:14:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 87 02 00 0E 04 04 00 16 02 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:14:20]wFMCommunicate OK [18:14:20]SAM_PROTO_GetFieldsCounters done [18:14:20]requested_item shift.num is exist - process it [18:14:20]requested_item shift.opened is exist - process it [18:14:20]req_shift_opened [18:14:20]FM_GetShiftState [18:14:20]SAM_PROTO_GetShiftState [18:14:20]wFMCommunicate request_size=4 [18:14:20]MH_SAM_APDU [18:14:20]CAPDU: 80 13 01 00 [18:14:20]Write to MH i2c: E2 08 00 72 0D 80 13 01 00 00 00 00 00 FC [18:14:20]Write i2c OK [18:14:20]MH_I2C_Read... [18:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:20]Read from MH i2c: E2 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 0E 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 0E 00 72 0D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 44 [18:14:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:14:20]wFMCommunicate OK [18:14:20]SAM_PROTO_GetShiftState done [18:14:20]FM_GetShiftState done [18:14:20]req_shift_opened done [18:14:20]requested_item shift.open_date is exist - process it [18:14:20]req_shift_open_date [18:14:20]req_shift_open_date done [18:14:20]produce_requested_data done [18:14:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165797,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:14:20]process_action_free close_receipt [18:14:20]json_value_free [18:14:20]json_value_free done [18:14:20]process_json_proto returns [18:14:20]Send response to host [18:14:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165797,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:14:20]free response buf [18:14:20]execute_script done [18:14:20]execute_script returns [18:14:20]free content buf [18:14:20]Sock 7.Close socket [18:14:20]Sock 7.Thread stoped [18:14:24]OFD Sender: No OFD packet to send [18:14:25]accept exits with 9 [18:14:25]New connection [18:14:25]New thread 3066776932 created [18:14:25]Thread 3066920292 joined [18:14:25]Waiting for new connection... [18:14:25] Sock 9.Parse request [18:14:25]Sock 9.Check first char [18:14:25]Sock 9.First char is OK [18:14:25]request: POST /json_proto HTTP/1.0 [18:14:25]Method: POST [18:14:25]URL: /json_proto [18:14:25]Method is POST - this is cgi request [18:14:25]url: /json_proto [18:14:25]query_string will be loaded in cgi processing [18:14:25]execute_cgi json_proto POST (null) [18:14:25]execute_cgi path=json_proto method=POST [18:14:25]POST find Content-Length [18:14:25]Host: 172.17.53.195:8080 [18:14:25]Content-Length: 677 [18:14:25]Content-Type: application/json [18:14:25] [18:14:25]POST finish read [18:14:25]Found Content-Length = 677 [18:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:25]execute_script... [18:14: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)220366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:25]POST & json_proto [18:14:25]process_json_proto [18:14:25]json parsed OK: [18:14:25]protocol is kg_v1.0 [18:14:25]action value=close_receipt [18:14:25]process_action close_receipt [18:14:25]cmd_close_receipt [18:14:25]MH_GetDate [18:14:25]Write to MH i2c: F0 00 00 73 0D 6F [18:14:25]Write i2c OK [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: F0 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: F0 09 00 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: F0 09 00 73 0D 00 8E 48 15 67 21 48 4A 65 E2 [18:14:25]GetLastDocTimeStamp 1729448070 [18:14:25]current date 1729448078 [18:14:25]FM_GetShiftState [18:14:25]SAM_PROTO_GetShiftState [18:14:25]wFMCommunicate request_size=4 [18:14:25]MH_SAM_APDU [18:14:25]CAPDU: 80 13 01 00 [18:14:25]Write to MH i2c: E2 08 00 74 0D 80 13 01 00 00 00 00 00 FE [18:14:25]Write i2c OK [18:14:25]MH_I2C_Read... [18:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:25]Read from MH i2c: E2 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 0E 00 [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 0E 00 74 0D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 46 [18:14:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:14:25]wFMCommunicate OK [18:14:25]SAM_PROTO_GetShiftState done [18:14:25]FM_GetShiftState done [18:14:25]opened in 1729384561 [18:14:25]opened+sec_in_day 1729470961 [18:14:25]quantity*price = 30038 [18:14:25]sum+1 = 30039 [18:14:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 280 20.10.2024 18:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165798 ФПД: 221891514761093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181438&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165798&fm=221891514761093&tin=02508201610067®Number=0000000000091764&sum=30000 [18:14:26]StoreToDocumentArchive [18:14:26]shift 534 fd 165798 [18:14:26]save to /storage/0534/doc_00165798 [18:14:26]save last doc name /storage/0534/doc_00165798 to /storage/kkm_last_doc_name [18:14:26]save OK [18:14:26]Clear old archive folders... [18:14:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:26]tlvbuf is 014ED170 [18:14:26]SAM_PROTO_ClearQueue [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 09 00 00 [18:14:26]Write to MH i2c: E2 08 00 81 0D 80 09 00 00 00 00 00 00 00 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 81 0D 00 90 00 02 [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]SAM_PROTO_ClearQueue done [18:14:26]KKMCreateOFDPacket [18:14:26]OFDProtocolAddRootSTLVToBuf [18:14:26]FM_MakeSignedData [18:14:26]FM_MakeSignedData [18:14:26]SAM_PROTO_SignData [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 0D 01 02 [18:14:26]Write to MH i2c: E2 08 00 82 0D 80 0D 01 02 00 00 00 00 08 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 82 0D 00 90 00 03 [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]wFMCommunicate request_size=255 [18:14:26]MH_SAM_APDU [18:14: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 8E 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 87 02 00 35 04 06 00 C9 [18:14:26]Write to MH i2c: E2 02 01 83 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 8E 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 87 02 00 35 04 06 00 C9 00 00 0D [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 83 0D 00 90 00 04 [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]wFMCommunicate request_size=10 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 0D 02 02 05 CF 24 EA 7F 85 [18:14:26]Write to MH i2c: E2 0D 00 84 0D 80 0D 02 02 05 00 CF 24 EA 7F 85 00 00 F6 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 84 0D 00 90 00 05 [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 0D 03 02 [18:14:26]Write to MH i2c: E2 08 00 85 0D 80 0D 03 02 00 00 00 00 0D [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 0B 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 0B 00 85 0D 00 AE A9 A8 57 C7 8C 52 BB 90 00 C4 [18:14:26]RAPDU: AE A9 A8 57 C7 8C 52 BB 90 00 [18:14:26]wFMCommunicate OK [18:14:26]SAM_PROTO_SignData done [18:14:26]FM_MakeSignedData done [18:14:26]CreateOFDProtocolMessage [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 11 00 00 [18:14:26]Write to MH i2c: E2 08 00 86 0D 80 11 00 00 00 00 00 00 0D [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 17 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 17 00 86 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 65 [18:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:26]wFMCommunicate OK [18:14:26]CreateOFDProtocolMessage done [18:14:26]OFDSenderStorePacket 165798 [18:14:26]StoreOFDPacket docnum=165798 [18:14:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 0E 07 01 3C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 8E 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 87 02 00 35 04 06 00 C9 CF 24 EA 7F 85 AE A9 A8 57 C7 8C 52 BB [18:14:26]CheckFolder [18:14:26]dirname=/storage/ofd_packets [18:14:26]CheckFolder done [18:14:26]ProducePacketName [18:14:26]name=ofd_packets/00165798 [18:14:26]NVStorageSaveData ofd_packets/00165798 [18:14:26]File name is /storage/ofd_packets/00165798 [18:14:26]Write 301 bytes [18:14:26]NVStorageSaveData done [18:14:26]OFDSenderStorePacket done [18:14:26]KKMCreateOFDPacket done [18:14:26]NVStorageSaveData kkm_last_timestamp [18:14:26]File name is /storage/kkm_last_timestamp [18:14:26]Write 4 bytes [18:14:26]NVStorageSaveData done [18:14:26]ExternCall_PrintAddStr [18:14:26]wPrintStart [18:14:26]Write to MH i2c: 01 00 00 87 0D 94 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 07 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 07 00 87 0D 00 00 00 00 00 FF 0F A9 [18:14:26]RasterBufferAndPrint [18:14:26]line Счет N : (1)220366 [18:14:26]line ИНН: 02508201610067 [18:14:26]line Контрольно-Кассовый Чек [18:14:26]line ПРОДАЖА [18:14:26]line ТРК (МРК, ГНК) : 33 [18:14:26]line Товар: 2710124130 [18:14:26]line Аи-92-К-5 [18:14:26]line 4.490 * 66.90 [18:14:26]line = 300.38 [18:14:26]line НДС 12% НСП 1% [18:14:26]line > о реализуемом товаре [18:14:26]line ОКРУГЛЕНИЕ: -0.38 [18:14:26]line ИТОГО: 300.00 [18:14:26]line Внесено: 300.00 [18:14:26]line СДАЧА: 0.00 [18:14:26]line НСП 1% : 2.66 [18:14:26]line НДС 12% : 31.90 [18:14:26]line Наличными: 300.00 [18:14:26]line Безнал.: 0.00 [18:14:26]line Место: АЗС № 161 "Партнер Нефть" [18:14:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:14:26]line СНО: Общий режим [18:14:26]line Чек 280 20.10.2024 18:14 [18:14:26]line Смена: 534 ФФД: 1.0 [18:14:26]line ЗНМ: 0300000104 [18:14:26]line РНМ: 0000000000091764 [18:14:26]line Версия ККМ: 001 [18:14:26]line ФМ: 0000000000871759 [18:14:26]line ФД: 165798 [18:14:26]line ФПД: 221891514761093 [18:14:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181438&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165798&fm=221891514761093&tin=02508201610067®Number=0000000000091764&sum=30000 [18:14:27]OFD Sender: Processing packet 165798 [packets to send 48, broken 47] [18:14:27]ProducePacketName [18:14:27]name=ofd_packets/00165798 [18:14:27]OFD Sender: To server: pG, [18:14:27]CommunicateWithHost lk.salyk.kg:30040 [18:14:27]written 0, free lines is 4095 [18:14:27]ConnectInit lk.salyk.kg [18:14:27]Connected sock=11 [18:14:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 0E 07 01 3C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 8E 48 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 87 02 00 35 04 06 00 C9 CF 24 EA 7F 85 AE A9 A8 57 C7 8C 52 BB [18:14:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 16 6D 47 00 5B 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 31 37 35 39 10 04 04 00 A6 87 02 00 F4 03 04 00 00 EF 14 67 B6 04 01 00 00 FC 38 23 CB 98 EF 21 0E [18:14:27]CommunicateWithHost err = 0 [18:14:27]CheckOFDResponse [18:14:27]1017 (14) - 77093643461234 [18:14:27]1041 (16) - 0000000000871759 [18:14:27]1040 (4) - 165798 [18:14:27]1012 (4) - 20.10.2024 11:52 [18:14:27]1206 (1) - 0 [18:14:27]OFD Sender: Remove packet 165798 [18:14:27]ProducePacketName [18:14:27]name=ofd_packets/00165798 [18:14:27]NVStorageDeleteData [18:14:27]Write to MH i2c: 01 00 00 B2 0D BF [18:14:27]Write i2c OK [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: 01 [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: 01 07 00 [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: 01 07 00 B2 0D 00 00 00 00 00 C9 0C 9B [18:14:27]RasterBufferAndPrint [18:14:27]line [18:14:27]line [18:14:27]line [18:14:27]line [18:14:27]line [18:14:27]written 0, free lines is 3288 [18:14:27]MH_Cut [18:14:27]Write to MH i2c: D1 01 00 B9 0D 01 98 [18:14:27]Write i2c OK [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: D1 [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: D1 01 00 [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: D1 01 00 B9 0D 00 97 [18:14:27]Write to MH i2c: 01 00 00 BA 0D C7 [18:14:27]Write i2c OK [18:14:27]MH_I2C_Read... [18:14:28]OFD Sender: No OFD packet to send [18:14:28]*** Cut start [18:14:28]*** Partial cut [18:14:28]*** CUTSNS_PIN = 1 [18:14:28]*** CUTSNS_PIN = 0 [18:14:28]*** Brake cut motor [18:14:29]Read from MH i2c: 01 [18:14:29]MH_I2C_Read... [18:14:29]*** Stop cut motor [18:14:29]*** Cut end [18:14:29]Read from MH i2c: 01 07 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: 01 07 00 BA 0D 00 00 00 00 00 FF 0F DC [18:14:29]process_action close_receipt done [18:14:29]requested_data is exist [18:14:29]produce_requested_data [18:14:29]requested_item fm.sn is exist - process it [18:14:29]wFMCommunicate request_size=4 [18:14:29]MH_SAM_APDU [18:14:29]CAPDU: 80 11 00 00 [18:14:29]Write to MH i2c: E2 08 00 BB 0D 80 11 00 00 00 00 00 00 42 [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:29]Read from MH i2c: E2 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 17 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 17 00 BB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9A [18:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:29]wFMCommunicate OK [18:14:29]requested_item fd.num is exist - process it [18:14:29]SAM_PROTO_GetFieldsCounters [18:14:29]wFMCommunicate request_size=4 [18:14:29]MH_SAM_APDU [18:14:29]CAPDU: 80 13 00 00 [18:14:29]Write to MH i2c: E2 08 00 BC 0D 80 13 00 00 00 00 00 00 45 [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:29]Read from MH i2c: E2 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 62 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 62 00 BC 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 87 02 00 0E 04 04 00 16 02 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 FF [18:14:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 87 02 00 0E 04 04 00 16 02 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:14:29]wFMCommunicate OK [18:14:29]SAM_PROTO_GetFieldsCounters done [18:14:29]requested_item shift.num is exist - process it [18:14:29]requested_item shift.opened is exist - process it [18:14:29]req_shift_opened [18:14:29]FM_GetShiftState [18:14:29]SAM_PROTO_GetShiftState [18:14:29]wFMCommunicate request_size=4 [18:14:29]MH_SAM_APDU [18:14:29]CAPDU: 80 13 01 00 [18:14:29]Write to MH i2c: E2 08 00 BD 0D 80 13 01 00 00 00 00 00 47 [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:29]Read from MH i2c: E2 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 0E 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 0E 00 BD 0D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8F [18:14:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:14:29]wFMCommunicate OK [18:14:29]SAM_PROTO_GetShiftState done [18:14:29]FM_GetShiftState done [18:14:29]req_shift_opened done [18:14:29]requested_item shift.open_date is exist - process it [18:14:29]req_shift_open_date [18:14:29]req_shift_open_date done [18:14:29]produce_requested_data done [18:14:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165798,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:14:29]process_action_free close_receipt [18:14:29]json_value_free [18:14:29]json_value_free done [18:14:29]process_json_proto returns [18:14:29]Send response to host [18:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165798,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:14:29]free response buf [18:14:29]execute_script done [18:14:29]execute_script returns [18:14:29]free content buf [18:14:29]Sock 9.Close socket [18:14:29]Sock 9.Thread stoped [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:35]accept exits with 7 [18:17:35]New connection [18:17:35]New thread 3066920292 created [18:17:35]Thread 3066776932 joined [18:17:35]Waiting for new connection... [18:17:35] Sock 7.Parse request [18:17:35]Sock 7.Check first char [18:17:35]Sock 7.First char is OK [18:17:35]request: POST /json_proto HTTP/1.0 [18:17:35]Method: POST [18:17:35]URL: /json_proto [18:17:35]Method is POST - this is cgi request [18:17:35]url: /json_proto [18:17:35]query_string will be loaded in cgi processing [18:17:35]execute_cgi json_proto POST (null) [18:17:35]execute_cgi path=json_proto method=POST [18:17:35]POST find Content-Length [18:17:35]Host: 172.17.53.195:8080 [18:17:35]Content-Length: 677 [18:17:35]Content-Type: application/json [18:17:35] [18:17:35]POST finish read [18:17:35]Found Content-Length = 677 [18:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:35]execute_script... [18:17: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)220367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:35]POST & json_proto [18:17:35]process_json_proto [18:17:35]json parsed OK: [18:17:35]protocol is kg_v1.0 [18:17:35]action value=close_receipt [18:17:35]process_action close_receipt [18:17:35]cmd_close_receipt [18:17:35]MH_GetDate [18:17:35]Write to MH i2c: F0 00 00 BE 0D BA [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: F0 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: F0 09 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: F0 09 00 BE 0D 00 4D 49 15 67 21 48 4A 65 ED [18:17:35]GetLastDocTimeStamp 1729448078 [18:17:35]current date 1729448269 [18:17:35]FM_GetShiftState [18:17:35]SAM_PROTO_GetShiftState [18:17:35]wFMCommunicate request_size=4 [18:17:35]MH_SAM_APDU [18:17:35]CAPDU: 80 13 01 00 [18:17:35]Write to MH i2c: E2 08 00 BF 0D 80 13 01 00 00 00 00 00 49 [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:35]Read from MH i2c: E2 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 0E 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 0E 00 BF 0D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 91 [18:17:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:17:35]wFMCommunicate OK [18:17:35]SAM_PROTO_GetShiftState done [18:17:35]FM_GetShiftState done [18:17:35]opened in 1729384561 [18:17:35]opened+sec_in_day 1729470961 [18:17:35]quantity*price = 49974 [18:17:35]sum+1 = 49975 [18:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 281 20.10.2024 18:17 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165799 ФПД: 202323089943343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181749&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165799&fm=202323089943343&tin=02508201610067®Number=0000000000091764&sum=49900 [18:17:37]StoreToDocumentArchive [18:17:37]shift 534 fd 165799 [18:17:37]save to /storage/0534/doc_00165799 [18:17:37]save last doc name /storage/0534/doc_00165799 to /storage/kkm_last_doc_name [18:17:37]save OK [18:17:37]Clear old archive folders... [18:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:37]tlvbuf is 014CB360 [18:17:37]SAM_PROTO_ClearQueue [18:17:37]wFMCommunicate request_size=4 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 09 00 00 [18:17:37]Write to MH i2c: E2 08 00 CC 0D 80 09 00 00 00 00 00 00 4B [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 CC 0D 00 90 00 4D [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]SAM_PROTO_ClearQueue done [18:17:37]KKMCreateOFDPacket [18:17:37]OFDProtocolAddRootSTLVToBuf [18:17:37]FM_MakeSignedData [18:17:37]FM_MakeSignedData [18:17:37]SAM_PROTO_SignData [18:17:37]wFMCommunicate request_size=4 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 0D 01 02 [18:17:37]Write to MH i2c: E2 08 00 CD 0D 80 0D 01 02 00 00 00 00 53 [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 CD 0D 00 90 00 4E [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]wFMCommunicate request_size=255 [18:17:37]MH_SAM_APDU [18:17: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 4D 49 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 87 02 00 35 04 06 00 B8 [18:17:37]Write to MH i2c: E2 02 01 CE 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 4D 49 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 87 02 00 35 04 06 00 B8 00 00 F6 [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 CE 0D 00 90 00 4F [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]wFMCommunicate request_size=10 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 0D 02 02 05 03 03 E7 EB 2F [18:17:37]Write to MH i2c: E2 0D 00 CF 0D 80 0D 02 02 05 00 03 03 E7 EB 2F 00 00 67 [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 CF 0D 00 90 00 50 [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]wFMCommunicate request_size=4 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 0D 03 02 [18:17:37]Write to MH i2c: E2 08 00 D0 0D 80 0D 03 02 00 00 00 00 58 [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 0B 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 0B 00 D0 0D 00 E5 90 A2 FB 18 FF 9E B6 90 00 D6 [18:17:37]RAPDU: E5 90 A2 FB 18 FF 9E B6 90 00 [18:17:37]wFMCommunicate OK [18:17:37]SAM_PROTO_SignData done [18:17:37]FM_MakeSignedData done [18:17:37]CreateOFDProtocolMessage [18:17:37]wFMCommunicate request_size=4 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 11 00 00 [18:17:37]Write to MH i2c: E2 08 00 D1 0D 80 11 00 00 00 00 00 00 58 [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 17 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 17 00 D1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B0 [18:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:17:37]wFMCommunicate OK [18:17:37]CreateOFDProtocolMessage done [18:17:37]OFDSenderStorePacket 165799 [18:17:37]StoreOFDPacket docnum=165799 [18:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2F 15 07 01 15 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 4D 49 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 87 02 00 35 04 06 00 B8 03 03 E7 EB 2F E5 90 A2 FB 18 FF 9E B6 [18:17:37]CheckFolder [18:17:37]dirname=/storage/ofd_packets [18:17:37]CheckFolder done [18:17:37]ProducePacketName [18:17:37]name=ofd_packets/00165799 [18:17:37]NVStorageSaveData ofd_packets/00165799 [18:17:37]File name is /storage/ofd_packets/00165799 [18:17:37]Write 301 bytes [18:17:37]NVStorageSaveData done [18:17:37]OFDSenderStorePacket done [18:17:37]KKMCreateOFDPacket done [18:17:37]NVStorageSaveData kkm_last_timestamp [18:17:37]File name is /storage/kkm_last_timestamp [18:17:37]Write 4 bytes [18:17:37]NVStorageSaveData done [18:17:37]ExternCall_PrintAddStr [18:17:37]wPrintStart [18:17:37]Write to MH i2c: 01 00 00 D2 0D DF [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: 01 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: 01 07 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: 01 07 00 D2 0D 00 00 00 00 00 FF 0F F4 [18:17:37]RasterBufferAndPrint [18:17:37]line Счет N : (1)220367 [18:17:37]line ИНН: 02508201610067 [18:17:37]line Контрольно-Кассовый Чек [18:17:37]line ПРОДАЖА [18:17:37]line ТРК (МРК, ГНК) : 13 [18:17:37]line Товар: 2710124130 [18:17:37]line Аи-92-К-5 [18:17:37]line 7.470 * 66.90 [18:17:37]line = 499.74 [18:17:37]line НДС 12% НСП 1% [18:17:37]line > о реализуемом товаре [18:17:37]line ОКРУГЛЕНИЕ: -0.74 [18:17:37]line ИТОГО: 499.00 [18:17:37]line Внесено: 500.00 [18:17:37]line СДАЧА: 1.00 [18:17:37]line НСП 1% : 4.42 [18:17:37]line НДС 12% : 53.07 [18:17:37]line Наличными: 499.00 [18:17:37]line Безнал.: 0.00 [18:17:37]line Место: АЗС № 161 "Партнер Нефть" [18:17:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:17:37]line СНО: Общий режим [18:17:37]line Чек 281 20.10.2024 18:17 [18:17:37]line Смена: 534 ФФД: 1.0 [18:17:37]line ЗНМ: 0300000104 [18:17:37]line РНМ: 0000000000091764 [18:17:37]line Версия ККМ: 001 [18:17:37]line ФМ: 0000000000871759 [18:17:37]line ФД: 165799 [18:17:37]line ФПД: 202323089943343 [18:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181749&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165799&fm=202323089943343&tin=02508201610067®Number=0000000000091764&sum=49900 [18:17:37]OFD Sender: Processing packet 165799 [packets to send 48, broken 47] [18:17:37]ProducePacketName [18:17:37]name=ofd_packets/00165799 [18:17:37]OFD Sender: To server: pG, [18:17:37]CommunicateWithHost lk.salyk.kg:30040 [18:17:37]ConnectInit lk.salyk.kg [18:17:37]written 0, free lines is 4095 [18:17:38]Connected sock=10 [18:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2F 15 07 01 15 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 4D 49 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 87 02 00 35 04 06 00 B8 03 03 E7 EB 2F E5 90 A2 FB 18 FF 9E B6 [18:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF BC 47 00 DC F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 87 02 00 F4 03 04 00 BE EF 14 67 B6 04 01 00 00 3E A0 CB 6F 35 C1 02 E6 [18:17:38]CommunicateWithHost err = 0 [18:17:38]CheckOFDResponse [18:17:38]1017 (14) - 77093643461234 [18:17:38]1041 (16) - 0000000000871759 [18:17:38]1040 (4) - 165799 [18:17:38]1012 (4) - 20.10.2024 11:55 [18:17:38]1206 (1) - 0 [18:17:38]OFD Sender: Remove packet 165799 [18:17:38]ProducePacketName [18:17:38]name=ofd_packets/00165799 [18:17:38]NVStorageDeleteData [18:17:38]Write to MH i2c: 01 00 00 FD 0D 0A [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 07 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 07 00 FD 0D 00 00 00 00 00 B9 0C D6 [18:17:38]RasterBufferAndPrint [18:17:38]line [18:17:38]line [18:17:38]line [18:17:38]line [18:17:38]line [18:17:38]written 0, free lines is 3264 [18:17:38]MH_Cut [18:17:38]Write to MH i2c: D1 01 00 04 0E 01 E4 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: D1 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: D1 01 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: D1 01 00 04 0E 00 E3 [18:17:38]Write to MH i2c: 01 00 00 05 0E 13 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]OFD Sender: No OFD packet to send [18:17:39]*** Cut start [18:17:39]*** Partial cut [18:17:39]*** CUTSNS_PIN = 1 [18:17:39]*** CUTSNS_PIN = 0 [18:17:39]*** Brake cut motor [18:17:39]Read from MH i2c: 01 [18:17:39]MH_I2C_Read... [18:17:39]*** Stop cut motor [18:17:39]*** Cut end [18:17:39]Read from MH i2c: 01 07 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: 01 07 00 05 0E 00 00 00 00 00 FF 0F 28 [18:17:39]process_action close_receipt done [18:17:39]requested_data is exist [18:17:39]produce_requested_data [18:17:39]requested_item fm.sn is exist - process it [18:17:39]wFMCommunicate request_size=4 [18:17:39]MH_SAM_APDU [18:17:39]CAPDU: 80 11 00 00 [18:17:39]Write to MH i2c: E2 08 00 06 0E 80 11 00 00 00 00 00 00 8E [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:39]Read from MH i2c: E2 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 17 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 17 00 06 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [18:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:17:39]wFMCommunicate OK [18:17:39]requested_item fd.num is exist - process it [18:17:39]SAM_PROTO_GetFieldsCounters [18:17:39]wFMCommunicate request_size=4 [18:17:39]MH_SAM_APDU [18:17:39]CAPDU: 80 13 00 00 [18:17:39]Write to MH i2c: E2 08 00 07 0E 80 13 00 00 00 00 00 00 91 [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 62 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 62 00 07 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 87 02 00 0E 04 04 00 16 02 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 4F [18:17:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 87 02 00 0E 04 04 00 16 02 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:17:40]wFMCommunicate OK [18:17:40]SAM_PROTO_GetFieldsCounters done [18:17:40]requested_item shift.num is exist - process it [18:17:40]requested_item shift.opened is exist - process it [18:17:40]req_shift_opened [18:17:40]FM_GetShiftState [18:17:40]SAM_PROTO_GetShiftState [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 13 01 00 [18:17:40]Write to MH i2c: E2 08 00 08 0E 80 13 01 00 00 00 00 00 93 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0E 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0E 00 08 0E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DB [18:17:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:17:40]wFMCommunicate OK [18:17:40]SAM_PROTO_GetShiftState done [18:17:40]FM_GetShiftState done [18:17:40]req_shift_opened done [18:17:40]requested_item shift.open_date is exist - process it [18:17:40]req_shift_open_date [18:17:40]req_shift_open_date done [18:17:40]produce_requested_data done [18:17:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165799,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:17:40]process_action_free close_receipt [18:17:40]json_value_free [18:17:40]json_value_free done [18:17:40]process_json_proto returns [18:17:40]Send response to host [18:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165799,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:17:40]free response buf [18:17:40]execute_script done [18:17:40]execute_script returns [18:17:40]free content buf [18:17:40]Sock 7.Close socket [18:17:40]Sock 7.Thread stoped [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:45]accept exits with 9 [18:19:45]New connection [18:19:45]New thread 3066776932 created [18:19:45]Thread 3066920292 joined [18:19:45]Waiting for new connection... [18:19:45] Sock 9.Parse request [18:19:45]Sock 9.Check first char [18:19:45]Sock 9.First char is OK [18:19:45]request: POST /json_proto HTTP/1.0 [18:19:45]Method: POST [18:19:45]URL: /json_proto [18:19:45]Method is POST - this is cgi request [18:19:45]url: /json_proto [18:19:45]query_string will be loaded in cgi processing [18:19:45]execute_cgi json_proto POST (null) [18:19:45]execute_cgi path=json_proto method=POST [18:19:45]POST find Content-Length [18:19:45]Host: 172.17.53.195:8080 [18:19:45]Content-Length: 790 [18:19:45]Content-Type: application/json [18:19:45] [18:19:45]POST finish read [18:19:45]Found Content-Length = 790 [18:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 262.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:45]execute_script... [18: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)220363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 262.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:45]POST & json_proto [18:19:45]process_json_proto [18:19:45]json parsed OK: [18:19:45]protocol is kg_v1.0 [18:19:45]action value=close_receipt [18:19:45]process_action close_receipt [18:19:45]cmd_close_receipt [18:19:45]MH_GetDate [18:19:45]Write to MH i2c: F0 00 00 09 0E 06 [18:19:45]Write i2c OK [18:19:45]MH_I2C_Read... [18:19:45]Read from MH i2c: F0 [18:19:45]MH_I2C_Read... [18:19:45]Read from MH i2c: F0 09 00 [18:19:45]MH_I2C_Read... [18:19:45]Read from MH i2c: F0 09 00 09 0E 00 CF 49 15 67 21 48 4A 65 BB [18:19:45]GetLastDocTimeStamp 1729448269 [18:19:45]current date 1729448399 [18:19:45]FM_GetShiftState [18:19:45]SAM_PROTO_GetShiftState [18:19:45]wFMCommunicate request_size=4 [18:19:45]MH_SAM_APDU [18:19:45]CAPDU: 80 13 01 00 [18:19:45]Write to MH i2c: E2 08 00 0A 0E 80 13 01 00 00 00 00 00 95 [18:19:45]Write i2c OK [18:19:45]MH_I2C_Read... [18:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:45]Read from MH i2c: E2 [18:19:45]MH_I2C_Read... [18:19:45]Read from MH i2c: E2 0E 00 [18:19:45]MH_I2C_Read... [18:19:45]Read from MH i2c: E2 0E 00 0A 0E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DD [18:19:45]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:19:45]wFMCommunicate OK [18:19:45]SAM_PROTO_GetShiftState done [18:19:45]FM_GetShiftState done [18:19:45]opened in 1729384561 [18:19:45]opened+sec_in_day 1729470961 [18:19:45]quantity*price = 0 [18:19:45]sum+1 = 1 [18:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 282 20.10.2024 18:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165800 ФПД: 107305601585648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181959&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165800&fm=107305601585648&tin=02508201610067®Number=0000000000091764&sum=0 [18:19:47]StoreToDocumentArchive [18:19:47]shift 534 fd 165800 [18:19:47]save to /storage/0534/doc_00165800 [18:19:47]save last doc name /storage/0534/doc_00165800 to /storage/kkm_last_doc_name [18:19:47]save OK [18:19:47]Clear old archive folders... [18:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:19:47]tlvbuf is 01616950 [18:19:47]SAM_PROTO_ClearQueue [18:19:47]wFMCommunicate request_size=4 [18:19:47]MH_SAM_APDU [18:19:47]CAPDU: 80 09 00 00 [18:19:47]Write to MH i2c: E2 08 00 17 0E 80 09 00 00 00 00 00 00 97 [18:19:47]Write i2c OK [18:19:47]MH_I2C_Read... [18:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:47]Read from MH i2c: E2 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 03 00 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 03 00 17 0E 00 90 00 99 [18:19:47]RAPDU: 90 00 [18:19:47]wFMCommunicate OK [18:19:47]SAM_PROTO_ClearQueue done [18:19:47]KKMCreateOFDPacket [18:19:47]OFDProtocolAddRootSTLVToBuf [18:19:47]FM_MakeSignedData [18:19:47]FM_MakeSignedData [18:19:47]SAM_PROTO_SignData [18:19:47]wFMCommunicate request_size=4 [18:19:47]MH_SAM_APDU [18:19:47]CAPDU: 80 0D 01 02 [18:19:47]Write to MH i2c: E2 08 00 18 0E 80 0D 01 02 00 00 00 00 9F [18:19:47]Write i2c OK [18:19:47]MH_I2C_Read... [18:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:47]Read from MH i2c: E2 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 03 00 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 03 00 18 0E 00 90 00 9A [18:19:47]RAPDU: 90 00 [18:19:47]wFMCommunicate OK [18:19:47]wFMCommunicate request_size=255 [18:19:47]MH_SAM_APDU [18:19: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 46 01 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 CF 49 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 87 02 00 35 04 06 00 61 98 08 43 [18:19:47]Write to MH i2c: E2 02 01 19 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 46 01 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 CF 49 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 87 02 00 35 04 06 00 61 98 08 43 00 00 8A [18:19:47]Write i2c OK [18:19:47]MH_I2C_Read... [18:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:47]Read from MH i2c: E2 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 03 00 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 03 00 19 0E 00 90 00 9B [18:19:47]RAPDU: 90 00 [18:19:47]wFMCommunicate OK [18:19:47]wFMCommunicate request_size=7 [18:19:47]MH_SAM_APDU [18:19:47]CAPDU: 80 0D 02 02 02 D1 F0 [18:19:47]Write to MH i2c: E2 0A 00 1A 0E 80 0D 02 02 02 00 D1 F0 00 00 67 [18:19:47]Write i2c OK [18:19:47]MH_I2C_Read... [18:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:47]Read from MH i2c: E2 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 03 00 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 03 00 1A 0E 00 90 00 9C [18:19:47]RAPDU: 90 00 [18:19:47]wFMCommunicate OK [18:19:47]wFMCommunicate request_size=4 [18:19:47]MH_SAM_APDU [18:19:47]CAPDU: 80 0D 03 02 [18:19:47]Write to MH i2c: E2 08 00 1B 0E 80 0D 03 02 00 00 00 00 A4 [18:19:47]Write i2c OK [18:19:47]MH_I2C_Read... [18:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:47]Read from MH i2c: E2 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 0B 00 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 0B 00 1B 0E 00 04 19 06 72 4E 72 05 03 90 00 02 [18:19:47]RAPDU: 04 19 06 72 4E 72 05 03 90 00 [18:19:47]wFMCommunicate OK [18:19:47]SAM_PROTO_SignData done [18:19:47]FM_MakeSignedData done [18:19:47]CreateOFDProtocolMessage [18:19:47]wFMCommunicate request_size=4 [18:19:47]MH_SAM_APDU [18:19:47]CAPDU: 80 11 00 00 [18:19:47]Write to MH i2c: E2 08 00 1C 0E 80 11 00 00 00 00 00 00 A4 [18:19:47]Write i2c OK [18:19:47]MH_I2C_Read... [18:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:47]Read from MH i2c: E2 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 17 00 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: E2 17 00 1C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [18:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:19:47]wFMCommunicate OK [18:19:47]CreateOFDProtocolMessage done [18:19:47]OFDSenderStorePacket 165800 [18:19:47]StoreOFDPacket docnum=165800 [18:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9A 9A 04 01 6D 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 46 01 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 CF 49 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 87 02 00 35 04 06 00 61 98 08 43 D1 F0 04 19 06 72 4E 72 05 03 [18:19:47]CheckFolder [18:19:47]dirname=/storage/ofd_packets [18:19:47]CheckFolder done [18:19:47]ProducePacketName [18:19:47]name=ofd_packets/00165800 [18:19:47]NVStorageSaveData ofd_packets/00165800 [18:19:47]File name is /storage/ofd_packets/00165800 [18:19:47]Write 298 bytes [18:19:47]NVStorageSaveData done [18:19:47]OFDSenderStorePacket done [18:19:47]KKMCreateOFDPacket done [18:19:47]NVStorageSaveData kkm_last_timestamp [18:19:47]File name is /storage/kkm_last_timestamp [18:19:47]Write 4 bytes [18:19:47]NVStorageSaveData done [18:19:47]ExternCall_PrintAddStr [18:19:47]wPrintStart [18:19:47]Write to MH i2c: 01 00 00 1D 0E 2B [18:19:47]Write i2c OK [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: 01 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: 01 07 00 [18:19:47]MH_I2C_Read... [18:19:47]Read from MH i2c: 01 07 00 1D 0E 00 00 00 00 00 FF 0F 40 [18:19:47]RasterBufferAndPrint [18:19:47]line Счет N : (1)220363 [18:19:47]line ИНН: 02508201610067 [18:19:47]line Контрольно-Кассовый Чек [18:19:47]line ПРОДАЖА [18:19:47]line ТРК (МРК, ГНК) : 41 [18:19:47]line Товар: 2710194210 [18:19:47]line ДТ-К-5 [18:19:47]line 262.470 * 0.00 [18:19:47]line = 0.00 [18:19:47]line НДС 12% НСП 1% [18:19:47]line > о реализуемом товаре [18:19:47]line ИТОГО: 0.00 [18:19:47]line НСП 1% : 0.00 [18:19:47]line НДС 12% : 0.00 [18:19:47]line Наличными: 0.00 [18:19:47]line Безнал.: 0.00 [18:19:47]line Место: АЗС № 161 "Партнер Нефть" [18:19:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:19:47]line СНО: Общий режим [18:19:47]line Чек 282 20.10.2024 18:19 [18:19:47]line Смена: 534 ФФД: 1.0 [18:19:47]line ЗНМ: 0300000104 [18:19:47]line РНМ: 0000000000091764 [18:19:47]line Версия ККМ: 001 [18:19:47]line Талоны: Топливная Карта [18:19:47]line 39590 [18:19:47]line ФМ: 0000000000871759 [18:19:47]line ФД: 165800 [18:19:47]line ФПД: 107305601585648 [18:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181959&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165800&fm=107305601585648&tin=02508201610067®Number=0000000000091764&sum=0 [18:19:47]OFD Sender: Processing packet 165800 [packets to send 48, broken 47] [18:19:47]ProducePacketName [18:19:47]name=ofd_packets/00165800 [18:19:47]OFD Sender: To server: pG, [18:19:47]CommunicateWithHost lk.salyk.kg:30040 [18:19:47]ConnectInit lk.salyk.kg [18:19:47]written 0, free lines is 4095 [18:19:48]Connected sock=10 [18: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 31 37 35 39 0C 01 00 00 9A 9A 04 01 6D 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 46 01 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 CF 49 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 87 02 00 35 04 06 00 61 98 08 43 D1 F0 04 19 06 72 4E 72 05 03 [18:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 56 9A 47 00 6E CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 87 02 00 F4 03 04 00 40 F0 14 67 B6 04 01 00 00 F1 B0 A5 63 62 FD 82 62 [18:19:48]CommunicateWithHost err = 0 [18:19:48]CheckOFDResponse [18:19:48]1017 (14) - 77093643461234 [18:19:48]1041 (16) - 0000000000871759 [18:19:48]1040 (4) - 165800 [18:19:48]1012 (4) - 20.10.2024 11:57 [18:19:48]1206 (1) - 0 [18:19:48]OFD Sender: Remove packet 165800 [18:19:48]ProducePacketName [18:19:48]name=ofd_packets/00165800 [18:19:48]NVStorageDeleteData [18:19:48]Write to MH i2c: 01 00 00 47 0E 55 [18:19:48]Write i2c OK [18:19:48]MH_I2C_Read... [18:19:48]Read from MH i2c: 01 [18:19:48]MH_I2C_Read... [18:19:48]Read from MH i2c: 01 07 00 [18:19:48]MH_I2C_Read... [18:19:48]Read from MH i2c: 01 07 00 47 0E 00 00 00 00 00 D0 0C 38 [18:19:48]RasterBufferAndPrint [18:19:48]line [18:19:48]line [18:19:48]line [18:19:48]line [18:19:48]line [18:19:48]written 0, free lines is 3289 [18:19:48]MH_Cut [18:19:48]Write to MH i2c: D1 01 00 4E 0E 01 2E [18:19:48]Write i2c OK [18:19:48]MH_I2C_Read... [18:19:48]Read from MH i2c: D1 [18:19:48]MH_I2C_Read... [18:19:48]Read from MH i2c: D1 01 00 [18:19:48]MH_I2C_Read... [18:19:48]Read from MH i2c: D1 01 00 4E 0E 00 2D [18:19:48]Write to MH i2c: 01 00 00 4F 0E 5D [18:19:48]Write i2c OK [18:19:48]MH_I2C_Read... [18:19:48]OFD Sender: No OFD packet to send [18:19:49]*** Cut start [18:19:49]*** Partial cut [18:19:49]*** CUTSNS_PIN = 1 [18:19:49]*** CUTSNS_PIN = 0 [18:19:49]*** Brake cut motor [18:19:49]Read from MH i2c: 01 [18:19:49]MH_I2C_Read... [18:19:49]*** Stop cut motor [18:19:49]*** Cut end [18:19:49]Read from MH i2c: 01 07 00 [18:19:49]MH_I2C_Read... [18:19:49]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 FF 0F 72 [18:19:49]process_action close_receipt done [18:19:49]requested_data is exist [18:19:49]produce_requested_data [18:19:49]requested_item fm.sn is exist - process it [18:19:49]wFMCommunicate request_size=4 [18:19:49]MH_SAM_APDU [18:19:49]CAPDU: 80 11 00 00 [18:19:49]Write to MH i2c: E2 08 00 50 0E 80 11 00 00 00 00 00 00 D8 [18:19:49]Write i2c OK [18:19:49]MH_I2C_Read... [18:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:49]Read from MH i2c: E2 [18:19:49]MH_I2C_Read... [18:19:49]Read from MH i2c: E2 17 00 [18:19:49]MH_I2C_Read... [18:19:49]Read from MH i2c: E2 17 00 50 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [18:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:19:49]wFMCommunicate OK [18:19:49]requested_item fd.num is exist - process it [18:19:49]SAM_PROTO_GetFieldsCounters [18:19:49]wFMCommunicate request_size=4 [18:19:49]MH_SAM_APDU [18:19:49]CAPDU: 80 13 00 00 [18:19:49]Write to MH i2c: E2 08 00 51 0E 80 13 00 00 00 00 00 00 DB [18:19:49]Write i2c OK [18:19:49]MH_I2C_Read... [18:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:49]Read from MH i2c: E2 [18:19:49]MH_I2C_Read... [18:19:49]Read from MH i2c: E2 62 00 [18:19:49]MH_I2C_Read... [18:19:49]Read from MH i2c: E2 62 00 51 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 87 02 00 0E 04 04 00 16 02 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 9D [18: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 87 02 00 0E 04 04 00 16 02 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:19:49]wFMCommunicate OK [18:19:49]SAM_PROTO_GetFieldsCounters done [18:19:49]requested_item shift.num is exist - process it [18:19:49]requested_item shift.opened is exist - process it [18:19:49]req_shift_opened [18:19:49]FM_GetShiftState [18:19:49]SAM_PROTO_GetShiftState [18:19:49]wFMCommunicate request_size=4 [18:19:49]MH_SAM_APDU [18:19:49]CAPDU: 80 13 01 00 [18:19:49]Write to MH i2c: E2 08 00 52 0E 80 13 01 00 00 00 00 00 DD [18:19:50]Write i2c OK [18:19:50]MH_I2C_Read... [18:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:50]Read from MH i2c: E2 [18:19:50]MH_I2C_Read... [18:19:50]Read from MH i2c: E2 0E 00 [18:19:50]MH_I2C_Read... [18:19:50]Read from MH i2c: E2 0E 00 52 0E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 25 [18:19:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:19:50]wFMCommunicate OK [18:19:50]SAM_PROTO_GetShiftState done [18:19:50]FM_GetShiftState done [18:19:50]req_shift_opened done [18:19:50]requested_item shift.open_date is exist - process it [18:19:50]req_shift_open_date [18:19:50]req_shift_open_date done [18:19:50]produce_requested_data done [18:19:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165800,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:19:50]process_action_free close_receipt [18:19:50]json_value_free [18:19:50]json_value_free done [18:19:50]process_json_proto returns [18:19:50]Send response to host [18:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165800,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:19:50]free response buf [18:19:50]execute_script done [18:19:50]execute_script returns [18:19:50]free content buf [18:19:50]Sock 9.Close socket [18:19:50]Sock 9.Thread stoped [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:16]accept exits with 7 [18:21:16]New connection [18:21:16]New thread 3066920292 created [18:21:16]Thread 3066776932 joined [18:21:16]Waiting for new connection... [18:21:16] Sock 7.Parse request [18:21:16]Sock 7.Check first char [18:21:16]Sock 7.First char is OK [18:21:16]request: POST /json_proto HTTP/1.0 [18:21:16]Method: POST [18:21:16]URL: /json_proto [18:21:16]Method is POST - this is cgi request [18:21:16]url: /json_proto [18:21:16]query_string will be loaded in cgi processing [18:21:16]execute_cgi json_proto POST (null) [18:21:16]execute_cgi path=json_proto method=POST [18:21:16]POST find Content-Length [18:21:16]Host: 172.17.53.195:8080 [18:21:16]Content-Length: 677 [18:21:16]Content-Type: application/json [18:21:16] [18:21:16]POST finish read [18:21:16]Found Content-Length = 677 [18:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:16]execute_script... [18:21: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)220368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:16]POST & json_proto [18:21:16]process_json_proto [18:21:16]json parsed OK: [18:21:16]protocol is kg_v1.0 [18:21:16]action value=close_receipt [18:21:16]process_action close_receipt [18:21:16]cmd_close_receipt [18:21:16]MH_GetDate [18:21:16]Write to MH i2c: F0 00 00 53 0E 50 [18:21:16]Write i2c OK [18:21:16]MH_I2C_Read... [18:21:16]Read from MH i2c: F0 [18:21:16]MH_I2C_Read... [18:21:16]Read from MH i2c: F0 09 00 [18:21:16]MH_I2C_Read... [18:21:16]Read from MH i2c: F0 09 00 53 0E 00 2A 4A 15 67 21 48 4A 65 61 [18:21:16]GetLastDocTimeStamp 1729448399 [18:21:16]current date 1729448490 [18:21:16]FM_GetShiftState [18:21:16]SAM_PROTO_GetShiftState [18:21:16]wFMCommunicate request_size=4 [18:21:16]MH_SAM_APDU [18:21:16]CAPDU: 80 13 01 00 [18:21:16]Write to MH i2c: E2 08 00 54 0E 80 13 01 00 00 00 00 00 DF [18:21:16]Write i2c OK [18:21:16]MH_I2C_Read... [18:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:16]Read from MH i2c: E2 [18:21:16]MH_I2C_Read... [18:21:16]Read from MH i2c: E2 0E 00 [18:21:16]MH_I2C_Read... [18:21:16]Read from MH i2c: E2 0E 00 54 0E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 27 [18:21:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:21:16]wFMCommunicate OK [18:21:16]SAM_PROTO_GetShiftState done [18:21:16]FM_GetShiftState done [18:21:16]opened in 1729384561 [18:21:16]opened+sec_in_day 1729470961 [18:21:16]quantity*price = 50041 [18:21:16]sum+1 = 50042 [18:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 283 20.10.2024 18:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165801 ФПД: 178434518724401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165801&fm=178434518724401&tin=02508201610067®Number=0000000000091764&sum=50000 [18:21:17]StoreToDocumentArchive [18:21:17]shift 534 fd 165801 [18:21:17]save to /storage/0534/doc_00165801 [18:21:17]save last doc name /storage/0534/doc_00165801 to /storage/kkm_last_doc_name [18:21:17]save OK [18:21:17]Clear old archive folders... [18:21:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:17]tlvbuf is 015128B0 [18:21:17]SAM_PROTO_ClearQueue [18:21:17]wFMCommunicate request_size=4 [18:21:17]MH_SAM_APDU [18:21:17]CAPDU: 80 09 00 00 [18:21:17]Write to MH i2c: E2 08 00 61 0E 80 09 00 00 00 00 00 00 E1 [18:21:17]Write i2c OK [18:21:17]MH_I2C_Read... [18:21:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:17]Read from MH i2c: E2 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: E2 03 00 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: E2 03 00 61 0E 00 90 00 E3 [18:21:17]RAPDU: 90 00 [18:21:17]wFMCommunicate OK [18:21:17]SAM_PROTO_ClearQueue done [18:21:17]KKMCreateOFDPacket [18:21:17]OFDProtocolAddRootSTLVToBuf [18:21:17]FM_MakeSignedData [18:21:17]FM_MakeSignedData [18:21:17]SAM_PROTO_SignData [18:21:17]wFMCommunicate request_size=4 [18:21:17]MH_SAM_APDU [18:21:17]CAPDU: 80 0D 01 02 [18:21:17]Write to MH i2c: E2 08 00 62 0E 80 0D 01 02 00 00 00 00 E9 [18:21:17]Write i2c OK [18:21:17]MH_I2C_Read... [18:21:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:17]Read from MH i2c: E2 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: E2 03 00 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: E2 03 00 62 0E 00 90 00 E4 [18:21:17]RAPDU: 90 00 [18:21:17]wFMCommunicate OK [18:21:17]wFMCommunicate request_size=255 [18:21:17]MH_SAM_APDU [18:21: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 2A 4A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 87 02 00 35 04 06 00 A2 [18:21:17]Write to MH i2c: E2 02 01 63 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 2A 4A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 87 02 00 35 04 06 00 A2 00 00 77 [18:21:17]Write i2c OK [18:21:17]MH_I2C_Read... [18:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:17]Read from MH i2c: E2 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: E2 03 00 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: E2 03 00 63 0E 00 90 00 E5 [18:21:17]RAPDU: 90 00 [18:21:17]wFMCommunicate OK [18:21:17]wFMCommunicate request_size=10 [18:21:17]MH_SAM_APDU [18:21:17]CAPDU: 80 0D 02 02 05 49 06 1A AF 31 [18:21:17]Write to MH i2c: E2 0D 00 64 0E 80 0D 02 02 05 00 49 06 1A AF 31 00 00 3F [18:21:17]Write i2c OK [18:21:17]MH_I2C_Read... [18:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:17]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 64 0E 00 90 00 E6 [18:21:18]RAPDU: 90 00 [18:21:18]wFMCommunicate OK [18:21:18]wFMCommunicate request_size=4 [18:21:18]MH_SAM_APDU [18:21:18]CAPDU: 80 0D 03 02 [18:21:18]Write to MH i2c: E2 08 00 65 0E 80 0D 03 02 00 00 00 00 EE [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:18]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 0B 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 0B 00 65 0E 00 8D D2 EA 56 F6 C7 9E 5A 90 00 43 [18:21:18]RAPDU: 8D D2 EA 56 F6 C7 9E 5A 90 00 [18:21:18]wFMCommunicate OK [18:21:18]SAM_PROTO_SignData done [18:21:18]FM_MakeSignedData done [18:21:18]CreateOFDProtocolMessage [18:21:18]wFMCommunicate request_size=4 [18:21:18]MH_SAM_APDU [18:21:18]CAPDU: 80 11 00 00 [18:21:18]Write to MH i2c: E2 08 00 66 0E 80 11 00 00 00 00 00 00 EE [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:18]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 17 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 17 00 66 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [18:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:21:18]wFMCommunicate OK [18:21:18]CreateOFDProtocolMessage done [18:21:18]OFDSenderStorePacket 165801 [18:21:18]StoreOFDPacket docnum=165801 [18:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E 9D 07 01 55 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 2A 4A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 87 02 00 35 04 06 00 A2 49 06 1A AF 31 8D D2 EA 56 F6 C7 9E 5A [18:21:18]CheckFolder [18:21:18]dirname=/storage/ofd_packets [18:21:18]CheckFolder done [18:21:18]ProducePacketName [18:21:18]name=ofd_packets/00165801 [18:21:18]NVStorageSaveData ofd_packets/00165801 [18:21:18]File name is /storage/ofd_packets/00165801 [18:21:18]Write 301 bytes [18:21:18]NVStorageSaveData done [18:21:18]OFDSenderStorePacket done [18:21:18]KKMCreateOFDPacket done [18:21:18]NVStorageSaveData kkm_last_timestamp [18:21:18]File name is /storage/kkm_last_timestamp [18:21:18]Write 4 bytes [18:21:18]NVStorageSaveData done [18:21:18]ExternCall_PrintAddStr [18:21:18]wPrintStart [18:21:18]Write to MH i2c: 01 00 00 67 0E 75 [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 07 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 07 00 67 0E 00 00 00 00 00 FF 0F 8A [18:21:18]RasterBufferAndPrint [18:21:18]line Счет N : (1)220368 [18:21:18]line ИНН: 02508201610067 [18:21:18]line Контрольно-Кассовый Чек [18:21:18]line ПРОДАЖА [18:21:18]line ТРК (МРК, ГНК) : 23 [18:21:18]line Товар: 2710124130 [18:21:18]line Аи-92-К-5 [18:21:18]line 7.480 * 66.90 [18:21:18]line = 500.41 [18:21:18]line НДС 12% НСП 1% [18:21:18]line > о реализуемом товаре [18:21:18]line ОКРУГЛЕНИЕ: -0.41 [18:21:18]line ИТОГО: 500.00 [18:21:18]line Внесено: 500.00 [18:21:18]line СДАЧА: 0.00 [18:21:18]line НСП 1% : 4.43 [18:21:18]line НДС 12% : 53.14 [18:21:18]line Наличными: 500.00 [18:21:18]line Безнал.: 0.00 [18:21:18]line Место: АЗС № 161 "Партнер Нефть" [18:21:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:21:18]line СНО: Общий режим [18:21:18]line Чек 283 20.10.2024 18:21 [18:21:18]line Смена: 534 ФФД: 1.0 [18:21:18]line ЗНМ: 0300000104 [18:21:18]line РНМ: 0000000000091764 [18:21:18]line Версия ККМ: 001 [18:21:18]line ФМ: 0000000000871759 [18:21:18]line ФД: 165801 [18:21:18]line ФПД: 178434518724401 [18:21:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165801&fm=178434518724401&tin=02508201610067®Number=0000000000091764&sum=50000 [18:21:18]OFD Sender: Processing packet 165801 [packets to send 48, broken 47] [18:21:18]ProducePacketName [18:21:18]name=ofd_packets/00165801 [18:21:18]OFD Sender: To server: pG, [18:21:18]CommunicateWithHost lk.salyk.kg:30040 [18:21:18]ConnectInit lk.salyk.kg [18:21:18]written 0, free lines is 4095 [18:21:18]Connected sock=10 [18:21:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6E 9D 07 01 55 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 2A 4A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 87 02 00 35 04 06 00 A2 49 06 1A AF 31 8D D2 EA 56 F6 C7 9E 5A [18:21:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0B AE 47 00 39 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 87 02 00 F4 03 04 00 9B F0 14 67 B6 04 01 00 00 55 66 A2 41 F8 2C 13 2D [18:21:18]CommunicateWithHost err = 0 [18:21:18]CheckOFDResponse [18:21:18]1017 (14) - 77093643461234 [18:21:18]1041 (16) - 0000000000871759 [18:21:18]1040 (4) - 165801 [18:21:18]1012 (4) - 20.10.2024 11:59 [18:21:18]1206 (1) - 0 [18:21:18]OFD Sender: Remove packet 165801 [18:21:18]ProducePacketName [18:21:18]name=ofd_packets/00165801 [18:21:18]NVStorageDeleteData [18:21:18]Write to MH i2c: 01 00 00 92 0E A0 [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 07 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 07 00 92 0E 00 00 00 00 00 C8 0C 7B [18:21:18]RasterBufferAndPrint [18:21:18]line [18:21:18]line [18:21:18]line [18:21:18]line [18:21:18]line [18:21:18]written 0, free lines is 3278 [18:21:18]MH_Cut [18:21:18]Write to MH i2c: D1 01 00 99 0E 01 79 [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: D1 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: D1 01 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: D1 01 00 99 0E 00 78 [18:21:18]Write to MH i2c: 01 00 00 9A 0E A8 [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:19]OFD Sender: No OFD packet to send [18:21:19]*** Cut start [18:21:19]*** Partial cut [18:21:19]*** CUTSNS_PIN = 1 [18:21:19]*** CUTSNS_PIN = 0 [18:21:19]*** Brake cut motor [18:21:20]Read from MH i2c: 01 [18:21:20]MH_I2C_Read... [18:21:20]*** Stop cut motor [18:21:20]*** Cut end [18:21:20]Read from MH i2c: 01 07 00 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: 01 07 00 9A 0E 00 00 00 00 00 FF 0F BD [18:21:20]process_action close_receipt done [18:21:20]requested_data is exist [18:21:20]produce_requested_data [18:21:20]requested_item fm.sn is exist - process it [18:21:20]wFMCommunicate request_size=4 [18:21:20]MH_SAM_APDU [18:21:20]CAPDU: 80 11 00 00 [18:21:20]Write to MH i2c: E2 08 00 9B 0E 80 11 00 00 00 00 00 00 23 [18:21:20]Write i2c OK [18:21:20]MH_I2C_Read... [18:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:20]Read from MH i2c: E2 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: E2 17 00 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: E2 17 00 9B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [18:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:21:20]wFMCommunicate OK [18:21:20]requested_item fd.num is exist - process it [18:21:20]SAM_PROTO_GetFieldsCounters [18:21:20]wFMCommunicate request_size=4 [18:21:20]MH_SAM_APDU [18:21:20]CAPDU: 80 13 00 00 [18:21:20]Write to MH i2c: E2 08 00 9C 0E 80 13 00 00 00 00 00 00 26 [18:21:20]Write i2c OK [18:21:20]MH_I2C_Read... [18:21:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:20]Read from MH i2c: E2 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: E2 62 00 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: E2 62 00 9C 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 87 02 00 0E 04 04 00 16 02 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 EC [18:21:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 87 02 00 0E 04 04 00 16 02 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:21:20]wFMCommunicate OK [18:21:20]SAM_PROTO_GetFieldsCounters done [18:21:20]requested_item shift.num is exist - process it [18:21:20]requested_item shift.opened is exist - process it [18:21:20]req_shift_opened [18:21:20]FM_GetShiftState [18:21:20]SAM_PROTO_GetShiftState [18:21:20]wFMCommunicate request_size=4 [18:21:20]MH_SAM_APDU [18:21:20]CAPDU: 80 13 01 00 [18:21:20]Write to MH i2c: E2 08 00 9D 0E 80 13 01 00 00 00 00 00 28 [18:21:20]Write i2c OK [18:21:20]MH_I2C_Read... [18:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:20]Read from MH i2c: E2 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: E2 0E 00 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: E2 0E 00 9D 0E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 70 [18:21:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:21:20]wFMCommunicate OK [18:21:20]SAM_PROTO_GetShiftState done [18:21:20]FM_GetShiftState done [18:21:20]req_shift_opened done [18:21:20]requested_item shift.open_date is exist - process it [18:21:20]req_shift_open_date [18:21:20]req_shift_open_date done [18:21:20]produce_requested_data done [18:21:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165801,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:21:20]process_action_free close_receipt [18:21:20]json_value_free [18:21:20]json_value_free done [18:21:20]process_json_proto returns [18:21:20]Send response to host [18:21:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165801,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:21:20]free response buf [18:21:20]execute_script done [18:21:20]execute_script returns [18:21:20]free content buf [18:21:20]Sock 7.Close socket [18:21:20]Sock 7.Thread stoped [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:16]accept exits with 9 [18:25:16]New connection [18:25:16]New thread 3066776932 created [18:25:16]Thread 3066920292 joined [18:25:16]Waiting for new connection... [18:25:16] Sock 9.Parse request [18:25:16]Sock 9.Check first char [18:25:16]Sock 9.First char is OK [18:25:16]request: POST /json_proto HTTP/1.0 [18:25:16]Method: POST [18:25:16]URL: /json_proto [18:25:16]Method is POST - this is cgi request [18:25:16]url: /json_proto [18:25:16]query_string will be loaded in cgi processing [18:25:16]execute_cgi json_proto POST (null) [18:25:16]execute_cgi path=json_proto method=POST [18:25:16]POST find Content-Length [18:25:16]Host: 172.17.53.195:8080 [18:25:16]Content-Length: 682 [18:25:16]Content-Type: application/json [18:25:16] [18:25:16]POST finish read [18:25:16]Found Content-Length = 682 [18:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:16]execute_script... [18:25: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)220369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:16]POST & json_proto [18:25:16]process_json_proto [18:25:16]json parsed OK: [18:25:16]protocol is kg_v1.0 [18:25:16]action value=close_receipt [18:25:16]process_action close_receipt [18:25:16]cmd_close_receipt [18:25:16]MH_GetDate [18:25:16]Write to MH i2c: F0 00 00 9E 0E 9B [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: F0 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: F0 09 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: F0 09 00 9E 0E 00 19 4B 15 67 21 48 4A 65 9C [18:25:16]GetLastDocTimeStamp 1729448490 [18:25:16]current date 1729448729 [18:25:16]FM_GetShiftState [18:25:16]SAM_PROTO_GetShiftState [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 13 01 00 [18:25:16]Write to MH i2c: E2 08 00 9F 0E 80 13 01 00 00 00 00 00 2A [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0E 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0E 00 9F 0E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 72 [18:25:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:25:16]wFMCommunicate OK [18:25:16]SAM_PROTO_GetShiftState done [18:25:16]FM_GetShiftState done [18:25:16]opened in 1729384561 [18:25:16]opened+sec_in_day 1729470961 [18:25:16]quantity*price = 100015 [18:25:16]sum+1 = 100017 [18:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 284 20.10.2024 18:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165802 ФПД: 251553771704595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182529&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165802&fm=251553771704595&tin=02508201610067®Number=0000000000091764&sum=100000 [18:25:17]StoreToDocumentArchive [18:25:17]shift 534 fd 165802 [18:25:17]save to /storage/0534/doc_00165802 [18:25:17]save last doc name /storage/0534/doc_00165802 to /storage/kkm_last_doc_name [18:25:17]save OK [18:25:17]Clear old archive folders... [18:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:17]tlvbuf is 014B83A0 [18:25:17]SAM_PROTO_ClearQueue [18:25:17]wFMCommunicate request_size=4 [18:25:17]MH_SAM_APDU [18:25:17]CAPDU: 80 09 00 00 [18:25:17]Write to MH i2c: E2 08 00 AC 0E 80 09 00 00 00 00 00 00 2C [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:17]Read from MH i2c: E2 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 03 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 03 00 AC 0E 00 90 00 2E [18:25:17]RAPDU: 90 00 [18:25:17]wFMCommunicate OK [18:25:17]SAM_PROTO_ClearQueue done [18:25:17]KKMCreateOFDPacket [18:25:17]OFDProtocolAddRootSTLVToBuf [18:25:17]FM_MakeSignedData [18:25:17]FM_MakeSignedData [18:25:17]SAM_PROTO_SignData [18:25:17]wFMCommunicate request_size=4 [18:25:17]MH_SAM_APDU [18:25:17]CAPDU: 80 0D 01 02 [18:25:17]Write to MH i2c: E2 08 00 AD 0E 80 0D 01 02 00 00 00 00 34 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:17]Read from MH i2c: E2 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 03 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 03 00 AD 0E 00 90 00 2F [18:25:17]RAPDU: 90 00 [18:25:17]wFMCommunicate OK [18:25:17]wFMCommunicate request_size=255 [18:25:17]MH_SAM_APDU [18:25: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 19 4B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 87 02 00 35 04 06 00 E4 [18:25:17]Write to MH i2c: E2 02 01 AE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 19 4B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 87 02 00 35 04 06 00 E4 00 00 F0 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:17]Read from MH i2c: E2 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 03 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 03 00 AE 0E 00 90 00 30 [18:25:17]RAPDU: 90 00 [18:25:17]wFMCommunicate OK [18:25:17]wFMCommunicate request_size=10 [18:25:17]MH_SAM_APDU [18:25:17]CAPDU: 80 0D 02 02 05 C9 6D 34 51 13 [18:25:17]Write to MH i2c: E2 0D 00 AF 0E 80 0D 02 02 05 00 C9 6D 34 51 13 00 00 0F [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:17]Read from MH i2c: E2 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 03 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 03 00 AF 0E 00 90 00 31 [18:25:17]RAPDU: 90 00 [18:25:17]wFMCommunicate OK [18:25:17]wFMCommunicate request_size=4 [18:25:17]MH_SAM_APDU [18:25:17]CAPDU: 80 0D 03 02 [18:25:17]Write to MH i2c: E2 08 00 B0 0E 80 0D 03 02 00 00 00 00 39 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:17]Read from MH i2c: E2 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 0B 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 0B 00 B0 0E 00 5B 9A 7A 50 12 7A 1D 1C 90 00 BE [18:25:17]RAPDU: 5B 9A 7A 50 12 7A 1D 1C 90 00 [18:25:17]wFMCommunicate OK [18:25:17]SAM_PROTO_SignData done [18:25:17]FM_MakeSignedData done [18:25:17]CreateOFDProtocolMessage [18:25:17]wFMCommunicate request_size=4 [18:25:17]MH_SAM_APDU [18:25:17]CAPDU: 80 11 00 00 [18:25:17]Write to MH i2c: E2 08 00 B1 0E 80 11 00 00 00 00 00 00 39 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:17]Read from MH i2c: E2 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 17 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 17 00 B1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [18:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:25:17]wFMCommunicate OK [18:25:17]CreateOFDProtocolMessage done [18:25:17]OFDSenderStorePacket 165802 [18:25:17]StoreOFDPacket docnum=165802 [18:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C D8 07 01 D2 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 19 4B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 87 02 00 35 04 06 00 E4 C9 6D 34 51 13 5B 9A 7A 50 12 7A 1D 1C [18:25:17]CheckFolder [18:25:17]dirname=/storage/ofd_packets [18:25:17]CheckFolder done [18:25:17]ProducePacketName [18:25:17]name=ofd_packets/00165802 [18:25:17]NVStorageSaveData ofd_packets/00165802 [18:25:17]File name is /storage/ofd_packets/00165802 [18:25:17]Write 301 bytes [18:25:17]NVStorageSaveData done [18:25:17]OFDSenderStorePacket done [18:25:17]KKMCreateOFDPacket done [18:25:17]NVStorageSaveData kkm_last_timestamp [18:25:17]File name is /storage/kkm_last_timestamp [18:25:17]Write 4 bytes [18:25:17]NVStorageSaveData done [18:25:17]ExternCall_PrintAddStr [18:25:17]wPrintStart [18:25:17]Write to MH i2c: 01 00 00 B2 0E C0 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: 01 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: 01 07 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 FF 0F D5 [18:25:17]RasterBufferAndPrint [18:25:17]line Счет N : (1)220369 [18:25:17]line ИНН: 02508201610067 [18:25:17]line Контрольно-Кассовый Чек [18:25:17]line ПРОДАЖА [18:25:17]line ТРК (МРК, ГНК) : 33 [18:25:17]line Товар: 2710124130 [18:25:17]line Аи-92-К-5 [18:25:17]line 14.950 * 66.90 [18:25:17]line = 1000.16 [18:25:17]line НДС 12% НСП 1% [18:25:17]line > о реализуемом товаре [18:25:17]line ОКРУГЛЕНИЕ: -0.16 [18:25:17]line ИТОГО: 1000.00 [18:25:17]line Внесено: 1000.00 [18:25:17]line СДАЧА: 0.00 [18:25:17]line НСП 1% : 8.85 [18:25:17]line НДС 12% : 106.21 [18:25:17]line Наличными: 1000.00 [18:25:17]line Безнал.: 0.00 [18:25:17]line Место: АЗС № 161 "Партнер Нефть" [18:25:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:25:17]line СНО: Общий режим [18:25:17]line Чек 284 20.10.2024 18:25 [18:25:17]line Смена: 534 ФФД: 1.0 [18:25:17]line ЗНМ: 0300000104 [18:25:17]line РНМ: 0000000000091764 [18:25:17]line Версия ККМ: 001 [18:25:17]line ФМ: 0000000000871759 [18:25:17]line ФД: 165802 [18:25:17]line ФПД: 251553771704595 [18:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182529&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165802&fm=251553771704595&tin=02508201610067®Number=0000000000091764&sum=100000 [18:25:18]OFD Sender: Processing packet 165802 [packets to send 48, broken 47] [18:25:18]ProducePacketName [18:25:18]name=ofd_packets/00165802 [18:25:18]OFD Sender: To server: pG, [18:25:18]CommunicateWithHost lk.salyk.kg:30040 [18:25:18]ConnectInit lk.salyk.kg [18:25:18]written 0, free lines is 4095 [18:25:18]Connected sock=10 [18:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C D8 07 01 D2 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 19 4B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 87 02 00 35 04 06 00 E4 C9 6D 34 51 13 5B 9A 7A 50 12 7A 1D 1C [18:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 81 FF 47 00 68 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 87 02 00 F4 03 04 00 8B F1 14 67 B6 04 01 00 00 A2 65 1B D8 09 03 58 FF [18:25:18]CommunicateWithHost err = 0 [18:25:18]CheckOFDResponse [18:25:18]1017 (14) - 77093643461234 [18:25:18]1041 (16) - 0000000000871759 [18:25:18]1040 (4) - 165802 [18:25:18]1012 (4) - 20.10.2024 12:03 [18:25:18]1206 (1) - 0 [18:25:18]OFD Sender: Remove packet 165802 [18:25:18]ProducePacketName [18:25:18]name=ofd_packets/00165802 [18:25:18]NVStorageDeleteData [18:25:18]Write to MH i2c: 01 00 00 DD 0E EB [18:25:18]Write i2c OK [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: 01 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: 01 07 00 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: 01 07 00 DD 0E 00 00 00 00 00 B5 0C B3 [18:25:18]RasterBufferAndPrint [18:25:18]line [18:25:18]line [18:25:18]line [18:25:18]line [18:25:18]line [18:25:18]written 0, free lines is 3258 [18:25:18]MH_Cut [18:25:18]Write to MH i2c: D1 01 00 E4 0E 01 C4 [18:25:18]Write i2c OK [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: D1 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: D1 01 00 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: D1 01 00 E4 0E 00 C3 [18:25:18]Write to MH i2c: 01 00 00 E5 0E F3 [18:25:18]Write i2c OK [18:25:18]MH_I2C_Read... [18:25:19]OFD Sender: No OFD packet to send [18:25:19]*** Cut start [18:25:19]*** Partial cut [18:25:19]*** CUTSNS_PIN = 1 [18:25:19]*** CUTSNS_PIN = 0 [18:25:19]*** Brake cut motor [18:25:20]Read from MH i2c: 01 [18:25:20]MH_I2C_Read... [18:25:20]*** Stop cut motor [18:25:20]*** Cut end [18:25:20]Read from MH i2c: 01 07 00 [18:25:20]MH_I2C_Read... [18:25:20]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [18:25:20]process_action close_receipt done [18:25:20]requested_data is exist [18:25:20]produce_requested_data [18:25:20]requested_item fm.sn is exist - process it [18:25:20]wFMCommunicate request_size=4 [18:25:20]MH_SAM_APDU [18:25:20]CAPDU: 80 11 00 00 [18:25:20]Write to MH i2c: E2 08 00 E6 0E 80 11 00 00 00 00 00 00 6E [18:25:20]Write i2c OK [18:25:20]MH_I2C_Read... [18:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:20]Read from MH i2c: E2 [18:25:20]MH_I2C_Read... [18:25:20]Read from MH i2c: E2 17 00 [18:25:20]MH_I2C_Read... [18:25:20]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 31 37 35 39 90 00 C6 [18:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:25:20]wFMCommunicate OK [18:25:20]requested_item fd.num is exist - process it [18:25:20]SAM_PROTO_GetFieldsCounters [18:25:20]wFMCommunicate request_size=4 [18:25:20]MH_SAM_APDU [18:25:20]CAPDU: 80 13 00 00 [18:25:20]Write to MH i2c: E2 08 00 E7 0E 80 13 00 00 00 00 00 00 71 [18:25:20]Write i2c OK [18:25:20]MH_I2C_Read... [18:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:20]Read from MH i2c: E2 [18:25:20]MH_I2C_Read... [18:25:20]Read from MH i2c: E2 62 00 [18:25:20]MH_I2C_Read... [18:25:20]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 87 02 00 0E 04 04 00 16 02 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 3B [18:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 87 02 00 0E 04 04 00 16 02 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:25:20]wFMCommunicate OK [18:25:20]SAM_PROTO_GetFieldsCounters done [18:25:20]requested_item shift.num is exist - process it [18:25:20]requested_item shift.opened is exist - process it [18:25:20]req_shift_opened [18:25:20]FM_GetShiftState [18:25:20]SAM_PROTO_GetShiftState [18:25:20]wFMCommunicate request_size=4 [18:25:20]MH_SAM_APDU [18:25:20]CAPDU: 80 13 01 00 [18:25:20]Write to MH i2c: E2 08 00 E8 0E 80 13 01 00 00 00 00 00 73 [18:25:20]Write i2c OK [18:25:20]MH_I2C_Read... [18:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:20]Read from MH i2c: E2 [18:25:20]MH_I2C_Read... [18:25:20]Read from MH i2c: E2 0E 00 [18:25:20]MH_I2C_Read... [18:25:20]Read from MH i2c: E2 0E 00 E8 0E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BB [18:25:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:25:20]wFMCommunicate OK [18:25:20]SAM_PROTO_GetShiftState done [18:25:20]FM_GetShiftState done [18:25:20]req_shift_opened done [18:25:20]requested_item shift.open_date is exist - process it [18:25:20]req_shift_open_date [18:25:20]req_shift_open_date done [18:25:20]produce_requested_data done [18:25:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165802,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:25:20]process_action_free close_receipt [18:25:20]json_value_free [18:25:20]json_value_free done [18:25:20]process_json_proto returns [18:25:20]Send response to host [18:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165802,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:25:20]free response buf [18:25:20]execute_script done [18:25:20]execute_script returns [18:25:20]free content buf [18:25:20]Sock 9.Close socket [18:25:20]Sock 9.Thread stoped [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:26]accept exits with 7 [18:29:26]New connection [18:29:26]New thread 3066920292 created [18:29:26]Thread 3066776932 joined [18:29:26]Waiting for new connection... [18:29:26] Sock 7.Parse request [18:29:26]Sock 7.Check first char [18:29:26]Sock 7.First char is OK [18:29:26]request: POST /json_proto HTTP/1.0 [18:29:26]Method: POST [18:29:26]URL: /json_proto [18:29:26]Method is POST - this is cgi request [18:29:26]url: /json_proto [18:29:26]query_string will be loaded in cgi processing [18:29:26]execute_cgi json_proto POST (null) [18:29:26]execute_cgi path=json_proto method=POST [18:29:26]POST find Content-Length [18:29:26]Host: 172.17.53.195:8080 [18:29:26]Content-Length: 677 [18:29:26]Content-Type: application/json [18:29:26] [18:29:26]POST finish read [18:29:26]Found Content-Length = 677 [18:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:26]execute_script... [18:29: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)220371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:26]POST & json_proto [18:29:26]process_json_proto [18:29:26]json parsed OK: [18:29:26]protocol is kg_v1.0 [18:29:26]action value=close_receipt [18:29:26]process_action close_receipt [18:29:26]cmd_close_receipt [18:29:26]MH_GetDate [18:29:26]Write to MH i2c: F0 00 00 E9 0E E6 [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: F0 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: F0 09 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: F0 09 00 E9 0E 00 14 4C 15 67 21 48 4A 65 E3 [18:29:26]GetLastDocTimeStamp 1729448729 [18:29:26]current date 1729448980 [18:29:26]FM_GetShiftState [18:29:26]SAM_PROTO_GetShiftState [18:29:26]wFMCommunicate request_size=4 [18:29:26]MH_SAM_APDU [18:29:26]CAPDU: 80 13 01 00 [18:29:26]Write to MH i2c: E2 08 00 EA 0E 80 13 01 00 00 00 00 00 75 [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:26]Read from MH i2c: E2 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 0E 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 0E 00 EA 0E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BD [18:29:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:29:26]wFMCommunicate OK [18:29:26]SAM_PROTO_GetShiftState done [18:29:26]FM_GetShiftState done [18:29:26]opened in 1729384561 [18:29:26]opened+sec_in_day 1729470961 [18:29:26]quantity*price = 50041 [18:29:26]sum+1 = 50042 [18:29:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 285 20.10.2024 18:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165803 ФПД: 174097450055357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182940&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165803&fm=174097450055357&tin=02508201610067®Number=0000000000091764&sum=50000 [18:29:27]StoreToDocumentArchive [18:29:27]shift 534 fd 165803 [18:29:27]save to /storage/0534/doc_00165803 [18:29:27]save last doc name /storage/0534/doc_00165803 to /storage/kkm_last_doc_name [18:29:27]save OK [18:29:27]Clear old archive folders... [18:29:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:27]tlvbuf is 0177A7E0 [18:29:27]SAM_PROTO_ClearQueue [18:29:27]wFMCommunicate request_size=4 [18:29:27]MH_SAM_APDU [18:29:27]CAPDU: 80 09 00 00 [18:29:27]Write to MH i2c: E2 08 00 F7 0E 80 09 00 00 00 00 00 00 77 [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 F7 0E 00 90 00 79 [18:29:27]RAPDU: 90 00 [18:29:27]wFMCommunicate OK [18:29:27]SAM_PROTO_ClearQueue done [18:29:27]KKMCreateOFDPacket [18:29:27]OFDProtocolAddRootSTLVToBuf [18:29:27]FM_MakeSignedData [18:29:27]FM_MakeSignedData [18:29:27]SAM_PROTO_SignData [18:29:27]wFMCommunicate request_size=4 [18:29:27]MH_SAM_APDU [18:29:27]CAPDU: 80 0D 01 02 [18:29:27]Write to MH i2c: E2 08 00 F8 0E 80 0D 01 02 00 00 00 00 7F [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [18:29:27]RAPDU: 90 00 [18:29:27]wFMCommunicate OK [18:29:27]wFMCommunicate request_size=255 [18:29:27]MH_SAM_APDU [18:29: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 14 4C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 87 02 00 35 04 06 00 9E [18:29:27]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 14 4C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 87 02 00 35 04 06 00 9E 00 00 F9 [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 F9 0E 00 90 00 7B [18:29:27]RAPDU: 90 00 [18:29:27]wFMCommunicate OK [18:29:27]wFMCommunicate request_size=10 [18:29:27]MH_SAM_APDU [18:29:27]CAPDU: 80 0D 02 02 05 57 38 AA B6 BD [18:29:27]Write to MH i2c: E2 0D 00 FA 0E 80 0D 02 02 05 00 57 38 AA B6 BD 00 00 38 [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 FA 0E 00 90 00 7C [18:29:27]RAPDU: 90 00 [18:29:27]wFMCommunicate OK [18:29:27]wFMCommunicate request_size=4 [18:29:27]MH_SAM_APDU [18:29:27]CAPDU: 80 0D 03 02 [18:29:27]Write to MH i2c: E2 08 00 FB 0E 80 0D 03 02 00 00 00 00 84 [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 0B 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 0B 00 FB 0E 00 C8 4D 00 2F 8E C5 62 61 90 00 DF [18:29:27]RAPDU: C8 4D 00 2F 8E C5 62 61 90 00 [18:29:27]wFMCommunicate OK [18:29:27]SAM_PROTO_SignData done [18:29:27]FM_MakeSignedData done [18:29:27]CreateOFDProtocolMessage [18:29:27]wFMCommunicate request_size=4 [18:29:27]MH_SAM_APDU [18:29:27]CAPDU: 80 11 00 00 [18:29:27]Write to MH i2c: E2 08 00 FC 0E 80 11 00 00 00 00 00 00 84 [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 17 00 [18:29:27]MH_I2C_Read... [18:29:27]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 31 37 35 39 90 00 DC [18:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:29:27]wFMCommunicate OK [18:29:27]CreateOFDProtocolMessage done [18:29:27]OFDSenderStorePacket 165803 [18:29:27]StoreOFDPacket docnum=165803 [18:29:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6D AE 07 01 C2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 14 4C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 87 02 00 35 04 06 00 9E 57 38 AA B6 BD C8 4D 00 2F 8E C5 62 61 [18:29:27]CheckFolder [18:29:27]dirname=/storage/ofd_packets [18:29:27]CheckFolder done [18:29:27]ProducePacketName [18:29:27]name=ofd_packets/00165803 [18:29:27]NVStorageSaveData ofd_packets/00165803 [18:29:27]File name is /storage/ofd_packets/00165803 [18:29:27]Write 301 bytes [18:29:27]NVStorageSaveData done [18:29:27]OFDSenderStorePacket done [18:29:27]KKMCreateOFDPacket done [18:29:27]NVStorageSaveData kkm_last_timestamp [18:29:27]File name is /storage/kkm_last_timestamp [18:29:27]Write 4 bytes [18:29:27]NVStorageSaveData done [18:29:27]ExternCall_PrintAddStr [18:29:27]wPrintStart [18:29:27]Write to MH i2c: 01 00 00 FD 0E 0B [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: 01 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: 01 07 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 FF 0F 20 [18:29:27]RasterBufferAndPrint [18:29:27]line Счет N : (1)220371 [18:29:27]line ИНН: 02508201610067 [18:29:27]line Контрольно-Кассовый Чек [18:29:27]line ПРОДАЖА [18:29:27]line ТРК (МРК, ГНК) : 23 [18:29:27]line Товар: 2710124130 [18:29:27]line Аи-92-К-5 [18:29:27]line 7.480 * 66.90 [18:29:27]line = 500.41 [18:29:27]line НДС 12% НСП 1% [18:29:27]line > о реализуемом товаре [18:29:27]line ОКРУГЛЕНИЕ: -0.41 [18:29:27]line ИТОГО: 500.00 [18:29:27]line Внесено: 500.00 [18:29:27]line СДАЧА: 0.00 [18:29:27]line НСП 1% : 4.43 [18:29:27]line НДС 12% : 53.14 [18:29:27]line Наличными: 500.00 [18:29:27]line Безнал.: 0.00 [18:29:27]line Место: АЗС № 161 "Партнер Нефть" [18:29:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:29:27]line СНО: Общий режим [18:29:27]line Чек 285 20.10.2024 18:29 [18:29:27]line Смена: 534 ФФД: 1.0 [18:29:27]line ЗНМ: 0300000104 [18:29:27]line РНМ: 0000000000091764 [18:29:27]line Версия ККМ: 001 [18:29:27]line ФМ: 0000000000871759 [18:29:27]line ФД: 165803 [18:29:27]line ФПД: 174097450055357 [18:29:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182940&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165803&fm=174097450055357&tin=02508201610067®Number=0000000000091764&sum=50000 [18:29:28]OFD Sender: Processing packet 165803 [packets to send 48, broken 47] [18:29:28]ProducePacketName [18:29:28]name=ofd_packets/00165803 [18:29:28]OFD Sender: To server: pG, [18:29:28]CommunicateWithHost lk.salyk.kg:30040 [18:29:28]ConnectInit lk.salyk.kg [18:29:28]written 0, free lines is 4095 [18:29:28]Connected sock=10 [18:29:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6D AE 07 01 C2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 14 4C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 87 02 00 35 04 06 00 9E 57 38 AA B6 BD C8 4D 00 2F 8E C5 62 61 [18:29:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AF 9F 47 00 09 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 31 37 35 39 10 04 04 00 AB 87 02 00 F4 03 04 00 85 F2 14 67 B6 04 01 00 00 43 F4 A6 AF 0B 03 03 0D [18:29:28]CommunicateWithHost err = 0 [18:29:28]CheckOFDResponse [18:29:28]1017 (14) - 77093643461234 [18:29:28]1041 (16) - 0000000000871759 [18:29:28]1040 (4) - 165803 [18:29:28]1012 (4) - 20.10.2024 12:07 [18:29:28]1206 (1) - 0 [18:29:28]OFD Sender: Remove packet 165803 [18:29:28]ProducePacketName [18:29:28]name=ofd_packets/00165803 [18:29:28]NVStorageDeleteData [18:29:28]Write to MH i2c: 01 00 00 28 0F 37 [18:29:28]Write i2c OK [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: 01 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: 01 07 00 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: 01 07 00 28 0F 00 00 00 00 00 B7 0C 01 [18:29:28]RasterBufferAndPrint [18:29:28]line [18:29:28]line [18:29:28]line [18:29:28]line [18:29:28]line [18:29:28]written 0, free lines is 3263 [18:29:28]MH_Cut [18:29:28]Write to MH i2c: D1 01 00 2F 0F 01 10 [18:29:28]Write i2c OK [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: D1 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: D1 01 00 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: D1 01 00 2F 0F 00 0F [18:29:28]Write to MH i2c: 01 00 00 30 0F 3F [18:29:28]Write i2c OK [18:29:28]MH_I2C_Read... [18:29:29]OFD Sender: No OFD packet to send [18:29:29]*** Cut start [18:29:29]*** Partial cut [18:29:29]*** CUTSNS_PIN = 1 [18:29:29]*** CUTSNS_PIN = 0 [18:29:29]*** Brake cut motor [18:29:30]Read from MH i2c: 01 [18:29:30]MH_I2C_Read... [18:29:30]*** Stop cut motor [18:29:30]*** Cut end [18:29:30]Read from MH i2c: 01 07 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: 01 07 00 30 0F 00 00 00 00 00 FF 0F 54 [18:29:30]process_action close_receipt done [18:29:30]requested_data is exist [18:29:30]produce_requested_data [18:29:30]requested_item fm.sn is exist - process it [18:29:30]wFMCommunicate request_size=4 [18:29:30]MH_SAM_APDU [18:29:30]CAPDU: 80 11 00 00 [18:29:30]Write to MH i2c: E2 08 00 31 0F 80 11 00 00 00 00 00 00 BA [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 17 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 17 00 31 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 12 [18:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:29:30]wFMCommunicate OK [18:29:30]requested_item fd.num is exist - process it [18:29:30]SAM_PROTO_GetFieldsCounters [18:29:30]wFMCommunicate request_size=4 [18:29:30]MH_SAM_APDU [18:29:30]CAPDU: 80 13 00 00 [18:29:30]Write to MH i2c: E2 08 00 32 0F 80 13 00 00 00 00 00 00 BD [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 62 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 62 00 32 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 87 02 00 0E 04 04 00 16 02 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 8B [18:29:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 87 02 00 0E 04 04 00 16 02 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:29:30]wFMCommunicate OK [18:29:30]SAM_PROTO_GetFieldsCounters done [18:29:30]requested_item shift.num is exist - process it [18:29:30]requested_item shift.opened is exist - process it [18:29:30]req_shift_opened [18:29:30]FM_GetShiftState [18:29:30]SAM_PROTO_GetShiftState [18:29:30]wFMCommunicate request_size=4 [18:29:30]MH_SAM_APDU [18:29:30]CAPDU: 80 13 01 00 [18:29:30]Write to MH i2c: E2 08 00 33 0F 80 13 01 00 00 00 00 00 BF [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 0E 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 0E 00 33 0F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 07 [18:29:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:29:30]wFMCommunicate OK [18:29:30]SAM_PROTO_GetShiftState done [18:29:30]FM_GetShiftState done [18:29:30]req_shift_opened done [18:29:30]requested_item shift.open_date is exist - process it [18:29:30]req_shift_open_date [18:29:30]req_shift_open_date done [18:29:30]produce_requested_data done [18:29:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165803,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:29:30]process_action_free close_receipt [18:29:30]json_value_free [18:29:30]json_value_free done [18:29:30]process_json_proto returns [18:29:30]Send response to host [18:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165803,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:29:30]free response buf [18:29:30]execute_script done [18:29:30]execute_script returns [18:29:30]free content buf [18:29:30]Sock 7.Close socket [18:29:30]Sock 7.Thread stoped [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:46]accept exits with 9 [18:32:46]New connection [18:32:46]New thread 3066776932 created [18:32:46]Thread 3066920292 joined [18:32:46]Waiting for new connection... [18:32:46] Sock 9.Parse request [18:32:46]Sock 9.Check first char [18:32:46]Sock 9.First char is OK [18:32:46]request: POST /json_proto HTTP/1.0 [18:32:46]Method: POST [18:32:46]URL: /json_proto [18:32:46]Method is POST - this is cgi request [18:32:46]url: /json_proto [18:32:46]query_string will be loaded in cgi processing [18:32:46]execute_cgi json_proto POST (null) [18:32:46]execute_cgi path=json_proto method=POST [18:32:46]POST find Content-Length [18:32:46]Host: 172.17.53.195:8080 [18:32:46]Content-Length: 766 [18:32:46]Content-Type: application/json [18:32:46] [18:32:46]POST finish read [18:32:46]Found Content-Length = 766 [18:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:46]execute_script... [18:32: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)220372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:46]POST & json_proto [18:32:46]process_json_proto [18:32:46]json parsed OK: [18:32:46]protocol is kg_v1.0 [18:32:46]action value=close_receipt [18:32:46]process_action close_receipt [18:32:46]cmd_close_receipt [18:32:46]MH_GetDate [18:32:46]Write to MH i2c: F0 00 00 34 0F 32 [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: F0 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: F0 09 00 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: F0 09 00 34 0F 00 DC 4C 15 67 21 48 4A 65 F7 [18:32:46]GetLastDocTimeStamp 1729448980 [18:32:46]current date 1729449180 [18:32:46]FM_GetShiftState [18:32:46]SAM_PROTO_GetShiftState [18:32:46]wFMCommunicate request_size=4 [18:32:46]MH_SAM_APDU [18:32:46]CAPDU: 80 13 01 00 [18:32:46]Write to MH i2c: E2 08 00 35 0F 80 13 01 00 00 00 00 00 C1 [18:32:47]Write i2c OK [18:32:47]MH_I2C_Read... [18:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:47]Read from MH i2c: E2 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 0E 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 0E 00 35 0F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 09 [18:32:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:32:47]wFMCommunicate OK [18:32:47]SAM_PROTO_GetShiftState done [18:32:47]FM_GetShiftState done [18:32:47]opened in 1729384561 [18:32:47]opened+sec_in_day 1729470961 [18:32:47]quantity*price = 40006 [18:32:47]sum+1 = 40007 [18:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 286 20.10.2024 18:33 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165804 ФПД: 233903571459304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183300&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165804&fm=233903571459304&tin=02508201610067®Number=0000000000091764&sum=40006 [18:32:48]StoreToDocumentArchive [18:32:48]shift 534 fd 165804 [18:32:48]save to /storage/0534/doc_00165804 [18:32:48]save last doc name /storage/0534/doc_00165804 to /storage/kkm_last_doc_name [18:32:48]save OK [18:32:48]Clear old archive folders... [18:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:48]tlvbuf is 0190BA50 [18:32:48]SAM_PROTO_ClearQueue [18:32:48]wFMCommunicate request_size=4 [18:32:48]MH_SAM_APDU [18:32:48]CAPDU: 80 09 00 00 [18:32:48]Write to MH i2c: E2 08 00 42 0F 80 09 00 00 00 00 00 00 C3 [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 03 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 03 00 42 0F 00 90 00 C5 [18:32:48]RAPDU: 90 00 [18:32:48]wFMCommunicate OK [18:32:48]SAM_PROTO_ClearQueue done [18:32:48]KKMCreateOFDPacket [18:32:48]OFDProtocolAddRootSTLVToBuf [18:32:48]FM_MakeSignedData [18:32:48]FM_MakeSignedData [18:32:48]SAM_PROTO_SignData [18:32:48]wFMCommunicate request_size=4 [18:32:48]MH_SAM_APDU [18:32:48]CAPDU: 80 0D 01 02 [18:32:48]Write to MH i2c: E2 08 00 43 0F 80 0D 01 02 00 00 00 00 CB [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 03 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 03 00 43 0F 00 90 00 C6 [18:32:48]RAPDU: 90 00 [18:32:48]wFMCommunicate OK [18:32:48]wFMCommunicate request_size=255 [18:32:48]MH_SAM_APDU [18:32: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 DC 4C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 87 02 00 35 04 06 00 D4 [18:32:48]Write to MH i2c: E2 02 01 44 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 DC 4C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 87 02 00 35 04 06 00 D4 00 00 20 [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 03 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 03 00 44 0F 00 90 00 C7 [18:32:48]RAPDU: 90 00 [18:32:48]wFMCommunicate OK [18:32:48]wFMCommunicate request_size=10 [18:32:48]MH_SAM_APDU [18:32:48]CAPDU: 80 0D 02 02 05 BB EB 49 DC E8 [18:32:48]Write to MH i2c: E2 0D 00 45 0F 80 0D 02 02 05 00 BB EB 49 DC E8 00 00 8B [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 03 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 03 00 45 0F 00 90 00 C8 [18:32:48]RAPDU: 90 00 [18:32:48]wFMCommunicate OK [18:32:48]wFMCommunicate request_size=4 [18:32:48]MH_SAM_APDU [18:32:48]CAPDU: 80 0D 03 02 [18:32:48]Write to MH i2c: E2 08 00 46 0F 80 0D 03 02 00 00 00 00 D0 [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 0B 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 0B 00 46 0F 00 B1 87 3B 60 0B D6 F8 2D 90 00 AA [18:32:48]RAPDU: B1 87 3B 60 0B D6 F8 2D 90 00 [18:32:48]wFMCommunicate OK [18:32:48]SAM_PROTO_SignData done [18:32:48]FM_MakeSignedData done [18:32:48]CreateOFDProtocolMessage [18:32:48]wFMCommunicate request_size=4 [18:32:48]MH_SAM_APDU [18:32:48]CAPDU: 80 11 00 00 [18:32:48]Write to MH i2c: E2 08 00 47 0F 80 11 00 00 00 00 00 00 D0 [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 17 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 17 00 47 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 28 [18:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:32:48]wFMCommunicate OK [18:32:48]CreateOFDProtocolMessage done [18:32:48]OFDSenderStorePacket 165804 [18:32:48]StoreOFDPacket docnum=165804 [18:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 28 81 07 01 FD 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 DC 4C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 87 02 00 35 04 06 00 D4 BB EB 49 DC E8 B1 87 3B 60 0B D6 F8 2D [18:32:48]CheckFolder [18:32:48]dirname=/storage/ofd_packets [18:32:48]CheckFolder done [18:32:48]ProducePacketName [18:32:48]name=ofd_packets/00165804 [18:32:48]NVStorageSaveData ofd_packets/00165804 [18:32:48]File name is /storage/ofd_packets/00165804 [18:32:48]Write 301 bytes [18:32:48]NVStorageSaveData done [18:32:48]OFDSenderStorePacket done [18:32:48]KKMCreateOFDPacket done [18:32:48]NVStorageSaveData kkm_last_timestamp [18:32:48]File name is /storage/kkm_last_timestamp [18:32:48]Write 4 bytes [18:32:48]NVStorageSaveData done [18:32:48]ExternCall_PrintAddStr [18:32:48]wPrintStart [18:32:48]Write to MH i2c: 01 00 00 48 0F 57 [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: 01 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: 01 07 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: 01 07 00 48 0F 00 00 00 00 00 FF 0F 6C [18:32:48]RasterBufferAndPrint [18:32:48]line Счет N : (1)220372 [18:32:48]line ИНН: 02508201610067 [18:32:48]line Контрольно-Кассовый Чек [18:32:48]line ПРОДАЖА [18:32:48]line ТРК (МРК, ГНК) : 33 [18:32:48]line Товар: 2710124130 [18:32:48]line Аи-92-К-5 [18:32:48]line 5.980 * 66.90 [18:32:48]line = 400.06 [18:32:48]line НДС 12% НСП 1% [18:32:48]line > о реализуемом товаре [18:32:48]line ИТОГО: 400.06 [18:32:48]line НСП 1% : 3.54 [18:32:48]line НДС 12% : 42.48 [18:32:48]line Наличными: 0.00 [18:32:48]line Безнал.: 400.06 [18:32:48]line Место: АЗС № 161 "Партнер Нефть" [18:32:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:32:48]line СНО: Общий режим [18:32:48]line Чек 286 20.10.2024 18:33 [18:32:48]line Смена: 534 ФФД: 1.0 [18:32:48]line ЗНМ: 0300000104 [18:32:48]line РНМ: 0000000000091764 [18:32:48]line Версия ККМ: 001 [18:32:48]line Платежная система: Mbank [18:32:48]line ФМ: 0000000000871759 [18:32:48]line ФД: 165804 [18:32:48]line ФПД: 233903571459304 [18:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183300&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165804&fm=233903571459304&tin=02508201610067®Number=0000000000091764&sum=40006 [18:32:48]written 0, free lines is 4095 [18:32:48]OFD Sender: Processing packet 165804 [packets to send 48, broken 47] [18:32:48]ProducePacketName [18:32:48]name=ofd_packets/00165804 [18:32:49]OFD Sender: To server: pG, [18:32:49]CommunicateWithHost lk.salyk.kg:30040 [18:32:49]ConnectInit lk.salyk.kg [18:32:49]Connected sock=10 [18:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 28 81 07 01 FD 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 DC 4C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 87 02 00 35 04 06 00 D4 BB EB 49 DC E8 B1 87 3B 60 0B D6 F8 2D [18:32:49]Write to MH i2c: 01 00 00 71 0F 80 [18:32:49]Write i2c OK [18:32:49]MH_I2C_Read... [18:32:49]Read from MH i2c: 01 [18:32:49]MH_I2C_Read... [18:32:49]Read from MH i2c: 01 07 00 [18:32:49]MH_I2C_Read... [18:32:49]Read from MH i2c: 01 07 00 71 0F 00 00 00 00 00 EC 0C 7F [18:32:49]RasterBufferAndPrint [18:32:49]line [18:32:49]line [18:32:49]line [18:32:49]line [18:32:49]line [18:32:49]written 0, free lines is 3317 [18:32:49]MH_Cut [18:32:49]Write to MH i2c: D1 01 00 78 0F 01 59 [18:32:49]Write i2c OK [18:32:49]MH_I2C_Read... [18:32:49]Read from MH i2c: D1 [18:32:49]MH_I2C_Read... [18:32:49]Read from MH i2c: D1 01 00 [18:32:49]MH_I2C_Read... [18:32:49]Read from MH i2c: D1 01 00 78 0F 00 58 [18:32:49]Write to MH i2c: 01 00 00 79 0F 88 [18:32:49]Write i2c OK [18:32:49]MH_I2C_Read... [18:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 21 0F 47 00 34 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 87 02 00 F4 03 04 00 4D F3 14 67 B6 04 01 00 00 9D B5 8E E6 22 D8 2F D8 [18:32:49]CommunicateWithHost err = 0 [18:32:49]CheckOFDResponse [18:32:49]1017 (14) - 77093643461234 [18:32:49]1041 (16) - 0000000000871759 [18:32:49]1040 (4) - 165804 [18:32:49]1012 (4) - 20.10.2024 12:10 [18:32:49]1206 (1) - 0 [18:32:49]OFD Sender: Remove packet 165804 [18:32:49]ProducePacketName [18:32:49]name=ofd_packets/00165804 [18:32:49]NVStorageDeleteData [18:32:49]OFD Sender: No OFD packet to send [18:32:49]*** Cut start [18:32:49]*** Partial cut [18:32:49]*** CUTSNS_PIN = 1 [18:32:50]*** CUTSNS_PIN = 0 [18:32:50]*** Brake cut motor [18:32:50]Read from MH i2c: 01 [18:32:50]MH_I2C_Read... [18:32:50]*** Stop cut motor [18:32:50]*** Cut end [18:32:50]Read from MH i2c: 01 07 00 [18:32:50]MH_I2C_Read... [18:32:50]Read from MH i2c: 01 07 00 79 0F 00 00 00 00 00 FF 0F 9D [18:32:50]process_action close_receipt done [18:32:50]requested_data is exist [18:32:50]produce_requested_data [18:32:50]requested_item fm.sn is exist - process it [18:32:50]wFMCommunicate request_size=4 [18:32:50]MH_SAM_APDU [18:32:50]CAPDU: 80 11 00 00 [18:32:50]Write to MH i2c: E2 08 00 7A 0F 80 11 00 00 00 00 00 00 03 [18:32:50]Write i2c OK [18:32:50]MH_I2C_Read... [18:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:50]Read from MH i2c: E2 [18:32:50]MH_I2C_Read... [18:32:50]Read from MH i2c: E2 17 00 [18:32:50]MH_I2C_Read... [18:32:50]Read from MH i2c: E2 17 00 7A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [18:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:32:50]wFMCommunicate OK [18:32:50]requested_item fd.num is exist - process it [18:32:50]SAM_PROTO_GetFieldsCounters [18:32:50]wFMCommunicate request_size=4 [18:32:50]MH_SAM_APDU [18:32:50]CAPDU: 80 13 00 00 [18:32:50]Write to MH i2c: E2 08 00 7B 0F 80 13 00 00 00 00 00 00 06 [18:32:50]Write i2c OK [18:32:50]MH_I2C_Read... [18:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:50]Read from MH i2c: E2 [18:32:50]MH_I2C_Read... [18:32:50]Read from MH i2c: E2 62 00 [18:32:50]MH_I2C_Read... [18:32:50]Read from MH i2c: E2 62 00 7B 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 87 02 00 0E 04 04 00 16 02 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 D8 [18:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 87 02 00 0E 04 04 00 16 02 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:32:50]wFMCommunicate OK [18:32:50]SAM_PROTO_GetFieldsCounters done [18:32:50]requested_item shift.num is exist - process it [18:32:50]requested_item shift.opened is exist - process it [18:32:50]req_shift_opened [18:32:50]FM_GetShiftState [18:32:50]SAM_PROTO_GetShiftState [18:32:50]wFMCommunicate request_size=4 [18:32:50]MH_SAM_APDU [18:32:50]CAPDU: 80 13 01 00 [18:32:50]Write to MH i2c: E2 08 00 7C 0F 80 13 01 00 00 00 00 00 08 [18:32:50]Write i2c OK [18:32:50]MH_I2C_Read... [18:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:50]Read from MH i2c: E2 [18:32:50]MH_I2C_Read... [18:32:50]Read from MH i2c: E2 0E 00 [18:32:50]MH_I2C_Read... [18:32:50]Read from MH i2c: E2 0E 00 7C 0F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 50 [18:32:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:32:50]wFMCommunicate OK [18:32:50]SAM_PROTO_GetShiftState done [18:32:50]FM_GetShiftState done [18:32:50]req_shift_opened done [18:32:50]requested_item shift.open_date is exist - process it [18:32:50]req_shift_open_date [18:32:50]req_shift_open_date done [18:32:50]produce_requested_data done [18:32:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165804,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:32:50]process_action_free close_receipt [18:32:50]json_value_free [18:32:50]json_value_free done [18:32:50]process_json_proto returns [18:32:50]Send response to host [18:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165804,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:32:50]free response buf [18:32:50]execute_script done [18:32:50]execute_script returns [18:32:50]free content buf [18:32:50]Sock 9.Close socket [18:32:50]Sock 9.Thread stoped [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:02]accept exits with 7 [18:34:02]New connection [18:34:02]New thread 3066920292 created [18:34:02]Thread 3066776932 joined [18:34:02]Waiting for new connection... [18:34:02] Sock 7.Parse request [18:34:02]Sock 7.Check first char [18:34:02]Sock 7.First char is OK [18:34:02]request: POST /json_proto HTTP/1.0 [18:34:02]Method: POST [18:34:02]URL: /json_proto [18:34:02]Method is POST - this is cgi request [18:34:02]url: /json_proto [18:34:02]query_string will be loaded in cgi processing [18:34:02]execute_cgi json_proto POST (null) [18:34:02]execute_cgi path=json_proto method=POST [18:34:02]POST find Content-Length [18:34:02]Host: 172.17.53.195:8080 [18:34:02]Content-Length: 769 [18:34:02]Content-Type: application/json [18:34:02] [18:34:02]POST finish read [18:34:02]Found Content-Length = 769 [18:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.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: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:02]execute_script... [18:34: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)220373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.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: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:02]POST & json_proto [18:34:02]process_json_proto [18:34:02]json parsed OK: [18:34:02]protocol is kg_v1.0 [18:34:02]action value=close_receipt [18:34:02]process_action close_receipt [18:34:02]cmd_close_receipt [18:34:02]MH_GetDate [18:34:02]Write to MH i2c: F0 00 00 7D 0F 7B [18:34:02]Write i2c OK [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: F0 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: F0 09 00 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: F0 09 00 7D 0F 00 28 4D 15 67 21 48 4A 65 8D [18:34:02]GetLastDocTimeStamp 1729449180 [18:34:02]current date 1729449256 [18:34:02]FM_GetShiftState [18:34:02]SAM_PROTO_GetShiftState [18:34:02]wFMCommunicate request_size=4 [18:34:02]MH_SAM_APDU [18:34:02]CAPDU: 80 13 01 00 [18:34:02]Write to MH i2c: E2 08 00 7E 0F 80 13 01 00 00 00 00 00 0A [18:34:02]Write i2c OK [18:34:02]MH_I2C_Read... [18:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:02]Read from MH i2c: E2 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: E2 0E 00 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: E2 0E 00 7E 0F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 52 [18:34:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:34:02]wFMCommunicate OK [18:34:02]SAM_PROTO_GetShiftState done [18:34:02]FM_GetShiftState done [18:34:02]opened in 1729384561 [18:34:02]opened+sec_in_day 1729470961 [18:34:02]quantity*price = 150056 [18:34:02]sum+1 = 150058 [18:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 287 20.10.2024 18:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165805 ФПД: 143737860064574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183416&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165805&fm=143737860064574&tin=02508201610067®Number=0000000000091764&sum=150057 [18:34:03]StoreToDocumentArchive [18:34:03]shift 534 fd 165805 [18:34:03]save to /storage/0534/doc_00165805 [18:34:03]save last doc name /storage/0534/doc_00165805 to /storage/kkm_last_doc_name [18:34:03]save OK [18:34:03]Clear old archive folders... [18:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:03]tlvbuf is 0177A3A0 [18:34:03]SAM_PROTO_ClearQueue [18:34:03]wFMCommunicate request_size=4 [18:34:03]MH_SAM_APDU [18:34:03]CAPDU: 80 09 00 00 [18:34:03]Write to MH i2c: E2 08 00 8B 0F 80 09 00 00 00 00 00 00 0C [18:34:03]Write i2c OK [18:34:03]MH_I2C_Read... [18:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:03]Read from MH i2c: E2 [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: E2 03 00 [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: E2 03 00 8B 0F 00 90 00 0E [18:34:03]RAPDU: 90 00 [18:34:03]wFMCommunicate OK [18:34:03]SAM_PROTO_ClearQueue done [18:34:03]KKMCreateOFDPacket [18:34:03]OFDProtocolAddRootSTLVToBuf [18:34:03]FM_MakeSignedData [18:34:03]FM_MakeSignedData [18:34:03]SAM_PROTO_SignData [18:34:03]wFMCommunicate request_size=4 [18:34:03]MH_SAM_APDU [18:34:03]CAPDU: 80 0D 01 02 [18:34:03]Write to MH i2c: E2 08 00 8C 0F 80 0D 01 02 00 00 00 00 14 [18:34:03]Write i2c OK [18:34:03]MH_I2C_Read... [18:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:03]Read from MH i2c: E2 [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: E2 03 00 [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: E2 03 00 8C 0F 00 90 00 0F [18:34:03]RAPDU: 90 00 [18:34:03]wFMCommunicate OK [18:34:03]wFMCommunicate request_size=255 [18:34:03]MH_SAM_APDU [18:34: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 28 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 87 02 00 35 04 06 00 82 [18:34:03]Write to MH i2c: E2 02 01 8D 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 28 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 87 02 00 35 04 06 00 82 00 00 48 [18:34:03]Write i2c OK [18:34:03]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 8D 0F 00 90 00 10 [18:34:04]RAPDU: 90 00 [18:34:04]wFMCommunicate OK [18:34:04]wFMCommunicate request_size=10 [18:34:04]MH_SAM_APDU [18:34:04]CAPDU: 80 0D 02 02 05 BA 94 17 05 3E [18:34:04]Write to MH i2c: E2 0D 00 8E 0F 80 0D 02 02 05 00 BA 94 17 05 3E 00 00 C9 [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 8E 0F 00 90 00 11 [18:34:04]RAPDU: 90 00 [18:34:04]wFMCommunicate OK [18:34:04]wFMCommunicate request_size=4 [18:34:04]MH_SAM_APDU [18:34:04]CAPDU: 80 0D 03 02 [18:34:04]Write to MH i2c: E2 08 00 8F 0F 80 0D 03 02 00 00 00 00 19 [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 0B 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 0B 00 8F 0F 00 02 BB DD C9 61 B5 7C 44 90 00 53 [18:34:04]RAPDU: 02 BB DD C9 61 B5 7C 44 90 00 [18:34:04]wFMCommunicate OK [18:34:04]SAM_PROTO_SignData done [18:34:04]FM_MakeSignedData done [18:34:04]CreateOFDProtocolMessage [18:34:04]wFMCommunicate request_size=4 [18:34:04]MH_SAM_APDU [18:34:04]CAPDU: 80 11 00 00 [18:34:04]Write to MH i2c: E2 08 00 90 0F 80 11 00 00 00 00 00 00 19 [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 17 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 17 00 90 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [18:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:34:04]wFMCommunicate OK [18:34:04]CreateOFDProtocolMessage done [18:34:04]OFDSenderStorePacket 165805 [18:34:04]StoreOFDPacket docnum=165805 [18:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE B0 07 01 51 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 28 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 87 02 00 35 04 06 00 82 BA 94 17 05 3E 02 BB DD C9 61 B5 7C 44 [18:34:04]CheckFolder [18:34:04]dirname=/storage/ofd_packets [18:34:04]CheckFolder done [18:34:04]ProducePacketName [18:34:04]name=ofd_packets/00165805 [18:34:04]NVStorageSaveData ofd_packets/00165805 [18:34:04]File name is /storage/ofd_packets/00165805 [18:34:04]Write 301 bytes [18:34:04]NVStorageSaveData done [18:34:04]OFDSenderStorePacket done [18:34:04]KKMCreateOFDPacket done [18:34:04]NVStorageSaveData kkm_last_timestamp [18:34:04]File name is /storage/kkm_last_timestamp [18:34:04]Write 4 bytes [18:34:04]NVStorageSaveData done [18:34:04]ExternCall_PrintAddStr [18:34:04]wPrintStart [18:34:04]Write to MH i2c: 01 00 00 91 0F A0 [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: 01 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: 01 07 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: 01 07 00 91 0F 00 00 00 00 00 FF 0F B5 [18:34:04]RasterBufferAndPrint [18:34:04]line Счет N : (1)220373 [18:34:04]line ИНН: 02508201610067 [18:34:04]line Контрольно-Кассовый Чек [18:34:04]line ПРОДАЖА [18:34:04]line ТРК (МРК, ГНК) : 13 [18:34:04]line Товар: 2710124130 [18:34:04]line Аи-92-К-5 [18:34:04]line 22.430 * 66.90 [18:34:04]line = 1500.57 [18:34:04]line НДС 12% НСП 1% [18:34:04]line > о реализуемом товаре [18:34:04]line ИТОГО: 1500.57 [18:34:04]line НСП 1% : 13.28 [18:34:04]line НДС 12% : 159.35 [18:34:04]line Наличными: 0.00 [18:34:04]line Безнал.: 1500.57 [18:34:04]line Место: АЗС № 161 "Партнер Нефть" [18:34:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:34:04]line СНО: Общий режим [18:34:04]line Чек 287 20.10.2024 18:34 [18:34:04]line Смена: 534 ФФД: 1.0 [18:34:04]line ЗНМ: 0300000104 [18:34:04]line РНМ: 0000000000091764 [18:34:04]line Версия ККМ: 001 [18:34:04]line Платежная система: Mbank [18:34:04]line ФМ: 0000000000871759 [18:34:04]line ФД: 165805 [18:34:04]line ФПД: 143737860064574 [18:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183416&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165805&fm=143737860064574&tin=02508201610067®Number=0000000000091764&sum=150057 [18:34:04]OFD Sender: Processing packet 165805 [packets to send 48, broken 47] [18:34:04]ProducePacketName [18:34:04]name=ofd_packets/00165805 [18:34:04]OFD Sender: To server: pG, [18:34:04]CommunicateWithHost lk.salyk.kg:30040 [18:34:04]ConnectInit lk.salyk.kg [18:34:04]written 0, free lines is 4095 [18:34:04]Connected sock=10 [18:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE B0 07 01 51 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 28 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 87 02 00 35 04 06 00 82 BA 94 17 05 3E 02 BB DD C9 61 B5 7C 44 [18:34:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2D BB 47 00 E0 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 87 02 00 F4 03 04 00 99 F3 14 67 B6 04 01 00 00 1F A7 F8 1A BD 33 C9 C6 [18:34:04]CommunicateWithHost err = 0 [18:34:04]CheckOFDResponse [18:34:04]1017 (14) - 77093643461234 [18:34:04]1041 (16) - 0000000000871759 [18:34:04]1040 (4) - 165805 [18:34:04]1012 (4) - 20.10.2024 12:12 [18:34:04]1206 (1) - 0 [18:34:04]OFD Sender: Remove packet 165805 [18:34:04]ProducePacketName [18:34:04]name=ofd_packets/00165805 [18:34:04]NVStorageDeleteData [18:34:05]Write to MH i2c: 01 00 00 BA 0F C9 [18:34:05]Write i2c OK [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: 01 [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: 01 07 00 [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: 01 07 00 BA 0F 00 00 00 00 00 DF 0C BB [18:34:05]RasterBufferAndPrint [18:34:05]line [18:34:05]line [18:34:05]line [18:34:05]line [18:34:05]line [18:34:05]written 0, free lines is 3301 [18:34:05]MH_Cut [18:34:05]Write to MH i2c: D1 01 00 C1 0F 01 A2 [18:34:05]Write i2c OK [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: D1 [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: D1 01 00 [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: D1 01 00 C1 0F 00 A1 [18:34:05]Write to MH i2c: 01 00 00 C2 0F D1 [18:34:05]Write i2c OK [18:34:05]MH_I2C_Read... [18:34:05]OFD Sender: No OFD packet to send [18:34:05]*** Cut start [18:34:05]*** Partial cut [18:34:05]*** CUTSNS_PIN = 1 [18:34:05]*** CUTSNS_PIN = 0 [18:34:06]*** Brake cut motor [18:34:06]Read from MH i2c: 01 [18:34:06]MH_I2C_Read... [18:34:06]*** Stop cut motor [18:34:06]*** Cut end [18:34:06]Read from MH i2c: 01 07 00 [18:34:06]MH_I2C_Read... [18:34:06]Read from MH i2c: 01 07 00 C2 0F 00 00 00 00 00 FF 0F E6 [18:34:06]process_action close_receipt done [18:34:06]requested_data is exist [18:34:06]produce_requested_data [18:34:06]requested_item fm.sn is exist - process it [18:34:06]wFMCommunicate request_size=4 [18:34:06]MH_SAM_APDU [18:34:06]CAPDU: 80 11 00 00 [18:34:06]Write to MH i2c: E2 08 00 C3 0F 80 11 00 00 00 00 00 00 4C [18:34:06]Write i2c OK [18:34:06]MH_I2C_Read... [18:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:06]Read from MH i2c: E2 [18:34:06]MH_I2C_Read... [18:34:06]Read from MH i2c: E2 17 00 [18:34:06]MH_I2C_Read... [18:34:06]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 31 37 35 39 90 00 A4 [18:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:34:06]wFMCommunicate OK [18:34:06]requested_item fd.num is exist - process it [18:34:06]SAM_PROTO_GetFieldsCounters [18:34:06]wFMCommunicate request_size=4 [18:34:06]MH_SAM_APDU [18:34:06]CAPDU: 80 13 00 00 [18:34:06]Write to MH i2c: E2 08 00 C4 0F 80 13 00 00 00 00 00 00 4F [18:34:06]Write i2c OK [18:34:06]MH_I2C_Read... [18:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:06]Read from MH i2c: E2 [18:34:06]MH_I2C_Read... [18:34:06]Read from MH i2c: E2 62 00 [18:34:06]MH_I2C_Read... [18:34:06]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 87 02 00 0E 04 04 00 16 02 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 25 [18:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 87 02 00 0E 04 04 00 16 02 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:34:06]wFMCommunicate OK [18:34:06]SAM_PROTO_GetFieldsCounters done [18:34:06]requested_item shift.num is exist - process it [18:34:06]requested_item shift.opened is exist - process it [18:34:06]req_shift_opened [18:34:06]FM_GetShiftState [18:34:06]SAM_PROTO_GetShiftState [18:34:06]wFMCommunicate request_size=4 [18:34:06]MH_SAM_APDU [18:34:06]CAPDU: 80 13 01 00 [18:34:06]Write to MH i2c: E2 08 00 C5 0F 80 13 01 00 00 00 00 00 51 [18:34:06]Write i2c OK [18:34:06]MH_I2C_Read... [18:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:06]Read from MH i2c: E2 [18:34:06]MH_I2C_Read... [18:34:06]Read from MH i2c: E2 0E 00 [18:34:06]MH_I2C_Read... [18:34:06]Read from MH i2c: E2 0E 00 C5 0F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 99 [18:34:06]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:34:06]wFMCommunicate OK [18:34:06]SAM_PROTO_GetShiftState done [18:34:06]FM_GetShiftState done [18:34:06]req_shift_opened done [18:34:06]requested_item shift.open_date is exist - process it [18:34:06]req_shift_open_date [18:34:06]req_shift_open_date done [18:34:06]produce_requested_data done [18:34:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165805,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:34:06]process_action_free close_receipt [18:34:06]json_value_free [18:34:06]json_value_free done [18:34:06]process_json_proto returns [18:34:06]Send response to host [18:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165805,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:34:06]free response buf [18:34:06]execute_script done [18:34:06]execute_script returns [18:34:06]free content buf [18:34:06]Sock 7.Close socket [18:34:06]Sock 7.Thread stoped [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:46]accept exits with 9 [18:36:46]New connection [18:36:46]New thread 3066776932 created [18:36:46]Thread 3066920292 joined [18:36:46]Waiting for new connection... [18:36:46] Sock 9.Parse request [18:36:46]Sock 9.Check first char [18:36:46]Sock 9.First char is OK [18:36:46]request: POST /json_proto HTTP/1.0 [18:36:46]Method: POST [18:36:46]URL: /json_proto [18:36:46]Method is POST - this is cgi request [18:36:46]url: /json_proto [18:36:46]query_string will be loaded in cgi processing [18:36:46]execute_cgi json_proto POST (null) [18:36:46]execute_cgi path=json_proto method=POST [18:36:46]POST find Content-Length [18:36:46]Host: 172.17.53.195:8080 [18:36:46]Content-Length: 767 [18:36:46]Content-Type: application/json [18:36:46] [18:36:46]POST finish read [18:36:46]Found Content-Length = 767 [18:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:46]execute_script... [18: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)220375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:46]POST & json_proto [18:36:46]process_json_proto [18:36:46]json parsed OK: [18:36:46]protocol is kg_v1.0 [18:36:46]action value=close_receipt [18:36:46]process_action close_receipt [18:36:46]cmd_close_receipt [18:36:46]MH_GetDate [18:36:46]Write to MH i2c: F0 00 00 C6 0F C4 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 09 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 09 00 C6 0F 00 CB 4D 15 67 21 48 4A 65 79 [18:36:46]GetLastDocTimeStamp 1729449256 [18:36:46]current date 1729449419 [18:36:46]FM_GetShiftState [18:36:46]SAM_PROTO_GetShiftState [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 13 01 00 [18:36:46]Write to MH i2c: E2 08 00 C7 0F 80 13 01 00 00 00 00 00 53 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0E 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0E 00 C7 0F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9B [18:36:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:36:46]wFMCommunicate OK [18:36:46]SAM_PROTO_GetShiftState done [18:36:46]FM_GetShiftState done [18:36:46]opened in 1729384561 [18:36:46]opened+sec_in_day 1729470961 [18:36:46]quantity*price = 70044 [18:36:46]sum+1 = 70045 [18:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 288 20.10.2024 18:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165806 ФПД: 205273603285690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183700&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165806&fm=205273603285690&tin=02508201610067®Number=0000000000091764&sum=70044 [18:36:47]StoreToDocumentArchive [18:36:47]shift 534 fd 165806 [18:36:47]save to /storage/0534/doc_00165806 [18:36:47]save last doc name /storage/0534/doc_00165806 to /storage/kkm_last_doc_name [18:36:47]save OK [18:36:47]Clear old archive folders... [18:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:47]tlvbuf is 014B2620 [18:36:47]SAM_PROTO_ClearQueue [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 09 00 00 [18:36:47]Write to MH i2c: E2 08 00 D4 0F 80 09 00 00 00 00 00 00 55 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 D4 0F 00 90 00 57 [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]SAM_PROTO_ClearQueue done [18:36:47]KKMCreateOFDPacket [18:36:47]OFDProtocolAddRootSTLVToBuf [18:36:47]FM_MakeSignedData [18:36:47]FM_MakeSignedData [18:36:47]SAM_PROTO_SignData [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 01 02 [18:36:47]Write to MH i2c: E2 08 00 D5 0F 80 0D 01 02 00 00 00 00 5D [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 D5 0F 00 90 00 58 [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=255 [18:36:47]MH_SAM_APDU [18: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 CC 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 87 02 00 35 04 06 00 BA [18:36:47]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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 CC 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 87 02 00 35 04 06 00 BA 00 00 1A [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 D6 0F 00 90 00 59 [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=10 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 02 02 05 B1 FC 34 A2 BA [18:36:47]Write to MH i2c: E2 0D 00 D7 0F 80 0D 02 02 05 00 B1 FC 34 A2 BA 00 00 A7 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 D7 0F 00 90 00 5A [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 03 02 [18:36:47]Write to MH i2c: E2 08 00 D8 0F 80 0D 03 02 00 00 00 00 62 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 0B 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 0B 00 D8 0F 00 79 22 0E 42 3A 72 F1 E8 90 00 D3 [18:36:47]RAPDU: 79 22 0E 42 3A 72 F1 E8 90 00 [18:36:47]wFMCommunicate OK [18:36:47]SAM_PROTO_SignData done [18:36:47]FM_MakeSignedData done [18:36:47]CreateOFDProtocolMessage [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 11 00 00 [18:36:47]Write to MH i2c: E2 08 00 D9 0F 80 11 00 00 00 00 00 00 62 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 17 00 [18:36:47]MH_I2C_Read... [18:36:47]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 31 37 35 39 90 00 BA [18:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:36:47]wFMCommunicate OK [18:36:47]CreateOFDProtocolMessage done [18:36:47]OFDSenderStorePacket 165806 [18:36:47]StoreOFDPacket docnum=165806 [18:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BD 00 07 01 95 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 CC 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 87 02 00 35 04 06 00 BA B1 FC 34 A2 BA 79 22 0E 42 3A 72 F1 E8 [18:36:47]CheckFolder [18:36:47]dirname=/storage/ofd_packets [18:36:47]CheckFolder done [18:36:47]ProducePacketName [18:36:47]name=ofd_packets/00165806 [18:36:47]NVStorageSaveData ofd_packets/00165806 [18:36:47]File name is /storage/ofd_packets/00165806 [18:36:47]Write 301 bytes [18:36:47]NVStorageSaveData done [18:36:47]OFDSenderStorePacket done [18:36:47]KKMCreateOFDPacket done [18:36:47]NVStorageSaveData kkm_last_timestamp [18:36:47]File name is /storage/kkm_last_timestamp [18:36:47]Write 4 bytes [18:36:47]NVStorageSaveData done [18:36:47]ExternCall_PrintAddStr [18:36:47]wPrintStart [18:36:47]Write to MH i2c: 01 00 00 DA 0F E9 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 DA 0F 00 00 00 00 00 FF 0F FE [18:36:47]RasterBufferAndPrint [18:36:47]line Счет N : (1)220375 [18:36:47]line ИНН: 02508201610067 [18:36:47]line Контрольно-Кассовый Чек [18:36:47]line ПРОДАЖА [18:36:47]line ТРК (МРК, ГНК) : 43 [18:36:47]line Товар: 2710124130 [18:36:47]line Аи-92-К-5 [18:36:47]line 10.470 * 66.90 [18:36:47]line = 700.44 [18:36:47]line НДС 12% НСП 1% [18:36:47]line > о реализуемом товаре [18:36:47]line ИТОГО: 700.44 [18:36:47]line НСП 1% : 6.20 [18:36:47]line НДС 12% : 74.38 [18:36:47]line Наличными: 0.00 [18:36:47]line Безнал.: 700.44 [18:36:47]line Место: АЗС № 161 "Партнер Нефть" [18:36:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:36:47]line СНО: Общий режим [18:36:47]line Чек 288 20.10.2024 18:37 [18:36:47]line Смена: 534 ФФД: 1.0 [18:36:47]line ЗНМ: 0300000104 [18:36:47]line РНМ: 0000000000091764 [18:36:47]line Версия ККМ: 001 [18:36:47]line Платежная система: Mbank [18:36:47]line ФМ: 0000000000871759 [18:36:47]line ФД: 165806 [18:36:47]line ФПД: 205273603285690 [18:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183700&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165806&fm=205273603285690&tin=02508201610067®Number=0000000000091764&sum=70044 [18:36:47]written 0, free lines is 4095 [18:36:47]OFD Sender: Processing packet 165806 [packets to send 48, broken 47] [18:36:47]ProducePacketName [18:36:47]name=ofd_packets/00165806 [18:36:48]OFD Sender: To server: pG, [18:36:48]CommunicateWithHost lk.salyk.kg:30040 [18:36:48]ConnectInit lk.salyk.kg [18:36:48]Connected sock=10 [18: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 31 37 35 39 0F 01 00 00 BD 00 07 01 95 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 CC 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 87 02 00 35 04 06 00 BA B1 FC 34 A2 BA 79 22 0E 42 3A 72 F1 E8 [18:36:48]Write to MH i2c: 01 00 00 03 10 13 [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 07 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 07 00 03 10 00 00 00 00 00 EE 0C 14 [18:36:48]RasterBufferAndPrint [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]written 0, free lines is 3317 [18:36:48]MH_Cut [18:36:48]Write to MH i2c: D1 01 00 0A 10 01 EC [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 01 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 01 00 0A 10 00 EB [18:36:48]Write to MH i2c: 01 00 00 0B 10 1B [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8E AA 47 00 B3 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 87 02 00 F4 03 04 00 3D F4 14 67 B6 04 01 00 00 AC E7 9E E4 19 1A 8B 05 [18:36:48]CommunicateWithHost err = 0 [18:36:48]CheckOFDResponse [18:36:48]1017 (14) - 77093643461234 [18:36:48]1041 (16) - 0000000000871759 [18:36:48]1040 (4) - 165806 [18:36:48]1012 (4) - 20.10.2024 12:14 [18:36:48]1206 (1) - 0 [18:36:48]OFD Sender: Remove packet 165806 [18:36:48]ProducePacketName [18:36:48]name=ofd_packets/00165806 [18:36:48]NVStorageDeleteData [18:36:49]OFD Sender: No OFD packet to send [18:36:49]*** Cut start [18:36:49]*** Partial cut [18:36:49]*** CUTSNS_PIN = 1 [18:36:49]*** CUTSNS_PIN = 0 [18:36:49]*** Brake cut motor [18:36:49]Read from MH i2c: 01 [18:36:49]MH_I2C_Read... [18:36:49]*** Stop cut motor [18:36:49]*** Cut end [18:36:49]Read from MH i2c: 01 07 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: 01 07 00 0B 10 00 00 00 00 00 FF 0F 30 [18:36:49]process_action close_receipt done [18:36:49]requested_data is exist [18:36:49]produce_requested_data [18:36:49]requested_item fm.sn is exist - process it [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 11 00 00 [18:36:49]Write to MH i2c: E2 08 00 0C 10 80 11 00 00 00 00 00 00 96 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 17 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 17 00 0C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [18:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:36:49]wFMCommunicate OK [18:36:49]requested_item fd.num is exist - process it [18:36:49]SAM_PROTO_GetFieldsCounters [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 13 00 00 [18:36:49]Write to MH i2c: E2 08 00 0D 10 80 13 00 00 00 00 00 00 99 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 62 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 62 00 0D 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 87 02 00 0E 04 04 00 16 02 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 73 [18: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 87 02 00 0E 04 04 00 16 02 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:36:50]wFMCommunicate OK [18:36:50]SAM_PROTO_GetFieldsCounters done [18:36:50]requested_item shift.num is exist - process it [18:36:50]requested_item shift.opened is exist - process it [18:36:50]req_shift_opened [18:36:50]FM_GetShiftState [18:36:50]SAM_PROTO_GetShiftState [18:36:50]wFMCommunicate request_size=4 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 13 01 00 [18:36:50]Write to MH i2c: E2 08 00 0E 10 80 13 01 00 00 00 00 00 9B [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 0E 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 0E 00 0E 10 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E3 [18:36:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:36:50]wFMCommunicate OK [18:36:50]SAM_PROTO_GetShiftState done [18:36:50]FM_GetShiftState done [18:36:50]req_shift_opened done [18:36:50]requested_item shift.open_date is exist - process it [18:36:50]req_shift_open_date [18:36:50]req_shift_open_date done [18:36:50]produce_requested_data done [18:36:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165806,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:36:50]process_action_free close_receipt [18:36:50]json_value_free [18:36:50]json_value_free done [18:36:50]process_json_proto returns [18:36:50]Send response to host [18:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165806,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:36:50]free response buf [18:36:50]execute_script done [18:36:50]execute_script returns [18:36:50]free content buf [18:36:50]Sock 9.Close socket [18:36:50]Sock 9.Thread stoped [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:07]accept exits with 7 [18:37:07]New connection [18:37:07]New thread 3066920292 created [18:37:07]Thread 3066776932 joined [18:37:07]Waiting for new connection... [18:37:07] Sock 7.Parse request [18:37:07]Sock 7.Check first char [18:37:07]Sock 7.First char is OK [18:37:07]request: POST /json_proto HTTP/1.0 [18:37:07]Method: POST [18:37:07]URL: /json_proto [18:37:07]Method is POST - this is cgi request [18:37:07]url: /json_proto [18:37:07]query_string will be loaded in cgi processing [18:37:07]execute_cgi json_proto POST (null) [18:37:07]execute_cgi path=json_proto method=POST [18:37:07]POST find Content-Length [18:37:07]Host: 172.17.53.195:8080 [18:37:07]Content-Length: 677 [18:37:07]Content-Type: application/json [18:37:07] [18:37:07]POST finish read [18:37:07]Found Content-Length = 677 [18:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:07]execute_script... [18:37: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)220376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:07]POST & json_proto [18:37:07]process_json_proto [18:37:07]json parsed OK: [18:37:07]protocol is kg_v1.0 [18:37:07]action value=close_receipt [18:37:07]process_action close_receipt [18:37:07]cmd_close_receipt [18:37:07]MH_GetDate [18:37:07]Write to MH i2c: F0 00 00 0F 10 0E [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: F0 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: F0 09 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: F0 09 00 0F 10 00 E0 4D 15 67 21 48 4A 65 D8 [18:37:07]GetLastDocTimeStamp 1729449420 [18:37:07]current date 1729449440 [18:37:07]FM_GetShiftState [18:37:07]SAM_PROTO_GetShiftState [18:37:07]wFMCommunicate request_size=4 [18:37:07]MH_SAM_APDU [18:37:07]CAPDU: 80 13 01 00 [18:37:07]Write to MH i2c: E2 08 00 10 10 80 13 01 00 00 00 00 00 9D [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:07]Read from MH i2c: E2 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 0E 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 0E 00 10 10 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E5 [18:37:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:37:07]wFMCommunicate OK [18:37:07]SAM_PROTO_GetShiftState done [18:37:07]FM_GetShiftState done [18:37:07]opened in 1729384561 [18:37:07]opened+sec_in_day 1729470961 [18:37:07]quantity*price = 50041 [18:37:07]sum+1 = 50042 [18:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 289 20.10.2024 18:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165807 ФПД: 86403060045694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165807&fm=86403060045694&tin=02508201610067®Number=0000000000091764&sum=50000 [18:37:08]StoreToDocumentArchive [18:37:08]shift 534 fd 165807 [18:37:08]save to /storage/0534/doc_00165807 [18:37:08]save last doc name /storage/0534/doc_00165807 to /storage/kkm_last_doc_name [18:37:08]save OK [18:37:08]Clear old archive folders... [18:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:08]tlvbuf is 018B0030 [18:37:08]SAM_PROTO_ClearQueue [18:37:08]wFMCommunicate request_size=4 [18:37:08]MH_SAM_APDU [18:37:08]CAPDU: 80 09 00 00 [18:37:08]Write to MH i2c: E2 08 00 1D 10 80 09 00 00 00 00 00 00 9F [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 03 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 03 00 1D 10 00 90 00 A1 [18:37:08]RAPDU: 90 00 [18:37:08]wFMCommunicate OK [18:37:08]SAM_PROTO_ClearQueue done [18:37:08]KKMCreateOFDPacket [18:37:08]OFDProtocolAddRootSTLVToBuf [18:37:08]FM_MakeSignedData [18:37:08]FM_MakeSignedData [18:37:08]SAM_PROTO_SignData [18:37:08]wFMCommunicate request_size=4 [18:37:08]MH_SAM_APDU [18:37:08]CAPDU: 80 0D 01 02 [18:37:08]Write to MH i2c: E2 08 00 1E 10 80 0D 01 02 00 00 00 00 A7 [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 03 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 03 00 1E 10 00 90 00 A2 [18:37:08]RAPDU: 90 00 [18:37:08]wFMCommunicate OK [18:37:08]wFMCommunicate request_size=255 [18:37:08]MH_SAM_APDU [18:37: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 E1 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 87 02 00 35 04 06 00 4E [18:37:08]Write to MH i2c: E2 02 01 1F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 E1 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 87 02 00 35 04 06 00 4E 00 00 A7 [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 03 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 03 00 1F 10 00 90 00 A3 [18:37:08]RAPDU: 90 00 [18:37:08]wFMCommunicate OK [18:37:08]wFMCommunicate request_size=10 [18:37:08]MH_SAM_APDU [18:37:08]CAPDU: 80 0D 02 02 05 95 47 B3 97 7E [18:37:08]Write to MH i2c: E2 0D 00 20 10 80 0D 02 02 05 00 95 47 B3 97 7E 00 00 58 [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 03 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 03 00 20 10 00 90 00 A4 [18:37:08]RAPDU: 90 00 [18:37:08]wFMCommunicate OK [18:37:08]wFMCommunicate request_size=4 [18:37:08]MH_SAM_APDU [18:37:08]CAPDU: 80 0D 03 02 [18:37:08]Write to MH i2c: E2 08 00 21 10 80 0D 03 02 00 00 00 00 AC [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 0B 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 0B 00 21 10 00 37 93 7B 1C 68 C3 16 61 90 00 B0 [18:37:08]RAPDU: 37 93 7B 1C 68 C3 16 61 90 00 [18:37:08]wFMCommunicate OK [18:37:08]SAM_PROTO_SignData done [18:37:08]FM_MakeSignedData done [18:37:08]CreateOFDProtocolMessage [18:37:08]wFMCommunicate request_size=4 [18:37:08]MH_SAM_APDU [18:37:08]CAPDU: 80 11 00 00 [18:37:08]Write to MH i2c: E2 08 00 22 10 80 11 00 00 00 00 00 00 AC [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 17 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 17 00 22 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [18:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:37:08]wFMCommunicate OK [18:37:08]CreateOFDProtocolMessage done [18:37:08]OFDSenderStorePacket 165807 [18:37:08]StoreOFDPacket docnum=165807 [18:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5E 4A 07 01 C3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 E1 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 87 02 00 35 04 06 00 4E 95 47 B3 97 7E 37 93 7B 1C 68 C3 16 61 [18:37:08]CheckFolder [18:37:08]dirname=/storage/ofd_packets [18:37:08]CheckFolder done [18:37:08]ProducePacketName [18:37:08]name=ofd_packets/00165807 [18:37:08]NVStorageSaveData ofd_packets/00165807 [18:37:08]File name is /storage/ofd_packets/00165807 [18:37:08]Write 301 bytes [18:37:08]NVStorageSaveData done [18:37:08]OFDSenderStorePacket done [18:37:08]KKMCreateOFDPacket done [18:37:08]NVStorageSaveData kkm_last_timestamp [18:37:08]File name is /storage/kkm_last_timestamp [18:37:08]Write 4 bytes [18:37:08]NVStorageSaveData done [18:37:08]ExternCall_PrintAddStr [18:37:08]wPrintStart [18:37:08]Write to MH i2c: 01 00 00 23 10 33 [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: 01 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: 01 07 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: 01 07 00 23 10 00 00 00 00 00 FF 0F 48 [18:37:08]RasterBufferAndPrint [18:37:08]line Счет N : (1)220376 [18:37:08]line ИНН: 02508201610067 [18:37:08]line Контрольно-Кассовый Чек [18:37:08]line ПРОДАЖА [18:37:08]line ТРК (МРК, ГНК) : 13 [18:37:08]line Товар: 2710124130 [18:37:08]line Аи-92-К-5 [18:37:08]line 7.480 * 66.90 [18:37:08]line = 500.41 [18:37:08]line НДС 12% НСП 1% [18:37:08]line > о реализуемом товаре [18:37:08]line ОКРУГЛЕНИЕ: -0.41 [18:37:08]line ИТОГО: 500.00 [18:37:08]line Внесено: 500.00 [18:37:08]line СДАЧА: 0.00 [18:37:08]line НСП 1% : 4.43 [18:37:08]line НДС 12% : 53.14 [18:37:08]line Наличными: 500.00 [18:37:08]line Безнал.: 0.00 [18:37:08]line Место: АЗС № 161 "Партнер Нефть" [18:37:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:37:08]line СНО: Общий режим [18:37:08]line Чек 289 20.10.2024 18:37 [18:37:08]line Смена: 534 ФФД: 1.0 [18:37:08]line ЗНМ: 0300000104 [18:37:08]line РНМ: 0000000000091764 [18:37:08]line Версия ККМ: 001 [18:37:08]line ФМ: 0000000000871759 [18:37:08]line ФД: 165807 [18:37:08]line ФПД: 86403060045694 [18:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165807&fm=86403060045694&tin=02508201610067®Number=0000000000091764&sum=50000 [18:37:09]OFD Sender: Processing packet 165807 [packets to send 48, broken 47] [18:37:09]ProducePacketName [18:37:09]name=ofd_packets/00165807 [18:37:09]OFD Sender: To server: pG, [18:37:09]CommunicateWithHost lk.salyk.kg:30040 [18:37:09]ConnectInit lk.salyk.kg [18:37:09]written 0, free lines is 4095 [18:37:09]Connected sock=10 [18:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5E 4A 07 01 C3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 E1 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 87 02 00 35 04 06 00 4E 95 47 B3 97 7E 37 93 7B 1C 68 C3 16 61 [18:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3B 1A 47 00 22 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 87 02 00 F4 03 04 00 52 F4 14 67 B6 04 01 00 00 4C 0F B1 BD D1 90 0C D4 [18:37:09]CommunicateWithHost err = 0 [18:37:09]CheckOFDResponse [18:37:09]1017 (14) - 77093643461234 [18:37:09]1041 (16) - 0000000000871759 [18:37:09]1040 (4) - 165807 [18:37:09]1012 (4) - 20.10.2024 12:15 [18:37:09]1206 (1) - 0 [18:37:09]OFD Sender: Remove packet 165807 [18:37:09]ProducePacketName [18:37:09]name=ofd_packets/00165807 [18:37:09]NVStorageDeleteData [18:37:09]Write to MH i2c: 01 00 00 4E 10 5E [18:37:09]Write i2c OK [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: 01 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: 01 07 00 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: 01 07 00 4E 10 00 00 00 00 00 B2 0C 23 [18:37:09]RasterBufferAndPrint [18:37:09]line [18:37:09]line [18:37:09]line [18:37:09]line [18:37:09]line [18:37:09]written 0, free lines is 3257 [18:37:09]MH_Cut [18:37:09]Write to MH i2c: D1 01 00 55 10 01 37 [18:37:09]Write i2c OK [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: D1 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: D1 01 00 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: D1 01 00 55 10 00 36 [18:37:09]Write to MH i2c: 01 00 00 56 10 66 [18:37:09]Write i2c OK [18:37:09]MH_I2C_Read... [18:37:10]OFD Sender: No OFD packet to send [18:37:10]*** Cut start [18:37:10]*** Partial cut [18:37:10]*** CUTSNS_PIN = 1 [18:37:10]*** CUTSNS_PIN = 0 [18:37:10]*** Brake cut motor [18:37:11]Read from MH i2c: 01 [18:37:11]MH_I2C_Read... [18:37:11]*** Stop cut motor [18:37:11]*** Cut end [18:37:11]Read from MH i2c: 01 07 00 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: 01 07 00 56 10 00 00 00 00 00 FF 0F 7B [18:37:11]process_action close_receipt done [18:37:11]requested_data is exist [18:37:11]produce_requested_data [18:37:11]requested_item fm.sn is exist - process it [18:37:11]wFMCommunicate request_size=4 [18:37:11]MH_SAM_APDU [18:37:11]CAPDU: 80 11 00 00 [18:37:11]Write to MH i2c: E2 08 00 57 10 80 11 00 00 00 00 00 00 E1 [18:37:11]Write i2c OK [18:37:11]MH_I2C_Read... [18:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:11]Read from MH i2c: E2 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 17 00 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 17 00 57 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 39 [18:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:37:11]wFMCommunicate OK [18:37:11]requested_item fd.num is exist - process it [18:37:11]SAM_PROTO_GetFieldsCounters [18:37:11]wFMCommunicate request_size=4 [18:37:11]MH_SAM_APDU [18:37:11]CAPDU: 80 13 00 00 [18:37:11]Write to MH i2c: E2 08 00 58 10 80 13 00 00 00 00 00 00 E4 [18:37:11]Write i2c OK [18:37:11]MH_I2C_Read... [18:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:11]Read from MH i2c: E2 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 62 00 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 62 00 58 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 87 02 00 0E 04 04 00 16 02 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 C2 [18:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 87 02 00 0E 04 04 00 16 02 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:37:11]wFMCommunicate OK [18:37:11]SAM_PROTO_GetFieldsCounters done [18:37:11]requested_item shift.num is exist - process it [18:37:11]requested_item shift.opened is exist - process it [18:37:11]req_shift_opened [18:37:11]FM_GetShiftState [18:37:11]SAM_PROTO_GetShiftState [18:37:11]wFMCommunicate request_size=4 [18:37:11]MH_SAM_APDU [18:37:11]CAPDU: 80 13 01 00 [18:37:11]Write to MH i2c: E2 08 00 59 10 80 13 01 00 00 00 00 00 E6 [18:37:11]Write i2c OK [18:37:11]MH_I2C_Read... [18:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:11]Read from MH i2c: E2 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 0E 00 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 0E 00 59 10 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2E [18:37:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:37:11]wFMCommunicate OK [18:37:11]SAM_PROTO_GetShiftState done [18:37:11]FM_GetShiftState done [18:37:11]req_shift_opened done [18:37:11]requested_item shift.open_date is exist - process it [18:37:11]req_shift_open_date [18:37:11]req_shift_open_date done [18:37:11]produce_requested_data done [18:37:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165807,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:37:11]process_action_free close_receipt [18:37:11]json_value_free [18:37:11]json_value_free done [18:37:11]process_json_proto returns [18:37:11]Send response to host [18:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165807,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:37:11]free response buf [18:37:11]execute_script done [18:37:11]execute_script returns [18:37:11]free content buf [18:37:11]Sock 7.Close socket [18:37:11]Sock 7.Thread stoped [18:37:15]OFD Sender: No OFD packet to send [18:37:18]accept exits with 9 [18:37:18]New connection [18:37:18]New thread 3066776932 created [18:37:18]Thread 3066920292 joined [18:37:18]Waiting for new connection... [18:37:18] Sock 9.Parse request [18:37:18]Sock 9.Check first char [18:37:18]Sock 9.First char is OK [18:37:18]request: POST /json_proto HTTP/1.0 [18:37:18]Method: POST [18:37:18]URL: /json_proto [18:37:18]Method is POST - this is cgi request [18:37:18]url: /json_proto [18:37:18]query_string will be loaded in cgi processing [18:37:18]execute_cgi json_proto POST (null) [18:37:18]execute_cgi path=json_proto method=POST [18:37:18]POST find Content-Length [18:37:18]Host: 172.17.53.195:8080 [18:37:18]Content-Length: 789 [18:37:18]Content-Type: application/json [18:37:18] [18:37:18]POST finish read [18:37:18]Found Content-Length = 789 [18:37:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220374", "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" : 0.00, "quantity" : 54.240, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:18]execute_script... [18:37: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)220374", "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" : 0.00, "quantity" : 54.240, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:18]POST & json_proto [18:37:18]process_json_proto [18:37:18]json parsed OK: [18:37:18]protocol is kg_v1.0 [18:37:18]action value=close_receipt [18:37:18]process_action close_receipt [18:37:18]cmd_close_receipt [18:37:18]MH_GetDate [18:37:18]Write to MH i2c: F0 00 00 5A 10 59 [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: F0 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: F0 09 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: F0 09 00 5A 10 00 EC 4D 15 67 21 48 4A 65 2F [18:37:18]GetLastDocTimeStamp 1729449441 [18:37:18]current date 1729449452 [18:37:18]FM_GetShiftState [18:37:18]SAM_PROTO_GetShiftState [18:37:18]wFMCommunicate request_size=4 [18:37:18]MH_SAM_APDU [18:37:18]CAPDU: 80 13 01 00 [18:37:18]Write to MH i2c: E2 08 00 5B 10 80 13 01 00 00 00 00 00 E8 [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:18]Read from MH i2c: E2 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 0E 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 0E 00 5B 10 00 09 00 01 71 50 14 67 00 00 00 00 90 00 30 [18:37:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:37:18]wFMCommunicate OK [18:37:18]SAM_PROTO_GetShiftState done [18:37:18]FM_GetShiftState done [18:37:18]opened in 1729384561 [18:37:18]opened+sec_in_day 1729470961 [18:37:18]quantity*price = 0 [18:37:18]sum+1 = 1 [18:37:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 290 20.10.2024 18:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165808 ФПД: 226813172396310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183732&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165808&fm=226813172396310&tin=02508201610067®Number=0000000000091764&sum=0 [18:37:19]StoreToDocumentArchive [18:37:19]shift 534 fd 165808 [18:37:19]save to /storage/0534/doc_00165808 [18:37:19]save last doc name /storage/0534/doc_00165808 to /storage/kkm_last_doc_name [18:37:19]save OK [18:37:19]Clear old archive folders... [18:37:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:37:19]tlvbuf is 0161BC50 [18:37:19]SAM_PROTO_ClearQueue [18:37:19]wFMCommunicate request_size=4 [18:37:19]MH_SAM_APDU [18:37:19]CAPDU: 80 09 00 00 [18:37:19]Write to MH i2c: E2 08 00 68 10 80 09 00 00 00 00 00 00 EA [18:37:19]Write i2c OK [18:37:19]MH_I2C_Read... [18:37:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:19]Read from MH i2c: E2 [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: E2 03 00 [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: E2 03 00 68 10 00 90 00 EC [18:37:19]RAPDU: 90 00 [18:37:19]wFMCommunicate OK [18:37:19]SAM_PROTO_ClearQueue done [18:37:19]KKMCreateOFDPacket [18:37:19]OFDProtocolAddRootSTLVToBuf [18:37:19]FM_MakeSignedData [18:37:19]FM_MakeSignedData [18:37:19]SAM_PROTO_SignData [18:37:19]wFMCommunicate request_size=4 [18:37:19]MH_SAM_APDU [18:37:19]CAPDU: 80 0D 01 02 [18:37:19]Write to MH i2c: E2 08 00 69 10 80 0D 01 02 00 00 00 00 F2 [18:37:19]Write i2c OK [18:37:19]MH_I2C_Read... [18:37:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 03 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 03 00 69 10 00 90 00 ED [18:37:20]RAPDU: 90 00 [18:37:20]wFMCommunicate OK [18:37:20]wFMCommunicate request_size=255 [18:37:20]MH_SAM_APDU [18:37: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 E0 D3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 EC 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 87 02 00 35 04 06 00 CE 49 0E 92 [18:37:20]Write to MH i2c: E2 02 01 6A 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 E0 D3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 EC 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 87 02 00 35 04 06 00 CE 49 0E 92 00 00 E9 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]OFD Sender: No OFD packet to send [18:37:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 03 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 03 00 6A 10 00 90 00 EE [18:37:20]RAPDU: 90 00 [18:37:20]wFMCommunicate OK [18:37:20]wFMCommunicate request_size=7 [18:37:20]MH_SAM_APDU [18:37:20]CAPDU: 80 0D 02 02 02 31 16 [18:37:20]Write to MH i2c: E2 0A 00 6B 10 80 0D 02 02 02 00 31 16 00 00 40 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 03 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 03 00 6B 10 00 90 00 EF [18:37:20]RAPDU: 90 00 [18:37:20]wFMCommunicate OK [18:37:20]wFMCommunicate request_size=4 [18:37:20]MH_SAM_APDU [18:37:20]CAPDU: 80 0D 03 02 [18:37:20]Write to MH i2c: E2 08 00 6C 10 80 0D 03 02 00 00 00 00 F7 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 0B 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 0B 00 6C 10 00 BB 4E 98 79 2F AC 23 48 90 00 58 [18:37:20]RAPDU: BB 4E 98 79 2F AC 23 48 90 00 [18:37:20]wFMCommunicate OK [18:37:20]SAM_PROTO_SignData done [18:37:20]FM_MakeSignedData done [18:37:20]CreateOFDProtocolMessage [18:37:20]wFMCommunicate request_size=4 [18:37:20]MH_SAM_APDU [18:37:20]CAPDU: 80 11 00 00 [18:37:20]Write to MH i2c: E2 08 00 6D 10 80 11 00 00 00 00 00 00 F7 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 17 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 17 00 6D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4F [18:37:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:37:20]wFMCommunicate OK [18:37:20]CreateOFDProtocolMessage done [18:37:20]OFDSenderStorePacket 165808 [18:37:20]StoreOFDPacket docnum=165808 [18:37:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1C B6 04 01 6D 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 E0 D3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 EC 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 87 02 00 35 04 06 00 CE 49 0E 92 31 16 BB 4E 98 79 2F AC 23 48 [18:37:20]CheckFolder [18:37:20]dirname=/storage/ofd_packets [18:37:20]CheckFolder done [18:37:20]ProducePacketName [18:37:20]name=ofd_packets/00165808 [18:37:20]NVStorageSaveData ofd_packets/00165808 [18:37:20]File name is /storage/ofd_packets/00165808 [18:37:20]Write 298 bytes [18:37:20]NVStorageSaveData done [18:37:20]OFDSenderStorePacket done [18:37:20]KKMCreateOFDPacket done [18:37:20]NVStorageSaveData kkm_last_timestamp [18:37:20]File name is /storage/kkm_last_timestamp [18:37:20]Write 4 bytes [18:37:20]NVStorageSaveData done [18:37:20]ExternCall_PrintAddStr [18:37:20]wPrintStart [18:37:20]Write to MH i2c: 01 00 00 6E 10 7E [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: 01 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: 01 07 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: 01 07 00 6E 10 00 00 00 00 00 FF 0F 93 [18:37:20]RasterBufferAndPrint [18:37:20]line Счет N : (1)220374 [18:37:20]line ИНН: 02508201610067 [18:37:20]line Контрольно-Кассовый Чек [18:37:20]line ПРОДАЖА [18:37:20]line ТРК (МРК, ГНК) : 21 [18:37:20]line Товар: 2710194210 [18:37:20]line ДТ-К-5 [18:37:20]line 54.240 * 0.00 [18:37:20]line = 0.00 [18:37:20]line НДС 12% НСП 1% [18:37:20]line > о реализуемом товаре [18:37:20]line ИТОГО: 0.00 [18:37:20]line НСП 1% : 0.00 [18:37:20]line НДС 12% : 0.00 [18:37:20]line Наличными: 0.00 [18:37:20]line Безнал.: 0.00 [18:37:20]line Место: АЗС № 161 "Партнер Нефть" [18:37:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:37:20]line СНО: Общий режим [18:37:20]line Чек 290 20.10.2024 18:37 [18:37:20]line Смена: 534 ФФД: 1.0 [18:37:20]line ЗНМ: 0300000104 [18:37:20]line РНМ: 0000000000091764 [18:37:20]line Версия ККМ: 001 [18:37:20]line Талоны: Топливная Карта [18:37:20]line 39590 [18:37:20]line ФМ: 0000000000871759 [18:37:20]line ФД: 165808 [18:37:20]line ФПД: 226813172396310 [18:37:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183732&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165808&fm=226813172396310&tin=02508201610067®Number=0000000000091764&sum=0 [18:37:20]written 0, free lines is 4095 [18:37:20]OFD Sender: Processing packet 165808 [packets to send 48, broken 47] [18:37:20]ProducePacketName [18:37:20]name=ofd_packets/00165808 [18:37:20]OFD Sender: To server: pG, [18:37:20]CommunicateWithHost lk.salyk.kg:30040 [18:37:20]ConnectInit lk.salyk.kg [18:37:20]Write to MH i2c: 01 00 00 98 10 A8 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: 01 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: 01 07 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: 01 07 00 98 10 00 00 00 00 00 C5 0C 80 [18:37:20]RasterBufferAndPrint [18:37:20]line [18:37:20]line [18:37:20]line [18:37:20]line [18:37:20]line [18:37:20]written 0, free lines is 3275 [18:37:20]MH_Cut [18:37:20]Write to MH i2c: D1 01 00 9F 10 01 81 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: D1 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: D1 01 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: D1 01 00 9F 10 00 80 [18:37:20]Write to MH i2c: 01 00 00 A0 10 B0 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:21]*** Cut start [18:37:21]*** Partial cut [18:37:21]*** CUTSNS_PIN = 1 [18:37:21]*** CUTSNS_PIN = 0 [18:37:22]*** Brake cut motor [18:37:22]Read from MH i2c: 01 [18:37:22]MH_I2C_Read... [18:37:22]*** Stop cut motor [18:37:22]*** Cut end [18:37:22]Read from MH i2c: 01 07 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: 01 07 00 A0 10 00 00 00 00 00 FF 0F C5 [18:37:22]process_action close_receipt done [18:37:22]requested_data is exist [18:37:22]produce_requested_data [18:37:22]requested_item fm.sn is exist - process it [18:37:22]wFMCommunicate request_size=4 [18:37:22]MH_SAM_APDU [18:37:22]CAPDU: 80 11 00 00 [18:37:22]Write to MH i2c: E2 08 00 A1 10 80 11 00 00 00 00 00 00 2B [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:22]Read from MH i2c: E2 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 17 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 17 00 A1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [18:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:37:22]wFMCommunicate OK [18:37:22]requested_item fd.num is exist - process it [18:37:22]SAM_PROTO_GetFieldsCounters [18:37:22]wFMCommunicate request_size=4 [18:37:22]MH_SAM_APDU [18:37:22]CAPDU: 80 13 00 00 [18:37:22]Write to MH i2c: E2 08 00 A2 10 80 13 00 00 00 00 00 00 2E [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:22]Read from MH i2c: E2 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 62 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 62 00 A2 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 87 02 00 0E 04 04 00 16 02 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 10 [18:37:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 87 02 00 0E 04 04 00 16 02 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:37:22]wFMCommunicate OK [18:37:22]SAM_PROTO_GetFieldsCounters done [18:37:22]requested_item shift.num is exist - process it [18:37:22]requested_item shift.opened is exist - process it [18:37:22]req_shift_opened [18:37:22]FM_GetShiftState [18:37:22]SAM_PROTO_GetShiftState [18:37:22]wFMCommunicate request_size=4 [18:37:22]MH_SAM_APDU [18:37:22]CAPDU: 80 13 01 00 [18:37:22]Write to MH i2c: E2 08 00 A3 10 80 13 01 00 00 00 00 00 30 [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 [18:37:22]MH_I2C_Read... [18:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:22]Read from MH i2c: E2 0E 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 0E 00 A3 10 00 09 00 01 71 50 14 67 00 00 00 00 90 00 78 [18:37:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:37:22]wFMCommunicate OK [18:37:22]SAM_PROTO_GetShiftState done [18:37:22]FM_GetShiftState done [18:37:22]req_shift_opened done [18:37:22]requested_item shift.open_date is exist - process it [18:37:22]req_shift_open_date [18:37:22]req_shift_open_date done [18:37:22]produce_requested_data done [18:37:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165808,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:37:22]process_action_free close_receipt [18:37:22]json_value_free [18:37:22]json_value_free done [18:37:22]process_json_proto returns [18:37:22]Send response to host [18:37:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165808,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:37:22]free response buf [18:37:22]execute_script done [18:37:22]execute_script returns [18:37:22]free content buf [18:37:22]Sock 9.Close socket [18:37:22]Sock 9.Thread stoped [18:38:47]accept exits with 7 [18:38:47]New connection [18:38:47]New thread 3066920292 created [18:38:47]Thread 3066776932 joined [18:38:47]Waiting for new connection... [18:38:47] Sock 7.Parse request [18:38:47]Sock 7.Check first char [18:38:47]Sock 7.First char is OK [18:38:47]request: POST /json_proto HTTP/1.0 [18:38:47]Method: POST [18:38:47]URL: /json_proto [18:38:47]Method is POST - this is cgi request [18:38:47]url: /json_proto [18:38:47]query_string will be loaded in cgi processing [18:38:47]execute_cgi json_proto POST (null) [18:38:47]execute_cgi path=json_proto method=POST [18:38:47]POST find Content-Length [18:38:47]Host: 172.17.53.195:8080 [18:38:47]Content-Length: 682 [18:38:47]Content-Type: application/json [18:38:47] [18:38:47]POST finish read [18:38:47]Found Content-Length = 682 [18:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:47]execute_script... [18:38: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)220377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:47]POST & json_proto [18:38:47]process_json_proto [18:38:47]json parsed OK: [18:38:47]protocol is kg_v1.0 [18:38:47]action value=close_receipt [18:38:47]process_action close_receipt [18:38:47]cmd_close_receipt [18:38:47]MH_GetDate [18:38:47]Write to MH i2c: F0 00 00 A4 10 A3 [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: F0 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: F0 09 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: F0 09 00 A4 10 00 45 4E 15 67 21 48 4A 65 D3 [18:38:47]GetLastDocTimeStamp 1729449452 [18:38:47]current date 1729449541 [18:38:47]FM_GetShiftState [18:38:47]SAM_PROTO_GetShiftState [18:38:47]wFMCommunicate request_size=4 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 13 01 00 [18:38:47]Write to MH i2c: E2 08 00 A5 10 80 13 01 00 00 00 00 00 32 [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 0E 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 0E 00 A5 10 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7A [18:38:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:38:47]wFMCommunicate OK [18:38:47]SAM_PROTO_GetShiftState done [18:38:47]FM_GetShiftState done [18:38:47]opened in 1729384561 [18:38:47]opened+sec_in_day 1729470961 [18:38:47]quantity*price = 100015 [18:38:47]sum+1 = 100017 [18:38:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 291 20.10.2024 18:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165809 ФПД: 213760291688961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183901&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165809&fm=213760291688961&tin=02508201610067®Number=0000000000091764&sum=100000 [18:38:48]StoreToDocumentArchive [18:38:48]shift 534 fd 165809 [18:38:48]save to /storage/0534/doc_00165809 [18:38:48]save last doc name /storage/0534/doc_00165809 to /storage/kkm_last_doc_name [18:38:48]save OK [18:38:48]Clear old archive folders... [18:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:48]tlvbuf is 01445A80 [18:38:48]SAM_PROTO_ClearQueue [18:38:48]wFMCommunicate request_size=4 [18:38:48]MH_SAM_APDU [18:38:48]CAPDU: 80 09 00 00 [18:38:48]Write to MH i2c: E2 08 00 B2 10 80 09 00 00 00 00 00 00 34 [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:48]Read from MH i2c: E2 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 03 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 03 00 B2 10 00 90 00 36 [18:38:48]RAPDU: 90 00 [18:38:48]wFMCommunicate OK [18:38:48]SAM_PROTO_ClearQueue done [18:38:48]KKMCreateOFDPacket [18:38:48]OFDProtocolAddRootSTLVToBuf [18:38:48]FM_MakeSignedData [18:38:48]FM_MakeSignedData [18:38:48]SAM_PROTO_SignData [18:38:48]wFMCommunicate request_size=4 [18:38:48]MH_SAM_APDU [18:38:48]CAPDU: 80 0D 01 02 [18:38:48]Write to MH i2c: E2 08 00 B3 10 80 0D 01 02 00 00 00 00 3C [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:48]Read from MH i2c: E2 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 03 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 03 00 B3 10 00 90 00 37 [18:38:48]RAPDU: 90 00 [18:38:48]wFMCommunicate OK [18:38:48]wFMCommunicate request_size=255 [18:38:48]MH_SAM_APDU [18:38: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 45 4E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 87 02 00 35 04 06 00 C2 [18:38:48]Write to MH i2c: E2 02 01 B4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 45 4E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 87 02 00 35 04 06 00 C2 00 00 13 [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:49]Read from MH i2c: E2 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: E2 03 00 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: E2 03 00 B4 10 00 90 00 38 [18:38:49]RAPDU: 90 00 [18:38:49]wFMCommunicate OK [18:38:49]wFMCommunicate request_size=10 [18:38:49]MH_SAM_APDU [18:38:49]CAPDU: 80 0D 02 02 05 69 F2 40 D2 01 [18:38:49]Write to MH i2c: E2 0D 00 B5 10 80 0D 02 02 05 00 69 F2 40 D2 01 00 00 B7 [18:38:49]Write i2c OK [18:38:49]MH_I2C_Read... [18:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:49]Read from MH i2c: E2 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: E2 03 00 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: E2 03 00 B5 10 00 90 00 39 [18:38:49]RAPDU: 90 00 [18:38:49]wFMCommunicate OK [18:38:49]wFMCommunicate request_size=4 [18:38:49]MH_SAM_APDU [18:38:49]CAPDU: 80 0D 03 02 [18:38:49]Write to MH i2c: E2 08 00 B6 10 80 0D 03 02 00 00 00 00 41 [18:38:49]Write i2c OK [18:38:49]MH_I2C_Read... [18:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:49]Read from MH i2c: E2 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: E2 0B 00 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: E2 0B 00 B6 10 00 84 FD 42 1A 61 95 A9 B4 90 00 72 [18:38:49]RAPDU: 84 FD 42 1A 61 95 A9 B4 90 00 [18:38:49]wFMCommunicate OK [18:38:49]SAM_PROTO_SignData done [18:38:49]FM_MakeSignedData done [18:38:49]CreateOFDProtocolMessage [18:38:49]wFMCommunicate request_size=4 [18:38:49]MH_SAM_APDU [18:38:49]CAPDU: 80 11 00 00 [18:38:49]Write to MH i2c: E2 08 00 B7 10 80 11 00 00 00 00 00 00 41 [18:38:49]Write i2c OK [18:38:49]MH_I2C_Read... [18:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:49]Read from MH i2c: E2 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: E2 17 00 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: E2 17 00 B7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [18:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:38:49]wFMCommunicate OK [18:38:49]CreateOFDProtocolMessage done [18:38:49]OFDSenderStorePacket 165809 [18:38:49]StoreOFDPacket docnum=165809 [18:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 56 07 01 87 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 45 4E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 87 02 00 35 04 06 00 C2 69 F2 40 D2 01 84 FD 42 1A 61 95 A9 B4 [18:38:49]CheckFolder [18:38:49]dirname=/storage/ofd_packets [18:38:49]CheckFolder done [18:38:49]ProducePacketName [18:38:49]name=ofd_packets/00165809 [18:38:49]NVStorageSaveData ofd_packets/00165809 [18:38:49]File name is /storage/ofd_packets/00165809 [18:38:49]Write 301 bytes [18:38:49]NVStorageSaveData done [18:38:49]OFDSenderStorePacket done [18:38:49]KKMCreateOFDPacket done [18:38:49]NVStorageSaveData kkm_last_timestamp [18:38:49]File name is /storage/kkm_last_timestamp [18:38:49]Write 4 bytes [18:38:49]NVStorageSaveData done [18:38:49]ExternCall_PrintAddStr [18:38:49]wPrintStart [18:38:49]Write to MH i2c: 01 00 00 B8 10 C8 [18:38:49]Write i2c OK [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 07 00 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 07 00 B8 10 00 00 00 00 00 FF 0F DD [18:38:49]RasterBufferAndPrint [18:38:49]line Счет N : (1)220377 [18:38:49]line ИНН: 02508201610067 [18:38:49]line Контрольно-Кассовый Чек [18:38:49]line ПРОДАЖА [18:38:49]line ТРК (МРК, ГНК) : 43 [18:38:49]line Товар: 2710124130 [18:38:49]line Аи-92-К-5 [18:38:49]line 14.950 * 66.90 [18:38:49]line = 1000.16 [18:38:49]line НДС 12% НСП 1% [18:38:49]line > о реализуемом товаре [18:38:49]line ОКРУГЛЕНИЕ: -0.16 [18:38:49]line ИТОГО: 1000.00 [18:38:49]line Внесено: 1000.00 [18:38:49]line СДАЧА: 0.00 [18:38:49]line НСП 1% : 8.85 [18:38:49]line НДС 12% : 106.21 [18:38:49]line Наличными: 1000.00 [18:38:49]line Безнал.: 0.00 [18:38:49]line Место: АЗС № 161 "Партнер Нефть" [18:38:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:38:49]line СНО: Общий режим [18:38:49]line Чек 291 20.10.2024 18:39 [18:38:49]line Смена: 534 ФФД: 1.0 [18:38:49]line ЗНМ: 0300000104 [18:38:49]line РНМ: 0000000000091764 [18:38:49]line Версия ККМ: 001 [18:38:49]line ФМ: 0000000000871759 [18:38:49]line ФД: 165809 [18:38:49]line ФПД: 213760291688961 [18:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183901&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165809&fm=213760291688961&tin=02508201610067®Number=0000000000091764&sum=100000 [18:38:49]written 0, free lines is 4095 [18:38:50]Write to MH i2c: 01 00 00 E3 10 F3 [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: 01 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: 01 07 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: 01 07 00 E3 10 00 00 00 00 00 BE 0C C4 [18:38:50]RasterBufferAndPrint [18:38:50]line [18:38:50]line [18:38:50]line [18:38:50]line [18:38:50]line [18:38:50]written 0, free lines is 3268 [18:38:50]MH_Cut [18:38:50]Write to MH i2c: D1 01 00 EA 10 01 CC [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: D1 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: D1 01 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: D1 01 00 EA 10 00 CB [18:38:50]Write to MH i2c: 01 00 00 EB 10 FB [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]*** Cut start [18:38:50]*** Partial cut [18:38:50]*** CUTSNS_PIN = 1 [18:38:50]*** CUTSNS_PIN = 0 [18:38:51]*** Brake cut motor [18:38:51]Read from MH i2c: 01 [18:38:51]MH_I2C_Read... [18:38:51]*** Stop cut motor [18:38:51]*** Cut end [18:38:51]Read from MH i2c: 01 07 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: 01 07 00 EB 10 00 00 00 00 00 FF 0F 10 [18:38:51]process_action close_receipt done [18:38:51]requested_data is exist [18:38:51]produce_requested_data [18:38:51]requested_item fm.sn is exist - process it [18:38:51]wFMCommunicate request_size=4 [18:38:51]MH_SAM_APDU [18:38:51]CAPDU: 80 11 00 00 [18:38:51]Write to MH i2c: E2 08 00 EC 10 80 11 00 00 00 00 00 00 76 [18:38:51]Write i2c OK [18:38:51]MH_I2C_Read... [18:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:51]Read from MH i2c: E2 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 17 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 17 00 EC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [18:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:38:51]wFMCommunicate OK [18:38:51]requested_item fd.num is exist - process it [18:38:51]SAM_PROTO_GetFieldsCounters [18:38:51]wFMCommunicate request_size=4 [18:38:51]MH_SAM_APDU [18:38:51]CAPDU: 80 13 00 00 [18:38:51]Write to MH i2c: E2 08 00 ED 10 80 13 00 00 00 00 00 00 79 [18:38:51]Write i2c OK [18:38:51]MH_I2C_Read... [18:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:51]Read from MH i2c: E2 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 62 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 62 00 ED 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 87 02 00 0E 04 04 00 16 02 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 5F [18:38:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 87 02 00 0E 04 04 00 16 02 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:38:51]wFMCommunicate OK [18:38:51]SAM_PROTO_GetFieldsCounters done [18:38:51]requested_item shift.num is exist - process it [18:38:51]requested_item shift.opened is exist - process it [18:38:51]req_shift_opened [18:38:51]FM_GetShiftState [18:38:51]SAM_PROTO_GetShiftState [18:38:51]wFMCommunicate request_size=4 [18:38:51]MH_SAM_APDU [18:38:51]CAPDU: 80 13 01 00 [18:38:51]Write to MH i2c: E2 08 00 EE 10 80 13 01 00 00 00 00 00 7B [18:38:51]Write i2c OK [18:38:51]MH_I2C_Read... [18:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:51]Read from MH i2c: E2 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 0E 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 0E 00 EE 10 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C3 [18:38:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:38:51]wFMCommunicate OK [18:38:51]SAM_PROTO_GetShiftState done [18:38:51]FM_GetShiftState done [18:38:51]req_shift_opened done [18:38:51]requested_item shift.open_date is exist - process it [18:38:51]req_shift_open_date [18:38:51]req_shift_open_date done [18:38:51]produce_requested_data done [18:38:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165809,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:38:51]process_action_free close_receipt [18:38:51]json_value_free [18:38:51]json_value_free done [18:38:51]process_json_proto returns [18:38:51]Send response to host [18:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165809,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:38:51]free response buf [18:38:51]execute_script done [18:38:51]execute_script returns [18:38:51]free content buf [18:38:51]Sock 7.Close socket [18:38:51]Sock 7.Thread stoped [18:39:08]accept exits with 9 [18:39:08]New connection [18:39:08]New thread 3066776932 created [18:39:08]Thread 3066920292 joined [18:39:08]Waiting for new connection... [18:39:08] Sock 9.Parse request [18:39:08]Sock 9.Check first char [18:39:08]Sock 9.First char is OK [18:39:08]request: POST /json_proto HTTP/1.0 [18:39:08]Method: POST [18:39:08]URL: /json_proto [18:39:08]Method is POST - this is cgi request [18:39:08]url: /json_proto [18:39:08]query_string will be loaded in cgi processing [18:39:08]execute_cgi json_proto POST (null) [18:39:08]execute_cgi path=json_proto method=POST [18:39:08]POST find Content-Length [18:39:08]Host: 172.17.53.195:8080 [18:39:08]Content-Length: 677 [18:39:08]Content-Type: application/json [18:39:08] [18:39:08]POST finish read [18:39:08]Found Content-Length = 677 [18:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [18:39:08]execute_script... [18:39: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)220378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [18:39:08]POST & json_proto [18:39:08]process_json_proto [18:39:08]json parsed OK: [18:39:08]protocol is kg_v1.0 [18:39:08]action value=close_receipt [18:39:08]process_action close_receipt [18:39:08]cmd_close_receipt [18:39:08]MH_GetDate [18:39:08]Write to MH i2c: F0 00 00 EF 10 EE [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 09 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 09 00 EF 10 00 5A 4E 15 67 21 48 4A 65 33 [18:39:08]GetLastDocTimeStamp 1729449541 [18:39:08]current date 1729449562 [18:39:08]FM_GetShiftState [18:39:08]SAM_PROTO_GetShiftState [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 13 01 00 [18:39:08]Write to MH i2c: E2 08 00 F0 10 80 13 01 00 00 00 00 00 7D [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 0E 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 0E 00 F0 10 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C5 [18:39:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:39:09]wFMCommunicate OK [18:39:09]SAM_PROTO_GetShiftState done [18:39:09]FM_GetShiftState done [18:39:09]opened in 1729384561 [18:39:09]opened+sec_in_day 1729470961 [18:39:09]quantity*price = 25020 [18:39:09]sum+1 = 25022 [18:39:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 292 20.10.2024 18:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165810 ФПД: 150773601933144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183922&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165810&fm=150773601933144&tin=02508201610067®Number=0000000000091764&sum=25000 [18:39:10]StoreToDocumentArchive [18:39:10]shift 534 fd 165810 [18:39:10]save to /storage/0534/doc_00165810 [18:39:10]save last doc name /storage/0534/doc_00165810 to /storage/kkm_last_doc_name [18:39:10]save OK [18:39:10]Clear old archive folders... [18:39:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:10]tlvbuf is 016AB5C0 [18:39:10]SAM_PROTO_ClearQueue [18:39:10]wFMCommunicate request_size=4 [18:39:10]MH_SAM_APDU [18:39:10]CAPDU: 80 09 00 00 [18:39:10]Write to MH i2c: E2 08 00 FD 10 80 09 00 00 00 00 00 00 7F [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 FD 10 00 90 00 81 [18:39:10]RAPDU: 90 00 [18:39:10]wFMCommunicate OK [18:39:10]SAM_PROTO_ClearQueue done [18:39:10]KKMCreateOFDPacket [18:39:10]OFDProtocolAddRootSTLVToBuf [18:39:10]FM_MakeSignedData [18:39:10]FM_MakeSignedData [18:39:10]SAM_PROTO_SignData [18:39:10]wFMCommunicate request_size=4 [18:39:10]MH_SAM_APDU [18:39:10]CAPDU: 80 0D 01 02 [18:39:10]Write to MH i2c: E2 08 00 FE 10 80 0D 01 02 00 00 00 00 87 [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 FE 10 00 90 00 82 [18:39:10]RAPDU: 90 00 [18:39:10]wFMCommunicate OK [18:39:10]wFMCommunicate request_size=255 [18:39:10]MH_SAM_APDU [18:39: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 24 01 00 00 F4 03 04 00 5A 4E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 87 02 00 35 04 06 00 89 [18:39:10]Write to MH i2c: E2 02 01 FF 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 24 01 00 00 F4 03 04 00 5A 4E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 87 02 00 35 04 06 00 89 00 00 1B [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 FF 10 00 90 00 83 [18:39:10]RAPDU: 90 00 [18:39:10]wFMCommunicate OK [18:39:10]wFMCommunicate request_size=10 [18:39:10]MH_SAM_APDU [18:39:10]CAPDU: 80 0D 02 02 05 20 B6 FC 17 58 [18:39:10]Write to MH i2c: E2 0D 00 00 11 80 0D 02 02 05 00 20 B6 FC 17 58 00 00 D6 [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 00 11 00 90 00 85 [18:39:10]RAPDU: 90 00 [18:39:10]wFMCommunicate OK [18:39:10]wFMCommunicate request_size=4 [18:39:10]MH_SAM_APDU [18:39:10]CAPDU: 80 0D 03 02 [18:39:10]Write to MH i2c: E2 08 00 01 11 80 0D 03 02 00 00 00 00 8D [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 0B 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 0B 00 01 11 00 50 92 AF 6D 71 D7 A0 47 90 00 BB [18:39:10]RAPDU: 50 92 AF 6D 71 D7 A0 47 90 00 [18:39:10]wFMCommunicate OK [18:39:10]SAM_PROTO_SignData done [18:39:10]FM_MakeSignedData done [18:39:10]CreateOFDProtocolMessage [18:39:10]wFMCommunicate request_size=4 [18:39:10]MH_SAM_APDU [18:39:10]CAPDU: 80 11 00 00 [18:39:10]Write to MH i2c: E2 08 00 02 11 80 11 00 00 00 00 00 00 8D [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 17 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 17 00 02 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E5 [18:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:39:10]wFMCommunicate OK [18:39:10]CreateOFDProtocolMessage done [18:39:10]OFDSenderStorePacket 165810 [18:39:10]StoreOFDPacket docnum=165810 [18:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0A 2B 07 01 5A 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 24 01 00 00 F4 03 04 00 5A 4E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 87 02 00 35 04 06 00 89 20 B6 FC 17 58 50 92 AF 6D 71 D7 A0 47 [18:39:10]CheckFolder [18:39:10]dirname=/storage/ofd_packets [18:39:10]CheckFolder done [18:39:10]ProducePacketName [18:39:10]name=ofd_packets/00165810 [18:39:10]NVStorageSaveData ofd_packets/00165810 [18:39:10]File name is /storage/ofd_packets/00165810 [18:39:10]Write 301 bytes [18:39:10]NVStorageSaveData done [18:39:10]OFDSenderStorePacket done [18:39:10]KKMCreateOFDPacket done [18:39:10]NVStorageSaveData kkm_last_timestamp [18:39:10]File name is /storage/kkm_last_timestamp [18:39:10]Write 4 bytes [18:39:10]NVStorageSaveData done [18:39:10]ExternCall_PrintAddStr [18:39:10]wPrintStart [18:39:10]Write to MH i2c: 01 00 00 03 11 14 [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 07 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 07 00 03 11 00 00 00 00 00 FF 0F 29 [18:39:10]RasterBufferAndPrint [18:39:10]line Счет N : (1)220378 [18:39:10]line ИНН: 02508201610067 [18:39:10]line Контрольно-Кассовый Чек [18:39:10]line ПРОДАЖА [18:39:10]line ТРК (МРК, ГНК) : 23 [18:39:10]line Товар: 2710124130 [18:39:10]line Аи-92-К-5 [18:39:10]line 3.740 * 66.90 [18:39:10]line = 250.21 [18:39:10]line НДС 12% НСП 1% [18:39:10]line > о реализуемом товаре [18:39:10]line ОКРУГЛЕНИЕ: -0.21 [18:39:10]line ИТОГО: 250.00 [18:39:10]line Внесено: 250.00 [18:39:10]line СДАЧА: 0.00 [18:39:10]line НСП 1% : 2.21 [18:39:10]line НДС 12% : 26.57 [18:39:10]line Наличными: 250.00 [18:39:10]line Безнал.: 0.00 [18:39:10]line Место: АЗС № 161 "Партнер Нефть" [18:39:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:39:10]line СНО: Общий режим [18:39:10]line Чек 292 20.10.2024 18:39 [18:39:10]line Смена: 534 ФФД: 1.0 [18:39:10]line ЗНМ: 0300000104 [18:39:10]line РНМ: 0000000000091764 [18:39:10]line Версия ККМ: 001 [18:39:10]line ФМ: 0000000000871759 [18:39:10]line ФД: 165810 [18:39:10]line ФПД: 150773601933144 [18:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183922&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165810&fm=150773601933144&tin=02508201610067®Number=0000000000091764&sum=25000 [18:39:10]written 0, free lines is 4095 [18:39:11]Write to MH i2c: 01 00 00 2E 11 3F [18:39:11]Write i2c OK [18:39:11]MH_I2C_Read... [18:39:11]Read from MH i2c: 01 [18:39:11]MH_I2C_Read... [18:39:11]Read from MH i2c: 01 07 00 [18:39:11]MH_I2C_Read... [18:39:11]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 BB 0C 0D [18:39:11]RasterBufferAndPrint [18:39:11]line [18:39:11]line [18:39:11]line [18:39:11]line [18:39:11]line [18:39:11]written 0, free lines is 3266 [18:39:11]MH_Cut [18:39:11]Write to MH i2c: D1 01 00 35 11 01 18 [18:39:11]Write i2c OK [18:39:11]MH_I2C_Read... [18:39:11]Read from MH i2c: D1 [18:39:11]MH_I2C_Read... [18:39:11]Read from MH i2c: D1 01 00 [18:39:11]MH_I2C_Read... [18:39:11]Read from MH i2c: D1 01 00 35 11 00 17 [18:39:11]Write to MH i2c: 01 00 00 36 11 47 [18:39:11]Write i2c OK [18:39:11]MH_I2C_Read... [18:39:11]*** Cut start [18:39:11]*** Partial cut [18:39:11]*** CUTSNS_PIN = 1 [18:39:12]*** CUTSNS_PIN = 0 [18:39:12]*** Brake cut motor [18:39:12]Read from MH i2c: 01 [18:39:12]MH_I2C_Read... [18:39:12]*** Stop cut motor [18:39:12]Read from MH i2c: 01 07 00 [18:39:12]MH_I2C_Read... [18:39:12]*** Cut end [18:39:12]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 FF 0F 5C [18:39:12]process_action close_receipt done [18:39:12]requested_data is exist [18:39:12]produce_requested_data [18:39:12]requested_item fm.sn is exist - process it [18:39:12]wFMCommunicate request_size=4 [18:39:12]MH_SAM_APDU [18:39:12]CAPDU: 80 11 00 00 [18:39:12]Write to MH i2c: E2 08 00 37 11 80 11 00 00 00 00 00 00 C2 [18:39:12]Write i2c OK [18:39:12]MH_I2C_Read... [18:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:12]Read from MH i2c: E2 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 17 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 17 00 37 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [18:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:39:12]wFMCommunicate OK [18:39:12]requested_item fd.num is exist - process it [18:39:12]SAM_PROTO_GetFieldsCounters [18:39:12]wFMCommunicate request_size=4 [18:39:12]MH_SAM_APDU [18:39:12]CAPDU: 80 13 00 00 [18:39:12]Write to MH i2c: E2 08 00 38 11 80 13 00 00 00 00 00 00 C5 [18:39:12]Write i2c OK [18:39:12]MH_I2C_Read... [18:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:12]Read from MH i2c: E2 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 62 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 62 00 38 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 87 02 00 0E 04 04 00 16 02 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 AF [18:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 87 02 00 0E 04 04 00 16 02 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 [18:39:12]wFMCommunicate OK [18:39:12]SAM_PROTO_GetFieldsCounters done [18:39:12]requested_item shift.num is exist - process it [18:39:12]requested_item shift.opened is exist - process it [18:39:12]req_shift_opened [18:39:12]FM_GetShiftState [18:39:12]SAM_PROTO_GetShiftState [18:39:12]wFMCommunicate request_size=4 [18:39:12]MH_SAM_APDU [18:39:12]CAPDU: 80 13 01 00 [18:39:12]Write to MH i2c: E2 08 00 39 11 80 13 01 00 00 00 00 00 C7 [18:39:12]Write i2c OK [18:39:12]MH_I2C_Read... [18:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:12]Read from MH i2c: E2 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 0E 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 0E 00 39 11 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0F [18:39:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:39:12]wFMCommunicate OK [18:39:12]SAM_PROTO_GetShiftState done [18:39:12]FM_GetShiftState done [18:39:12]req_shift_opened done [18:39:12]requested_item shift.open_date is exist - process it [18:39:12]req_shift_open_date [18:39:12]req_shift_open_date done [18:39:12]produce_requested_data done [18:39:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165810,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:39:12]process_action_free close_receipt [18:39:12]json_value_free [18:39:12]json_value_free done [18:39:12]process_json_proto returns [18:39:12]Send response to host [18:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165810,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:39:12]free response buf [18:39:12]execute_script done [18:39:12]execute_script returns [18:39:12]free content buf [18:39:12]Sock 9.Close socket [18:39:12]Sock 9.Thread stoped [18:39:33]ConnectInit Can't connect to host [18:39:33]CommunicateWithHost connect error [18:39:33]CommunicateWithHost err = -1 [18:39:33]OFD Sender: Server communicate error [18:39:33]OFD Sender: Processing packet 165808 [packets to send 50, broken 47] [18:39:33]ProducePacketName [18:39:33]name=ofd_packets/00165808 [18:39:33]OFD Sender: To server: pG, [18:39:33]CommunicateWithHost lk.salyk.kg:30040 [18:39:33]ConnectInit lk.salyk.kg [18:39:33]Connected sock=9 [18: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 31 37 35 39 0C 01 00 00 1C B6 04 01 6D 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 E0 D3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 EC 4D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 87 02 00 35 04 06 00 CE 49 0E 92 31 16 BB 4E 98 79 2F AC 23 48 [18:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 24 7D 47 00 83 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 87 02 00 F4 03 04 00 E2 F4 14 67 B6 04 01 00 00 B0 7C 45 D2 DA 57 D7 95 [18:39:33]CommunicateWithHost err = 0 [18:39:33]CheckOFDResponse [18:39:33]1017 (14) - 77093643461234 [18:39:33]1041 (16) - 0000000000871759 [18:39:33]1040 (4) - 165808 [18:39:33]1012 (4) - 20.10.2024 12:17 [18:39:33]1206 (1) - 0 [18:39:33]OFD Sender: Remove packet 165808 [18:39:33]ProducePacketName [18:39:33]name=ofd_packets/00165808 [18:39:33]NVStorageDeleteData [18:39:33]OFD Sender: Processing packet 165809 [packets to send 49, broken 47] [18:39:33]ProducePacketName [18:39:33]name=ofd_packets/00165809 [18:39:33]OFD Sender: To server: pG, [18:39:33]CommunicateWithHost lk.salyk.kg:30040 [18:39:33]ConnectInit lk.salyk.kg [18:39:34]Connected sock=9 [18:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 56 07 01 87 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 45 4E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 87 02 00 35 04 06 00 C2 69 F2 40 D2 01 84 FD 42 1A 61 95 A9 B4 [18:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 06 6F 47 00 6E AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 87 02 00 F4 03 04 00 E2 F4 14 67 B6 04 01 00 00 7B 9E CC 61 B2 CC 5B 90 [18:39:34]CommunicateWithHost err = 0 [18:39:34]CheckOFDResponse [18:39:34]1017 (14) - 77093643461234 [18:39:34]1041 (16) - 0000000000871759 [18:39:34]1040 (4) - 165809 [18:39:34]1012 (4) - 20.10.2024 12:17 [18:39:34]1206 (1) - 0 [18:39:34]OFD Sender: Remove packet 165809 [18:39:34]ProducePacketName [18:39:34]name=ofd_packets/00165809 [18:39:34]NVStorageDeleteData [18:39:34]OFD Sender: Processing packet 165810 [packets to send 48, broken 47] [18:39:34]ProducePacketName [18:39:34]name=ofd_packets/00165810 [18:39:34]OFD Sender: To server: pG, [18:39:34]CommunicateWithHost lk.salyk.kg:30040 [18:39:34]ConnectInit lk.salyk.kg [18:39:34]Connected sock=9 [18:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0A 2B 07 01 5A 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 24 01 00 00 F4 03 04 00 5A 4E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 87 02 00 35 04 06 00 89 20 B6 FC 17 58 50 92 AF 6D 71 D7 A0 47 [18:39:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 74 47 00 46 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 31 37 35 39 10 04 04 00 B2 87 02 00 F4 03 04 00 E3 F4 14 67 B6 04 01 00 00 E0 94 33 41 E8 B4 D8 CE [18:39:35]CommunicateWithHost err = 0 [18:39:35]CheckOFDResponse [18:39:35]1017 (14) - 77093643461234 [18:39:35]1041 (16) - 0000000000871759 [18:39:35]1040 (4) - 165810 [18:39:35]1012 (4) - 20.10.2024 12:17 [18:39:35]1206 (1) - 0 [18:39:35]OFD Sender: Remove packet 165810 [18:39:35]ProducePacketName [18:39:35]name=ofd_packets/00165810 [18:39:35]NVStorageDeleteData [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:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]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:37]accept exits with 7 [18:43:37]New connection [18:43:37]New thread 3066920292 created [18:43:37]Thread 3066776932 joined [18:43:37]Waiting for new connection... [18:43:37] Sock 7.Parse request [18:43:37]Sock 7.Check first char [18:43:37]Sock 7.First char is OK [18:43:37]request: POST /json_proto HTTP/1.0 [18:43:37]Method: POST [18:43:37]URL: /json_proto [18:43:37]Method is POST - this is cgi request [18:43:37]url: /json_proto [18:43:37]query_string will be loaded in cgi processing [18:43:37]execute_cgi json_proto POST (null) [18:43:37]execute_cgi path=json_proto method=POST [18:43:37]POST find Content-Length [18:43:37]Host: 172.17.53.195:8080 [18:43:37]Content-Length: 677 [18:43:37]Content-Type: application/json [18:43:37] [18:43:37]POST finish read [18:43:37]Found Content-Length = 677 [18:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:37]execute_script... [18:43: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)220379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:37]POST & json_proto [18:43:37]process_json_proto [18:43:37]json parsed OK: [18:43:37]protocol is kg_v1.0 [18:43:37]action value=close_receipt [18:43:37]process_action close_receipt [18:43:37]cmd_close_receipt [18:43:37]MH_GetDate [18:43:37]Write to MH i2c: F0 00 00 3A 11 3A [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: F0 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: F0 09 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: F0 09 00 3A 11 00 67 4F 15 67 21 48 4A 65 8D [18:43:37]GetLastDocTimeStamp 1729449562 [18:43:37]current date 1729449831 [18:43:37]FM_GetShiftState [18:43:37]SAM_PROTO_GetShiftState [18:43:37]wFMCommunicate request_size=4 [18:43:37]MH_SAM_APDU [18:43:37]CAPDU: 80 13 01 00 [18:43:37]Write to MH i2c: E2 08 00 3B 11 80 13 01 00 00 00 00 00 C9 [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:37]Read from MH i2c: E2 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 0E 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 0E 00 3B 11 00 09 00 01 71 50 14 67 00 00 00 00 90 00 11 [18:43:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:43:37]wFMCommunicate OK [18:43:37]SAM_PROTO_GetShiftState done [18:43:37]FM_GetShiftState done [18:43:37]opened in 1729384561 [18:43:37]opened+sec_in_day 1729470961 [18:43:37]quantity*price = 40006 [18:43:37]sum+1 = 40007 [18:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 293 20.10.2024 18:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165811 ФПД: 21009200703185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165811&fm=21009200703185&tin=02508201610067®Number=0000000000091764&sum=40000 [18:43:38]StoreToDocumentArchive [18:43:38]shift 534 fd 165811 [18:43:38]save to /storage/0534/doc_00165811 [18:43:38]save last doc name /storage/0534/doc_00165811 to /storage/kkm_last_doc_name [18:43:38]save OK [18:43:38]Clear old archive folders... [18:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:38]tlvbuf is 0162F2C0 [18:43:38]SAM_PROTO_ClearQueue [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 09 00 00 [18:43:38]Write to MH i2c: E2 08 00 48 11 80 09 00 00 00 00 00 00 CB [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 48 11 00 90 00 CD [18:43:38]RAPDU: 90 00 [18:43:38]wFMCommunicate OK [18:43:38]SAM_PROTO_ClearQueue done [18:43:38]KKMCreateOFDPacket [18:43:38]OFDProtocolAddRootSTLVToBuf [18:43:38]FM_MakeSignedData [18:43:38]FM_MakeSignedData [18:43:38]SAM_PROTO_SignData [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 0D 01 02 [18:43:38]Write to MH i2c: E2 08 00 49 11 80 0D 01 02 00 00 00 00 D3 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 49 11 00 90 00 CE [18:43:38]RAPDU: 90 00 [18:43:38]wFMCommunicate OK [18:43:38]wFMCommunicate request_size=255 [18:43:38]MH_SAM_APDU [18:43: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 67 4F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 87 02 00 35 04 06 00 13 [18:43:38]Write to MH i2c: E2 02 01 4A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 67 4F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 87 02 00 35 04 06 00 13 00 00 F7 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 4A 11 00 90 00 CF [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]wFMCommunicate request_size=10 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 02 02 05 1B 95 F1 E6 D1 [18:43:39]Write to MH i2c: E2 0D 00 4B 11 80 0D 02 02 05 00 1B 95 F1 E6 D1 00 00 38 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 4B 11 00 90 00 D0 [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 03 02 [18:43:39]Write to MH i2c: E2 08 00 4C 11 80 0D 03 02 00 00 00 00 D8 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 0B 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 0B 00 4C 11 00 7B 1E 83 53 15 37 C0 96 90 00 EA [18:43:39]RAPDU: 7B 1E 83 53 15 37 C0 96 90 00 [18:43:39]wFMCommunicate OK [18:43:39]SAM_PROTO_SignData done [18:43:39]FM_MakeSignedData done [18:43:39]CreateOFDProtocolMessage [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 11 00 00 [18:43:39]Write to MH i2c: E2 08 00 4D 11 80 11 00 00 00 00 00 00 D8 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 17 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 17 00 4D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [18:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:43:39]wFMCommunicate OK [18:43:39]CreateOFDProtocolMessage done [18:43:39]OFDSenderStorePacket 165811 [18:43:39]StoreOFDPacket docnum=165811 [18:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 DC 07 01 D0 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 67 4F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 87 02 00 35 04 06 00 13 1B 95 F1 E6 D1 7B 1E 83 53 15 37 C0 96 [18:43:39]CheckFolder [18:43:39]dirname=/storage/ofd_packets [18:43:39]CheckFolder done [18:43:39]ProducePacketName [18:43:39]name=ofd_packets/00165811 [18:43:39]NVStorageSaveData ofd_packets/00165811 [18:43:39]File name is /storage/ofd_packets/00165811 [18:43:39]Write 301 bytes [18:43:39]NVStorageSaveData done [18:43:39]OFDSenderStorePacket done [18:43:39]KKMCreateOFDPacket done [18:43:39]NVStorageSaveData kkm_last_timestamp [18:43:39]File name is /storage/kkm_last_timestamp [18:43:39]Write 4 bytes [18:43:39]NVStorageSaveData done [18:43:39]ExternCall_PrintAddStr [18:43:39]wPrintStart [18:43:39]Write to MH i2c: 01 00 00 4E 11 5F [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 07 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 07 00 4E 11 00 00 00 00 00 FF 0F 74 [18:43:39]RasterBufferAndPrint [18:43:39]line Счет N : (1)220379 [18:43:39]line ИНН: 02508201610067 [18:43:39]line Контрольно-Кассовый Чек [18:43:39]line ПРОДАЖА [18:43:39]line ТРК (МРК, ГНК) : 33 [18:43:39]line Товар: 2710124130 [18:43:39]line Аи-92-К-5 [18:43:39]line 5.980 * 66.90 [18:43:39]line = 400.06 [18:43:39]line НДС 12% НСП 1% [18:43:39]line > о реализуемом товаре [18:43:39]line ОКРУГЛЕНИЕ: -0.06 [18:43:39]line ИТОГО: 400.00 [18:43:39]line Внесено: 400.00 [18:43:39]line СДАЧА: 0.00 [18:43:39]line НСП 1% : 3.54 [18:43:39]line НДС 12% : 42.48 [18:43:39]line Наличными: 400.00 [18:43:39]line Безнал.: 0.00 [18:43:39]line Место: АЗС № 161 "Партнер Нефть" [18:43:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:43:39]line СНО: Общий режим [18:43:39]line Чек 293 20.10.2024 18:43 [18:43:39]line Смена: 534 ФФД: 1.0 [18:43:39]line ЗНМ: 0300000104 [18:43:39]line РНМ: 0000000000091764 [18:43:39]line Версия ККМ: 001 [18:43:39]line ФМ: 0000000000871759 [18:43:39]line ФД: 165811 [18:43:39]line ФПД: 21009200703185 [18:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165811&fm=21009200703185&tin=02508201610067®Number=0000000000091764&sum=40000 [18:43:39]OFD Sender: Processing packet 165811 [packets to send 48, broken 47] [18:43:39]ProducePacketName [18:43:39]name=ofd_packets/00165811 [18:43:39]OFD Sender: To server: pG, [18:43:39]CommunicateWithHost lk.salyk.kg:30040 [18:43:39]ConnectInit lk.salyk.kg [18:43:39]written 0, free lines is 4095 [18:43:39]Connected sock=10 [18:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 DC 07 01 D0 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 67 4F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 87 02 00 35 04 06 00 13 1B 95 F1 E6 D1 7B 1E 83 53 15 37 C0 96 [18:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B6 9D 47 00 24 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 31 37 35 39 10 04 04 00 B3 87 02 00 F4 03 04 00 D8 F5 14 67 B6 04 01 00 00 AF 6C 9B 6B 86 CA D6 1D [18:43:39]CommunicateWithHost err = 0 [18:43:39]CheckOFDResponse [18:43:39]1017 (14) - 77093643461234 [18:43:39]1041 (16) - 0000000000871759 [18:43:39]1040 (4) - 165811 [18:43:39]1012 (4) - 20.10.2024 12:21 [18:43:39]1206 (1) - 0 [18:43:39]OFD Sender: Remove packet 165811 [18:43:39]ProducePacketName [18:43:39]name=ofd_packets/00165811 [18:43:39]NVStorageDeleteData [18:43:40]Write to MH i2c: 01 00 00 79 11 8A [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 79 11 00 00 00 00 00 BF 0C 5C [18:43:40]RasterBufferAndPrint [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]written 0, free lines is 3270 [18:43:40]MH_Cut [18:43:40]Write to MH i2c: D1 01 00 80 11 01 63 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 01 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 01 00 80 11 00 62 [18:43:40]Write to MH i2c: 01 00 00 81 11 92 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]OFD Sender: No OFD packet to send [18:43:40]*** Cut start [18:43:40]*** Partial cut [18:43:40]*** CUTSNS_PIN = 1 [18:43:40]*** CUTSNS_PIN = 0 [18:43:41]*** Brake cut motor [18:43:41]Read from MH i2c: 01 [18:43:41]MH_I2C_Read... [18:43:41]*** Stop cut motor [18:43:41]*** Cut end [18:43:41]Read from MH i2c: 01 07 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: 01 07 00 81 11 00 00 00 00 00 FF 0F A7 [18:43:41]process_action close_receipt done [18:43:41]requested_data is exist [18:43:41]produce_requested_data [18:43:41]requested_item fm.sn is exist - process it [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 11 00 00 [18:43:41]Write to MH i2c: E2 08 00 82 11 80 11 00 00 00 00 00 00 0D [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 17 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 17 00 82 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 65 [18:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:43:41]wFMCommunicate OK [18:43:41]requested_item fd.num is exist - process it [18:43:41]SAM_PROTO_GetFieldsCounters [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 13 00 00 [18:43:41]Write to MH i2c: E2 08 00 83 11 80 13 00 00 00 00 00 00 10 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 62 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 62 00 83 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 87 02 00 0E 04 04 00 16 02 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 FE [18:43: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 87 02 00 0E 04 04 00 16 02 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 [18:43:41]wFMCommunicate OK [18:43:41]SAM_PROTO_GetFieldsCounters done [18:43:41]requested_item shift.num is exist - process it [18:43:41]requested_item shift.opened is exist - process it [18:43:41]req_shift_opened [18:43:41]FM_GetShiftState [18:43:41]SAM_PROTO_GetShiftState [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 13 01 00 [18:43:41]Write to MH i2c: E2 08 00 84 11 80 13 01 00 00 00 00 00 12 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 0E 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 0E 00 84 11 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5A [18:43:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:43:41]wFMCommunicate OK [18:43:41]SAM_PROTO_GetShiftState done [18:43:41]FM_GetShiftState done [18:43:41]req_shift_opened done [18:43:41]requested_item shift.open_date is exist - process it [18:43:41]req_shift_open_date [18:43:41]req_shift_open_date done [18:43:41]produce_requested_data done [18:43:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165811,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:43:41]process_action_free close_receipt [18:43:41]json_value_free [18:43:41]json_value_free done [18:43:41]process_json_proto returns [18:43:41]Send response to host [18:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165811,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:43:41]free response buf [18:43:41]execute_script done [18:43:41]execute_script returns [18:43:41]free content buf [18:43:41]Sock 7.Close socket [18:43:41]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:14]accept exits with 9 [18:47:14]New connection [18:47:14]New thread 3066776932 created [18:47:14]Thread 3066920292 joined [18:47:14]Waiting for new connection... [18:47:14] Sock 9.Parse request [18:47:14]Sock 9.Check first char [18:47:14]Sock 9.First char is OK [18:47:14]request: POST /json_proto HTTP/1.0 [18:47:14]Method: POST [18:47:14]URL: /json_proto [18:47:14]Method is POST - this is cgi request [18:47:14]url: /json_proto [18:47:14]query_string will be loaded in cgi processing [18:47:14]execute_cgi json_proto POST (null) [18:47:14]execute_cgi path=json_proto method=POST [18:47:14]POST find Content-Length [18:47:14]Host: 172.17.53.195:8080 [18:47:14]Content-Length: 789 [18:47:14]Content-Type: application/json [18:47:14] [18:47:14]POST finish read [18:47:14]Found Content-Length = 789 [18:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:14]execute_script... [18:47:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:14]POST & json_proto [18:47:14]process_json_proto [18:47:14]json parsed OK: [18:47:14]protocol is kg_v1.0 [18:47:14]action value=close_receipt [18:47:14]process_action close_receipt [18:47:14]cmd_close_receipt [18:47:14]MH_GetDate [18:47:14]Write to MH i2c: F0 00 00 85 11 85 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: F0 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: F0 09 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: F0 09 00 85 11 00 3F 50 15 67 21 48 4A 65 B1 [18:47:14]GetLastDocTimeStamp 1729449831 [18:47:14]current date 1729450047 [18:47:14]FM_GetShiftState [18:47:14]SAM_PROTO_GetShiftState [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 13 01 00 [18:47:14]Write to MH i2c: E2 08 00 86 11 80 13 01 00 00 00 00 00 14 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 0E 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 0E 00 86 11 00 09 00 01 71 50 14 67 00 00 00 00 90 00 5C [18:47:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:47:14]wFMCommunicate OK [18:47:14]SAM_PROTO_GetShiftState done [18:47:14]FM_GetShiftState done [18:47:14]opened in 1729384561 [18:47:14]opened+sec_in_day 1729470961 [18:47:14]quantity*price = 0 [18:47:14]sum+1 = 1 [18:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 294 20.10.2024 18:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165812 ФПД: 220116826133615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184727&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165812&fm=220116826133615&tin=02508201610067®Number=0000000000091764&sum=0 [18:47:15]StoreToDocumentArchive [18:47:15]shift 534 fd 165812 [18:47:15]save to /storage/0534/doc_00165812 [18:47:15]save last doc name /storage/0534/doc_00165812 to /storage/kkm_last_doc_name [18:47:15]save OK [18:47:15]Clear old archive folders... [18:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:47:15]tlvbuf is 018B0580 [18:47:15]SAM_PROTO_ClearQueue [18:47:15]wFMCommunicate request_size=4 [18:47:15]MH_SAM_APDU [18:47:15]CAPDU: 80 09 00 00 [18:47:15]Write to MH i2c: E2 08 00 93 11 80 09 00 00 00 00 00 00 16 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 03 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 03 00 93 11 00 90 00 18 [18:47:15]RAPDU: 90 00 [18:47:15]wFMCommunicate OK [18:47:15]SAM_PROTO_ClearQueue done [18:47:15]KKMCreateOFDPacket [18:47:15]OFDProtocolAddRootSTLVToBuf [18:47:15]FM_MakeSignedData [18:47:15]FM_MakeSignedData [18:47:15]SAM_PROTO_SignData [18:47:15]wFMCommunicate request_size=4 [18:47:15]MH_SAM_APDU [18:47:15]CAPDU: 80 0D 01 02 [18:47:15]Write to MH i2c: E2 08 00 94 11 80 0D 01 02 00 00 00 00 1E [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 03 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 03 00 94 11 00 90 00 19 [18:47:15]RAPDU: 90 00 [18:47:15]wFMCommunicate OK [18:47:15]wFMCommunicate request_size=255 [18:47:15]MH_SAM_APDU [18:47: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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 3F 50 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 87 02 00 35 04 06 00 C8 31 F1 3B [18:47:15]Write to MH i2c: E2 02 01 95 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 3F 50 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 87 02 00 35 04 06 00 C8 31 F1 3B 00 00 AB [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 03 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 03 00 95 11 00 90 00 1A [18:47:15]RAPDU: 90 00 [18:47:15]wFMCommunicate OK [18:47:15]wFMCommunicate request_size=7 [18:47:15]MH_SAM_APDU [18:47:15]CAPDU: 80 0D 02 02 02 14 6F [18:47:15]Write to MH i2c: E2 0A 00 96 11 80 0D 02 02 02 00 14 6F 00 00 A8 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 03 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 03 00 96 11 00 90 00 1B [18:47:15]RAPDU: 90 00 [18:47:15]wFMCommunicate OK [18:47:15]wFMCommunicate request_size=4 [18:47:15]MH_SAM_APDU [18:47:15]CAPDU: 80 0D 03 02 [18:47:15]Write to MH i2c: E2 08 00 97 11 80 0D 03 02 00 00 00 00 23 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 0B 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 0B 00 97 11 00 1F 95 50 E8 0E F6 3B F4 90 00 43 [18:47:15]RAPDU: 1F 95 50 E8 0E F6 3B F4 90 00 [18:47:15]wFMCommunicate OK [18:47:15]SAM_PROTO_SignData done [18:47:15]FM_MakeSignedData done [18:47:15]CreateOFDProtocolMessage [18:47:15]wFMCommunicate request_size=4 [18:47:15]MH_SAM_APDU [18:47:15]CAPDU: 80 11 00 00 [18:47:15]Write to MH i2c: E2 08 00 98 11 80 11 00 00 00 00 00 00 23 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]OFD Sender: No OFD packet to send [18:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 17 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 17 00 98 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [18:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:47:15]wFMCommunicate OK [18:47:15]CreateOFDProtocolMessage done [18:47:15]OFDSenderStorePacket 165812 [18:47:15]StoreOFDPacket docnum=165812 [18:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F2 CD 04 01 AD 53 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 3F 50 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 87 02 00 35 04 06 00 C8 31 F1 3B 14 6F 1F 95 50 E8 0E F6 3B F4 [18:47:15]CheckFolder [18:47:15]dirname=/storage/ofd_packets [18:47:15]CheckFolder done [18:47:15]ProducePacketName [18:47:15]name=ofd_packets/00165812 [18:47:15]NVStorageSaveData ofd_packets/00165812 [18:47:15]File name is /storage/ofd_packets/00165812 [18:47:15]Write 298 bytes [18:47:15]NVStorageSaveData done [18:47:15]OFDSenderStorePacket done [18:47:15]KKMCreateOFDPacket done [18:47:15]NVStorageSaveData kkm_last_timestamp [18:47:15]File name is /storage/kkm_last_timestamp [18:47:15]Write 4 bytes [18:47:15]NVStorageSaveData done [18:47:15]ExternCall_PrintAddStr [18:47:15]wPrintStart [18:47:15]Write to MH i2c: 01 00 00 99 11 AA [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 07 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 07 00 99 11 00 00 00 00 00 FF 0F BF [18:47:15]RasterBufferAndPrint [18:47:15]line Счет N : (1)220380 [18:47:15]line ИНН: 02508201610067 [18:47:15]line Контрольно-Кассовый Чек [18:47:15]line ПРОДАЖА [18:47:15]line ТРК (МРК, ГНК) : 41 [18:47:15]line Товар: 2710194210 [18:47:15]line ДТ-К-5 [18:47:15]line 13.130 * 0.00 [18:47:15]line = 0.00 [18:47:15]line НДС 12% НСП 1% [18:47:15]line > о реализуемом товаре [18:47:15]line ИТОГО: 0.00 [18:47:15]line НСП 1% : 0.00 [18:47:15]line НДС 12% : 0.00 [18:47:15]line Наличными: 0.00 [18:47:15]line Безнал.: 0.00 [18:47:15]line Место: АЗС № 161 "Партнер Нефть" [18:47:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:47:15]line СНО: Общий режим [18:47:15]line Чек 294 20.10.2024 18:47 [18:47:15]line Смена: 534 ФФД: 1.0 [18:47:15]line ЗНМ: 0300000104 [18:47:15]line РНМ: 0000000000091764 [18:47:15]line Версия ККМ: 001 [18:47:15]line Талоны: Топливная Карта [18:47:15]line 39590 [18:47:15]line ФМ: 0000000000871759 [18:47:15]line ФД: 165812 [18:47:15]line ФПД: 220116826133615 [18:47:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184727&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165812&fm=220116826133615&tin=02508201610067®Number=0000000000091764&sum=0 [18:47:16]written 0, free lines is 4095 [18:47:16]OFD Sender: Processing packet 165812 [packets to send 48, broken 47] [18:47:16]ProducePacketName [18:47:16]name=ofd_packets/00165812 [18:47:16]OFD Sender: To server: pG, [18:47:16]CommunicateWithHost lk.salyk.kg:30040 [18:47:16]ConnectInit lk.salyk.kg [18:47:16]Connected sock=10 [18:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F2 CD 04 01 AD 53 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 3F 50 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 87 02 00 35 04 06 00 C8 31 F1 3B 14 6F 1F 95 50 E8 0E F6 3B F4 [18:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 80 2C 47 00 6B C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 87 02 00 F4 03 04 00 B0 F6 14 67 B6 04 01 00 00 CB 7D 44 9B D9 85 13 03 [18:47:16]CommunicateWithHost err = 0 [18:47:16]CheckOFDResponse [18:47:16]1017 (14) - 77093643461234 [18:47:16]1041 (16) - 0000000000871759 [18:47:16]1040 (4) - 165812 [18:47:16]1012 (4) - 20.10.2024 12:25 [18:47:16]1206 (1) - 0 [18:47:16]OFD Sender: Remove packet 165812 [18:47:16]ProducePacketName [18:47:16]name=ofd_packets/00165812 [18:47:16]NVStorageDeleteData [18:47:16]Write to MH i2c: 01 00 00 C3 11 D4 [18:47:16]Write i2c OK [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: 01 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: 01 07 00 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: 01 07 00 C3 11 00 00 00 00 00 C3 0C AA [18:47:16]RasterBufferAndPrint [18:47:16]line [18:47:16]line [18:47:16]line [18:47:16]line [18:47:16]line [18:47:16]written 0, free lines is 3272 [18:47:16]MH_Cut [18:47:16]Write to MH i2c: D1 01 00 CA 11 01 AD [18:47:16]Write i2c OK [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: D1 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: D1 01 00 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: D1 01 00 CA 11 00 AC [18:47:16]Write to MH i2c: 01 00 00 CB 11 DC [18:47:16]Write i2c OK [18:47:16]MH_I2C_Read... [18:47:16]OFD Sender: No OFD packet to send [18:47:17]*** Cut start [18:47:17]*** Partial cut [18:47:17]*** CUTSNS_PIN = 1 [18:47:17]*** CUTSNS_PIN = 0 [18:47:17]*** Brake cut motor [18:47:17]Read from MH i2c: 01 [18:47:17]MH_I2C_Read... [18:47:17]*** Stop cut motor [18:47:17]*** Cut end [18:47:17]Read from MH i2c: 01 07 00 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: 01 07 00 CB 11 00 00 00 00 00 FF 0F F1 [18:47:17]process_action close_receipt done [18:47:17]requested_data is exist [18:47:17]produce_requested_data [18:47:17]requested_item fm.sn is exist - process it [18:47:17]wFMCommunicate request_size=4 [18:47:17]MH_SAM_APDU [18:47:17]CAPDU: 80 11 00 00 [18:47:17]Write to MH i2c: E2 08 00 CC 11 80 11 00 00 00 00 00 00 57 [18:47:17]Write i2c OK [18:47:17]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 17 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 17 00 CC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [18:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:47:18]wFMCommunicate OK [18:47:18]requested_item fd.num is exist - process it [18:47:18]SAM_PROTO_GetFieldsCounters [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 13 00 00 [18:47:18]Write to MH i2c: E2 08 00 CD 11 80 13 00 00 00 00 00 00 5A [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 62 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 62 00 CD 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 87 02 00 0E 04 04 00 16 02 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 4C [18:47:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 87 02 00 0E 04 04 00 16 02 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 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_GetFieldsCounters done [18:47:18]requested_item shift.num is exist - process it [18:47:18]requested_item shift.opened is exist - process it [18:47:18]req_shift_opened [18:47:18]FM_GetShiftState [18:47:18]SAM_PROTO_GetShiftState [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 13 01 00 [18:47:18]Write to MH i2c: E2 08 00 CE 11 80 13 01 00 00 00 00 00 5C [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 0E 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 0E 00 CE 11 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A4 [18:47:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_GetShiftState done [18:47:18]FM_GetShiftState done [18:47:18]req_shift_opened done [18:47:18]requested_item shift.open_date is exist - process it [18:47:18]req_shift_open_date [18:47:18]req_shift_open_date done [18:47:18]produce_requested_data done [18:47:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165812,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:47:18]process_action_free close_receipt [18:47:18]json_value_free [18:47:18]json_value_free done [18:47:18]process_json_proto returns [18:47:18]Send response to host [18:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165812,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:47:18]free response buf [18:47:18]execute_script done [18:47:18]execute_script returns [18:47:18]free content buf [18:47:18]Sock 9.Close socket [18:47:18]Sock 9.Thread stoped [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:47]accept exits with 7 [18:48:47]New connection [18:48:47]New thread 3066920292 created [18:48:47]Thread 3066776932 joined [18:48:47]Waiting for new connection... [18:48:47] Sock 7.Parse request [18:48:47]Sock 7.Check first char [18:48:47]Sock 7.First char is OK [18:48:47]request: POST /json_proto HTTP/1.0 [18:48:47]Method: POST [18:48:47]URL: /json_proto [18:48:47]Method is POST - this is cgi request [18:48:47]url: /json_proto [18:48:47]query_string will be loaded in cgi processing [18:48:47]execute_cgi json_proto POST (null) [18:48:47]execute_cgi path=json_proto method=POST [18:48:47]POST find Content-Length [18:48:47]Host: 172.17.53.195:8080 [18:48:47]Content-Length: 682 [18:48:47]Content-Type: application/json [18:48:47] [18:48:47]POST finish read [18:48:47]Found Content-Length = 682 [18:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:47]execute_script... [18:48: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)220381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:47]POST & json_proto [18:48:47]process_json_proto [18:48:47]json parsed OK: [18:48:47]protocol is kg_v1.0 [18:48:47]action value=close_receipt [18:48:47]process_action close_receipt [18:48:47]cmd_close_receipt [18:48:47]MH_GetDate [18:48:47]Write to MH i2c: F0 00 00 CF 11 CF [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: F0 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: F0 09 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: F0 09 00 CF 11 00 9D 50 15 67 21 48 4A 65 59 [18:48:47]GetLastDocTimeStamp 1729450047 [18:48:47]current date 1729450141 [18:48:47]FM_GetShiftState [18:48:47]SAM_PROTO_GetShiftState [18:48:47]wFMCommunicate request_size=4 [18:48:47]MH_SAM_APDU [18:48:47]CAPDU: 80 13 01 00 [18:48:47]Write to MH i2c: E2 08 00 D0 11 80 13 01 00 00 00 00 00 5E [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:47]Read from MH i2c: E2 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 0E 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 0E 00 D0 11 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A6 [18:48:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:48:47]wFMCommunicate OK [18:48:47]SAM_PROTO_GetShiftState done [18:48:47]FM_GetShiftState done [18:48:47]opened in 1729384561 [18:48:47]opened+sec_in_day 1729470961 [18:48:47]quantity*price = 100015 [18:48:47]sum+1 = 100017 [18:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 295 20.10.2024 18:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165813 ФПД: 147246704489535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184901&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165813&fm=147246704489535&tin=02508201610067®Number=0000000000091764&sum=100000 [18:48:49]StoreToDocumentArchive [18:48:49]shift 534 fd 165813 [18:48:49]save to /storage/0534/doc_00165813 [18:48:49]save last doc name /storage/0534/doc_00165813 to /storage/kkm_last_doc_name [18:48:49]save OK [18:48:49]Clear old archive folders... [18:48:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:49]tlvbuf is 0162EFD0 [18:48:49]SAM_PROTO_ClearQueue [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 09 00 00 [18:48:49]Write to MH i2c: E2 08 00 DD 11 80 09 00 00 00 00 00 00 60 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 DD 11 00 90 00 62 [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]SAM_PROTO_ClearQueue done [18:48:49]KKMCreateOFDPacket [18:48:49]OFDProtocolAddRootSTLVToBuf [18:48:49]FM_MakeSignedData [18:48:49]FM_MakeSignedData [18:48:49]SAM_PROTO_SignData [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 01 02 [18:48:49]Write to MH i2c: E2 08 00 DE 11 80 0D 01 02 00 00 00 00 68 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 DE 11 00 90 00 63 [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]wFMCommunicate request_size=255 [18:48:49]MH_SAM_APDU [18:48: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9D 50 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 87 02 00 35 04 06 00 85 [18:48:49]Write to MH i2c: E2 02 01 DF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9D 50 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 87 02 00 35 04 06 00 85 00 00 64 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 DF 11 00 90 00 64 [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]wFMCommunicate request_size=10 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 02 02 05 EB 8B 83 F4 3F [18:48:49]Write to MH i2c: E2 0D 00 E0 11 80 0D 02 02 05 00 EB 8B 83 F4 3F 00 00 A1 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 E0 11 00 90 00 65 [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 03 02 [18:48:49]Write to MH i2c: E2 08 00 E1 11 80 0D 03 02 00 00 00 00 6D [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 0B 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 0B 00 E1 11 00 3A 9E C3 BF FA 75 18 71 90 00 C0 [18:48:49]RAPDU: 3A 9E C3 BF FA 75 18 71 90 00 [18:48:49]wFMCommunicate OK [18:48:49]SAM_PROTO_SignData done [18:48:49]FM_MakeSignedData done [18:48:49]CreateOFDProtocolMessage [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 11 00 00 [18:48:49]Write to MH i2c: E2 08 00 E2 11 80 11 00 00 00 00 00 00 6D [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 17 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 17 00 E2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [18:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:48:49]wFMCommunicate OK [18:48:49]CreateOFDProtocolMessage done [18:48:49]OFDSenderStorePacket 165813 [18:48:49]StoreOFDPacket docnum=165813 [18:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 96 07 01 C4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9D 50 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 87 02 00 35 04 06 00 85 EB 8B 83 F4 3F 3A 9E C3 BF FA 75 18 71 [18:48:49]CheckFolder [18:48:49]dirname=/storage/ofd_packets [18:48:49]CheckFolder done [18:48:49]ProducePacketName [18:48:49]name=ofd_packets/00165813 [18:48:49]NVStorageSaveData ofd_packets/00165813 [18:48:49]File name is /storage/ofd_packets/00165813 [18:48:49]Write 301 bytes [18:48:49]NVStorageSaveData done [18:48:49]OFDSenderStorePacket done [18:48:49]KKMCreateOFDPacket done [18:48:49]NVStorageSaveData kkm_last_timestamp [18:48:49]File name is /storage/kkm_last_timestamp [18:48:49]Write 4 bytes [18:48:49]NVStorageSaveData done [18:48:49]ExternCall_PrintAddStr [18:48:49]wPrintStart [18:48:49]Write to MH i2c: 01 00 00 E3 11 F4 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 07 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 07 00 E3 11 00 00 00 00 00 FF 0F 09 [18:48:49]RasterBufferAndPrint [18:48:49]line Счет N : (1)220381 [18:48:49]line ИНН: 02508201610067 [18:48:49]line Контрольно-Кассовый Чек [18:48:49]line ПРОДАЖА [18:48:49]line ТРК (МРК, ГНК) : 33 [18:48:49]line Товар: 2710124130 [18:48:49]line Аи-92-К-5 [18:48:49]line 14.950 * 66.90 [18:48:49]line = 1000.16 [18:48:49]line НДС 12% НСП 1% [18:48:49]line > о реализуемом товаре [18:48:49]line ОКРУГЛЕНИЕ: -0.16 [18:48:49]line ИТОГО: 1000.00 [18:48:49]line Внесено: 1000.00 [18:48:49]line СДАЧА: 0.00 [18:48:49]line НСП 1% : 8.85 [18:48:49]line НДС 12% : 106.21 [18:48:49]line Наличными: 1000.00 [18:48:49]line Безнал.: 0.00 [18:48:49]line Место: АЗС № 161 "Партнер Нефть" [18:48:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:48:49]line СНО: Общий режим [18:48:49]line Чек 295 20.10.2024 18:49 [18:48:49]line Смена: 534 ФФД: 1.0 [18:48:49]line ЗНМ: 0300000104 [18:48:49]line РНМ: 0000000000091764 [18:48:49]line Версия ККМ: 001 [18:48:49]line ФМ: 0000000000871759 [18:48:49]line ФД: 165813 [18:48:49]line ФПД: 147246704489535 [18:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184901&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165813&fm=147246704489535&tin=02508201610067®Number=0000000000091764&sum=100000 [18:48:49]OFD Sender: Processing packet 165813 [packets to send 48, broken 47] [18:48:49]ProducePacketName [18:48:49]name=ofd_packets/00165813 [18:48:49]OFD Sender: To server: pG, [18:48:49]CommunicateWithHost lk.salyk.kg:30040 [18:48:49]ConnectInit lk.salyk.kg [18:48:49]written 0, free lines is 4095 [18:48:50]Connected sock=9 [18:48:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 96 07 01 C4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9D 50 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 87 02 00 35 04 06 00 85 EB 8B 83 F4 3F 3A 9E C3 BF FA 75 18 71 [18:48:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 56 AA 47 00 44 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 31 37 35 39 10 04 04 00 B5 87 02 00 F4 03 04 00 0E F7 14 67 B6 04 01 00 00 01 F4 C2 EF D1 90 A1 49 [18:48:50]CommunicateWithHost err = 0 [18:48:50]CheckOFDResponse [18:48:50]1017 (14) - 77093643461234 [18:48:50]1041 (16) - 0000000000871759 [18:48:50]1040 (4) - 165813 [18:48:50]1012 (4) - 20.10.2024 12:26 [18:48:50]1206 (1) - 0 [18:48:50]OFD Sender: Remove packet 165813 [18:48:50]ProducePacketName [18:48:50]name=ofd_packets/00165813 [18:48:50]NVStorageDeleteData [18:48:50]Write to MH i2c: 01 00 00 0E 12 20 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 0E 12 00 00 00 00 00 BF 0C F2 [18:48:50]RasterBufferAndPrint [18:48:50]line [18:48:50]line [18:48:50]line [18:48:50]line [18:48:50]line [18:48:50]written 0, free lines is 3270 [18:48:50]MH_Cut [18:48:50]Write to MH i2c: D1 01 00 15 12 01 F9 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: D1 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: D1 01 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: D1 01 00 15 12 00 F8 [18:48:50]Write to MH i2c: 01 00 00 16 12 28 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]OFD Sender: No OFD packet to send [18:48:51]*** Cut start [18:48:51]*** Partial cut [18:48:51]*** CUTSNS_PIN = 1 [18:48:51]*** CUTSNS_PIN = 0 [18:48:51]*** Brake cut motor [18:48:51]Read from MH i2c: 01 [18:48:51]MH_I2C_Read... [18:48:51]*** Stop cut motor [18:48:51]*** Cut end [18:48:51]Read from MH i2c: 01 07 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: 01 07 00 16 12 00 00 00 00 00 FF 0F 3D [18:48:51]process_action close_receipt done [18:48:51]requested_data is exist [18:48:51]produce_requested_data [18:48:51]requested_item fm.sn is exist - process it [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 11 00 00 [18:48:51]Write to MH i2c: E2 08 00 17 12 80 11 00 00 00 00 00 00 A3 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 17 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 17 00 17 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FB [18:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:48:51]wFMCommunicate OK [18:48:51]requested_item fd.num is exist - process it [18:48:51]SAM_PROTO_GetFieldsCounters [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 13 00 00 [18:48:51]Write to MH i2c: E2 08 00 18 12 80 13 00 00 00 00 00 00 A6 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:52]Read from MH i2c: E2 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: E2 62 00 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: E2 62 00 18 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 87 02 00 0E 04 04 00 16 02 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 9C [18:48:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 87 02 00 0E 04 04 00 16 02 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 [18:48:52]wFMCommunicate OK [18:48:52]SAM_PROTO_GetFieldsCounters done [18:48:52]requested_item shift.num is exist - process it [18:48:52]requested_item shift.opened is exist - process it [18:48:52]req_shift_opened [18:48:52]FM_GetShiftState [18:48:52]SAM_PROTO_GetShiftState [18:48:52]wFMCommunicate request_size=4 [18:48:52]MH_SAM_APDU [18:48:52]CAPDU: 80 13 01 00 [18:48:52]Write to MH i2c: E2 08 00 19 12 80 13 01 00 00 00 00 00 A8 [18:48:52]Write i2c OK [18:48:52]MH_I2C_Read... [18:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:52]Read from MH i2c: E2 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: E2 0E 00 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: E2 0E 00 19 12 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F0 [18:48:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:48:52]wFMCommunicate OK [18:48:52]SAM_PROTO_GetShiftState done [18:48:52]FM_GetShiftState done [18:48:52]req_shift_opened done [18:48:52]requested_item shift.open_date is exist - process it [18:48:52]req_shift_open_date [18:48:52]req_shift_open_date done [18:48:52]produce_requested_data done [18:48:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165813,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:48:52]process_action_free close_receipt [18:48:52]json_value_free [18:48:52]json_value_free done [18:48:52]process_json_proto returns [18:48:52]Send response to host [18:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165813,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:48:52]free response buf [18:48:52]execute_script done [18:48:52]execute_script returns [18:48:52]free content buf [18:48:52]Sock 7.Close socket [18:48:52]Sock 7.Thread stoped [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:53]accept exits with 10 [18:54:53]New connection [18:54:53]New thread 3066776932 created [18:54:53]Thread 3066920292 joined [18:54:53]Waiting for new connection... [18:54:53] Sock 10.Parse request [18:54:53]Sock 10.Check first char [18:54:53]Sock 10.First char is OK [18:54:53]request: POST /json_proto HTTP/1.0 [18:54:53]Method: POST [18:54:53]URL: /json_proto [18:54:53]Method is POST - this is cgi request [18:54:53]url: /json_proto [18:54:53]query_string will be loaded in cgi processing [18:54:53]execute_cgi json_proto POST (null) [18:54:53]execute_cgi path=json_proto method=POST [18:54:53]POST find Content-Length [18:54:53]Host: 172.17.53.195:8080 [18:54:53]Content-Length: 800 [18:54:53]Content-Type: application/json [18:54:53] [18:54:53]POST finish read [18:54:53]Found Content-Length = 800 [18:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:53]execute_script... [18:54: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)220382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:53]POST & json_proto [18:54:53]process_json_proto [18:54:53]json parsed OK: [18:54:53]protocol is kg_v1.0 [18:54:53]action value=close_receipt [18:54:53]process_action close_receipt [18:54:53]cmd_close_receipt [18:54:53]MH_GetDate [18:54:53]Write to MH i2c: F0 00 00 1A 12 1B [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: F0 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: F0 09 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: F0 09 00 1A 12 00 0B 52 15 67 21 48 4A 65 15 [18:54:53]GetLastDocTimeStamp 1729450141 [18:54:53]current date 1729450507 [18:54:53]FM_GetShiftState [18:54:53]SAM_PROTO_GetShiftState [18:54:53]wFMCommunicate request_size=4 [18:54:53]MH_SAM_APDU [18:54:53]CAPDU: 80 13 01 00 [18:54:53]Write to MH i2c: E2 08 00 1B 12 80 13 01 00 00 00 00 00 AA [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:53]Read from MH i2c: E2 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 0E 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 0E 00 1B 12 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F2 [18:54:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:54:53]wFMCommunicate OK [18:54:53]SAM_PROTO_GetShiftState done [18:54:53]FM_GetShiftState done [18:54:53]opened in 1729384561 [18:54:53]opened+sec_in_day 1729470961 [18:54:53]quantity*price = 50010 [18:54:53]sum+1 = 50012 [18:54:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 296 20.10.2024 18:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871759 ФД: 165814 ФПД: 236582346544260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165814&fm=236582346544260&tin=02508201610067®Number=0000000000091764&sum=50011 [18:54:54]StoreToDocumentArchive [18:54:54]shift 534 fd 165814 [18:54:54]save to /storage/0534/doc_00165814 [18:54:54]save last doc name /storage/0534/doc_00165814 to /storage/kkm_last_doc_name [18:54:54]save OK [18:54:54]Clear old archive folders... [18:54:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:54]tlvbuf is 015DD330 [18:54:54]SAM_PROTO_ClearQueue [18:54:54]wFMCommunicate request_size=4 [18:54:54]MH_SAM_APDU [18:54:54]CAPDU: 80 09 00 00 [18:54:54]Write to MH i2c: E2 08 00 28 12 80 09 00 00 00 00 00 00 AC [18:54:54]Write i2c OK [18:54:54]MH_I2C_Read... [18:54:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:54]Read from MH i2c: E2 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 03 00 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 03 00 28 12 00 90 00 AE [18:54:54]RAPDU: 90 00 [18:54:54]wFMCommunicate OK [18:54:54]SAM_PROTO_ClearQueue done [18:54:54]KKMCreateOFDPacket [18:54:54]OFDProtocolAddRootSTLVToBuf [18:54:54]FM_MakeSignedData [18:54:54]FM_MakeSignedData [18:54:54]SAM_PROTO_SignData [18:54:54]wFMCommunicate request_size=4 [18:54:54]MH_SAM_APDU [18:54:54]CAPDU: 80 0D 01 02 [18:54:54]Write to MH i2c: E2 08 00 29 12 80 0D 01 02 00 00 00 00 B4 [18:54:54]Write i2c OK [18:54:54]MH_I2C_Read... [18:54:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:54]Read from MH i2c: E2 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 03 00 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 03 00 29 12 00 90 00 AF [18:54:54]RAPDU: 90 00 [18:54:54]wFMCommunicate OK [18:54:54]wFMCommunicate request_size=255 [18:54:54]MH_SAM_APDU [18:54:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0B 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 87 02 00 35 04 06 00 D7 [18:54:54]Write to MH i2c: E2 02 01 2A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0B 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 87 02 00 35 04 06 00 D7 00 00 68 [18:54:54]Write i2c OK [18:54:54]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 2A 12 00 90 00 B0 [18:54:55]RAPDU: 90 00 [18:54:55]wFMCommunicate OK [18:54:55]wFMCommunicate request_size=10 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 0D 02 02 05 2B 9E B9 D4 84 [18:54:55]Write to MH i2c: E2 0D 00 2B 12 80 0D 02 02 05 00 2B 9E B9 D4 84 00 00 9B [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [18:54:55]RAPDU: 90 00 [18:54:55]wFMCommunicate OK [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 0D 03 02 [18:54:55]Write to MH i2c: E2 08 00 2C 12 80 0D 03 02 00 00 00 00 B9 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 0B 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 0B 00 2C 12 00 42 19 8F 75 95 FF 43 0E 90 00 FE [18:54:55]RAPDU: 42 19 8F 75 95 FF 43 0E 90 00 [18:54:55]wFMCommunicate OK [18:54:55]SAM_PROTO_SignData done [18:54:55]FM_MakeSignedData done [18:54:55]CreateOFDProtocolMessage [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 11 00 00 [18:54:55]Write to MH i2c: E2 08 00 2D 12 80 11 00 00 00 00 00 00 B9 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 17 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 17 00 2D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 11 [18:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:54:55]wFMCommunicate OK [18:54:55]CreateOFDProtocolMessage done [18:54:55]OFDSenderStorePacket 165814 [18:54:55]StoreOFDPacket docnum=165814 [18:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7B D4 07 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0B 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 87 02 00 35 04 06 00 D7 2B 9E B9 D4 84 42 19 8F 75 95 FF 43 0E [18:54:55]CheckFolder [18:54:55]dirname=/storage/ofd_packets [18:54:55]CheckFolder done [18:54:55]ProducePacketName [18:54:55]name=ofd_packets/00165814 [18:54:55]NVStorageSaveData ofd_packets/00165814 [18:54:55]File name is /storage/ofd_packets/00165814 [18:54:55]Write 301 bytes [18:54:55]NVStorageSaveData done [18:54:55]OFDSenderStorePacket done [18:54:55]KKMCreateOFDPacket done [18:54:55]NVStorageSaveData kkm_last_timestamp [18:54:55]File name is /storage/kkm_last_timestamp [18:54:55]Write 4 bytes [18:54:55]NVStorageSaveData done [18:54:55]ExternCall_PrintAddStr [18:54:55]wPrintStart [18:54:55]Write to MH i2c: 01 00 00 2E 12 40 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 2E 12 00 00 00 00 00 FF 0F 55 [18:54:55]RasterBufferAndPrint [18:54:55]line Счет N : (1)220382 [18:54:55]line ИНН: 02508201610067 [18:54:55]line Контрольно-Кассовый Чек [18:54:55]line ПРОДАЖА [18:54:55]line ТРК (МРК, ГНК) : 14 [18:54:55]line Товар: 2710124500 [18:54:55]line Аи-95-К-5 [18:54:55]line 6.740 * 74.20 [18:54:55]line = 500.11 [18:54:55]line НДС 12% НСП 1% [18:54:55]line > о реализуемом товаре [18:54:55]line ИТОГО: 500.11 [18:54:55]line НСП 1% : 4.43 [18:54:55]line НДС 12% : 53.11 [18:54:55]line Наличными: 0.00 [18:54:55]line Безнал.: 500.11 [18:54:55]line Место: АЗС № 161 "Партнер Нефть" [18:54:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:54:55]line СНО: Общий режим [18:54:55]line Чек 296 20.10.2024 18:55 [18:54:55]line Смена: 534 ФФД: 1.0 [18:54:55]line ЗНМ: 0300000104 [18:54:55]line РНМ: 0000000000091764 [18:54:55]line Версия ККМ: 001 [18:54:55]line Платежная система: O! деньги [18:54:55]line ФМ: 0000000000871759 [18:54:55]line ФД: 165814 [18:54:55]line ФПД: 236582346544260 [18:54:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165814&fm=236582346544260&tin=02508201610067®Number=0000000000091764&sum=50011 [18:54:55]OFD Sender: Processing packet 165814 [packets to send 48, broken 47] [18:54:55]ProducePacketName [18:54:55]name=ofd_packets/00165814 [18:54:55]OFD Sender: To server: pG, [18:54:55]CommunicateWithHost lk.salyk.kg:30040 [18:54:55]ConnectInit lk.salyk.kg [18:54:55]written 0, free lines is 4095 [18:54:55]Connected sock=9 [18:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7B D4 07 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0B 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 87 02 00 35 04 06 00 D7 2B 9E B9 D4 84 42 19 8F 75 95 FF 43 0E [18:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D4 96 47 00 9B 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 87 02 00 F4 03 04 00 7C F8 14 67 B6 04 01 00 00 BB E4 FA 49 E3 DD 5E CC [18:54:55]CommunicateWithHost err = 0 [18:54:55]CheckOFDResponse [18:54:55]1017 (14) - 77093643461234 [18:54:55]1041 (16) - 0000000000871759 [18:54:55]1040 (4) - 165814 [18:54:55]1012 (4) - 20.10.2024 12:33 [18:54:55]1206 (1) - 0 [18:54:55]OFD Sender: Remove packet 165814 [18:54:55]ProducePacketName [18:54:55]name=ofd_packets/00165814 [18:54:55]NVStorageDeleteData [18:54:55]Write to MH i2c: 01 00 00 58 12 6A [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 58 12 00 00 00 00 00 D8 0C 55 [18:54:55]RasterBufferAndPrint [18:54:55]line [18:54:55]line [18:54:55]line [18:54:55]line [18:54:55]line [18:54:55]written 0, free lines is 3296 [18:54:56]MH_Cut [18:54:56]Write to MH i2c: D1 01 00 5F 12 01 43 [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: D1 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: D1 01 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: D1 01 00 5F 12 00 42 [18:54:56]Write to MH i2c: 01 00 00 60 12 72 [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]OFD Sender: No OFD packet to send [18:54:56]*** Cut start [18:54:56]*** Partial cut [18:54:56]*** CUTSNS_PIN = 1 [18:54:56]*** CUTSNS_PIN = 0 [18:54:57]*** Brake cut motor [18:54:57]Read from MH i2c: 01 [18:54:57]MH_I2C_Read... [18:54:57]*** Stop cut motor [18:54:57]*** Cut end [18:54:57]Read from MH i2c: 01 07 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: 01 07 00 60 12 00 00 00 00 00 FF 0F 87 [18:54:57]process_action close_receipt done [18:54:57]requested_data is exist [18:54:57]produce_requested_data [18:54:57]requested_item fm.sn is exist - process it [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 11 00 00 [18:54:57]Write to MH i2c: E2 08 00 61 12 80 11 00 00 00 00 00 00 ED [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 17 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 17 00 61 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [18:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:54:57]wFMCommunicate OK [18:54:57]requested_item fd.num is exist - process it [18:54:57]SAM_PROTO_GetFieldsCounters [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 13 00 00 [18:54:57]Write to MH i2c: E2 08 00 62 12 80 13 00 00 00 00 00 00 F0 [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 62 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 62 00 62 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 87 02 00 0E 04 04 00 16 02 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 EA [18:54:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 87 02 00 0E 04 04 00 16 02 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 [18:54:57]wFMCommunicate OK [18:54:57]SAM_PROTO_GetFieldsCounters done [18:54:57]requested_item shift.num is exist - process it [18:54:57]requested_item shift.opened is exist - process it [18:54:57]req_shift_opened [18:54:57]FM_GetShiftState [18:54:57]SAM_PROTO_GetShiftState [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 13 01 00 [18:54:57]Write to MH i2c: E2 08 00 63 12 80 13 01 00 00 00 00 00 F2 [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 0E 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 0E 00 63 12 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3A [18:54:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:54:57]wFMCommunicate OK [18:54:57]SAM_PROTO_GetShiftState done [18:54:57]FM_GetShiftState done [18:54:57]req_shift_opened done [18:54:57]requested_item shift.open_date is exist - process it [18:54:57]req_shift_open_date [18:54:57]req_shift_open_date done [18:54:57]produce_requested_data done [18:54:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165814,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:54:57]process_action_free close_receipt [18:54:57]json_value_free [18:54:57]json_value_free done [18:54:57]process_json_proto returns [18:54:57]Send response to host [18:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165814,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:54:57]free response buf [18:54:57]execute_script done [18:54:57]execute_script returns [18:54:57]free content buf [18:54:57]Sock 10.Close socket [18:54:57]Sock 10.Thread stoped [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:55:59]accept exits with 7 [18:55:59]New connection [18:55:59]New thread 3066920292 created [18:55:59]Thread 3066776932 joined [18:55:59]Waiting for new connection... [18:55:59] Sock 7.Parse request [18:55:59]Sock 7.Check first char [18:55:59]Sock 7.First char is OK [18:55:59]request: POST /json_proto HTTP/1.0 [18:55:59]Method: POST [18:55:59]URL: /json_proto [18:55:59]Method is POST - this is cgi request [18:55:59]url: /json_proto [18:55:59]query_string will be loaded in cgi processing [18:55:59]execute_cgi json_proto POST (null) [18:55:59]execute_cgi path=json_proto method=POST [18:55:59]POST find Content-Length [18:55:59]Host: 172.17.53.195:8080 [18:55:59]Content-Length: 677 [18:55:59]Content-Type: application/json [18:55:59] [18:55:59]POST finish read [18:55:59]Found Content-Length = 677 [18:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [18:55:59]execute_script... [18:55: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)220383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "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" ] } } [18:55:59]POST & json_proto [18:55:59]process_json_proto [18:55:59]json parsed OK: [18:55:59]protocol is kg_v1.0 [18:55:59]action value=close_receipt [18:55:59]process_action close_receipt [18:55:59]cmd_close_receipt [18:55:59]MH_GetDate [18:55:59]Write to MH i2c: F0 00 00 64 12 65 [18:55:59]Write i2c OK [18:55:59]MH_I2C_Read... [18:55:59]Read from MH i2c: F0 [18:55:59]MH_I2C_Read... [18:55:59]Read from MH i2c: F0 09 00 [18:55:59]MH_I2C_Read... [18:55:59]Read from MH i2c: F0 09 00 64 12 00 4D 52 15 67 21 48 4A 65 A1 [18:55:59]GetLastDocTimeStamp 1729450507 [18:55:59]current date 1729450573 [18:55:59]FM_GetShiftState [18:55:59]SAM_PROTO_GetShiftState [18:55:59]wFMCommunicate request_size=4 [18:55:59]MH_SAM_APDU [18:55:59]CAPDU: 80 13 01 00 [18:55:59]Write to MH i2c: E2 08 00 65 12 80 13 01 00 00 00 00 00 F4 [18:55:59]Write i2c OK [18:55:59]MH_I2C_Read... [18:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:59]Read from MH i2c: E2 [18:55:59]MH_I2C_Read... [18:55:59]Read from MH i2c: E2 0E 00 [18:55:59]MH_I2C_Read... [18:55:59]Read from MH i2c: E2 0E 00 65 12 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3C [18:55:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:55:59]wFMCommunicate OK [18:55:59]SAM_PROTO_GetShiftState done [18:55:59]FM_GetShiftState done [18:55:59]opened in 1729384561 [18:55:59]opened+sec_in_day 1729470961 [18:55:59]quantity*price = 25020 [18:55:59]sum+1 = 25022 [18:55:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 297 20.10.2024 18:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165815 ФПД: 281105807044567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185613&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165815&fm=281105807044567&tin=02508201610067®Number=0000000000091764&sum=25000 [18:56:01]StoreToDocumentArchive [18:56:01]shift 534 fd 165815 [18:56:01]save to /storage/0534/doc_00165815 [18:56:01]save last doc name /storage/0534/doc_00165815 to /storage/kkm_last_doc_name [18:56:01]save OK [18:56:01]Clear old archive folders... [18:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:01]tlvbuf is 0190BA50 [18:56:01]SAM_PROTO_ClearQueue [18:56:01]wFMCommunicate request_size=4 [18:56:01]MH_SAM_APDU [18:56:01]CAPDU: 80 09 00 00 [18:56:01]Write to MH i2c: E2 08 00 72 12 80 09 00 00 00 00 00 00 F6 [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 72 12 00 90 00 F8 [18:56:01]RAPDU: 90 00 [18:56:01]wFMCommunicate OK [18:56:01]SAM_PROTO_ClearQueue done [18:56:01]KKMCreateOFDPacket [18:56:01]OFDProtocolAddRootSTLVToBuf [18:56:01]FM_MakeSignedData [18:56:01]FM_MakeSignedData [18:56:01]SAM_PROTO_SignData [18:56:01]wFMCommunicate request_size=4 [18:56:01]MH_SAM_APDU [18:56:01]CAPDU: 80 0D 01 02 [18:56:01]Write to MH i2c: E2 08 00 73 12 80 0D 01 02 00 00 00 00 FE [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:01]Read from MH i2c: E2 03 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 73 12 00 90 00 F9 [18:56:01]RAPDU: 90 00 [18:56:01]wFMCommunicate OK [18:56:01]wFMCommunicate request_size=255 [18:56:01]MH_SAM_APDU [18:56: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 29 01 00 00 F4 03 04 00 4D 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 87 02 00 35 04 06 00 FF [18:56:01]Write to MH i2c: E2 02 01 74 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 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 29 01 00 00 F4 03 04 00 4D 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 87 02 00 35 04 06 00 FF 00 00 09 [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 74 12 00 90 00 FA [18:56:01]RAPDU: 90 00 [18:56:01]wFMCommunicate OK [18:56:01]wFMCommunicate request_size=10 [18:56:01]MH_SAM_APDU [18:56:01]CAPDU: 80 0D 02 02 05 AA 0B C5 EF D7 [18:56:01]Write to MH i2c: E2 0D 00 75 12 80 0D 02 02 05 00 AA 0B C5 EF D7 00 00 4B [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:01]OFD Sender: No OFD packet to send [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [18:56:01]RAPDU: 90 00 [18:56:01]wFMCommunicate OK [18:56:01]wFMCommunicate request_size=4 [18:56:01]MH_SAM_APDU [18:56:01]CAPDU: 80 0D 03 02 [18:56:01]Write to MH i2c: E2 08 00 76 12 80 0D 03 02 00 00 00 00 03 [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 0B 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 0B 00 76 12 00 74 5B 66 92 93 90 98 4C 90 00 D2 [18:56:01]RAPDU: 74 5B 66 92 93 90 98 4C 90 00 [18:56:01]wFMCommunicate OK [18:56:01]SAM_PROTO_SignData done [18:56:01]FM_MakeSignedData done [18:56:01]CreateOFDProtocolMessage [18:56:01]wFMCommunicate request_size=4 [18:56:01]MH_SAM_APDU [18:56:01]CAPDU: 80 11 00 00 [18:56:01]Write to MH i2c: E2 08 00 77 12 80 11 00 00 00 00 00 00 03 [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 17 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 17 00 77 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [18:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:56:01]wFMCommunicate OK [18:56:01]CreateOFDProtocolMessage done [18:56:01]OFDSenderStorePacket 165815 [18:56:01]StoreOFDPacket docnum=165815 [18:56:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DF 1C 07 01 70 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0E 00 00 00 00 00 37 04 06 00 22 1A 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 29 01 00 00 F4 03 04 00 4D 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 87 02 00 35 04 06 00 FF AA 0B C5 EF D7 74 5B 66 92 93 90 98 4C [18:56:01]CheckFolder [18:56:01]dirname=/storage/ofd_packets [18:56:01]CheckFolder done [18:56:01]ProducePacketName [18:56:01]name=ofd_packets/00165815 [18:56:01]NVStorageSaveData ofd_packets/00165815 [18:56:01]File name is /storage/ofd_packets/00165815 [18:56:01]Write 301 bytes [18:56:01]NVStorageSaveData done [18:56:01]OFDSenderStorePacket done [18:56:01]KKMCreateOFDPacket done [18:56:01]NVStorageSaveData kkm_last_timestamp [18:56:01]File name is /storage/kkm_last_timestamp [18:56:01]Write 4 bytes [18:56:01]NVStorageSaveData done [18:56:01]ExternCall_PrintAddStr [18:56:01]wPrintStart [18:56:01]Write to MH i2c: 01 00 00 78 12 8A [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: 01 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: 01 07 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: 01 07 00 78 12 00 00 00 00 00 FF 0F 9F [18:56:01]RasterBufferAndPrint [18:56:01]line Счет N : (1)220383 [18:56:01]line ИНН: 02508201610067 [18:56:01]line Контрольно-Кассовый Чек [18:56:01]line ПРОДАЖА [18:56:01]line ТРК (МРК, ГНК) : 23 [18:56:01]line Товар: 2710124130 [18:56:01]line Аи-92-К-5 [18:56:01]line 3.740 * 66.90 [18:56:01]line = 250.21 [18:56:01]line НДС 12% НСП 1% [18:56:01]line > о реализуемом товаре [18:56:01]line ОКРУГЛЕНИЕ: -0.21 [18:56:01]line ИТОГО: 250.00 [18:56:01]line Внесено: 250.00 [18:56:01]line СДАЧА: 0.00 [18:56:01]line НСП 1% : 2.21 [18:56:01]line НДС 12% : 26.57 [18:56:01]line Наличными: 250.00 [18:56:01]line Безнал.: 0.00 [18:56:01]line Место: АЗС № 161 "Партнер Нефть" [18:56:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:56:01]line СНО: Общий режим [18:56:01]line Чек 297 20.10.2024 18:56 [18:56:01]line Смена: 534 ФФД: 1.0 [18:56:01]line ЗНМ: 0300000104 [18:56:01]line РНМ: 0000000000091764 [18:56:01]line Версия ККМ: 001 [18:56:01]line ФМ: 0000000000871759 [18:56:01]line ФД: 165815 [18:56:01]line ФПД: 281105807044567 [18:56:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185613&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165815&fm=281105807044567&tin=02508201610067®Number=0000000000091764&sum=25000 [18:56:01]OFD Sender: Processing packet 165815 [packets to send 48, broken 47] [18:56:01]ProducePacketName [18:56:01]name=ofd_packets/00165815 [18:56:01]OFD Sender: To server: pG, [18:56:01]CommunicateWithHost lk.salyk.kg:30040 [18:56:01]ConnectInit lk.salyk.kg [18:56:01]written 0, free lines is 4095 [18:56:01]Connected sock=10 [18:56:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DF 1C 07 01 70 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0E 00 00 00 00 00 37 04 06 00 22 1A 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 29 01 00 00 F4 03 04 00 4D 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 87 02 00 35 04 06 00 FF AA 0B C5 EF D7 74 5B 66 92 93 90 98 4C [18:56:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C3 E8 47 00 41 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 31 37 35 39 10 04 04 00 B7 87 02 00 F4 03 04 00 BE F8 14 67 B6 04 01 00 00 CA D6 68 96 C8 44 C6 FC [18:56:02]CommunicateWithHost err = 0 [18:56:02]CheckOFDResponse [18:56:02]1017 (14) - 77093643461234 [18:56:02]1041 (16) - 0000000000871759 [18:56:02]1040 (4) - 165815 [18:56:02]1012 (4) - 20.10.2024 12:34 [18:56:02]1206 (1) - 0 [18:56:02]OFD Sender: Remove packet 165815 [18:56:02]ProducePacketName [18:56:02]name=ofd_packets/00165815 [18:56:02]NVStorageDeleteData [18:56:02]Write to MH i2c: 01 00 00 A3 12 B5 [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: 01 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: 01 07 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: 01 07 00 A3 12 00 00 00 00 00 C2 0C 8A [18:56:02]RasterBufferAndPrint [18:56:02]line [18:56:02]line [18:56:02]line [18:56:02]line [18:56:02]line [18:56:02]written 0, free lines is 3271 [18:56:02]MH_Cut [18:56:02]Write to MH i2c: D1 01 00 AA 12 01 8E [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: D1 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: D1 01 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: D1 01 00 AA 12 00 8D [18:56:02]Write to MH i2c: 01 00 00 AB 12 BD [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]OFD Sender: No OFD packet to send [18:56:03]*** Cut start [18:56:03]*** Partial cut [18:56:03]*** CUTSNS_PIN = 1 [18:56:03]*** CUTSNS_PIN = 0 [18:56:03]*** Brake cut motor [18:56:03]Read from MH i2c: 01 [18:56:03]MH_I2C_Read... [18:56:03]*** Stop cut motor [18:56:03]*** Cut end [18:56:03]Read from MH i2c: 01 07 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 07 00 AB 12 00 00 00 00 00 FF 0F D2 [18:56:03]process_action close_receipt done [18:56:03]requested_data is exist [18:56:03]produce_requested_data [18:56:03]requested_item fm.sn is exist - process it [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 11 00 00 [18:56:03]Write to MH i2c: E2 08 00 AC 12 80 11 00 00 00 00 00 00 38 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 17 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 17 00 AC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 90 [18:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:56:03]wFMCommunicate OK [18:56:03]requested_item fd.num is exist - process it [18:56:03]SAM_PROTO_GetFieldsCounters [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 13 00 00 [18:56:03]Write to MH i2c: E2 08 00 AD 12 80 13 00 00 00 00 00 00 3B [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 62 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 62 00 AD 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 87 02 00 0E 04 04 00 16 02 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 39 [18:56: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 87 02 00 0E 04 04 00 16 02 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 [18:56:03]wFMCommunicate OK [18:56:03]SAM_PROTO_GetFieldsCounters done [18:56:03]requested_item shift.num is exist - process it [18:56:03]requested_item shift.opened is exist - process it [18:56:03]req_shift_opened [18:56:03]FM_GetShiftState [18:56:03]SAM_PROTO_GetShiftState [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 13 01 00 [18:56:03]Write to MH i2c: E2 08 00 AE 12 80 13 01 00 00 00 00 00 3D [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0E 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0E 00 AE 12 00 09 00 01 71 50 14 67 00 00 00 00 90 00 85 [18:56:04]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:56:04]wFMCommunicate OK [18:56:04]SAM_PROTO_GetShiftState done [18:56:04]FM_GetShiftState done [18:56:04]req_shift_opened done [18:56:04]requested_item shift.open_date is exist - process it [18:56:04]req_shift_open_date [18:56:04]req_shift_open_date done [18:56:04]produce_requested_data done [18:56:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165815,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:56:04]process_action_free close_receipt [18:56:04]json_value_free [18:56:04]json_value_free done [18:56:04]process_json_proto returns [18:56:04]Send response to host [18:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165815,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:56:04]free response buf [18:56:04]execute_script done [18:56:04]execute_script returns [18:56:04]free content buf [18:56:04]Sock 7.Close socket [18:56:04]Sock 7.Thread stoped [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:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]accept exits with 9 [18:57:37]New connection [18:57:37]New thread 3066776932 created [18:57:37]Thread 3066920292 joined [18:57:37]Waiting for new connection... [18:57:37] Sock 9.Parse request [18:57:37]Sock 9.Check first char [18:57:37]Sock 9.First char is OK [18:57:37]request: POST /json_proto HTTP/1.0 [18:57:37]Method: POST [18:57:37]URL: /json_proto [18:57:37]Method is POST - this is cgi request [18:57:37]url: /json_proto [18:57:37]query_string will be loaded in cgi processing [18:57:37]execute_cgi json_proto POST (null) [18:57:37]execute_cgi path=json_proto method=POST [18:57:37]POST find Content-Length [18:57:37]Host: 172.17.53.195:8080 [18:57:37]Content-Length: 682 [18:57:37]Content-Type: application/json [18:57:37] [18:57:37]POST finish read [18:57:37]Found Content-Length = 682 [18:57:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "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" ] } } [18:57:37]execute_script... [18:57: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)220384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "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" ] } } [18:57:37]POST & json_proto [18:57:37]process_json_proto [18:57:37]json parsed OK: [18:57:37]protocol is kg_v1.0 [18:57:37]action value=close_receipt [18:57:37]process_action close_receipt [18:57:37]cmd_close_receipt [18:57:37]MH_GetDate [18:57:37]Write to MH i2c: F0 00 00 AF 12 B0 [18:57:37]Write i2c OK [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: F0 [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: F0 09 00 [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: F0 09 00 AF 12 00 AF 52 15 67 21 48 4A 65 4E [18:57:37]GetLastDocTimeStamp 1729450573 [18:57:37]current date 1729450671 [18:57:37]FM_GetShiftState [18:57:37]SAM_PROTO_GetShiftState [18:57:37]wFMCommunicate request_size=4 [18:57:37]MH_SAM_APDU [18:57:37]CAPDU: 80 13 01 00 [18:57:37]Write to MH i2c: E2 08 00 B0 12 80 13 01 00 00 00 00 00 3F [18:57:37]Write i2c OK [18:57:37]MH_I2C_Read... [18:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:37]Read from MH i2c: E2 [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: E2 0E 00 [18:57:37]MH_I2C_Read... [18:57:37]Read from MH i2c: E2 0E 00 B0 12 00 09 00 01 71 50 14 67 00 00 00 00 90 00 87 [18:57:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:57:37]wFMCommunicate OK [18:57:37]SAM_PROTO_GetShiftState done [18:57:37]FM_GetShiftState done [18:57:37]opened in 1729384561 [18:57:37]opened+sec_in_day 1729470961 [18:57:37]quantity*price = 120018 [18:57:37]sum+1 = 120020 [18:57:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 298 20.10.2024 18:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165816 ФПД: 258899078183241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165816&fm=258899078183241&tin=02508201610067®Number=0000000000091764&sum=120000 [18:57:38]StoreToDocumentArchive [18:57:38]shift 534 fd 165816 [18:57:38]save to /storage/0534/doc_00165816 [18:57:38]save last doc name /storage/0534/doc_00165816 to /storage/kkm_last_doc_name [18:57:38]save OK [18:57:38]Clear old archive folders... [18:57:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:38]tlvbuf is 01971510 [18:57:38]SAM_PROTO_ClearQueue [18:57:38]wFMCommunicate request_size=4 [18:57:38]MH_SAM_APDU [18:57:38]CAPDU: 80 09 00 00 [18:57:38]Write to MH i2c: E2 08 00 BD 12 80 09 00 00 00 00 00 00 41 [18:57:38]Write i2c OK [18:57:38]MH_I2C_Read... [18:57:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:38]Read from MH i2c: E2 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 03 00 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 03 00 BD 12 00 90 00 43 [18:57:38]RAPDU: 90 00 [18:57:38]wFMCommunicate OK [18:57:38]SAM_PROTO_ClearQueue done [18:57:38]KKMCreateOFDPacket [18:57:38]OFDProtocolAddRootSTLVToBuf [18:57:38]FM_MakeSignedData [18:57:38]FM_MakeSignedData [18:57:38]SAM_PROTO_SignData [18:57:38]wFMCommunicate request_size=4 [18:57:38]MH_SAM_APDU [18:57:38]CAPDU: 80 0D 01 02 [18:57:38]Write to MH i2c: E2 08 00 BE 12 80 0D 01 02 00 00 00 00 49 [18:57:38]Write i2c OK [18:57:38]MH_I2C_Read... [18:57:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:38]Read from MH i2c: E2 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 03 00 [18:57:38]MH_I2C_Read... [18:57:38]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [18:57:38]RAPDU: 90 00 [18:57:38]wFMCommunicate OK [18:57:38]wFMCommunicate request_size=255 [18:57:38]MH_SAM_APDU [18:57: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 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 2A 01 00 00 F4 03 04 00 AF 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 87 02 00 35 04 06 00 EB [18:57:38]Write to MH i2c: E2 02 01 BF 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 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 2A 01 00 00 F4 03 04 00 AF 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 87 02 00 35 04 06 00 EB 00 00 D2 [18:57:38]Write i2c OK [18:57:38]MH_I2C_Read... [18:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:39]Read from MH i2c: E2 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 03 00 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [18:57:39]RAPDU: 90 00 [18:57:39]wFMCommunicate OK [18:57:39]wFMCommunicate request_size=10 [18:57:39]MH_SAM_APDU [18:57:39]CAPDU: 80 0D 02 02 05 77 A3 96 79 49 [18:57:39]Write to MH i2c: E2 0D 00 C0 12 80 0D 02 02 05 00 77 A3 96 79 49 00 00 C8 [18:57:39]Write i2c OK [18:57:39]MH_I2C_Read... [18:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:39]Read from MH i2c: E2 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 03 00 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [18:57:39]RAPDU: 90 00 [18:57:39]wFMCommunicate OK [18:57:39]wFMCommunicate request_size=4 [18:57:39]MH_SAM_APDU [18:57:39]CAPDU: 80 0D 03 02 [18:57:39]Write to MH i2c: E2 08 00 C1 12 80 0D 03 02 00 00 00 00 4E [18:57:39]Write i2c OK [18:57:39]MH_I2C_Read... [18:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:39]Read from MH i2c: E2 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 0B 00 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 0B 00 C1 12 00 53 37 A0 64 73 76 DF A5 90 00 4A [18:57:39]RAPDU: 53 37 A0 64 73 76 DF A5 90 00 [18:57:39]wFMCommunicate OK [18:57:39]SAM_PROTO_SignData done [18:57:39]FM_MakeSignedData done [18:57:39]CreateOFDProtocolMessage [18:57:39]wFMCommunicate request_size=4 [18:57:39]MH_SAM_APDU [18:57:39]CAPDU: 80 11 00 00 [18:57:39]Write to MH i2c: E2 08 00 C2 12 80 11 00 00 00 00 00 00 4E [18:57:39]Write i2c OK [18:57:39]MH_I2C_Read... [18:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:39]Read from MH i2c: E2 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 17 00 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 17 00 C2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [18:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:57:39]wFMCommunicate OK [18:57:39]CreateOFDProtocolMessage done [18:57:39]OFDSenderStorePacket 165816 [18:57:39]StoreOFDPacket docnum=165816 [18:57:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 64 68 07 01 B1 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 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 2A 01 00 00 F4 03 04 00 AF 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 87 02 00 35 04 06 00 EB 77 A3 96 79 49 53 37 A0 64 73 76 DF A5 [18:57:39]CheckFolder [18:57:39]dirname=/storage/ofd_packets [18:57:39]CheckFolder done [18:57:39]ProducePacketName [18:57:39]name=ofd_packets/00165816 [18:57:39]NVStorageSaveData ofd_packets/00165816 [18:57:39]File name is /storage/ofd_packets/00165816 [18:57:39]Write 301 bytes [18:57:39]NVStorageSaveData done [18:57:39]OFDSenderStorePacket done [18:57:39]KKMCreateOFDPacket done [18:57:39]NVStorageSaveData kkm_last_timestamp [18:57:39]File name is /storage/kkm_last_timestamp [18:57:39]Write 4 bytes [18:57:39]NVStorageSaveData done [18:57:39]ExternCall_PrintAddStr [18:57:39]wPrintStart [18:57:39]Write to MH i2c: 01 00 00 C3 12 D5 [18:57:39]Write i2c OK [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: 01 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: 01 07 00 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: 01 07 00 C3 12 00 00 00 00 00 FF 0F EA [18:57:39]RasterBufferAndPrint [18:57:39]line Счет N : (1)220384 [18:57:39]line ИНН: 02508201610067 [18:57:39]line Контрольно-Кассовый Чек [18:57:39]line ПРОДАЖА [18:57:39]line ТРК (МРК, ГНК) : 43 [18:57:39]line Товар: 2710124130 [18:57:39]line Аи-92-К-5 [18:57:39]line 17.940 * 66.90 [18:57:39]line = 1200.19 [18:57:39]line НДС 12% НСП 1% [18:57:39]line > о реализуемом товаре [18:57:39]line ОКРУГЛЕНИЕ: -0.19 [18:57:39]line ИТОГО: 1200.00 [18:57:39]line Внесено: 1200.00 [18:57:39]line СДАЧА: 0.00 [18:57:39]line НСП 1% : 10.62 [18:57:39]line НДС 12% : 127.45 [18:57:39]line Наличными: 1200.00 [18:57:39]line Безнал.: 0.00 [18:57:39]line Место: АЗС № 161 "Партнер Нефть" [18:57:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:57:39]line СНО: Общий режим [18:57:39]line Чек 298 20.10.2024 18:57 [18:57:39]line Смена: 534 ФФД: 1.0 [18:57:39]line ЗНМ: 0300000104 [18:57:39]line РНМ: 0000000000091764 [18:57:39]line Версия ККМ: 001 [18:57:39]line ФМ: 0000000000871759 [18:57:39]line ФД: 165816 [18:57:39]line ФПД: 258899078183241 [18:57:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165816&fm=258899078183241&tin=02508201610067®Number=0000000000091764&sum=120000 [18:57:39]OFD Sender: Processing packet 165816 [packets to send 48, broken 47] [18:57:39]ProducePacketName [18:57:39]name=ofd_packets/00165816 [18:57:39]OFD Sender: To server: pG, [18:57:39]CommunicateWithHost lk.salyk.kg:30040 [18:57:39]ConnectInit lk.salyk.kg [18:57:39]written 0, free lines is 4095 [18:57:39]Connected sock=10 [18:57:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 64 68 07 01 B1 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 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 2A 01 00 00 F4 03 04 00 AF 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 87 02 00 35 04 06 00 EB 77 A3 96 79 49 53 37 A0 64 73 76 DF A5 [18:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 32 62 47 00 B1 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 87 02 00 F4 03 04 00 20 F9 14 67 B6 04 01 00 00 C7 57 7D A3 04 DA 79 88 [18:57:39]CommunicateWithHost err = 0 [18:57:39]CheckOFDResponse [18:57:39]1017 (14) - 77093643461234 [18:57:39]1041 (16) - 0000000000871759 [18:57:39]1040 (4) - 165816 [18:57:39]1012 (4) - 20.10.2024 12:35 [18:57:39]1206 (1) - 0 [18:57:39]OFD Sender: Remove packet 165816 [18:57:39]ProducePacketName [18:57:39]name=ofd_packets/00165816 [18:57:39]NVStorageDeleteData [18:57:39]Write to MH i2c: 01 00 00 EE 12 00 [18:57:39]Write i2c OK [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: 01 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: 01 07 00 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: 01 07 00 EE 12 00 00 00 00 00 C5 0C D8 [18:57:39]RasterBufferAndPrint [18:57:39]line [18:57:39]line [18:57:39]line [18:57:39]line [18:57:39]line [18:57:39]written 0, free lines is 3276 [18:57:40]MH_Cut [18:57:40]Write to MH i2c: D1 01 00 F5 12 01 D9 [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: D1 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: D1 01 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: D1 01 00 F5 12 00 D8 [18:57:40]Write to MH i2c: 01 00 00 F6 12 08 [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]OFD Sender: No OFD packet to send [18:57:40]*** Cut start [18:57:40]*** Partial cut [18:57:40]*** CUTSNS_PIN = 1 [18:57:40]*** CUTSNS_PIN = 0 [18:57:41]*** Brake cut motor [18:57:41]Read from MH i2c: 01 [18:57:41]MH_I2C_Read... [18:57:41]*** Stop cut motor [18:57:41]*** Cut end [18:57:41]Read from MH i2c: 01 07 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: 01 07 00 F6 12 00 00 00 00 00 FF 0F 1D [18:57:41]process_action close_receipt done [18:57:41]requested_data is exist [18:57:41]produce_requested_data [18:57:41]requested_item fm.sn is exist - process it [18:57:41]wFMCommunicate request_size=4 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 11 00 00 [18:57:41]Write to MH i2c: E2 08 00 F7 12 80 11 00 00 00 00 00 00 83 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 17 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 17 00 F7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [18:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:57:41]wFMCommunicate OK [18:57:41]requested_item fd.num is exist - process it [18:57:41]SAM_PROTO_GetFieldsCounters [18:57:41]wFMCommunicate request_size=4 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 13 00 00 [18:57:41]Write to MH i2c: E2 08 00 F8 12 80 13 00 00 00 00 00 00 86 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 62 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 62 00 F8 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 87 02 00 0E 04 04 00 16 02 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 88 [18:57: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 87 02 00 0E 04 04 00 16 02 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 [18:57:41]wFMCommunicate OK [18:57:41]SAM_PROTO_GetFieldsCounters done [18:57:41]requested_item shift.num is exist - process it [18:57:41]requested_item shift.opened is exist - process it [18:57:41]req_shift_opened [18:57:41]FM_GetShiftState [18:57:41]SAM_PROTO_GetShiftState [18:57:41]wFMCommunicate request_size=4 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 13 01 00 [18:57:41]Write to MH i2c: E2 08 00 F9 12 80 13 01 00 00 00 00 00 88 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 0E 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 0E 00 F9 12 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D0 [18:57:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:57:41]wFMCommunicate OK [18:57:41]SAM_PROTO_GetShiftState done [18:57:41]FM_GetShiftState done [18:57:41]req_shift_opened done [18:57:41]requested_item shift.open_date is exist - process it [18:57:41]req_shift_open_date [18:57:41]req_shift_open_date done [18:57:41]produce_requested_data done [18:57:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165816,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:57:41]process_action_free close_receipt [18:57:41]json_value_free [18:57:41]json_value_free done [18:57:41]process_json_proto returns [18:57:41]Send response to host [18:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165816,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:57:41]free response buf [18:57:41]execute_script done [18:57:41]execute_script returns [18:57:41]free content buf [18:57:41]Sock 9.Close socket [18:57:41]Sock 9.Thread stoped [18:57:45]OFD Sender: No OFD packet to send [18:57:46]accept exits with 7 [18:57:46]New connection [18:57:46]New thread 3066920292 created [18:57:46]Thread 3066776932 joined [18:57:46]Waiting for new connection... [18:57:46] Sock 7.Parse request [18:57:46]Sock 7.Check first char [18:57:46]Sock 7.First char is OK [18:57:46]request: POST /json_proto HTTP/1.0 [18:57:46]Method: POST [18:57:46]URL: /json_proto [18:57:46]Method is POST - this is cgi request [18:57:46]url: /json_proto [18:57:46]query_string will be loaded in cgi processing [18:57:46]execute_cgi json_proto POST (null) [18:57:46]execute_cgi path=json_proto method=POST [18:57:46]POST find Content-Length [18:57:46]Host: 172.17.53.195:8080 [18:57:46]Content-Length: 677 [18:57:46]Content-Type: application/json [18:57:46] [18:57:46]POST finish read [18:57:46]Found Content-Length = 677 [18:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:46]execute_script... [18:57: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)220385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:46]POST & json_proto [18:57:46]process_json_proto [18:57:46]json parsed OK: [18:57:46]protocol is kg_v1.0 [18:57:46]action value=close_receipt [18:57:46]process_action close_receipt [18:57:46]cmd_close_receipt [18:57:46]MH_GetDate [18:57:46]Write to MH i2c: F0 00 00 FA 12 FB [18:57:46]Write i2c OK [18:57:46]MH_I2C_Read... [18:57:46]Read from MH i2c: F0 [18:57:46]MH_I2C_Read... [18:57:46]Read from MH i2c: F0 09 00 [18:57:46]MH_I2C_Read... [18:57:46]Read from MH i2c: F0 09 00 FA 12 00 B7 52 15 67 21 48 4A 65 A1 [18:57:46]GetLastDocTimeStamp 1729450671 [18:57:46]current date 1729450679 [18:57:46]FM_GetShiftState [18:57:46]SAM_PROTO_GetShiftState [18:57:46]wFMCommunicate request_size=4 [18:57:46]MH_SAM_APDU [18:57:46]CAPDU: 80 13 01 00 [18:57:46]Write to MH i2c: E2 08 00 FB 12 80 13 01 00 00 00 00 00 8A [18:57:46]Write i2c OK [18:57:46]MH_I2C_Read... [18:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:46]Read from MH i2c: E2 [18:57:46]MH_I2C_Read... [18:57:46]Read from MH i2c: E2 0E 00 [18:57:46]MH_I2C_Read... [18:57:46]Read from MH i2c: E2 0E 00 FB 12 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D2 [18:57:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:57:46]wFMCommunicate OK [18:57:46]SAM_PROTO_GetShiftState done [18:57:46]FM_GetShiftState done [18:57:46]opened in 1729384561 [18:57:46]opened+sec_in_day 1729470961 [18:57:46]quantity*price = 28031 [18:57:46]sum+1 = 28032 [18:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 299 20.10.2024 18:58 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165817 ФПД: 173409422406871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185800&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165817&fm=173409422406871&tin=02508201610067®Number=0000000000091764&sum=28000 [18:57:47]StoreToDocumentArchive [18:57:47]shift 534 fd 165817 [18:57:47]save to /storage/0534/doc_00165817 [18:57:47]save last doc name /storage/0534/doc_00165817 to /storage/kkm_last_doc_name [18:57:47]save OK [18:57:47]Clear old archive folders... [18:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:47]tlvbuf is 016C7040 [18:57:47]SAM_PROTO_ClearQueue [18:57:47]wFMCommunicate request_size=4 [18:57:47]MH_SAM_APDU [18:57:47]CAPDU: 80 09 00 00 [18:57:47]Write to MH i2c: E2 08 00 08 13 80 09 00 00 00 00 00 00 8D [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:47]Read from MH i2c: E2 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 03 00 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 03 00 08 13 00 90 00 8F [18:57:47]RAPDU: 90 00 [18:57:47]wFMCommunicate OK [18:57:47]SAM_PROTO_ClearQueue done [18:57:47]KKMCreateOFDPacket [18:57:47]OFDProtocolAddRootSTLVToBuf [18:57:47]FM_MakeSignedData [18:57:47]FM_MakeSignedData [18:57:47]SAM_PROTO_SignData [18:57:47]wFMCommunicate request_size=4 [18:57:47]MH_SAM_APDU [18:57:47]CAPDU: 80 0D 01 02 [18:57:47]Write to MH i2c: E2 08 00 09 13 80 0D 01 02 00 00 00 00 95 [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:47]Read from MH i2c: E2 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 03 00 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 03 00 09 13 00 90 00 90 [18:57:47]RAPDU: 90 00 [18:57:47]wFMCommunicate OK [18:57:47]wFMCommunicate request_size=255 [18:57:47]MH_SAM_APDU [18:57: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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 B8 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 87 02 00 35 04 06 00 9D [18:57:47]Write to MH i2c: E2 02 01 0A 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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 B8 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 87 02 00 35 04 06 00 9D 00 00 23 [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:47]Read from MH i2c: E2 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 03 00 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [18:57:47]RAPDU: 90 00 [18:57:47]wFMCommunicate OK [18:57:47]wFMCommunicate request_size=10 [18:57:47]MH_SAM_APDU [18:57:47]CAPDU: 80 0D 02 02 05 B7 07 05 F4 D7 [18:57:47]Write to MH i2c: E2 0D 00 0B 13 80 0D 02 02 05 00 B7 07 05 F4 D7 00 00 30 [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:47]Read from MH i2c: E2 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 03 00 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [18:57:47]RAPDU: 90 00 [18:57:47]wFMCommunicate OK [18:57:47]wFMCommunicate request_size=4 [18:57:47]MH_SAM_APDU [18:57:47]CAPDU: 80 0D 03 02 [18:57:47]Write to MH i2c: E2 08 00 0C 13 80 0D 03 02 00 00 00 00 9A [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:47]Read from MH i2c: E2 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 0B 00 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 0B 00 0C 13 00 67 A1 28 EB 11 FA 36 1F 90 00 16 [18:57:47]RAPDU: 67 A1 28 EB 11 FA 36 1F 90 00 [18:57:47]wFMCommunicate OK [18:57:47]SAM_PROTO_SignData done [18:57:47]FM_MakeSignedData done [18:57:47]CreateOFDProtocolMessage [18:57:47]wFMCommunicate request_size=4 [18:57:47]MH_SAM_APDU [18:57:47]CAPDU: 80 11 00 00 [18:57:47]Write to MH i2c: E2 08 00 0D 13 80 11 00 00 00 00 00 00 9A [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:47]Read from MH i2c: E2 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 17 00 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: E2 17 00 0D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [18:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:57:47]wFMCommunicate OK [18:57:47]CreateOFDProtocolMessage done [18:57:47]OFDSenderStorePacket 165817 [18:57:47]StoreOFDPacket docnum=165817 [18:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7C 45 07 01 BB 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 B8 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 87 02 00 35 04 06 00 9D B7 07 05 F4 D7 67 A1 28 EB 11 FA 36 1F [18:57:47]CheckFolder [18:57:47]dirname=/storage/ofd_packets [18:57:47]CheckFolder done [18:57:47]ProducePacketName [18:57:47]name=ofd_packets/00165817 [18:57:47]NVStorageSaveData ofd_packets/00165817 [18:57:47]File name is /storage/ofd_packets/00165817 [18:57:47]Write 301 bytes [18:57:47]NVStorageSaveData done [18:57:47]OFDSenderStorePacket done [18:57:47]KKMCreateOFDPacket done [18:57:47]NVStorageSaveData kkm_last_timestamp [18:57:47]File name is /storage/kkm_last_timestamp [18:57:47]Write 4 bytes [18:57:47]NVStorageSaveData done [18:57:47]ExternCall_PrintAddStr [18:57:47]wPrintStart [18:57:47]Write to MH i2c: 01 00 00 0E 13 21 [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: 01 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: 01 07 00 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: 01 07 00 0E 13 00 00 00 00 00 FF 0F 36 [18:57:47]RasterBufferAndPrint [18:57:47]line Счет N : (1)220385 [18:57:47]line ИНН: 02508201610067 [18:57:47]line Контрольно-Кассовый Чек [18:57:47]line ПРОДАЖА [18:57:47]line ТРК (МРК, ГНК) : 23 [18:57:47]line Товар: 2710124130 [18:57:47]line Аи-92-К-5 [18:57:47]line 4.190 * 66.90 [18:57:47]line = 280.31 [18:57:47]line НДС 12% НСП 1% [18:57:47]line > о реализуемом товаре [18:57:47]line ОКРУГЛЕНИЕ: -0.31 [18:57:47]line ИТОГО: 280.00 [18:57:47]line Внесено: 280.00 [18:57:47]line СДАЧА: 0.00 [18:57:47]line НСП 1% : 2.48 [18:57:47]line НДС 12% : 29.77 [18:57:47]line Наличными: 280.00 [18:57:47]line Безнал.: 0.00 [18:57:47]line Место: АЗС № 161 "Партнер Нефть" [18:57:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:57:47]line СНО: Общий режим [18:57:47]line Чек 299 20.10.2024 18:58 [18:57:47]line Смена: 534 ФФД: 1.0 [18:57:47]line ЗНМ: 0300000104 [18:57:47]line РНМ: 0000000000091764 [18:57:47]line Версия ККМ: 001 [18:57:47]line ФМ: 0000000000871759 [18:57:47]line ФД: 165817 [18:57:47]line ФПД: 173409422406871 [18:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185800&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165817&fm=173409422406871&tin=02508201610067®Number=0000000000091764&sum=28000 [18:57:47]written 0, free lines is 4095 [18:57:47]OFD Sender: Processing packet 165817 [packets to send 48, broken 47] [18:57:47]ProducePacketName [18:57:47]name=ofd_packets/00165817 [18:57:47]OFD Sender: To server: pG, [18:57:47]CommunicateWithHost lk.salyk.kg:30040 [18:57:47]ConnectInit lk.salyk.kg [18:57:48]Connected sock=10 [18:57:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7C 45 07 01 BB 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 B8 52 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 87 02 00 35 04 06 00 9D B7 07 05 F4 D7 67 A1 28 EB 11 FA 36 1F [18:57:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 42 88 47 00 95 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 87 02 00 F4 03 04 00 28 F9 14 67 B6 04 01 00 00 DF 1A F3 F7 06 A1 67 9B [18:57:48]CommunicateWithHost err = 0 [18:57:48]CheckOFDResponse [18:57:48]1017 (14) - 77093643461234 [18:57:48]1041 (16) - 0000000000871759 [18:57:48]1040 (4) - 165817 [18:57:48]1012 (4) - 20.10.2024 12:35 [18:57:48]1206 (1) - 0 [18:57:48]OFD Sender: Remove packet 165817 [18:57:48]ProducePacketName [18:57:48]name=ofd_packets/00165817 [18:57:48]NVStorageDeleteData [18:57:48]Write to MH i2c: 01 00 00 39 13 4C [18:57:48]Write i2c OK [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: 01 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: 01 07 00 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: 01 07 00 39 13 00 00 00 00 00 C9 0C 28 [18:57:48]RasterBufferAndPrint [18:57:48]line [18:57:48]line [18:57:48]line [18:57:48]line [18:57:48]line [18:57:48]written 0, free lines is 3285 [18:57:48]MH_Cut [18:57:48]Write to MH i2c: D1 01 00 40 13 01 25 [18:57:48]Write i2c OK [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: D1 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: D1 01 00 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: D1 01 00 40 13 00 24 [18:57:48]Write to MH i2c: 01 00 00 41 13 54 [18:57:48]Write i2c OK [18:57:48]MH_I2C_Read... [18:57:48]OFD Sender: No OFD packet to send [18:57:49]*** Cut start [18:57:49]*** Partial cut [18:57:49]*** CUTSNS_PIN = 1 [18:57:49]*** CUTSNS_PIN = 0 [18:57:49]*** Brake cut motor [18:57:49]Read from MH i2c: 01 [18:57:49]MH_I2C_Read... [18:57:49]*** Stop cut motor [18:57:49]*** Cut end [18:57:49]Read from MH i2c: 01 07 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: 01 07 00 41 13 00 00 00 00 00 FF 0F 69 [18:57:49]process_action close_receipt done [18:57:49]requested_data is exist [18:57:49]produce_requested_data [18:57:49]requested_item fm.sn is exist - process it [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 11 00 00 [18:57:49]Write to MH i2c: E2 08 00 42 13 80 11 00 00 00 00 00 00 CF [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 17 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 17 00 42 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [18:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:57:49]wFMCommunicate OK [18:57:49]requested_item fd.num is exist - process it [18:57:49]SAM_PROTO_GetFieldsCounters [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 13 00 00 [18:57:49]Write to MH i2c: E2 08 00 43 13 80 13 00 00 00 00 00 00 D2 [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 62 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 62 00 43 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 87 02 00 0E 04 04 00 16 02 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 D8 [18: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 87 02 00 0E 04 04 00 16 02 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 [18:57:49]wFMCommunicate OK [18:57:49]SAM_PROTO_GetFieldsCounters done [18:57:49]requested_item shift.num is exist - process it [18:57:49]requested_item shift.opened is exist - process it [18:57:49]req_shift_opened [18:57:49]FM_GetShiftState [18:57:49]SAM_PROTO_GetShiftState [18:57:49]wFMCommunicate request_size=4 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 13 01 00 [18:57:50]Write to MH i2c: E2 08 00 44 13 80 13 01 00 00 00 00 00 D4 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 0E 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 0E 00 44 13 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1C [18:57:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [18:57:50]wFMCommunicate OK [18:57:50]SAM_PROTO_GetShiftState done [18:57:50]FM_GetShiftState done [18:57:50]req_shift_opened done [18:57:50]requested_item shift.open_date is exist - process it [18:57:50]req_shift_open_date [18:57:50]req_shift_open_date done [18:57:50]produce_requested_data done [18:57:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165817,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [18:57:50]process_action_free close_receipt [18:57:50]json_value_free [18:57:50]json_value_free done [18:57:50]process_json_proto returns [18:57:50]Send response to host [18:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165817,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [18:57:50]free response buf [18:57:50]execute_script done [18:57:50]execute_script returns [18:57:50]free content buf [18:57:50]Sock 7.Close socket [18:57:50]Sock 7.Thread stoped [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:40]accept exits with 9 [19:04:40]New connection [19:04:40]New thread 3066776932 created [19:04:40]Thread 3066920292 joined [19:04:40]Waiting for new connection... [19:04:40] Sock 9.Parse request [19:04:40]Sock 9.Check first char [19:04:40]Sock 9.First char is OK [19:04:40]request: POST /json_proto HTTP/1.0 [19:04:40]Method: POST [19:04:40]URL: /json_proto [19:04:40]Method is POST - this is cgi request [19:04:40]url: /json_proto [19:04:40]query_string will be loaded in cgi processing [19:04:40]execute_cgi json_proto POST (null) [19:04:40]execute_cgi path=json_proto method=POST [19:04:40]POST find Content-Length [19:04:40]Host: 172.17.53.195:8080 [19:04:40]Content-Length: 677 [19:04:40]Content-Type: application/json [19:04:40] [19:04:40]POST finish read [19:04:40]Found Content-Length = 677 [19:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:40]execute_script... [19:04: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)220387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:40]POST & json_proto [19:04:40]process_json_proto [19:04:40]json parsed OK: [19:04:40]protocol is kg_v1.0 [19:04:40]action value=close_receipt [19:04:40]process_action close_receipt [19:04:40]cmd_close_receipt [19:04:40]MH_GetDate [19:04:40]Write to MH i2c: F0 00 00 45 13 47 [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: F0 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: F0 09 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: F0 09 00 45 13 00 56 54 15 67 21 48 4A 65 8E [19:04:40]GetLastDocTimeStamp 1729450680 [19:04:40]current date 1729451094 [19:04:40]FM_GetShiftState [19:04:40]SAM_PROTO_GetShiftState [19:04:40]wFMCommunicate request_size=4 [19:04:40]MH_SAM_APDU [19:04:40]CAPDU: 80 13 01 00 [19:04:40]Write to MH i2c: E2 08 00 46 13 80 13 01 00 00 00 00 00 D6 [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:40]Read from MH i2c: E2 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 0E 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 0E 00 46 13 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1E [19:04:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:04:40]wFMCommunicate OK [19:04:40]SAM_PROTO_GetShiftState done [19:04:40]FM_GetShiftState done [19:04:40]opened in 1729384561 [19:04:40]opened+sec_in_day 1729470961 [19:04:40]quantity*price = 49974 [19:04:40]sum+1 = 49975 [19:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 300 20.10.2024 19:04 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165818 ФПД: 193052121779587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165818&fm=193052121779587&tin=02508201610067®Number=0000000000091764&sum=49900 [19:04:41]StoreToDocumentArchive [19:04:41]shift 534 fd 165818 [19:04:41]save to /storage/0534/doc_00165818 [19:04:41]save last doc name /storage/0534/doc_00165818 to /storage/kkm_last_doc_name [19:04:41]save OK [19:04:41]Clear old archive folders... [19:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:41]tlvbuf is 016AB4A0 [19:04:41]SAM_PROTO_ClearQueue [19:04:41]wFMCommunicate request_size=4 [19:04:41]MH_SAM_APDU [19:04:41]CAPDU: 80 09 00 00 [19:04:41]Write to MH i2c: E2 08 00 53 13 80 09 00 00 00 00 00 00 D8 [19:04:41]Write i2c OK [19:04:41]MH_I2C_Read... [19:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:42]Read from MH i2c: E2 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 03 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 03 00 53 13 00 90 00 DA [19:04:42]RAPDU: 90 00 [19:04:42]wFMCommunicate OK [19:04:42]SAM_PROTO_ClearQueue done [19:04:42]KKMCreateOFDPacket [19:04:42]OFDProtocolAddRootSTLVToBuf [19:04:42]FM_MakeSignedData [19:04:42]FM_MakeSignedData [19:04:42]SAM_PROTO_SignData [19:04:42]wFMCommunicate request_size=4 [19:04:42]MH_SAM_APDU [19:04:42]CAPDU: 80 0D 01 02 [19:04:42]Write to MH i2c: E2 08 00 54 13 80 0D 01 02 00 00 00 00 E0 [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:42]Read from MH i2c: E2 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 03 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 03 00 54 13 00 90 00 DB [19:04:42]RAPDU: 90 00 [19:04:42]wFMCommunicate OK [19:04:42]wFMCommunicate request_size=255 [19:04:42]MH_SAM_APDU [19:04: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 56 54 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 87 02 00 35 04 06 00 AF [19:04:42]Write to MH i2c: E2 02 01 55 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 56 54 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 87 02 00 35 04 06 00 AF 00 00 B4 [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:42]Read from MH i2c: E2 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 03 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 03 00 55 13 00 90 00 DC [19:04:42]RAPDU: 90 00 [19:04:42]wFMCommunicate OK [19:04:42]wFMCommunicate request_size=10 [19:04:42]MH_SAM_APDU [19:04:42]CAPDU: 80 0D 02 02 05 94 73 24 4D 83 [19:04:42]Write to MH i2c: E2 0D 00 56 13 80 0D 02 02 05 00 94 73 24 4D 83 00 00 E8 [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:42]Read from MH i2c: E2 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 03 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [19:04:42]RAPDU: 90 00 [19:04:42]wFMCommunicate OK [19:04:42]wFMCommunicate request_size=4 [19:04:42]MH_SAM_APDU [19:04:42]CAPDU: 80 0D 03 02 [19:04:42]Write to MH i2c: E2 08 00 57 13 80 0D 03 02 00 00 00 00 E5 [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:42]Read from MH i2c: E2 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 0B 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 0B 00 57 13 00 9E 13 67 90 0B BB A1 C4 90 00 B9 [19:04:42]RAPDU: 9E 13 67 90 0B BB A1 C4 90 00 [19:04:42]wFMCommunicate OK [19:04:42]SAM_PROTO_SignData done [19:04:42]FM_MakeSignedData done [19:04:42]CreateOFDProtocolMessage [19:04:42]wFMCommunicate request_size=4 [19:04:42]MH_SAM_APDU [19:04:42]CAPDU: 80 11 00 00 [19:04:42]Write to MH i2c: E2 08 00 58 13 80 11 00 00 00 00 00 00 E5 [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:42]Read from MH i2c: E2 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 17 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: E2 17 00 58 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [19:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:04:42]wFMCommunicate OK [19:04:42]CreateOFDProtocolMessage done [19:04:42]OFDSenderStorePacket 165818 [19:04:42]StoreOFDPacket docnum=165818 [19:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6A 44 07 01 76 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 56 54 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 87 02 00 35 04 06 00 AF 94 73 24 4D 83 9E 13 67 90 0B BB A1 C4 [19:04:42]CheckFolder [19:04:42]dirname=/storage/ofd_packets [19:04:42]CheckFolder done [19:04:42]ProducePacketName [19:04:42]name=ofd_packets/00165818 [19:04:42]NVStorageSaveData ofd_packets/00165818 [19:04:42]File name is /storage/ofd_packets/00165818 [19:04:42]Write 301 bytes [19:04:42]NVStorageSaveData done [19:04:42]OFDSenderStorePacket done [19:04:42]KKMCreateOFDPacket done [19:04:42]NVStorageSaveData kkm_last_timestamp [19:04:42]File name is /storage/kkm_last_timestamp [19:04:42]Write 4 bytes [19:04:42]NVStorageSaveData done [19:04:42]ExternCall_PrintAddStr [19:04:42]wPrintStart [19:04:42]Write to MH i2c: 01 00 00 59 13 6C [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: 01 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: 01 07 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: 01 07 00 59 13 00 00 00 00 00 FF 0F 81 [19:04:42]RasterBufferAndPrint [19:04:42]line Счет N : (1)220387 [19:04:42]line ИНН: 02508201610067 [19:04:42]line Контрольно-Кассовый Чек [19:04:42]line ПРОДАЖА [19:04:42]line ТРК (МРК, ГНК) : 43 [19:04:42]line Товар: 2710124130 [19:04:42]line Аи-92-К-5 [19:04:42]line 7.470 * 66.90 [19:04:42]line = 499.74 [19:04:42]line НДС 12% НСП 1% [19:04:42]line > о реализуемом товаре [19:04:42]line ОКРУГЛЕНИЕ: -0.74 [19:04:42]line ИТОГО: 499.00 [19:04:42]line Внесено: 500.00 [19:04:42]line СДАЧА: 1.00 [19:04:42]line НСП 1% : 4.42 [19:04:42]line НДС 12% : 53.07 [19:04:42]line Наличными: 499.00 [19:04:42]line Безнал.: 0.00 [19:04:42]line Место: АЗС № 161 "Партнер Нефть" [19:04:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:04:42]line СНО: Общий режим [19:04:42]line Чек 300 20.10.2024 19:04 [19:04:42]line Смена: 534 ФФД: 1.0 [19:04:42]line ЗНМ: 0300000104 [19:04:42]line РНМ: 0000000000091764 [19:04:42]line Версия ККМ: 001 [19:04:42]line ФМ: 0000000000871759 [19:04:42]line ФД: 165818 [19:04:42]line ФПД: 193052121779587 [19:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190454&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165818&fm=193052121779587&tin=02508201610067®Number=0000000000091764&sum=49900 [19:04:42]OFD Sender: Processing packet 165818 [packets to send 48, broken 47] [19:04:42]ProducePacketName [19:04:42]name=ofd_packets/00165818 [19:04:42]OFD Sender: To server: pG, [19:04:42]CommunicateWithHost lk.salyk.kg:30040 [19:04:42]ConnectInit lk.salyk.kg [19:04:42]written 0, free lines is 4095 [19:04:42]Connected sock=10 [19:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6A 44 07 01 76 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 56 54 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 87 02 00 35 04 06 00 AF 94 73 24 4D 83 9E 13 67 90 0B BB A1 C4 [19:04:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 87 47 00 64 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 31 37 35 39 10 04 04 00 BA 87 02 00 F4 03 04 00 C7 FA 14 67 B6 04 01 00 00 A1 F4 B6 4A EB 7C D5 07 [19:04:43]CommunicateWithHost err = 0 [19:04:43]CheckOFDResponse [19:04:43]1017 (14) - 77093643461234 [19:04:43]1041 (16) - 0000000000871759 [19:04:43]1040 (4) - 165818 [19:04:43]1012 (4) - 20.10.2024 12:42 [19:04:43]1206 (1) - 0 [19:04:43]OFD Sender: Remove packet 165818 [19:04:43]ProducePacketName [19:04:43]name=ofd_packets/00165818 [19:04:43]NVStorageDeleteData [19:04:43]Write to MH i2c: 01 00 00 84 13 97 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 07 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 07 00 84 13 00 00 00 00 00 B5 0C 5F [19:04:43]RasterBufferAndPrint [19:04:43]line [19:04:43]line [19:04:43]line [19:04:43]line [19:04:43]line [19:04:43]written 0, free lines is 3260 [19:04:43]MH_Cut [19:04:43]Write to MH i2c: D1 01 00 8B 13 01 70 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: D1 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: D1 01 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: D1 01 00 8B 13 00 6F [19:04:43]Write to MH i2c: 01 00 00 8C 13 9F [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]OFD Sender: No OFD packet to send [19:04:44]*** Cut start [19:04:44]*** Partial cut [19:04:44]*** CUTSNS_PIN = 1 [19:04:44]*** CUTSNS_PIN = 0 [19:04:44]*** Brake cut motor [19:04:44]Read from MH i2c: 01 [19:04:44]MH_I2C_Read... [19:04:44]*** Stop cut motor [19:04:44]*** Cut end [19:04:44]Read from MH i2c: 01 07 00 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: 01 07 00 8C 13 00 00 00 00 00 FF 0F B4 [19:04:44]process_action close_receipt done [19:04:44]requested_data is exist [19:04:44]produce_requested_data [19:04:44]requested_item fm.sn is exist - process it [19:04:44]wFMCommunicate request_size=4 [19:04:44]MH_SAM_APDU [19:04:44]CAPDU: 80 11 00 00 [19:04:44]Write to MH i2c: E2 08 00 8D 13 80 11 00 00 00 00 00 00 1A [19:04:44]Write i2c OK [19:04:44]MH_I2C_Read... [19:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:44]Read from MH i2c: E2 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: E2 17 00 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: E2 17 00 8D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [19:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:04:44]wFMCommunicate OK [19:04:44]requested_item fd.num is exist - process it [19:04:44]SAM_PROTO_GetFieldsCounters [19:04:44]wFMCommunicate request_size=4 [19:04:44]MH_SAM_APDU [19:04:44]CAPDU: 80 13 00 00 [19:04:44]Write to MH i2c: E2 08 00 8E 13 80 13 00 00 00 00 00 00 1D [19:04:44]Write i2c OK [19:04:44]MH_I2C_Read... [19:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:44]Read from MH i2c: E2 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: E2 62 00 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: E2 62 00 8E 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 87 02 00 0E 04 04 00 16 02 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 27 [19:04: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 87 02 00 0E 04 04 00 16 02 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:04:44]wFMCommunicate OK [19:04:44]SAM_PROTO_GetFieldsCounters done [19:04:44]requested_item shift.num is exist - process it [19:04:44]requested_item shift.opened is exist - process it [19:04:44]req_shift_opened [19:04:44]FM_GetShiftState [19:04:44]SAM_PROTO_GetShiftState [19:04:44]wFMCommunicate request_size=4 [19:04:44]MH_SAM_APDU [19:04:44]CAPDU: 80 13 01 00 [19:04:44]Write to MH i2c: E2 08 00 8F 13 80 13 01 00 00 00 00 00 1F [19:04:44]Write i2c OK [19:04:44]MH_I2C_Read... [19:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:44]Read from MH i2c: E2 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: E2 0E 00 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: E2 0E 00 8F 13 00 09 00 01 71 50 14 67 00 00 00 00 90 00 67 [19:04:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:04:44]wFMCommunicate OK [19:04:44]SAM_PROTO_GetShiftState done [19:04:44]FM_GetShiftState done [19:04:44]req_shift_opened done [19:04:44]requested_item shift.open_date is exist - process it [19:04:44]req_shift_open_date [19:04:44]req_shift_open_date done [19:04:44]produce_requested_data done [19:04:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165818,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:04:44]process_action_free close_receipt [19:04:44]json_value_free [19:04:44]json_value_free done [19:04:44]process_json_proto returns [19:04:44]Send response to host [19:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165818,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:04:44]free response buf [19:04:44]execute_script done [19:04:44]execute_script returns [19:04:44]free content buf [19:04:44]Sock 9.Close socket [19:04:44]Sock 9.Thread stoped [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]accept exits with 7 [19:06:33]New connection [19:06:33]New thread 3066920292 created [19:06:33]Thread 3066776932 joined [19:06:33]Waiting for new connection... [19:06:33] Sock 7.Parse request [19:06:33]Sock 7.Check first char [19:06:33]Sock 7.First char is OK [19:06:33]request: POST /json_proto HTTP/1.0 [19:06:33]Method: POST [19:06:33]URL: /json_proto [19:06:33]Method is POST - this is cgi request [19:06:33]url: /json_proto [19:06:33]query_string will be loaded in cgi processing [19:06:33]execute_cgi json_proto POST (null) [19:06:33]execute_cgi path=json_proto method=POST [19:06:33]POST find Content-Length [19:06:33]Host: 172.17.53.195:8080 [19:06:33]Content-Length: 677 [19:06:33]Content-Type: application/json [19:06:33] [19:06:33]POST finish read [19:06:33]Found Content-Length = 677 [19:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:33]execute_script... [19:06: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)220388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:33]POST & json_proto [19:06:33]process_json_proto [19:06:33]json parsed OK: [19:06:33]protocol is kg_v1.0 [19:06:33]action value=close_receipt [19:06:33]process_action close_receipt [19:06:33]cmd_close_receipt [19:06:33]MH_GetDate [19:06:33]Write to MH i2c: F0 00 00 90 13 92 [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: F0 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: F0 09 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: F0 09 00 90 13 00 C7 54 15 67 21 48 4A 65 4A [19:06:33]GetLastDocTimeStamp 1729451094 [19:06:33]current date 1729451207 [19:06:33]FM_GetShiftState [19:06:33]SAM_PROTO_GetShiftState [19:06:33]wFMCommunicate request_size=4 [19:06:33]MH_SAM_APDU [19:06:33]CAPDU: 80 13 01 00 [19:06:33]Write to MH i2c: E2 08 00 91 13 80 13 01 00 00 00 00 00 21 [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:33]Read from MH i2c: E2 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 0E 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 0E 00 91 13 00 09 00 01 71 50 14 67 00 00 00 00 90 00 69 [19:06:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:06:33]wFMCommunicate OK [19:06:33]SAM_PROTO_GetShiftState done [19:06:33]FM_GetShiftState done [19:06:33]opened in 1729384561 [19:06:33]opened+sec_in_day 1729470961 [19:06:33]quantity*price = 40006 [19:06:33]sum+1 = 40007 [19:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 301 20.10.2024 19:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165819 ФПД: 77241068848892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190647&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165819&fm=77241068848892&tin=02508201610067®Number=0000000000091764&sum=40000 [19:06:34]StoreToDocumentArchive [19:06:34]shift 534 fd 165819 [19:06:34]save to /storage/0534/doc_00165819 [19:06:34]save last doc name /storage/0534/doc_00165819 to /storage/kkm_last_doc_name [19:06:34]save OK [19:06:34]Clear old archive folders... [19:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:34]tlvbuf is 0163FDE0 [19:06:34]SAM_PROTO_ClearQueue [19:06:34]wFMCommunicate request_size=4 [19:06:34]MH_SAM_APDU [19:06:34]CAPDU: 80 09 00 00 [19:06:34]Write to MH i2c: E2 08 00 9E 13 80 09 00 00 00 00 00 00 23 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:34]Read from MH i2c: E2 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 03 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 03 00 9E 13 00 90 00 25 [19:06:34]RAPDU: 90 00 [19:06:34]wFMCommunicate OK [19:06:34]SAM_PROTO_ClearQueue done [19:06:34]KKMCreateOFDPacket [19:06:34]OFDProtocolAddRootSTLVToBuf [19:06:34]FM_MakeSignedData [19:06:34]FM_MakeSignedData [19:06:34]SAM_PROTO_SignData [19:06:34]wFMCommunicate request_size=4 [19:06:34]MH_SAM_APDU [19:06:34]CAPDU: 80 0D 01 02 [19:06:34]Write to MH i2c: E2 08 00 9F 13 80 0D 01 02 00 00 00 00 2B [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:34]Read from MH i2c: E2 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 03 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [19:06:34]RAPDU: 90 00 [19:06:34]wFMCommunicate OK [19:06:34]wFMCommunicate request_size=255 [19:06:34]MH_SAM_APDU [19:06: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 C7 54 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 87 02 00 35 04 06 00 46 [19:06:34]Write to MH i2c: E2 02 01 A0 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 C7 54 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 87 02 00 35 04 06 00 46 00 00 F7 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:34]Read from MH i2c: E2 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 03 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [19:06:34]RAPDU: 90 00 [19:06:34]wFMCommunicate OK [19:06:34]wFMCommunicate request_size=10 [19:06:34]MH_SAM_APDU [19:06:34]CAPDU: 80 0D 02 02 05 40 16 78 86 FC [19:06:34]Write to MH i2c: E2 0D 00 A1 13 80 0D 02 02 05 00 40 16 78 86 FC 00 00 88 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:34]Read from MH i2c: E2 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 03 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [19:06:34]RAPDU: 90 00 [19:06:34]wFMCommunicate OK [19:06:34]wFMCommunicate request_size=4 [19:06:34]MH_SAM_APDU [19:06:34]CAPDU: 80 0D 03 02 [19:06:34]Write to MH i2c: E2 08 00 A2 13 80 0D 03 02 00 00 00 00 30 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:34]Read from MH i2c: E2 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 0B 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 0B 00 A2 13 00 11 0F E2 A6 68 4E 43 81 90 00 53 [19:06:34]RAPDU: 11 0F E2 A6 68 4E 43 81 90 00 [19:06:34]wFMCommunicate OK [19:06:34]SAM_PROTO_SignData done [19:06:34]FM_MakeSignedData done [19:06:34]CreateOFDProtocolMessage [19:06:34]wFMCommunicate request_size=4 [19:06:34]MH_SAM_APDU [19:06:34]CAPDU: 80 11 00 00 [19:06:34]Write to MH i2c: E2 08 00 A3 13 80 11 00 00 00 00 00 00 30 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:34]Read from MH i2c: E2 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 17 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 17 00 A3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [19:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:06:34]wFMCommunicate OK [19:06:34]CreateOFDProtocolMessage done [19:06:34]OFDSenderStorePacket 165819 [19:06:34]StoreOFDPacket docnum=165819 [19:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 1A 07 01 82 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 C7 54 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 87 02 00 35 04 06 00 46 40 16 78 86 FC 11 0F E2 A6 68 4E 43 81 [19:06:34]CheckFolder [19:06:34]dirname=/storage/ofd_packets [19:06:34]CheckFolder done [19:06:34]ProducePacketName [19:06:34]name=ofd_packets/00165819 [19:06:34]NVStorageSaveData ofd_packets/00165819 [19:06:34]File name is /storage/ofd_packets/00165819 [19:06:34]Write 301 bytes [19:06:34]NVStorageSaveData done [19:06:34]OFDSenderStorePacket done [19:06:34]KKMCreateOFDPacket done [19:06:34]NVStorageSaveData kkm_last_timestamp [19:06:34]File name is /storage/kkm_last_timestamp [19:06:34]Write 4 bytes [19:06:34]NVStorageSaveData done [19:06:34]ExternCall_PrintAddStr [19:06:34]wPrintStart [19:06:34]Write to MH i2c: 01 00 00 A4 13 B7 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: 01 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: 01 07 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: 01 07 00 A4 13 00 00 00 00 00 FF 0F CC [19:06:34]RasterBufferAndPrint [19:06:34]line Счет N : (1)220388 [19:06:34]line ИНН: 02508201610067 [19:06:34]line Контрольно-Кассовый Чек [19:06:34]line ПРОДАЖА [19:06:34]line ТРК (МРК, ГНК) : 43 [19:06:34]line Товар: 2710124130 [19:06:34]line Аи-92-К-5 [19:06:34]line 5.980 * 66.90 [19:06:34]line = 400.06 [19:06:34]line НДС 12% НСП 1% [19:06:34]line > о реализуемом товаре [19:06:34]line ОКРУГЛЕНИЕ: -0.06 [19:06:34]line ИТОГО: 400.00 [19:06:34]line Внесено: 400.00 [19:06:34]line СДАЧА: 0.00 [19:06:34]line НСП 1% : 3.54 [19:06:34]line НДС 12% : 42.48 [19:06:34]line Наличными: 400.00 [19:06:34]line Безнал.: 0.00 [19:06:34]line Место: АЗС № 161 "Партнер Нефть" [19:06:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:06:34]line СНО: Общий режим [19:06:34]line Чек 301 20.10.2024 19:06 [19:06:34]line Смена: 534 ФФД: 1.0 [19:06:34]line ЗНМ: 0300000104 [19:06:34]line РНМ: 0000000000091764 [19:06:34]line Версия ККМ: 001 [19:06:34]line ФМ: 0000000000871759 [19:06:34]line ФД: 165819 [19:06:34]line ФПД: 77241068848892 [19:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190647&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165819&fm=77241068848892&tin=02508201610067®Number=0000000000091764&sum=40000 [19:06:35]OFD Sender: Processing packet 165819 [packets to send 48, broken 47] [19:06:35]ProducePacketName [19:06:35]name=ofd_packets/00165819 [19:06:35]OFD Sender: To server: pG, [19:06:35]CommunicateWithHost lk.salyk.kg:30040 [19:06:35]ConnectInit lk.salyk.kg [19:06:35]written 0, free lines is 4095 [19:06:35]Connected sock=10 [19:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 1A 07 01 82 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 C7 54 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 87 02 00 35 04 06 00 46 40 16 78 86 FC 11 0F E2 A6 68 4E 43 81 [19:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D C6 47 00 4C 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 31 37 35 39 10 04 04 00 BB 87 02 00 F4 03 04 00 38 FB 14 67 B6 04 01 00 00 32 3A 6D 42 25 C3 06 C0 [19:06:35]CommunicateWithHost err = 0 [19:06:35]CheckOFDResponse [19:06:35]1017 (14) - 77093643461234 [19:06:35]1041 (16) - 0000000000871759 [19:06:35]1040 (4) - 165819 [19:06:35]1012 (4) - 20.10.2024 12:44 [19:06:35]1206 (1) - 0 [19:06:35]OFD Sender: Remove packet 165819 [19:06:35]ProducePacketName [19:06:35]name=ofd_packets/00165819 [19:06:35]NVStorageDeleteData [19:06:35]Write to MH i2c: 01 00 00 CF 13 E2 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: 01 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: 01 07 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 BF 0C B4 [19:06:35]RasterBufferAndPrint [19:06:35]line [19:06:35]line [19:06:35]line [19:06:35]line [19:06:35]line [19:06:35]written 0, free lines is 3269 [19:06:35]MH_Cut [19:06:35]Write to MH i2c: D1 01 00 D6 13 01 BB [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: D1 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: D1 01 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: D1 01 00 D6 13 00 BA [19:06:35]Write to MH i2c: 01 00 00 D7 13 EA [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]OFD Sender: No OFD packet to send [19:06:36]*** Cut start [19:06:36]*** Partial cut [19:06:36]*** CUTSNS_PIN = 1 [19:06:36]*** CUTSNS_PIN = 0 [19:06:36]*** Brake cut motor [19:06:37]Read from MH i2c: 01 [19:06:37]MH_I2C_Read... [19:06:37]*** Stop cut motor [19:06:37]*** Cut end [19:06:37]Read from MH i2c: 01 07 00 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: 01 07 00 D7 13 00 00 00 00 00 FF 0F FF [19:06:37]process_action close_receipt done [19:06:37]requested_data is exist [19:06:37]produce_requested_data [19:06:37]requested_item fm.sn is exist - process it [19:06:37]wFMCommunicate request_size=4 [19:06:37]MH_SAM_APDU [19:06:37]CAPDU: 80 11 00 00 [19:06:37]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [19:06:37]Write i2c OK [19:06:37]MH_I2C_Read... [19:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:37]Read from MH i2c: E2 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: E2 17 00 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: E2 17 00 D8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [19:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:06:37]wFMCommunicate OK [19:06:37]requested_item fd.num is exist - process it [19:06:37]SAM_PROTO_GetFieldsCounters [19:06:37]wFMCommunicate request_size=4 [19:06:37]MH_SAM_APDU [19:06:37]CAPDU: 80 13 00 00 [19:06:37]Write to MH i2c: E2 08 00 D9 13 80 13 00 00 00 00 00 00 68 [19:06:37]Write i2c OK [19:06:37]MH_I2C_Read... [19:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:37]Read from MH i2c: E2 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: E2 62 00 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: E2 62 00 D9 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 87 02 00 0E 04 04 00 16 02 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 76 [19:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 87 02 00 0E 04 04 00 16 02 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:06:37]wFMCommunicate OK [19:06:37]SAM_PROTO_GetFieldsCounters done [19:06:37]requested_item shift.num is exist - process it [19:06:37]requested_item shift.opened is exist - process it [19:06:37]req_shift_opened [19:06:37]FM_GetShiftState [19:06:37]SAM_PROTO_GetShiftState [19:06:37]wFMCommunicate request_size=4 [19:06:37]MH_SAM_APDU [19:06:37]CAPDU: 80 13 01 00 [19:06:37]Write to MH i2c: E2 08 00 DA 13 80 13 01 00 00 00 00 00 6A [19:06:37]Write i2c OK [19:06:37]MH_I2C_Read... [19:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:37]Read from MH i2c: E2 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: E2 0E 00 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: E2 0E 00 DA 13 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B2 [19:06:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:06:37]wFMCommunicate OK [19:06:37]SAM_PROTO_GetShiftState done [19:06:37]FM_GetShiftState done [19:06:37]req_shift_opened done [19:06:37]requested_item shift.open_date is exist - process it [19:06:37]req_shift_open_date [19:06:37]req_shift_open_date done [19:06:37]produce_requested_data done [19:06:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165819,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:06:37]process_action_free close_receipt [19:06:37]json_value_free [19:06:37]json_value_free done [19:06:37]process_json_proto returns [19:06:37]Send response to host [19:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165819,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:06:37]free response buf [19:06:37]execute_script done [19:06:37]execute_script returns [19:06:37]free content buf [19:06:37]Sock 7.Close socket [19:06:37]Sock 7.Thread stoped [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:02]accept exits with 9 [19:13:02]New connection [19:13:02]New thread 3066776932 created [19:13:02]Thread 3066920292 joined [19:13:02]Waiting for new connection... [19:13:02] Sock 9.Parse request [19:13:02]Sock 9.Check first char [19:13:02]Sock 9.First char is OK [19:13:02]request: POST /json_proto HTTP/1.0 [19:13:02]Method: POST [19:13:02]URL: /json_proto [19:13:02]Method is POST - this is cgi request [19:13:02]url: /json_proto [19:13:02]query_string will be loaded in cgi processing [19:13:02]execute_cgi json_proto POST (null) [19:13:02]execute_cgi path=json_proto method=POST [19:13:02]POST find Content-Length [19:13:02]Host: 172.17.53.195:8080 [19:13:02]Content-Length: 769 [19:13:02]Content-Type: application/json [19:13:02] [19:13:02]POST finish read [19:13:02]Found Content-Length = 769 [19:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220386", "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" : 76.20, "quantity" : 375.340, "sum" : 28600.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 28600.91 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:02]execute_script... [19:13: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)220386", "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" : 76.20, "quantity" : 375.340, "sum" : 28600.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 28600.91 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:02]POST & json_proto [19:13:02]process_json_proto [19:13:02]json parsed OK: [19:13:02]protocol is kg_v1.0 [19:13:02]action value=close_receipt [19:13:02]process_action close_receipt [19:13:02]cmd_close_receipt [19:13:02]MH_GetDate [19:13:02]Write to MH i2c: F0 00 00 DB 13 DD [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: F0 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: F0 09 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: F0 09 00 DB 13 00 4C 56 15 67 21 48 4A 65 1C [19:13:02]GetLastDocTimeStamp 1729451207 [19:13:02]current date 1729451596 [19:13:02]FM_GetShiftState [19:13:02]SAM_PROTO_GetShiftState [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 13 01 00 [19:13:02]Write to MH i2c: E2 08 00 DC 13 80 13 01 00 00 00 00 00 6C [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 0E 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 0E 00 DC 13 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B4 [19:13:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:13:02]wFMCommunicate OK [19:13:02]SAM_PROTO_GetShiftState done [19:13:02]FM_GetShiftState done [19:13:02]opened in 1729384561 [19:13:02]opened+sec_in_day 1729470961 [19:13:02]quantity*price = 2860090 [19:13:02]sum+1 = 2860092 [19:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 28600.91 НСП 1% : 253.10 НДС 12% : 3037.26 Наличными: 0.00 Безнал.: 28600.91 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 302 20.10.2024 19:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165820 ФПД: 122224388687742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191316&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165820&fm=122224388687742&tin=02508201610067®Number=0000000000091764&sum=2860091 [19:13:04]StoreToDocumentArchive [19:13:04]shift 534 fd 165820 [19:13:04]save to /storage/0534/doc_00165820 [19:13:04]save last doc name /storage/0534/doc_00165820 to /storage/kkm_last_doc_name [19:13:04]save OK [19:13:04]Clear old archive folders... [19:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:13:04]tlvbuf is 0162CE20 [19:13:04]SAM_PROTO_ClearQueue [19:13:04]wFMCommunicate request_size=4 [19:13:04]MH_SAM_APDU [19:13:04]CAPDU: 80 09 00 00 [19:13:04]Write to MH i2c: E2 08 00 E9 13 80 09 00 00 00 00 00 00 6E [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:04]Read from MH i2c: E2 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 03 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [19:13:04]RAPDU: 90 00 [19:13:04]wFMCommunicate OK [19:13:04]SAM_PROTO_ClearQueue done [19:13:04]KKMCreateOFDPacket [19:13:04]OFDProtocolAddRootSTLVToBuf [19:13:04]FM_MakeSignedData [19:13:04]FM_MakeSignedData [19:13:04]SAM_PROTO_SignData [19:13:04]wFMCommunicate request_size=4 [19:13:04]MH_SAM_APDU [19:13:04]CAPDU: 80 0D 01 02 [19:13:04]Write to MH i2c: E2 08 00 EA 13 80 0D 01 02 00 00 00 00 76 [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:04]Read from MH i2c: E2 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 03 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [19:13:04]RAPDU: 90 00 [19:13:04]wFMCommunicate OK [19:13:04]wFMCommunicate request_size=255 [19:13:04]MH_SAM_APDU [19: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 2C BA 05 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3B A4 2B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B A4 2B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 62 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E A2 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B A4 2B 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 4C 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 87 02 00 35 04 06 00 6F 29 95 45 [19:13:04]Write to MH i2c: E2 02 01 EB 13 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 2C BA 05 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3B A4 2B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B A4 2B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 62 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E A2 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B A4 2B 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 4C 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 87 02 00 35 04 06 00 6F 29 95 45 00 00 34 [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:04]Read from MH i2c: E2 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 03 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [19:13:04]RAPDU: 90 00 [19:13:04]wFMCommunicate OK [19:13:04]wFMCommunicate request_size=7 [19:13:04]MH_SAM_APDU [19:13:04]CAPDU: 80 0D 02 02 02 47 7E [19:13:04]Write to MH i2c: E2 0A 00 EC 13 80 0D 02 02 02 00 47 7E 00 00 42 [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:04]Read from MH i2c: E2 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 03 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [19:13:04]RAPDU: 90 00 [19:13:04]wFMCommunicate OK [19:13:04]wFMCommunicate request_size=4 [19:13:04]MH_SAM_APDU [19:13:04]CAPDU: 80 0D 03 02 [19:13:04]Write to MH i2c: E2 08 00 ED 13 80 0D 03 02 00 00 00 00 7B [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:04]Read from MH i2c: E2 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 0B 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 0B 00 ED 13 00 BB 8E 60 2C 76 86 77 F1 90 00 B5 [19:13:04]RAPDU: BB 8E 60 2C 76 86 77 F1 90 00 [19:13:04]wFMCommunicate OK [19:13:04]SAM_PROTO_SignData done [19:13:04]FM_MakeSignedData done [19:13:04]CreateOFDProtocolMessage [19:13:04]wFMCommunicate request_size=4 [19:13:04]MH_SAM_APDU [19:13:04]CAPDU: 80 11 00 00 [19:13:04]Write to MH i2c: E2 08 00 EE 13 80 11 00 00 00 00 00 00 7B [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:04]Read from MH i2c: E2 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 17 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 17 00 EE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [19:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:13:04]wFMCommunicate OK [19:13:04]CreateOFDProtocolMessage done [19:13:04]OFDSenderStorePacket 165820 [19:13:04]StoreOFDPacket docnum=165820 [19:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D1 4B 04 01 B1 12 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 2C BA 05 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3B A4 2B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B A4 2B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 62 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E A2 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B A4 2B 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 4C 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 87 02 00 35 04 06 00 6F 29 95 45 47 7E BB 8E 60 2C 76 86 77 F1 [19:13:04]CheckFolder [19:13:04]dirname=/storage/ofd_packets [19:13:04]CheckFolder done [19:13:04]ProducePacketName [19:13:04]name=ofd_packets/00165820 [19:13:04]NVStorageSaveData ofd_packets/00165820 [19:13:04]File name is /storage/ofd_packets/00165820 [19:13:04]Write 298 bytes [19:13:04]NVStorageSaveData done [19:13:04]OFDSenderStorePacket done [19:13:04]KKMCreateOFDPacket done [19:13:04]NVStorageSaveData kkm_last_timestamp [19:13:04]File name is /storage/kkm_last_timestamp [19:13:04]Write 4 bytes [19:13:04]NVStorageSaveData done [19:13:04]ExternCall_PrintAddStr [19:13:04]wPrintStart [19:13:04]Write to MH i2c: 01 00 00 EF 13 02 [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: 01 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: 01 07 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: 01 07 00 EF 13 00 00 00 00 00 FF 0F 17 [19:13:04]RasterBufferAndPrint [19:13:04]line Счет N : (1)220386 [19:13:04]line ИНН: 02508201610067 [19:13:04]line Контрольно-Кассовый Чек [19:13:04]line ПРОДАЖА [19:13:04]line ТРК (МРК, ГНК) : 21 [19:13:04]line Товар: 2710194210 [19:13:04]line ДТ-К-5 [19:13:04]line 375.340 * 76.20 [19:13:04]line = 28600.91 [19:13:04]line НДС 12% НСП 1% [19:13:04]line > о реализуемом товаре [19:13:04]line ИТОГО: 28600.91 [19:13:04]line НСП 1% : 253.10 [19:13:04]line НДС 12% : 3037.26 [19:13:04]line Наличными: 0.00 [19:13:04]line Безнал.: 28600.91 [19:13:04]line Место: АЗС № 161 "Партнер Нефть" [19:13:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:13:04]line СНО: Общий режим [19:13:04]line Чек 302 20.10.2024 19:13 [19:13:04]line Смена: 534 ФФД: 1.0 [19:13:04]line ЗНМ: 0300000104 [19:13:04]line РНМ: 0000000000091764 [19:13:04]line Версия ККМ: 001 [19:13:04]line Платежная система: Mbank [19:13:04]line ФМ: 0000000000871759 [19:13:04]line ФД: 165820 [19:13:04]line ФПД: 122224388687742 [19:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191316&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165820&fm=122224388687742&tin=02508201610067®Number=0000000000091764&sum=2860091 [19:13:04]OFD Sender: Processing packet 165820 [packets to send 48, broken 47] [19:13:04]ProducePacketName [19:13:04]name=ofd_packets/00165820 [19:13:04]OFD Sender: To server: pG, [19:13:04]CommunicateWithHost lk.salyk.kg:30040 [19:13:04]ConnectInit lk.salyk.kg [19:13:04]written 0, free lines is 4095 [19:13:04]Connected sock=10 [19:13:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D1 4B 04 01 B1 12 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 2C BA 05 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3B A4 2B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B A4 2B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 62 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E A2 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B A4 2B 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 4C 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 87 02 00 35 04 06 00 6F 29 95 45 47 7E BB 8E 60 2C 76 86 77 F1 [19:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6A 2B 47 00 DB 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 31 37 35 39 10 04 04 00 BC 87 02 00 F4 03 04 00 BD FC 14 67 B6 04 01 00 00 E3 50 BC EC 9A 7A 83 2F [19:13:05]CommunicateWithHost err = 0 [19:13:05]CheckOFDResponse [19:13:05]1017 (14) - 77093643461234 [19:13:05]1041 (16) - 0000000000871759 [19:13:05]1040 (4) - 165820 [19:13:05]1012 (4) - 20.10.2024 12:51 [19:13:05]1206 (1) - 0 [19:13:05]OFD Sender: Remove packet 165820 [19:13:05]ProducePacketName [19:13:05]name=ofd_packets/00165820 [19:13:05]NVStorageDeleteData [19:13:05]Write to MH i2c: 01 00 00 18 14 2C [19:13:05]Write i2c OK [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: 01 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: 01 07 00 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 E1 0C 20 [19:13:05]RasterBufferAndPrint [19:13:05]line [19:13:05]line [19:13:05]line [19:13:05]line [19:13:05]line [19:13:05]written 0, free lines is 3305 [19:13:05]MH_Cut [19:13:05]Write to MH i2c: D1 01 00 1F 14 01 05 [19:13:05]Write i2c OK [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: D1 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: D1 01 00 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: D1 01 00 1F 14 00 04 [19:13:05]Write to MH i2c: 01 00 00 20 14 34 [19:13:05]Write i2c OK [19:13:05]MH_I2C_Read... [19:13:05]OFD Sender: No OFD packet to send [19:13:06]*** Cut start [19:13:06]*** Partial cut [19:13:06]*** CUTSNS_PIN = 1 [19:13:06]*** CUTSNS_PIN = 0 [19:13:06]*** Brake cut motor [19:13:06]Read from MH i2c: 01 [19:13:06]MH_I2C_Read... [19:13:06]*** Stop cut motor [19:13:06]*** Cut end [19:13:06]Read from MH i2c: 01 07 00 [19:13:06]MH_I2C_Read... [19:13:06]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 FF 0F 49 [19:13:06]process_action close_receipt done [19:13:06]requested_data is exist [19:13:06]produce_requested_data [19:13:06]requested_item fm.sn is exist - process it [19:13:06]wFMCommunicate request_size=4 [19:13:06]MH_SAM_APDU [19:13:06]CAPDU: 80 11 00 00 [19:13:06]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [19:13:06]Write i2c OK [19:13:06]MH_I2C_Read... [19:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:06]Read from MH i2c: E2 [19:13:06]MH_I2C_Read... [19:13:06]Read from MH i2c: E2 17 00 [19:13:06]MH_I2C_Read... [19:13:06]Read from MH i2c: E2 17 00 21 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [19:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:13:06]wFMCommunicate OK [19:13:06]requested_item fd.num is exist - process it [19:13:06]SAM_PROTO_GetFieldsCounters [19:13:06]wFMCommunicate request_size=4 [19:13:06]MH_SAM_APDU [19:13:06]CAPDU: 80 13 00 00 [19:13:06]Write to MH i2c: E2 08 00 22 14 80 13 00 00 00 00 00 00 B2 [19:13:06]Write i2c OK [19:13:06]MH_I2C_Read... [19:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:06]Read from MH i2c: E2 [19:13:06]MH_I2C_Read... [19:13:06]Read from MH i2c: E2 62 00 [19:13:06]MH_I2C_Read... [19:13:07]Read from MH i2c: E2 62 00 22 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 87 02 00 0E 04 04 00 16 02 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 C4 [19: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 87 02 00 0E 04 04 00 16 02 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:13:07]wFMCommunicate OK [19:13:07]SAM_PROTO_GetFieldsCounters done [19:13:07]requested_item shift.num is exist - process it [19:13:07]requested_item shift.opened is exist - process it [19:13:07]req_shift_opened [19:13:07]FM_GetShiftState [19:13:07]SAM_PROTO_GetShiftState [19:13:07]wFMCommunicate request_size=4 [19:13:07]MH_SAM_APDU [19:13:07]CAPDU: 80 13 01 00 [19:13:07]Write to MH i2c: E2 08 00 23 14 80 13 01 00 00 00 00 00 B4 [19:13:07]Write i2c OK [19:13:07]MH_I2C_Read... [19:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:07]Read from MH i2c: E2 [19:13:07]MH_I2C_Read... [19:13:07]Read from MH i2c: E2 0E 00 [19:13:07]MH_I2C_Read... [19:13:07]Read from MH i2c: E2 0E 00 23 14 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FC [19:13:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:13:07]wFMCommunicate OK [19:13:07]SAM_PROTO_GetShiftState done [19:13:07]FM_GetShiftState done [19:13:07]req_shift_opened done [19:13:07]requested_item shift.open_date is exist - process it [19:13:07]req_shift_open_date [19:13:07]req_shift_open_date done [19:13:07]produce_requested_data done [19:13:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165820,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:13:07]process_action_free close_receipt [19:13:07]json_value_free [19:13:07]json_value_free done [19:13:07]process_json_proto returns [19:13:07]Send response to host [19:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165820,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:13:07]free response buf [19:13:07]execute_script done [19:13:07]execute_script returns [19:13:07]free content buf [19:13:07]Sock 9.Close socket [19:13:07]Sock 9.Thread stoped [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:17]accept exits with 7 [19:13:17]New connection [19:13:17]New thread 3066920292 created [19:13:17]Thread 3066776932 joined [19:13:17]Waiting for new connection... [19:13:17] Sock 7.Parse request [19:13:17]Sock 7.Check first char [19:13:17]Sock 7.First char is OK [19:13:17]request: POST /json_proto HTTP/1.0 [19:13:17]Method: POST [19:13:17]URL: /json_proto [19:13:17]Method is POST - this is cgi request [19:13:17]url: /json_proto [19:13:17]query_string will be loaded in cgi processing [19:13:17]execute_cgi json_proto POST (null) [19:13:17]execute_cgi path=json_proto method=POST [19:13:17]POST find Content-Length [19:13:17]Host: 172.17.53.195:8080 [19:13:17]Content-Length: 677 [19:13:17]Content-Type: application/json [19:13:17] [19:13:17]POST finish read [19:13:17]Found Content-Length = 677 [19:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:17]execute_script... [19:13: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)220389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:17]POST & json_proto [19:13:17]process_json_proto [19:13:17]json parsed OK: [19:13:17]protocol is kg_v1.0 [19:13:17]action value=close_receipt [19:13:17]process_action close_receipt [19:13:17]cmd_close_receipt [19:13:17]MH_GetDate [19:13:17]Write to MH i2c: F0 00 00 24 14 27 [19:13:17]Write i2c OK [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: F0 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: F0 09 00 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: F0 09 00 24 14 00 5B 56 15 67 21 48 4A 65 75 [19:13:17]GetLastDocTimeStamp 1729451596 [19:13:17]current date 1729451611 [19:13:17]FM_GetShiftState [19:13:17]SAM_PROTO_GetShiftState [19:13:17]wFMCommunicate request_size=4 [19:13:17]MH_SAM_APDU [19:13:17]CAPDU: 80 13 01 00 [19:13:17]Write to MH i2c: E2 08 00 25 14 80 13 01 00 00 00 00 00 B6 [19:13:17]Write i2c OK [19:13:17]MH_I2C_Read... [19:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:17]Read from MH i2c: E2 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: E2 0E 00 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: E2 0E 00 25 14 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FE [19:13:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:13:17]wFMCommunicate OK [19:13:17]SAM_PROTO_GetShiftState done [19:13:17]FM_GetShiftState done [19:13:17]opened in 1729384561 [19:13:17]opened+sec_in_day 1729470961 [19:13:17]quantity*price = 49974 [19:13:17]sum+1 = 49975 [19:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 303 20.10.2024 19:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165821 ФПД: 220601477450402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191331&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165821&fm=220601477450402&tin=02508201610067®Number=0000000000091764&sum=49900 [19:13:18]StoreToDocumentArchive [19:13:18]shift 534 fd 165821 [19:13:18]save to /storage/0534/doc_00165821 [19:13:18]save last doc name /storage/0534/doc_00165821 to /storage/kkm_last_doc_name [19:13:18]save OK [19:13:18]Clear old archive folders... [19:13:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:18]tlvbuf is 01839F40 [19:13:18]SAM_PROTO_ClearQueue [19:13:18]wFMCommunicate request_size=4 [19:13:18]MH_SAM_APDU [19:13:18]CAPDU: 80 09 00 00 [19:13:18]Write to MH i2c: E2 08 00 32 14 80 09 00 00 00 00 00 00 B8 [19:13:18]Write i2c OK [19:13:18]MH_I2C_Read... [19:13:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:18]Read from MH i2c: E2 [19:13:18]MH_I2C_Read... [19:13:18]Read from MH i2c: E2 03 00 [19:13:18]MH_I2C_Read... [19:13:18]Read from MH i2c: E2 03 00 32 14 00 90 00 BA [19:13:18]RAPDU: 90 00 [19:13:18]wFMCommunicate OK [19:13:18]SAM_PROTO_ClearQueue done [19:13:18]KKMCreateOFDPacket [19:13:18]OFDProtocolAddRootSTLVToBuf [19:13:18]FM_MakeSignedData [19:13:18]FM_MakeSignedData [19:13:18]SAM_PROTO_SignData [19:13:18]wFMCommunicate request_size=4 [19:13:18]MH_SAM_APDU [19:13:18]CAPDU: 80 0D 01 02 [19:13:18]Write to MH i2c: E2 08 00 33 14 80 0D 01 02 00 00 00 00 C0 [19:13:18]Write i2c OK [19:13:18]MH_I2C_Read... [19:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:19]Read from MH i2c: E2 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 03 00 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 03 00 33 14 00 90 00 BB [19:13:19]RAPDU: 90 00 [19:13:19]wFMCommunicate OK [19:13:19]wFMCommunicate request_size=255 [19:13:19]MH_SAM_APDU [19:13: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 5B 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 87 02 00 35 04 06 00 C8 [19:13:19]Write to MH i2c: E2 02 01 34 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 5B 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 87 02 00 35 04 06 00 C8 00 00 BA [19:13:19]Write i2c OK [19:13:19]MH_I2C_Read... [19:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:19]Read from MH i2c: E2 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 03 00 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 03 00 34 14 00 90 00 BC [19:13:19]RAPDU: 90 00 [19:13:19]wFMCommunicate OK [19:13:19]wFMCommunicate request_size=10 [19:13:19]MH_SAM_APDU [19:13:19]CAPDU: 80 0D 02 02 05 A2 C8 B3 4A A2 [19:13:19]Write to MH i2c: E2 0D 00 35 14 80 0D 02 02 05 00 A2 C8 B3 4A A2 00 00 D6 [19:13:19]Write i2c OK [19:13:19]MH_I2C_Read... [19:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:19]Read from MH i2c: E2 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 03 00 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [19:13:19]RAPDU: 90 00 [19:13:19]wFMCommunicate OK [19:13:19]wFMCommunicate request_size=4 [19:13:19]MH_SAM_APDU [19:13:19]CAPDU: 80 0D 03 02 [19:13:19]Write to MH i2c: E2 08 00 36 14 80 0D 03 02 00 00 00 00 C5 [19:13:19]Write i2c OK [19:13:19]MH_I2C_Read... [19:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:19]Read from MH i2c: E2 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 0B 00 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 0B 00 36 14 00 DE 4F 49 99 CB A2 E9 30 90 00 5B [19:13:19]RAPDU: DE 4F 49 99 CB A2 E9 30 90 00 [19:13:19]wFMCommunicate OK [19:13:19]SAM_PROTO_SignData done [19:13:19]FM_MakeSignedData done [19:13:19]CreateOFDProtocolMessage [19:13:19]wFMCommunicate request_size=4 [19:13:19]MH_SAM_APDU [19:13:19]CAPDU: 80 11 00 00 [19:13:19]Write to MH i2c: E2 08 00 37 14 80 11 00 00 00 00 00 00 C5 [19:13:19]Write i2c OK [19:13:19]MH_I2C_Read... [19:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:19]Read from MH i2c: E2 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 17 00 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: E2 17 00 37 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [19:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:13:19]wFMCommunicate OK [19:13:19]CreateOFDProtocolMessage done [19:13:19]OFDSenderStorePacket 165821 [19:13:19]StoreOFDPacket docnum=165821 [19:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 09 00 07 01 65 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 5B 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 87 02 00 35 04 06 00 C8 A2 C8 B3 4A A2 DE 4F 49 99 CB A2 E9 30 [19:13:19]CheckFolder [19:13:19]dirname=/storage/ofd_packets [19:13:19]CheckFolder done [19:13:19]ProducePacketName [19:13:19]name=ofd_packets/00165821 [19:13:19]NVStorageSaveData ofd_packets/00165821 [19:13:19]File name is /storage/ofd_packets/00165821 [19:13:19]Write 301 bytes [19:13:19]NVStorageSaveData done [19:13:19]OFDSenderStorePacket done [19:13:19]KKMCreateOFDPacket done [19:13:19]NVStorageSaveData kkm_last_timestamp [19:13:19]File name is /storage/kkm_last_timestamp [19:13:19]Write 4 bytes [19:13:19]NVStorageSaveData done [19:13:19]ExternCall_PrintAddStr [19:13:19]wPrintStart [19:13:19]Write to MH i2c: 01 00 00 38 14 4C [19:13:19]Write i2c OK [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: 01 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: 01 07 00 [19:13:19]MH_I2C_Read... [19:13:19]Read from MH i2c: 01 07 00 38 14 00 00 00 00 00 FF 0F 61 [19:13:19]RasterBufferAndPrint [19:13:19]line Счет N : (1)220389 [19:13:19]line ИНН: 02508201610067 [19:13:19]line Контрольно-Кассовый Чек [19:13:19]line ПРОДАЖА [19:13:19]line ТРК (МРК, ГНК) : 13 [19:13:19]line Товар: 2710124130 [19:13:19]line Аи-92-К-5 [19:13:19]line 7.470 * 66.90 [19:13:19]line = 499.74 [19:13:19]line НДС 12% НСП 1% [19:13:19]line > о реализуемом товаре [19:13:19]line ОКРУГЛЕНИЕ: -0.74 [19:13:19]line ИТОГО: 499.00 [19:13:19]line Внесено: 500.00 [19:13:19]line СДАЧА: 1.00 [19:13:19]line НСП 1% : 4.42 [19:13:19]line НДС 12% : 53.07 [19:13:19]line Наличными: 499.00 [19:13:19]line Безнал.: 0.00 [19:13:19]line Место: АЗС № 161 "Партнер Нефть" [19:13:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:13:19]line СНО: Общий режим [19:13:19]line Чек 303 20.10.2024 19:13 [19:13:19]line Смена: 534 ФФД: 1.0 [19:13:19]line ЗНМ: 0300000104 [19:13:19]line РНМ: 0000000000091764 [19:13:19]line Версия ККМ: 001 [19:13:19]line ФМ: 0000000000871759 [19:13:19]line ФД: 165821 [19:13:19]line ФПД: 220601477450402 [19:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191331&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165821&fm=220601477450402&tin=02508201610067®Number=0000000000091764&sum=49900 [19:13:19]OFD Sender: Processing packet 165821 [packets to send 48, broken 47] [19:13:19]ProducePacketName [19:13:19]name=ofd_packets/00165821 [19:13:19]OFD Sender: To server: pG, [19:13:19]CommunicateWithHost lk.salyk.kg:30040 [19:13:19]ConnectInit lk.salyk.kg [19:13:19]written 0, free lines is 4095 [19:13:19]Connected sock=10 [19:13:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 09 00 07 01 65 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 5B 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 87 02 00 35 04 06 00 C8 A2 C8 B3 4A A2 DE 4F 49 99 CB A2 E9 30 [19:13:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CE EC 47 00 BA 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 87 02 00 F4 03 04 00 CC FC 14 67 B6 04 01 00 00 77 E4 3C F7 51 95 40 A4 [19:13:20]CommunicateWithHost err = 0 [19:13:20]CheckOFDResponse [19:13:20]1017 (14) - 77093643461234 [19:13:20]1041 (16) - 0000000000871759 [19:13:20]1040 (4) - 165821 [19:13:20]1012 (4) - 20.10.2024 12:51 [19:13:20]1206 (1) - 0 [19:13:20]OFD Sender: Remove packet 165821 [19:13:20]ProducePacketName [19:13:20]name=ofd_packets/00165821 [19:13:20]NVStorageDeleteData [19:13:20]Write to MH i2c: 01 00 00 63 14 77 [19:13:20]Write i2c OK [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: 01 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: 01 07 00 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: 01 07 00 63 14 00 00 00 00 00 B7 0C 41 [19:13:20]RasterBufferAndPrint [19:13:20]line [19:13:20]line [19:13:20]line [19:13:20]line [19:13:20]line [19:13:20]written 0, free lines is 3262 [19:13:20]MH_Cut [19:13:20]Write to MH i2c: D1 01 00 6A 14 01 50 [19:13:20]Write i2c OK [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: D1 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: D1 01 00 [19:13:20]MH_I2C_Read... [19:13:20]Read from MH i2c: D1 01 00 6A 14 00 4F [19:13:20]Write to MH i2c: 01 00 00 6B 14 7F [19:13:20]Write i2c OK [19:13:20]MH_I2C_Read... [19:13:20]OFD Sender: No OFD packet to send [19:13:21]*** Cut start [19:13:21]*** Partial cut [19:13:21]*** CUTSNS_PIN = 1 [19:13:21]*** CUTSNS_PIN = 0 [19:13:21]*** Brake cut motor [19:13:21]Read from MH i2c: 01 [19:13:21]MH_I2C_Read... [19:13:21]*** Stop cut motor [19:13:21]*** Cut end [19:13:21]Read from MH i2c: 01 07 00 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 FF 0F 94 [19:13:21]process_action close_receipt done [19:13:21]requested_data is exist [19:13:21]produce_requested_data [19:13:21]requested_item fm.sn is exist - process it [19:13:21]wFMCommunicate request_size=4 [19:13:21]MH_SAM_APDU [19:13:21]CAPDU: 80 11 00 00 [19:13:21]Write to MH i2c: E2 08 00 6C 14 80 11 00 00 00 00 00 00 FA [19:13:21]Write i2c OK [19:13:21]MH_I2C_Read... [19:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:21]Read from MH i2c: E2 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 17 00 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 17 00 6C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [19:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:13:21]wFMCommunicate OK [19:13:21]requested_item fd.num is exist - process it [19:13:21]SAM_PROTO_GetFieldsCounters [19:13:21]wFMCommunicate request_size=4 [19:13:21]MH_SAM_APDU [19:13:21]CAPDU: 80 13 00 00 [19:13:21]Write to MH i2c: E2 08 00 6D 14 80 13 00 00 00 00 00 00 FD [19:13:21]Write i2c OK [19:13:21]MH_I2C_Read... [19:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:21]Read from MH i2c: E2 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 62 00 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 62 00 6D 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 87 02 00 0E 04 04 00 16 02 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 13 [19:13: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 87 02 00 0E 04 04 00 16 02 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:13:21]wFMCommunicate OK [19:13:21]SAM_PROTO_GetFieldsCounters done [19:13:21]requested_item shift.num is exist - process it [19:13:21]requested_item shift.opened is exist - process it [19:13:21]req_shift_opened [19:13:21]FM_GetShiftState [19:13:21]SAM_PROTO_GetShiftState [19:13:21]wFMCommunicate request_size=4 [19:13:21]MH_SAM_APDU [19:13:21]CAPDU: 80 13 01 00 [19:13:21]Write to MH i2c: E2 08 00 6E 14 80 13 01 00 00 00 00 00 FF [19:13:21]Write i2c OK [19:13:21]MH_I2C_Read... [19:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:21]Read from MH i2c: E2 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 0E 00 [19:13:21]MH_I2C_Read... [19:13:21]Read from MH i2c: E2 0E 00 6E 14 00 09 00 01 71 50 14 67 00 00 00 00 90 00 47 [19:13:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:13:21]wFMCommunicate OK [19:13:21]SAM_PROTO_GetShiftState done [19:13:21]FM_GetShiftState done [19:13:21]req_shift_opened done [19:13:21]requested_item shift.open_date is exist - process it [19:13:21]req_shift_open_date [19:13:21]req_shift_open_date done [19:13:21]produce_requested_data done [19:13:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165821,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:13:21]process_action_free close_receipt [19:13:21]json_value_free [19:13:21]json_value_free done [19:13:21]process_json_proto returns [19:13:21]Send response to host [19:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165821,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:13:21]free response buf [19:13:21]execute_script done [19:13:21]execute_script returns [19:13:21]free content buf [19:13:21]Sock 7.Close socket [19:13:21]Sock 7.Thread stoped [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:22]accept exits with 9 [19:15:22]New connection [19:15:22]New thread 3066776932 created [19:15:22]Thread 3066920292 joined [19:15:22]Waiting for new connection... [19:15:22] Sock 9.Parse request [19:15:22]Sock 9.Check first char [19:15:22]Sock 9.First char is OK [19:15:22]request: POST /json_proto HTTP/1.0 [19:15:22]Method: POST [19:15:22]URL: /json_proto [19:15:22]Method is POST - this is cgi request [19:15:22]url: /json_proto [19:15:22]query_string will be loaded in cgi processing [19:15:22]execute_cgi json_proto POST (null) [19:15:22]execute_cgi path=json_proto method=POST [19:15:22]POST find Content-Length [19:15:22]Host: 172.17.53.195:8080 [19:15:22]Content-Length: 682 [19:15:22]Content-Type: application/json [19:15:22] [19:15:22]POST finish read [19:15:22]Found Content-Length = 682 [19:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:22]execute_script... [19:15:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:22]POST & json_proto [19:15:22]process_json_proto [19:15:22]json parsed OK: [19:15:22]protocol is kg_v1.0 [19:15:22]action value=close_receipt [19:15:22]process_action close_receipt [19:15:22]cmd_close_receipt [19:15:22]MH_GetDate [19:15:22]Write to MH i2c: F0 00 00 6F 14 72 [19:15:22]Write i2c OK [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: F0 [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: F0 09 00 [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: F0 09 00 6F 14 00 D8 56 15 67 21 48 4A 65 3D [19:15:22]GetLastDocTimeStamp 1729451611 [19:15:22]current date 1729451736 [19:15:22]FM_GetShiftState [19:15:22]SAM_PROTO_GetShiftState [19:15:22]wFMCommunicate request_size=4 [19:15:22]MH_SAM_APDU [19:15:22]CAPDU: 80 13 01 00 [19:15:22]Write to MH i2c: E2 08 00 70 14 80 13 01 00 00 00 00 00 01 [19:15:22]Write i2c OK [19:15:22]MH_I2C_Read... [19:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:22]Read from MH i2c: E2 [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: E2 0E 00 [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: E2 0E 00 70 14 00 09 00 01 71 50 14 67 00 00 00 00 90 00 49 [19:15:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:15:22]wFMCommunicate OK [19:15:22]SAM_PROTO_GetShiftState done [19:15:22]FM_GetShiftState done [19:15:22]opened in 1729384561 [19:15:22]opened+sec_in_day 1729470961 [19:15:22]quantity*price = 100015 [19:15:22]sum+1 = 100017 [19:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 304 20.10.2024 19:15 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165822 ФПД: 6221469684603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191536&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165822&fm=6221469684603&tin=02508201610067®Number=0000000000091764&sum=100000 [19:15:23]StoreToDocumentArchive [19:15:23]shift 534 fd 165822 [19:15:23]save to /storage/0534/doc_00165822 [19:15:23]save last doc name /storage/0534/doc_00165822 to /storage/kkm_last_doc_name [19:15:23]save OK [19:15:23]Clear old archive folders... [19:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:23]tlvbuf is 0147D640 [19:15:23]SAM_PROTO_ClearQueue [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 09 00 00 [19:15:23]Write to MH i2c: E2 08 00 7D 14 80 09 00 00 00 00 00 00 03 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]SAM_PROTO_ClearQueue done [19:15:23]KKMCreateOFDPacket [19:15:23]OFDProtocolAddRootSTLVToBuf [19:15:23]FM_MakeSignedData [19:15:23]FM_MakeSignedData [19:15:23]SAM_PROTO_SignData [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 01 02 [19:15:23]Write to MH i2c: E2 08 00 7E 14 80 0D 01 02 00 00 00 00 0B [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]wFMCommunicate request_size=255 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D8 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 87 02 00 35 04 06 00 05 [19:15:23]Write to MH i2c: E2 02 01 7F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D8 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 87 02 00 35 04 06 00 05 00 00 DA [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 7F 14 00 90 00 07 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]wFMCommunicate request_size=10 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 02 02 05 A8 8C 7D 93 7B [19:15:23]Write to MH i2c: E2 0D 00 80 14 80 0D 02 02 05 00 A8 8C 7D 93 7B 00 00 D7 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 80 14 00 90 00 08 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 03 02 [19:15:23]Write to MH i2c: E2 08 00 81 14 80 0D 03 02 00 00 00 00 10 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 0B 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 0B 00 81 14 00 EA D3 92 B2 F0 56 54 8E 90 00 3A [19:15:23]RAPDU: EA D3 92 B2 F0 56 54 8E 90 00 [19:15:23]wFMCommunicate OK [19:15:23]SAM_PROTO_SignData done [19:15:23]FM_MakeSignedData done [19:15:23]CreateOFDProtocolMessage [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 11 00 00 [19:15:23]Write to MH i2c: E2 08 00 82 14 80 11 00 00 00 00 00 00 10 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 17 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 17 00 82 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [19:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:15:23]wFMCommunicate OK [19:15:23]CreateOFDProtocolMessage done [19:15:23]OFDSenderStorePacket 165822 [19:15:23]StoreOFDPacket docnum=165822 [19:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA D2 07 01 BE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D8 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 87 02 00 35 04 06 00 05 A8 8C 7D 93 7B EA D3 92 B2 F0 56 54 8E [19:15:23]CheckFolder [19:15:23]dirname=/storage/ofd_packets [19:15:23]CheckFolder done [19:15:23]ProducePacketName [19:15:23]name=ofd_packets/00165822 [19:15:23]NVStorageSaveData ofd_packets/00165822 [19:15:23]File name is /storage/ofd_packets/00165822 [19:15:23]Write 301 bytes [19:15:23]NVStorageSaveData done [19:15:23]OFDSenderStorePacket done [19:15:23]KKMCreateOFDPacket done [19:15:23]NVStorageSaveData kkm_last_timestamp [19:15:23]File name is /storage/kkm_last_timestamp [19:15:23]Write 4 bytes [19:15:23]NVStorageSaveData done [19:15:23]ExternCall_PrintAddStr [19:15:23]wPrintStart [19:15:23]Write to MH i2c: 01 00 00 83 14 97 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: 01 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: 01 07 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: 01 07 00 83 14 00 00 00 00 00 FF 0F AC [19:15:23]RasterBufferAndPrint [19:15:23]line Счет N : (1)220391 [19:15:23]line ИНН: 02508201610067 [19:15:23]line Контрольно-Кассовый Чек [19:15:23]line ПРОДАЖА [19:15:23]line ТРК (МРК, ГНК) : 13 [19:15:23]line Товар: 2710124130 [19:15:23]line Аи-92-К-5 [19:15:23]line 14.950 * 66.90 [19:15:23]line = 1000.16 [19:15:23]line НДС 12% НСП 1% [19:15:23]line > о реализуемом товаре [19:15:23]line ОКРУГЛЕНИЕ: -0.16 [19:15:23]line ИТОГО: 1000.00 [19:15:23]line Внесено: 1000.00 [19:15:23]line СДАЧА: 0.00 [19:15:23]line НСП 1% : 8.85 [19:15:23]line НДС 12% : 106.21 [19:15:23]line Наличными: 1000.00 [19:15:23]line Безнал.: 0.00 [19:15:23]line Место: АЗС № 161 "Партнер Нефть" [19:15:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:15:23]line СНО: Общий режим [19:15:23]line Чек 304 20.10.2024 19:15 [19:15:23]line Смена: 534 ФФД: 1.0 [19:15:23]line ЗНМ: 0300000104 [19:15:23]line РНМ: 0000000000091764 [19:15:23]line Версия ККМ: 001 [19:15:23]line ФМ: 0000000000871759 [19:15:23]line ФД: 165822 [19:15:23]line ФПД: 6221469684603 [19:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191536&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165822&fm=6221469684603&tin=02508201610067®Number=0000000000091764&sum=100000 [19:15:24]OFD Sender: Processing packet 165822 [packets to send 48, broken 47] [19:15:24]ProducePacketName [19:15:24]name=ofd_packets/00165822 [19:15:24]OFD Sender: To server: pG, [19:15:24]CommunicateWithHost lk.salyk.kg:30040 [19:15:24]ConnectInit lk.salyk.kg [19:15:24]written 0, free lines is 4095 [19:15:24]Connected sock=10 [19: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 31 37 35 39 0F 01 00 00 CA D2 07 01 BE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D8 56 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 87 02 00 35 04 06 00 05 A8 8C 7D 93 7B EA D3 92 B2 F0 56 54 8E [19:15:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 92 8A 47 00 9D 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 31 37 35 39 10 04 04 00 BE 87 02 00 F4 03 04 00 49 FD 14 67 B6 04 01 00 00 81 2D AF 37 A1 2E 0B 63 [19:15:24]CommunicateWithHost err = 0 [19:15:24]CheckOFDResponse [19:15:24]1017 (14) - 77093643461234 [19:15:24]1041 (16) - 0000000000871759 [19:15:24]1040 (4) - 165822 [19:15:24]1012 (4) - 20.10.2024 12:53 [19:15:24]1206 (1) - 0 [19:15:24]OFD Sender: Remove packet 165822 [19:15:24]ProducePacketName [19:15:24]name=ofd_packets/00165822 [19:15:24]NVStorageDeleteData [19:15:24]Write to MH i2c: 01 00 00 AE 14 C2 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 07 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 07 00 AE 14 00 00 00 00 00 B6 0C 8B [19:15:24]RasterBufferAndPrint [19:15:24]line [19:15:24]line [19:15:24]line [19:15:24]line [19:15:24]line [19:15:24]written 0, free lines is 3258 [19:15:24]MH_Cut [19:15:24]Write to MH i2c: D1 01 00 B5 14 01 9B [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: D1 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: D1 01 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: D1 01 00 B5 14 00 9A [19:15:24]Write to MH i2c: 01 00 00 B6 14 CA [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:25]OFD Sender: No OFD packet to send [19:15:25]*** Cut start [19:15:25]*** Partial cut [19:15:25]*** CUTSNS_PIN = 1 [19:15:25]*** CUTSNS_PIN = 0 [19:15:25]*** Brake cut motor [19:15:26]Read from MH i2c: 01 [19:15:26]MH_I2C_Read... [19:15:26]*** Stop cut motor [19:15:26]*** Cut end [19:15:26]Read from MH i2c: 01 07 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: 01 07 00 B6 14 00 00 00 00 00 FF 0F DF [19:15:26]process_action close_receipt done [19:15:26]requested_data is exist [19:15:26]produce_requested_data [19:15:26]requested_item fm.sn is exist - process it [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 11 00 00 [19:15:26]Write to MH i2c: E2 08 00 B7 14 80 11 00 00 00 00 00 00 45 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 17 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 17 00 B7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [19:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:15:26]wFMCommunicate OK [19:15:26]requested_item fd.num is exist - process it [19:15:26]SAM_PROTO_GetFieldsCounters [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 13 00 00 [19:15:26]Write to MH i2c: E2 08 00 B8 14 80 13 00 00 00 00 00 00 48 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 62 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 62 00 B8 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 87 02 00 0E 04 04 00 16 02 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 62 [19:15:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 87 02 00 0E 04 04 00 16 02 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:15:26]wFMCommunicate OK [19:15:26]SAM_PROTO_GetFieldsCounters done [19:15:26]requested_item shift.num is exist - process it [19:15:26]requested_item shift.opened is exist - process it [19:15:26]req_shift_opened [19:15:26]FM_GetShiftState [19:15:26]SAM_PROTO_GetShiftState [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 13 01 00 [19:15:26]Write to MH i2c: E2 08 00 B9 14 80 13 01 00 00 00 00 00 4A [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 0E 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 0E 00 B9 14 00 09 00 01 71 50 14 67 00 00 00 00 90 00 92 [19:15:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:15:26]wFMCommunicate OK [19:15:26]SAM_PROTO_GetShiftState done [19:15:26]FM_GetShiftState done [19:15:26]req_shift_opened done [19:15:26]requested_item shift.open_date is exist - process it [19:15:26]req_shift_open_date [19:15:26]req_shift_open_date done [19:15:26]produce_requested_data done [19:15:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165822,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:15:26]process_action_free close_receipt [19:15:26]json_value_free [19:15:26]json_value_free done [19:15:26]process_json_proto returns [19:15:26]Send response to host [19:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165822,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:15:26]free response buf [19:15:26]execute_script done [19:15:26]execute_script returns [19:15:26]free content buf [19:15:26]Sock 9.Close socket [19:15:26]Sock 9.Thread stoped [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:18]accept exits with 7 [19:16:18]New connection [19:16:18]New thread 3066920292 created [19:16:18]Thread 3066776932 joined [19:16:18]Waiting for new connection... [19:16:18] Sock 7.Parse request [19:16:18]Sock 7.Check first char [19:16:18]Sock 7.First char is OK [19:16:18]request: POST /json_proto HTTP/1.0 [19:16:18]Method: POST [19:16:18]URL: /json_proto [19:16:18]Method is POST - this is cgi request [19:16:18]url: /json_proto [19:16:18]query_string will be loaded in cgi processing [19:16:18]execute_cgi json_proto POST (null) [19:16:18]execute_cgi path=json_proto method=POST [19:16:18]POST find Content-Length [19:16:18]Host: 172.17.53.195:8080 [19:16:18]Content-Length: 682 [19:16:18]Content-Type: application/json [19:16:18] [19:16:18]POST finish read [19:16:18]Found Content-Length = 682 [19:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.270, "sum" : 1355.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1355.00, "total" : 1355.00, "payments": [ { "type": 0, "sum" : 1355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:18]execute_script... [19:16: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)220390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.270, "sum" : 1355.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1355.00, "total" : 1355.00, "payments": [ { "type": 0, "sum" : 1355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:18]POST & json_proto [19:16:18]process_json_proto [19:16:18]json parsed OK: [19:16:18]protocol is kg_v1.0 [19:16:18]action value=close_receipt [19:16:18]process_action close_receipt [19:16:18]cmd_close_receipt [19:16:18]MH_GetDate [19:16:18]Write to MH i2c: F0 00 00 BA 14 BD [19:16:18]Write i2c OK [19:16:18]MH_I2C_Read... [19:16:18]Read from MH i2c: F0 [19:16:18]MH_I2C_Read... [19:16:18]Read from MH i2c: F0 09 00 [19:16:18]MH_I2C_Read... [19:16:18]Read from MH i2c: F0 09 00 BA 14 00 10 57 15 67 21 48 4A 65 C1 [19:16:18]GetLastDocTimeStamp 1729451736 [19:16:18]current date 1729451792 [19:16:18]FM_GetShiftState [19:16:18]SAM_PROTO_GetShiftState [19:16:18]wFMCommunicate request_size=4 [19:16:18]MH_SAM_APDU [19:16:18]CAPDU: 80 13 01 00 [19:16:18]Write to MH i2c: E2 08 00 BB 14 80 13 01 00 00 00 00 00 4C [19:16:18]Write i2c OK [19:16:18]MH_I2C_Read... [19:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:19]Read from MH i2c: E2 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 0E 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 0E 00 BB 14 00 09 00 01 71 50 14 67 00 00 00 00 90 00 94 [19:16:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:16:19]wFMCommunicate OK [19:16:19]SAM_PROTO_GetShiftState done [19:16:19]FM_GetShiftState done [19:16:19]opened in 1729384561 [19:16:19]opened+sec_in_day 1729470961 [19:16:19]quantity*price = 135563 [19:16:19]sum+1 = 135564 [19:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1355.00 Внесено: 1355.00 СДАЧА: 0.00 НСП 1% : 12.00 НДС 12% : 143.96 Наличными: 1355.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 305 20.10.2024 19:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165823 ФПД: 191654071879997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191632&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165823&fm=191654071879997&tin=02508201610067®Number=0000000000091764&sum=135500 [19:16:20]StoreToDocumentArchive [19:16:20]shift 534 fd 165823 [19:16:20]save to /storage/0534/doc_00165823 [19:16:20]save last doc name /storage/0534/doc_00165823 to /storage/kkm_last_doc_name [19:16:20]save OK [19:16:20]Clear old archive folders... [19:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:20]tlvbuf is 016AB2F0 [19:16:20]SAM_PROTO_ClearQueue [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 09 00 00 [19:16:20]Write to MH i2c: E2 08 00 C8 14 80 09 00 00 00 00 00 00 4E [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:20]OFD Sender: No OFD packet to send [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 C8 14 00 90 00 50 [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]SAM_PROTO_ClearQueue done [19:16:20]KKMCreateOFDPacket [19:16:20]OFDProtocolAddRootSTLVToBuf [19:16:20]FM_MakeSignedData [19:16:20]FM_MakeSignedData [19:16:20]SAM_PROTO_SignData [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 0D 01 02 [19:16:20]Write to MH i2c: E2 08 00 C9 14 80 0D 01 02 00 00 00 00 56 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 C9 14 00 90 00 51 [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]wFMCommunicate request_size=255 [19:16:20]MH_SAM_APDU [19:16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 47 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 38 00 00 00 00 07 04 06 00 4C 11 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 10 57 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 87 02 00 35 04 06 00 AE [19:16:20]Write to MH i2c: E2 02 01 CA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 47 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 38 00 00 00 00 07 04 06 00 4C 11 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 10 57 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 87 02 00 35 04 06 00 AE 00 00 CF [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 CA 14 00 90 00 52 [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]wFMCommunicate request_size=10 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 0D 02 02 05 4E F0 DF C9 3D [19:16:20]Write to MH i2c: E2 0D 00 CB 14 80 0D 02 02 05 00 4E F0 DF C9 3D 00 00 86 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 CB 14 00 90 00 53 [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 0D 03 02 [19:16:20]Write to MH i2c: E2 08 00 CC 14 80 0D 03 02 00 00 00 00 5B [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 0B 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 0B 00 CC 14 00 1C EA 05 58 C6 92 01 85 90 00 9D [19:16:20]RAPDU: 1C EA 05 58 C6 92 01 85 90 00 [19:16:20]wFMCommunicate OK [19:16:20]SAM_PROTO_SignData done [19:16:20]FM_MakeSignedData done [19:16:20]CreateOFDProtocolMessage [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 11 00 00 [19:16:20]Write to MH i2c: E2 08 00 CD 14 80 11 00 00 00 00 00 00 5B [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 17 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 17 00 CD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [19:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:16:20]wFMCommunicate OK [19:16:20]CreateOFDProtocolMessage done [19:16:20]OFDSenderStorePacket 165823 [19:16:20]StoreOFDPacket docnum=165823 [19:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D6 F4 07 01 E5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 47 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 38 00 00 00 00 07 04 06 00 4C 11 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 10 57 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 87 02 00 35 04 06 00 AE 4E F0 DF C9 3D 1C EA 05 58 C6 92 01 85 [19:16:20]CheckFolder [19:16:20]dirname=/storage/ofd_packets [19:16:20]CheckFolder done [19:16:20]ProducePacketName [19:16:20]name=ofd_packets/00165823 [19:16:20]NVStorageSaveData ofd_packets/00165823 [19:16:20]File name is /storage/ofd_packets/00165823 [19:16:20]Write 301 bytes [19:16:20]NVStorageSaveData done [19:16:20]OFDSenderStorePacket done [19:16:20]KKMCreateOFDPacket done [19:16:20]NVStorageSaveData kkm_last_timestamp [19:16:20]File name is /storage/kkm_last_timestamp [19:16:20]Write 4 bytes [19:16:20]NVStorageSaveData done [19:16:20]ExternCall_PrintAddStr [19:16:20]wPrintStart [19:16:20]Write to MH i2c: 01 00 00 CE 14 E2 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: 01 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: 01 07 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: 01 07 00 CE 14 00 00 00 00 00 FF 0F F7 [19:16:20]RasterBufferAndPrint [19:16:20]line Счет N : (1)220390 [19:16:20]line ИНН: 02508201610067 [19:16:20]line Контрольно-Кассовый Чек [19:16:20]line ПРОДАЖА [19:16:20]line ТРК (МРК, ГНК) : 44 [19:16:20]line Товар: 2710124500 [19:16:20]line Аи-95-К-5 [19:16:20]line 18.270 * 74.20 [19:16:20]line = 1355.63 [19:16:20]line НДС 12% НСП 1% [19:16:20]line > о реализуемом товаре [19:16:20]line ОКРУГЛЕНИЕ: -0.63 [19:16:20]line ИТОГО: 1355.00 [19:16:20]line Внесено: 1355.00 [19:16:20]line СДАЧА: 0.00 [19:16:20]line НСП 1% : 12.00 [19:16:20]line НДС 12% : 143.96 [19:16:20]line Наличными: 1355.00 [19:16:20]line Безнал.: 0.00 [19:16:20]line Место: АЗС № 161 "Партнер Нефть" [19:16:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:16:20]line СНО: Общий режим [19:16:20]line Чек 305 20.10.2024 19:16 [19:16:20]line Смена: 534 ФФД: 1.0 [19:16:20]line ЗНМ: 0300000104 [19:16:20]line РНМ: 0000000000091764 [19:16:20]line Версия ККМ: 001 [19:16:20]line ФМ: 0000000000871759 [19:16:20]line ФД: 165823 [19:16:20]line ФПД: 191654071879997 [19:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191632&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165823&fm=191654071879997&tin=02508201610067®Number=0000000000091764&sum=135500 [19:16:21]OFD Sender: Processing packet 165823 [packets to send 48, broken 47] [19:16:21]ProducePacketName [19:16:21]name=ofd_packets/00165823 [19:16:21]OFD Sender: To server: pG, [19:16:21]CommunicateWithHost lk.salyk.kg:30040 [19:16:21]ConnectInit lk.salyk.kg [19:16:21]written 0, free lines is 4095 [19:16:21]Connected sock=10 [19:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D6 F4 07 01 E5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 47 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 38 00 00 00 00 07 04 06 00 4C 11 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 10 57 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 87 02 00 35 04 06 00 AE 4E F0 DF C9 3D 1C EA 05 58 C6 92 01 85 [19:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3A A9 47 00 DA F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 87 02 00 F4 03 04 00 81 FD 14 67 B6 04 01 00 00 0D 75 BD FD F3 49 AE 34 [19:16:21]CommunicateWithHost err = 0 [19:16:21]CheckOFDResponse [19:16:21]1017 (14) - 77093643461234 [19:16:21]1041 (16) - 0000000000871759 [19:16:21]1040 (4) - 165823 [19:16:21]1012 (4) - 20.10.2024 12:54 [19:16:21]1206 (1) - 0 [19:16:21]OFD Sender: Remove packet 165823 [19:16:21]ProducePacketName [19:16:21]name=ofd_packets/00165823 [19:16:21]NVStorageDeleteData [19:16:21]Write to MH i2c: 01 00 00 F9 14 0D [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 F9 14 00 00 00 00 00 C7 0C E7 [19:16:21]RasterBufferAndPrint [19:16:21]line [19:16:21]line [19:16:21]line [19:16:21]line [19:16:21]line [19:16:21]written 0, free lines is 3276 [19:16:21]MH_Cut [19:16:21]Write to MH i2c: D1 01 00 00 15 01 E7 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: D1 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: D1 01 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: D1 01 00 00 15 00 E6 [19:16:21]Write to MH i2c: 01 00 00 01 15 16 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]OFD Sender: No OFD packet to send [19:16:22]*** Cut start [19:16:22]*** Partial cut [19:16:22]*** CUTSNS_PIN = 1 [19:16:22]*** CUTSNS_PIN = 0 [19:16:22]*** Brake cut motor [19:16:22]Read from MH i2c: 01 [19:16:22]MH_I2C_Read... [19:16:22]*** Stop cut motor [19:16:22]*** Cut end [19:16:22]Read from MH i2c: 01 07 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 FF 0F 2B [19:16:22]process_action close_receipt done [19:16:22]requested_data is exist [19:16:22]produce_requested_data [19:16:22]requested_item fm.sn is exist - process it [19:16:22]wFMCommunicate request_size=4 [19:16:22]MH_SAM_APDU [19:16:22]CAPDU: 80 11 00 00 [19:16:22]Write to MH i2c: E2 08 00 02 15 80 11 00 00 00 00 00 00 91 [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:23]Read from MH i2c: E2 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 17 00 [19:16:23]MH_I2C_Read... [19:16:23]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 31 37 35 39 90 00 E9 [19:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:16:23]wFMCommunicate OK [19:16:23]requested_item fd.num is exist - process it [19:16:23]SAM_PROTO_GetFieldsCounters [19:16:23]wFMCommunicate request_size=4 [19:16:23]MH_SAM_APDU [19:16:23]CAPDU: 80 13 00 00 [19:16:23]Write to MH i2c: E2 08 00 03 15 80 13 00 00 00 00 00 00 94 [19:16:23]Write i2c OK [19:16:23]MH_I2C_Read... [19:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:23]Read from MH i2c: E2 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 62 00 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 62 00 03 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 87 02 00 0E 04 04 00 16 02 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 B2 [19:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 87 02 00 0E 04 04 00 16 02 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:16:23]wFMCommunicate OK [19:16:23]SAM_PROTO_GetFieldsCounters done [19:16:23]requested_item shift.num is exist - process it [19:16:23]requested_item shift.opened is exist - process it [19:16:23]req_shift_opened [19:16:23]FM_GetShiftState [19:16:23]SAM_PROTO_GetShiftState [19:16:23]wFMCommunicate request_size=4 [19:16:23]MH_SAM_APDU [19:16:23]CAPDU: 80 13 01 00 [19:16:23]Write to MH i2c: E2 08 00 04 15 80 13 01 00 00 00 00 00 96 [19:16:23]Write i2c OK [19:16:23]MH_I2C_Read... [19:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:23]Read from MH i2c: E2 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 0E 00 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 0E 00 04 15 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DE [19:16:23]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:16:23]wFMCommunicate OK [19:16:23]SAM_PROTO_GetShiftState done [19:16:23]FM_GetShiftState done [19:16:23]req_shift_opened done [19:16:23]requested_item shift.open_date is exist - process it [19:16:23]req_shift_open_date [19:16:23]req_shift_open_date done [19:16:23]produce_requested_data done [19:16:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165823,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:16:23]process_action_free close_receipt [19:16:23]json_value_free [19:16:23]json_value_free done [19:16:23]process_json_proto returns [19:16:23]Send response to host [19:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165823,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:16:23]free response buf [19:16:23]execute_script done [19:16:23]execute_script returns [19:16:23]free content buf [19:16:23]Sock 7.Close socket [19:16:23]Sock 7.Thread stoped [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:14]accept exits with 9 [19:22:14]New connection [19:22:14]New thread 3066776932 created [19:22:14]Thread 3066920292 joined [19:22:14]Waiting for new connection... [19:22:14] Sock 9.Parse request [19:22:14]Sock 9.Check first char [19:22:14]Sock 9.First char is OK [19:22:14]request: POST /json_proto HTTP/1.0 [19:22:14]Method: POST [19:22:14]URL: /json_proto [19:22:14]Method is POST - this is cgi request [19:22:14]url: /json_proto [19:22:14]query_string will be loaded in cgi processing [19:22:14]execute_cgi json_proto POST (null) [19:22:14]execute_cgi path=json_proto method=POST [19:22:14]POST find Content-Length [19:22:14]Host: 172.17.53.195:8080 [19:22:14]Content-Length: 675 [19:22:14]Content-Type: application/json [19:22:14] [19:22:14]POST finish read [19:22:14]Found Content-Length = 675 [19:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [19:22:14]execute_script... [19:22: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)220392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [19:22:14]POST & json_proto [19:22:14]process_json_proto [19:22:14]json parsed OK: [19:22:14]protocol is kg_v1.0 [19:22:14]action value=close_receipt [19:22:14]process_action close_receipt [19:22:14]cmd_close_receipt [19:22:14]MH_GetDate [19:22:14]Write to MH i2c: F0 00 00 05 15 09 [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: F0 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: F0 09 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: F0 09 00 05 15 00 73 58 15 67 21 48 4A 65 71 [19:22:14]GetLastDocTimeStamp 1729451792 [19:22:14]current date 1729452147 [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 06 15 80 13 01 00 00 00 00 00 98 [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 06 15 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E0 [19:22:14]RAPDU: 09 00 01 71 50 14 67 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]opened in 1729384561 [19:22:14]opened+sec_in_day 1729470961 [19:22:14]quantity*price = 80010 [19:22:14]sum+1 = 80011 [19:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 306 20.10.2024 19:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165824 ФПД: 29527022654724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192228&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165824&fm=29527022654724&tin=02508201610067®Number=0000000000091764&sum=80000 [19:22:15]StoreToDocumentArchive [19:22:15]shift 534 fd 165824 [19:22:15]save to /storage/0534/doc_00165824 [19:22:15]save last doc name /storage/0534/doc_00165824 to /storage/kkm_last_doc_name [19:22:15]save OK [19:22:15]Clear old archive folders... [19:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:15]tlvbuf is 01A75E50 [19:22:15]SAM_PROTO_ClearQueue [19:22:15]wFMCommunicate request_size=4 [19:22:15]MH_SAM_APDU [19:22:15]CAPDU: 80 09 00 00 [19:22:15]Write to MH i2c: E2 08 00 13 15 80 09 00 00 00 00 00 00 9A [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 03 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 03 00 13 15 00 90 00 9C [19:22:15]RAPDU: 90 00 [19:22:15]wFMCommunicate OK [19:22:15]SAM_PROTO_ClearQueue done [19:22:15]KKMCreateOFDPacket [19:22:15]OFDProtocolAddRootSTLVToBuf [19:22:15]FM_MakeSignedData [19:22:15]FM_MakeSignedData [19:22:15]SAM_PROTO_SignData [19:22:15]wFMCommunicate request_size=4 [19:22:15]MH_SAM_APDU [19:22:15]CAPDU: 80 0D 01 02 [19:22:15]Write to MH i2c: E2 08 00 14 15 80 0D 01 02 00 00 00 00 A2 [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:15]Read from MH i2c: E2 03 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 03 00 14 15 00 90 00 9D [19:22:15]RAPDU: 90 00 [19:22:15]wFMCommunicate OK [19:22:15]wFMCommunicate request_size=255 [19:22:15]MH_SAM_APDU [19:22: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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 32 01 00 00 F4 03 04 00 74 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 87 02 00 35 04 06 00 1A DA CB B2 [19:22:15]Write to MH i2c: E2 02 01 15 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 32 01 00 00 F4 03 04 00 74 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 87 02 00 35 04 06 00 1A DA CB B2 00 00 AE [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 03 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [19:22:15]RAPDU: 90 00 [19:22:15]wFMCommunicate OK [19:22:15]wFMCommunicate request_size=7 [19:22:15]MH_SAM_APDU [19:22:15]CAPDU: 80 0D 02 02 02 55 04 [19:22:15]Write to MH i2c: E2 0A 00 16 15 80 0D 02 02 02 00 55 04 00 00 02 [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 03 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [19:22:15]RAPDU: 90 00 [19:22:15]wFMCommunicate OK [19:22:15]wFMCommunicate request_size=4 [19:22:15]MH_SAM_APDU [19:22:15]CAPDU: 80 0D 03 02 [19:22:15]Write to MH i2c: E2 08 00 17 15 80 0D 03 02 00 00 00 00 A7 [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 0B 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 0B 00 17 15 00 31 2E 4E A7 6D 37 54 6A 90 00 5E [19:22:15]RAPDU: 31 2E 4E A7 6D 37 54 6A 90 00 [19:22:15]wFMCommunicate OK [19:22:15]SAM_PROTO_SignData done [19:22:15]FM_MakeSignedData done [19:22:15]CreateOFDProtocolMessage [19:22:15]wFMCommunicate request_size=4 [19:22:15]MH_SAM_APDU [19:22:15]CAPDU: 80 11 00 00 [19:22:15]Write to MH i2c: E2 08 00 18 15 80 11 00 00 00 00 00 00 A7 [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:15]Read from MH i2c: E2 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 17 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: E2 17 00 18 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [19:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:22:15]wFMCommunicate OK [19:22:15]CreateOFDProtocolMessage done [19:22:15]OFDSenderStorePacket 165824 [19:22:15]StoreOFDPacket docnum=165824 [19:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 78 F0 04 01 70 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 32 01 00 00 F4 03 04 00 74 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 87 02 00 35 04 06 00 1A DA CB B2 55 04 31 2E 4E A7 6D 37 54 6A [19:22:15]CheckFolder [19:22:15]dirname=/storage/ofd_packets [19:22:15]CheckFolder done [19:22:15]ProducePacketName [19:22:15]name=ofd_packets/00165824 [19:22:15]NVStorageSaveData ofd_packets/00165824 [19:22:15]File name is /storage/ofd_packets/00165824 [19:22:15]Write 298 bytes [19:22:15]NVStorageSaveData done [19:22:15]OFDSenderStorePacket done [19:22:15]KKMCreateOFDPacket done [19:22:15]NVStorageSaveData kkm_last_timestamp [19:22:15]File name is /storage/kkm_last_timestamp [19:22:15]Write 4 bytes [19:22:15]NVStorageSaveData done [19:22:15]ExternCall_PrintAddStr [19:22:15]wPrintStart [19:22:15]Write to MH i2c: 01 00 00 19 15 2E [19:22:15]Write i2c OK [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: 01 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: 01 07 00 [19:22:15]MH_I2C_Read... [19:22:15]Read from MH i2c: 01 07 00 19 15 00 00 00 00 00 FF 0F 43 [19:22:15]RasterBufferAndPrint [19:22:15]line Счет N : (1)220392 [19:22:15]line ИНН: 02508201610067 [19:22:15]line Контрольно-Кассовый Чек [19:22:15]line ПРОДАЖА [19:22:15]line ТРК (МРК, ГНК) : 41 [19:22:15]line Товар: 2710194210 [19:22:15]line ДТ-К-5 [19:22:15]line 10.500 * 76.20 [19:22:15]line = 800.10 [19:22:15]line НДС 12% НСП 1% [19:22:15]line > о реализуемом товаре [19:22:15]line ОКРУГЛЕНИЕ: -0.10 [19:22:15]line ИТОГО: 800.00 [19:22:15]line Внесено: 800.00 [19:22:15]line СДАЧА: 0.00 [19:22:15]line НСП 1% : 7.08 [19:22:15]line НДС 12% : 84.97 [19:22:15]line Наличными: 800.00 [19:22:15]line Безнал.: 0.00 [19:22:15]line Место: АЗС № 161 "Партнер Нефть" [19:22:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:22:15]line СНО: Общий режим [19:22:15]line Чек 306 20.10.2024 19:22 [19:22:15]line Смена: 534 ФФД: 1.0 [19:22:15]line ЗНМ: 0300000104 [19:22:15]line РНМ: 0000000000091764 [19:22:15]line Версия ККМ: 001 [19:22:15]line ФМ: 0000000000871759 [19:22:15]line ФД: 165824 [19:22:15]line ФПД: 29527022654724 [19:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192228&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165824&fm=29527022654724&tin=02508201610067®Number=0000000000091764&sum=80000 [19:22:16]OFD Sender: Processing packet 165824 [packets to send 48, broken 47] [19:22:16]ProducePacketName [19:22:16]name=ofd_packets/00165824 [19:22:16]OFD Sender: To server: pG, [19:22:16]CommunicateWithHost lk.salyk.kg:30040 [19:22:16]ConnectInit lk.salyk.kg [19:22:16]written 0, free lines is 4095 [19:22:16]Connected sock=10 [19:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 78 F0 04 01 70 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 32 01 00 00 F4 03 04 00 74 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 87 02 00 35 04 06 00 1A DA CB B2 55 04 31 2E 4E A7 6D 37 54 6A [19:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 14 E2 47 00 15 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 87 02 00 F4 03 04 00 E5 FE 14 67 B6 04 01 00 00 84 68 4E 34 5D CE 01 69 [19:22:16]CommunicateWithHost err = 0 [19:22:16]CheckOFDResponse [19:22:16]1017 (14) - 77093643461234 [19:22:16]1041 (16) - 0000000000871759 [19:22:16]1040 (4) - 165824 [19:22:16]1012 (4) - 20.10.2024 13:00 [19:22:16]1206 (1) - 0 [19:22:16]OFD Sender: Remove packet 165824 [19:22:16]ProducePacketName [19:22:16]name=ofd_packets/00165824 [19:22:16]NVStorageDeleteData [19:22:16]Write to MH i2c: 01 00 00 44 15 59 [19:22:16]Write i2c OK [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: 01 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: 01 07 00 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: 01 07 00 44 15 00 00 00 00 00 B5 0C 21 [19:22:16]RasterBufferAndPrint [19:22:16]line [19:22:16]line [19:22:16]line [19:22:16]line [19:22:16]line [19:22:16]written 0, free lines is 3259 [19:22:16]MH_Cut [19:22:16]Write to MH i2c: D1 01 00 4B 15 01 32 [19:22:16]Write i2c OK [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: D1 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: D1 01 00 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: D1 01 00 4B 15 00 31 [19:22:16]Write to MH i2c: 01 00 00 4C 15 61 [19:22:16]Write i2c OK [19:22:16]MH_I2C_Read... [19:22:16]OFD Sender: No OFD packet to send [19:22:17]*** Cut start [19:22:17]*** Partial cut [19:22:17]*** CUTSNS_PIN = 1 [19:22:17]*** CUTSNS_PIN = 0 [19:22:17]*** Brake cut motor [19:22:17]Read from MH i2c: 01 [19:22:17]MH_I2C_Read... [19:22:17]*** Stop cut motor [19:22:17]*** Cut end [19:22:17]Read from MH i2c: 01 07 00 [19:22:17]MH_I2C_Read... [19:22:17]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 FF 0F 76 [19:22:17]process_action close_receipt done [19:22:17]requested_data is exist [19:22:17]produce_requested_data [19:22:17]requested_item fm.sn is exist - process it [19:22:17]wFMCommunicate request_size=4 [19:22:17]MH_SAM_APDU [19:22:17]CAPDU: 80 11 00 00 [19:22:17]Write to MH i2c: E2 08 00 4D 15 80 11 00 00 00 00 00 00 DC [19:22:17]Write i2c OK [19:22:17]MH_I2C_Read... [19:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:18]Read from MH i2c: E2 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 17 00 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 17 00 4D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [19:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:22:18]wFMCommunicate OK [19:22:18]requested_item fd.num is exist - process it [19:22:18]SAM_PROTO_GetFieldsCounters [19:22:18]wFMCommunicate request_size=4 [19:22:18]MH_SAM_APDU [19:22:18]CAPDU: 80 13 00 00 [19:22:18]Write to MH i2c: E2 08 00 4E 15 80 13 00 00 00 00 00 00 DF [19:22:18]Write i2c OK [19:22:18]MH_I2C_Read... [19:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:18]Read from MH i2c: E2 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 62 00 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 62 00 4E 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 87 02 00 0E 04 04 00 16 02 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 01 [19:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 87 02 00 0E 04 04 00 16 02 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:22:18]wFMCommunicate OK [19:22:18]SAM_PROTO_GetFieldsCounters done [19:22:18]requested_item shift.num is exist - process it [19:22:18]requested_item shift.opened is exist - process it [19:22:18]req_shift_opened [19:22:18]FM_GetShiftState [19:22:18]SAM_PROTO_GetShiftState [19:22:18]wFMCommunicate request_size=4 [19:22:18]MH_SAM_APDU [19:22:18]CAPDU: 80 13 01 00 [19:22:18]Write to MH i2c: E2 08 00 4F 15 80 13 01 00 00 00 00 00 E1 [19:22:18]Write i2c OK [19:22:18]MH_I2C_Read... [19:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:18]Read from MH i2c: E2 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 0E 00 [19:22:18]MH_I2C_Read... [19:22:18]Read from MH i2c: E2 0E 00 4F 15 00 09 00 01 71 50 14 67 00 00 00 00 90 00 29 [19:22:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:22:18]wFMCommunicate OK [19:22:18]SAM_PROTO_GetShiftState done [19:22:18]FM_GetShiftState done [19:22:18]req_shift_opened done [19:22:18]requested_item shift.open_date is exist - process it [19:22:18]req_shift_open_date [19:22:18]req_shift_open_date done [19:22:18]produce_requested_data done [19:22:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165824,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:22:18]process_action_free close_receipt [19:22:18]json_value_free [19:22:18]json_value_free done [19:22:18]process_json_proto returns [19:22:18]Send response to host [19:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165824,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:22:18]free response buf [19:22:18]execute_script done [19:22:18]execute_script returns [19:22:18]free content buf [19:22:18]Sock 9.Close socket [19:22:18]Sock 9.Thread stoped [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22: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:07]OFD Sender: No OFD packet to send [19:23:11]accept exits with 7 [19:23:11]New connection [19:23:11]New thread 3066920292 created [19:23:11]Thread 3066776932 joined [19:23:11]Waiting for new connection... [19:23:11] Sock 7.Parse request [19:23:11]Sock 7.Check first char [19:23:11]Sock 7.First char is OK [19:23:11]request: POST /json_proto HTTP/1.0 [19:23:11]Method: POST [19:23:11]URL: /json_proto [19:23:11]Method is POST - this is cgi request [19:23:11]url: /json_proto [19:23:11]query_string will be loaded in cgi processing [19:23:11]execute_cgi json_proto POST (null) [19:23:11]execute_cgi path=json_proto method=POST [19:23:11]POST find Content-Length [19:23:11]Host: 172.17.53.195:8080 [19:23:11]Content-Length: 682 [19:23:11]Content-Type: application/json [19:23:11] [19:23:11]POST finish read [19:23:11]Found Content-Length = 682 [19:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:11]execute_script... [19:23: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)220393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:11]POST & json_proto [19:23:11]process_json_proto [19:23:11]json parsed OK: [19:23:11]protocol is kg_v1.0 [19:23:11]action value=close_receipt [19:23:11]process_action close_receipt [19:23:11]cmd_close_receipt [19:23:11]MH_GetDate [19:23:11]Write to MH i2c: F0 00 00 50 15 54 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: F0 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: F0 09 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: F0 09 00 50 15 00 AD 58 15 67 21 48 4A 65 F6 [19:23:11]GetLastDocTimeStamp 1729452148 [19:23:11]current date 1729452205 [19:23:11]FM_GetShiftState [19:23:11]SAM_PROTO_GetShiftState [19:23:11]wFMCommunicate request_size=4 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 13 01 00 [19:23:11]Write to MH i2c: E2 08 00 51 15 80 13 01 00 00 00 00 00 E3 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 0E 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 0E 00 51 15 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2B [19:23:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:23:11]wFMCommunicate OK [19:23:11]SAM_PROTO_GetShiftState done [19:23:11]FM_GetShiftState done [19:23:11]opened in 1729384561 [19:23:11]opened+sec_in_day 1729470961 [19:23:11]quantity*price = 100021 [19:23:11]sum+1 = 100023 [19:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 307 20.10.2024 19:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165825 ФПД: 16142618126432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192325&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165825&fm=16142618126432&tin=02508201610067®Number=0000000000091764&sum=100000 [19:23:12]StoreToDocumentArchive [19:23:12]shift 534 fd 165825 [19:23:12]save to /storage/0534/doc_00165825 [19:23:12]save last doc name /storage/0534/doc_00165825 to /storage/kkm_last_doc_name [19:23:12]save OK [19:23:12]Clear old archive folders... [19:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:12]tlvbuf is 01456E30 [19:23:12]SAM_PROTO_ClearQueue [19:23:12]wFMCommunicate request_size=4 [19:23:12]MH_SAM_APDU [19:23:12]CAPDU: 80 09 00 00 [19:23:12]Write to MH i2c: E2 08 00 5E 15 80 09 00 00 00 00 00 00 E5 [19:23:12]Write i2c OK [19:23:12]MH_I2C_Read... [19:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:12]Read from MH i2c: E2 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 03 00 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 03 00 5E 15 00 90 00 E7 [19:23:12]RAPDU: 90 00 [19:23:12]wFMCommunicate OK [19:23:12]SAM_PROTO_ClearQueue done [19:23:12]KKMCreateOFDPacket [19:23:12]OFDProtocolAddRootSTLVToBuf [19:23:12]FM_MakeSignedData [19:23:12]FM_MakeSignedData [19:23:12]SAM_PROTO_SignData [19:23:12]wFMCommunicate request_size=4 [19:23:12]MH_SAM_APDU [19:23:12]CAPDU: 80 0D 01 02 [19:23:12]Write to MH i2c: E2 08 00 5F 15 80 0D 01 02 00 00 00 00 ED [19:23:12]Write i2c OK [19:23:12]MH_I2C_Read... [19:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:12]Read from MH i2c: E2 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 03 00 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 03 00 5F 15 00 90 00 E8 [19:23:12]RAPDU: 90 00 [19:23:12]wFMCommunicate OK [19:23:12]wFMCommunicate request_size=255 [19:23:12]MH_SAM_APDU [19:23:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AD 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 87 02 00 35 04 06 00 0E [19:23:12]Write to MH i2c: E2 02 01 60 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AD 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 87 02 00 35 04 06 00 0E 00 00 C5 [19:23:12]Write i2c OK [19:23:12]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 60 15 00 90 00 E9 [19:23:13]RAPDU: 90 00 [19:23:13]wFMCommunicate OK [19:23:13]wFMCommunicate request_size=10 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 0D 02 02 05 AE 7F 04 E8 60 [19:23:13]Write to MH i2c: E2 0D 00 61 15 80 0D 02 02 05 00 AE 7F 04 E8 60 00 00 73 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 61 15 00 90 00 EA [19:23:13]RAPDU: 90 00 [19:23:13]wFMCommunicate OK [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 0D 03 02 [19:23:13]Write to MH i2c: E2 08 00 62 15 80 0D 03 02 00 00 00 00 F2 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 0B 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 0B 00 62 15 00 16 30 D4 DB AD 1F 78 B6 90 00 E2 [19:23:13]RAPDU: 16 30 D4 DB AD 1F 78 B6 90 00 [19:23:13]wFMCommunicate OK [19:23:13]SAM_PROTO_SignData done [19:23:13]FM_MakeSignedData done [19:23:13]CreateOFDProtocolMessage [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 11 00 00 [19:23:13]Write to MH i2c: E2 08 00 63 15 80 11 00 00 00 00 00 00 F2 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 17 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 17 00 63 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [19:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:23:13]wFMCommunicate OK [19:23:13]CreateOFDProtocolMessage done [19:23:13]OFDSenderStorePacket 165825 [19:23:13]StoreOFDPacket docnum=165825 [19:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 8E 07 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AD 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 87 02 00 35 04 06 00 0E AE 7F 04 E8 60 16 30 D4 DB AD 1F 78 B6 [19:23:13]CheckFolder [19:23:13]dirname=/storage/ofd_packets [19:23:13]CheckFolder done [19:23:13]ProducePacketName [19:23:13]name=ofd_packets/00165825 [19:23:13]NVStorageSaveData ofd_packets/00165825 [19:23:13]File name is /storage/ofd_packets/00165825 [19:23:13]Write 301 bytes [19:23:13]NVStorageSaveData done [19:23:13]OFDSenderStorePacket done [19:23:13]KKMCreateOFDPacket done [19:23:13]NVStorageSaveData kkm_last_timestamp [19:23:13]File name is /storage/kkm_last_timestamp [19:23:13]Write 4 bytes [19:23:13]NVStorageSaveData done [19:23:13]ExternCall_PrintAddStr [19:23:13]wPrintStart [19:23:13]Write to MH i2c: 01 00 00 64 15 79 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: 01 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: 01 07 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: 01 07 00 64 15 00 00 00 00 00 FF 0F 8E [19:23:13]RasterBufferAndPrint [19:23:13]line Счет N : (1)220393 [19:23:13]line ИНН: 02508201610067 [19:23:13]line Контрольно-Кассовый Чек [19:23:13]line ПРОДАЖА [19:23:13]line ТРК (МРК, ГНК) : 24 [19:23:13]line Товар: 2710124500 [19:23:13]line Аи-95-К-5 [19:23:13]line 13.480 * 74.20 [19:23:13]line = 1000.22 [19:23:13]line НДС 12% НСП 1% [19:23:13]line > о реализуемом товаре [19:23:13]line ОКРУГЛЕНИЕ: -0.22 [19:23:13]line ИТОГО: 1000.00 [19:23:13]line Внесено: 1000.00 [19:23:13]line СДАЧА: 0.00 [19:23:13]line НСП 1% : 8.85 [19:23:13]line НДС 12% : 106.22 [19:23:13]line Наличными: 1000.00 [19:23:13]line Безнал.: 0.00 [19:23:13]line Место: АЗС № 161 "Партнер Нефть" [19:23:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:23:13]line СНО: Общий режим [19:23:13]line Чек 307 20.10.2024 19:23 [19:23:13]line Смена: 534 ФФД: 1.0 [19:23:13]line ЗНМ: 0300000104 [19:23:13]line РНМ: 0000000000091764 [19:23:13]line Версия ККМ: 001 [19:23:13]line ФМ: 0000000000871759 [19:23:13]line ФД: 165825 [19:23:13]line ФПД: 16142618126432 [19:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192325&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165825&fm=16142618126432&tin=02508201610067®Number=0000000000091764&sum=100000 [19:23:13]OFD Sender: Processing packet 165825 [packets to send 48, broken 47] [19:23:13]ProducePacketName [19:23:13]name=ofd_packets/00165825 [19:23:13]OFD Sender: To server: pG, [19:23:13]CommunicateWithHost lk.salyk.kg:30040 [19:23:13]ConnectInit lk.salyk.kg [19:23:13]written 0, free lines is 4095 [19:23:13]Connected sock=10 [19:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 8E 07 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AD 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 87 02 00 35 04 06 00 0E AE 7F 04 E8 60 16 30 D4 DB AD 1F 78 B6 [19:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6E 4F 47 00 85 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 31 37 35 39 10 04 04 00 C1 87 02 00 F4 03 04 00 1E FF 14 67 B6 04 01 00 00 B2 72 02 9B A0 74 3D 16 [19:23:13]CommunicateWithHost err = 0 [19:23:13]CheckOFDResponse [19:23:13]1017 (14) - 77093643461234 [19:23:13]1041 (16) - 0000000000871759 [19:23:13]1040 (4) - 165825 [19:23:13]1012 (4) - 20.10.2024 13:01 [19:23:13]1206 (1) - 0 [19:23:13]OFD Sender: Remove packet 165825 [19:23:13]ProducePacketName [19:23:13]name=ofd_packets/00165825 [19:23:13]NVStorageDeleteData [19:23:14]Write to MH i2c: 01 00 00 8F 15 A4 [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 07 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 07 00 8F 15 00 00 00 00 00 AD 0C 64 [19:23:14]RasterBufferAndPrint [19:23:14]line [19:23:14]line [19:23:14]line [19:23:14]line [19:23:14]line [19:23:14]written 0, free lines is 3251 [19:23:14]MH_Cut [19:23:14]Write to MH i2c: D1 01 00 96 15 01 7D [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: D1 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: D1 01 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: D1 01 00 96 15 00 7C [19:23:14]Write to MH i2c: 01 00 00 97 15 AC [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]OFD Sender: No OFD packet to send [19:23:14]*** Cut start [19:23:14]*** Partial cut [19:23:14]*** CUTSNS_PIN = 1 [19:23:14]*** CUTSNS_PIN = 0 [19:23:15]*** Brake cut motor [19:23:15]Read from MH i2c: 01 [19:23:15]MH_I2C_Read... [19:23:15]*** Stop cut motor [19:23:15]*** Cut end [19:23:15]Read from MH i2c: 01 07 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: 01 07 00 97 15 00 00 00 00 00 FF 0F C1 [19:23:15]process_action close_receipt done [19:23:15]requested_data is exist [19:23:15]produce_requested_data [19:23:15]requested_item fm.sn is exist - process it [19:23:15]wFMCommunicate request_size=4 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 11 00 00 [19:23:15]Write to MH i2c: E2 08 00 98 15 80 11 00 00 00 00 00 00 27 [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 17 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 17 00 98 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [19:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:23:15]wFMCommunicate OK [19:23:15]requested_item fd.num is exist - process it [19:23:15]SAM_PROTO_GetFieldsCounters [19:23:15]wFMCommunicate request_size=4 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 13 00 00 [19:23:15]Write to MH i2c: E2 08 00 99 15 80 13 00 00 00 00 00 00 2A [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 62 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 62 00 99 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 87 02 00 0E 04 04 00 16 02 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 50 [19:23:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 87 02 00 0E 04 04 00 16 02 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:23:15]wFMCommunicate OK [19:23:15]SAM_PROTO_GetFieldsCounters done [19:23:15]requested_item shift.num is exist - process it [19:23:15]requested_item shift.opened is exist - process it [19:23:15]req_shift_opened [19:23:15]FM_GetShiftState [19:23:15]SAM_PROTO_GetShiftState [19:23:15]wFMCommunicate request_size=4 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 13 01 00 [19:23:15]Write to MH i2c: E2 08 00 9A 15 80 13 01 00 00 00 00 00 2C [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 0E 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 0E 00 9A 15 00 09 00 01 71 50 14 67 00 00 00 00 90 00 74 [19:23:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:23:15]wFMCommunicate OK [19:23:15]SAM_PROTO_GetShiftState done [19:23:15]FM_GetShiftState done [19:23:15]req_shift_opened done [19:23:15]requested_item shift.open_date is exist - process it [19:23:15]req_shift_open_date [19:23:15]req_shift_open_date done [19:23:15]produce_requested_data done [19:23:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165825,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:23:15]process_action_free close_receipt [19:23:15]json_value_free [19:23:15]json_value_free done [19:23:15]process_json_proto returns [19:23:15]Send response to host [19:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165825,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:23:15]free response buf [19:23:15]execute_script done [19:23:15]execute_script returns [19:23:15]free content buf [19:23:15]Sock 7.Close socket [19:23:15]Sock 7.Thread stoped [19:23:16]accept exits with 9 [19:23:16]New connection [19:23:16]New thread 3066776932 created [19:23:16]Thread 3066920292 joined [19:23:16]Waiting for new connection... [19:23:16] Sock 9.Parse request [19:23:16]Sock 9.Check first char [19:23:16]Sock 9.First char is OK [19:23:16]request: POST /json_proto HTTP/1.0 [19:23:16]Method: POST [19:23:16]URL: /json_proto [19:23:16]Method is POST - this is cgi request [19:23:16]url: /json_proto [19:23:16]query_string will be loaded in cgi processing [19:23:16]execute_cgi json_proto POST (null) [19:23:16]execute_cgi path=json_proto method=POST [19:23:16]POST find Content-Length [19:23:16]Host: 172.17.53.195:8080 [19:23:16]Content-Length: 677 [19:23:16]Content-Type: application/json [19:23:16] [19:23:16]POST finish read [19:23:16]Found Content-Length = 677 [19:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:16]execute_script... [19:23: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)220394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:16]POST & json_proto [19:23:16]process_json_proto [19:23:16]json parsed OK: [19:23:16]protocol is kg_v1.0 [19:23:16]action value=close_receipt [19:23:16]process_action close_receipt [19:23:16]cmd_close_receipt [19:23:16]MH_GetDate [19:23:16]Write to MH i2c: F0 00 00 9B 15 9F [19:23:16]Write i2c OK [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: F0 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: F0 09 00 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: F0 09 00 9B 15 00 B2 58 15 67 21 48 4A 65 46 [19:23:16]GetLastDocTimeStamp 1729452205 [19:23:16]current date 1729452210 [19:23:16]FM_GetShiftState [19:23:16]SAM_PROTO_GetShiftState [19:23:16]wFMCommunicate request_size=4 [19:23:16]MH_SAM_APDU [19:23:16]CAPDU: 80 13 01 00 [19:23:16]Write to MH i2c: E2 08 00 9C 15 80 13 01 00 00 00 00 00 2E [19:23:16]Write i2c OK [19:23:16]MH_I2C_Read... [19:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:16]Read from MH i2c: E2 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: E2 0E 00 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: E2 0E 00 9C 15 00 09 00 01 71 50 14 67 00 00 00 00 90 00 76 [19:23:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:23:16]wFMCommunicate OK [19:23:16]SAM_PROTO_GetShiftState done [19:23:16]FM_GetShiftState done [19:23:16]opened in 1729384561 [19:23:16]opened+sec_in_day 1729470961 [19:23:16]quantity*price = 29971 [19:23:16]sum+1 = 29972 [19:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 308 20.10.2024 19:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165826 ФПД: 31881264003945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192330&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165826&fm=31881264003945&tin=02508201610067®Number=0000000000091764&sum=29900 [19:23:17]StoreToDocumentArchive [19:23:17]shift 534 fd 165826 [19:23:17]save to /storage/0534/doc_00165826 [19:23:17]save last doc name /storage/0534/doc_00165826 to /storage/kkm_last_doc_name [19:23:17]save OK [19:23:17]Clear old archive folders... [19:23:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:17]tlvbuf is 01460CB0 [19:23:17]SAM_PROTO_ClearQueue [19:23:17]wFMCommunicate request_size=4 [19:23:17]MH_SAM_APDU [19:23:17]CAPDU: 80 09 00 00 [19:23:17]Write to MH i2c: E2 08 00 A9 15 80 09 00 00 00 00 00 00 30 [19:23:17]Write i2c OK [19:23:17]MH_I2C_Read... [19:23:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:17]Read from MH i2c: E2 [19:23:17]MH_I2C_Read... [19:23:17]Read from MH i2c: E2 03 00 [19:23:17]MH_I2C_Read... [19:23:17]Read from MH i2c: E2 03 00 A9 15 00 90 00 32 [19:23:17]RAPDU: 90 00 [19:23:17]wFMCommunicate OK [19:23:17]SAM_PROTO_ClearQueue done [19:23:17]KKMCreateOFDPacket [19:23:17]OFDProtocolAddRootSTLVToBuf [19:23:17]FM_MakeSignedData [19:23:17]FM_MakeSignedData [19:23:17]SAM_PROTO_SignData [19:23:17]wFMCommunicate request_size=4 [19:23:17]MH_SAM_APDU [19:23:17]CAPDU: 80 0D 01 02 [19:23:17]Write to MH i2c: E2 08 00 AA 15 80 0D 01 02 00 00 00 00 38 [19:23:17]Write i2c OK [19:23:17]MH_I2C_Read... [19:23:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:17]Read from MH i2c: E2 [19:23:17]MH_I2C_Read... [19:23:17]Read from MH i2c: E2 03 00 [19:23:17]MH_I2C_Read... [19:23:17]Read from MH i2c: E2 03 00 AA 15 00 90 00 33 [19:23:17]RAPDU: 90 00 [19:23:17]wFMCommunicate OK [19:23:17]wFMCommunicate request_size=255 [19:23:17]MH_SAM_APDU [19:23: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B2 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 87 02 00 35 04 06 00 1C [19:23:17]Write to MH i2c: E2 02 01 AB 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B2 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 87 02 00 35 04 06 00 1C 00 00 DD [19:23:17]Write i2c OK [19:23:17]MH_I2C_Read... [19:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:18]Read from MH i2c: E2 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 03 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 03 00 AB 15 00 90 00 34 [19:23:18]RAPDU: 90 00 [19:23:18]wFMCommunicate OK [19:23:18]wFMCommunicate request_size=10 [19:23:18]MH_SAM_APDU [19:23:18]CAPDU: 80 0D 02 02 05 FE EF 6A 7B 69 [19:23:18]Write to MH i2c: E2 0D 00 AC 15 80 0D 02 02 05 00 FE EF 6A 7B 69 00 00 80 [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:18]Read from MH i2c: E2 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 03 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [19:23:18]RAPDU: 90 00 [19:23:18]wFMCommunicate OK [19:23:18]wFMCommunicate request_size=4 [19:23:18]MH_SAM_APDU [19:23:18]CAPDU: 80 0D 03 02 [19:23:18]Write to MH i2c: E2 08 00 AD 15 80 0D 03 02 00 00 00 00 3D [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:18]Read from MH i2c: E2 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 0B 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 0B 00 AD 15 00 63 04 FB 9E 6D 99 DD E6 90 00 07 [19:23:18]RAPDU: 63 04 FB 9E 6D 99 DD E6 90 00 [19:23:18]wFMCommunicate OK [19:23:18]SAM_PROTO_SignData done [19:23:18]FM_MakeSignedData done [19:23:18]CreateOFDProtocolMessage [19:23:18]wFMCommunicate request_size=4 [19:23:18]MH_SAM_APDU [19:23:18]CAPDU: 80 11 00 00 [19:23:18]Write to MH i2c: E2 08 00 AE 15 80 11 00 00 00 00 00 00 3D [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:18]Read from MH i2c: E2 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 17 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 17 00 AE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [19:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:23:18]wFMCommunicate OK [19:23:18]CreateOFDProtocolMessage done [19:23:18]OFDSenderStorePacket 165826 [19:23:18]StoreOFDPacket docnum=165826 [19:23:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB DD 07 01 D2 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B2 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 87 02 00 35 04 06 00 1C FE EF 6A 7B 69 63 04 FB 9E 6D 99 DD E6 [19:23:18]CheckFolder [19:23:18]dirname=/storage/ofd_packets [19:23:18]CheckFolder done [19:23:18]ProducePacketName [19:23:18]name=ofd_packets/00165826 [19:23:18]NVStorageSaveData ofd_packets/00165826 [19:23:18]File name is /storage/ofd_packets/00165826 [19:23:18]Write 301 bytes [19:23:18]NVStorageSaveData done [19:23:18]OFDSenderStorePacket done [19:23:18]KKMCreateOFDPacket done [19:23:18]NVStorageSaveData kkm_last_timestamp [19:23:18]File name is /storage/kkm_last_timestamp [19:23:18]Write 4 bytes [19:23:18]NVStorageSaveData done [19:23:18]ExternCall_PrintAddStr [19:23:18]wPrintStart [19:23:18]Write to MH i2c: 01 00 00 AF 15 C4 [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: 01 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: 01 07 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: 01 07 00 AF 15 00 00 00 00 00 FF 0F D9 [19:23:18]RasterBufferAndPrint [19:23:18]line Счет N : (1)220394 [19:23:18]line ИНН: 02508201610067 [19:23:18]line Контрольно-Кассовый Чек [19:23:18]line ПРОДАЖА [19:23:18]line ТРК (МРК, ГНК) : 13 [19:23:18]line Товар: 2710124130 [19:23:18]line Аи-92-К-5 [19:23:18]line 4.480 * 66.90 [19:23:18]line = 299.71 [19:23:18]line НДС 12% НСП 1% [19:23:18]line > о реализуемом товаре [19:23:18]line ОКРУГЛЕНИЕ: -0.71 [19:23:18]line ИТОГО: 299.00 [19:23:18]line Внесено: 300.00 [19:23:18]line СДАЧА: 1.00 [19:23:18]line НСП 1% : 2.65 [19:23:18]line НДС 12% : 31.83 [19:23:18]line Наличными: 299.00 [19:23:18]line Безнал.: 0.00 [19:23:18]line Место: АЗС № 161 "Партнер Нефть" [19:23:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:23:18]line СНО: Общий режим [19:23:18]line Чек 308 20.10.2024 19:23 [19:23:18]line Смена: 534 ФФД: 1.0 [19:23:18]line ЗНМ: 0300000104 [19:23:18]line РНМ: 0000000000091764 [19:23:18]line Версия ККМ: 001 [19:23:18]line ФМ: 0000000000871759 [19:23:18]line ФД: 165826 [19:23:18]line ФПД: 31881264003945 [19:23:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192330&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165826&fm=31881264003945&tin=02508201610067®Number=0000000000091764&sum=29900 [19:23:18]written 0, free lines is 4095 [19:23:18]OFD Sender: Processing packet 165826 [packets to send 48, broken 47] [19:23:18]ProducePacketName [19:23:18]name=ofd_packets/00165826 [19:23:18]OFD Sender: To server: pG, [19:23:18]CommunicateWithHost lk.salyk.kg:30040 [19:23:18]ConnectInit lk.salyk.kg [19:23:18]Connected sock=10 [19:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB DD 07 01 D2 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B2 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 87 02 00 35 04 06 00 1C FE EF 6A 7B 69 63 04 FB 9E 6D 99 DD E6 [19:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2E 2D 47 00 A8 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 87 02 00 F4 03 04 00 23 FF 14 67 B6 04 01 00 00 F0 60 21 D5 B7 F1 00 55 [19:23:18]CommunicateWithHost err = 0 [19:23:18]CheckOFDResponse [19:23:18]1017 (14) - 77093643461234 [19:23:18]1041 (16) - 0000000000871759 [19:23:18]1040 (4) - 165826 [19:23:18]1012 (4) - 20.10.2024 13:01 [19:23:18]1206 (1) - 0 [19:23:18]OFD Sender: Remove packet 165826 [19:23:18]ProducePacketName [19:23:18]name=ofd_packets/00165826 [19:23:18]NVStorageDeleteData [19:23:18]Write to MH i2c: 01 00 00 DA 15 EF [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: 01 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: 01 07 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 BF 0C C1 [19:23:18]RasterBufferAndPrint [19:23:18]line [19:23:18]line [19:23:18]line [19:23:18]line [19:23:18]line [19:23:18]written 0, free lines is 3275 [19:23:18]MH_Cut [19:23:18]Write to MH i2c: D1 01 00 E1 15 01 C8 [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: D1 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: D1 01 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: D1 01 00 E1 15 00 C7 [19:23:18]Write to MH i2c: 01 00 00 E2 15 F7 [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:19]OFD Sender: No OFD packet to send [19:23:19]*** Cut start [19:23:19]*** Partial cut [19:23:19]*** CUTSNS_PIN = 1 [19:23:19]*** CUTSNS_PIN = 0 [19:23:19]*** Brake cut motor [19:23:20]Read from MH i2c: 01 [19:23:20]MH_I2C_Read... [19:23:20]*** Stop cut motor [19:23:20]*** Cut end [19:23:20]Read from MH i2c: 01 07 00 [19:23:20]MH_I2C_Read... [19:23:20]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 FF 0F 0C [19:23:20]process_action close_receipt done [19:23:20]requested_data is exist [19:23:20]produce_requested_data [19:23:20]requested_item fm.sn is exist - process it [19:23:20]wFMCommunicate request_size=4 [19:23:20]MH_SAM_APDU [19:23:20]CAPDU: 80 11 00 00 [19:23:20]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [19:23:20]Write i2c OK [19:23:20]MH_I2C_Read... [19:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:20]Read from MH i2c: E2 [19:23:20]MH_I2C_Read... [19:23:20]Read from MH i2c: E2 17 00 [19:23:20]MH_I2C_Read... [19:23:20]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 31 37 35 39 90 00 CA [19:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:23:20]wFMCommunicate OK [19:23:20]requested_item fd.num is exist - process it [19:23:20]SAM_PROTO_GetFieldsCounters [19:23:20]wFMCommunicate request_size=4 [19:23:20]MH_SAM_APDU [19:23:20]CAPDU: 80 13 00 00 [19:23:20]Write to MH i2c: E2 08 00 E4 15 80 13 00 00 00 00 00 00 75 [19:23:20]Write i2c OK [19:23:20]MH_I2C_Read... [19:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:20]Read from MH i2c: E2 [19:23:20]MH_I2C_Read... [19:23:20]Read from MH i2c: E2 62 00 [19:23:20]MH_I2C_Read... [19:23:20]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 87 02 00 0E 04 04 00 16 02 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 9F [19:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 87 02 00 0E 04 04 00 16 02 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:23:20]wFMCommunicate OK [19:23:20]SAM_PROTO_GetFieldsCounters done [19:23:20]requested_item shift.num is exist - process it [19:23:20]requested_item shift.opened is exist - process it [19:23:20]req_shift_opened [19:23:20]FM_GetShiftState [19:23:20]SAM_PROTO_GetShiftState [19:23:20]wFMCommunicate request_size=4 [19:23:20]MH_SAM_APDU [19:23:20]CAPDU: 80 13 01 00 [19:23:20]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [19:23:20]Write i2c OK [19:23:20]MH_I2C_Read... [19:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:20]Read from MH i2c: E2 [19:23:20]MH_I2C_Read... [19:23:20]Read from MH i2c: E2 0E 00 [19:23:20]MH_I2C_Read... [19:23:20]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BF [19:23:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:23:20]wFMCommunicate OK [19:23:20]SAM_PROTO_GetShiftState done [19:23:20]FM_GetShiftState done [19:23:20]req_shift_opened done [19:23:20]requested_item shift.open_date is exist - process it [19:23:20]req_shift_open_date [19:23:20]req_shift_open_date done [19:23:20]produce_requested_data done [19:23:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165826,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:23:20]process_action_free close_receipt [19:23:20]json_value_free [19:23:20]json_value_free done [19:23:20]process_json_proto returns [19:23:20]Send response to host [19:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165826,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:23:20]free response buf [19:23:20]execute_script done [19:23:20]execute_script returns [19:23:20]free content buf [19:23:20]Sock 9.Close socket [19:23:20]Sock 9.Thread stoped [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:07]accept exits with 7 [19:24:07]New connection [19:24:07]New thread 3066920292 created [19:24:07]Thread 3066776932 joined [19:24:07]Waiting for new connection... [19:24:07] Sock 7.Parse request [19:24:07]Sock 7.Check first char [19:24:07]Sock 7.First char is OK [19:24:07]request: POST /json_proto HTTP/1.0 [19:24:07]Method: POST [19:24:07]URL: /json_proto [19:24:07]Method is POST - this is cgi request [19:24:07]url: /json_proto [19:24:07]query_string will be loaded in cgi processing [19:24:07]execute_cgi json_proto POST (null) [19:24:07]execute_cgi path=json_proto method=POST [19:24:07]POST find Content-Length [19:24:07]Host: 172.17.53.195:8080 [19:24:07]Content-Length: 677 [19:24:07]Content-Type: application/json [19:24:07] [19:24:07]POST finish read [19:24:07]Found Content-Length = 677 [19:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:24:07]execute_script... [19:24: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)220395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:24:07]POST & json_proto [19:24:07]process_json_proto [19:24:07]json parsed OK: [19:24:07]protocol is kg_v1.0 [19:24:07]action value=close_receipt [19:24:07]process_action close_receipt [19:24:07]cmd_close_receipt [19:24:07]MH_GetDate [19:24:07]Write to MH i2c: F0 00 00 E6 15 EA [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 09 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 09 00 E6 15 00 E4 58 15 67 21 48 4A 65 C3 [19:24:07]GetLastDocTimeStamp 1729452210 [19:24:07]current date 1729452260 [19:24:07]FM_GetShiftState [19:24:07]SAM_PROTO_GetShiftState [19:24:07]wFMCommunicate request_size=4 [19:24:07]MH_SAM_APDU [19:24:07]CAPDU: 80 13 01 00 [19:24:07]Write to MH i2c: E2 08 00 E7 15 80 13 01 00 00 00 00 00 79 [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:07]Read from MH i2c: E2 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 E7 15 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C1 [19:24:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:24:07]wFMCommunicate OK [19:24:07]SAM_PROTO_GetShiftState done [19:24:07]FM_GetShiftState done [19:24:07]opened in 1729384561 [19:24:07]opened+sec_in_day 1729470961 [19:24:07]quantity*price = 40068 [19:24:07]sum+1 = 40069 [19:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 309 20.10.2024 19:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165827 ФПД: 210819662070616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192421&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165827&fm=210819662070616&tin=02508201610067®Number=0000000000091764&sum=40000 [19:24:08]StoreToDocumentArchive [19:24:08]shift 534 fd 165827 [19:24:08]save to /storage/0534/doc_00165827 [19:24:08]save last doc name /storage/0534/doc_00165827 to /storage/kkm_last_doc_name [19:24:08]save OK [19:24:08]Clear old archive folders... [19:24:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:08]tlvbuf is 018BFE40 [19:24:08]SAM_PROTO_ClearQueue [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 09 00 00 [19:24:08]Write to MH i2c: E2 08 00 F4 15 80 09 00 00 00 00 00 00 7B [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [19:24:08]RAPDU: 90 00 [19:24:08]wFMCommunicate OK [19:24:08]SAM_PROTO_ClearQueue done [19:24:08]KKMCreateOFDPacket [19:24:08]OFDProtocolAddRootSTLVToBuf [19:24:08]FM_MakeSignedData [19:24:08]FM_MakeSignedData [19:24:08]SAM_PROTO_SignData [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 0D 01 02 [19:24:08]Write to MH i2c: E2 08 00 F5 15 80 0D 01 02 00 00 00 00 83 [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [19:24:08]RAPDU: 90 00 [19:24:08]wFMCommunicate OK [19:24:08]wFMCommunicate request_size=255 [19:24:08]MH_SAM_APDU [19:24: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 35 01 00 00 F4 03 04 00 E5 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 87 02 00 35 04 06 00 BF [19:24:08]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 35 01 00 00 F4 03 04 00 E5 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 87 02 00 35 04 06 00 BF 00 00 DA [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [19:24:08]RAPDU: 90 00 [19:24:08]wFMCommunicate OK [19:24:08]wFMCommunicate request_size=10 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 0D 02 02 05 BD 47 11 C3 58 [19:24:08]Write to MH i2c: E2 0D 00 F7 15 80 0D 02 02 05 00 BD 47 11 C3 58 00 00 C0 [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [19:24:08]RAPDU: 90 00 [19:24:08]wFMCommunicate OK [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 0D 03 02 [19:24:08]Write to MH i2c: E2 08 00 F8 15 80 0D 03 02 00 00 00 00 88 [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 0B 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 0B 00 F8 15 00 DC 2B D0 BB 69 54 35 35 90 00 42 [19:24:08]RAPDU: DC 2B D0 BB 69 54 35 35 90 00 [19:24:08]wFMCommunicate OK [19:24:08]SAM_PROTO_SignData done [19:24:08]FM_MakeSignedData done [19:24:08]CreateOFDProtocolMessage [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 11 00 00 [19:24:08]Write to MH i2c: E2 08 00 F9 15 80 11 00 00 00 00 00 00 88 [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 17 00 [19:24:08]MH_I2C_Read... [19:24:08]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 31 37 35 39 90 00 E0 [19:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:24:08]wFMCommunicate OK [19:24:08]CreateOFDProtocolMessage done [19:24:08]OFDSenderStorePacket 165827 [19:24:08]StoreOFDPacket docnum=165827 [19:24:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 0F 07 01 F4 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 35 01 00 00 F4 03 04 00 E5 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 87 02 00 35 04 06 00 BF BD 47 11 C3 58 DC 2B D0 BB 69 54 35 35 [19:24:08]CheckFolder [19:24:08]dirname=/storage/ofd_packets [19:24:08]CheckFolder done [19:24:08]ProducePacketName [19:24:08]name=ofd_packets/00165827 [19:24:08]NVStorageSaveData ofd_packets/00165827 [19:24:08]File name is /storage/ofd_packets/00165827 [19:24:08]Write 301 bytes [19:24:08]NVStorageSaveData done [19:24:08]OFDSenderStorePacket done [19:24:08]KKMCreateOFDPacket done [19:24:08]NVStorageSaveData kkm_last_timestamp [19:24:08]File name is /storage/kkm_last_timestamp [19:24:08]Write 4 bytes [19:24:08]NVStorageSaveData done [19:24:08]ExternCall_PrintAddStr [19:24:08]wPrintStart [19:24:08]Write to MH i2c: 01 00 00 FA 15 0F [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: 01 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: 01 07 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: 01 07 00 FA 15 00 00 00 00 00 FF 0F 24 [19:24:08]RasterBufferAndPrint [19:24:08]line Счет N : (1)220395 [19:24:08]line ИНН: 02508201610067 [19:24:08]line Контрольно-Кассовый Чек [19:24:08]line ПРОДАЖА [19:24:08]line ТРК (МРК, ГНК) : 34 [19:24:08]line Товар: 2710124500 [19:24:08]line Аи-95-К-5 [19:24:08]line 5.400 * 74.20 [19:24:08]line = 400.68 [19:24:08]line НДС 12% НСП 1% [19:24:08]line > о реализуемом товаре [19:24:08]line ОКРУГЛЕНИЕ: -0.68 [19:24:08]line ИТОГО: 400.00 [19:24:08]line Внесено: 400.00 [19:24:08]line СДАЧА: 0.00 [19:24:08]line НСП 1% : 3.55 [19:24:08]line НДС 12% : 42.55 [19:24:08]line Наличными: 400.00 [19:24:08]line Безнал.: 0.00 [19:24:08]line Место: АЗС № 161 "Партнер Нефть" [19:24:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:24:08]line СНО: Общий режим [19:24:08]line Чек 309 20.10.2024 19:24 [19:24:08]line Смена: 534 ФФД: 1.0 [19:24:08]line ЗНМ: 0300000104 [19:24:08]line РНМ: 0000000000091764 [19:24:08]line Версия ККМ: 001 [19:24:08]line ФМ: 0000000000871759 [19:24:08]line ФД: 165827 [19:24:08]line ФПД: 210819662070616 [19:24:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192421&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165827&fm=210819662070616&tin=02508201610067®Number=0000000000091764&sum=40000 [19:24:09]OFD Sender: Processing packet 165827 [packets to send 48, broken 47] [19:24:09]ProducePacketName [19:24:09]name=ofd_packets/00165827 [19:24:09]OFD Sender: To server: pG, [19:24:09]CommunicateWithHost lk.salyk.kg:30040 [19:24:09]ConnectInit lk.salyk.kg [19:24:09]written 0, free lines is 4095 [19:24:09]Connected sock=10 [19:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 0F 07 01 F4 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 35 01 00 00 F4 03 04 00 E5 58 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 87 02 00 35 04 06 00 BF BD 47 11 C3 58 DC 2B D0 BB 69 54 35 35 [19:24:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0E 3D 47 00 06 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 31 37 35 39 10 04 04 00 C3 87 02 00 F4 03 04 00 55 FF 14 67 B6 04 01 00 00 FA A1 9B 79 1A D1 A1 BA [19:24:09]CommunicateWithHost err = 0 [19:24:09]CheckOFDResponse [19:24:09]1017 (14) - 77093643461234 [19:24:09]1041 (16) - 0000000000871759 [19:24:09]1040 (4) - 165827 [19:24:09]1012 (4) - 20.10.2024 13:02 [19:24:09]1206 (1) - 0 [19:24:09]OFD Sender: Remove packet 165827 [19:24:09]ProducePacketName [19:24:09]name=ofd_packets/00165827 [19:24:09]NVStorageDeleteData [19:24:09]Write to MH i2c: 01 00 00 25 16 3B [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: 01 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: 01 07 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: 01 07 00 25 16 00 00 00 00 00 BF 0C 0D [19:24:09]RasterBufferAndPrint [19:24:09]line [19:24:09]line [19:24:09]line [19:24:09]line [19:24:09]line [19:24:09]written 0, free lines is 3270 [19:24:09]MH_Cut [19:24:09]Write to MH i2c: D1 01 00 2C 16 01 14 [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: D1 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: D1 01 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: D1 01 00 2C 16 00 13 [19:24:09]Write to MH i2c: 01 00 00 2D 16 43 [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]OFD Sender: No OFD packet to send [19:24:10]*** Cut start [19:24:10]*** Partial cut [19:24:10]*** CUTSNS_PIN = 1 [19:24:10]*** CUTSNS_PIN = 0 [19:24:10]*** Brake cut motor [19:24:10]Read from MH i2c: 01 [19:24:10]MH_I2C_Read... [19:24:10]*** Stop cut motor [19:24:10]*** Cut end [19:24:10]Read from MH i2c: 01 07 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: 01 07 00 2D 16 00 00 00 00 00 FF 0F 58 [19:24:10]process_action close_receipt done [19:24:10]requested_data is exist [19:24:10]produce_requested_data [19:24:10]requested_item fm.sn is exist - process it [19:24:10]wFMCommunicate request_size=4 [19:24:10]MH_SAM_APDU [19:24:10]CAPDU: 80 11 00 00 [19:24:10]Write to MH i2c: E2 08 00 2E 16 80 11 00 00 00 00 00 00 BE [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:10]Read from MH i2c: E2 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 17 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 17 00 2E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [19:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:24:11]wFMCommunicate OK [19:24:11]requested_item fd.num is exist - process it [19:24:11]SAM_PROTO_GetFieldsCounters [19:24:11]wFMCommunicate request_size=4 [19:24:11]MH_SAM_APDU [19:24:11]CAPDU: 80 13 00 00 [19:24:11]Write to MH i2c: E2 08 00 2F 16 80 13 00 00 00 00 00 00 C1 [19:24:11]Write i2c OK [19:24:11]MH_I2C_Read... [19:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:11]Read from MH i2c: E2 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: E2 62 00 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: E2 62 00 2F 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 87 02 00 0E 04 04 00 16 02 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 EF [19:24:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 87 02 00 0E 04 04 00 16 02 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:24:11]wFMCommunicate OK [19:24:11]SAM_PROTO_GetFieldsCounters done [19:24:11]requested_item shift.num is exist - process it [19:24:11]requested_item shift.opened is exist - process it [19:24:11]req_shift_opened [19:24:11]FM_GetShiftState [19:24:11]SAM_PROTO_GetShiftState [19:24:11]wFMCommunicate request_size=4 [19:24:11]MH_SAM_APDU [19:24:11]CAPDU: 80 13 01 00 [19:24:11]Write to MH i2c: E2 08 00 30 16 80 13 01 00 00 00 00 00 C3 [19:24:11]Write i2c OK [19:24:11]MH_I2C_Read... [19:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:11]Read from MH i2c: E2 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: E2 0E 00 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: E2 0E 00 30 16 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0B [19:24:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:24:11]wFMCommunicate OK [19:24:11]SAM_PROTO_GetShiftState done [19:24:11]FM_GetShiftState done [19:24:11]req_shift_opened done [19:24:11]requested_item shift.open_date is exist - process it [19:24:11]req_shift_open_date [19:24:11]req_shift_open_date done [19:24:11]produce_requested_data done [19:24:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165827,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:24:11]process_action_free close_receipt [19:24:11]json_value_free [19:24:11]json_value_free done [19:24:11]process_json_proto returns [19:24:11]Send response to host [19:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165827,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:24:11]free response buf [19:24:11]execute_script done [19:24:11]execute_script returns [19:24:11]free content buf [19:24:11]Sock 7.Close socket [19:24:11]Sock 7.Thread stoped [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:38]accept exits with 9 [19:24:38]New connection [19:24:38]New thread 3066776932 created [19:24:38]Thread 3066920292 joined [19:24:38]Waiting for new connection... [19:24:38] Sock 9.Parse request [19:24:38]Sock 9.Check first char [19:24:38]Sock 9.First char is OK [19:24:38]request: POST /json_proto HTTP/1.0 [19:24:38]Method: POST [19:24:38]URL: /json_proto [19:24:38]Method is POST - this is cgi request [19:24:38]url: /json_proto [19:24:38]query_string will be loaded in cgi processing [19:24:38]execute_cgi json_proto POST (null) [19:24:38]execute_cgi path=json_proto method=POST [19:24:38]POST find Content-Length [19:24:38]Host: 172.17.53.195:8080 [19:24:38]Content-Length: 789 [19:24:38]Content-Type: application/json [19:24:38] [19:24:38]POST finish read [19:24:38]Found Content-Length = 789 [19:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:38]execute_script... [19:24: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)220396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:38]POST & json_proto [19:24:38]process_json_proto [19:24:38]json parsed OK: [19:24:38]protocol is kg_v1.0 [19:24:38]action value=close_receipt [19:24:38]process_action close_receipt [19:24:38]cmd_close_receipt [19:24:38]MH_GetDate [19:24:38]Write to MH i2c: F0 00 00 31 16 36 [19:24:38]Write i2c OK [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: F0 [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: F0 09 00 [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: F0 09 00 31 16 00 04 59 15 67 21 48 4A 65 30 [19:24:38]GetLastDocTimeStamp 1729452261 [19:24:38]current date 1729452292 [19:24:38]FM_GetShiftState [19:24:38]SAM_PROTO_GetShiftState [19:24:38]wFMCommunicate request_size=4 [19:24:38]MH_SAM_APDU [19:24:38]CAPDU: 80 13 01 00 [19:24:38]Write to MH i2c: E2 08 00 32 16 80 13 01 00 00 00 00 00 C5 [19:24:38]Write i2c OK [19:24:38]MH_I2C_Read... [19:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:38]Read from MH i2c: E2 [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: E2 0E 00 [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: E2 0E 00 32 16 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0D [19:24:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:24:38]wFMCommunicate OK [19:24:38]SAM_PROTO_GetShiftState done [19:24:38]FM_GetShiftState done [19:24:38]opened in 1729384561 [19:24:38]opened+sec_in_day 1729470961 [19:24:38]quantity*price = 0 [19:24:38]sum+1 = 1 [19:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 310 20.10.2024 19:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165828 ФПД: 21224855088328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165828&fm=21224855088328&tin=02508201610067®Number=0000000000091764&sum=0 [19:24:39]StoreToDocumentArchive [19:24:39]shift 534 fd 165828 [19:24:39]save to /storage/0534/doc_00165828 [19:24:39]save last doc name /storage/0534/doc_00165828 to /storage/kkm_last_doc_name [19:24:39]save OK [19:24:39]Clear old archive folders... [19:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:24:39]tlvbuf is 016AB300 [19:24:39]SAM_PROTO_ClearQueue [19:24:39]wFMCommunicate request_size=4 [19:24:39]MH_SAM_APDU [19:24:39]CAPDU: 80 09 00 00 [19:24:39]Write to MH i2c: E2 08 00 3F 16 80 09 00 00 00 00 00 00 C7 [19:24:39]Write i2c OK [19:24:39]MH_I2C_Read... [19:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:39]Read from MH i2c: E2 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 03 00 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [19:24:39]RAPDU: 90 00 [19:24:39]wFMCommunicate OK [19:24:39]SAM_PROTO_ClearQueue done [19:24:39]KKMCreateOFDPacket [19:24:39]OFDProtocolAddRootSTLVToBuf [19:24:39]FM_MakeSignedData [19:24:39]FM_MakeSignedData [19:24:39]SAM_PROTO_SignData [19:24:39]wFMCommunicate request_size=4 [19:24:39]MH_SAM_APDU [19:24:39]CAPDU: 80 0D 01 02 [19:24:39]Write to MH i2c: E2 08 00 40 16 80 0D 01 02 00 00 00 00 CF [19:24:39]Write i2c OK [19:24:39]MH_I2C_Read... [19:24:39]OFD Sender: No OFD packet to send [19:24:39]Read from MH i2c: E2 [19:24:39]MH_I2C_Read... [19:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:39]Read from MH i2c: E2 03 00 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [19:24:39]RAPDU: 90 00 [19:24:39]wFMCommunicate OK [19:24:39]wFMCommunicate request_size=255 [19:24:39]MH_SAM_APDU [19:24: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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 04 59 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 87 02 00 35 04 06 00 13 4D CB F2 [19:24:39]Write to MH i2c: E2 02 01 41 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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 04 59 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 87 02 00 35 04 06 00 13 4D CB F2 00 00 FB [19:24:39]Write i2c OK [19:24:39]MH_I2C_Read... [19:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:40]Read from MH i2c: E2 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 03 00 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 03 00 41 16 00 90 00 CB [19:24:40]RAPDU: 90 00 [19:24:40]wFMCommunicate OK [19:24:40]wFMCommunicate request_size=7 [19:24:40]MH_SAM_APDU [19:24:40]CAPDU: 80 0D 02 02 02 AC C8 [19:24:40]Write to MH i2c: E2 0A 00 42 16 80 0D 02 02 02 00 AC C8 00 00 4A [19:24:40]Write i2c OK [19:24:40]MH_I2C_Read... [19:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:40]Read from MH i2c: E2 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 03 00 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 03 00 42 16 00 90 00 CC [19:24:40]RAPDU: 90 00 [19:24:40]wFMCommunicate OK [19:24:40]wFMCommunicate request_size=4 [19:24:40]MH_SAM_APDU [19:24:40]CAPDU: 80 0D 03 02 [19:24:40]Write to MH i2c: E2 08 00 43 16 80 0D 03 02 00 00 00 00 D4 [19:24:40]Write i2c OK [19:24:40]MH_I2C_Read... [19:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:40]Read from MH i2c: E2 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 0B 00 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 0B 00 43 16 00 BA 01 E2 F6 7E 20 18 B8 90 00 D6 [19:24:40]RAPDU: BA 01 E2 F6 7E 20 18 B8 90 00 [19:24:40]wFMCommunicate OK [19:24:40]SAM_PROTO_SignData done [19:24:40]FM_MakeSignedData done [19:24:40]CreateOFDProtocolMessage [19:24:40]wFMCommunicate request_size=4 [19:24:40]MH_SAM_APDU [19:24:40]CAPDU: 80 11 00 00 [19:24:40]Write to MH i2c: E2 08 00 44 16 80 11 00 00 00 00 00 00 D4 [19:24:40]Write i2c OK [19:24:40]MH_I2C_Read... [19:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:40]Read from MH i2c: E2 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 17 00 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: E2 17 00 44 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [19:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:24:40]wFMCommunicate OK [19:24:40]CreateOFDProtocolMessage done [19:24:40]OFDSenderStorePacket 165828 [19:24:40]StoreOFDPacket docnum=165828 [19:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 94 6B 04 01 1F FD 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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 04 59 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 87 02 00 35 04 06 00 13 4D CB F2 AC C8 BA 01 E2 F6 7E 20 18 B8 [19:24:40]CheckFolder [19:24:40]dirname=/storage/ofd_packets [19:24:40]CheckFolder done [19:24:40]ProducePacketName [19:24:40]name=ofd_packets/00165828 [19:24:40]NVStorageSaveData ofd_packets/00165828 [19:24:40]File name is /storage/ofd_packets/00165828 [19:24:40]Write 298 bytes [19:24:40]NVStorageSaveData done [19:24:40]OFDSenderStorePacket done [19:24:40]KKMCreateOFDPacket done [19:24:40]NVStorageSaveData kkm_last_timestamp [19:24:40]File name is /storage/kkm_last_timestamp [19:24:40]Write 4 bytes [19:24:40]NVStorageSaveData done [19:24:40]ExternCall_PrintAddStr [19:24:40]wPrintStart [19:24:40]Write to MH i2c: 01 00 00 45 16 5B [19:24:40]Write i2c OK [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: 01 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: 01 07 00 [19:24:40]MH_I2C_Read... [19:24:40]Read from MH i2c: 01 07 00 45 16 00 00 00 00 00 FF 0F 70 [19:24:40]RasterBufferAndPrint [19:24:40]line Счет N : (1)220396 [19:24:40]line ИНН: 02508201610067 [19:24:40]line Контрольно-Кассовый Чек [19:24:40]line ПРОДАЖА [19:24:40]line ТРК (МРК, ГНК) : 41 [19:24:40]line Товар: 2710194210 [19:24:40]line ДТ-К-5 [19:24:40]line 19.690 * 0.00 [19:24:40]line = 0.00 [19:24:40]line НДС 12% НСП 1% [19:24:40]line > о реализуемом товаре [19:24:40]line ИТОГО: 0.00 [19:24:40]line НСП 1% : 0.00 [19:24:40]line НДС 12% : 0.00 [19:24:40]line Наличными: 0.00 [19:24:40]line Безнал.: 0.00 [19:24:40]line Место: АЗС № 161 "Партнер Нефть" [19:24:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:24:40]line СНО: Общий режим [19:24:40]line Чек 310 20.10.2024 19:24 [19:24:40]line Смена: 534 ФФД: 1.0 [19:24:40]line ЗНМ: 0300000104 [19:24:40]line РНМ: 0000000000091764 [19:24:40]line Версия ККМ: 001 [19:24:40]line Талоны: Топливная Карта [19:24:40]line 39590 [19:24:40]line ФМ: 0000000000871759 [19:24:40]line ФД: 165828 [19:24:40]line ФПД: 21224855088328 [19:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165828&fm=21224855088328&tin=02508201610067®Number=0000000000091764&sum=0 [19:24:40]OFD Sender: Processing packet 165828 [packets to send 48, broken 47] [19:24:40]ProducePacketName [19:24:40]name=ofd_packets/00165828 [19:24:40]OFD Sender: To server: pG, [19:24:40]CommunicateWithHost lk.salyk.kg:30040 [19:24:40]ConnectInit lk.salyk.kg [19:24:40]written 0, free lines is 4095 [19:24:40]Connected sock=10 [19: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 31 37 35 39 0C 01 00 00 94 6B 04 01 1F FD 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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 04 59 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 87 02 00 35 04 06 00 13 4D CB F2 AC C8 BA 01 E2 F6 7E 20 18 B8 [19:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 3F 47 00 8A 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 31 37 35 39 10 04 04 00 C4 87 02 00 F4 03 04 00 75 FF 14 67 B6 04 01 00 00 82 EB EA 16 AE DE 64 0F [19:24:41]CommunicateWithHost err = 0 [19:24:41]CheckOFDResponse [19:24:41]1017 (14) - 77093643461234 [19:24:41]1041 (16) - 0000000000871759 [19:24:41]1040 (4) - 165828 [19:24:41]1012 (4) - 20.10.2024 13:02 [19:24:41]1206 (1) - 0 [19:24:41]OFD Sender: Remove packet 165828 [19:24:41]ProducePacketName [19:24:41]name=ofd_packets/00165828 [19:24:41]NVStorageDeleteData [19:24:41]Write to MH i2c: 01 00 00 6F 16 85 [19:24:41]Write i2c OK [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: 01 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: 01 07 00 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: 01 07 00 6F 16 00 00 00 00 00 D0 0C 68 [19:24:41]RasterBufferAndPrint [19:24:41]line [19:24:41]line [19:24:41]line [19:24:41]line [19:24:41]line [19:24:41]written 0, free lines is 3289 [19:24:41]MH_Cut [19:24:41]Write to MH i2c: D1 01 00 76 16 01 5E [19:24:41]Write i2c OK [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: D1 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: D1 01 00 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: D1 01 00 76 16 00 5D [19:24:41]Write to MH i2c: 01 00 00 77 16 8D [19:24:41]Write i2c OK [19:24:41]MH_I2C_Read... [19:24:41]OFD Sender: No OFD packet to send [19:24:41]*** Cut start [19:24:41]*** Partial cut [19:24:41]*** CUTSNS_PIN = 1 [19:24:42]*** CUTSNS_PIN = 0 [19:24:42]*** Brake cut motor [19:24:42]Read from MH i2c: 01 [19:24:42]MH_I2C_Read... [19:24:42]*** Stop cut motor [19:24:42]*** Cut end [19:24:42]Read from MH i2c: 01 07 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: 01 07 00 77 16 00 00 00 00 00 FF 0F A2 [19:24:42]process_action close_receipt done [19:24:42]requested_data is exist [19:24:42]produce_requested_data [19:24:42]requested_item fm.sn is exist - process it [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 11 00 00 [19:24:42]Write to MH i2c: E2 08 00 78 16 80 11 00 00 00 00 00 00 08 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 17 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 17 00 78 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [19:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:24:42]wFMCommunicate OK [19:24:42]requested_item fd.num is exist - process it [19:24:42]SAM_PROTO_GetFieldsCounters [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 13 00 00 [19:24:42]Write to MH i2c: E2 08 00 79 16 80 13 00 00 00 00 00 00 0B [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 62 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 62 00 79 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 87 02 00 0E 04 04 00 16 02 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 3D [19:24: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 87 02 00 0E 04 04 00 16 02 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:24:42]wFMCommunicate OK [19:24:42]SAM_PROTO_GetFieldsCounters done [19:24:42]requested_item shift.num is exist - process it [19:24:42]requested_item shift.opened is exist - process it [19:24:42]req_shift_opened [19:24:42]FM_GetShiftState [19:24:42]SAM_PROTO_GetShiftState [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 13 01 00 [19:24:42]Write to MH i2c: E2 08 00 7A 16 80 13 01 00 00 00 00 00 0D [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 0E 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 0E 00 7A 16 00 09 00 01 71 50 14 67 00 00 00 00 90 00 55 [19:24:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:24:42]wFMCommunicate OK [19:24:42]SAM_PROTO_GetShiftState done [19:24:42]FM_GetShiftState done [19:24:42]req_shift_opened done [19:24:42]requested_item shift.open_date is exist - process it [19:24:42]req_shift_open_date [19:24:42]req_shift_open_date done [19:24:42]produce_requested_data done [19:24:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165828,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:24:42]process_action_free close_receipt [19:24:42]json_value_free [19:24:42]json_value_free done [19:24:42]process_json_proto returns [19:24:42]Send response to host [19:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165828,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:24:42]free response buf [19:24:42]execute_script done [19:24:42]execute_script returns [19:24:42]free content buf [19:24:42]Sock 9.Close socket [19:24:42]Sock 9.Thread stoped [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:52]accept exits with 7 [19:31:52]New connection [19:31:52]New thread 3066920292 created [19:31:52]Thread 3066776932 joined [19:31:52]Waiting for new connection... [19:31:52] Sock 7.Parse request [19:31:52]Sock 7.Check first char [19:31:52]Sock 7.First char is OK [19:31:52]request: POST /json_proto HTTP/1.0 [19:31:52]Method: POST [19:31:52]URL: /json_proto [19:31:52]Method is POST - this is cgi request [19:31:52]url: /json_proto [19:31:52]query_string will be loaded in cgi processing [19:31:52]execute_cgi json_proto POST (null) [19:31:52]execute_cgi path=json_proto method=POST [19:31:52]POST find Content-Length [19:31:52]Host: 172.17.53.195:8080 [19:31:52]Content-Length: 677 [19:31:52]Content-Type: application/json [19:31:52] [19:31:52]POST finish read [19:31:52]Found Content-Length = 677 [19:31:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:52]execute_script... [19:31: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)220397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:52]POST & json_proto [19:31:52]process_json_proto [19:31:52]json parsed OK: [19:31:52]protocol is kg_v1.0 [19:31:52]action value=close_receipt [19:31:52]process_action close_receipt [19:31:52]cmd_close_receipt [19:31:52]MH_GetDate [19:31:52]Write to MH i2c: F0 00 00 7B 16 80 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: F0 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: F0 09 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: F0 09 00 7B 16 00 B6 5A 15 67 21 48 4A 65 2D [19:31:52]GetLastDocTimeStamp 1729452292 [19:31:52]current date 1729452726 [19:31:52]FM_GetShiftState [19:31:52]SAM_PROTO_GetShiftState [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 13 01 00 [19:31:52]Write to MH i2c: E2 08 00 7C 16 80 13 01 00 00 00 00 00 0F [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 0E 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 0E 00 7C 16 00 09 00 01 71 50 14 67 00 00 00 00 90 00 57 [19:31:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:31:52]wFMCommunicate OK [19:31:52]SAM_PROTO_GetShiftState done [19:31:52]FM_GetShiftState done [19:31:52]opened in 1729384561 [19:31:52]opened+sec_in_day 1729470961 [19:31:52]quantity*price = 40006 [19:31:52]sum+1 = 40007 [19:31:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 311 20.10.2024 19:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165829 ФПД: 35003923437944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193206&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165829&fm=35003923437944&tin=02508201610067®Number=0000000000091764&sum=40000 [19:31:53]StoreToDocumentArchive [19:31:53]shift 534 fd 165829 [19:31:53]save to /storage/0534/doc_00165829 [19:31:53]save last doc name /storage/0534/doc_00165829 to /storage/kkm_last_doc_name [19:31:53]save OK [19:31:53]Clear old archive folders... [19:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:53]tlvbuf is 018B06E0 [19:31:53]SAM_PROTO_ClearQueue [19:31:53]wFMCommunicate request_size=4 [19:31:53]MH_SAM_APDU [19:31:53]CAPDU: 80 09 00 00 [19:31:53]Write to MH i2c: E2 08 00 89 16 80 09 00 00 00 00 00 00 11 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 03 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 03 00 89 16 00 90 00 13 [19:31:53]RAPDU: 90 00 [19:31:53]wFMCommunicate OK [19:31:53]SAM_PROTO_ClearQueue done [19:31:53]KKMCreateOFDPacket [19:31:53]OFDProtocolAddRootSTLVToBuf [19:31:53]FM_MakeSignedData [19:31:53]FM_MakeSignedData [19:31:53]SAM_PROTO_SignData [19:31:53]wFMCommunicate request_size=4 [19:31:53]MH_SAM_APDU [19:31:53]CAPDU: 80 0D 01 02 [19:31:53]Write to MH i2c: E2 08 00 8A 16 80 0D 01 02 00 00 00 00 19 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 03 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [19:31:53]RAPDU: 90 00 [19:31:53]wFMCommunicate OK [19:31:53]wFMCommunicate request_size=255 [19:31:53]MH_SAM_APDU [19:31: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 B6 5A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 87 02 00 35 04 06 00 1F [19:31:53]Write to MH i2c: E2 02 01 8B 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 B6 5A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 87 02 00 35 04 06 00 1F 00 00 C7 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 8B 16 00 90 00 15 [19:31:54]RAPDU: 90 00 [19:31:54]wFMCommunicate OK [19:31:54]wFMCommunicate request_size=10 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 0D 02 02 05 D5 FC 6C 19 78 [19:31:54]Write to MH i2c: E2 0D 00 8C 16 80 0D 02 02 05 00 D5 FC 6C 19 78 00 00 F4 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 8C 16 00 90 00 16 [19:31:54]RAPDU: 90 00 [19:31:54]wFMCommunicate OK [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 0D 03 02 [19:31:54]Write to MH i2c: E2 08 00 8D 16 80 0D 03 02 00 00 00 00 1E [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 0B 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 0B 00 8D 16 00 84 60 A5 4E FD 28 14 9B 90 00 CA [19:31:54]RAPDU: 84 60 A5 4E FD 28 14 9B 90 00 [19:31:54]wFMCommunicate OK [19:31:54]SAM_PROTO_SignData done [19:31:54]FM_MakeSignedData done [19:31:54]CreateOFDProtocolMessage [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 11 00 00 [19:31:54]Write to MH i2c: E2 08 00 8E 16 80 11 00 00 00 00 00 00 1E [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 17 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 17 00 8E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [19:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:31:54]wFMCommunicate OK [19:31:54]CreateOFDProtocolMessage done [19:31:54]OFDSenderStorePacket 165829 [19:31:54]StoreOFDPacket docnum=165829 [19:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F2 F7 07 01 31 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 B6 5A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 87 02 00 35 04 06 00 1F D5 FC 6C 19 78 84 60 A5 4E FD 28 14 9B [19:31:54]CheckFolder [19:31:54]dirname=/storage/ofd_packets [19:31:54]CheckFolder done [19:31:54]ProducePacketName [19:31:54]name=ofd_packets/00165829 [19:31:54]NVStorageSaveData ofd_packets/00165829 [19:31:54]File name is /storage/ofd_packets/00165829 [19:31:54]Write 301 bytes [19:31:54]NVStorageSaveData done [19:31:54]OFDSenderStorePacket done [19:31:54]KKMCreateOFDPacket done [19:31:54]NVStorageSaveData kkm_last_timestamp [19:31:54]File name is /storage/kkm_last_timestamp [19:31:54]Write 4 bytes [19:31:54]NVStorageSaveData done [19:31:54]ExternCall_PrintAddStr [19:31:54]wPrintStart [19:31:54]Write to MH i2c: 01 00 00 8F 16 A5 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: 01 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: 01 07 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: 01 07 00 8F 16 00 00 00 00 00 FF 0F BA [19:31:54]RasterBufferAndPrint [19:31:54]line Счет N : (1)220397 [19:31:54]line ИНН: 02508201610067 [19:31:54]line Контрольно-Кассовый Чек [19:31:54]line ПРОДАЖА [19:31:54]line ТРК (МРК, ГНК) : 33 [19:31:54]line Товар: 2710124130 [19:31:54]line Аи-92-К-5 [19:31:54]line 5.980 * 66.90 [19:31:54]line = 400.06 [19:31:54]line НДС 12% НСП 1% [19:31:54]line > о реализуемом товаре [19:31:54]line ОКРУГЛЕНИЕ: -0.06 [19:31:54]line ИТОГО: 400.00 [19:31:54]line Внесено: 400.00 [19:31:54]line СДАЧА: 0.00 [19:31:54]line НСП 1% : 3.54 [19:31:54]line НДС 12% : 42.48 [19:31:54]line Наличными: 400.00 [19:31:54]line Безнал.: 0.00 [19:31:54]line Место: АЗС № 161 "Партнер Нефть" [19:31:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:31:54]line СНО: Общий режим [19:31:54]line Чек 311 20.10.2024 19:32 [19:31:54]line Смена: 534 ФФД: 1.0 [19:31:54]line ЗНМ: 0300000104 [19:31:54]line РНМ: 0000000000091764 [19:31:54]line Версия ККМ: 001 [19:31:54]line ФМ: 0000000000871759 [19:31:54]line ФД: 165829 [19:31:54]line ФПД: 35003923437944 [19:31:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193206&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165829&fm=35003923437944&tin=02508201610067®Number=0000000000091764&sum=40000 [19:31:54]OFD Sender: Processing packet 165829 [packets to send 48, broken 47] [19:31:54]ProducePacketName [19:31:54]name=ofd_packets/00165829 [19:31:54]OFD Sender: To server: pG, [19:31:54]CommunicateWithHost lk.salyk.kg:30040 [19:31:54]ConnectInit lk.salyk.kg [19:31:54]written 0, free lines is 4095 [19:31:54]Connected sock=10 [19:31:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F2 F7 07 01 31 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 B6 5A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 87 02 00 35 04 06 00 1F D5 FC 6C 19 78 84 60 A5 4E FD 28 14 9B [19:31:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C3 CC 47 00 23 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 31 37 35 39 10 04 04 00 C5 87 02 00 F4 03 04 00 27 01 15 67 B6 04 01 00 00 EE 68 9B 74 44 A2 2E 4A [19:31:54]CommunicateWithHost err = 0 [19:31:54]CheckOFDResponse [19:31:54]1017 (14) - 77093643461234 [19:31:54]1041 (16) - 0000000000871759 [19:31:54]1040 (4) - 165829 [19:31:54]1012 (4) - 20.10.2024 13:09 [19:31:54]1206 (1) - 0 [19:31:54]OFD Sender: Remove packet 165829 [19:31:54]ProducePacketName [19:31:54]name=ofd_packets/00165829 [19:31:54]NVStorageDeleteData [19:31:55]Write to MH i2c: 01 00 00 BA 16 D0 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 07 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 07 00 BA 16 00 00 00 00 00 B2 0C 95 [19:31:55]RasterBufferAndPrint [19:31:55]line [19:31:55]line [19:31:55]line [19:31:55]line [19:31:55]line [19:31:55]written 0, free lines is 3257 [19:31:55]MH_Cut [19:31:55]Write to MH i2c: D1 01 00 C1 16 01 A9 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: D1 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: D1 01 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: D1 01 00 C1 16 00 A8 [19:31:55]Write to MH i2c: 01 00 00 C2 16 D8 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]OFD Sender: No OFD packet to send [19:31:55]*** Cut start [19:31:55]*** Partial cut [19:31:55]*** CUTSNS_PIN = 1 [19:31:55]*** CUTSNS_PIN = 0 [19:31:56]*** Brake cut motor [19:31:56]Read from MH i2c: 01 [19:31:56]MH_I2C_Read... [19:31:56]*** Stop cut motor [19:31:56]*** Cut end [19:31:56]Read from MH i2c: 01 07 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: 01 07 00 C2 16 00 00 00 00 00 FF 0F ED [19:31:56]process_action close_receipt done [19:31:56]requested_data is exist [19:31:56]produce_requested_data [19:31:56]requested_item fm.sn is exist - process it [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 11 00 00 [19:31:56]Write to MH i2c: E2 08 00 C3 16 80 11 00 00 00 00 00 00 53 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 17 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 17 00 C3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [19:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:31:56]wFMCommunicate OK [19:31:56]requested_item fd.num is exist - process it [19:31:56]SAM_PROTO_GetFieldsCounters [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 13 00 00 [19:31:56]Write to MH i2c: E2 08 00 C4 16 80 13 00 00 00 00 00 00 56 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 62 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 62 00 C4 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 87 02 00 0E 04 04 00 16 02 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 8C [19:31: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 87 02 00 0E 04 04 00 16 02 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:31:56]wFMCommunicate OK [19:31:56]SAM_PROTO_GetFieldsCounters done [19:31:56]requested_item shift.num is exist - process it [19:31:56]requested_item shift.opened is exist - process it [19:31:56]req_shift_opened [19:31:56]FM_GetShiftState [19:31:56]SAM_PROTO_GetShiftState [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 13 01 00 [19:31:56]Write to MH i2c: E2 08 00 C5 16 80 13 01 00 00 00 00 00 58 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 0E 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 0E 00 C5 16 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A0 [19:31:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:31:56]wFMCommunicate OK [19:31:56]SAM_PROTO_GetShiftState done [19:31:56]FM_GetShiftState done [19:31:56]req_shift_opened done [19:31:56]requested_item shift.open_date is exist - process it [19:31:56]req_shift_open_date [19:31:56]req_shift_open_date done [19:31:56]produce_requested_data done [19:31:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165829,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:31:56]process_action_free close_receipt [19:31:56]json_value_free [19:31:56]json_value_free done [19:31:56]process_json_proto returns [19:31:56]Send response to host [19:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165829,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:31:56]free response buf [19:31:56]execute_script done [19:31:56]execute_script returns [19:31:56]free content buf [19:31:56]Sock 7.Close socket [19:31:56]Sock 7.Thread stoped [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:29]accept exits with 9 [19:34:29]New connection [19:34:29]New thread 3066776932 created [19:34:29]Thread 3066920292 joined [19:34:29]Waiting for new connection... [19:34:29] Sock 9.Parse request [19:34:29]Sock 9.Check first char [19:34:29]Sock 9.First char is OK [19:34:29]request: POST /json_proto HTTP/1.0 [19:34:29]Method: POST [19:34:29]URL: /json_proto [19:34:29]Method is POST - this is cgi request [19:34:29]url: /json_proto [19:34:29]query_string will be loaded in cgi processing [19:34:29]execute_cgi json_proto POST (null) [19:34:29]execute_cgi path=json_proto method=POST [19:34:29]POST find Content-Length [19:34:29]Host: 172.17.53.195:8080 [19:34:29]Content-Length: 677 [19:34:29]Content-Type: application/json [19:34:29] [19:34:29]POST finish read [19:34:29]Found Content-Length = 677 [19:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:29]execute_script... [19:34: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)220398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:29]POST & json_proto [19:34:29]process_json_proto [19:34:29]json parsed OK: [19:34:29]protocol is kg_v1.0 [19:34:29]action value=close_receipt [19:34:29]process_action close_receipt [19:34:29]cmd_close_receipt [19:34:29]MH_GetDate [19:34:29]Write to MH i2c: F0 00 00 C6 16 CB [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: F0 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: F0 09 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: F0 09 00 C6 16 00 53 5B 15 67 21 48 4A 65 16 [19:34:29]GetLastDocTimeStamp 1729452726 [19:34:29]current date 1729452883 [19:34:29]FM_GetShiftState [19:34:29]SAM_PROTO_GetShiftState [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 13 01 00 [19:34:29]Write to MH i2c: E2 08 00 C7 16 80 13 01 00 00 00 00 00 5A [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 0E 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 0E 00 C7 16 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A2 [19:34:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:34:29]wFMCommunicate OK [19:34:29]SAM_PROTO_GetShiftState done [19:34:29]FM_GetShiftState done [19:34:29]opened in 1729384561 [19:34:29]opened+sec_in_day 1729470961 [19:34:29]quantity*price = 30038 [19:34:29]sum+1 = 30039 [19:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 312 20.10.2024 19:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165830 ФПД: 189332976070397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193443&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165830&fm=189332976070397&tin=02508201610067®Number=0000000000091764&sum=30000 [19:34:30]StoreToDocumentArchive [19:34:30]shift 534 fd 165830 [19:34:30]save to /storage/0534/doc_00165830 [19:34:30]save last doc name /storage/0534/doc_00165830 to /storage/kkm_last_doc_name [19:34:30]save OK [19:34:30]Clear old archive folders... [19:34:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:30]tlvbuf is 01475B70 [19:34:30]SAM_PROTO_ClearQueue [19:34:30]wFMCommunicate request_size=4 [19:34:30]MH_SAM_APDU [19:34:30]CAPDU: 80 09 00 00 [19:34:30]Write to MH i2c: E2 08 00 D4 16 80 09 00 00 00 00 00 00 5C [19:34:30]Write i2c OK [19:34:30]MH_I2C_Read... [19:34:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:30]Read from MH i2c: E2 [19:34:30]MH_I2C_Read... [19:34:30]Read from MH i2c: E2 03 00 [19:34:30]MH_I2C_Read... [19:34:30]Read from MH i2c: E2 03 00 D4 16 00 90 00 5E [19:34:30]RAPDU: 90 00 [19:34:30]wFMCommunicate OK [19:34:30]SAM_PROTO_ClearQueue done [19:34:30]KKMCreateOFDPacket [19:34:30]OFDProtocolAddRootSTLVToBuf [19:34:30]FM_MakeSignedData [19:34:30]FM_MakeSignedData [19:34:30]SAM_PROTO_SignData [19:34:30]wFMCommunicate request_size=4 [19:34:30]MH_SAM_APDU [19:34:30]CAPDU: 80 0D 01 02 [19:34:30]Write to MH i2c: E2 08 00 D5 16 80 0D 01 02 00 00 00 00 64 [19:34:30]Write i2c OK [19:34:30]MH_I2C_Read... [19:34:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:30]Read from MH i2c: E2 [19:34:30]MH_I2C_Read... [19:34:30]Read from MH i2c: E2 03 00 [19:34:30]MH_I2C_Read... [19:34:30]Read from MH i2c: E2 03 00 D5 16 00 90 00 5F [19:34:30]RAPDU: 90 00 [19:34:30]wFMCommunicate OK [19:34:30]wFMCommunicate request_size=255 [19:34:30]MH_SAM_APDU [19:34: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 53 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 87 02 00 35 04 06 00 AC [19:34:30]Write to MH i2c: E2 02 01 D6 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 53 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 87 02 00 35 04 06 00 AC 00 00 64 [19:34:30]Write i2c OK [19:34:30]MH_I2C_Read... [19:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:31]Read from MH i2c: E2 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 03 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 03 00 D6 16 00 90 00 60 [19:34:31]RAPDU: 90 00 [19:34:31]wFMCommunicate OK [19:34:31]wFMCommunicate request_size=10 [19:34:31]MH_SAM_APDU [19:34:31]CAPDU: 80 0D 02 02 05 32 84 C8 6E FD [19:34:31]Write to MH i2c: E2 0D 00 D7 16 80 0D 02 02 05 00 32 84 C8 6E FD 00 00 5A [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:31]Read from MH i2c: E2 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 03 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 03 00 D7 16 00 90 00 61 [19:34:31]RAPDU: 90 00 [19:34:31]wFMCommunicate OK [19:34:31]wFMCommunicate request_size=4 [19:34:31]MH_SAM_APDU [19:34:31]CAPDU: 80 0D 03 02 [19:34:31]Write to MH i2c: E2 08 00 D8 16 80 0D 03 02 00 00 00 00 69 [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:31]Read from MH i2c: E2 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 0B 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 0B 00 D8 16 00 CD 88 96 E4 CF 52 86 B5 90 00 95 [19:34:31]RAPDU: CD 88 96 E4 CF 52 86 B5 90 00 [19:34:31]wFMCommunicate OK [19:34:31]SAM_PROTO_SignData done [19:34:31]FM_MakeSignedData done [19:34:31]CreateOFDProtocolMessage [19:34:31]wFMCommunicate request_size=4 [19:34:31]MH_SAM_APDU [19:34:31]CAPDU: 80 11 00 00 [19:34:31]Write to MH i2c: E2 08 00 D9 16 80 11 00 00 00 00 00 00 69 [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:31]Read from MH i2c: E2 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 17 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 17 00 D9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [19:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:34:31]wFMCommunicate OK [19:34:31]CreateOFDProtocolMessage done [19:34:31]OFDSenderStorePacket 165830 [19:34:31]StoreOFDPacket docnum=165830 [19:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 B7 07 01 26 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 53 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 87 02 00 35 04 06 00 AC 32 84 C8 6E FD CD 88 96 E4 CF 52 86 B5 [19:34:31]CheckFolder [19:34:31]dirname=/storage/ofd_packets [19:34:31]CheckFolder done [19:34:31]ProducePacketName [19:34:31]name=ofd_packets/00165830 [19:34:31]NVStorageSaveData ofd_packets/00165830 [19:34:31]File name is /storage/ofd_packets/00165830 [19:34:31]Write 301 bytes [19:34:31]NVStorageSaveData done [19:34:31]OFDSenderStorePacket done [19:34:31]KKMCreateOFDPacket done [19:34:31]NVStorageSaveData kkm_last_timestamp [19:34:31]File name is /storage/kkm_last_timestamp [19:34:31]Write 4 bytes [19:34:31]NVStorageSaveData done [19:34:31]ExternCall_PrintAddStr [19:34:31]wPrintStart [19:34:31]Write to MH i2c: 01 00 00 DA 16 F0 [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: 01 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: 01 07 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: 01 07 00 DA 16 00 00 00 00 00 FF 0F 05 [19:34:31]RasterBufferAndPrint [19:34:31]line Счет N : (1)220398 [19:34:31]line ИНН: 02508201610067 [19:34:31]line Контрольно-Кассовый Чек [19:34:31]line ПРОДАЖА [19:34:31]line ТРК (МРК, ГНК) : 23 [19:34:31]line Товар: 2710124130 [19:34:31]line Аи-92-К-5 [19:34:31]line 4.490 * 66.90 [19:34:31]line = 300.38 [19:34:31]line НДС 12% НСП 1% [19:34:31]line > о реализуемом товаре [19:34:31]line ОКРУГЛЕНИЕ: -0.38 [19:34:31]line ИТОГО: 300.00 [19:34:31]line Внесено: 300.00 [19:34:31]line СДАЧА: 0.00 [19:34:31]line НСП 1% : 2.66 [19:34:31]line НДС 12% : 31.90 [19:34:31]line Наличными: 300.00 [19:34:31]line Безнал.: 0.00 [19:34:31]line Место: АЗС № 161 "Партнер Нефть" [19:34:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:34:31]line СНО: Общий режим [19:34:31]line Чек 312 20.10.2024 19:34 [19:34:31]line Смена: 534 ФФД: 1.0 [19:34:31]line ЗНМ: 0300000104 [19:34:31]line РНМ: 0000000000091764 [19:34:31]line Версия ККМ: 001 [19:34:31]line ФМ: 0000000000871759 [19:34:31]line ФД: 165830 [19:34:31]line ФПД: 189332976070397 [19:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193443&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165830&fm=189332976070397&tin=02508201610067®Number=0000000000091764&sum=30000 [19:34:31]OFD Sender: Processing packet 165830 [packets to send 48, broken 47] [19:34:31]ProducePacketName [19:34:31]name=ofd_packets/00165830 [19:34:31]OFD Sender: To server: pG, [19:34:31]CommunicateWithHost lk.salyk.kg:30040 [19:34:31]ConnectInit lk.salyk.kg [19:34:31]written 0, free lines is 4095 [19:34:31]Connected sock=10 [19:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 B7 07 01 26 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 53 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 87 02 00 35 04 06 00 AC 32 84 C8 6E FD CD 88 96 E4 CF 52 86 B5 [19:34:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CB 4F 47 00 CA EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 87 02 00 F4 03 04 00 C4 01 15 67 B6 04 01 00 00 FF 2C 5E D6 35 EB 70 EB [19:34:31]CommunicateWithHost err = 0 [19:34:31]CheckOFDResponse [19:34:31]1017 (14) - 77093643461234 [19:34:31]1041 (16) - 0000000000871759 [19:34:31]1040 (4) - 165830 [19:34:31]1012 (4) - 20.10.2024 13:12 [19:34:31]1206 (1) - 0 [19:34:31]OFD Sender: Remove packet 165830 [19:34:31]ProducePacketName [19:34:31]name=ofd_packets/00165830 [19:34:31]NVStorageDeleteData [19:34:32]Write to MH i2c: 01 00 00 05 17 1C [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: 01 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: 01 07 00 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 C2 0C F1 [19:34:32]RasterBufferAndPrint [19:34:32]line [19:34:32]line [19:34:32]line [19:34:32]line [19:34:32]line [19:34:32]written 0, free lines is 3272 [19:34:32]MH_Cut [19:34:32]Write to MH i2c: D1 01 00 0C 17 01 F5 [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: D1 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: D1 01 00 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: D1 01 00 0C 17 00 F4 [19:34:32]Write to MH i2c: 01 00 00 0D 17 24 [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]OFD Sender: No OFD packet to send [19:34:32]*** Cut start [19:34:32]*** Partial cut [19:34:32]*** CUTSNS_PIN = 1 [19:34:32]*** CUTSNS_PIN = 0 [19:34:33]*** Brake cut motor [19:34:33]Read from MH i2c: 01 [19:34:33]MH_I2C_Read... [19:34:33]*** Stop cut motor [19:34:33]*** Cut end [19:34:33]Read from MH i2c: 01 07 00 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: 01 07 00 0D 17 00 00 00 00 00 FF 0F 39 [19:34:33]process_action close_receipt done [19:34:33]requested_data is exist [19:34:33]produce_requested_data [19:34:33]requested_item fm.sn is exist - process it [19:34:33]wFMCommunicate request_size=4 [19:34:33]MH_SAM_APDU [19:34:33]CAPDU: 80 11 00 00 [19:34:33]Write to MH i2c: E2 08 00 0E 17 80 11 00 00 00 00 00 00 9F [19:34:33]Write i2c OK [19:34:33]MH_I2C_Read... [19:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:33]Read from MH i2c: E2 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: E2 17 00 [19:34:33]MH_I2C_Read... [19:34:33]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 31 37 35 39 90 00 F7 [19:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:34:33]wFMCommunicate OK [19:34:33]requested_item fd.num is exist - process it [19:34:33]SAM_PROTO_GetFieldsCounters [19:34:33]wFMCommunicate request_size=4 [19:34:33]MH_SAM_APDU [19:34:33]CAPDU: 80 13 00 00 [19:34:33]Write to MH i2c: E2 08 00 0F 17 80 13 00 00 00 00 00 00 A2 [19:34:33]Write i2c OK [19:34:33]MH_I2C_Read... [19:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:33]Read from MH i2c: E2 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: E2 62 00 [19:34:33]MH_I2C_Read... [19:34:33]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 87 02 00 0E 04 04 00 16 02 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 DC [19:34:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 87 02 00 0E 04 04 00 16 02 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:34:33]wFMCommunicate OK [19:34:33]SAM_PROTO_GetFieldsCounters done [19:34:33]requested_item shift.num is exist - process it [19:34:33]requested_item shift.opened is exist - process it [19:34:33]req_shift_opened [19:34:33]FM_GetShiftState [19:34:33]SAM_PROTO_GetShiftState [19:34:33]wFMCommunicate request_size=4 [19:34:33]MH_SAM_APDU [19:34:33]CAPDU: 80 13 01 00 [19:34:33]Write to MH i2c: E2 08 00 10 17 80 13 01 00 00 00 00 00 A4 [19:34:33]Write i2c OK [19:34:33]MH_I2C_Read... [19:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:33]Read from MH i2c: E2 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: E2 0E 00 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: E2 0E 00 10 17 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EC [19:34:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:34:33]wFMCommunicate OK [19:34:33]SAM_PROTO_GetShiftState done [19:34:33]FM_GetShiftState done [19:34:33]req_shift_opened done [19:34:33]requested_item shift.open_date is exist - process it [19:34:33]req_shift_open_date [19:34:33]req_shift_open_date done [19:34:33]produce_requested_data done [19:34:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165830,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:34:33]process_action_free close_receipt [19:34:33]json_value_free [19:34:33]json_value_free done [19:34:33]process_json_proto returns [19:34:33]Send response to host [19:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165830,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:34:33]free response buf [19:34:33]execute_script done [19:34:33]execute_script returns [19:34:33]free content buf [19:34:33]Sock 9.Close socket [19:34:33]Sock 9.Thread stoped [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:52]accept exits with 7 [19:34:52]New connection [19:34:52]New thread 3066920292 created [19:34:52]Thread 3066776932 joined [19:34:52]Waiting for new connection... [19:34:52] Sock 7.Parse request [19:34:52]Sock 7.Check first char [19:34:52]Sock 7.First char is OK [19:34:52]request: POST /json_proto HTTP/1.0 [19:34:52]Method: POST [19:34:52]URL: /json_proto [19:34:52]Method is POST - this is cgi request [19:34:52]url: /json_proto [19:34:52]query_string will be loaded in cgi processing [19:34:52]execute_cgi json_proto POST (null) [19:34:52]execute_cgi path=json_proto method=POST [19:34:52]POST find Content-Length [19:34:52]Host: 172.17.53.195:8080 [19:34:52]Content-Length: 682 [19:34:52]Content-Type: application/json [19:34:52] [19:34:52]POST finish read [19:34:52]Found Content-Length = 682 [19:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:52]execute_script... [19:34: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)220399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:52]POST & json_proto [19:34:52]process_json_proto [19:34:52]json parsed OK: [19:34:52]protocol is kg_v1.0 [19:34:52]action value=close_receipt [19:34:52]process_action close_receipt [19:34:52]cmd_close_receipt [19:34:52]MH_GetDate [19:34:52]Write to MH i2c: F0 00 00 11 17 17 [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: F0 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: F0 09 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: F0 09 00 11 17 00 6A 5B 15 67 21 48 4A 65 79 [19:34:52]GetLastDocTimeStamp 1729452883 [19:34:52]current date 1729452906 [19:34:52]FM_GetShiftState [19:34:52]SAM_PROTO_GetShiftState [19:34:52]wFMCommunicate request_size=4 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 13 01 00 [19:34:52]Write to MH i2c: E2 08 00 12 17 80 13 01 00 00 00 00 00 A6 [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 0E 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 0E 00 12 17 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EE [19:34:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:34:52]wFMCommunicate OK [19:34:52]SAM_PROTO_GetShiftState done [19:34:52]FM_GetShiftState done [19:34:52]opened in 1729384561 [19:34:52]opened+sec_in_day 1729470961 [19:34:52]quantity*price = 100015 [19:34:52]sum+1 = 100017 [19:34: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 313 20.10.2024 19:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165831 ФПД: 46082562912202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165831&fm=46082562912202&tin=02508201610067®Number=0000000000091764&sum=100000 [19:34:53]StoreToDocumentArchive [19:34:53]shift 534 fd 165831 [19:34:53]save to /storage/0534/doc_00165831 [19:34:53]save last doc name /storage/0534/doc_00165831 to /storage/kkm_last_doc_name [19:34:53]save OK [19:34:53]Clear old archive folders... [19:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:53]tlvbuf is 01A918F0 [19:34:53]SAM_PROTO_ClearQueue [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 09 00 00 [19:34:53]Write to MH i2c: E2 08 00 1F 17 80 09 00 00 00 00 00 00 A8 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 03 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 03 00 1F 17 00 90 00 AA [19:34:53]RAPDU: 90 00 [19:34:53]wFMCommunicate OK [19:34:53]SAM_PROTO_ClearQueue done [19:34:53]KKMCreateOFDPacket [19:34:53]OFDProtocolAddRootSTLVToBuf [19:34:53]FM_MakeSignedData [19:34:53]FM_MakeSignedData [19:34:53]SAM_PROTO_SignData [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 0D 01 02 [19:34:53]Write to MH i2c: E2 08 00 20 17 80 0D 01 02 00 00 00 00 B0 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 03 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 03 00 20 17 00 90 00 AB [19:34:53]RAPDU: 90 00 [19:34:53]wFMCommunicate OK [19:34:53]wFMCommunicate request_size=255 [19:34:53]MH_SAM_APDU [19:34: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 6A 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 87 02 00 35 04 06 00 29 [19:34:53]Write to MH i2c: E2 02 01 21 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 6A 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 87 02 00 35 04 06 00 29 00 00 4C [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 21 17 00 90 00 AC [19:34:54]RAPDU: 90 00 [19:34:54]wFMCommunicate OK [19:34:54]wFMCommunicate request_size=10 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 0D 02 02 05 E9 6E CA EF CA [19:34:54]Write to MH i2c: E2 0D 00 22 17 80 0D 02 02 05 00 E9 6E CA EF CA 00 00 97 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [19:34:54]RAPDU: 90 00 [19:34:54]wFMCommunicate OK [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 0D 03 02 [19:34:54]Write to MH i2c: E2 08 00 23 17 80 0D 03 02 00 00 00 00 B5 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 0B 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 0B 00 23 17 00 2D 2C E7 7B 5A 12 57 B9 90 00 ED [19:34:54]RAPDU: 2D 2C E7 7B 5A 12 57 B9 90 00 [19:34:54]wFMCommunicate OK [19:34:54]SAM_PROTO_SignData done [19:34:54]FM_MakeSignedData done [19:34:54]CreateOFDProtocolMessage [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 11 00 00 [19:34:54]Write to MH i2c: E2 08 00 24 17 80 11 00 00 00 00 00 00 B5 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 17 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 17 00 24 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [19:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:34:54]wFMCommunicate OK [19:34:54]CreateOFDProtocolMessage done [19:34:54]OFDSenderStorePacket 165831 [19:34:54]StoreOFDPacket docnum=165831 [19:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A3 C5 07 01 0F E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 6A 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 87 02 00 35 04 06 00 29 E9 6E CA EF CA 2D 2C E7 7B 5A 12 57 B9 [19:34:54]CheckFolder [19:34:54]dirname=/storage/ofd_packets [19:34:54]CheckFolder done [19:34:54]ProducePacketName [19:34:54]name=ofd_packets/00165831 [19:34:54]NVStorageSaveData ofd_packets/00165831 [19:34:54]File name is /storage/ofd_packets/00165831 [19:34:54]Write 301 bytes [19:34:54]NVStorageSaveData done [19:34:54]OFDSenderStorePacket done [19:34:54]KKMCreateOFDPacket done [19:34:54]NVStorageSaveData kkm_last_timestamp [19:34:54]File name is /storage/kkm_last_timestamp [19:34:54]Write 4 bytes [19:34:54]NVStorageSaveData done [19:34:54]ExternCall_PrintAddStr [19:34:54]wPrintStart [19:34:54]Write to MH i2c: 01 00 00 25 17 3C [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 07 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 07 00 25 17 00 00 00 00 00 FF 0F 51 [19:34:54]RasterBufferAndPrint [19:34:54]line Счет N : (1)220399 [19:34:54]line ИНН: 02508201610067 [19:34:54]line Контрольно-Кассовый Чек [19:34:54]line ПРОДАЖА [19:34:54]line ТРК (МРК, ГНК) : 13 [19:34:54]line Товар: 2710124130 [19:34:54]line Аи-92-К-5 [19:34:54]line 14.950 * 66.90 [19:34:54]line = 1000.16 [19:34:54]line НДС 12% НСП 1% [19:34:54]line > о реализуемом товаре [19:34:54]line ОКРУГЛЕНИЕ: -0.16 [19:34:54]line ИТОГО: 1000.00 [19:34:54]line Внесено: 1000.00 [19:34:54]line СДАЧА: 0.00 [19:34:54]line НСП 1% : 8.85 [19:34:54]line НДС 12% : 106.21 [19:34:54]line Наличными: 1000.00 [19:34:54]line Безнал.: 0.00 [19:34:54]line Место: АЗС № 161 "Партнер Нефть" [19:34:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:34:54]line СНО: Общий режим [19:34:54]line Чек 313 20.10.2024 19:35 [19:34:54]line Смена: 534 ФФД: 1.0 [19:34:54]line ЗНМ: 0300000104 [19:34:54]line РНМ: 0000000000091764 [19:34:54]line Версия ККМ: 001 [19:34:54]line ФМ: 0000000000871759 [19:34:54]line ФД: 165831 [19:34:54]line ФПД: 46082562912202 [19:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165831&fm=46082562912202&tin=02508201610067®Number=0000000000091764&sum=100000 [19:34:54]OFD Sender: Processing packet 165831 [packets to send 48, broken 47] [19:34:54]ProducePacketName [19:34:54]name=ofd_packets/00165831 [19:34:54]OFD Sender: To server: pG, [19:34:54]CommunicateWithHost lk.salyk.kg:30040 [19:34:54]ConnectInit lk.salyk.kg [19:34:54]written 0, free lines is 4095 [19:34:54]Connected sock=10 [19:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A3 C5 07 01 0F E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 6A 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 87 02 00 35 04 06 00 29 E9 6E CA EF CA 2D 2C E7 7B 5A 12 57 B9 [19:34:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4A 68 47 00 50 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 31 37 35 39 10 04 04 00 C7 87 02 00 F4 03 04 00 DB 01 15 67 B6 04 01 00 00 B4 6B E0 81 B3 1A 09 E6 [19:34:54]CommunicateWithHost err = 0 [19:34:54]CheckOFDResponse [19:34:54]1017 (14) - 77093643461234 [19:34:54]1041 (16) - 0000000000871759 [19:34:54]1040 (4) - 165831 [19:34:54]1012 (4) - 20.10.2024 13:12 [19:34:54]1206 (1) - 0 [19:34:54]OFD Sender: Remove packet 165831 [19:34:54]ProducePacketName [19:34:54]name=ofd_packets/00165831 [19:34:54]NVStorageDeleteData [19:34:54]Write to MH i2c: 01 00 00 50 17 67 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 07 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 B4 0C 2E [19:34:54]RasterBufferAndPrint [19:34:54]line [19:34:54]line [19:34:54]line [19:34:54]line [19:34:54]line [19:34:54]written 0, free lines is 3259 [19:34:54]MH_Cut [19:34:54]Write to MH i2c: D1 01 00 57 17 01 40 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: D1 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: D1 01 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: D1 01 00 57 17 00 3F [19:34:54]Write to MH i2c: 01 00 00 58 17 6F [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:55]OFD Sender: No OFD packet to send [19:34:55]*** Cut start [19:34:55]*** Partial cut [19:34:55]*** CUTSNS_PIN = 1 [19:34:55]*** CUTSNS_PIN = 0 [19:34:56]*** Brake cut motor [19:34:56]Read from MH i2c: 01 [19:34:56]MH_I2C_Read... [19:34:56]*** Stop cut motor [19:34:56]*** Cut end [19:34:56]Read from MH i2c: 01 07 00 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: 01 07 00 58 17 00 00 00 00 00 FF 0F 84 [19:34:56]process_action close_receipt done [19:34:56]requested_data is exist [19:34:56]produce_requested_data [19:34:56]requested_item fm.sn is exist - process it [19:34:56]wFMCommunicate request_size=4 [19:34:56]MH_SAM_APDU [19:34:56]CAPDU: 80 11 00 00 [19:34:56]Write to MH i2c: E2 08 00 59 17 80 11 00 00 00 00 00 00 EA [19:34:56]Write i2c OK [19:34:56]MH_I2C_Read... [19:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:56]Read from MH i2c: E2 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 17 00 [19:34:56]MH_I2C_Read... [19:34:56]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 31 37 35 39 90 00 42 [19:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:34:56]wFMCommunicate OK [19:34:56]requested_item fd.num is exist - process it [19:34:56]SAM_PROTO_GetFieldsCounters [19:34:56]wFMCommunicate request_size=4 [19:34:56]MH_SAM_APDU [19:34:56]CAPDU: 80 13 00 00 [19:34:56]Write to MH i2c: E2 08 00 5A 17 80 13 00 00 00 00 00 00 ED [19:34:56]Write i2c OK [19:34:56]MH_I2C_Read... [19:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:56]Read from MH i2c: E2 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 62 00 [19:34:56]MH_I2C_Read... [19:34:56]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 87 02 00 0E 04 04 00 16 02 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 2B [19:34: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 87 02 00 0E 04 04 00 16 02 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:34:56]wFMCommunicate OK [19:34:56]SAM_PROTO_GetFieldsCounters done [19:34:56]requested_item shift.num is exist - process it [19:34:56]requested_item shift.opened is exist - process it [19:34:56]req_shift_opened [19:34:56]FM_GetShiftState [19:34:56]SAM_PROTO_GetShiftState [19:34:56]wFMCommunicate request_size=4 [19:34:56]MH_SAM_APDU [19:34:56]CAPDU: 80 13 01 00 [19:34:56]Write to MH i2c: E2 08 00 5B 17 80 13 01 00 00 00 00 00 EF [19:34:56]Write i2c OK [19:34:56]MH_I2C_Read... [19:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:56]Read from MH i2c: E2 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 0E 00 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 0E 00 5B 17 00 09 00 01 71 50 14 67 00 00 00 00 90 00 37 [19:34:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:34:56]wFMCommunicate OK [19:34:56]SAM_PROTO_GetShiftState done [19:34:56]FM_GetShiftState done [19:34:56]req_shift_opened done [19:34:56]requested_item shift.open_date is exist - process it [19:34:56]req_shift_open_date [19:34:56]req_shift_open_date done [19:34:56]produce_requested_data done [19:34:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165831,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:34:56]process_action_free close_receipt [19:34:56]json_value_free [19:34:56]json_value_free done [19:34:56]process_json_proto returns [19:34:56]Send response to host [19:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165831,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:34:56]free response buf [19:34:56]execute_script done [19:34:56]execute_script returns [19:34:56]free content buf [19:34:56]Sock 7.Close socket [19:34:56]Sock 7.Thread stoped [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:20]accept exits with 9 [19:35:20]New connection [19:35:20]New thread 3066776932 created [19:35:20]Thread 3066920292 joined [19:35:20]Waiting for new connection... [19:35:20] Sock 9.Parse request [19:35:20]Sock 9.Check first char [19:35:20]Sock 9.First char is OK [19:35:20]request: POST /json_proto HTTP/1.0 [19:35:20]Method: POST [19:35:20]URL: /json_proto [19:35:20]Method is POST - this is cgi request [19:35:20]url: /json_proto [19:35:20]query_string will be loaded in cgi processing [19:35:20]execute_cgi json_proto POST (null) [19:35:20]execute_cgi path=json_proto method=POST [19:35:20]POST find Content-Length [19:35:20]Host: 172.17.53.195:8080 [19:35:20]Content-Length: 674 [19:35:20]Content-Type: application/json [19:35:20] [19:35:20]POST finish read [19:35:20]Found Content-Length = 674 [19:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:35:20]execute_script... [19:35: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)220400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:35:20]POST & json_proto [19:35:20]process_json_proto [19:35:20]json parsed OK: [19:35:20]protocol is kg_v1.0 [19:35:20]action value=close_receipt [19:35:20]process_action close_receipt [19:35:20]cmd_close_receipt [19:35:20]MH_GetDate [19:35:20]Write to MH i2c: F0 00 00 5C 17 62 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: F0 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: F0 09 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: F0 09 00 5C 17 00 86 5B 15 67 21 48 4A 65 E0 [19:35:20]GetLastDocTimeStamp 1729452906 [19:35:20]current date 1729452934 [19:35:20]FM_GetShiftState [19:35:20]SAM_PROTO_GetShiftState [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 13 01 00 [19:35:20]Write to MH i2c: E2 08 00 5D 17 80 13 01 00 00 00 00 00 F1 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0E 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0E 00 5D 17 00 09 00 01 71 50 14 67 00 00 00 00 90 00 39 [19:35:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_GetShiftState done [19:35:20]FM_GetShiftState done [19:35:20]opened in 1729384561 [19:35:20]opened+sec_in_day 1729470961 [19:35:20]quantity*price = 70027 [19:35:20]sum+1 = 70029 [19:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 314 20.10.2024 19:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165832 ФПД: 68361902058389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193534&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165832&fm=68361902058389&tin=02508201610067®Number=0000000000091764&sum=70000 [19:35:21]StoreToDocumentArchive [19:35:21]shift 534 fd 165832 [19:35:21]save to /storage/0534/doc_00165832 [19:35:21]save last doc name /storage/0534/doc_00165832 to /storage/kkm_last_doc_name [19:35:21]save OK [19:35:21]Clear old archive folders... [19:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:35:21]tlvbuf is 0166AB10 [19:35:21]SAM_PROTO_ClearQueue [19:35:21]wFMCommunicate request_size=4 [19:35:21]MH_SAM_APDU [19:35:21]CAPDU: 80 09 00 00 [19:35:21]Write to MH i2c: E2 08 00 6A 17 80 09 00 00 00 00 00 00 F3 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:21]Read from MH i2c: E2 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [19:35:21]RAPDU: 90 00 [19:35:21]wFMCommunicate OK [19:35:21]SAM_PROTO_ClearQueue done [19:35:21]KKMCreateOFDPacket [19:35:21]OFDProtocolAddRootSTLVToBuf [19:35:21]FM_MakeSignedData [19:35:21]FM_MakeSignedData [19:35:21]SAM_PROTO_SignData [19:35:21]wFMCommunicate request_size=4 [19:35:21]MH_SAM_APDU [19:35:21]CAPDU: 80 0D 01 02 [19:35:21]Write to MH i2c: E2 08 00 6B 17 80 0D 01 02 00 00 00 00 FB [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:21]Read from MH i2c: E2 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 6B 17 00 90 00 F6 [19:35:21]RAPDU: 90 00 [19:35:21]wFMCommunicate OK [19:35:21]wFMCommunicate request_size=255 [19:35:21]MH_SAM_APDU [19:35: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 3A 01 00 00 F4 03 04 00 86 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 87 02 00 35 04 06 00 3E 2C BE E3 [19:35:21]Write to MH i2c: E2 02 01 6C 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 3A 01 00 00 F4 03 04 00 86 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 87 02 00 35 04 06 00 3E 2C BE E3 00 00 8F [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 03 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 03 00 6C 17 00 90 00 F7 [19:35:22]RAPDU: 90 00 [19:35:22]wFMCommunicate OK [19:35:22]wFMCommunicate request_size=7 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 0D 02 02 02 6B 95 [19:35:22]Write to MH i2c: E2 0A 00 6D 17 80 0D 02 02 02 00 6B 95 00 00 02 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 03 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 03 00 6D 17 00 90 00 F8 [19:35:22]RAPDU: 90 00 [19:35:22]wFMCommunicate OK [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 0D 03 02 [19:35:22]Write to MH i2c: E2 08 00 6E 17 80 0D 03 02 00 00 00 00 00 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0B 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0B 00 6E 17 00 71 A2 AF 23 7D 87 E9 43 90 00 16 [19:35:22]RAPDU: 71 A2 AF 23 7D 87 E9 43 90 00 [19:35:22]wFMCommunicate OK [19:35:22]SAM_PROTO_SignData done [19:35:22]FM_MakeSignedData done [19:35:22]CreateOFDProtocolMessage [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 11 00 00 [19:35:22]Write to MH i2c: E2 08 00 6F 17 80 11 00 00 00 00 00 00 00 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 [19:35:22]MH_I2C_Read... [19:35:22]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 31 37 35 39 90 00 58 [19:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:35:22]wFMCommunicate OK [19:35:22]CreateOFDProtocolMessage done [19:35:22]OFDSenderStorePacket 165832 [19:35:22]StoreOFDPacket docnum=165832 [19:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 97 B0 04 01 DB 62 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 3A 01 00 00 F4 03 04 00 86 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 87 02 00 35 04 06 00 3E 2C BE E3 6B 95 71 A2 AF 23 7D 87 E9 43 [19:35:22]CheckFolder [19:35:22]dirname=/storage/ofd_packets [19:35:22]CheckFolder done [19:35:22]ProducePacketName [19:35:22]name=ofd_packets/00165832 [19:35:22]NVStorageSaveData ofd_packets/00165832 [19:35:22]File name is /storage/ofd_packets/00165832 [19:35:22]Write 298 bytes [19:35:22]NVStorageSaveData done [19:35:22]OFDSenderStorePacket done [19:35:22]KKMCreateOFDPacket done [19:35:22]NVStorageSaveData kkm_last_timestamp [19:35:22]File name is /storage/kkm_last_timestamp [19:35:22]Write 4 bytes [19:35:22]NVStorageSaveData done [19:35:22]ExternCall_PrintAddStr [19:35:22]wPrintStart [19:35:22]Write to MH i2c: 01 00 00 70 17 87 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 70 17 00 00 00 00 00 FF 0F 9C [19:35:22]RasterBufferAndPrint [19:35:22]line Счет N : (1)220400 [19:35:22]line ИНН: 02508201610067 [19:35:22]line Контрольно-Кассовый Чек [19:35:22]line ПРОДАЖА [19:35:22]line ТРК (МРК, ГНК) : 41 [19:35:22]line Товар: 2710194210 [19:35:22]line ДТ-К-5 [19:35:22]line 9.190 * 76.20 [19:35:22]line = 700.28 [19:35:22]line НДС 12% НСП 1% [19:35:22]line > о реализуемом товаре [19:35:22]line ОКРУГЛЕНИЕ: -0.28 [19:35:22]line ИТОГО: 700.00 [19:35:22]line Внесено: 700.00 [19:35:22]line СДАЧА: 0.00 [19:35:22]line НСП 1% : 6.20 [19:35:22]line НДС 12% : 74.37 [19:35:22]line Наличными: 700.00 [19:35:22]line Безнал.: 0.00 [19:35:22]line Место: АЗС № 161 "Партнер Нефть" [19:35:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:35:22]line СНО: Общий режим [19:35:22]line Чек 314 20.10.2024 19:35 [19:35:22]line Смена: 534 ФФД: 1.0 [19:35:22]line ЗНМ: 0300000104 [19:35:22]line РНМ: 0000000000091764 [19:35:22]line Версия ККМ: 001 [19:35:22]line ФМ: 0000000000871759 [19:35:22]line ФД: 165832 [19:35:22]line ФПД: 68361902058389 [19:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193534&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165832&fm=68361902058389&tin=02508201610067®Number=0000000000091764&sum=70000 [19:35:22]OFD Sender: Processing packet 165832 [packets to send 48, broken 47] [19:35:22]ProducePacketName [19:35:22]name=ofd_packets/00165832 [19:35:22]OFD Sender: To server: pG, [19:35:22]CommunicateWithHost lk.salyk.kg:30040 [19:35:22]ConnectInit lk.salyk.kg [19:35:22]written 0, free lines is 4095 [19:35:22]Connected sock=10 [19:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 97 B0 04 01 DB 62 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 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 3A 01 00 00 F4 03 04 00 86 5B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 87 02 00 35 04 06 00 3E 2C BE E3 6B 95 71 A2 AF 23 7D 87 E9 43 [19:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1C EF 47 00 26 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 31 37 35 39 10 04 04 00 C8 87 02 00 F4 03 04 00 F7 01 15 67 B6 04 01 00 00 E1 39 B5 A0 2C F6 95 FD [19:35:22]CommunicateWithHost err = 0 [19:35:22]CheckOFDResponse [19:35:22]1017 (14) - 77093643461234 [19:35:22]1041 (16) - 0000000000871759 [19:35:22]1040 (4) - 165832 [19:35:22]1012 (4) - 20.10.2024 13:13 [19:35:22]1206 (1) - 0 [19:35:22]OFD Sender: Remove packet 165832 [19:35:22]ProducePacketName [19:35:22]name=ofd_packets/00165832 [19:35:22]NVStorageDeleteData [19:35:23]Write to MH i2c: 01 00 00 9B 17 B2 [19:35:23]Write i2c OK [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: 01 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: 01 07 00 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 B8 0C 7D [19:35:23]RasterBufferAndPrint [19:35:23]line [19:35:23]line [19:35:23]line [19:35:23]line [19:35:23]line [19:35:23]written 0, free lines is 3264 [19:35:23]MH_Cut [19:35:23]Write to MH i2c: D1 01 00 A2 17 01 8B [19:35:23]Write i2c OK [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: D1 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: D1 01 00 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: D1 01 00 A2 17 00 8A [19:35:23]Write to MH i2c: 01 00 00 A3 17 BA [19:35:23]Write i2c OK [19:35:23]MH_I2C_Read... [19:35:23]OFD Sender: No OFD packet to send [19:35:23]*** Cut start [19:35:23]*** Partial cut [19:35:23]*** CUTSNS_PIN = 1 [19:35:23]*** CUTSNS_PIN = 0 [19:35:24]*** Brake cut motor [19:35:24]Read from MH i2c: 01 [19:35:24]MH_I2C_Read... [19:35:24]*** Stop cut motor [19:35:24]*** Cut end [19:35:24]Read from MH i2c: 01 07 00 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: 01 07 00 A3 17 00 00 00 00 00 FF 0F CF [19:35:24]process_action close_receipt done [19:35:24]requested_data is exist [19:35:24]produce_requested_data [19:35:24]requested_item fm.sn is exist - process it [19:35:24]wFMCommunicate request_size=4 [19:35:24]MH_SAM_APDU [19:35:24]CAPDU: 80 11 00 00 [19:35:24]Write to MH i2c: E2 08 00 A4 17 80 11 00 00 00 00 00 00 35 [19:35:24]Write i2c OK [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 [19:35:24]MH_I2C_Read... [19:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:24]Read from MH i2c: E2 17 00 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 17 00 A4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [19:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:35:24]wFMCommunicate OK [19:35:24]requested_item fd.num is exist - process it [19:35:24]SAM_PROTO_GetFieldsCounters [19:35:24]wFMCommunicate request_size=4 [19:35:24]MH_SAM_APDU [19:35:24]CAPDU: 80 13 00 00 [19:35:24]Write to MH i2c: E2 08 00 A5 17 80 13 00 00 00 00 00 00 38 [19:35:24]Write i2c OK [19:35:24]MH_I2C_Read... [19:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:24]Read from MH i2c: E2 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 62 00 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 62 00 A5 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 87 02 00 0E 04 04 00 16 02 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 7A [19:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 87 02 00 0E 04 04 00 16 02 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:35:24]wFMCommunicate OK [19:35:24]SAM_PROTO_GetFieldsCounters done [19:35:24]requested_item shift.num is exist - process it [19:35:24]requested_item shift.opened is exist - process it [19:35:24]req_shift_opened [19:35:24]FM_GetShiftState [19:35:24]SAM_PROTO_GetShiftState [19:35:24]wFMCommunicate request_size=4 [19:35:24]MH_SAM_APDU [19:35:24]CAPDU: 80 13 01 00 [19:35:24]Write to MH i2c: E2 08 00 A6 17 80 13 01 00 00 00 00 00 3A [19:35:24]Write i2c OK [19:35:24]MH_I2C_Read... [19:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:24]Read from MH i2c: E2 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 0E 00 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 0E 00 A6 17 00 09 00 01 71 50 14 67 00 00 00 00 90 00 82 [19:35:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:35:24]wFMCommunicate OK [19:35:24]SAM_PROTO_GetShiftState done [19:35:24]FM_GetShiftState done [19:35:24]req_shift_opened done [19:35:24]requested_item shift.open_date is exist - process it [19:35:24]req_shift_open_date [19:35:24]req_shift_open_date done [19:35:24]produce_requested_data done [19:35:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165832,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:35:24]process_action_free close_receipt [19:35:24]json_value_free [19:35:24]json_value_free done [19:35:24]process_json_proto returns [19:35:24]Send response to host [19:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165832,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:35:24]free response buf [19:35:24]execute_script done [19:35:24]execute_script returns [19:35:24]free content buf [19:35:24]Sock 9.Close socket [19:35:24]Sock 9.Thread stoped [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39: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:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:34]accept exits with 7 [19:43:34]New connection [19:43:34]New thread 3066920292 created [19:43:34]Thread 3066776932 joined [19:43:34]Waiting for new connection... [19:43:34] Sock 7.Parse request [19:43:34]Sock 7.Check first char [19:43:34]Sock 7.First char is OK [19:43:34]request: POST /json_proto HTTP/1.0 [19:43:34]Method: POST [19:43:34]URL: /json_proto [19:43:34]Method is POST - this is cgi request [19:43:34]url: /json_proto [19:43:34]query_string will be loaded in cgi processing [19:43:34]execute_cgi json_proto POST (null) [19:43:34]execute_cgi path=json_proto method=POST [19:43:34]POST find Content-Length [19:43:34]Host: 172.17.53.195:8080 [19:43:34]Content-Length: 674 [19:43:34]Content-Type: application/json [19:43:34] [19:43:34]POST finish read [19:43:34]Found Content-Length = 674 [19:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220401", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:43:34]execute_script... [19:43: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)220401", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:43:34]POST & json_proto [19:43:34]process_json_proto [19:43:34]json parsed OK: [19:43:34]protocol is kg_v1.0 [19:43:34]action value=close_receipt [19:43:34]process_action close_receipt [19:43:34]cmd_close_receipt [19:43:34]MH_GetDate [19:43:34]Write to MH i2c: F0 00 00 A7 17 AD [19:43:34]Write i2c OK [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: F0 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: F0 09 00 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: F0 09 00 A7 17 00 74 5D 15 67 21 48 4A 65 1B [19:43:34]GetLastDocTimeStamp 1729452934 [19:43:34]current date 1729453428 [19:43:34]FM_GetShiftState [19:43:34]SAM_PROTO_GetShiftState [19:43:34]wFMCommunicate request_size=4 [19:43:34]MH_SAM_APDU [19:43:34]CAPDU: 80 13 01 00 [19:43:34]Write to MH i2c: E2 08 00 A8 17 80 13 01 00 00 00 00 00 3C [19:43:34]Write i2c OK [19:43:34]MH_I2C_Read... [19:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:34]Read from MH i2c: E2 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 0E 00 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 0E 00 A8 17 00 09 00 01 71 50 14 67 00 00 00 00 90 00 84 [19:43:34]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:43:34]wFMCommunicate OK [19:43:34]SAM_PROTO_GetShiftState done [19:43:34]FM_GetShiftState done [19:43:34]opened in 1729384561 [19:43:34]opened+sec_in_day 1729470961 [19:43:34]quantity*price = 50063 [19:43:34]sum+1 = 50064 [19:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 315 20.10.2024 19:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165833 ФПД: 273493785086196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194348&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165833&fm=273493785086196&tin=02508201610067®Number=0000000000091764&sum=50000 [19:43:35]StoreToDocumentArchive [19:43:35]shift 534 fd 165833 [19:43:35]save to /storage/0534/doc_00165833 [19:43:35]save last doc name /storage/0534/doc_00165833 to /storage/kkm_last_doc_name [19:43:35]save OK [19:43:35]Clear old archive folders... [19:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:43:35]tlvbuf is 01522C00 [19:43:35]SAM_PROTO_ClearQueue [19:43:35]wFMCommunicate request_size=4 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 09 00 00 [19:43:35]Write to MH i2c: E2 08 00 B5 17 80 09 00 00 00 00 00 00 3E [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [19:43:35]RAPDU: 90 00 [19:43:35]wFMCommunicate OK [19:43:35]SAM_PROTO_ClearQueue done [19:43:35]KKMCreateOFDPacket [19:43:35]OFDProtocolAddRootSTLVToBuf [19:43:35]FM_MakeSignedData [19:43:35]FM_MakeSignedData [19:43:35]SAM_PROTO_SignData [19:43:35]wFMCommunicate request_size=4 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 0D 01 02 [19:43:35]Write to MH i2c: E2 08 00 B6 17 80 0D 01 02 00 00 00 00 46 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [19:43:35]RAPDU: 90 00 [19:43:35]wFMCommunicate OK [19:43:35]wFMCommunicate request_size=255 [19:43:35]MH_SAM_APDU [19:43: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3B 01 00 00 F4 03 04 00 74 5D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 87 02 00 35 04 06 00 F8 BD BB E8 [19:43:35]Write to MH i2c: E2 02 01 B7 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3B 01 00 00 F4 03 04 00 74 5D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 87 02 00 35 04 06 00 F8 BD BB E8 00 00 A5 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:35]Read from MH i2c: E2 03 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 B7 17 00 90 00 42 [19:43:35]RAPDU: 90 00 [19:43:35]wFMCommunicate OK [19:43:35]wFMCommunicate request_size=7 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 0D 02 02 02 88 F4 [19:43:35]Write to MH i2c: E2 0A 00 B8 17 80 0D 02 02 02 00 88 F4 00 00 C9 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 B8 17 00 90 00 43 [19:43:35]RAPDU: 90 00 [19:43:35]wFMCommunicate OK [19:43:35]wFMCommunicate request_size=4 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 0D 03 02 [19:43:35]Write to MH i2c: E2 08 00 B9 17 80 0D 03 02 00 00 00 00 4B [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 0B 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 0B 00 B9 17 00 A6 52 AF 0B 71 55 81 B8 90 00 FD [19:43:35]RAPDU: A6 52 AF 0B 71 55 81 B8 90 00 [19:43:35]wFMCommunicate OK [19:43:35]SAM_PROTO_SignData done [19:43:35]FM_MakeSignedData done [19:43:35]CreateOFDProtocolMessage [19:43:35]wFMCommunicate request_size=4 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 11 00 00 [19:43:35]Write to MH i2c: E2 08 00 BA 17 80 11 00 00 00 00 00 00 4B [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 17 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 17 00 BA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [19:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:43:35]wFMCommunicate OK [19:43:35]CreateOFDProtocolMessage done [19:43:35]OFDSenderStorePacket 165833 [19:43:35]StoreOFDPacket docnum=165833 [19:43:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 CE C4 04 01 EE 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3B 01 00 00 F4 03 04 00 74 5D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 87 02 00 35 04 06 00 F8 BD BB E8 88 F4 A6 52 AF 0B 71 55 81 B8 [19:43:35]CheckFolder [19:43:35]dirname=/storage/ofd_packets [19:43:35]CheckFolder done [19:43:35]ProducePacketName [19:43:35]name=ofd_packets/00165833 [19:43:35]NVStorageSaveData ofd_packets/00165833 [19:43:35]File name is /storage/ofd_packets/00165833 [19:43:35]Write 298 bytes [19:43:35]NVStorageSaveData done [19:43:35]OFDSenderStorePacket done [19:43:35]KKMCreateOFDPacket done [19:43:35]NVStorageSaveData kkm_last_timestamp [19:43:35]File name is /storage/kkm_last_timestamp [19:43:35]Write 4 bytes [19:43:35]NVStorageSaveData done [19:43:35]ExternCall_PrintAddStr [19:43:35]wPrintStart [19:43:35]Write to MH i2c: 01 00 00 BB 17 D2 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 07 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 FF 0F E7 [19:43:35]RasterBufferAndPrint [19:43:35]line Счет N : (1)220401 [19:43:35]line ИНН: 02508201610067 [19:43:35]line Контрольно-Кассовый Чек [19:43:35]line ПРОДАЖА [19:43:35]line ТРК (МРК, ГНК) : 21 [19:43:35]line Товар: 2710194210 [19:43:35]line ДТ-К-5 [19:43:35]line 6.570 * 76.20 [19:43:35]line = 500.63 [19:43:35]line НДС 12% НСП 1% [19:43:35]line > о реализуемом товаре [19:43:35]line ОКРУГЛЕНИЕ: -0.63 [19:43:35]line ИТОГО: 500.00 [19:43:35]line Внесено: 500.00 [19:43:35]line СДАЧА: 0.00 [19:43:35]line НСП 1% : 4.43 [19:43:35]line НДС 12% : 53.16 [19:43:35]line Наличными: 500.00 [19:43:35]line Безнал.: 0.00 [19:43:35]line Место: АЗС № 161 "Партнер Нефть" [19:43:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:43:35]line СНО: Общий режим [19:43:35]line Чек 315 20.10.2024 19:43 [19:43:35]line Смена: 534 ФФД: 1.0 [19:43:35]line ЗНМ: 0300000104 [19:43:35]line РНМ: 0000000000091764 [19:43:35]line Версия ККМ: 001 [19:43:35]line ФМ: 0000000000871759 [19:43:35]line ФД: 165833 [19:43:35]line ФПД: 273493785086196 [19:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194348&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165833&fm=273493785086196&tin=02508201610067®Number=0000000000091764&sum=50000 [19:43:36]OFD Sender: Processing packet 165833 [packets to send 48, broken 47] [19:43:36]ProducePacketName [19:43:36]name=ofd_packets/00165833 [19:43:36]OFD Sender: To server: pG, [19:43:36]CommunicateWithHost lk.salyk.kg:30040 [19:43:36]ConnectInit lk.salyk.kg [19:43:36]written 0, free lines is 4095 [19:43:36]Connected sock=10 [19:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 CE C4 04 01 EE 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3B 01 00 00 F4 03 04 00 74 5D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 87 02 00 35 04 06 00 F8 BD BB E8 88 F4 A6 52 AF 0B 71 55 81 B8 [19:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 03 D4 47 00 6E 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 31 37 35 39 10 04 04 00 C9 87 02 00 F4 03 04 00 E5 03 15 67 B6 04 01 00 00 B4 1B 6F 8F DA 10 5A D4 [19:43:36]CommunicateWithHost err = 0 [19:43:36]CheckOFDResponse [19:43:36]1017 (14) - 77093643461234 [19:43:36]1041 (16) - 0000000000871759 [19:43:36]1040 (4) - 165833 [19:43:36]1012 (4) - 20.10.2024 13:21 [19:43:36]1206 (1) - 0 [19:43:36]OFD Sender: Remove packet 165833 [19:43:36]ProducePacketName [19:43:36]name=ofd_packets/00165833 [19:43:36]NVStorageDeleteData [19:43:36]Write to MH i2c: 01 00 00 E6 17 FD [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: 01 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: 01 07 00 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 B9 0C C9 [19:43:36]RasterBufferAndPrint [19:43:36]line [19:43:36]line [19:43:36]line [19:43:36]line [19:43:36]line [19:43:36]written 0, free lines is 3264 [19:43:36]MH_Cut [19:43:36]Write to MH i2c: D1 01 00 ED 17 01 D6 [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: D1 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: D1 01 00 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: D1 01 00 ED 17 00 D5 [19:43:36]Write to MH i2c: 01 00 00 EE 17 05 [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:36]OFD Sender: No OFD packet to send [19:43:37]int [19:43:37]*** FLAG_PRN_PAP2 set [19:43:37]*** Cut start [19:43:37]*** Partial cut [19:43:37]*** CUTSNS_PIN = 1 [19:43:37]*** CUTSNS_PIN = 0 [19:43:37]*** Brake cut motor [19:43:37]Read from MH i2c: 01 [19:43:37]MH_I2C_Read... [19:43:37]*** Stop cut motor [19:43:37]Read from MH i2c: *** Cut end [19:43:37]01 07 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 07 00 EE 17 00 02 00 00 00 FF 0F 1C [19:43:37]process_action close_receipt done [19:43:37]requested_data is exist [19:43:37]produce_requested_data [19:43:37]requested_item fm.sn is exist - process it [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 11 00 00 [19:43:37]Write to MH i2c: E2 08 00 EF 17 80 11 00 00 00 00 00 00 80 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 17 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 17 00 EF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [19:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:43:37]wFMCommunicate OK [19:43:37]requested_item fd.num is exist - process it [19:43:37]SAM_PROTO_GetFieldsCounters [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 13 00 00 [19:43:37]Write to MH i2c: E2 08 00 F0 17 80 13 00 00 00 00 00 00 83 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 62 00 [19:43:37]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 62 00 F0 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 87 02 00 0E 04 04 00 16 02 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 C9 [19:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 87 02 00 0E 04 04 00 16 02 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:43:38]wFMCommunicate OK [19:43:38]SAM_PROTO_GetFieldsCounters done [19:43:38]requested_item shift.num is exist - process it [19:43:38]requested_item shift.opened is exist - process it [19:43:38]req_shift_opened [19:43:38]FM_GetShiftState [19:43:38]SAM_PROTO_GetShiftState [19:43:38]wFMCommunicate request_size=4 [19:43:38]MH_SAM_APDU [19:43:38]CAPDU: 80 13 01 00 [19:43:38]Write to MH i2c: 01 00 00 F1 17 08 [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: 01 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: 01 07 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: 01 07 00 F1 17 00 02 00 00 00 FF 0F 1F [19:43:38]state=0 [19:43:38]Cover opened [19:43:38]Write to MH i2c: E2 08 00 F2 17 80 13 01 00 00 00 00 00 86 [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:38]Read from MH i2c: E2 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 0E 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 0E 00 F2 17 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CE [19:43:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:43:38]wFMCommunicate OK [19:43:38]SAM_PROTO_GetShiftState done [19:43:38]FM_GetShiftState done [19:43:38]req_shift_opened done [19:43:38]requested_item shift.open_date is exist - process it [19:43:38]req_shift_open_date [19:43:38]req_shift_open_date done [19:43:38]produce_requested_data done [19:43:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165833,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [19:43:38]process_action_free close_receipt [19:43:38]json_value_free [19:43:38]json_value_free done [19:43:38]process_json_proto returns [19:43:38]Send response to host [19:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165833,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [19:43:38]free response buf [19:43:38]execute_script done [19:43:38]execute_script returns [19:43:38]free content buf [19:43:38]Sock 7.Close socket [19:43:38]Sock 7.Thread stoped [19:43:41]OFD Sender: No OFD packet to send [19:43:43]Write to MH i2c: 01 00 00 F3 17 0A [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 07 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: 01 07 00 F3 17 00 02 00 00 00 FF 0F 21 [19:43:43]state=3 [19:43:43]Cover opened [19:43:46]OFD Sender: No OFD packet to send [19:43:48]Write to MH i2c: 01 00 00 F4 17 0B [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: 01 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: 01 07 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: 01 07 00 F4 17 00 02 00 00 00 FF 0F 22 [19:43:48]state=3 [19:43:48]Cover opened [19:43:51]OFD Sender: No OFD packet to send [19:43:53]Write to MH i2c: 01 00 00 F5 17 0C [19:43:53]Write i2c OK [19:43:53]MH_I2C_Read... [19:43:53]Read from MH i2c: 01 [19:43:53]MH_I2C_Read... [19:43:53]Read from MH i2c: 01 07 00 [19:43:53]MH_I2C_Read... [19:43:53]Read from MH i2c: 01 07 00 F5 17 00 02 00 00 00 FF 0F 23 [19:43:53]state=3 [19:43:53]Cover opened [19:43:56]OFD Sender: No OFD packet to send [19:43:58]Write to MH i2c: 01 00 00 F6 17 0D [19:43:58]Write i2c OK [19:43:58]MH_I2C_Read... [19:43:58]Read from MH i2c: 01 [19:43:58]MH_I2C_Read... [19:43:58]Read from MH i2c: 01 07 00 [19:43:58]MH_I2C_Read... [19:43:58]Read from MH i2c: 01 07 00 F6 17 00 02 00 00 00 FF 0F 24 [19:43:58]state=3 [19:43:58]Cover opened [19:44:01]OFD Sender: No OFD packet to send [19:44:03]Write to MH i2c: 01 00 00 F7 17 0E [19:44:03]Write i2c OK [19:44:03]MH_I2C_Read... [19:44:03]Read from MH i2c: 01 [19:44:03]MH_I2C_Read... [19:44:03]Read from MH i2c: 01 07 00 [19:44:03]MH_I2C_Read... [19:44:03]Read from MH i2c: 01 07 00 F7 17 00 02 00 00 00 FF 0F 25 [19:44:03]state=3 [19:44:03]Cover opened [19:44:06]OFD Sender: No OFD packet to send [19:44:08]Write to MH i2c: 01 00 00 F8 17 0F [19:44:08]Write i2c OK [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 07 00 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 07 00 F8 17 00 02 00 00 00 FF 0F 26 [19:44:08]state=3 [19:44:08]Cover opened [19:44:11]OFD Sender: No OFD packet to send [19:44:13]Write to MH i2c: 01 00 00 F9 17 10 [19:44:13]Write i2c OK [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: 01 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: 01 07 00 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: 01 07 00 F9 17 00 02 00 00 00 FF 0F 27 [19:44:13]state=3 [19:44:13]Cover opened [19:44:16]OFD Sender: No OFD packet to send [19:44:18]Write to MH i2c: 01 00 00 FA 17 11 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 FA 17 00 02 00 00 00 FF 0F 28 [19:44:18]state=3 [19:44:18]Cover opened [19:44:21]OFD Sender: No OFD packet to send [19:44:23]Write to MH i2c: 01 00 00 FB 17 12 [19:44:23]Write i2c OK [19:44:23]MH_I2C_Read... [19:44:23]Read from MH i2c: 01 [19:44:23]MH_I2C_Read... [19:44:23]Read from MH i2c: 01 07 00 [19:44:23]MH_I2C_Read... [19:44:23]Read from MH i2c: 01 07 00 FB 17 00 02 00 00 00 FF 0F 29 [19:44:23]state=3 [19:44:23]Cover opened [19:44:26]OFD Sender: No OFD packet to send [19:44:28]Write to MH i2c: 01 00 00 FC 17 13 [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: 01 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: 01 07 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: 01 07 00 FC 17 00 02 00 00 00 FF 0F 2A [19:44:28]state=3 [19:44:28]Cover opened [19:44:31]OFD Sender: No OFD packet to send [19:44:33]Write to MH i2c: 01 00 00 FD 17 14 [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 07 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 07 00 FD 17 00 02 00 00 00 FF 0F 2B [19:44:33]state=3 [19:44:33]Cover opened [19:44:36]OFD Sender: No OFD packet to send [19:44:38]Write to MH i2c: 01 00 00 FE 17 15 [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: 01 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: 01 07 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: 01 07 00 FE 17 00 02 00 00 00 FF 0F 2C [19:44:38]state=3 [19:44:38]Cover opened [19:44:41]OFD Sender: No OFD packet to send [19:44:43]Write to MH i2c: 01 00 00 FF 17 16 [19:44:43]Write i2c OK [19:44:43]MH_I2C_Read... [19:44:43]Read from MH i2c: 01 [19:44:43]MH_I2C_Read... [19:44:43]Read from MH i2c: 01 07 00 [19:44:43]MH_I2C_Read... [19:44:43]Read from MH i2c: 01 07 00 FF 17 00 02 00 00 00 FF 0F 2D [19:44:43]state=3 [19:44:43]Cover opened [19:44:46]OFD Sender: No OFD packet to send [19:44:48]Write to MH i2c: 01 00 00 00 18 18 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 07 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 07 00 00 18 00 02 00 00 00 FF 0F 2F [19:44:48]state=3 [19:44:48]Cover opened [19:44:51]OFD Sender: No OFD packet to send [19:44:53]Write to MH i2c: 01 00 00 01 18 19 [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: 01 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: 01 07 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: 01 07 00 01 18 00 02 00 00 00 FF 0F 30 [19:44:53]state=3 [19:44:53]Cover opened [19:44:56]OFD Sender: No OFD packet to send [19:44:58]Write to MH i2c: 01 00 00 02 18 1A [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 02 18 00 02 00 00 00 FF 0F 31 [19:44:58]state=3 [19:44:58]Cover opened [19:45:01]OFD Sender: No OFD packet to send [19:45:03]Write to MH i2c: 01 00 00 03 18 1B [19:45:03]Write i2c OK [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: 01 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: 01 07 00 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: 01 07 00 03 18 00 02 00 00 00 FF 0F 32 [19:45:03]state=3 [19:45:03]Cover opened [19:45:06]OFD Sender: No OFD packet to send [19:45:08]Write to MH i2c: 01 00 00 04 18 1C [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: 01 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: 01 07 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: 01 07 00 04 18 00 02 00 00 00 FF 0F 33 [19:45:08]state=3 [19:45:08]Cover opened [19:45:11]OFD Sender: No OFD packet to send [19:45:13]Write to MH i2c: 01 00 00 05 18 1D [19:45:13]Write i2c OK [19:45:13]MH_I2C_Read... [19:45:13]Read from MH i2c: 01 [19:45:13]MH_I2C_Read... [19:45:13]Read from MH i2c: 01 07 00 [19:45:13]MH_I2C_Read... [19:45:13]Read from MH i2c: 01 07 00 05 18 00 02 00 00 00 FF 0F 34 [19:45:13]state=3 [19:45:13]Cover opened [19:45:16]OFD Sender: No OFD packet to send [19:45:18]Write to MH i2c: 01 00 00 06 18 1E [19:45:18]Write i2c OK [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: 01 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: 01 07 00 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: 01 07 00 06 18 00 02 00 00 00 FF 0F 35 [19:45:18]state=3 [19:45:18]Cover opened [19:45:21]OFD Sender: No OFD packet to send [19:45:23]Write to MH i2c: 01 00 00 07 18 1F [19:45:23]Write i2c OK [19:45:23]MH_I2C_Read... [19:45:23]Read from MH i2c: 01 [19:45:23]MH_I2C_Read... [19:45:23]Read from MH i2c: 01 07 00 [19:45:23]MH_I2C_Read... [19:45:23]Read from MH i2c: 01 07 00 07 18 00 02 00 00 00 FF 0F 36 [19:45:23]state=3 [19:45:23]Cover opened [19:45:26]OFD Sender: No OFD packet to send [19:45:28]Write to MH i2c: 01 00 00 08 18 20 [19:45:28]Write i2c OK [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: 01 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: 01 07 00 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: 01 07 00 08 18 00 02 00 00 00 FF 0F 37 [19:45:28]state=3 [19:45:28]Cover opened [19:45:31]OFD Sender: No OFD packet to send [19:45:33]Write to MH i2c: 01 00 00 09 18 21 [19:45:33]Write i2c OK [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: 01 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: 01 07 00 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: 01 07 00 09 18 00 02 00 00 00 FF 0F 38 [19:45:33]state=3 [19:45:33]Cover opened [19:45:36]OFD Sender: No OFD packet to send [19:45:38]Write to MH i2c: 01 00 00 0A 18 22 [19:45:38]Write i2c OK [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: 01 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: 01 07 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: 01 07 00 0A 18 00 02 00 00 00 FF 0F 39 [19:45:38]state=3 [19:45:38]Cover opened [19:45:41]OFD Sender: No OFD packet to send [19:45:43]Write to MH i2c: 01 00 00 0B 18 23 [19:45:43]Write i2c OK [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: 01 [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: 01 07 00 [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: 01 07 00 0B 18 00 02 00 00 00 FF 0F 3A [19:45:43]state=3 [19:45:43]Cover opened [19:45:47]OFD Sender: No OFD packet to send [19:45:48]Write to MH i2c: 01 00 00 0C 18 24 [19:45:48]Write i2c OK [19:45:48]MH_I2C_Read... [19:45:48]Read from MH i2c: 01 [19:45:48]MH_I2C_Read... [19:45:48]Read from MH i2c: 01 07 00 [19:45:48]MH_I2C_Read... [19:45:48]Read from MH i2c: 01 07 00 0C 18 00 02 00 00 00 FF 0F 3B [19:45:48]state=3 [19:45:48]Cover opened [19:45:52]OFD Sender: No OFD packet to send [19:45:53]Write to MH i2c: 01 00 00 0D 18 25 [19:45:53]Write i2c OK [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: 01 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: 01 07 00 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: 01 07 00 0D 18 00 02 00 00 00 FF 0F 3C [19:45:53]state=3 [19:45:53]Cover opened [19:45:57]OFD Sender: No OFD packet to send [19:45:58]Write to MH i2c: 01 00 00 0E 18 26 [19:45:58]Write i2c OK [19:45:58]MH_I2C_Read... [19:45:58]Read from MH i2c: 01 [19:45:58]MH_I2C_Read... [19:45:58]Read from MH i2c: 01 07 00 [19:45:58]MH_I2C_Read... [19:45:58]Read from MH i2c: 01 07 00 0E 18 00 02 00 00 00 FF 0F 3D [19:45:58]state=3 [19:45:58]Cover opened [19:46:02]OFD Sender: No OFD packet to send [19:46:03]Write to MH i2c: 01 00 00 0F 18 27 [19:46:03]Write i2c OK [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 07 00 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 07 00 0F 18 00 02 00 00 00 FF 0F 3E [19:46:03]state=3 [19:46:03]Cover opened [19:46:07]OFD Sender: No OFD packet to send [19:46:08]Write to MH i2c: 01 00 00 10 18 28 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 07 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 07 00 10 18 00 02 00 00 00 FF 0F 3F [19:46:08]state=3 [19:46:08]Cover opened [19:46:12]OFD Sender: No OFD packet to send [19:46:13]Write to MH i2c: 01 00 00 11 18 29 [19:46:13]Write i2c OK [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: 01 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: 01 07 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: 01 07 00 11 18 00 02 00 00 00 FF 0F 40 [19:46:13]state=3 [19:46:13]Cover opened [19:46:17]OFD Sender: No OFD packet to send [19:46:18]Write to MH i2c: 01 00 00 12 18 2A [19:46:18]Write i2c OK [19:46:18]MH_I2C_Read... [19:46:18]Read from MH i2c: 01 [19:46:18]MH_I2C_Read... [19:46:18]Read from MH i2c: 01 07 00 [19:46:18]MH_I2C_Read... [19:46:18]Read from MH i2c: 01 07 00 12 18 00 02 00 00 00 FF 0F 41 [19:46:18]state=3 [19:46:18]Cover opened [19:46:22]OFD Sender: No OFD packet to send [19:46:23]Write to MH i2c: 01 00 00 13 18 2B [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: 01 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: 01 07 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: 01 07 00 13 18 00 02 00 00 00 FF 0F 42 [19:46:23]state=3 [19:46:23]Cover opened [19:46:27]OFD Sender: No OFD packet to send [19:46:28]Write to MH i2c: 01 00 00 14 18 2C [19:46:28]Write i2c OK [19:46:28]MH_I2C_Read... [19:46:28]Read from MH i2c: 01 [19:46:28]MH_I2C_Read... [19:46:28]Read from MH i2c: 01 07 00 [19:46:28]MH_I2C_Read... [19:46:28]Read from MH i2c: 01 07 00 14 18 00 02 00 00 00 FF 0F 43 [19:46:28]state=3 [19:46:28]Cover opened [19:46:32]OFD Sender: No OFD packet to send [19:46:33]Write to MH i2c: 01 00 00 15 18 2D [19:46:33]Write i2c OK [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: 01 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: 01 07 00 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: 01 07 00 15 18 00 02 00 00 00 FF 0F 44 [19:46:33]state=3 [19:46:33]Cover opened [19:46:37]OFD Sender: No OFD packet to send [19:46:38]Write to MH i2c: 01 00 00 16 18 2E [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 07 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 07 00 16 18 00 02 00 00 00 FF 0F 45 [19:46:38]state=3 [19:46:38]Cover opened [19:46:42]OFD Sender: No OFD packet to send [19:46:43]Write to MH i2c: 01 00 00 17 18 2F [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: 01 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: 01 07 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: 01 07 00 17 18 00 02 00 00 00 FF 0F 46 [19:46:43]state=3 [19:46:43]Cover opened [19:46:47]OFD Sender: No OFD packet to send [19:46:48]Write to MH i2c: 01 00 00 18 18 30 [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: 01 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: 01 07 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: 01 07 00 18 18 00 02 00 00 00 FF 0F 47 [19:46:48]state=3 [19:46:48]Cover opened [19:46:52]OFD Sender: No OFD packet to send [19:46:53]Write to MH i2c: 01 00 00 19 18 31 [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: 01 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: 01 07 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: 01 07 00 19 18 00 02 00 00 00 FF 0F 48 [19:46:53]state=3 [19:46:53]Cover opened [19:46:57]OFD Sender: No OFD packet to send [19:46:58]Write to MH i2c: 01 00 00 1A 18 32 [19:46:58]Write i2c OK [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: 01 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: 01 07 00 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: 01 07 00 1A 18 00 02 00 00 00 FF 0F 49 [19:46:58]state=3 [19:46:58]Cover opened [19:47:02]OFD Sender: No OFD packet to send [19:47:03]Write to MH i2c: 01 00 00 1B 18 33 [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 07 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 07 00 1B 18 00 02 00 00 00 FF 0F 4A [19:47:03]state=3 [19:47:03]Cover opened [19:47:07]OFD Sender: No OFD packet to send [19:47:08]Write to MH i2c: 01 00 00 1C 18 34 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 07 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 07 00 1C 18 00 02 00 00 00 FF 0F 4B [19:47:08]state=3 [19:47:08]Cover opened [19:47:12]OFD Sender: No OFD packet to send [19:47:13]Write to MH i2c: 01 00 00 1D 18 35 [19:47:13]Write i2c OK [19:47:13]MH_I2C_Read... [19:47:13]Read from MH i2c: 01 [19:47:13]MH_I2C_Read... [19:47:13]Read from MH i2c: 01 07 00 [19:47:13]MH_I2C_Read... [19:47:13]Read from MH i2c: 01 07 00 1D 18 00 02 00 00 00 FF 0F 4C [19:47:13]state=3 [19:47:13]Cover opened [19:47:17]OFD Sender: No OFD packet to send [19:47:18]Write to MH i2c: 01 00 00 1E 18 36 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 07 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 07 00 1E 18 00 02 00 00 00 FF 0F 4D [19:47:18]state=3 [19:47:18]Cover opened [19:47:22]OFD Sender: No OFD packet to send [19:47:23]Write to MH i2c: 01 00 00 1F 18 37 [19:47:23]Write i2c OK [19:47:23]MH_I2C_Read... [19:47:23]Read from MH i2c: 01 [19:47:23]MH_I2C_Read... [19:47:23]Read from MH i2c: 01 07 00 [19:47:23]MH_I2C_Read... [19:47:23]Read from MH i2c: 01 07 00 1F 18 00 02 00 00 00 FF 0F 4E [19:47:23]state=3 [19:47:23]Cover opened [19:47:27]OFD Sender: No OFD packet to send [19:47:28]Write to MH i2c: 01 00 00 20 18 38 [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: 01 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: 01 07 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: 01 07 00 20 18 00 02 00 00 00 FF 0F 4F [19:47:28]state=3 [19:47:28]Cover opened [19:47:32]OFD Sender: No OFD packet to send [19:47:33]Write to MH i2c: 01 00 00 21 18 39 [19:47:33]Write i2c OK [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: 01 [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: 01 07 00 [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: 01 07 00 21 18 00 02 00 00 00 FF 0F 50 [19:47:33]state=3 [19:47:33]Cover opened [19:47:37]OFD Sender: No OFD packet to send [19:47:38]Write to MH i2c: 01 00 00 22 18 3A [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 07 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 07 00 22 18 00 02 00 00 00 FF 0F 51 [19:47:38]state=3 [19:47:38]Cover opened [19:47:42]OFD Sender: No OFD packet to send [19:47:43]Write to MH i2c: 01 00 00 23 18 3B [19:47:43]Write i2c OK [19:47:43]MH_I2C_Read... [19:47:43]Read from MH i2c: 01 [19:47:43]MH_I2C_Read... [19:47:43]Read from MH i2c: 01 07 00 [19:47:43]MH_I2C_Read... [19:47:43]Read from MH i2c: 01 07 00 23 18 00 02 00 00 00 FF 0F 52 [19:47:43]state=3 [19:47:43]Cover opened [19:47:47]OFD Sender: No OFD packet to send [19:47:48]Write to MH i2c: 01 00 00 24 18 3C [19:47:48]Write i2c OK [19:47:48]MH_I2C_Read... [19:47:48]Read from MH i2c: 01 [19:47:48]MH_I2C_Read... [19:47:48]Read from MH i2c: 01 07 00 [19:47:48]MH_I2C_Read... [19:47:48]Read from MH i2c: 01 07 00 24 18 00 02 00 00 00 FF 0F 53 [19:47:48]state=3 [19:47:48]Cover opened [19:47:52]OFD Sender: No OFD packet to send [19:47:53]Write to MH i2c: 01 00 00 25 18 3D [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 25 18 00 02 00 00 00 FF 0F 54 [19:47:53]state=3 [19:47:53]Cover opened [19:47:57]OFD Sender: No OFD packet to send [19:47:58]Write to MH i2c: 01 00 00 26 18 3E [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 26 18 00 02 00 00 00 FF 0F 55 [19:47:58]state=3 [19:47:58]Cover opened [19:48:02]OFD Sender: No OFD packet to send [19:48:03]Write to MH i2c: 01 00 00 27 18 3F [19:48:03]Write i2c OK [19:48:03]MH_I2C_Read... [19:48:03]Read from MH i2c: 01 [19:48:03]MH_I2C_Read... [19:48:03]Read from MH i2c: 01 07 00 [19:48:03]MH_I2C_Read... [19:48:03]Read from MH i2c: 01 07 00 27 18 00 02 00 00 00 FF 0F 56 [19:48:03]state=3 [19:48:03]Cover opened [19:48:07]OFD Sender: No OFD packet to send [19:48:08]Write to MH i2c: 01 00 00 28 18 40 [19:48:08]Write i2c OK [19:48:08]MH_I2C_Read... [19:48:08]Read from MH i2c: 01 [19:48:08]MH_I2C_Read... [19:48:08]Read from MH i2c: 01 07 00 [19:48:08]MH_I2C_Read... [19:48:08]Read from MH i2c: 01 07 00 28 18 00 02 00 00 00 FF 0F 57 [19:48:08]state=3 [19:48:08]Cover opened [19:48:12]OFD Sender: No OFD packet to send [19:48:13]Write to MH i2c: 01 00 00 29 18 41 [19:48:13]Write i2c OK [19:48:13]MH_I2C_Read... [19:48:13]Read from MH i2c: 01 [19:48:13]MH_I2C_Read... [19:48:13]Read from MH i2c: 01 07 00 [19:48:13]MH_I2C_Read... [19:48:13]Read from MH i2c: 01 07 00 29 18 00 02 00 00 00 FF 0F 58 [19:48:13]state=3 [19:48:13]Cover opened [19:48:17]OFD Sender: No OFD packet to send [19:48:18]Write to MH i2c: 01 00 00 2A 18 42 [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: 01 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: 01 07 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: 01 07 00 2A 18 00 02 00 00 00 FF 0F 59 [19:48:18]state=3 [19:48:18]Cover opened [19:48:22]OFD Sender: No OFD packet to send [19:48:23]Write to MH i2c: 01 00 00 2B 18 43 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: 01 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: 01 07 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: 01 07 00 2B 18 00 02 00 00 00 FF 0F 5A [19:48:23]state=3 [19:48:23]Cover opened [19:48:27]OFD Sender: No OFD packet to send [19:48:28]Write to MH i2c: 01 00 00 2C 18 44 [19:48:28]Write i2c OK [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 07 00 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 07 00 2C 18 00 02 00 00 00 FF 0F 5B [19:48:28]state=3 [19:48:28]Cover opened [19:48:32]OFD Sender: No OFD packet to send [19:48:33]Write to MH i2c: 01 00 00 2D 18 45 [19:48:33]Write i2c OK [19:48:33]MH_I2C_Read... [19:48:33]Read from MH i2c: 01 [19:48:33]MH_I2C_Read... [19:48:33]Read from MH i2c: 01 07 00 [19:48:33]MH_I2C_Read... [19:48:33]Read from MH i2c: 01 07 00 2D 18 00 02 00 00 00 FF 0F 5C [19:48:33]state=3 [19:48:33]Cover opened [19:48:37]OFD Sender: No OFD packet to send [19:48:38]Write to MH i2c: 01 00 00 2E 18 46 [19:48:38]Write i2c OK [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: 01 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: 01 07 00 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: 01 07 00 2E 18 00 02 00 00 00 FF 0F 5D [19:48:38]state=3 [19:48:38]Cover opened [19:48:42]OFD Sender: No OFD packet to send [19:48:43]Write to MH i2c: 01 00 00 2F 18 47 [19:48:43]Write i2c OK [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: 01 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: 01 07 00 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: 01 07 00 2F 18 00 02 00 00 00 FF 0F 5E [19:48:43]state=3 [19:48:43]Cover opened [19:48:47]OFD Sender: No OFD packet to send [19:48:48]Write to MH i2c: 01 00 00 30 18 48 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 30 18 00 02 00 00 00 FF 0F 5F [19:48:48]state=3 [19:48:48]Cover opened [19:48:52]OFD Sender: No OFD packet to send [19:48:53]Write to MH i2c: 01 00 00 31 18 49 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 07 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 07 00 31 18 00 02 00 00 00 FF 0F 60 [19:48:53]state=3 [19:48:53]Cover opened [19:48:57]OFD Sender: No OFD packet to send [19:48:58]Write to MH i2c: 01 00 00 32 18 4A [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 07 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 07 00 32 18 00 02 00 00 00 FF 0F 61 [19:48:58]state=3 [19:48:58]Cover opened [19:49:02]OFD Sender: No OFD packet to send [19:49:03]Write to MH i2c: 01 00 00 33 18 4B [19:49:03]Write i2c OK [19:49:03]MH_I2C_Read... [19:49:03]Read from MH i2c: 01 [19:49:03]MH_I2C_Read... [19:49:03]Read from MH i2c: 01 07 00 [19:49:03]MH_I2C_Read... [19:49:03]Read from MH i2c: 01 07 00 33 18 00 02 00 00 00 FF 0F 62 [19:49:03]state=3 [19:49:03]Cover opened [19:49:07]OFD Sender: No OFD packet to send [19:49:08]Write to MH i2c: 01 00 00 34 18 4C [19:49:08]Write i2c OK [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: 01 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: 01 07 00 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: 01 07 00 34 18 00 02 00 00 00 FF 0F 63 [19:49:08]state=3 [19:49:08]Cover opened [19:49:12]OFD Sender: No OFD packet to send [19:49:13]Write to MH i2c: 01 00 00 35 18 4D [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: 01 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: 01 07 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: 01 07 00 35 18 00 02 00 00 00 FF 0F 64 [19:49:13]state=3 [19:49:13]Cover opened [19:49:17]OFD Sender: No OFD packet to send [19:49:18]Write to MH i2c: 01 00 00 36 18 4E [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 07 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 07 00 36 18 00 02 00 00 00 FF 0F 65 [19:49:18]state=3 [19:49:18]Cover opened [19:49:22]OFD Sender: No OFD packet to send [19:49:23]Write to MH i2c: 01 00 00 37 18 4F [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 37 18 00 02 00 00 00 FF 0F 66 [19:49:23]state=3 [19:49:23]Cover opened [19:49:27]OFD Sender: No OFD packet to send [19:49:28]Write to MH i2c: 01 00 00 38 18 50 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 38 18 00 02 00 00 00 FF 0F 67 [19:49:28]state=3 [19:49:28]Cover opened [19:49:32]OFD Sender: No OFD packet to send [19:49:33]Write to MH i2c: 01 00 00 39 18 51 [19:49:33]Write i2c OK [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: 01 [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: 01 07 00 [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: 01 07 00 39 18 00 02 00 00 00 FF 0F 68 [19:49:33]state=3 [19:49:33]Cover opened [19:49:37]OFD Sender: No OFD packet to send [19:49:38]Write to MH i2c: 01 00 00 3A 18 52 [19:49:38]Write i2c OK [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: 01 [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: 01 07 00 [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: 01 07 00 3A 18 00 02 00 00 00 FF 0F 69 [19:49:38]state=3 [19:49:38]Cover opened [19:49:42]OFD Sender: No OFD packet to send [19:49:43]Write to MH i2c: 01 00 00 3B 18 53 [19:49:43]Write i2c OK [19:49:43]MH_I2C_Read... [19:49:43]Read from MH i2c: 01 [19:49:43]MH_I2C_Read... [19:49:43]Read from MH i2c: 01 07 00 [19:49:43]MH_I2C_Read... [19:49:43]Read from MH i2c: 01 07 00 3B 18 00 02 00 00 00 FF 0F 6A [19:49:43]state=3 [19:49:43]Cover opened [19:49:47]OFD Sender: No OFD packet to send [19:49:48]Write to MH i2c: 01 00 00 3C 18 54 [19:49:48]Write i2c OK [19:49:48]MH_I2C_Read... [19:49:48]Read from MH i2c: 01 [19:49:48]MH_I2C_Read... [19:49:48]Read from MH i2c: 01 07 00 [19:49:48]MH_I2C_Read... [19:49:48]Read from MH i2c: 01 07 00 3C 18 00 02 00 00 00 FF 0F 6B [19:49:48]state=3 [19:49:48]Cover opened [19:49:52]OFD Sender: No OFD packet to send [19:49:53]Write to MH i2c: 01 00 00 3D 18 55 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: 01 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: 01 07 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: 01 07 00 3D 18 00 02 00 00 00 FF 0F 6C [19:49:53]state=3 [19:49:53]Cover opened [19:49:57]OFD Sender: No OFD packet to send [19:49:58]Write to MH i2c: 01 00 00 3E 18 56 [19:49:58]Write i2c OK [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: 01 [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: 01 07 00 [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: 01 07 00 3E 18 00 02 00 00 00 FF 0F 6D [19:49:58]state=3 [19:49:58]Cover opened [19:50:02]OFD Sender: No OFD packet to send [19:50:03]Write to MH i2c: 01 00 00 3F 18 57 [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 07 00 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 07 00 3F 18 00 02 00 00 00 FF 0F 6E [19:50:03]state=3 [19:50:03]Cover opened [19:50:07]OFD Sender: No OFD packet to send [19:50:08]Write to MH i2c: 01 00 00 40 18 58 [19:50:08]Write i2c OK [19:50:08]MH_I2C_Read... [19:50:08]Read from MH i2c: 01 [19:50:08]MH_I2C_Read... [19:50:08]Read from MH i2c: 01 07 00 [19:50:08]MH_I2C_Read... [19:50:08]Read from MH i2c: 01 07 00 40 18 00 02 00 00 00 FF 0F 6F [19:50:08]state=3 [19:50:08]Cover opened [19:50:12]OFD Sender: No OFD packet to send [19:50:13]Write to MH i2c: 01 00 00 41 18 59 [19:50:13]Write i2c OK [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 07 00 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 07 00 41 18 00 02 00 00 00 FF 0F 70 [19:50:13]state=3 [19:50:13]Cover opened [19:50:17]OFD Sender: No OFD packet to send [19:50:18]Write to MH i2c: 01 00 00 42 18 5A [19:50:18]Write i2c OK [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: 01 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: 01 07 00 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: 01 07 00 42 18 00 02 00 00 00 FF 0F 71 [19:50:18]state=3 [19:50:18]Cover opened [19:50:22]OFD Sender: No OFD packet to send [19:50:23]Write to MH i2c: 01 00 00 43 18 5B [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: 01 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: 01 07 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: 01 07 00 43 18 00 02 00 00 00 FF 0F 72 [19:50:23]state=3 [19:50:23]Cover opened [19:50:27]OFD Sender: No OFD packet to send [19:50:28]Write to MH i2c: 01 00 00 44 18 5C [19:50:28]Write i2c OK [19:50:28]MH_I2C_Read... [19:50:28]Read from MH i2c: 01 [19:50:28]MH_I2C_Read... [19:50:28]Read from MH i2c: 01 07 00 [19:50:28]MH_I2C_Read... [19:50:28]Read from MH i2c: 01 07 00 44 18 00 02 00 00 00 FF 0F 73 [19:50:28]state=3 [19:50:28]Cover opened [19:50:32]OFD Sender: No OFD packet to send [19:50:33]Write to MH i2c: 01 00 00 45 18 5D [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: 01 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: 01 07 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: 01 07 00 45 18 00 02 00 00 00 FF 0F 74 [19:50:33]state=3 [19:50:33]Cover opened [19:50:37]OFD Sender: No OFD packet to send [19:50:38]Write to MH i2c: 01 00 00 46 18 5E [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 46 18 00 02 00 00 00 FF 0F 75 [19:50:38]state=3 [19:50:38]Cover opened [19:50:42]OFD Sender: No OFD packet to send [19:50:43]Write to MH i2c: 01 00 00 47 18 5F [19:50:43]Write i2c OK [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: 01 [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: 01 07 00 [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: 01 07 00 47 18 00 02 00 00 00 FF 0F 76 [19:50:43]state=3 [19:50:43]Cover opened [19:50:47]OFD Sender: No OFD packet to send [19:50:48]Write to MH i2c: 01 00 00 48 18 60 [19:50:48]Write i2c OK [19:50:48]MH_I2C_Read... [19:50:48]Read from MH i2c: 01 [19:50:48]MH_I2C_Read... [19:50:48]Read from MH i2c: 01 07 00 [19:50:48]MH_I2C_Read... [19:50:48]Read from MH i2c: 01 07 00 48 18 00 02 00 00 00 FF 0F 77 [19:50:48]state=3 [19:50:48]Cover opened [19:50:52]OFD Sender: No OFD packet to send [19:50:53]Write to MH i2c: 01 00 00 49 18 61 [19:50:53]Write i2c OK [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: 01 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: 01 07 00 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: 01 07 00 49 18 00 02 00 00 00 FF 0F 78 [19:50:53]state=3 [19:50:53]Cover opened [19:50:57]OFD Sender: No OFD packet to send [19:50:58]Write to MH i2c: 01 00 00 4A 18 62 [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 4A 18 00 02 00 00 00 FF 0F 79 [19:50:58]state=3 [19:50:58]Cover opened [19:51:02]OFD Sender: No OFD packet to send [19:51:03]Write to MH i2c: 01 00 00 4B 18 63 [19:51:03]Write i2c OK [19:51:03]MH_I2C_Read... [19:51:03]Read from MH i2c: 01 [19:51:03]MH_I2C_Read... [19:51:03]Read from MH i2c: 01 07 00 [19:51:03]MH_I2C_Read... [19:51:03]Read from MH i2c: 01 07 00 4B 18 00 02 00 00 00 FF 0F 7A [19:51:03]state=3 [19:51:03]Cover opened [19:51:07]OFD Sender: No OFD packet to send [19:51:08]Write to MH i2c: 01 00 00 4C 18 64 [19:51:08]Write i2c OK [19:51:08]MH_I2C_Read... [19:51:08]Read from MH i2c: 01 [19:51:08]MH_I2C_Read... [19:51:08]Read from MH i2c: 01 07 00 [19:51:08]MH_I2C_Read... [19:51:08]Read from MH i2c: 01 07 00 4C 18 00 02 00 00 00 FF 0F 7B [19:51:08]state=3 [19:51:08]Cover opened [19:51:12]OFD Sender: No OFD packet to send [19:51:13]Write to MH i2c: 01 00 00 4D 18 65 [19:51:13]Write i2c OK [19:51:13]MH_I2C_Read... [19:51:13]Read from MH i2c: 01 [19:51:13]MH_I2C_Read... [19:51:13]Read from MH i2c: 01 07 00 [19:51:13]MH_I2C_Read... [19:51:13]Read from MH i2c: 01 07 00 4D 18 00 02 00 00 00 FF 0F 7C [19:51:13]state=3 [19:51:13]Cover opened [19:51:17]OFD Sender: No OFD packet to send [19:51:18]Write to MH i2c: 01 00 00 4E 18 66 [19:51:18]Write i2c OK [19:51:18]MH_I2C_Read... [19:51:18]Read from MH i2c: 01 [19:51:18]MH_I2C_Read... [19:51:18]Read from MH i2c: 01 07 00 [19:51:18]MH_I2C_Read... [19:51:18]Read from MH i2c: 01 07 00 4E 18 00 02 00 00 00 FF 0F 7D [19:51:18]state=3 [19:51:18]Cover opened [19:51:22]OFD Sender: No OFD packet to send [19:51:23]Write to MH i2c: 01 00 00 4F 18 67 [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: 01 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: 01 07 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: 01 07 00 4F 18 00 02 00 00 00 FF 0F 7E [19:51:23]state=3 [19:51:23]Cover opened [19:51:27]OFD Sender: No OFD packet to send [19:51:28]Write to MH i2c: 01 00 00 50 18 68 [19:51:28]Write i2c OK [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 50 18 00 02 00 00 00 FF 0F 7F [19:51:28]state=3 [19:51:28]Cover opened [19:51:32]OFD Sender: No OFD packet to send [19:51:33]Write to MH i2c: 01 00 00 51 18 69 [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 51 18 00 02 00 00 00 FF 0F 80 [19:51:33]state=3 [19:51:33]Cover opened [19:51:37]OFD Sender: No OFD packet to send [19:51:38]Write to MH i2c: 01 00 00 52 18 6A [19:51:38]Write i2c OK [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: 01 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: 01 07 00 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: 01 07 00 52 18 00 02 00 00 00 FF 0F 81 [19:51:38]state=3 [19:51:38]Cover opened [19:51:42]OFD Sender: No OFD packet to send [19:51:43]Write to MH i2c: 01 00 00 53 18 6B [19:51:43]Write i2c OK [19:51:43]MH_I2C_Read... [19:51:43]Read from MH i2c: 01 [19:51:43]MH_I2C_Read... [19:51:43]Read from MH i2c: 01 07 00 [19:51:43]MH_I2C_Read... [19:51:43]Read from MH i2c: 01 07 00 53 18 00 02 00 00 00 FF 0F 82 [19:51:43]state=3 [19:51:43]Cover opened [19:51:47]accept exits with 9 [19:51:47]New connection [19:51:47]New thread 3066776932 created [19:51:47]Thread 3066920292 joined [19:51:47]Waiting for new connection... [19:51:47] Sock 9.Parse request [19:51:47]Sock 9.Check first char [19:51:47]Sock 9.First char is OK [19:51:47]request: POST /json_proto HTTP/1.0 [19:51:47]Method: POST [19:51:47]URL: /json_proto [19:51:47]Method is POST - this is cgi request [19:51:47]url: /json_proto [19:51:47]query_string will be loaded in cgi processing [19:51:47]execute_cgi json_proto POST (null) [19:51:47]execute_cgi path=json_proto method=POST [19:51:47]POST find Content-Length [19:51:47]Host: 172.17.53.195:8080 [19:51:47]Content-Length: 682 [19:51:47]Content-Type: application/json [19:51:47] [19:51:47]POST finish read [19:51:47]Found Content-Length = 682 [19:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:47]execute_script... [19:51: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)220402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:47]POST & json_proto [19:51:47]process_json_proto [19:51:47]json parsed OK: [19:51:47]protocol is kg_v1.0 [19:51:47]action value=close_receipt [19:51:47]process_action close_receipt [19:51:47]cmd_close_receipt [19:51:47]MH_GetDate [19:51:47]Write to MH i2c: F0 00 00 54 18 5B [19:51:47]Write i2c OK [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: F0 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: F0 09 00 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: F0 09 00 54 18 00 61 5F 15 67 21 48 4A 65 B8 [19:51:47]GetLastDocTimeStamp 1729453428 [19:51:47]current date 1729453921 [19:51:47]FM_GetShiftState [19:51:47]SAM_PROTO_GetShiftState [19:51:47]wFMCommunicate request_size=4 [19:51:47]MH_SAM_APDU [19:51:47]CAPDU: 80 13 01 00 [19:51:47]Write to MH i2c: E2 08 00 55 18 80 13 01 00 00 00 00 00 EA [19:51:47]Write i2c OK [19:51:47]MH_I2C_Read... [19:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:47]Read from MH i2c: E2 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 0E 00 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 0E 00 55 18 00 09 00 01 71 50 14 67 00 00 00 00 90 00 32 [19:51:47]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [19:51:47]wFMCommunicate OK [19:51:47]SAM_PROTO_GetShiftState done [19:51:47]FM_GetShiftState done [19:51:47]opened in 1729384561 [19:51:47]opened+sec_in_day 1729470961 [19:51:47]quantity*price = 100015 [19:51:47]sum+1 = 100017 [19:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 316 20.10.2024 19:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165834 ФПД: 219423646177874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195201&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165834&fm=219423646177874&tin=02508201610067®Number=0000000000091764&sum=100000 [19:51:48]StoreToDocumentArchive [19:51:48]shift 534 fd 165834 [19:51:48]save to /storage/0534/doc_00165834 [19:51:48]save last doc name /storage/0534/doc_00165834 to /storage/kkm_last_doc_name [19:51:48]save OK [19:51:48]Clear old archive folders... [19:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:51:48]tlvbuf is 014ECD30 [19:51:48]SAM_PROTO_ClearQueue [19:51:48]wFMCommunicate request_size=4 [19:51:48]MH_SAM_APDU [19:51:48]CAPDU: 80 09 00 00 [19:51:48]Write to MH i2c: E2 08 00 62 18 80 09 00 00 00 00 00 00 EC [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:48]Read from MH i2c: E2 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 03 00 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [19:51:48]RAPDU: 90 00 [19:51:48]wFMCommunicate OK [19:51:48]SAM_PROTO_ClearQueue done [19:51:48]KKMCreateOFDPacket [19:51:48]OFDProtocolAddRootSTLVToBuf [19:51:48]FM_MakeSignedData [19:51:48]FM_MakeSignedData [19:51:48]SAM_PROTO_SignData [19:51:48]wFMCommunicate request_size=4 [19:51:48]MH_SAM_APDU [19:51:48]CAPDU: 80 0D 01 02 [19:51:48]Write to MH i2c: E2 08 00 63 18 80 0D 01 02 00 00 00 00 F4 [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:48]Read from MH i2c: E2 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 03 00 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [19:51:48]RAPDU: 90 00 [19:51:48]wFMCommunicate OK [19:51:48]wFMCommunicate request_size=255 [19:51:48]MH_SAM_APDU [19:51: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 61 5F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 87 02 00 35 04 06 00 C7 [19:51:48]Write to MH i2c: E2 02 01 64 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 61 5F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 87 02 00 35 04 06 00 C7 00 00 2F [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:48]Read from MH i2c: E2 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 03 00 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 03 00 64 18 00 90 00 F0 [19:51:48]RAPDU: 90 00 [19:51:48]wFMCommunicate OK [19:51:48]wFMCommunicate request_size=10 [19:51:48]MH_SAM_APDU [19:51:48]CAPDU: 80 0D 02 02 05 90 8C 7C 5A 52 [19:51:48]Write to MH i2c: E2 0D 00 65 18 80 0D 02 02 05 00 90 8C 7C 5A 52 00 00 45 [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:48]Read from MH i2c: E2 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 03 00 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 03 00 65 18 00 90 00 F1 [19:51:48]RAPDU: 90 00 [19:51:48]wFMCommunicate OK [19:51:48]wFMCommunicate request_size=4 [19:51:48]MH_SAM_APDU [19:51:48]CAPDU: 80 0D 03 02 [19:51:48]Write to MH i2c: E2 08 00 66 18 80 0D 03 02 00 00 00 00 F9 [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:48]Read from MH i2c: E2 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 0B 00 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 0B 00 66 18 00 03 67 7B B3 0F 90 A6 57 90 00 2E [19:51:48]RAPDU: 03 67 7B B3 0F 90 A6 57 90 00 [19:51:48]wFMCommunicate OK [19:51:48]SAM_PROTO_SignData done [19:51:48]FM_MakeSignedData done [19:51:48]CreateOFDProtocolMessage [19:51:48]wFMCommunicate request_size=4 [19:51:48]MH_SAM_APDU [19:51:48]CAPDU: 80 11 00 00 [19:51:48]Write to MH i2c: E2 08 00 67 18 80 11 00 00 00 00 00 00 F9 [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:48]Read from MH i2c: E2 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 17 00 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: E2 17 00 67 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [19:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:51:48]wFMCommunicate OK [19:51:48]CreateOFDProtocolMessage done [19:51:48]OFDSenderStorePacket 165834 [19:51:48]StoreOFDPacket docnum=165834 [19:51:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 51 07 01 6E 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 61 5F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 87 02 00 35 04 06 00 C7 90 8C 7C 5A 52 03 67 7B B3 0F 90 A6 57 [19:51:48]CheckFolder [19:51:48]dirname=/storage/ofd_packets [19:51:48]CheckFolder done [19:51:48]ProducePacketName [19:51:48]name=ofd_packets/00165834 [19:51:48]NVStorageSaveData ofd_packets/00165834 [19:51:48]File name is /storage/ofd_packets/00165834 [19:51:48]Write 301 bytes [19:51:48]NVStorageSaveData done [19:51:48]OFDSenderStorePacket done [19:51:48]KKMCreateOFDPacket done [19:51:48]NVStorageSaveData kkm_last_timestamp [19:51:48]File name is /storage/kkm_last_timestamp [19:51:48]Write 4 bytes [19:51:48]NVStorageSaveData done [19:51:48]ExternCall_PrintAddStr [19:51:48]wPrintStart [19:51:48]Write to MH i2c: 01 00 00 68 18 80 [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: 01 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: 01 07 00 [19:51:48]MH_I2C_Read... [19:51:48]OFD Sender: Processing packet 165834 [packets to send 48, broken 47] [19:51:48]ProducePacketName [19:51:48]name=ofd_packets/00165834 [19:51:48]OFD Sender: To server: pG, [19:51:48]CommunicateWithHost lk.salyk.kg:30040 [19:51:48]ConnectInit lk.salyk.kg [19:51:48]Read from MH i2c: 01 07 00 68 18 00 02 00 00 00 FF 0F 97 [19:51:48]RasterBufferAndPrint [19:51:48]line Счет N : (1)220402 [19:51:48]line ИНН: 02508201610067 [19:51:48]line Контрольно-Кассовый Чек [19:51:48]line ПРОДАЖА [19:51:48]line ТРК (МРК, ГНК) : 13 [19:51:48]line Товар: 2710124130 [19:51:48]line Аи-92-К-5 [19:51:48]line 14.950 * 66.90 [19:51:48]line = 1000.16 [19:51:48]line НДС 12% НСП 1% [19:51:48]line > о реализуемом товаре [19:51:48]line ОКРУГЛЕНИЕ: -0.16 [19:51:48]line ИТОГО: 1000.00 [19:51:48]line Внесено: 1000.00 [19:51:48]line СДАЧА: 0.00 [19:51:48]line НСП 1% : 8.85 [19:51:48]line НДС 12% : 106.21 [19:51:48]line Наличными: 1000.00 [19:51:48]line Безнал.: 0.00 [19:51:48]line Место: АЗС № 161 "Партнер Нефть" [19:51:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:51:48]line СНО: Общий режим [19:51:48]line Чек 316 20.10.2024 19:52 [19:51:48]line Смена: 534 ФФД: 1.0 [19:51:48]line ЗНМ: 0300000104 [19:51:48]line РНМ: 0000000000091764 [19:51:48]line Версия ККМ: 001 [19:51:48]line ФМ: 0000000000871759 [19:51:48]line ФД: 165834 [19:51:48]line ФПД: 219423646177874 [19:51:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195201&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165834&fm=219423646177874&tin=02508201610067®Number=0000000000091764&sum=100000 [19:51:48]written 0, free lines is 4095 [19:51:48]Error from MH - 05 [19:51:48]process_action_free close_receipt [19:51:48]json_value_free [19:51:48]json_value_free done [19:51:48]process_json_proto returns [19:51:48]Send response to host [19:51:48]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [19:51:48]free response buf [19:51:48]execute_script done [19:51:48]execute_script returns [19:51:48]free content buf [19:51:48]Sock 9.Close socket [19:51:48]Sock 9.Thread stoped [19:51:48]answer for other command [DD] [19:51:48]MH Int Process stopped [19:51:48]Connected sock=5 [19:51:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 51 07 01 6E 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 61 5F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 87 02 00 35 04 06 00 C7 90 8C 7C 5A 52 03 67 7B B3 0F 90 A6 57 [19:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 84 48 47 00 16 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 87 02 00 F4 03 04 00 D2 05 15 67 B6 04 01 00 00 DC 54 07 26 C8 F9 93 6B [19:51:49]CommunicateWithHost err = 0 [19:51:49]CheckOFDResponse [19:51:49]1017 (14) - 77093643461234 [19:51:49]1041 (16) - 0000000000871759 [19:51:49]1040 (4) - 165834 [19:51:49]1012 (4) - 20.10.2024 13:29 [19:51:49]1206 (1) - 0 [19:51:49]OFD Sender: Remove packet 165834 [19:51:49]ProducePacketName [19:51:49]name=ofd_packets/00165834 [19:51:49]NVStorageDeleteData [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:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:38]*** FLAG_PRN_PAP1 set [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]*** FLAG_PRN_PAP2 reset [20:02:50]*** FLAG_PRN_PAP1 reset [20:02:50]OFD Sender: No OFD packet to send [20:02:53]accept exits with 7 [20:02:53]New connection [20:02:53]New thread 3066920292 created [20:02:53]Thread 3066776932 joined [20:02:53]Waiting for new connection... [20:02:53] Sock 7.Parse request [20:02:53]Sock 7.Check first char [20:02:53]Sock 7.First char is OK [20:02:53]request: POST /json_proto HTTP/1.0 [20:02:53]Method: POST [20:02:53]URL: /json_proto [20:02:53]Method is POST - this is cgi request [20:02:53]url: /json_proto [20:02:53]query_string will be loaded in cgi processing [20:02:53]execute_cgi json_proto POST (null) [20:02:53]execute_cgi path=json_proto method=POST [20:02:53]POST find Content-Length [20:02:53]Host: 172.17.53.195:8080 [20:02:53]Content-Length: 215 [20:02:53]Content-Type: application/json [20:02:53] [20:02:53]POST finish read [20:02:53]Found Content-Length = 215 [20:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:53]execute_script... [20:02:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:53]POST & json_proto [20:02:53]process_json_proto [20:02:53]json parsed OK: [20:02:53]protocol is kg_v1.0 [20:02:53]action value=get_value [20:02:53]process_action get_value [20:02:53]cmd_get_value [20:02:53]process_action get_value done [20:02:53]requested_data is exist [20:02:53]produce_requested_data [20:02:53]requested_item kkm.sn is exist - process it [20:02:53]requested_item kkm.ver is exist - process it [20:02:53]requested_item fm.sn is exist - process it [20:02:53]wFMCommunicate request_size=4 [20:02:53]MH_SAM_APDU [20:02:53]CAPDU: 80 11 00 00 [20:02:53]Write to MH i2c: E2 08 00 6C 18 80 11 00 00 00 00 00 00 FE [20:02:53]Write i2c OK [20:02:53]MH_I2C_Read... [20:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:53]Read from MH i2c: E2 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 17 00 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 17 00 6C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 56 [20:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:02:53]wFMCommunicate OK [20:02:53]requested_item fd.num is exist - process it [20:02:53]SAM_PROTO_GetFieldsCounters [20:02:53]wFMCommunicate request_size=4 [20:02:53]MH_SAM_APDU [20:02:53]CAPDU: 80 13 00 00 [20:02:53]Write to MH i2c: E2 08 00 6D 18 80 13 00 00 00 00 00 00 01 [20:02:53]Write i2c OK [20:02:53]MH_I2C_Read... [20:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:53]Read from MH i2c: E2 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 62 00 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 62 00 6D 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 87 02 00 0E 04 04 00 16 02 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:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 87 02 00 0E 04 04 00 16 02 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:02:53]wFMCommunicate OK [20:02:53]SAM_PROTO_GetFieldsCounters done [20:02:53]requested_item shift.num is exist - process it [20:02:53]requested_item shift.opened is exist - process it [20:02:53]req_shift_opened [20:02:53]FM_GetShiftState [20:02:53]SAM_PROTO_GetShiftState [20:02:53]wFMCommunicate request_size=4 [20:02:53]MH_SAM_APDU [20:02:53]CAPDU: 80 13 01 00 [20:02:53]Write to MH i2c: E2 08 00 6E 18 80 13 01 00 00 00 00 00 03 [20:02:53]Write i2c OK [20:02:53]MH_I2C_Read... [20:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:53]Read from MH i2c: E2 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 0E 00 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 0E 00 6E 18 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4B [20:02:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:02:53]wFMCommunicate OK [20:02:53]SAM_PROTO_GetShiftState done [20:02:53]FM_GetShiftState done [20:02:53]req_shift_opened done [20:02:53]requested_item shift.open_date is exist - process it [20:02:53]req_shift_open_date [20:02:53]req_shift_open_date done [20:02:53]produce_requested_data done [20:02:53]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165834,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:02:53]process_action_free get_value [20:02:53]json_value_free [20:02:53]json_value_free done [20:02:53]process_json_proto returns [20:02:53]Send response to host [20:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165834,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:02:53]free response buf [20:02:53]execute_script done [20:02:53]execute_script returns [20:02:53]free content buf [20:02:53]Sock 7.Close socket [20:02:53]Sock 7.Thread stoped [20:02:53]accept exits with 5 [20:02:53]New connection [20:02:53]New thread 3066776932 created [20:02:53]Thread 3066920292 joined [20:02:53]Waiting for new connection... [20:02:53] Sock 5.Parse request [20:02:53]Sock 5.Check first char [20:02:53]Sock 5.First char is OK [20:02:53]request: POST /json_proto HTTP/1.0 [20:02:53]Method: POST [20:02:53]URL: /json_proto [20:02:53]Method is POST - this is cgi request [20:02:53]url: /json_proto [20:02:53]query_string will be loaded in cgi processing [20:02:53]execute_cgi json_proto POST (null) [20:02:53]execute_cgi path=json_proto method=POST [20:02:53]POST find Content-Length [20:02:53]Host: 172.17.53.195:8080 [20:02:53]Content-Length: 331 [20:02:53]Content-Type: application/json [20:02:53] [20:02:53]POST finish read [20:02:53]Found Content-Length = 331 [20:02:53]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" ] } } [20:02:53]execute_script... [20:02:53]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" ] } } [20:02:53]POST & json_proto [20:02:53]process_json_proto [20:02:53]json parsed OK: [20:02:53]protocol is kg_v1.0 [20:02:53]action value=get_value [20:02:53]process_action get_value [20:02:53]cmd_get_value [20:02:53]process_action get_value done [20:02:53]requested_data is exist [20:02:53]produce_requested_data [20:02:53]requested_item fm.sale.total is exist - process it [20:02:53]SAM_PROTO_GetFMData [20:02:53]wFMCommunicate request_size=4 [20:02:53]MH_SAM_APDU [20:02:53]CAPDU: 80 13 03 00 [20:02:53]Write to MH i2c: E2 08 00 6F 18 80 13 03 00 00 00 00 00 06 [20:02:53]Write i2c OK [20:02:53]MH_I2C_Read... [20:02:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:02:54]Read from MH i2c: E2 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: E2 FD 00 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: E2 FD 00 6F 18 00 C5 04 85 04 C1 04 6E 04 04 00 9E 83 02 00 69 04 A3 00 6F 04 04 00 9F 82 02 00 B1 04 05 00 D0 4C 49 B0 03 70 04 05 00 00 BB 38 27 03 72 04 04 00 D0 91 10 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BB 15 52 64 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 EF 13 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 05 [20:02:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 9E 83 02 00 69 04 A3 00 6F 04 04 00 9F 82 02 00 B1 04 05 00 D0 4C 49 B0 03 70 04 05 00 00 BB 38 27 03 72 04 04 00 D0 91 10 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BB 15 52 64 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 EF 13 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [20:02:54]wFMCommunicate OK [20:02:54]wFMCommunicate request_size=4 [20:02:54]MH_SAM_APDU [20:02:54]CAPDU: 80 17 00 00 [20:02:54]Write to MH i2c: E2 08 00 70 18 80 17 00 00 00 00 00 00 08 [20:02:54]Write i2c OK [20:02:54]MH_I2C_Read... [20:02:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:02:54]Read from MH i2c: E2 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: E2 FD 00 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: E2 FD 00 70 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [20:02:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:02:54]wFMCommunicate OK [20:02:54]wFMCommunicate request_size=4 [20:02:54]MH_SAM_APDU [20:02:54]CAPDU: 80 17 00 00 [20:02:54]Write to MH i2c: E2 08 00 71 18 80 17 00 00 00 00 00 00 09 [20:02:54]Write i2c OK [20:02:54]MH_I2C_Read... [20:02:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:02:54]Read from MH i2c: E2 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: E2 FD 00 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: E2 FD 00 71 18 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 90 00 1B [20:02:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:02:54]wFMCommunicate OK [20:02:54]wFMCommunicate request_size=4 [20:02:54]MH_SAM_APDU [20:02:54]CAPDU: 80 17 00 00 [20:02:54]Write to MH i2c: E2 08 00 72 18 80 17 00 00 00 00 00 00 0A [20:02:54]Write i2c OK [20:02:54]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 FD 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 FD 00 72 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 96 [20:02:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:02:55]wFMCommunicate OK [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 17 00 00 [20:02:55]Write to MH i2c: E2 08 00 73 18 80 17 00 00 00 00 00 00 0B [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 E2 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 E2 00 73 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E9 [20:02:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:02:55]wFMCommunicate OK [20:02:55]SAM_PROTO_GetFMData done [20:02:55]requested_item fm.sale_refund.total is exist - process it [20:02:55]requested_item fm.buy.total is exist - process it [20:02:55]requested_item shift.sale.total is exist - process it [20:02:55]SAM_PROTO_GetShiftData [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 13 02 00 [20:02:55]Write to MH i2c: E2 08 00 74 18 80 13 02 00 00 00 00 00 0A [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]OFD Sender: No OFD packet to send [20:02:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 FD 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 FD 00 74 18 00 B1 04 AA 04 AD 04 6E 04 04 00 3C 01 00 00 69 04 9E 00 6F 04 04 00 3C 01 00 00 B1 04 04 00 1D D6 0E 02 70 04 04 00 E4 8B 98 01 72 04 03 00 39 4A 76 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 CA F6 37 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 DA A9 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 DD [20:02:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 3C 01 00 00 69 04 9E 00 6F 04 04 00 3C 01 00 00 B1 04 04 00 1D D6 0E 02 70 04 04 00 E4 8B 98 01 72 04 03 00 39 4A 76 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 CA F6 37 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 DA A9 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [20:02:55]wFMCommunicate OK [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 17 00 00 [20:02:55]Write to MH i2c: E2 08 00 75 18 80 17 00 00 00 00 00 00 0D [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:02:56]Read from MH i2c: E2 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: E2 FD 00 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: E2 FD 00 75 18 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 26 [20:02:56]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 [20:02:56]wFMCommunicate OK [20:02:56]wFMCommunicate request_size=4 [20:02:56]MH_SAM_APDU [20:02:56]CAPDU: 80 17 00 00 [20:02:56]Write to MH i2c: E2 08 00 76 18 80 17 00 00 00 00 00 00 0E [20:02:56]Write i2c OK [20:02:56]MH_I2C_Read... [20:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:02:56]Read from MH i2c: E2 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: E2 FD 00 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: E2 FD 00 76 18 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 C7 [20:02:56]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 [20:02:56]wFMCommunicate OK [20:02:56]wFMCommunicate request_size=4 [20:02:56]MH_SAM_APDU [20:02:56]CAPDU: 80 17 00 00 [20:02:56]Write to MH i2c: E2 08 00 77 18 80 17 00 00 00 00 00 00 0F [20:02:56]Write i2c OK [20:02:56]MH_I2C_Read... [20:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:02:56]Read from MH i2c: E2 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: E2 FD 00 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: E2 FD 00 77 18 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 87 [20:02:56]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 [20:02:56]wFMCommunicate OK [20:02:56]wFMCommunicate request_size=4 [20:02:56]MH_SAM_APDU [20:02:56]CAPDU: 80 17 00 00 [20:02:56]Write to MH i2c: E2 08 00 78 18 80 17 00 00 00 00 00 00 10 [20:02:56]Write i2c OK [20:02:56]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 CE 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 CE 00 78 18 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 F5 [20:02:57]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 [20:02:57]wFMCommunicate OK [20:02:57]SAM_PROTO_GetShiftData done [20:02:57]requested_item shift.sale.total_cash is exist - process it [20:02:57]requested_item shift.sale_refund.total is exist - process it [20:02:57]requested_item shift.sale_refund.total_cash is exist - process it [20:02:57]requested_item shift.buy.total is exist - process it [20:02:57]requested_item shift.buy.total_cash is exist - process it [20:02:57]produce_requested_data done [20:02:57]produce_requested_data return {"fm.sale.total":158424956.96,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":345267.49,"shift.sale.total_cash":267745.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} [20:02:57]process_action_free get_value [20:02:57]json_value_free [20:02:57]json_value_free done [20:02:57]process_json_proto returns [20:02:57]Send response to host [20:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158424956.96,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":345267.49,"shift.sale.total_cash":267745.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}}} [20:02:57]free response buf [20:02:57]execute_script done [20:02:57]execute_script returns [20:02:57]free content buf [20:02:57]Sock 5.Close socket [20:02:57]Sock 5.Thread stoped [20:02:57]accept exits with 6 [20:02:57]New connection [20:02:57]New thread 3066920292 created [20:02:57]Thread 3066776932 joined [20:02:57]Waiting for new connection... [20:02:57] Sock 6.Parse request [20:02:57]Sock 6.Check first char [20:02:57]Sock 6.First char is OK [20:02:57]request: POST /json_proto HTTP/1.0 [20:02:57]Method: POST [20:02:57]URL: /json_proto [20:02:57]Method is POST - this is cgi request [20:02:57]url: /json_proto [20:02:57]query_string will be loaded in cgi processing [20:02:57]execute_cgi json_proto POST (null) [20:02:57]execute_cgi path=json_proto method=POST [20:02:57]POST find Content-Length [20:02:57]Host: 172.17.53.195:8080 [20:02:57]Content-Length: 144 [20:02:57]Content-Type: application/json [20:02:57] [20:02:57]POST finish read [20:02:57]Found Content-Length = 144 [20:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:02:57]execute_script... [20:02:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:02:57]POST & json_proto [20:02:57]process_json_proto [20:02:57]json parsed OK: [20:02:57]protocol is kg_v1.0 [20:02:57]action value=print_doc [20:02:57]process_action print_doc [20:02:57]ExternCall_PrintAddStr [20:02:57]wPrintStart [20:02:57]Write to MH i2c: 01 00 00 79 18 91 [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 79 18 00 00 00 00 00 FF 0F A6 [20:02:57]RasterBufferAndPrint [20:02:57]line Счет N : (1)220402 [20:02:57]line ИНН: 02508201610067 [20:02:57]line Контрольно-Кассовый Чек [20:02:57]line ПРОДАЖА [20:02:57]line ТРК (МРК, ГНК) : 13 [20:02:57]line Товар: 2710124130 [20:02:57]line Аи-92-К-5 [20:02:57]line 14.950 * 66.90 [20:02:57]line = 1000.16 [20:02:57]line НДС 12% НСП 1% [20:02:57]line > о реализуемом товаре [20:02:57]line ОКРУГЛЕНИЕ: -0.16 [20:02:57]line ИТОГО: 1000.00 [20:02:57]line Внесено: 1000.00 [20:02:57]line СДАЧА: 0.00 [20:02:57]line НСП 1% : 8.85 [20:02:57]line НДС 12% : 106.21 [20:02:57]line Наличными: 1000.00 [20:02:57]line Безнал.: 0.00 [20:02:57]line Место: АЗС № 161 "Партнер Нефть" [20:02:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:02:57]line СНО: Общий режим [20:02:57]line Чек 316 20.10.2024 19:52 [20:02:57]line Смена: 534 ФФД: 1.0 [20:02:57]line ЗНМ: 0300000104 [20:02:57]line РНМ: 0000000000091764 [20:02:57]line Версия ККМ: 001 [20:02:57]line ФМ: 0000000000871759 [20:02:57]line ФД: 165834 [20:02:57]line ФПД: 219423646177874 [20:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195201&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165834&fm=219423646177874&tin=02508201610067®Number=0000000000091764&sum=100000 [20:02:57]written 0, free lines is 4095 [20:02:57]Write to MH i2c: 01 00 00 A4 18 BC [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 A4 18 00 00 00 00 00 B4 0C 83 [20:02:57]RasterBufferAndPrint [20:02:57]line [20:02:57]line [20:02:57]line [20:02:57]line [20:02:57]line [20:02:57]written 0, free lines is 3266 [20:02:57]MH_Cut [20:02:57]Write to MH i2c: D1 01 00 AB 18 01 95 [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: D1 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: D1 01 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: D1 01 00 AB 18 00 94 [20:02:57]Write to MH i2c: 01 00 00 AC 18 C4 [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:58]*** Cut start [20:02:58]*** Partial cut [20:02:58]*** CUTSNS_PIN = 1 [20:02:58]*** CUTSNS_PIN = 0 [20:02:58]*** Brake cut motor [20:02:59]Read from MH i2c: 01 [20:02:59]MH_I2C_Read... [20:02:59]*** Stop cut motor [20:02:59]*** Cut end [20:02:59]Read from MH i2c: 01 07 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: 01 07 00 AC 18 00 00 00 00 00 FF 0F D9 [20:02:59]process_action print_doc done [20:02:59]requested_data is exist [20:02:59]produce_requested_data [20:02:59]produce_requested_data return (null) [20:02:59]process_action_free print_doc [20:02:59]json_value_free [20:02:59]json_value_free done [20:02:59]process_json_proto returns [20:02:59]Send response to host [20:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [20:02:59]free response buf [20:02:59]execute_script done [20:02:59]execute_script returns [20:02:59]free content buf [20:02:59]Sock 6.Close socket [20:02:59]Sock 6.Thread stoped [20:02:59]accept exits with 5 [20:02:59]New connection [20:02:59]New thread 3066776932 created [20:02:59]Thread 3066920292 joined [20:02:59]Waiting for new connection... [20:02:59] Sock 5.Parse request [20:02:59]Sock 5.Check first char [20:02:59]Sock 5.First char is OK [20:02:59]request: POST /json_proto HTTP/1.0 [20:02:59]Method: POST [20:02:59]URL: /json_proto [20:02:59]Method is POST - this is cgi request [20:02:59]url: /json_proto [20:02:59]query_string will be loaded in cgi processing [20:02:59]execute_cgi json_proto POST (null) [20:02:59]execute_cgi path=json_proto method=POST [20:02:59]POST find Content-Length [20:02:59]Host: 172.17.53.195:8080 [20:02:59]Content-Length: 800 [20:02:59]Content-Type: application/json [20:02:59] [20:02:59]POST finish read [20:02:59]Found Content-Length = 800 [20:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220496", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:59]execute_script... [20:02: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)220403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220496", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:59]POST & json_proto [20:02:59]process_json_proto [20:02:59]json parsed OK: [20:02:59]protocol is kg_v1.0 [20:02:59]action value=close_receipt [20:02:59]process_action close_receipt [20:02:59]cmd_close_receipt [20:02:59]MH_GetDate [20:02:59]Write to MH i2c: F0 00 00 AD 18 B4 [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: F0 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: F0 09 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: F0 09 00 AD 18 00 01 62 15 67 21 48 4A 65 B4 [20:02:59]GetLastDocTimeStamp 1729453921 [20:02:59]current date 1729454593 [20:02:59]FM_GetShiftState [20:02:59]SAM_PROTO_GetShiftState [20:02:59]wFMCommunicate request_size=4 [20:02:59]MH_SAM_APDU [20:02:59]CAPDU: 80 13 01 00 [20:02:59]Write to MH i2c: E2 08 00 AE 18 80 13 01 00 00 00 00 00 43 [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:59]Read from MH i2c: E2 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 0E 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 0E 00 AE 18 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8B [20:02:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:02:59]wFMCommunicate OK [20:02:59]SAM_PROTO_GetShiftState done [20:02:59]FM_GetShiftState done [20:02:59]opened in 1729384561 [20:02:59]opened+sec_in_day 1729470961 [20:02:59]quantity*price = 0 [20:02:59]sum+1 = 1 [20:02:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 317 20.10.2024 20:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4220496 ФМ: 0000000000871759 ФД: 165835 ФПД: 225298839533294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200313&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165835&fm=225298839533294&tin=02508201610067®Number=0000000000091764&sum=0 [20:03:00]StoreToDocumentArchive [20:03:00]shift 534 fd 165835 [20:03:00]save to /storage/0534/doc_00165835 [20:03:00]save last doc name /storage/0534/doc_00165835 to /storage/kkm_last_doc_name [20:03:00]save OK [20:03:00]Clear old archive folders... [20:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:00]tlvbuf is 019DB900 [20:03:00]SAM_PROTO_ClearQueue [20:03:00]wFMCommunicate request_size=4 [20:03:00]MH_SAM_APDU [20:03:00]CAPDU: 80 09 00 00 [20:03:00]Write to MH i2c: E2 08 00 BB 18 80 09 00 00 00 00 00 00 45 [20:03:00]OFD Sender: No OFD packet to send [20:03:00]Write i2c OK [20:03:00]MH_I2C_Read... [20:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:00]Read from MH i2c: E2 [20:03:00]MH_I2C_Read... [20:03:00]Read from MH i2c: E2 03 00 [20:03:00]MH_I2C_Read... [20:03:00]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [20:03:00]RAPDU: 90 00 [20:03:00]wFMCommunicate OK [20:03:00]SAM_PROTO_ClearQueue done [20:03:00]KKMCreateOFDPacket [20:03:00]OFDProtocolAddRootSTLVToBuf [20:03:00]FM_MakeSignedData [20:03:00]FM_MakeSignedData [20:03:00]SAM_PROTO_SignData [20:03:00]wFMCommunicate request_size=4 [20:03:00]MH_SAM_APDU [20:03:00]CAPDU: 80 0D 01 02 [20:03:00]Write to MH i2c: E2 08 00 BC 18 80 0D 01 02 00 00 00 00 4D [20:03:00]Write i2c OK [20:03:00]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 BC 18 00 90 00 48 [20:03:01]RAPDU: 90 00 [20:03:01]wFMCommunicate OK [20:03:01]wFMCommunicate request_size=255 [20:03:01]MH_SAM_APDU [20:03: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 01 62 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 87 02 00 35 04 06 00 CC [20:03:01]Write to MH i2c: E2 02 01 BD 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 01 62 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 87 02 00 35 04 06 00 CC 00 00 21 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 BD 18 00 90 00 49 [20:03:01]RAPDU: 90 00 [20:03:01]wFMCommunicate OK [20:03:01]wFMCommunicate request_size=10 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 0D 02 02 05 E8 79 4C 76 EE [20:03:01]Write to MH i2c: E2 0D 00 BE 18 80 0D 02 02 05 00 E8 79 4C 76 EE 00 00 6B [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 BE 18 00 90 00 4A [20:03:01]RAPDU: 90 00 [20:03:01]wFMCommunicate OK [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 0D 03 02 [20:03:01]Write to MH i2c: E2 08 00 BF 18 80 0D 03 02 00 00 00 00 52 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0B 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0B 00 BF 18 00 9A B4 D0 83 DB 58 95 C8 90 00 84 [20:03:01]RAPDU: 9A B4 D0 83 DB 58 95 C8 90 00 [20:03:01]wFMCommunicate OK [20:03:01]SAM_PROTO_SignData done [20:03:01]FM_MakeSignedData done [20:03:01]CreateOFDProtocolMessage [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 11 00 00 [20:03:01]Write to MH i2c: E2 08 00 C0 18 80 11 00 00 00 00 00 00 52 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 17 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 17 00 C0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [20:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:03:01]wFMCommunicate OK [20:03:01]CreateOFDProtocolMessage done [20:03:01]OFDSenderStorePacket 165835 [20:03:01]StoreOFDPacket docnum=165835 [20:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 54 DA 07 01 CD 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 01 62 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 87 02 00 35 04 06 00 CC E8 79 4C 76 EE 9A B4 D0 83 DB 58 95 C8 [20:03:01]CheckFolder [20:03:01]dirname=/storage/ofd_packets [20:03:01]CheckFolder done [20:03:01]ProducePacketName [20:03:01]name=ofd_packets/00165835 [20:03:01]NVStorageSaveData ofd_packets/00165835 [20:03:01]File name is /storage/ofd_packets/00165835 [20:03:01]Write 301 bytes [20:03:01]NVStorageSaveData done [20:03:01]OFDSenderStorePacket done [20:03:01]KKMCreateOFDPacket done [20:03:01]NVStorageSaveData kkm_last_timestamp [20:03:01]File name is /storage/kkm_last_timestamp [20:03:01]Write 4 bytes [20:03:01]NVStorageSaveData done [20:03:01]ExternCall_PrintAddStr [20:03:01]wPrintStart [20:03:01]Write to MH i2c: 01 00 00 C1 18 D9 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: 01 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: 01 07 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: 01 07 00 C1 18 00 00 00 00 00 FF 0F EE [20:03:01]RasterBufferAndPrint [20:03:01]line Счет N : (1)220403 [20:03:01]line ИНН: 02508201610067 [20:03:01]line Контрольно-Кассовый Чек [20:03:01]line ПРОДАЖА [20:03:01]line ТРК (МРК, ГНК) : 33 [20:03:01]line Товар: 2710124130 [20:03:01]line Аи-92-К-5 [20:03:01]line 20.000 * 0.00 [20:03:01]line = 0.00 [20:03:01]line НДС 12% НСП 1% [20:03:01]line > о реализуемом товаре [20:03:01]line ИТОГО: 0.00 [20:03:01]line НСП 1% : 0.00 [20:03:01]line НДС 12% : 0.00 [20:03:01]line Наличными: 0.00 [20:03:01]line Безнал.: 0.00 [20:03:01]line Место: АЗС № 161 "Партнер Нефть" [20:03:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:03:01]line СНО: Общий режим [20:03:01]line Чек 317 20.10.2024 20:03 [20:03:01]line Смена: 534 ФФД: 1.0 [20:03:01]line ЗНМ: 0300000104 [20:03:01]line РНМ: 0000000000091764 [20:03:01]line Версия ККМ: 001 [20:03:01]line Талоны: Топливные Талоны [20:03:01]line 4220496 [20:03:01]line ФМ: 0000000000871759 [20:03:01]line ФД: 165835 [20:03:01]line ФПД: 225298839533294 [20:03:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200313&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165835&fm=225298839533294&tin=02508201610067®Number=0000000000091764&sum=0 [20:03:01]written 0, free lines is 4095 [20:03:01]OFD Sender: Processing packet 165835 [packets to send 48, broken 47] [20:03:01]ProducePacketName [20:03:01]name=ofd_packets/00165835 [20:03:01]OFD Sender: To server: pG, [20:03:01]CommunicateWithHost lk.salyk.kg:30040 [20:03:01]ConnectInit lk.salyk.kg [20:03:01]Connected sock=7 [20:03:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 54 DA 07 01 CD 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 01 62 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 87 02 00 35 04 06 00 CC E8 79 4C 76 EE 9A B4 D0 83 DB 58 95 C8 [20:03:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF DA 47 00 B2 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 31 37 35 39 10 04 04 00 CB 87 02 00 F4 03 04 00 72 08 15 67 B6 04 01 00 00 3B 0D D9 78 57 AB F8 D1 [20:03:02]CommunicateWithHost err = 0 [20:03:02]CheckOFDResponse [20:03:02]1017 (14) - 77093643461234 [20:03:02]1041 (16) - 0000000000871759 [20:03:02]1040 (4) - 165835 [20:03:02]1012 (4) - 20.10.2024 13:41 [20:03:02]1206 (1) - 0 [20:03:02]OFD Sender: Remove packet 165835 [20:03:02]ProducePacketName [20:03:02]name=ofd_packets/00165835 [20:03:02]NVStorageDeleteData [20:03:02]Write to MH i2c: 01 00 00 EB 18 03 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 07 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 07 00 EB 18 00 00 00 00 00 0F 0D 26 [20:03:02]RasterBufferAndPrint [20:03:02]line [20:03:02]line [20:03:02]line [20:03:02]line [20:03:02]line [20:03:02]written 0, free lines is 3358 [20:03:02]MH_Cut [20:03:02]Write to MH i2c: D1 01 00 F2 18 01 DC [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: D1 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: D1 01 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: D1 01 00 F2 18 00 DB [20:03:02]Write to MH i2c: 01 00 00 F3 18 0B [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]OFD Sender: No OFD packet to send [20:03:02]*** Cut start [20:03:02]*** Partial cut [20:03:02]*** CUTSNS_PIN = 1 [20:03:03]*** CUTSNS_PIN = 0 [20:03:03]*** Brake cut motor [20:03:03]Read from MH i2c: 01 [20:03:03]MH_I2C_Read... [20:03:03]*** Stop cut motor [20:03:03]*** Cut end [20:03:03]Read from MH i2c: 01 07 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 07 00 F3 18 00 00 00 00 00 FF 0F 20 [20:03:03]process_action close_receipt done [20:03:03]requested_data is exist [20:03:03]produce_requested_data [20:03:03]requested_item fm.sn is exist - process it [20:03:03]wFMCommunicate request_size=4 [20:03:03]MH_SAM_APDU [20:03:03]CAPDU: 80 11 00 00 [20:03:03]Write to MH i2c: E2 08 00 F4 18 80 11 00 00 00 00 00 00 86 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:03]Read from MH i2c: E2 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 17 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 17 00 F4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [20:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:03:03]wFMCommunicate OK [20:03:03]requested_item fd.num is exist - process it [20:03:03]SAM_PROTO_GetFieldsCounters [20:03:03]wFMCommunicate request_size=4 [20:03:03]MH_SAM_APDU [20:03:03]CAPDU: 80 13 00 00 [20:03:03]Write to MH i2c: E2 08 00 F5 18 80 13 00 00 00 00 00 00 89 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:03]Read from MH i2c: E2 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 62 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 62 00 F5 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 87 02 00 0E 04 04 00 16 02 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 D7 [20:03: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 87 02 00 0E 04 04 00 16 02 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:03:03]wFMCommunicate OK [20:03:03]SAM_PROTO_GetFieldsCounters done [20:03:03]requested_item shift.num is exist - process it [20:03:03]requested_item shift.opened is exist - process it [20:03:03]req_shift_opened [20:03:03]FM_GetShiftState [20:03:03]SAM_PROTO_GetShiftState [20:03:03]wFMCommunicate request_size=4 [20:03:03]MH_SAM_APDU [20:03:03]CAPDU: 80 13 01 00 [20:03:03]Write to MH i2c: E2 08 00 F6 18 80 13 01 00 00 00 00 00 8B [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 [20:03:03]MH_I2C_Read... [20:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:03]Read from MH i2c: E2 0E 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 0E 00 F6 18 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D3 [20:03:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:03:03]wFMCommunicate OK [20:03:03]SAM_PROTO_GetShiftState done [20:03:03]FM_GetShiftState done [20:03:03]req_shift_opened done [20:03:03]requested_item shift.open_date is exist - process it [20:03:03]req_shift_open_date [20:03:03]req_shift_open_date done [20:03:03]produce_requested_data done [20:03:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165835,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:03:03]process_action_free close_receipt [20:03:03]json_value_free [20:03:03]json_value_free done [20:03:03]process_json_proto returns [20:03:03]Send response to host [20:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165835,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:03:03]free response buf [20:03:03]execute_script done [20:03:03]execute_script returns [20:03:03]free content buf [20:03:03]Sock 5.Close socket [20:03:03]Sock 5.Thread stoped [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:14]accept exits with 6 [20:03:14]New connection [20:03:14]New thread 3066920292 created [20:03:14]Thread 3066776932 joined [20:03:14]Waiting for new connection... [20:03:14] Sock 6.Parse request [20:03:14]Sock 6.Check first char [20:03:14]Sock 6.First char is OK [20:03:14]request: POST /json_proto HTTP/1.0 [20:03:14]Method: POST [20:03:14]URL: /json_proto [20:03:14]Method is POST - this is cgi request [20:03:14]url: /json_proto [20:03:14]query_string will be loaded in cgi processing [20:03:14]execute_cgi json_proto POST (null) [20:03:14]execute_cgi path=json_proto method=POST [20:03:14]POST find Content-Length [20:03:14]Host: 172.17.53.195:8080 [20:03:14]Content-Length: 677 [20:03:14]Content-Type: application/json [20:03:14] [20:03:14]POST finish read [20:03:14]Found Content-Length = 677 [20:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:14]execute_script... [20:03: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)220404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:14]POST & json_proto [20:03:14]process_json_proto [20:03:14]json parsed OK: [20:03:14]protocol is kg_v1.0 [20:03:14]action value=close_receipt [20:03:14]process_action close_receipt [20:03:14]cmd_close_receipt [20:03:14]MH_GetDate [20:03:14]Write to MH i2c: F0 00 00 F7 18 FE [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: F0 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: F0 09 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: F0 09 00 F7 18 00 10 62 15 67 21 48 4A 65 0D [20:03:14]GetLastDocTimeStamp 1729454593 [20:03:14]current date 1729454608 [20:03:14]FM_GetShiftState [20:03:14]SAM_PROTO_GetShiftState [20:03:14]wFMCommunicate request_size=4 [20:03:14]MH_SAM_APDU [20:03:14]CAPDU: 80 13 01 00 [20:03:14]Write to MH i2c: E2 08 00 F8 18 80 13 01 00 00 00 00 00 8D [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:14]Read from MH i2c: E2 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 0E 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 0E 00 F8 18 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D5 [20:03:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:03:14]wFMCommunicate OK [20:03:14]SAM_PROTO_GetShiftState done [20:03:14]FM_GetShiftState done [20:03:14]opened in 1729384561 [20:03:14]opened+sec_in_day 1729470961 [20:03:14]quantity*price = 20003 [20:03:14]sum+1 = 20004 [20:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 318 20.10.2024 20:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165836 ФПД: 162370797093107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200328&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165836&fm=162370797093107&tin=02508201610067®Number=0000000000091764&sum=20000 [20:03:15]StoreToDocumentArchive [20:03:15]shift 534 fd 165836 [20:03:15]save to /storage/0534/doc_00165836 [20:03:15]save last doc name /storage/0534/doc_00165836 to /storage/kkm_last_doc_name [20:03:15]save OK [20:03:15]Clear old archive folders... [20:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:15]tlvbuf is 014B29A0 [20:03:15]SAM_PROTO_ClearQueue [20:03:15]wFMCommunicate request_size=4 [20:03:15]MH_SAM_APDU [20:03:15]CAPDU: 80 09 00 00 [20:03:15]Write to MH i2c: E2 08 00 05 19 80 09 00 00 00 00 00 00 90 [20:03:15]Write i2c OK [20:03:15]MH_I2C_Read... [20:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:15]Read from MH i2c: E2 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: E2 03 00 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: E2 03 00 05 19 00 90 00 92 [20:03:15]RAPDU: 90 00 [20:03:15]wFMCommunicate OK [20:03:15]SAM_PROTO_ClearQueue done [20:03:15]KKMCreateOFDPacket [20:03:15]OFDProtocolAddRootSTLVToBuf [20:03:15]FM_MakeSignedData [20:03:15]FM_MakeSignedData [20:03:15]SAM_PROTO_SignData [20:03:15]wFMCommunicate request_size=4 [20:03:15]MH_SAM_APDU [20:03:15]CAPDU: 80 0D 01 02 [20:03:15]Write to MH i2c: E2 08 00 06 19 80 0D 01 02 00 00 00 00 98 [20:03:15]Write i2c OK [20:03:15]MH_I2C_Read... [20:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:15]Read from MH i2c: E2 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: E2 03 00 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: E2 03 00 06 19 00 90 00 93 [20:03:15]RAPDU: 90 00 [20:03:15]wFMCommunicate OK [20:03:15]wFMCommunicate request_size=255 [20:03:15]MH_SAM_APDU [20:03:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 10 62 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 87 02 00 35 04 06 00 93 [20:03:15]Write to MH i2c: E2 02 01 07 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 10 62 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 87 02 00 35 04 06 00 93 00 00 1D [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 03 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 03 00 07 19 00 90 00 94 [20:03:16]RAPDU: 90 00 [20:03:16]wFMCommunicate OK [20:03:16]wFMCommunicate request_size=10 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 0D 02 02 05 AC E5 AE C0 F3 [20:03:16]Write to MH i2c: E2 0D 00 08 19 80 0D 02 02 05 00 AC E5 AE C0 F3 00 00 97 [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 03 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 03 00 08 19 00 90 00 95 [20:03:16]RAPDU: 90 00 [20:03:16]wFMCommunicate OK [20:03:16]wFMCommunicate request_size=4 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 0D 03 02 [20:03:16]Write to MH i2c: E2 08 00 09 19 80 0D 03 02 00 00 00 00 9D [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 0B 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 0B 00 09 19 00 19 5B 54 61 EC D5 4B 05 90 00 D8 [20:03:16]RAPDU: 19 5B 54 61 EC D5 4B 05 90 00 [20:03:16]wFMCommunicate OK [20:03:16]SAM_PROTO_SignData done [20:03:16]FM_MakeSignedData done [20:03:16]CreateOFDProtocolMessage [20:03:16]wFMCommunicate request_size=4 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 11 00 00 [20:03:16]Write to MH i2c: E2 08 00 0A 19 80 11 00 00 00 00 00 00 9D [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 17 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 17 00 0A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [20:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:03:16]wFMCommunicate OK [20:03:16]CreateOFDProtocolMessage done [20:03:16]OFDSenderStorePacket 165836 [20:03:16]StoreOFDPacket docnum=165836 [20:03:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 61 07 01 9B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 10 62 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 87 02 00 35 04 06 00 93 AC E5 AE C0 F3 19 5B 54 61 EC D5 4B 05 [20:03:16]CheckFolder [20:03:16]dirname=/storage/ofd_packets [20:03:16]CheckFolder done [20:03:16]ProducePacketName [20:03:16]name=ofd_packets/00165836 [20:03:16]NVStorageSaveData ofd_packets/00165836 [20:03:16]File name is /storage/ofd_packets/00165836 [20:03:16]Write 301 bytes [20:03:16]NVStorageSaveData done [20:03:16]OFDSenderStorePacket done [20:03:16]KKMCreateOFDPacket done [20:03:16]NVStorageSaveData kkm_last_timestamp [20:03:16]File name is /storage/kkm_last_timestamp [20:03:16]Write 4 bytes [20:03:16]NVStorageSaveData done [20:03:16]ExternCall_PrintAddStr [20:03:16]wPrintStart [20:03:16]Write to MH i2c: 01 00 00 0B 19 24 [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: 01 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: 01 07 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: 01 07 00 0B 19 00 00 00 00 00 FF 0F 39 [20:03:16]RasterBufferAndPrint [20:03:16]line Счет N : (1)220404 [20:03:16]line ИНН: 02508201610067 [20:03:16]line Контрольно-Кассовый Чек [20:03:16]line ПРОДАЖА [20:03:16]line ТРК (МРК, ГНК) : 23 [20:03:16]line Товар: 2710124130 [20:03:16]line Аи-92-К-5 [20:03:16]line 2.990 * 66.90 [20:03:16]line = 200.03 [20:03:16]line НДС 12% НСП 1% [20:03:16]line > о реализуемом товаре [20:03:16]line ОКРУГЛЕНИЕ: -0.03 [20:03:16]line ИТОГО: 200.00 [20:03:16]line Внесено: 200.00 [20:03:16]line СДАЧА: 0.00 [20:03:16]line НСП 1% : 1.77 [20:03:16]line НДС 12% : 21.24 [20:03:16]line Наличными: 200.00 [20:03:16]line Безнал.: 0.00 [20:03:16]line Место: АЗС № 161 "Партнер Нефть" [20:03:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:03:16]line СНО: Общий режим [20:03:16]line Чек 318 20.10.2024 20:03 [20:03:16]line Смена: 534 ФФД: 1.0 [20:03:16]line ЗНМ: 0300000104 [20:03:16]line РНМ: 0000000000091764 [20:03:16]line Версия ККМ: 001 [20:03:16]line ФМ: 0000000000871759 [20:03:16]line ФД: 165836 [20:03:16]line ФПД: 162370797093107 [20:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200328&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165836&fm=162370797093107&tin=02508201610067®Number=0000000000091764&sum=20000 [20:03:16]written 0, free lines is 4095 [20:03:16]OFD Sender: Processing packet 165836 [packets to send 48, broken 47] [20:03:16]ProducePacketName [20:03:16]name=ofd_packets/00165836 [20:03:16]OFD Sender: To server: pG, [20:03:16]CommunicateWithHost lk.salyk.kg:30040 [20:03:16]ConnectInit lk.salyk.kg [20:03:16]Connected sock=7 [20:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 61 07 01 9B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 10 62 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 87 02 00 35 04 06 00 93 AC E5 AE C0 F3 19 5B 54 61 EC D5 4B 05 [20:03:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 94 32 47 00 EE DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 87 02 00 F4 03 04 00 81 08 15 67 B6 04 01 00 00 4C A8 CB 2E 04 AF 32 12 [20:03:17]CommunicateWithHost err = 0 [20:03:17]CheckOFDResponse [20:03:17]1017 (14) - 77093643461234 [20:03:17]1041 (16) - 0000000000871759 [20:03:17]1040 (4) - 165836 [20:03:17]1012 (4) - 20.10.2024 13:41 [20:03:17]1206 (1) - 0 [20:03:17]OFD Sender: Remove packet 165836 [20:03:17]ProducePacketName [20:03:17]name=ofd_packets/00165836 [20:03:17]NVStorageDeleteData [20:03:17]Write to MH i2c: 01 00 00 36 19 4F [20:03:17]Write i2c OK [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: 01 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: 01 07 00 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: 01 07 00 36 19 00 00 00 00 00 D1 0C 33 [20:03:17]RasterBufferAndPrint [20:03:17]line [20:03:17]line [20:03:17]line [20:03:17]line [20:03:17]line [20:03:17]written 0, free lines is 3300 [20:03:17]MH_Cut [20:03:17]Write to MH i2c: D1 01 00 3D 19 01 28 [20:03:17]Write i2c OK [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: D1 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: D1 01 00 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: D1 01 00 3D 19 00 27 [20:03:17]Write to MH i2c: 01 00 00 3E 19 57 [20:03:17]Write i2c OK [20:03:17]MH_I2C_Read... [20:03:17]OFD Sender: No OFD packet to send [20:03:17]*** Cut start [20:03:17]*** Partial cut [20:03:17]*** CUTSNS_PIN = 1 [20:03:17]*** CUTSNS_PIN = 0 [20:03:18]*** Brake cut motor [20:03:18]Read from MH i2c: 01 [20:03:18]MH_I2C_Read... [20:03:18]*** Stop cut motor [20:03:18]*** Cut end [20:03:18]Read from MH i2c: 01 07 00 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: 01 07 00 3E 19 00 00 00 00 00 FF 0F 6C [20:03:18]process_action close_receipt done [20:03:18]requested_data is exist [20:03:18]produce_requested_data [20:03:18]requested_item fm.sn is exist - process it [20:03:18]wFMCommunicate request_size=4 [20:03:18]MH_SAM_APDU [20:03:18]CAPDU: 80 11 00 00 [20:03:18]Write to MH i2c: E2 08 00 3F 19 80 11 00 00 00 00 00 00 D2 [20:03:18]Write i2c OK [20:03:18]MH_I2C_Read... [20:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:18]Read from MH i2c: E2 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: E2 17 00 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: E2 17 00 3F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2A [20:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:03:18]wFMCommunicate OK [20:03:18]requested_item fd.num is exist - process it [20:03:18]SAM_PROTO_GetFieldsCounters [20:03:18]wFMCommunicate request_size=4 [20:03:18]MH_SAM_APDU [20:03:18]CAPDU: 80 13 00 00 [20:03:18]Write to MH i2c: E2 08 00 40 19 80 13 00 00 00 00 00 00 D5 [20:03:18]Write i2c OK [20:03:18]MH_I2C_Read... [20:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:18]Read from MH i2c: E2 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: E2 62 00 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: E2 62 00 40 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 87 02 00 0E 04 04 00 16 02 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 27 [20:03:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 87 02 00 0E 04 04 00 16 02 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:03:18]wFMCommunicate OK [20:03:18]SAM_PROTO_GetFieldsCounters done [20:03:18]requested_item shift.num is exist - process it [20:03:18]requested_item shift.opened is exist - process it [20:03:18]req_shift_opened [20:03:18]FM_GetShiftState [20:03:18]SAM_PROTO_GetShiftState [20:03:18]wFMCommunicate request_size=4 [20:03:18]MH_SAM_APDU [20:03:18]CAPDU: 80 13 01 00 [20:03:18]Write to MH i2c: E2 08 00 41 19 80 13 01 00 00 00 00 00 D7 [20:03:18]Write i2c OK [20:03:18]MH_I2C_Read... [20:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:18]Read from MH i2c: E2 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: E2 0E 00 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: E2 0E 00 41 19 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1F [20:03:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:03:18]wFMCommunicate OK [20:03:18]SAM_PROTO_GetShiftState done [20:03:18]FM_GetShiftState done [20:03:18]req_shift_opened done [20:03:18]requested_item shift.open_date is exist - process it [20:03:18]req_shift_open_date [20:03:18]req_shift_open_date done [20:03:18]produce_requested_data done [20:03:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165836,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:03:18]process_action_free close_receipt [20:03:18]json_value_free [20:03:18]json_value_free done [20:03:18]process_json_proto returns [20:03:18]Send response to host [20:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165836,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:03:18]free response buf [20:03:18]execute_script done [20:03:18]execute_script returns [20:03:18]free content buf [20:03:18]Sock 6.Close socket [20:03:18]Sock 6.Thread stoped [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:44]accept exits with 5 [20:07:44]New connection [20:07:44]New thread 3066776932 created [20:07:44]Thread 3066920292 joined [20:07:44]Waiting for new connection... [20:07:44] Sock 5.Parse request [20:07:44]Sock 5.Check first char [20:07:44]Sock 5.First char is OK [20:07:44]request: POST /json_proto HTTP/1.0 [20:07:44]Method: POST [20:07:44]URL: /json_proto [20:07:44]Method is POST - this is cgi request [20:07:44]url: /json_proto [20:07:44]query_string will be loaded in cgi processing [20:07:44]execute_cgi json_proto POST (null) [20:07:44]execute_cgi path=json_proto method=POST [20:07:44]POST find Content-Length [20:07:44]Host: 172.17.53.195:8080 [20:07:44]Content-Length: 677 [20:07:44]Content-Type: application/json [20:07:44] [20:07:44]POST finish read [20:07:44]Found Content-Length = 677 [20:07:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:44]execute_script... [20:07: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)220405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:44]POST & json_proto [20:07:44]process_json_proto [20:07:44]json parsed OK: [20:07:44]protocol is kg_v1.0 [20:07:44]action value=close_receipt [20:07:44]process_action close_receipt [20:07:44]cmd_close_receipt [20:07:44]MH_GetDate [20:07:44]Write to MH i2c: F0 00 00 42 19 4A [20:07:44]Write i2c OK [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: F0 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: F0 09 00 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: F0 09 00 42 19 00 1E 63 15 67 21 48 4A 65 68 [20:07:44]GetLastDocTimeStamp 1729454608 [20:07:44]current date 1729454878 [20:07:44]FM_GetShiftState [20:07:44]SAM_PROTO_GetShiftState [20:07:44]wFMCommunicate request_size=4 [20:07:44]MH_SAM_APDU [20:07:44]CAPDU: 80 13 01 00 [20:07:44]Write to MH i2c: E2 08 00 43 19 80 13 01 00 00 00 00 00 D9 [20:07:44]Write i2c OK [20:07:44]MH_I2C_Read... [20:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:44]Read from MH i2c: E2 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 0E 00 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 0E 00 43 19 00 09 00 01 71 50 14 67 00 00 00 00 90 00 21 [20:07:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:07:44]wFMCommunicate OK [20:07:44]SAM_PROTO_GetShiftState done [20:07:44]FM_GetShiftState done [20:07:44]opened in 1729384561 [20:07:44]opened+sec_in_day 1729470961 [20:07:44]quantity*price = 50041 [20:07:44]sum+1 = 50042 [20:07:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 319 20.10.2024 20:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165837 ФПД: 115067766438715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200758&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165837&fm=115067766438715&tin=02508201610067®Number=0000000000091764&sum=50000 [20:07:45]StoreToDocumentArchive [20:07:45]shift 534 fd 165837 [20:07:45]save to /storage/0534/doc_00165837 [20:07:45]save last doc name /storage/0534/doc_00165837 to /storage/kkm_last_doc_name [20:07:45]save OK [20:07:45]Clear old archive folders... [20:07:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:45]tlvbuf is 015DDBD0 [20:07:45]SAM_PROTO_ClearQueue [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 09 00 00 [20:07:45]Write to MH i2c: E2 08 00 50 19 80 09 00 00 00 00 00 00 DB [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [20:07:45]RAPDU: 90 00 [20:07:45]wFMCommunicate OK [20:07:45]SAM_PROTO_ClearQueue done [20:07:45]KKMCreateOFDPacket [20:07:45]OFDProtocolAddRootSTLVToBuf [20:07:45]FM_MakeSignedData [20:07:45]FM_MakeSignedData [20:07:45]SAM_PROTO_SignData [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 0D 01 02 [20:07:45]Write to MH i2c: E2 08 00 51 19 80 0D 01 02 00 00 00 00 E3 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [20:07:45]RAPDU: 90 00 [20:07:45]wFMCommunicate OK [20:07:45]wFMCommunicate request_size=255 [20:07:45]MH_SAM_APDU [20:07: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 1E 63 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 87 02 00 35 04 06 00 68 [20:07:45]Write to MH i2c: E2 02 01 52 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 1E 63 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 87 02 00 35 04 06 00 68 00 00 8C [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:46]Read from MH i2c: E2 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 03 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [20:07:46]RAPDU: 90 00 [20:07:46]wFMCommunicate OK [20:07:46]wFMCommunicate request_size=10 [20:07:46]MH_SAM_APDU [20:07:46]CAPDU: 80 0D 02 02 05 A7 4D 57 FB 3B [20:07:46]Write to MH i2c: E2 0D 00 53 19 80 0D 02 02 05 00 A7 4D 57 FB 3B 00 00 71 [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:46]Read from MH i2c: E2 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 03 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 03 00 53 19 00 90 00 E0 [20:07:46]RAPDU: 90 00 [20:07:46]wFMCommunicate OK [20:07:46]wFMCommunicate request_size=4 [20:07:46]MH_SAM_APDU [20:07:46]CAPDU: 80 0D 03 02 [20:07:46]Write to MH i2c: E2 08 00 54 19 80 0D 03 02 00 00 00 00 E8 [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:46]Read from MH i2c: E2 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 0B 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 0B 00 54 19 00 37 AC EF 12 E1 51 85 88 90 00 0C [20:07:46]RAPDU: 37 AC EF 12 E1 51 85 88 90 00 [20:07:46]wFMCommunicate OK [20:07:46]SAM_PROTO_SignData done [20:07:46]FM_MakeSignedData done [20:07:46]CreateOFDProtocolMessage [20:07:46]wFMCommunicate request_size=4 [20:07:46]MH_SAM_APDU [20:07:46]CAPDU: 80 11 00 00 [20:07:46]Write to MH i2c: E2 08 00 55 19 80 11 00 00 00 00 00 00 E8 [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:46]Read from MH i2c: E2 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 17 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 17 00 55 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [20:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:07:46]wFMCommunicate OK [20:07:46]CreateOFDProtocolMessage done [20:07:46]OFDSenderStorePacket 165837 [20:07:46]StoreOFDPacket docnum=165837 [20:07:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D0 5E 07 01 0F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 1E 63 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 87 02 00 35 04 06 00 68 A7 4D 57 FB 3B 37 AC EF 12 E1 51 85 88 [20:07:46]CheckFolder [20:07:46]dirname=/storage/ofd_packets [20:07:46]CheckFolder done [20:07:46]ProducePacketName [20:07:46]name=ofd_packets/00165837 [20:07:46]NVStorageSaveData ofd_packets/00165837 [20:07:46]File name is /storage/ofd_packets/00165837 [20:07:46]Write 301 bytes [20:07:46]NVStorageSaveData done [20:07:46]OFDSenderStorePacket done [20:07:46]KKMCreateOFDPacket done [20:07:46]NVStorageSaveData kkm_last_timestamp [20:07:46]File name is /storage/kkm_last_timestamp [20:07:46]Write 4 bytes [20:07:46]NVStorageSaveData done [20:07:46]ExternCall_PrintAddStr [20:07:46]wPrintStart [20:07:46]Write to MH i2c: 01 00 00 56 19 6F [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 07 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 07 00 56 19 00 00 00 00 00 FF 0F 84 [20:07:46]RasterBufferAndPrint [20:07:46]line Счет N : (1)220405 [20:07:46]line ИНН: 02508201610067 [20:07:46]line Контрольно-Кассовый Чек [20:07:46]line ПРОДАЖА [20:07:46]line ТРК (МРК, ГНК) : 23 [20:07:46]line Товар: 2710124130 [20:07:46]line Аи-92-К-5 [20:07:46]line 7.480 * 66.90 [20:07:46]line = 500.41 [20:07:46]line НДС 12% НСП 1% [20:07:46]line > о реализуемом товаре [20:07:46]line ОКРУГЛЕНИЕ: -0.41 [20:07:46]line ИТОГО: 500.00 [20:07:46]line Внесено: 500.00 [20:07:46]line СДАЧА: 0.00 [20:07:46]line НСП 1% : 4.43 [20:07:46]line НДС 12% : 53.14 [20:07:46]line Наличными: 500.00 [20:07:46]line Безнал.: 0.00 [20:07:46]line Место: АЗС № 161 "Партнер Нефть" [20:07:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:07:46]line СНО: Общий режим [20:07:46]line Чек 319 20.10.2024 20:07 [20:07:46]line Смена: 534 ФФД: 1.0 [20:07:46]line ЗНМ: 0300000104 [20:07:46]line РНМ: 0000000000091764 [20:07:46]line Версия ККМ: 001 [20:07:46]line ФМ: 0000000000871759 [20:07:46]line ФД: 165837 [20:07:46]line ФПД: 115067766438715 [20:07:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200758&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165837&fm=115067766438715&tin=02508201610067®Number=0000000000091764&sum=50000 [20:07:46]OFD Sender: Processing packet 165837 [packets to send 48, broken 47] [20:07:46]ProducePacketName [20:07:46]name=ofd_packets/00165837 [20:07:46]OFD Sender: To server: pG, [20:07:46]CommunicateWithHost lk.salyk.kg:30040 [20:07:46]ConnectInit lk.salyk.kg [20:07:46]written 0, free lines is 4095 [20:07:46]Connected sock=7 [20:07:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D0 5E 07 01 0F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 1E 63 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 87 02 00 35 04 06 00 68 A7 4D 57 FB 3B 37 AC EF 12 E1 51 85 88 [20:07:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A1 D3 47 00 92 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 87 02 00 F4 03 04 00 8F 09 15 67 B6 04 01 00 00 D9 38 13 5C 28 48 A8 40 [20:07:46]CommunicateWithHost err = 0 [20:07:46]CheckOFDResponse [20:07:46]1017 (14) - 77093643461234 [20:07:46]1041 (16) - 0000000000871759 [20:07:46]1040 (4) - 165837 [20:07:46]1012 (4) - 20.10.2024 13:45 [20:07:46]1206 (1) - 0 [20:07:46]OFD Sender: Remove packet 165837 [20:07:46]ProducePacketName [20:07:46]name=ofd_packets/00165837 [20:07:46]NVStorageDeleteData [20:07:46]Write to MH i2c: 01 00 00 81 19 9A [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 07 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 07 00 81 19 00 00 00 00 00 C5 0C 72 [20:07:46]RasterBufferAndPrint [20:07:46]line [20:07:46]line [20:07:46]line [20:07:46]line [20:07:46]line [20:07:46]written 0, free lines is 3278 [20:07:46]MH_Cut [20:07:46]Write to MH i2c: D1 01 00 88 19 01 73 [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: D1 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: D1 01 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: D1 01 00 88 19 00 72 [20:07:47]Write to MH i2c: 01 00 00 89 19 A2 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]OFD Sender: No OFD packet to send [20:07:47]*** Cut start [20:07:47]*** Partial cut [20:07:47]*** CUTSNS_PIN = 1 [20:07:47]*** CUTSNS_PIN = 0 [20:07:48]*** Brake cut motor [20:07:48]Read from MH i2c: 01 [20:07:48]MH_I2C_Read... [20:07:48]*** Stop cut motor [20:07:48]*** Cut end [20:07:48]Read from MH i2c: 01 07 00 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: 01 07 00 89 19 00 00 00 00 00 FF 0F B7 [20:07:48]process_action close_receipt done [20:07:48]requested_data is exist [20:07:48]produce_requested_data [20:07:48]requested_item fm.sn is exist - process it [20:07:48]wFMCommunicate request_size=4 [20:07:48]MH_SAM_APDU [20:07:48]CAPDU: 80 11 00 00 [20:07:48]Write to MH i2c: E2 08 00 8A 19 80 11 00 00 00 00 00 00 1D [20:07:48]Write i2c OK [20:07:48]MH_I2C_Read... [20:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:48]Read from MH i2c: E2 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 17 00 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 17 00 8A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [20:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:07:48]wFMCommunicate OK [20:07:48]requested_item fd.num is exist - process it [20:07:48]SAM_PROTO_GetFieldsCounters [20:07:48]wFMCommunicate request_size=4 [20:07:48]MH_SAM_APDU [20:07:48]CAPDU: 80 13 00 00 [20:07:48]Write to MH i2c: E2 08 00 8B 19 80 13 00 00 00 00 00 00 20 [20:07:48]Write i2c OK [20:07:48]MH_I2C_Read... [20:07:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:48]Read from MH i2c: E2 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 62 00 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 62 00 8B 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 87 02 00 0E 04 04 00 16 02 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 76 [20:07:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 87 02 00 0E 04 04 00 16 02 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:07:48]wFMCommunicate OK [20:07:48]SAM_PROTO_GetFieldsCounters done [20:07:48]requested_item shift.num is exist - process it [20:07:48]requested_item shift.opened is exist - process it [20:07:48]req_shift_opened [20:07:48]FM_GetShiftState [20:07:48]SAM_PROTO_GetShiftState [20:07:48]wFMCommunicate request_size=4 [20:07:48]MH_SAM_APDU [20:07:48]CAPDU: 80 13 01 00 [20:07:48]Write to MH i2c: E2 08 00 8C 19 80 13 01 00 00 00 00 00 22 [20:07:48]Write i2c OK [20:07:48]MH_I2C_Read... [20:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:48]Read from MH i2c: E2 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 0E 00 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 0E 00 8C 19 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6A [20:07:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:07:48]wFMCommunicate OK [20:07:48]SAM_PROTO_GetShiftState done [20:07:48]FM_GetShiftState done [20:07:48]req_shift_opened done [20:07:48]requested_item shift.open_date is exist - process it [20:07:48]req_shift_open_date [20:07:48]req_shift_open_date done [20:07:48]produce_requested_data done [20:07:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165837,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:07:48]process_action_free close_receipt [20:07:48]json_value_free [20:07:48]json_value_free done [20:07:48]process_json_proto returns [20:07:48]Send response to host [20:07:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165837,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:07:48]free response buf [20:07:48]execute_script done [20:07:48]execute_script returns [20:07:48]free content buf [20:07:48]Sock 5.Close socket [20:07:48]Sock 5.Thread stoped [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:15]accept exits with 6 [20:11:15]New connection [20:11:15]New thread 3066920292 created [20:11:15]Thread 3066776932 joined [20:11:15]Waiting for new connection... [20:11:15] Sock 6.Parse request [20:11:15]Sock 6.Check first char [20:11:15]Sock 6.First char is OK [20:11:15]request: POST /json_proto HTTP/1.0 [20:11:15]Method: POST [20:11:15]URL: /json_proto [20:11:15]Method is POST - this is cgi request [20:11:15]url: /json_proto [20:11:15]query_string will be loaded in cgi processing [20:11:15]execute_cgi json_proto POST (null) [20:11:15]execute_cgi path=json_proto method=POST [20:11:15]POST find Content-Length [20:11:15]Host: 172.17.53.195:8080 [20:11:15]Content-Length: 677 [20:11:15]Content-Type: application/json [20:11:15] [20:11:15]POST finish read [20:11:15]Found Content-Length = 677 [20:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:15]execute_script... [20:11: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)220406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:15]POST & json_proto [20:11:15]process_json_proto [20:11:15]json parsed OK: [20:11:15]protocol is kg_v1.0 [20:11:15]action value=close_receipt [20:11:15]process_action close_receipt [20:11:15]cmd_close_receipt [20:11:15]MH_GetDate [20:11:15]Write to MH i2c: F0 00 00 8D 19 95 [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: F0 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: F0 09 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: F0 09 00 8D 19 00 F2 63 15 67 21 48 4A 65 87 [20:11:15]GetLastDocTimeStamp 1729454878 [20:11:15]current date 1729455090 [20:11:15]FM_GetShiftState [20:11:15]SAM_PROTO_GetShiftState [20:11:15]wFMCommunicate request_size=4 [20:11:15]MH_SAM_APDU [20:11:15]CAPDU: 80 13 01 00 [20:11:15]Write to MH i2c: E2 08 00 8E 19 80 13 01 00 00 00 00 00 24 [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:15]Read from MH i2c: E2 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 0E 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 0E 00 8E 19 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6C [20:11:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:11:15]wFMCommunicate OK [20:11:15]SAM_PROTO_GetShiftState done [20:11:15]FM_GetShiftState done [20:11:15]opened in 1729384561 [20:11:15]opened+sec_in_day 1729470961 [20:11:15]quantity*price = 30038 [20:11:15]sum+1 = 30039 [20:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 320 20.10.2024 20:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165838 ФПД: 70622186931276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165838&fm=70622186931276&tin=02508201610067®Number=0000000000091764&sum=30000 [20:11:17]StoreToDocumentArchive [20:11:17]shift 534 fd 165838 [20:11:17]save to /storage/0534/doc_00165838 [20:11:17]save last doc name /storage/0534/doc_00165838 to /storage/kkm_last_doc_name [20:11:17]save OK [20:11:17]Clear old archive folders... [20:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:17]tlvbuf is 014B3000 [20:11:17]SAM_PROTO_ClearQueue [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 09 00 00 [20:11:17]Write to MH i2c: E2 08 00 9B 19 80 09 00 00 00 00 00 00 26 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [20:11:17]RAPDU: 90 00 [20:11:17]wFMCommunicate OK [20:11:17]SAM_PROTO_ClearQueue done [20:11:17]KKMCreateOFDPacket [20:11:17]OFDProtocolAddRootSTLVToBuf [20:11:17]FM_MakeSignedData [20:11:17]FM_MakeSignedData [20:11:17]SAM_PROTO_SignData [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 0D 01 02 [20:11:17]Write to MH i2c: E2 08 00 9C 19 80 0D 01 02 00 00 00 00 2E [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 9C 19 00 90 00 29 [20:11:17]RAPDU: 90 00 [20:11:17]wFMCommunicate OK [20:11:17]wFMCommunicate request_size=255 [20:11:17]MH_SAM_APDU [20:11: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 F2 63 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 87 02 00 35 04 06 00 40 [20:11:17]Write to MH i2c: E2 02 01 9D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 F2 63 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 87 02 00 35 04 06 00 40 00 00 79 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 9D 19 00 90 00 2A [20:11:17]RAPDU: 90 00 [20:11:17]wFMCommunicate OK [20:11:17]wFMCommunicate request_size=10 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 0D 02 02 05 3B 02 5D 84 4C [20:11:17]Write to MH i2c: E2 0D 00 9E 19 80 0D 02 02 05 00 3B 02 5D 84 4C 00 00 A5 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 9E 19 00 90 00 2B [20:11:17]RAPDU: 90 00 [20:11:17]wFMCommunicate OK [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 0D 03 02 [20:11:17]Write to MH i2c: E2 08 00 9F 19 80 0D 03 02 00 00 00 00 33 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 0B 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 0B 00 9F 19 00 D4 6C 60 D4 CB F7 7B D6 90 00 BB [20:11:17]RAPDU: D4 6C 60 D4 CB F7 7B D6 90 00 [20:11:17]wFMCommunicate OK [20:11:17]SAM_PROTO_SignData done [20:11:17]FM_MakeSignedData done [20:11:17]CreateOFDProtocolMessage [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 11 00 00 [20:11:17]Write to MH i2c: E2 08 00 A0 19 80 11 00 00 00 00 00 00 33 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]OFD Sender: No OFD packet to send [20:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 17 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 17 00 A0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [20:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:11:17]wFMCommunicate OK [20:11:17]CreateOFDProtocolMessage done [20:11:17]OFDSenderStorePacket 165838 [20:11:17]StoreOFDPacket docnum=165838 [20:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1D 5A 07 01 3C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 F2 63 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 87 02 00 35 04 06 00 40 3B 02 5D 84 4C D4 6C 60 D4 CB F7 7B D6 [20:11:17]CheckFolder [20:11:17]dirname=/storage/ofd_packets [20:11:17]CheckFolder done [20:11:17]ProducePacketName [20:11:17]name=ofd_packets/00165838 [20:11:17]NVStorageSaveData ofd_packets/00165838 [20:11:17]File name is /storage/ofd_packets/00165838 [20:11:17]Write 301 bytes [20:11:17]NVStorageSaveData done [20:11:17]OFDSenderStorePacket done [20:11:17]KKMCreateOFDPacket done [20:11:17]NVStorageSaveData kkm_last_timestamp [20:11:17]File name is /storage/kkm_last_timestamp [20:11:17]Write 4 bytes [20:11:17]NVStorageSaveData done [20:11:17]ExternCall_PrintAddStr [20:11:17]wPrintStart [20:11:17]Write to MH i2c: 01 00 00 A1 19 BA [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 07 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 07 00 A1 19 00 00 00 00 00 FF 0F CF [20:11:17]RasterBufferAndPrint [20:11:17]line Счет N : (1)220406 [20:11:17]line ИНН: 02508201610067 [20:11:17]line Контрольно-Кассовый Чек [20:11:17]line ПРОДАЖА [20:11:17]line ТРК (МРК, ГНК) : 33 [20:11:17]line Товар: 2710124130 [20:11:17]line Аи-92-К-5 [20:11:17]line 4.490 * 66.90 [20:11:17]line = 300.38 [20:11:17]line НДС 12% НСП 1% [20:11:17]line > о реализуемом товаре [20:11:17]line ОКРУГЛЕНИЕ: -0.38 [20:11:17]line ИТОГО: 300.00 [20:11:17]line Внесено: 300.00 [20:11:17]line СДАЧА: 0.00 [20:11:17]line НСП 1% : 2.66 [20:11:17]line НДС 12% : 31.90 [20:11:17]line Наличными: 300.00 [20:11:17]line Безнал.: 0.00 [20:11:17]line Место: АЗС № 161 "Партнер Нефть" [20:11:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:11:17]line СНО: Общий режим [20:11:17]line Чек 320 20.10.2024 20:11 [20:11:17]line Смена: 534 ФФД: 1.0 [20:11:17]line ЗНМ: 0300000104 [20:11:17]line РНМ: 0000000000091764 [20:11:17]line Версия ККМ: 001 [20:11:17]line ФМ: 0000000000871759 [20:11:17]line ФД: 165838 [20:11:17]line ФПД: 70622186931276 [20:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165838&fm=70622186931276&tin=02508201610067®Number=0000000000091764&sum=30000 [20:11:17]written 0, free lines is 4095 [20:11:17]OFD Sender: Processing packet 165838 [packets to send 48, broken 47] [20:11:17]ProducePacketName [20:11:17]name=ofd_packets/00165838 [20:11:17]OFD Sender: To server: pG, [20:11:17]CommunicateWithHost lk.salyk.kg:30040 [20:11:17]ConnectInit lk.salyk.kg [20:11:17]Connected sock=7 [20:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1D 5A 07 01 3C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 F2 63 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 87 02 00 35 04 06 00 40 3B 02 5D 84 4C D4 6C 60 D4 CB F7 7B D6 [20:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 B3 47 00 BB 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 87 02 00 F4 03 04 00 62 0A 15 67 B6 04 01 00 00 98 37 33 AD F7 54 F6 FD [20:11:17]CommunicateWithHost err = 0 [20:11:17]CheckOFDResponse [20:11:17]1017 (14) - 77093643461234 [20:11:17]1041 (16) - 0000000000871759 [20:11:17]1040 (4) - 165838 [20:11:17]1012 (4) - 20.10.2024 13:49 [20:11:17]1206 (1) - 0 [20:11:17]OFD Sender: Remove packet 165838 [20:11:17]ProducePacketName [20:11:17]name=ofd_packets/00165838 [20:11:17]NVStorageDeleteData [20:11:18]Write to MH i2c: 01 00 00 CC 19 E5 [20:11:18]Write i2c OK [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: 01 [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: 01 07 00 [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: 01 07 00 CC 19 00 00 00 00 00 CB 0C C3 [20:11:18]RasterBufferAndPrint [20:11:18]line [20:11:18]line [20:11:18]line [20:11:18]line [20:11:18]line [20:11:18]written 0, free lines is 3281 [20:11:18]MH_Cut [20:11:18]Write to MH i2c: D1 01 00 D3 19 01 BE [20:11:18]Write i2c OK [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: D1 [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: D1 01 00 [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: D1 01 00 D3 19 00 BD [20:11:18]Write to MH i2c: 01 00 00 D4 19 ED [20:11:18]Write i2c OK [20:11:18]MH_I2C_Read... [20:11:18]OFD Sender: No OFD packet to send [20:11:18]*** Cut start [20:11:18]*** Partial cut [20:11:18]*** CUTSNS_PIN = 1 [20:11:18]*** CUTSNS_PIN = 0 [20:11:19]*** Brake cut motor [20:11:19]Read from MH i2c: 01 [20:11:19]MH_I2C_Read... [20:11:19]*** Stop cut motor [20:11:19]*** Cut end [20:11:19]Read from MH i2c: 01 07 00 [20:11:19]MH_I2C_Read... [20:11:19]Read from MH i2c: 01 07 00 D4 19 00 00 00 00 00 FF 0F 02 [20:11:19]process_action close_receipt done [20:11:19]requested_data is exist [20:11:19]produce_requested_data [20:11:19]requested_item fm.sn is exist - process it [20:11:19]wFMCommunicate request_size=4 [20:11:19]MH_SAM_APDU [20:11:19]CAPDU: 80 11 00 00 [20:11:19]Write to MH i2c: E2 08 00 D5 19 80 11 00 00 00 00 00 00 68 [20:11:19]Write i2c OK [20:11:19]MH_I2C_Read... [20:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:19]Read from MH i2c: E2 [20:11:19]MH_I2C_Read... [20:11:19]Read from MH i2c: E2 17 00 [20:11:19]MH_I2C_Read... [20:11:19]Read from MH i2c: E2 17 00 D5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C0 [20:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:11:19]wFMCommunicate OK [20:11:19]requested_item fd.num is exist - process it [20:11:19]SAM_PROTO_GetFieldsCounters [20:11:19]wFMCommunicate request_size=4 [20:11:19]MH_SAM_APDU [20:11:19]CAPDU: 80 13 00 00 [20:11:19]Write to MH i2c: E2 08 00 D6 19 80 13 00 00 00 00 00 00 6B [20:11:19]Write i2c OK [20:11:19]MH_I2C_Read... [20:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:19]Read from MH i2c: E2 [20:11:19]MH_I2C_Read... [20:11:19]Read from MH i2c: E2 62 00 [20:11:19]MH_I2C_Read... [20:11:19]Read from MH i2c: E2 62 00 D6 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 87 02 00 0E 04 04 00 16 02 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 C5 [20:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 87 02 00 0E 04 04 00 16 02 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:11:19]wFMCommunicate OK [20:11:19]SAM_PROTO_GetFieldsCounters done [20:11:19]requested_item shift.num is exist - process it [20:11:19]requested_item shift.opened is exist - process it [20:11:19]req_shift_opened [20:11:19]FM_GetShiftState [20:11:19]SAM_PROTO_GetShiftState [20:11:19]wFMCommunicate request_size=4 [20:11:19]MH_SAM_APDU [20:11:19]CAPDU: 80 13 01 00 [20:11:19]Write to MH i2c: E2 08 00 D7 19 80 13 01 00 00 00 00 00 6D [20:11:19]Write i2c OK [20:11:19]MH_I2C_Read... [20:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:19]Read from MH i2c: E2 [20:11:19]MH_I2C_Read... [20:11:19]Read from MH i2c: E2 0E 00 [20:11:19]MH_I2C_Read... [20:11:19]Read from MH i2c: E2 0E 00 D7 19 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B5 [20:11:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:11:19]wFMCommunicate OK [20:11:19]SAM_PROTO_GetShiftState done [20:11:19]FM_GetShiftState done [20:11:19]req_shift_opened done [20:11:19]requested_item shift.open_date is exist - process it [20:11:19]req_shift_open_date [20:11:19]req_shift_open_date done [20:11:19]produce_requested_data done [20:11:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165838,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:11:19]process_action_free close_receipt [20:11:19]json_value_free [20:11:19]json_value_free done [20:11:19]process_json_proto returns [20:11:19]Send response to host [20:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165838,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:11:19]free response buf [20:11:19]execute_script done [20:11:19]execute_script returns [20:11:19]free content buf [20:11:19]Sock 6.Close socket [20:11:19]Sock 6.Thread stoped [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]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:09]accept exits with 5 [20:12:09]New connection [20:12:09]New thread 3066776932 created [20:12:09]Thread 3066920292 joined [20:12:09]Waiting for new connection... [20:12:09] Sock 5.Parse request [20:12:09]Sock 5.Check first char [20:12:09]Sock 5.First char is OK [20:12:09]request: POST /json_proto HTTP/1.0 [20:12:09]Method: POST [20:12:09]URL: /json_proto [20:12:09]Method is POST - this is cgi request [20:12:09]url: /json_proto [20:12:09]query_string will be loaded in cgi processing [20:12:09]execute_cgi json_proto POST (null) [20:12:09]execute_cgi path=json_proto method=POST [20:12:09]POST find Content-Length [20:12:09]Host: 172.17.53.195:8080 [20:12:09]Content-Length: 678 [20:12:09]Content-Type: application/json [20:12:09] [20:12:09]POST finish read [20:12:09]Found Content-Length = 678 [20:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:09]execute_script... [20: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)220407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:09]POST & json_proto [20:12:09]process_json_proto [20:12:09]json parsed OK: [20:12:09]protocol is kg_v1.0 [20:12:09]action value=close_receipt [20:12:09]process_action close_receipt [20:12:09]cmd_close_receipt [20:12:09]MH_GetDate [20:12:09]Write to MH i2c: F0 00 00 D8 19 E0 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: F0 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: F0 09 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: F0 09 00 D8 19 00 28 64 15 67 21 48 4A 65 09 [20:12:09]GetLastDocTimeStamp 1729455090 [20:12:09]current date 1729455144 [20:12:09]FM_GetShiftState [20:12:09]SAM_PROTO_GetShiftState [20:12:09]wFMCommunicate request_size=4 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 13 01 00 [20:12:09]Write to MH i2c: E2 08 00 D9 19 80 13 01 00 00 00 00 00 6F [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 0E 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 0E 00 D9 19 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B7 [20:12:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:12:09]wFMCommunicate OK [20:12:09]SAM_PROTO_GetShiftState done [20:12:09]FM_GetShiftState done [20:12:09]opened in 1729384561 [20:12:09]opened+sec_in_day 1729470961 [20:12:09]quantity*price = 80012 [20:12:09]sum+1 = 80013 [20:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 321 20.10.2024 20:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165839 ФПД: 133061638589521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201224&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165839&fm=133061638589521&tin=02508201610067®Number=0000000000091764&sum=80000 [20:12:11]StoreToDocumentArchive [20:12:11]shift 534 fd 165839 [20:12:11]save to /storage/0534/doc_00165839 [20:12:11]save last doc name /storage/0534/doc_00165839 to /storage/kkm_last_doc_name [20:12:11]save OK [20:12:11]Clear old archive folders... [20:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:11]tlvbuf is 01445630 [20:12:11]SAM_PROTO_ClearQueue [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 09 00 00 [20:12:11]Write to MH i2c: E2 08 00 E6 19 80 09 00 00 00 00 00 00 71 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [20:12:11]RAPDU: 90 00 [20:12:11]wFMCommunicate OK [20:12:11]SAM_PROTO_ClearQueue done [20:12:11]KKMCreateOFDPacket [20:12:11]OFDProtocolAddRootSTLVToBuf [20:12:11]FM_MakeSignedData [20:12:11]FM_MakeSignedData [20:12:11]SAM_PROTO_SignData [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 0D 01 02 [20:12:11]Write to MH i2c: E2 08 00 E7 19 80 0D 01 02 00 00 00 00 79 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [20:12:11]RAPDU: 90 00 [20:12:11]wFMCommunicate OK [20:12:11]wFMCommunicate request_size=255 [20:12:11]MH_SAM_APDU [20: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 41 01 00 00 F4 03 04 00 28 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 87 02 00 35 04 06 00 79 [20:12:11]Write to MH i2c: E2 02 01 E8 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 41 01 00 00 F4 03 04 00 28 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 87 02 00 35 04 06 00 79 00 00 2E [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 E8 19 00 90 00 75 [20:12:11]RAPDU: 90 00 [20:12:11]wFMCommunicate OK [20:12:11]wFMCommunicate request_size=10 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 0D 02 02 05 04 D3 B3 8C 51 [20:12:11]Write to MH i2c: E2 0D 00 E9 19 80 0D 02 02 05 00 04 D3 B3 8C 51 00 00 ED [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 E9 19 00 90 00 76 [20:12:11]RAPDU: 90 00 [20:12:11]wFMCommunicate OK [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 0D 03 02 [20:12:11]Write to MH i2c: E2 08 00 EA 19 80 0D 03 02 00 00 00 00 7E [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 0B 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 0B 00 EA 19 00 8E 81 07 B5 61 BD D8 8D 90 00 CD [20:12:11]RAPDU: 8E 81 07 B5 61 BD D8 8D 90 00 [20:12:11]wFMCommunicate OK [20:12:11]SAM_PROTO_SignData done [20:12:11]FM_MakeSignedData done [20:12:11]CreateOFDProtocolMessage [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 11 00 00 [20:12:11]Write to MH i2c: E2 08 00 EB 19 80 11 00 00 00 00 00 00 7E [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 17 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 17 00 EB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D6 [20:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:12:11]wFMCommunicate OK [20:12:11]CreateOFDProtocolMessage done [20:12:11]OFDSenderStorePacket 165839 [20:12:11]StoreOFDPacket docnum=165839 [20:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BA 8C 07 01 D5 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 41 01 00 00 F4 03 04 00 28 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 87 02 00 35 04 06 00 79 04 D3 B3 8C 51 8E 81 07 B5 61 BD D8 8D [20:12:11]CheckFolder [20:12:11]dirname=/storage/ofd_packets [20:12:11]CheckFolder done [20:12:11]ProducePacketName [20:12:11]name=ofd_packets/00165839 [20:12:11]NVStorageSaveData ofd_packets/00165839 [20:12:11]File name is /storage/ofd_packets/00165839 [20:12:11]Write 301 bytes [20:12:11]NVStorageSaveData done [20:12:11]OFDSenderStorePacket done [20:12:11]KKMCreateOFDPacket done [20:12:11]NVStorageSaveData kkm_last_timestamp [20:12:11]File name is /storage/kkm_last_timestamp [20:12:11]Write 4 bytes [20:12:11]NVStorageSaveData done [20:12:11]ExternCall_PrintAddStr [20:12:11]wPrintStart [20:12:11]Write to MH i2c: 01 00 00 EC 19 05 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 07 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 07 00 EC 19 00 00 00 00 00 FF 0F 1A [20:12:11]RasterBufferAndPrint [20:12:11]line Счет N : (1)220407 [20:12:11]line ИНН: 02508201610067 [20:12:11]line Контрольно-Кассовый Чек [20:12:11]line ПРОДАЖА [20:12:11]line ТРК (МРК, ГНК) : 43 [20:12:11]line Товар: 2710124130 [20:12:11]line Аи-92-К-5 [20:12:11]line 11.960 * 66.90 [20:12:11]line = 800.12 [20:12:11]line НДС 12% НСП 1% [20:12:11]line > о реализуемом товаре [20:12:11]line ОКРУГЛЕНИЕ: -0.12 [20:12:11]line ИТОГО: 800.00 [20:12:11]line Внесено: 800.00 [20:12:11]line СДАЧА: 0.00 [20:12:11]line НСП 1% : 7.08 [20:12:11]line НДС 12% : 84.97 [20:12:11]line Наличными: 800.00 [20:12:11]line Безнал.: 0.00 [20:12:11]line Место: АЗС № 161 "Партнер Нефть" [20:12:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:12:11]line СНО: Общий режим [20:12:11]line Чек 321 20.10.2024 20:12 [20:12:11]line Смена: 534 ФФД: 1.0 [20:12:11]line ЗНМ: 0300000104 [20:12:11]line РНМ: 0000000000091764 [20:12:11]line Версия ККМ: 001 [20:12:11]line ФМ: 0000000000871759 [20:12:11]line ФД: 165839 [20:12:11]line ФПД: 133061638589521 [20:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201224&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165839&fm=133061638589521&tin=02508201610067®Number=0000000000091764&sum=80000 [20:12:11]OFD Sender: Processing packet 165839 [packets to send 48, broken 47] [20:12:11]ProducePacketName [20:12:11]name=ofd_packets/00165839 [20:12:11]OFD Sender: To server: pG, [20:12:11]CommunicateWithHost lk.salyk.kg:30040 [20:12:11]ConnectInit lk.salyk.kg [20:12:11]written 0, free lines is 4095 [20:12:11]Connected sock=7 [20: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 31 37 35 39 0F 01 00 00 BA 8C 07 01 D5 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 41 01 00 00 F4 03 04 00 28 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 87 02 00 35 04 06 00 79 04 D3 B3 8C 51 8E 81 07 B5 61 BD D8 8D [20:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9B 4C 47 00 9B 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 31 37 35 39 10 04 04 00 CF 87 02 00 F4 03 04 00 98 0A 15 67 B6 04 01 00 00 2F B4 8A 46 5E DB F5 AD [20:12:12]CommunicateWithHost err = 0 [20:12:12]CheckOFDResponse [20:12:12]1017 (14) - 77093643461234 [20:12:12]1041 (16) - 0000000000871759 [20:12:12]1040 (4) - 165839 [20:12:12]1012 (4) - 20.10.2024 13:50 [20:12:12]1206 (1) - 0 [20:12:12]OFD Sender: Remove packet 165839 [20:12:12]ProducePacketName [20:12:12]name=ofd_packets/00165839 [20:12:12]NVStorageDeleteData [20:12:12]Write to MH i2c: 01 00 00 17 1A 31 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 17 1A 00 00 00 00 00 C0 0C 04 [20:12:12]RasterBufferAndPrint [20:12:12]line [20:12:12]line [20:12:12]line [20:12:12]line [20:12:12]line [20:12:12]written 0, free lines is 3270 [20:12:12]MH_Cut [20:12:12]Write to MH i2c: D1 01 00 1E 1A 01 0A [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: D1 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: D1 01 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: D1 01 00 1E 1A 00 09 [20:12:12]Write to MH i2c: 01 00 00 1F 1A 39 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]OFD Sender: No OFD packet to send [20:12:13]*** Cut start [20:12:13]*** Partial cut [20:12:13]*** CUTSNS_PIN = 1 [20:12:13]*** CUTSNS_PIN = 0 [20:12:13]*** Brake cut motor [20:12:13]Read from MH i2c: 01 [20:12:13]MH_I2C_Read... [20:12:13]*** Stop cut motor [20:12:13]*** Cut end [20:12:13]Read from MH i2c: 01 07 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: 01 07 00 1F 1A 00 00 00 00 00 FF 0F 4E [20:12:13]process_action close_receipt done [20:12:13]requested_data is exist [20:12:13]produce_requested_data [20:12:13]requested_item fm.sn is exist - process it [20:12:13]wFMCommunicate request_size=4 [20:12:13]MH_SAM_APDU [20:12:13]CAPDU: 80 11 00 00 [20:12:13]Write to MH i2c: E2 08 00 20 1A 80 11 00 00 00 00 00 00 B4 [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:13]Read from MH i2c: E2 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 17 00 [20:12:13]MH_I2C_Read... [20:12:13]Read from MH i2c: E2 17 00 20 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0C [20:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:12:13]wFMCommunicate OK [20:12:13]requested_item fd.num is exist - process it [20:12:13]SAM_PROTO_GetFieldsCounters [20:12:13]wFMCommunicate request_size=4 [20:12:13]MH_SAM_APDU [20:12:13]CAPDU: 80 13 00 00 [20:12:13]Write to MH i2c: E2 08 00 21 1A 80 13 00 00 00 00 00 00 B7 [20:12:13]Write i2c OK [20:12:13]MH_I2C_Read... [20:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:14]Read from MH i2c: E2 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 62 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 62 00 21 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 87 02 00 0E 04 04 00 16 02 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 15 [20:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 87 02 00 0E 04 04 00 16 02 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:12:14]wFMCommunicate OK [20:12:14]SAM_PROTO_GetFieldsCounters done [20:12:14]requested_item shift.num is exist - process it [20:12:14]requested_item shift.opened is exist - process it [20:12:14]req_shift_opened [20:12:14]FM_GetShiftState [20:12:14]SAM_PROTO_GetShiftState [20:12:14]wFMCommunicate request_size=4 [20:12:14]MH_SAM_APDU [20:12:14]CAPDU: 80 13 01 00 [20:12:14]Write to MH i2c: E2 08 00 22 1A 80 13 01 00 00 00 00 00 B9 [20:12:14]Write i2c OK [20:12:14]MH_I2C_Read... [20:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:14]Read from MH i2c: E2 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 0E 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 0E 00 22 1A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 01 [20:12:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:12:14]wFMCommunicate OK [20:12:14]SAM_PROTO_GetShiftState done [20:12:14]FM_GetShiftState done [20:12:14]req_shift_opened done [20:12:14]requested_item shift.open_date is exist - process it [20:12:14]req_shift_open_date [20:12:14]req_shift_open_date done [20:12:14]produce_requested_data done [20:12:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165839,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:12:14]process_action_free close_receipt [20:12:14]json_value_free [20:12:14]json_value_free done [20:12:14]process_json_proto returns [20:12:14]Send response to host [20:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165839,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:12:14]free response buf [20:12:14]execute_script done [20:12:14]execute_script returns [20:12:14]free content buf [20:12:14]Sock 5.Close socket [20:12:14]Sock 5.Thread stoped [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:01]accept exits with 6 [20:13:01]New connection [20:13:01]New thread 3066920292 created [20:13:01]Thread 3066776932 joined [20:13:01]Waiting for new connection... [20:13:01] Sock 6.Parse request [20:13:01]Sock 6.Check first char [20:13:01]Sock 6.First char is OK [20:13:01]request: POST /json_proto HTTP/1.0 [20:13:01]Method: POST [20:13:01]URL: /json_proto [20:13:01]Method is POST - this is cgi request [20:13:01]url: /json_proto [20:13:01]query_string will be loaded in cgi processing [20:13:01]execute_cgi json_proto POST (null) [20:13:01]execute_cgi path=json_proto method=POST [20:13:01]POST find Content-Length [20:13:01]Host: 172.17.53.195:8080 [20:13:01]Content-Length: 682 [20:13:01]Content-Type: application/json [20:13:01] [20:13:01]POST finish read [20:13:01]Found Content-Length = 682 [20:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" ] } } [20:13:01]execute_script... [20:13: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)220408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" ] } } [20:13:01]POST & json_proto [20:13:01]process_json_proto [20:13:01]json parsed OK: [20:13:01]protocol is kg_v1.0 [20:13:01]action value=close_receipt [20:13:01]process_action close_receipt [20:13:01]cmd_close_receipt [20:13:01]MH_GetDate [20:13:01]Write to MH i2c: F0 00 00 23 1A 2C [20:13:01]Write i2c OK [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: F0 [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: F0 09 00 [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: F0 09 00 23 1A 00 5B 64 15 67 21 48 4A 65 88 [20:13:01]GetLastDocTimeStamp 1729455144 [20:13:01]current date 1729455195 [20:13:01]FM_GetShiftState [20:13:01]SAM_PROTO_GetShiftState [20:13:01]wFMCommunicate request_size=4 [20:13:01]MH_SAM_APDU [20:13:01]CAPDU: 80 13 01 00 [20:13:01]Write to MH i2c: E2 08 00 24 1A 80 13 01 00 00 00 00 00 BB [20:13:01]Write i2c OK [20:13:01]MH_I2C_Read... [20:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:01]Read from MH i2c: E2 [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: E2 0E 00 [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: E2 0E 00 24 1A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 03 [20:13:01]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:13:01]wFMCommunicate OK [20:13:01]SAM_PROTO_GetShiftState done [20:13:01]FM_GetShiftState done [20:13:01]opened in 1729384561 [20:13:01]opened+sec_in_day 1729470961 [20:13:01]quantity*price = 300064 [20:13:01]sum+1 = 300066 [20:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 322 20.10.2024 20:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165840 ФПД: 78092419923773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165840&fm=78092419923773&tin=02508201610067®Number=0000000000091764&sum=300000 [20:13:02]StoreToDocumentArchive [20:13:02]shift 534 fd 165840 [20:13:02]save to /storage/0534/doc_00165840 [20:13:02]save last doc name /storage/0534/doc_00165840 to /storage/kkm_last_doc_name [20:13:02]save OK [20:13:02]Clear old archive folders... [20:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:02]tlvbuf is 0186AD00 [20:13:02]SAM_PROTO_ClearQueue [20:13:02]wFMCommunicate request_size=4 [20:13:02]MH_SAM_APDU [20:13:02]CAPDU: 80 09 00 00 [20:13:02]Write to MH i2c: E2 08 00 31 1A 80 09 00 00 00 00 00 00 BD [20:13:02]Write i2c OK [20:13:02]MH_I2C_Read... [20:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:02]Read from MH i2c: E2 [20:13:02]MH_I2C_Read... [20:13:02]Read from MH i2c: E2 03 00 [20:13:02]MH_I2C_Read... [20:13:02]Read from MH i2c: E2 03 00 31 1A 00 90 00 BF [20:13:02]RAPDU: 90 00 [20:13:02]wFMCommunicate OK [20:13:02]SAM_PROTO_ClearQueue done [20:13:02]KKMCreateOFDPacket [20:13:02]OFDProtocolAddRootSTLVToBuf [20:13:02]FM_MakeSignedData [20:13:02]FM_MakeSignedData [20:13:02]SAM_PROTO_SignData [20:13:02]wFMCommunicate request_size=4 [20:13:02]MH_SAM_APDU [20:13:02]CAPDU: 80 0D 01 02 [20:13:02]Write to MH i2c: E2 08 00 32 1A 80 0D 01 02 00 00 00 00 C5 [20:13:02]Write i2c OK [20:13:02]MH_I2C_Read... [20:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:02]Read from MH i2c: E2 [20:13:02]MH_I2C_Read... [20:13:02]Read from MH i2c: E2 03 00 [20:13:02]MH_I2C_Read... [20:13:02]Read from MH i2c: E2 03 00 32 1A 00 90 00 C0 [20:13:02]RAPDU: 90 00 [20:13:02]wFMCommunicate OK [20:13:02]wFMCommunicate request_size=255 [20:13:02]MH_SAM_APDU [20:13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 42 01 00 00 F4 03 04 00 5B 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 87 02 00 35 04 06 00 47 [20:13:02]Write to MH i2c: E2 02 01 33 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 42 01 00 00 F4 03 04 00 5B 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 87 02 00 35 04 06 00 47 00 00 C2 [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 03 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 03 00 33 1A 00 90 00 C1 [20:13:03]RAPDU: 90 00 [20:13:03]wFMCommunicate OK [20:13:03]wFMCommunicate request_size=10 [20:13:03]MH_SAM_APDU [20:13:03]CAPDU: 80 0D 02 02 05 06 4E F2 FF 3D [20:13:03]Write to MH i2c: E2 0D 00 34 1A 80 0D 02 02 05 00 06 4E F2 FF 3D 00 00 54 [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 03 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 03 00 34 1A 00 90 00 C2 [20:13:03]RAPDU: 90 00 [20:13:03]wFMCommunicate OK [20:13:03]wFMCommunicate request_size=4 [20:13:03]MH_SAM_APDU [20:13:03]CAPDU: 80 0D 03 02 [20:13:03]Write to MH i2c: E2 08 00 35 1A 80 0D 03 02 00 00 00 00 CA [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 0B 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 0B 00 35 1A 00 AF B9 C2 2E BB 0E 11 71 90 00 6E [20:13:03]RAPDU: AF B9 C2 2E BB 0E 11 71 90 00 [20:13:03]wFMCommunicate OK [20:13:03]SAM_PROTO_SignData done [20:13:03]FM_MakeSignedData done [20:13:03]CreateOFDProtocolMessage [20:13:03]wFMCommunicate request_size=4 [20:13:03]MH_SAM_APDU [20:13:03]CAPDU: 80 11 00 00 [20:13:03]Write to MH i2c: E2 08 00 36 1A 80 11 00 00 00 00 00 00 CA [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 17 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 17 00 36 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [20:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:13:03]wFMCommunicate OK [20:13:03]CreateOFDProtocolMessage done [20:13:03]OFDSenderStorePacket 165840 [20:13:03]StoreOFDPacket docnum=165840 [20:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 61 07 01 47 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 42 01 00 00 F4 03 04 00 5B 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 87 02 00 35 04 06 00 47 06 4E F2 FF 3D AF B9 C2 2E BB 0E 11 71 [20:13:03]CheckFolder [20:13:03]dirname=/storage/ofd_packets [20:13:03]CheckFolder done [20:13:03]ProducePacketName [20:13:03]name=ofd_packets/00165840 [20:13:03]NVStorageSaveData ofd_packets/00165840 [20:13:03]File name is /storage/ofd_packets/00165840 [20:13:03]Write 301 bytes [20:13:03]NVStorageSaveData done [20:13:03]OFDSenderStorePacket done [20:13:03]KKMCreateOFDPacket done [20:13:03]NVStorageSaveData kkm_last_timestamp [20:13:03]File name is /storage/kkm_last_timestamp [20:13:03]Write 4 bytes [20:13:03]NVStorageSaveData done [20:13:03]ExternCall_PrintAddStr [20:13:03]wPrintStart [20:13:03]Write to MH i2c: 01 00 00 37 1A 51 [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 07 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 07 00 37 1A 00 00 00 00 00 FF 0F 66 [20:13:03]RasterBufferAndPrint [20:13:03]line Счет N : (1)220408 [20:13:03]line ИНН: 02508201610067 [20:13:03]line Контрольно-Кассовый Чек [20:13:03]line ПРОДАЖА [20:13:03]line ТРК (МРК, ГНК) : 24 [20:13:03]line Товар: 2710124500 [20:13:03]line Аи-95-К-5 [20:13:03]line 40.440 * 74.20 [20:13:03]line = 3000.65 [20:13:03]line НДС 12% НСП 1% [20:13:03]line > о реализуемом товаре [20:13:03]line ОКРУГЛЕНИЕ: -0.65 [20:13:03]line ИТОГО: 3000.00 [20:13:03]line Внесено: 3000.00 [20:13:03]line СДАЧА: 0.00 [20:13:03]line НСП 1% : 26.55 [20:13:03]line НДС 12% : 318.65 [20:13:03]line Наличными: 3000.00 [20:13:03]line Безнал.: 0.00 [20:13:03]line Место: АЗС № 161 "Партнер Нефть" [20:13:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:13:03]line СНО: Общий режим [20:13:03]line Чек 322 20.10.2024 20:13 [20:13:03]line Смена: 534 ФФД: 1.0 [20:13:03]line ЗНМ: 0300000104 [20:13:03]line РНМ: 0000000000091764 [20:13:03]line Версия ККМ: 001 [20:13:03]line ФМ: 0000000000871759 [20:13:03]line ФД: 165840 [20:13:03]line ФПД: 78092419923773 [20:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165840&fm=78092419923773&tin=02508201610067®Number=0000000000091764&sum=300000 [20:13:03]written 0, free lines is 4095 [20:13:03]OFD Sender: Processing packet 165840 [packets to send 48, broken 47] [20:13:03]ProducePacketName [20:13:03]name=ofd_packets/00165840 [20:13:03]OFD Sender: To server: pG, [20:13:03]CommunicateWithHost lk.salyk.kg:30040 [20:13:03]ConnectInit lk.salyk.kg [20:13:03]Connected sock=7 [20:13:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 61 07 01 47 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 42 01 00 00 F4 03 04 00 5B 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 87 02 00 35 04 06 00 47 06 4E F2 FF 3D AF B9 C2 2E BB 0E 11 71 [20:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F4 08 47 00 EF 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 31 37 35 39 10 04 04 00 D0 87 02 00 F4 03 04 00 CC 0A 15 67 B6 04 01 00 00 FB 2F CE 3E B5 3F 4B 0C [20:13:03]CommunicateWithHost err = 0 [20:13:03]CheckOFDResponse [20:13:03]1017 (14) - 77093643461234 [20:13:03]1041 (16) - 0000000000871759 [20:13:03]1040 (4) - 165840 [20:13:03]1012 (4) - 20.10.2024 13:51 [20:13:03]1206 (1) - 0 [20:13:03]OFD Sender: Remove packet 165840 [20:13:03]ProducePacketName [20:13:03]name=ofd_packets/00165840 [20:13:03]NVStorageDeleteData [20:13:03]Write to MH i2c: 01 00 00 62 1A 7C [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 07 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 07 00 62 1A 00 00 00 00 00 C9 0C 58 [20:13:03]RasterBufferAndPrint [20:13:03]line [20:13:03]line [20:13:03]line [20:13:03]line [20:13:03]line [20:13:03]written 0, free lines is 3279 [20:13:03]MH_Cut [20:13:03]Write to MH i2c: D1 01 00 69 1A 01 55 [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: D1 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: D1 01 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: D1 01 00 69 1A 00 54 [20:13:03]Write to MH i2c: 01 00 00 6A 1A 84 [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:04]OFD Sender: No OFD packet to send [20:13:04]*** Cut start [20:13:04]*** Partial cut [20:13:04]*** CUTSNS_PIN = 1 [20:13:04]*** CUTSNS_PIN = 0 [20:13:05]*** Brake cut motor [20:13:05]Read from MH i2c: 01 [20:13:05]MH_I2C_Read... [20:13:05]*** Stop cut motor [20:13:05]*** Cut end [20:13:05]Read from MH i2c: 01 07 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 07 00 6A 1A 00 00 00 00 00 FF 0F 99 [20:13:05]process_action close_receipt done [20:13:05]requested_data is exist [20:13:05]produce_requested_data [20:13:05]requested_item fm.sn is exist - process it [20:13:05]wFMCommunicate request_size=4 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 11 00 00 [20:13:05]Write to MH i2c: E2 08 00 6B 1A 80 11 00 00 00 00 00 00 FF [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 17 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 17 00 6B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [20:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:13:05]wFMCommunicate OK [20:13:05]requested_item fd.num is exist - process it [20:13:05]SAM_PROTO_GetFieldsCounters [20:13:05]wFMCommunicate request_size=4 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 13 00 00 [20:13:05]Write to MH i2c: E2 08 00 6C 1A 80 13 00 00 00 00 00 00 02 [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 62 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 62 00 6C 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 87 02 00 0E 04 04 00 16 02 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 64 [20:13:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 87 02 00 0E 04 04 00 16 02 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:13:05]wFMCommunicate OK [20:13:05]SAM_PROTO_GetFieldsCounters done [20:13:05]requested_item shift.num is exist - process it [20:13:05]requested_item shift.opened is exist - process it [20:13:05]req_shift_opened [20:13:05]FM_GetShiftState [20:13:05]SAM_PROTO_GetShiftState [20:13:05]wFMCommunicate request_size=4 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 13 01 00 [20:13:05]Write to MH i2c: E2 08 00 6D 1A 80 13 01 00 00 00 00 00 04 [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 0E 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 0E 00 6D 1A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4C [20:13:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:13:05]wFMCommunicate OK [20:13:05]SAM_PROTO_GetShiftState done [20:13:05]FM_GetShiftState done [20:13:05]req_shift_opened done [20:13:05]requested_item shift.open_date is exist - process it [20:13:05]req_shift_open_date [20:13:05]req_shift_open_date done [20:13:05]produce_requested_data done [20:13:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165840,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:13:05]process_action_free close_receipt [20:13:05]json_value_free [20:13:05]json_value_free done [20:13:05]process_json_proto returns [20:13:05]Send response to host [20:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165840,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:13:05]free response buf [20:13:05]execute_script done [20:13:05]execute_script returns [20:13:05]free content buf [20:13:05]Sock 6.Close socket [20:13:05]Sock 6.Thread stoped [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:23]accept exits with 5 [20:13:23]New connection [20:13:23]New thread 3066776932 created [20:13:23]Thread 3066920292 joined [20:13:23]Waiting for new connection... [20:13:23] Sock 5.Parse request [20:13:23]Sock 5.Check first char [20:13:23]Sock 5.First char is OK [20:13:23]request: POST /json_proto HTTP/1.0 [20:13:23]Method: POST [20:13:23]URL: /json_proto [20:13:23]Method is POST - this is cgi request [20:13:23]url: /json_proto [20:13:23]query_string will be loaded in cgi processing [20:13:23]execute_cgi json_proto POST (null) [20:13:23]execute_cgi path=json_proto method=POST [20:13:23]POST find Content-Length [20:13:23]Host: 172.17.53.195:8080 [20:13:23]Content-Length: 766 [20:13:23]Content-Type: application/json [20:13:23] [20:13:23]POST finish read [20:13:23]Found Content-Length = 766 [20:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220409", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:23]execute_script... [20:13: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)220409", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:23]POST & json_proto [20:13:23]process_json_proto [20:13:23]json parsed OK: [20:13:23]protocol is kg_v1.0 [20:13:23]action value=close_receipt [20:13:23]process_action close_receipt [20:13:23]cmd_close_receipt [20:13:23]MH_GetDate [20:13:23]Write to MH i2c: F0 00 00 6E 1A 77 [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: F0 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: F0 09 00 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: F0 09 00 6E 1A 00 71 64 15 67 21 48 4A 65 E9 [20:13:23]GetLastDocTimeStamp 1729455195 [20:13:23]current date 1729455217 [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 6F 1A 80 13 01 00 00 00 00 00 06 [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 6F 1A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4E [20:13:23]RAPDU: 09 00 01 71 50 14 67 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]opened in 1729384561 [20:13:23]opened+sec_in_day 1729470961 [20:13:23]quantity*price = 200025 [20:13:23]sum+1 = 200026 [20:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 323 20.10.2024 20:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165841 ФПД: 146862533390027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201337&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165841&fm=146862533390027&tin=02508201610067®Number=0000000000091764&sum=200025 [20:13:24]StoreToDocumentArchive [20:13:24]shift 534 fd 165841 [20:13:24]save to /storage/0534/doc_00165841 [20:13:24]save last doc name /storage/0534/doc_00165841 to /storage/kkm_last_doc_name [20:13:24]save OK [20:13:24]Clear old archive folders... [20:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:13:24]tlvbuf is 0186B1B0 [20:13:24]SAM_PROTO_ClearQueue [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 09 00 00 [20:13:24]Write to MH i2c: E2 08 00 7C 1A 80 09 00 00 00 00 00 00 08 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 7C 1A 00 90 00 0A [20:13:24]RAPDU: 90 00 [20:13:24]wFMCommunicate OK [20:13:24]SAM_PROTO_ClearQueue done [20:13:24]KKMCreateOFDPacket [20:13:24]OFDProtocolAddRootSTLVToBuf [20:13:24]FM_MakeSignedData [20:13:24]FM_MakeSignedData [20:13:24]SAM_PROTO_SignData [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 0D 01 02 [20:13:24]Write to MH i2c: E2 08 00 7D 1A 80 0D 01 02 00 00 00 00 10 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 7D 1A 00 90 00 0B [20:13:24]RAPDU: 90 00 [20:13:24]wFMCommunicate OK [20:13:24]wFMCommunicate request_size=255 [20:13:24]MH_SAM_APDU [20:13: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 71 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 87 02 00 35 04 06 00 85 92 19 22 [20:13:24]Write to MH i2c: E2 02 01 7E 1A 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 71 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 87 02 00 35 04 06 00 85 92 19 22 00 00 15 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 7E 1A 00 90 00 0C [20:13:24]RAPDU: 90 00 [20:13:24]wFMCommunicate OK [20:13:24]wFMCommunicate request_size=7 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 0D 02 02 02 2E CB [20:13:24]Write to MH i2c: E2 0A 00 7F 1A 80 0D 02 02 02 00 2E CB 00 00 10 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 7F 1A 00 90 00 0D [20:13:24]RAPDU: 90 00 [20:13:24]wFMCommunicate OK [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 0D 03 02 [20:13:24]Write to MH i2c: E2 08 00 80 1A 80 0D 03 02 00 00 00 00 15 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 0B 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 0B 00 80 1A 00 41 F5 EA EF 65 82 DA 46 90 00 2C [20:13:24]RAPDU: 41 F5 EA EF 65 82 DA 46 90 00 [20:13:24]wFMCommunicate OK [20:13:24]SAM_PROTO_SignData done [20:13:24]FM_MakeSignedData done [20:13:24]CreateOFDProtocolMessage [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 11 00 00 [20:13:24]Write to MH i2c: E2 08 00 81 1A 80 11 00 00 00 00 00 00 15 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:25]Read from MH i2c: E2 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: E2 17 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: E2 17 00 81 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [20:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:13:25]wFMCommunicate OK [20:13:25]CreateOFDProtocolMessage done [20:13:25]OFDSenderStorePacket 165841 [20:13:25]StoreOFDPacket docnum=165841 [20:13:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DA F1 04 01 79 91 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 71 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 87 02 00 35 04 06 00 85 92 19 22 2E CB 41 F5 EA EF 65 82 DA 46 [20:13:25]CheckFolder [20:13:25]dirname=/storage/ofd_packets [20:13:25]CheckFolder done [20:13:25]ProducePacketName [20:13:25]name=ofd_packets/00165841 [20:13:25]NVStorageSaveData ofd_packets/00165841 [20:13:25]File name is /storage/ofd_packets/00165841 [20:13:25]Write 298 bytes [20:13:25]NVStorageSaveData done [20:13:25]OFDSenderStorePacket done [20:13:25]KKMCreateOFDPacket done [20:13:25]NVStorageSaveData kkm_last_timestamp [20:13:25]File name is /storage/kkm_last_timestamp [20:13:25]Write 4 bytes [20:13:25]NVStorageSaveData done [20:13:25]ExternCall_PrintAddStr [20:13:25]wPrintStart [20:13:25]Write to MH i2c: 01 00 00 82 1A 9C [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 82 1A 00 00 00 00 00 FF 0F B1 [20:13:25]RasterBufferAndPrint [20:13:25]line Счет N : (1)220409 [20:13:25]line ИНН: 02508201610067 [20:13:25]line Контрольно-Кассовый Чек [20:13:25]line ПРОДАЖА [20:13:25]line ТРК (МРК, ГНК) : 11 [20:13:25]line Товар: 2710194210 [20:13:25]line ДТ-К-5 [20:13:25]line 26.250 * 76.20 [20:13:25]line = 2000.25 [20:13:25]line НДС 12% НСП 1% [20:13:25]line > о реализуемом товаре [20:13:25]line ИТОГО: 2000.25 [20:13:25]line НСП 1% : 17.70 [20:13:25]line НДС 12% : 212.42 [20:13:25]line Наличными: 0.00 [20:13:25]line Безнал.: 2000.25 [20:13:25]line Место: АЗС № 161 "Партнер Нефть" [20:13:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:13:25]line СНО: Общий режим [20:13:25]line Чек 323 20.10.2024 20:13 [20:13:25]line Смена: 534 ФФД: 1.0 [20:13:25]line ЗНМ: 0300000104 [20:13:25]line РНМ: 0000000000091764 [20:13:25]line Версия ККМ: 001 [20:13:25]line Платежная система: Mbank [20:13:25]line ФМ: 0000000000871759 [20:13:25]line ФД: 165841 [20:13:25]line ФПД: 146862533390027 [20:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201337&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165841&fm=146862533390027&tin=02508201610067®Number=0000000000091764&sum=200025 [20:13:25]OFD Sender: Processing packet 165841 [packets to send 48, broken 47] [20:13:25]ProducePacketName [20:13:25]name=ofd_packets/00165841 [20:13:25]OFD Sender: To server: pG, [20:13:25]CommunicateWithHost lk.salyk.kg:30040 [20:13:25]ConnectInit lk.salyk.kg [20:13:25]written 0, free lines is 4095 [20:13:25]Connected sock=9 [20:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DA F1 04 01 79 91 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 71 64 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 87 02 00 35 04 06 00 85 92 19 22 2E CB 41 F5 EA EF 65 82 DA 46 [20:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C8 1F 47 00 BF 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 31 37 35 39 10 04 04 00 D1 87 02 00 F4 03 04 00 E2 0A 15 67 B6 04 01 00 00 C1 4E 5D 77 D7 E4 53 B3 [20:13:25]CommunicateWithHost err = 0 [20:13:25]CheckOFDResponse [20:13:25]1017 (14) - 77093643461234 [20:13:25]1041 (16) - 0000000000871759 [20:13:25]1040 (4) - 165841 [20:13:25]1012 (4) - 20.10.2024 13:51 [20:13:25]1206 (1) - 0 [20:13:25]OFD Sender: Remove packet 165841 [20:13:25]ProducePacketName [20:13:25]name=ofd_packets/00165841 [20:13:25]NVStorageDeleteData [20:13:25]Write to MH i2c: 01 00 00 AB 1A C5 [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 AB 1A 00 00 00 00 00 F2 0C CA [20:13:25]RasterBufferAndPrint [20:13:25]line [20:13:25]line [20:13:25]line [20:13:25]line [20:13:25]line [20:13:25]written 0, free lines is 3319 [20:13:25]MH_Cut [20:13:25]Write to MH i2c: D1 01 00 B2 1A 01 9E [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: D1 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: D1 01 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: D1 01 00 B2 1A 00 9D [20:13:25]Write to MH i2c: 01 00 00 B3 1A CD [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:26]OFD Sender: No OFD packet to send [20:13:26]*** Cut start [20:13:26]*** Partial cut [20:13:26]*** CUTSNS_PIN = 1 [20:13:26]*** CUTSNS_PIN = 0 [20:13:26]*** Brake cut motor [20:13:27]Read from MH i2c: 01 [20:13:27]MH_I2C_Read... [20:13:27]*** Stop cut motor [20:13:27]*** Cut end [20:13:27]Read from MH i2c: 01 07 00 [20:13:27]MH_I2C_Read... [20:13:27]Read from MH i2c: 01 07 00 B3 1A 00 00 00 00 00 FF 0F E2 [20:13:27]process_action close_receipt done [20:13:27]requested_data is exist [20:13:27]produce_requested_data [20:13:27]requested_item fm.sn is exist - process it [20:13:27]wFMCommunicate request_size=4 [20:13:27]MH_SAM_APDU [20:13:27]CAPDU: 80 11 00 00 [20:13:27]Write to MH i2c: E2 08 00 B4 1A 80 11 00 00 00 00 00 00 48 [20:13:27]Write i2c OK [20:13:27]MH_I2C_Read... [20:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:27]Read from MH i2c: E2 [20:13:27]MH_I2C_Read... [20:13:27]Read from MH i2c: E2 17 00 [20:13:27]MH_I2C_Read... [20:13:27]Read from MH i2c: E2 17 00 B4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A0 [20:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:13:27]wFMCommunicate OK [20:13:27]requested_item fd.num is exist - process it [20:13:27]SAM_PROTO_GetFieldsCounters [20:13:27]wFMCommunicate request_size=4 [20:13:27]MH_SAM_APDU [20:13:27]CAPDU: 80 13 00 00 [20:13:27]Write to MH i2c: E2 08 00 B5 1A 80 13 00 00 00 00 00 00 4B [20:13:27]Write i2c OK [20:13:27]MH_I2C_Read... [20:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:27]Read from MH i2c: E2 [20:13:27]MH_I2C_Read... [20:13:27]Read from MH i2c: E2 62 00 [20:13:27]MH_I2C_Read... [20:13:27]Read from MH i2c: E2 62 00 B5 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 87 02 00 0E 04 04 00 16 02 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 B1 [20:13:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 87 02 00 0E 04 04 00 16 02 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:13:27]wFMCommunicate OK [20:13:27]SAM_PROTO_GetFieldsCounters done [20:13:27]requested_item shift.num is exist - process it [20:13:27]requested_item shift.opened is exist - process it [20:13:27]req_shift_opened [20:13:27]FM_GetShiftState [20:13:27]SAM_PROTO_GetShiftState [20:13:27]wFMCommunicate request_size=4 [20:13:27]MH_SAM_APDU [20:13:27]CAPDU: 80 13 01 00 [20:13:27]Write to MH i2c: E2 08 00 B6 1A 80 13 01 00 00 00 00 00 4D [20:13:27]Write i2c OK [20:13:27]MH_I2C_Read... [20:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:27]Read from MH i2c: E2 [20:13:27]MH_I2C_Read... [20:13:27]Read from MH i2c: E2 0E 00 [20:13:27]MH_I2C_Read... [20:13:27]Read from MH i2c: E2 0E 00 B6 1A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 95 [20:13:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:13:27]wFMCommunicate OK [20:13:27]SAM_PROTO_GetShiftState done [20:13:27]FM_GetShiftState done [20:13:27]req_shift_opened done [20:13:27]requested_item shift.open_date is exist - process it [20:13:27]req_shift_open_date [20:13:27]req_shift_open_date done [20:13:27]produce_requested_data done [20:13:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165841,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:13:27]process_action_free close_receipt [20:13:27]json_value_free [20:13:27]json_value_free done [20:13:27]process_json_proto returns [20:13:27]Send response to host [20:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165841,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:13:27]free response buf [20:13:27]execute_script done [20:13:27]execute_script returns [20:13:27]free content buf [20:13:27]Sock 5.Close socket [20:13:27]Sock 5.Thread stoped [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [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:46]accept exits with 6 [20:17:46]New connection [20:17:46]New thread 3066920292 created [20:17:46]Thread 3066776932 joined [20:17:46]Waiting for new connection... [20:17:46] Sock 6.Parse request [20:17:46]Sock 6.Check first char [20:17:46]Sock 6.First char is OK [20:17:46]request: POST /json_proto HTTP/1.0 [20:17:46]Method: POST [20:17:46]URL: /json_proto [20:17:46]Method is POST - this is cgi request [20:17:46]url: /json_proto [20:17:46]query_string will be loaded in cgi processing [20:17:46]execute_cgi json_proto POST (null) [20:17:46]execute_cgi path=json_proto method=POST [20:17:46]POST find Content-Length [20:17:46]Host: 172.17.53.195:8080 [20:17:46]Content-Length: 789 [20:17:46]Content-Type: application/json [20:17:46] [20:17:46]POST finish read [20:17:46]Found Content-Length = 789 [20:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:46]execute_script... [20:17: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)220410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:46]POST & json_proto [20:17:46]process_json_proto [20:17:46]json parsed OK: [20:17:46]protocol is kg_v1.0 [20:17:46]action value=close_receipt [20:17:46]process_action close_receipt [20:17:46]cmd_close_receipt [20:17:46]MH_GetDate [20:17:46]Write to MH i2c: F0 00 00 B7 1A C0 [20:17:46]Write i2c OK [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: F0 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: F0 09 00 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: F0 09 00 B7 1A 00 78 65 15 67 21 48 4A 65 3A [20:17:46]GetLastDocTimeStamp 1729455217 [20:17:46]current date 1729455480 [20:17:46]FM_GetShiftState [20:17:46]SAM_PROTO_GetShiftState [20:17:46]wFMCommunicate request_size=4 [20:17:46]MH_SAM_APDU [20:17:46]CAPDU: 80 13 01 00 [20:17:46]Write to MH i2c: E2 08 00 B8 1A 80 13 01 00 00 00 00 00 4F [20:17:46]Write i2c OK [20:17:46]MH_I2C_Read... [20:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:46]Read from MH i2c: E2 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: E2 0E 00 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: E2 0E 00 B8 1A 00 09 00 01 71 50 14 67 00 00 00 00 90 00 97 [20:17:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:17:46]wFMCommunicate OK [20:17:46]SAM_PROTO_GetShiftState done [20:17:46]FM_GetShiftState done [20:17:46]opened in 1729384561 [20:17:46]opened+sec_in_day 1729470961 [20:17:46]quantity*price = 0 [20:17:46]sum+1 = 1 [20:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 324 20.10.2024 20:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165842 ФПД: 2188202601585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201800&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165842&fm=2188202601585&tin=02508201610067®Number=0000000000091764&sum=0 [20:17:47]StoreToDocumentArchive [20:17:47]shift 534 fd 165842 [20:17:47]save to /storage/0534/doc_00165842 [20:17:47]save last doc name /storage/0534/doc_00165842 to /storage/kkm_last_doc_name [20:17:47]save OK [20:17:47]Clear old archive folders... [20:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:17:47]tlvbuf is 01971080 [20:17:47]SAM_PROTO_ClearQueue [20:17:47]wFMCommunicate request_size=4 [20:17:47]MH_SAM_APDU [20:17:47]CAPDU: 80 09 00 00 [20:17:47]Write to MH i2c: E2 08 00 C5 1A 80 09 00 00 00 00 00 00 51 [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:47]Read from MH i2c: E2 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 C5 1A 00 90 00 53 [20:17:47]RAPDU: 90 00 [20:17:47]wFMCommunicate OK [20:17:47]SAM_PROTO_ClearQueue done [20:17:47]KKMCreateOFDPacket [20:17:47]OFDProtocolAddRootSTLVToBuf [20:17:47]FM_MakeSignedData [20:17:47]FM_MakeSignedData [20:17:47]SAM_PROTO_SignData [20:17:47]wFMCommunicate request_size=4 [20:17:47]MH_SAM_APDU [20:17:47]CAPDU: 80 0D 01 02 [20:17:47]Write to MH i2c: E2 08 00 C6 1A 80 0D 01 02 00 00 00 00 59 [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:47]Read from MH i2c: E2 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 C6 1A 00 90 00 54 [20:17:47]RAPDU: 90 00 [20:17:47]wFMCommunicate OK [20:17:47]wFMCommunicate request_size=255 [20:17:47]MH_SAM_APDU [20:17: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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 78 65 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 87 02 00 35 04 06 00 01 FD 7B 09 [20:17:47]Write to MH i2c: E2 02 01 C7 1A 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 78 65 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 87 02 00 35 04 06 00 01 FD 7B 09 00 00 CD [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 03 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 03 00 C7 1A 00 90 00 55 [20:17:48]RAPDU: 90 00 [20:17:48]wFMCommunicate OK [20:17:48]wFMCommunicate request_size=7 [20:17:48]MH_SAM_APDU [20:17:48]CAPDU: 80 0D 02 02 02 EC 71 [20:17:48]Write to MH i2c: E2 0A 00 C8 1A 80 0D 02 02 02 00 EC 71 00 00 BD [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 03 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 03 00 C8 1A 00 90 00 56 [20:17:48]RAPDU: 90 00 [20:17:48]wFMCommunicate OK [20:17:48]wFMCommunicate request_size=4 [20:17:48]MH_SAM_APDU [20:17:48]CAPDU: 80 0D 03 02 [20:17:48]Write to MH i2c: E2 08 00 C9 1A 80 0D 03 02 00 00 00 00 5E [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 0B 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 0B 00 C9 1A 00 06 BC 39 81 B9 F0 CA E2 90 00 30 [20:17:48]RAPDU: 06 BC 39 81 B9 F0 CA E2 90 00 [20:17:48]wFMCommunicate OK [20:17:48]SAM_PROTO_SignData done [20:17:48]FM_MakeSignedData done [20:17:48]CreateOFDProtocolMessage [20:17:48]wFMCommunicate request_size=4 [20:17:48]MH_SAM_APDU [20:17:48]CAPDU: 80 11 00 00 [20:17:48]Write to MH i2c: E2 08 00 CA 1A 80 11 00 00 00 00 00 00 5E [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 17 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 17 00 CA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [20:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:17:48]wFMCommunicate OK [20:17:48]CreateOFDProtocolMessage done [20:17:48]OFDSenderStorePacket 165842 [20:17:48]StoreOFDPacket docnum=165842 [20:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1A 25 04 01 6D 00 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 78 65 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 87 02 00 35 04 06 00 01 FD 7B 09 EC 71 06 BC 39 81 B9 F0 CA E2 [20:17:48]CheckFolder [20:17:48]dirname=/storage/ofd_packets [20:17:48]CheckFolder done [20:17:48]ProducePacketName [20:17:48]name=ofd_packets/00165842 [20:17:48]NVStorageSaveData ofd_packets/00165842 [20:17:48]File name is /storage/ofd_packets/00165842 [20:17:48]Write 298 bytes [20:17:48]NVStorageSaveData done [20:17:48]OFDSenderStorePacket done [20:17:48]KKMCreateOFDPacket done [20:17:48]NVStorageSaveData kkm_last_timestamp [20:17:48]File name is /storage/kkm_last_timestamp [20:17:48]Write 4 bytes [20:17:48]NVStorageSaveData done [20:17:48]ExternCall_PrintAddStr [20:17:48]wPrintStart [20:17:48]Write to MH i2c: 01 00 00 CB 1A E5 [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 07 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 07 00 CB 1A 00 00 00 00 00 FF 0F FA [20:17:48]RasterBufferAndPrint [20:17:48]line Счет N : (1)220410 [20:17:48]line ИНН: 02508201610067 [20:17:48]line Контрольно-Кассовый Чек [20:17:48]line ПРОДАЖА [20:17:48]line ТРК (МРК, ГНК) : 31 [20:17:48]line Товар: 2710194210 [20:17:48]line ДТ-К-5 [20:17:48]line 13.130 * 0.00 [20:17:48]line = 0.00 [20:17:48]line НДС 12% НСП 1% [20:17:48]line > о реализуемом товаре [20:17:48]line ИТОГО: 0.00 [20:17:48]line НСП 1% : 0.00 [20:17:48]line НДС 12% : 0.00 [20:17:48]line Наличными: 0.00 [20:17:48]line Безнал.: 0.00 [20:17:48]line Место: АЗС № 161 "Партнер Нефть" [20:17:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:17:48]line СНО: Общий режим [20:17:48]line Чек 324 20.10.2024 20:18 [20:17:48]line Смена: 534 ФФД: 1.0 [20:17:48]line ЗНМ: 0300000104 [20:17:48]line РНМ: 0000000000091764 [20:17:48]line Версия ККМ: 001 [20:17:48]line Талоны: Топливная Карта [20:17:48]line 39590 [20:17:48]line ФМ: 0000000000871759 [20:17:48]line ФД: 165842 [20:17:48]line ФПД: 2188202601585 [20:17:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201800&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165842&fm=2188202601585&tin=02508201610067®Number=0000000000091764&sum=0 [20:17:48]OFD Sender: Processing packet 165842 [packets to send 48, broken 47] [20:17:48]ProducePacketName [20:17:48]name=ofd_packets/00165842 [20:17:48]OFD Sender: To server: pG, [20:17:48]CommunicateWithHost lk.salyk.kg:30040 [20:17:48]ConnectInit lk.salyk.kg [20:17:48]written 0, free lines is 4095 [20:17:48]Connected sock=7 [20:17:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1A 25 04 01 6D 00 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 78 65 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 87 02 00 35 04 06 00 01 FD 7B 09 EC 71 06 BC 39 81 B9 F0 CA E2 [20:17:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DB 21 47 00 3C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 87 02 00 F4 03 04 00 E9 0B 15 67 B6 04 01 00 00 7D 6C B6 FA 83 0B D7 2E [20:17:49]CommunicateWithHost err = 0 [20:17:49]CheckOFDResponse [20:17:49]1017 (14) - 77093643461234 [20:17:49]1041 (16) - 0000000000871759 [20:17:49]1040 (4) - 165842 [20:17:49]1012 (4) - 20.10.2024 13:55 [20:17:49]1206 (1) - 0 [20:17:49]OFD Sender: Remove packet 165842 [20:17:49]ProducePacketName [20:17:49]name=ofd_packets/00165842 [20:17:49]NVStorageDeleteData [20:17:49]Write to MH i2c: 01 00 00 F5 1A 0F [20:17:49]Write i2c OK [20:17:49]MH_I2C_Read... [20:17:49]Read from MH i2c: 01 [20:17:49]MH_I2C_Read... [20:17:49]Read from MH i2c: 01 07 00 [20:17:49]MH_I2C_Read... [20:17:49]Read from MH i2c: 01 07 00 F5 1A 00 00 00 00 00 D7 0C F9 [20:17:49]RasterBufferAndPrint [20:17:49]line [20:17:49]line [20:17:49]line [20:17:49]line [20:17:49]line [20:17:49]written 0, free lines is 3296 [20:17:49]MH_Cut [20:17:49]Write to MH i2c: D1 01 00 FC 1A 01 E8 [20:17:49]Write i2c OK [20:17:49]MH_I2C_Read... [20:17:49]Read from MH i2c: D1 [20:17:49]MH_I2C_Read... [20:17:49]Read from MH i2c: D1 01 00 [20:17:49]MH_I2C_Read... [20:17:49]Read from MH i2c: D1 01 00 FC 1A 00 E7 [20:17:49]Write to MH i2c: 01 00 00 FD 1A 17 [20:17:49]Write i2c OK [20:17:49]MH_I2C_Read... [20:17:49]OFD Sender: No OFD packet to send [20:17:49]*** Cut start [20:17:49]*** Partial cut [20:17:49]*** CUTSNS_PIN = 1 [20:17:50]*** CUTSNS_PIN = 0 [20:17:50]*** Brake cut motor [20:17:50]Read from MH i2c: 01 [20:17:50]MH_I2C_Read... [20:17:50]*** Stop cut motor [20:17:50]*** Cut end [20:17:50]Read from MH i2c: 01 07 00 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: 01 07 00 FD 1A 00 00 00 00 00 FF 0F 2C [20:17:50]process_action close_receipt done [20:17:50]requested_data is exist [20:17:50]produce_requested_data [20:17:50]requested_item fm.sn is exist - process it [20:17:50]wFMCommunicate request_size=4 [20:17:50]MH_SAM_APDU [20:17:50]CAPDU: 80 11 00 00 [20:17:50]Write to MH i2c: E2 08 00 FE 1A 80 11 00 00 00 00 00 00 92 [20:17:50]Write i2c OK [20:17:50]MH_I2C_Read... [20:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:50]Read from MH i2c: E2 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: E2 17 00 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: E2 17 00 FE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [20:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:17:50]wFMCommunicate OK [20:17:50]requested_item fd.num is exist - process it [20:17:50]SAM_PROTO_GetFieldsCounters [20:17:50]wFMCommunicate request_size=4 [20:17:50]MH_SAM_APDU [20:17:50]CAPDU: 80 13 00 00 [20:17:50]Write to MH i2c: E2 08 00 FF 1A 80 13 00 00 00 00 00 00 95 [20:17:50]Write i2c OK [20:17:50]MH_I2C_Read... [20:17:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:50]Read from MH i2c: E2 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: E2 62 00 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: E2 62 00 FF 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 87 02 00 0E 04 04 00 16 02 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 FF [20:17:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 87 02 00 0E 04 04 00 16 02 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:17:50]wFMCommunicate OK [20:17:50]SAM_PROTO_GetFieldsCounters done [20:17:50]requested_item shift.num is exist - process it [20:17:50]requested_item shift.opened is exist - process it [20:17:50]req_shift_opened [20:17:50]FM_GetShiftState [20:17:50]SAM_PROTO_GetShiftState [20:17:50]wFMCommunicate request_size=4 [20:17:50]MH_SAM_APDU [20:17:50]CAPDU: 80 13 01 00 [20:17:50]Write to MH i2c: E2 08 00 00 1B 80 13 01 00 00 00 00 00 98 [20:17:50]Write i2c OK [20:17:50]MH_I2C_Read... [20:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:50]Read from MH i2c: E2 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: E2 0E 00 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: E2 0E 00 00 1B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E0 [20:17:50]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:17:50]wFMCommunicate OK [20:17:50]SAM_PROTO_GetShiftState done [20:17:50]FM_GetShiftState done [20:17:50]req_shift_opened done [20:17:50]requested_item shift.open_date is exist - process it [20:17:50]req_shift_open_date [20:17:50]req_shift_open_date done [20:17:50]produce_requested_data done [20:17:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165842,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:17:50]process_action_free close_receipt [20:17:50]json_value_free [20:17:50]json_value_free done [20:17:50]process_json_proto returns [20:17:50]Send response to host [20:17:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165842,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:17:50]free response buf [20:17:50]execute_script done [20:17:50]execute_script returns [20:17:50]free content buf [20:17:50]Sock 6.Close socket [20:17:50]Sock 6.Thread stoped [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23: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:53]accept exits with 5 [20:24:53]New connection [20:24:53]New thread 3066776932 created [20:24:53]Thread 3066920292 joined [20:24:53]Waiting for new connection... [20:24:53] Sock 5.Parse request [20:24:53]Sock 5.Check first char [20:24:53]Sock 5.First char is OK [20:24:53]request: POST /json_proto HTTP/1.0 [20:24:53]Method: POST [20:24:53]URL: /json_proto [20:24:53]Method is POST - this is cgi request [20:24:53]url: /json_proto [20:24:53]query_string will be loaded in cgi processing [20:24:53]execute_cgi json_proto POST (null) [20:24:53]execute_cgi path=json_proto method=POST [20:24:53]POST find Content-Length [20:24:53]Host: 172.17.53.195:8080 [20:24:53]Content-Length: 789 [20:24:53]Content-Type: application/json [20:24:53] [20:24:53]POST finish read [20:24:53]Found Content-Length = 789 [20:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220411", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:53]execute_script... [20:24: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)220411", "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" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:53]POST & json_proto [20:24:53]process_json_proto [20:24:53]json parsed OK: [20:24:53]protocol is kg_v1.0 [20:24:53]action value=close_receipt [20:24:53]process_action close_receipt [20:24:53]cmd_close_receipt [20:24:53]MH_GetDate [20:24:53]Write to MH i2c: F0 00 00 01 1B 0B [20:24:53]Write i2c OK [20:24:53]MH_I2C_Read... [20:24:53]Read from MH i2c: F0 [20:24:53]MH_I2C_Read... [20:24:53]Read from MH i2c: F0 09 00 [20:24:53]MH_I2C_Read... [20:24:53]Read from MH i2c: F0 09 00 01 1B 00 24 67 15 67 21 48 4A 65 33 [20:24:53]GetLastDocTimeStamp 1729455480 [20:24:53]current date 1729455908 [20:24:53]FM_GetShiftState [20:24:53]SAM_PROTO_GetShiftState [20:24:53]wFMCommunicate request_size=4 [20:24:53]MH_SAM_APDU [20:24:53]CAPDU: 80 13 01 00 [20:24:53]Write to MH i2c: E2 08 00 02 1B 80 13 01 00 00 00 00 00 9A [20:24:53]Write i2c OK [20:24:53]MH_I2C_Read... [20:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:54]Read from MH i2c: E2 [20:24:54]MH_I2C_Read... [20:24:54]Read from MH i2c: E2 0E 00 [20:24:54]MH_I2C_Read... [20:24:54]Read from MH i2c: E2 0E 00 02 1B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E2 [20:24:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:24:54]wFMCommunicate OK [20:24:54]SAM_PROTO_GetShiftState done [20:24:54]FM_GetShiftState done [20:24:54]opened in 1729384561 [20:24:54]opened+sec_in_day 1729470961 [20:24:54]quantity*price = 0 [20:24:54]sum+1 = 1 [20:24:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 325 20.10.2024 20:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165843 ФПД: 224353392636059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202508&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165843&fm=224353392636059&tin=02508201610067®Number=0000000000091764&sum=0 [20:24:55]StoreToDocumentArchive [20:24:55]shift 534 fd 165843 [20:24:55]save to /storage/0534/doc_00165843 [20:24:55]save last doc name /storage/0534/doc_00165843 to /storage/kkm_last_doc_name [20:24:55]save OK [20:24:55]Clear old archive folders... [20:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:24:55]tlvbuf is 0169F7B0 [20:24:55]SAM_PROTO_ClearQueue [20:24:55]wFMCommunicate request_size=4 [20:24:55]MH_SAM_APDU [20:24:55]CAPDU: 80 09 00 00 [20:24:55]Write to MH i2c: E2 08 00 0F 1B 80 09 00 00 00 00 00 00 9C [20:24:55]Write i2c OK [20:24:55]MH_I2C_Read... [20:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:55]Read from MH i2c: E2 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 03 00 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 03 00 0F 1B 00 90 00 9E [20:24:55]RAPDU: 90 00 [20:24:55]wFMCommunicate OK [20:24:55]SAM_PROTO_ClearQueue done [20:24:55]KKMCreateOFDPacket [20:24:55]OFDProtocolAddRootSTLVToBuf [20:24:55]FM_MakeSignedData [20:24:55]FM_MakeSignedData [20:24:55]SAM_PROTO_SignData [20:24:55]wFMCommunicate request_size=4 [20:24:55]MH_SAM_APDU [20:24:55]CAPDU: 80 0D 01 02 [20:24:55]Write to MH i2c: E2 08 00 10 1B 80 0D 01 02 00 00 00 00 A4 [20:24:55]Write i2c OK [20:24:55]MH_I2C_Read... [20:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:55]Read from MH i2c: E2 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 03 00 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 03 00 10 1B 00 90 00 9F [20:24:55]RAPDU: 90 00 [20:24:55]wFMCommunicate OK [20:24:55]wFMCommunicate request_size=255 [20:24:55]MH_SAM_APDU [20:24: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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 24 67 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 87 02 00 35 04 06 00 CC 0C 58 45 [20:24:55]Write to MH i2c: E2 02 01 11 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 24 67 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 87 02 00 35 04 06 00 CC 0C 58 45 00 00 BB [20:24:55]Write i2c OK [20:24:55]MH_I2C_Read... [20:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:55]Read from MH i2c: E2 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 03 00 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 03 00 11 1B 00 90 00 A0 [20:24:55]RAPDU: 90 00 [20:24:55]wFMCommunicate OK [20:24:55]wFMCommunicate request_size=7 [20:24:55]MH_SAM_APDU [20:24:55]CAPDU: 80 0D 02 02 02 B0 9B [20:24:55]Write to MH i2c: E2 0A 00 12 1B 80 0D 02 02 02 00 B0 9B 00 00 F6 [20:24:55]Write i2c OK [20:24:55]MH_I2C_Read... [20:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:55]Read from MH i2c: E2 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 03 00 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 03 00 12 1B 00 90 00 A1 [20:24:55]RAPDU: 90 00 [20:24:55]wFMCommunicate OK [20:24:55]wFMCommunicate request_size=4 [20:24:55]MH_SAM_APDU [20:24:55]CAPDU: 80 0D 03 02 [20:24:55]Write to MH i2c: E2 08 00 13 1B 80 0D 03 02 00 00 00 00 A9 [20:24:55]Write i2c OK [20:24:55]MH_I2C_Read... [20:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:55]Read from MH i2c: E2 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 0B 00 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 0B 00 13 1B 00 F1 8C 67 E1 28 88 CD E8 90 00 D4 [20:24:55]RAPDU: F1 8C 67 E1 28 88 CD E8 90 00 [20:24:55]wFMCommunicate OK [20:24:55]SAM_PROTO_SignData done [20:24:55]FM_MakeSignedData done [20:24:55]CreateOFDProtocolMessage [20:24:55]wFMCommunicate request_size=4 [20:24:55]MH_SAM_APDU [20:24:55]CAPDU: 80 11 00 00 [20:24:55]Write to MH i2c: E2 08 00 14 1B 80 11 00 00 00 00 00 00 A9 [20:24:55]Write i2c OK [20:24:55]MH_I2C_Read... [20:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:55]Read from MH i2c: E2 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 17 00 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: E2 17 00 14 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [20:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:24:55]wFMCommunicate OK [20:24:55]CreateOFDProtocolMessage done [20:24:55]OFDSenderStorePacket 165843 [20:24:55]StoreOFDPacket docnum=165843 [20:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 48 04 01 48 7A 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 24 67 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 87 02 00 35 04 06 00 CC 0C 58 45 B0 9B F1 8C 67 E1 28 88 CD E8 [20:24:55]CheckFolder [20:24:55]dirname=/storage/ofd_packets [20:24:55]CheckFolder done [20:24:55]ProducePacketName [20:24:55]name=ofd_packets/00165843 [20:24:55]NVStorageSaveData ofd_packets/00165843 [20:24:55]File name is /storage/ofd_packets/00165843 [20:24:55]Write 298 bytes [20:24:55]NVStorageSaveData done [20:24:55]OFDSenderStorePacket done [20:24:55]KKMCreateOFDPacket done [20:24:55]NVStorageSaveData kkm_last_timestamp [20:24:55]File name is /storage/kkm_last_timestamp [20:24:55]Write 4 bytes [20:24:55]NVStorageSaveData done [20:24:55]ExternCall_PrintAddStr [20:24:55]wPrintStart [20:24:55]Write to MH i2c: 01 00 00 15 1B 30 [20:24:55]Write i2c OK [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: 01 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: 01 07 00 [20:24:55]MH_I2C_Read... [20:24:55]Read from MH i2c: 01 07 00 15 1B 00 00 00 00 00 FF 0F 45 [20:24:55]RasterBufferAndPrint [20:24:55]line Счет N : (1)220411 [20:24:55]line ИНН: 02508201610067 [20:24:55]line Контрольно-Кассовый Чек [20:24:55]line ПРОДАЖА [20:24:55]line ТРК (МРК, ГНК) : 11 [20:24:55]line Товар: 2710194210 [20:24:55]line ДТ-К-5 [20:24:55]line 13.130 * 0.00 [20:24:55]line = 0.00 [20:24:55]line НДС 12% НСП 1% [20:24:55]line > о реализуемом товаре [20:24:55]line ИТОГО: 0.00 [20:24:55]line НСП 1% : 0.00 [20:24:55]line НДС 12% : 0.00 [20:24:55]line Наличными: 0.00 [20:24:55]line Безнал.: 0.00 [20:24:55]line Место: АЗС № 161 "Партнер Нефть" [20:24:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:24:55]line СНО: Общий режим [20:24:55]line Чек 325 20.10.2024 20:25 [20:24:55]line Смена: 534 ФФД: 1.0 [20:24:55]line ЗНМ: 0300000104 [20:24:55]line РНМ: 0000000000091764 [20:24:55]line Версия ККМ: 001 [20:24:55]line Талоны: Топливная Карта [20:24:55]line 39590 [20:24:55]line ФМ: 0000000000871759 [20:24:55]line ФД: 165843 [20:24:55]line ФПД: 224353392636059 [20:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202508&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165843&fm=224353392636059&tin=02508201610067®Number=0000000000091764&sum=0 [20:24:56]OFD Sender: Processing packet 165843 [packets to send 48, broken 47] [20:24:56]ProducePacketName [20:24:56]name=ofd_packets/00165843 [20:24:56]OFD Sender: To server: pG, [20:24:56]CommunicateWithHost lk.salyk.kg:30040 [20:24:56]ConnectInit lk.salyk.kg [20:24:56]written 0, free lines is 4095 [20:24:56]Connected sock=7 [20:24:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 48 04 01 48 7A 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 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 24 67 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 87 02 00 35 04 06 00 CC 0C 58 45 B0 9B F1 8C 67 E1 28 88 CD E8 [20:24:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7A E0 47 00 1F 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 31 37 35 39 10 04 04 00 D3 87 02 00 F4 03 04 00 95 0D 15 67 B6 04 01 00 00 BB 82 E3 01 3D B7 30 A8 [20:24:56]CommunicateWithHost err = 0 [20:24:56]CheckOFDResponse [20:24:56]1017 (14) - 77093643461234 [20:24:56]1041 (16) - 0000000000871759 [20:24:56]1040 (4) - 165843 [20:24:56]1012 (4) - 20.10.2024 14:03 [20:24:56]1206 (1) - 0 [20:24:56]OFD Sender: Remove packet 165843 [20:24:56]ProducePacketName [20:24:56]name=ofd_packets/00165843 [20:24:56]NVStorageDeleteData [20:24:56]Write to MH i2c: 01 00 00 3F 1B 5A [20:24:56]Write i2c OK [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 07 00 [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 07 00 3F 1B 00 00 00 00 00 D6 0C 43 [20:24:56]RasterBufferAndPrint [20:24:56]line [20:24:56]line [20:24:56]line [20:24:56]line [20:24:56]line [20:24:56]written 0, free lines is 3292 [20:24:56]MH_Cut [20:24:56]Write to MH i2c: D1 01 00 46 1B 01 33 [20:24:56]Write i2c OK [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: D1 [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: D1 01 00 [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: D1 01 00 46 1B 00 32 [20:24:56]Write to MH i2c: 01 00 00 47 1B 62 [20:24:56]Write i2c OK [20:24:56]MH_I2C_Read... [20:24:56]OFD Sender: No OFD packet to send [20:24:57]*** Cut start [20:24:57]*** Partial cut [20:24:57]*** CUTSNS_PIN = 1 [20:24:57]*** CUTSNS_PIN = 0 [20:24:57]*** Brake cut motor [20:24:57]Read from MH i2c: 01 [20:24:57]MH_I2C_Read... [20:24:57]*** Stop cut motor [20:24:57]*** Cut end [20:24:57]Read from MH i2c: 01 07 00 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: 01 07 00 47 1B 00 00 00 00 00 FF 0F 77 [20:24:57]process_action close_receipt done [20:24:57]requested_data is exist [20:24:57]produce_requested_data [20:24:57]requested_item fm.sn is exist - process it [20:24:57]wFMCommunicate request_size=4 [20:24:57]MH_SAM_APDU [20:24:57]CAPDU: 80 11 00 00 [20:24:57]Write to MH i2c: E2 08 00 48 1B 80 11 00 00 00 00 00 00 DD [20:24:57]Write i2c OK [20:24:57]MH_I2C_Read... [20:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:57]Read from MH i2c: E2 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: E2 17 00 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: E2 17 00 48 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [20:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:24:57]wFMCommunicate OK [20:24:57]requested_item fd.num is exist - process it [20:24:57]SAM_PROTO_GetFieldsCounters [20:24:57]wFMCommunicate request_size=4 [20:24:57]MH_SAM_APDU [20:24:57]CAPDU: 80 13 00 00 [20:24:57]Write to MH i2c: E2 08 00 49 1B 80 13 00 00 00 00 00 00 E0 [20:24:57]Write i2c OK [20:24:57]MH_I2C_Read... [20:24:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:58]Read from MH i2c: E2 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 62 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 62 00 49 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 87 02 00 0E 04 04 00 16 02 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 4E [20:24:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 87 02 00 0E 04 04 00 16 02 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:24:58]wFMCommunicate OK [20:24:58]SAM_PROTO_GetFieldsCounters done [20:24:58]requested_item shift.num is exist - process it [20:24:58]requested_item shift.opened is exist - process it [20:24:58]req_shift_opened [20:24:58]FM_GetShiftState [20:24:58]SAM_PROTO_GetShiftState [20:24:58]wFMCommunicate request_size=4 [20:24:58]MH_SAM_APDU [20:24:58]CAPDU: 80 13 01 00 [20:24:58]Write to MH i2c: E2 08 00 4A 1B 80 13 01 00 00 00 00 00 E2 [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:58]Read from MH i2c: E2 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 0E 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 0E 00 4A 1B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2A [20:24:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:24:58]wFMCommunicate OK [20:24:58]SAM_PROTO_GetShiftState done [20:24:58]FM_GetShiftState done [20:24:58]req_shift_opened done [20:24:58]requested_item shift.open_date is exist - process it [20:24:58]req_shift_open_date [20:24:58]req_shift_open_date done [20:24:58]produce_requested_data done [20:24:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165843,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:24:58]process_action_free close_receipt [20:24:58]json_value_free [20:24:58]json_value_free done [20:24:58]process_json_proto returns [20:24:58]Send response to host [20:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165843,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:24:58]free response buf [20:24:58]execute_script done [20:24:58]execute_script returns [20:24:58]free content buf [20:24:58]Sock 5.Close socket [20:24:58]Sock 5.Thread stoped [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:51]accept exits with 6 [20:28:51]New connection [20:28:51]New thread 3066920292 created [20:28:51]Thread 3066776932 joined [20:28:51]Waiting for new connection... [20:28:51] Sock 6.Parse request [20:28:51]Sock 6.Check first char [20:28:51]Sock 6.First char is OK [20:28:51]request: POST /json_proto HTTP/1.0 [20:28:51]Method: POST [20:28:51]URL: /json_proto [20:28:51]Method is POST - this is cgi request [20:28:51]url: /json_proto [20:28:51]query_string will be loaded in cgi processing [20:28:51]execute_cgi json_proto POST (null) [20:28:51]execute_cgi path=json_proto method=POST [20:28:51]POST find Content-Length [20:28:51]Host: 172.17.53.195:8080 [20:28:51]Content-Length: 677 [20:28:51]Content-Type: application/json [20:28:51] [20:28:51]POST finish read [20:28:51]Found Content-Length = 677 [20:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:51]execute_script... [20:28: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)220412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:51]POST & json_proto [20:28:51]process_json_proto [20:28:51]json parsed OK: [20:28:51]protocol is kg_v1.0 [20:28:51]action value=close_receipt [20:28:51]process_action close_receipt [20:28:51]cmd_close_receipt [20:28:51]MH_GetDate [20:28:51]Write to MH i2c: F0 00 00 4B 1B 55 [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 09 00 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 09 00 4B 1B 00 12 68 15 67 21 48 4A 65 6C [20:28:51]GetLastDocTimeStamp 1729455908 [20:28:51]current date 1729456146 [20:28:51]FM_GetShiftState [20:28:51]SAM_PROTO_GetShiftState [20:28:51]wFMCommunicate request_size=4 [20:28:51]MH_SAM_APDU [20:28:51]CAPDU: 80 13 01 00 [20:28:51]Write to MH i2c: E2 08 00 4C 1B 80 13 01 00 00 00 00 00 E4 [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:51]Read from MH i2c: E2 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: E2 0E 00 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: E2 0E 00 4C 1B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2C [20:28:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:28:51]wFMCommunicate OK [20:28:51]SAM_PROTO_GetShiftState done [20:28:51]FM_GetShiftState done [20:28:51]opened in 1729384561 [20:28:51]opened+sec_in_day 1729470961 [20:28:51]quantity*price = 49974 [20:28:51]sum+1 = 49975 [20:28:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 326 20.10.2024 20:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165844 ФПД: 204494549387090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202906&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165844&fm=204494549387090&tin=02508201610067®Number=0000000000091764&sum=49900 [20:28:53]StoreToDocumentArchive [20:28:53]shift 534 fd 165844 [20:28:53]save to /storage/0534/doc_00165844 [20:28:53]save last doc name /storage/0534/doc_00165844 to /storage/kkm_last_doc_name [20:28:53]save OK [20:28:53]Clear old archive folders... [20:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:53]tlvbuf is 01616090 [20:28:53]SAM_PROTO_ClearQueue [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 09 00 00 [20:28:53]Write to MH i2c: E2 08 00 59 1B 80 09 00 00 00 00 00 00 E6 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 59 1B 00 90 00 E8 [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]SAM_PROTO_ClearQueue done [20:28:53]KKMCreateOFDPacket [20:28:53]OFDProtocolAddRootSTLVToBuf [20:28:53]FM_MakeSignedData [20:28:53]FM_MakeSignedData [20:28:53]SAM_PROTO_SignData [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 01 02 [20:28:53]Write to MH i2c: E2 08 00 5A 1B 80 0D 01 02 00 00 00 00 EE [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 5A 1B 00 90 00 E9 [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=255 [20:28:53]MH_SAM_APDU [20:28: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 12 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 87 02 00 35 04 06 00 B9 [20:28:53]Write to MH i2c: E2 02 01 5B 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 12 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 87 02 00 35 04 06 00 B9 00 00 D0 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 5B 1B 00 90 00 EA [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=10 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 02 02 05 FC 98 F9 87 52 [20:28:53]Write to MH i2c: E2 0D 00 5C 1B 80 0D 02 02 05 00 FC 98 F9 87 52 00 00 61 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 5C 1B 00 90 00 EB [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 03 02 [20:28:53]Write to MH i2c: E2 08 00 5D 1B 80 0D 03 02 00 00 00 00 F3 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 0B 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 0B 00 5D 1B 00 9A 6A 63 AE 5D BE 00 6C 90 00 90 [20:28:53]RAPDU: 9A 6A 63 AE 5D BE 00 6C 90 00 [20:28:53]wFMCommunicate OK [20:28:53]SAM_PROTO_SignData done [20:28:53]FM_MakeSignedData done [20:28:53]CreateOFDProtocolMessage [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 11 00 00 [20:28:53]Write to MH i2c: E2 08 00 5E 1B 80 11 00 00 00 00 00 00 F3 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 17 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 17 00 5E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [20:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:28:53]wFMCommunicate OK [20:28:53]CreateOFDProtocolMessage done [20:28:53]OFDSenderStorePacket 165844 [20:28:53]StoreOFDPacket docnum=165844 [20:28:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8A 2F 07 01 F0 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 12 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 87 02 00 35 04 06 00 B9 FC 98 F9 87 52 9A 6A 63 AE 5D BE 00 6C [20:28:53]CheckFolder [20:28:53]dirname=/storage/ofd_packets [20:28:53]CheckFolder done [20:28:53]ProducePacketName [20:28:53]name=ofd_packets/00165844 [20:28:53]NVStorageSaveData ofd_packets/00165844 [20:28:53]File name is /storage/ofd_packets/00165844 [20:28:53]Write 301 bytes [20:28:53]NVStorageSaveData done [20:28:53]OFDSenderStorePacket done [20:28:53]KKMCreateOFDPacket done [20:28:53]NVStorageSaveData kkm_last_timestamp [20:28:53]File name is /storage/kkm_last_timestamp [20:28:53]Write 4 bytes [20:28:53]NVStorageSaveData done [20:28:53]ExternCall_PrintAddStr [20:28:53]wPrintStart [20:28:53]Write to MH i2c: 01 00 00 5F 1B 7A [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 07 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 07 00 5F 1B 00 00 00 00 00 FF 0F 8F [20:28:53]RasterBufferAndPrint [20:28:53]line Счет N : (1)220412 [20:28:53]line ИНН: 02508201610067 [20:28:53]line Контрольно-Кассовый Чек [20:28:53]line ПРОДАЖА [20:28:53]line ТРК (МРК, ГНК) : 13 [20:28:53]line Товар: 2710124130 [20:28:53]line Аи-92-К-5 [20:28:53]line 7.470 * 66.90 [20:28:53]line = 499.74 [20:28:53]line НДС 12% НСП 1% [20:28:53]line > о реализуемом товаре [20:28:53]line ОКРУГЛЕНИЕ: -0.74 [20:28:53]line ИТОГО: 499.00 [20:28:53]line Внесено: 500.00 [20:28:53]line СДАЧА: 1.00 [20:28:53]line НСП 1% : 4.42 [20:28:53]line НДС 12% : 53.07 [20:28:53]line Наличными: 499.00 [20:28:53]line Безнал.: 0.00 [20:28:53]line Место: АЗС № 161 "Партнер Нефть" [20:28:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:28:53]line СНО: Общий режим [20:28:53]line Чек 326 20.10.2024 20:29 [20:28:53]line Смена: 534 ФФД: 1.0 [20:28:53]line ЗНМ: 0300000104 [20:28:53]line РНМ: 0000000000091764 [20:28:53]line Версия ККМ: 001 [20:28:53]line ФМ: 0000000000871759 [20:28:53]line ФД: 165844 [20:28:53]line ФПД: 204494549387090 [20:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202906&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165844&fm=204494549387090&tin=02508201610067®Number=0000000000091764&sum=49900 [20:28:53]OFD Sender: Processing packet 165844 [packets to send 48, broken 47] [20:28:53]ProducePacketName [20:28:53]name=ofd_packets/00165844 [20:28:53]OFD Sender: To server: pG, [20:28:53]CommunicateWithHost lk.salyk.kg:30040 [20:28:53]ConnectInit lk.salyk.kg [20:28:53]written 0, free lines is 4095 [20:28:54]Connected sock=7 [20:28:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8A 2F 07 01 F0 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 12 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 87 02 00 35 04 06 00 B9 FC 98 F9 87 52 9A 6A 63 AE 5D BE 00 6C [20:28:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 75 34 47 00 94 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 87 02 00 F4 03 04 00 82 0E 15 67 B6 04 01 00 00 CD 49 F5 57 C7 2F 90 A3 [20:28:54]CommunicateWithHost err = 0 [20:28:54]CheckOFDResponse [20:28:54]1017 (14) - 77093643461234 [20:28:54]1041 (16) - 0000000000871759 [20:28:54]1040 (4) - 165844 [20:28:54]1012 (4) - 20.10.2024 14:06 [20:28:54]1206 (1) - 0 [20:28:54]OFD Sender: Remove packet 165844 [20:28:54]ProducePacketName [20:28:54]name=ofd_packets/00165844 [20:28:54]NVStorageDeleteData [20:28:54]Write to MH i2c: 01 00 00 8A 1B A5 [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 07 00 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 D9 0C 91 [20:28:54]RasterBufferAndPrint [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]written 0, free lines is 3300 [20:28:54]MH_Cut [20:28:54]Write to MH i2c: D1 01 00 91 1B 01 7E [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 01 00 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 01 00 91 1B 00 7D [20:28:54]Write to MH i2c: 01 00 00 92 1B AD [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:54]OFD Sender: No OFD packet to send [20:28:55]*** Cut start [20:28:55]*** Partial cut [20:28:55]*** CUTSNS_PIN = 1 [20:28:55]*** CUTSNS_PIN = 0 [20:28:55]*** Brake cut motor [20:28:55]Read from MH i2c: 01 [20:28:55]MH_I2C_Read... [20:28:55]*** Stop cut motor [20:28:55]*** Cut end [20:28:55]Read from MH i2c: 01 07 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [20:28:55]process_action close_receipt done [20:28:55]requested_data is exist [20:28:55]produce_requested_data [20:28:55]requested_item fm.sn is exist - process it [20:28:55]wFMCommunicate request_size=4 [20:28:55]MH_SAM_APDU [20:28:55]CAPDU: 80 11 00 00 [20:28:55]Write to MH i2c: E2 08 00 93 1B 80 11 00 00 00 00 00 00 28 [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:55]Read from MH i2c: E2 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 17 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 17 00 93 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [20:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:28:55]wFMCommunicate OK [20:28:55]requested_item fd.num is exist - process it [20:28:55]SAM_PROTO_GetFieldsCounters [20:28:55]wFMCommunicate request_size=4 [20:28:55]MH_SAM_APDU [20:28:55]CAPDU: 80 13 00 00 [20:28:55]Write to MH i2c: E2 08 00 94 1B 80 13 00 00 00 00 00 00 2B [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:56]Read from MH i2c: E2 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 62 00 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 62 00 94 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 87 02 00 0E 04 04 00 16 02 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 9D [20:28: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 87 02 00 0E 04 04 00 16 02 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:28:56]wFMCommunicate OK [20:28:56]SAM_PROTO_GetFieldsCounters done [20:28:56]requested_item shift.num is exist - process it [20:28:56]requested_item shift.opened is exist - process it [20:28:56]req_shift_opened [20:28:56]FM_GetShiftState [20:28:56]SAM_PROTO_GetShiftState [20:28:56]wFMCommunicate request_size=4 [20:28:56]MH_SAM_APDU [20:28:56]CAPDU: 80 13 01 00 [20:28:56]Write to MH i2c: E2 08 00 95 1B 80 13 01 00 00 00 00 00 2D [20:28:56]Write i2c OK [20:28:56]MH_I2C_Read... [20:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:56]Read from MH i2c: E2 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 0E 00 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 0E 00 95 1B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 75 [20:28:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:28:56]wFMCommunicate OK [20:28:56]SAM_PROTO_GetShiftState done [20:28:56]FM_GetShiftState done [20:28:56]req_shift_opened done [20:28:56]requested_item shift.open_date is exist - process it [20:28:56]req_shift_open_date [20:28:56]req_shift_open_date done [20:28:56]produce_requested_data done [20:28:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165844,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:28:56]process_action_free close_receipt [20:28:56]json_value_free [20:28:56]json_value_free done [20:28:56]process_json_proto returns [20:28:56]Send response to host [20:28:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165844,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:28:56]free response buf [20:28:56]execute_script done [20:28:56]execute_script returns [20:28:56]free content buf [20:28:56]Sock 6.Close socket [20:28:56]Sock 6.Thread stoped [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:36]accept exits with 5 [20:30:36]New connection [20:30:36]New thread 3066776932 created [20:30:36]Thread 3066920292 joined [20:30:36]Waiting for new connection... [20:30:36] Sock 5.Parse request [20:30:36]Sock 5.Check first char [20:30:36]Sock 5.First char is OK [20:30:36]request: POST /json_proto HTTP/1.0 [20:30:36]Method: POST [20:30:36]URL: /json_proto [20:30:36]Method is POST - this is cgi request [20:30:36]url: /json_proto [20:30:36]query_string will be loaded in cgi processing [20:30:36]execute_cgi json_proto POST (null) [20:30:36]execute_cgi path=json_proto method=POST [20:30:36]POST find Content-Length [20:30:36]Host: 172.17.53.195:8080 [20:30:36]Content-Length: 677 [20:30:36]Content-Type: application/json [20:30:36] [20:30:36]POST finish read [20:30:36]Found Content-Length = 677 [20:30:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:36]execute_script... [20:30: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)220413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:36]POST & json_proto [20:30:36]process_json_proto [20:30:36]json parsed OK: [20:30:36]protocol is kg_v1.0 [20:30:36]action value=close_receipt [20:30:36]process_action close_receipt [20:30:36]cmd_close_receipt [20:30:36]MH_GetDate [20:30:36]Write to MH i2c: F0 00 00 96 1B A0 [20:30:36]Write i2c OK [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: F0 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: F0 09 00 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: F0 09 00 96 1B 00 7A 68 15 67 21 48 4A 65 1F [20:30:36]GetLastDocTimeStamp 1729456146 [20:30:36]current date 1729456250 [20:30:36]FM_GetShiftState [20:30:36]SAM_PROTO_GetShiftState [20:30:36]wFMCommunicate request_size=4 [20:30:36]MH_SAM_APDU [20:30:36]CAPDU: 80 13 01 00 [20:30:36]Write to MH i2c: E2 08 00 97 1B 80 13 01 00 00 00 00 00 2F [20:30:36]Write i2c OK [20:30:36]MH_I2C_Read... [20:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:36]Read from MH i2c: E2 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: E2 0E 00 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: E2 0E 00 97 1B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 77 [20:30:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:30:36]wFMCommunicate OK [20:30:36]SAM_PROTO_GetShiftState done [20:30:36]FM_GetShiftState done [20:30:36]opened in 1729384561 [20:30:36]opened+sec_in_day 1729470961 [20:30:36]quantity*price = 40006 [20:30:36]sum+1 = 40007 [20:30:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 327 20.10.2024 20:30 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165845 ФПД: 184528400628745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203050&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165845&fm=184528400628745&tin=02508201610067®Number=0000000000091764&sum=40000 [20:30:37]StoreToDocumentArchive [20:30:37]shift 534 fd 165845 [20:30:37]save to /storage/0534/doc_00165845 [20:30:37]save last doc name /storage/0534/doc_00165845 to /storage/kkm_last_doc_name [20:30:37]save OK [20:30:37]Clear old archive folders... [20:30:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:37]tlvbuf is 01A04DA0 [20:30:37]SAM_PROTO_ClearQueue [20:30:37]wFMCommunicate request_size=4 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 09 00 00 [20:30:37]Write to MH i2c: E2 08 00 A4 1B 80 09 00 00 00 00 00 00 31 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 03 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 03 00 A4 1B 00 90 00 33 [20:30:37]RAPDU: 90 00 [20:30:37]wFMCommunicate OK [20:30:37]SAM_PROTO_ClearQueue done [20:30:37]KKMCreateOFDPacket [20:30:37]OFDProtocolAddRootSTLVToBuf [20:30:37]FM_MakeSignedData [20:30:37]FM_MakeSignedData [20:30:37]SAM_PROTO_SignData [20:30:37]wFMCommunicate request_size=4 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 0D 01 02 [20:30:37]Write to MH i2c: E2 08 00 A5 1B 80 0D 01 02 00 00 00 00 39 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 03 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 03 00 A5 1B 00 90 00 34 [20:30:37]RAPDU: 90 00 [20:30:37]wFMCommunicate OK [20:30:37]wFMCommunicate request_size=255 [20:30:37]MH_SAM_APDU [20:30: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 7A 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 87 02 00 35 04 06 00 A7 [20:30:37]Write to MH i2c: E2 02 01 A6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 7A 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 87 02 00 35 04 06 00 A7 00 00 61 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 03 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [20:30:37]RAPDU: 90 00 [20:30:37]wFMCommunicate OK [20:30:37]wFMCommunicate request_size=10 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 0D 02 02 05 D3 DD C5 3C 09 [20:30:37]Write to MH i2c: E2 0D 00 A7 1B 80 0D 02 02 05 00 D3 DD C5 3C 09 00 00 00 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 03 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [20:30:37]RAPDU: 90 00 [20:30:37]wFMCommunicate OK [20:30:37]wFMCommunicate request_size=4 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 0D 03 02 [20:30:37]Write to MH i2c: E2 08 00 A8 1B 80 0D 03 02 00 00 00 00 3E [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 0B 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 0B 00 A8 1B 00 05 F8 6D 4B 1C 95 F0 97 90 00 2C [20:30:37]RAPDU: 05 F8 6D 4B 1C 95 F0 97 90 00 [20:30:37]wFMCommunicate OK [20:30:37]SAM_PROTO_SignData done [20:30:37]FM_MakeSignedData done [20:30:37]CreateOFDProtocolMessage [20:30:37]wFMCommunicate request_size=4 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 11 00 00 [20:30:37]Write to MH i2c: E2 08 00 A9 1B 80 11 00 00 00 00 00 00 3E [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 17 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 17 00 A9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [20:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:30:37]wFMCommunicate OK [20:30:37]CreateOFDProtocolMessage done [20:30:37]OFDSenderStorePacket 165845 [20:30:37]StoreOFDPacket docnum=165845 [20:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2A 13 07 01 AD C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 7A 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 87 02 00 35 04 06 00 A7 D3 DD C5 3C 09 05 F8 6D 4B 1C 95 F0 97 [20:30:37]CheckFolder [20:30:37]dirname=/storage/ofd_packets [20:30:37]CheckFolder done [20:30:37]ProducePacketName [20:30:37]name=ofd_packets/00165845 [20:30:37]NVStorageSaveData ofd_packets/00165845 [20:30:37]File name is /storage/ofd_packets/00165845 [20:30:37]Write 301 bytes [20:30:37]NVStorageSaveData done [20:30:37]OFDSenderStorePacket done [20:30:37]KKMCreateOFDPacket done [20:30:37]NVStorageSaveData kkm_last_timestamp [20:30:37]File name is /storage/kkm_last_timestamp [20:30:37]Write 4 bytes [20:30:37]NVStorageSaveData done [20:30:37]ExternCall_PrintAddStr [20:30:37]wPrintStart [20:30:37]Write to MH i2c: 01 00 00 AA 1B C5 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: 01 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: 01 07 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 FF 0F DA [20:30:37]RasterBufferAndPrint [20:30:37]line Счет N : (1)220413 [20:30:37]line ИНН: 02508201610067 [20:30:37]line Контрольно-Кассовый Чек [20:30:37]line ПРОДАЖА [20:30:37]line ТРК (МРК, ГНК) : 13 [20:30:37]line Товар: 2710124130 [20:30:37]line Аи-92-К-5 [20:30:37]line 5.980 * 66.90 [20:30:37]line = 400.06 [20:30:37]line НДС 12% НСП 1% [20:30:37]line > о реализуемом товаре [20:30:37]line ОКРУГЛЕНИЕ: -0.06 [20:30:37]line ИТОГО: 400.00 [20:30:37]line Внесено: 400.00 [20:30:37]line СДАЧА: 0.00 [20:30:37]line НСП 1% : 3.54 [20:30:37]line НДС 12% : 42.48 [20:30:37]line Наличными: 400.00 [20:30:37]line Безнал.: 0.00 [20:30:37]line Место: АЗС № 161 "Партнер Нефть" [20:30:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:30:37]line СНО: Общий режим [20:30:37]line Чек 327 20.10.2024 20:30 [20:30:37]line Смена: 534 ФФД: 1.0 [20:30:37]line ЗНМ: 0300000104 [20:30:37]line РНМ: 0000000000091764 [20:30:37]line Версия ККМ: 001 [20:30:37]line ФМ: 0000000000871759 [20:30:37]line ФД: 165845 [20:30:37]line ФПД: 184528400628745 [20:30:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203050&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165845&fm=184528400628745&tin=02508201610067®Number=0000000000091764&sum=40000 [20:30:38]OFD Sender: Processing packet 165845 [packets to send 48, broken 47] [20:30:38]ProducePacketName [20:30:38]name=ofd_packets/00165845 [20:30:38]OFD Sender: To server: pG, [20:30:38]CommunicateWithHost lk.salyk.kg:30040 [20:30:38]ConnectInit lk.salyk.kg [20:30:38]written 0, free lines is 4095 [20:30:38]Connected sock=7 [20:30:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2A 13 07 01 AD C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 7A 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 87 02 00 35 04 06 00 A7 D3 DD C5 3C 09 05 F8 6D 4B 1C 95 F0 97 [20:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 21 4B 47 00 C8 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 31 37 35 39 10 04 04 00 D5 87 02 00 F4 03 04 00 EB 0E 15 67 B6 04 01 00 00 0F 5C BB 7D C0 65 AE 48 [20:30:38]CommunicateWithHost err = 0 [20:30:38]CheckOFDResponse [20:30:38]1017 (14) - 77093643461234 [20:30:38]1041 (16) - 0000000000871759 [20:30:38]1040 (4) - 165845 [20:30:38]1012 (4) - 20.10.2024 14:08 [20:30:38]1206 (1) - 0 [20:30:38]OFD Sender: Remove packet 165845 [20:30:38]ProducePacketName [20:30:38]name=ofd_packets/00165845 [20:30:38]NVStorageDeleteData [20:30:38]Write to MH i2c: 01 00 00 D5 1B F0 [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: 01 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: 01 07 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: 01 07 00 D5 1B 00 00 00 00 00 C2 0C C5 [20:30:38]RasterBufferAndPrint [20:30:38]line [20:30:38]line [20:30:38]line [20:30:38]line [20:30:38]line [20:30:38]written 0, free lines is 3274 [20:30:38]MH_Cut [20:30:38]Write to MH i2c: D1 01 00 DC 1B 01 C9 [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: D1 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: D1 01 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: D1 01 00 DC 1B 00 C8 [20:30:38]Write to MH i2c: 01 00 00 DD 1B F8 [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]OFD Sender: No OFD packet to send [20:30:39]*** Cut start [20:30:39]*** Partial cut [20:30:39]*** CUTSNS_PIN = 1 [20:30:39]*** CUTSNS_PIN = 0 [20:30:39]*** Brake cut motor [20:30:39]Read from MH i2c: 01 [20:30:39]MH_I2C_Read... [20:30:39]*** Stop cut motor [20:30:39]*** Cut end [20:30:39]Read from MH i2c: 01 07 00 [20:30:39]MH_I2C_Read... [20:30:40]Read from MH i2c: 01 07 00 DD 1B 00 00 00 00 00 FF 0F 0D [20:30:40]process_action close_receipt done [20:30:40]requested_data is exist [20:30:40]produce_requested_data [20:30:40]requested_item fm.sn is exist - process it [20:30:40]wFMCommunicate request_size=4 [20:30:40]MH_SAM_APDU [20:30:40]CAPDU: 80 11 00 00 [20:30:40]Write to MH i2c: E2 08 00 DE 1B 80 11 00 00 00 00 00 00 73 [20:30:40]Write i2c OK [20:30:40]MH_I2C_Read... [20:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:40]Read from MH i2c: E2 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 17 00 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 17 00 DE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [20:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:30:40]wFMCommunicate OK [20:30:40]requested_item fd.num is exist - process it [20:30:40]SAM_PROTO_GetFieldsCounters [20:30:40]wFMCommunicate request_size=4 [20:30:40]MH_SAM_APDU [20:30:40]CAPDU: 80 13 00 00 [20:30:40]Write to MH i2c: E2 08 00 DF 1B 80 13 00 00 00 00 00 00 76 [20:30:40]Write i2c OK [20:30:40]MH_I2C_Read... [20:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:40]Read from MH i2c: E2 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 62 00 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 62 00 DF 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 87 02 00 0E 04 04 00 16 02 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 EC [20:30:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 87 02 00 0E 04 04 00 16 02 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:30:40]wFMCommunicate OK [20:30:40]SAM_PROTO_GetFieldsCounters done [20:30:40]requested_item shift.num is exist - process it [20:30:40]requested_item shift.opened is exist - process it [20:30:40]req_shift_opened [20:30:40]FM_GetShiftState [20:30:40]SAM_PROTO_GetShiftState [20:30:40]wFMCommunicate request_size=4 [20:30:40]MH_SAM_APDU [20:30:40]CAPDU: 80 13 01 00 [20:30:40]Write to MH i2c: E2 08 00 E0 1B 80 13 01 00 00 00 00 00 78 [20:30:40]Write i2c OK [20:30:40]MH_I2C_Read... [20:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:40]Read from MH i2c: E2 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 0E 00 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 0E 00 E0 1B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C0 [20:30:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:30:40]wFMCommunicate OK [20:30:40]SAM_PROTO_GetShiftState done [20:30:40]FM_GetShiftState done [20:30:40]req_shift_opened done [20:30:40]requested_item shift.open_date is exist - process it [20:30:40]req_shift_open_date [20:30:40]req_shift_open_date done [20:30:40]produce_requested_data done [20:30:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165845,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:30:40]process_action_free close_receipt [20:30:40]json_value_free [20:30:40]json_value_free done [20:30:40]process_json_proto returns [20:30:40]Send response to host [20:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165845,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:30:40]free response buf [20:30:40]execute_script done [20:30:40]execute_script returns [20:30:40]free content buf [20:30:40]Sock 5.Close socket [20:30:40]Sock 5.Thread stoped [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:22]accept exits with 6 [20:32:22]New connection [20:32:22]New thread 3066920292 created [20:32:22]Thread 3066776932 joined [20:32:22]Waiting for new connection... [20:32:22] Sock 6.Parse request [20:32:22]Sock 6.Check first char [20:32:22]Sock 6.First char is OK [20:32:22]request: POST /json_proto HTTP/1.0 [20:32:22]Method: POST [20:32:22]URL: /json_proto [20:32:22]Method is POST - this is cgi request [20:32:22]url: /json_proto [20:32:22]query_string will be loaded in cgi processing [20:32:22]execute_cgi json_proto POST (null) [20:32:22]execute_cgi path=json_proto method=POST [20:32:22]POST find Content-Length [20:32:22]Host: 172.17.53.195:8080 [20:32:22]Content-Length: 677 [20:32:22]Content-Type: application/json [20:32:22] [20:32:22]POST finish read [20:32:22]Found Content-Length = 677 [20:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:22]execute_script... [20:32:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:22]POST & json_proto [20:32:22]process_json_proto [20:32:22]json parsed OK: [20:32:22]protocol is kg_v1.0 [20:32:22]action value=close_receipt [20:32:22]process_action close_receipt [20:32:22]cmd_close_receipt [20:32:22]MH_GetDate [20:32:22]Write to MH i2c: F0 00 00 E1 1B EB [20:32:22]Write i2c OK [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: F0 [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: F0 09 00 [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: F0 09 00 E1 1B 00 E5 68 15 67 21 48 4A 65 D5 [20:32:22]GetLastDocTimeStamp 1729456250 [20:32:22]current date 1729456357 [20:32:22]FM_GetShiftState [20:32:22]SAM_PROTO_GetShiftState [20:32:22]wFMCommunicate request_size=4 [20:32:22]MH_SAM_APDU [20:32:22]CAPDU: 80 13 01 00 [20:32:22]Write to MH i2c: E2 08 00 E2 1B 80 13 01 00 00 00 00 00 7A [20:32:22]Write i2c OK [20:32:22]MH_I2C_Read... [20:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:22]Read from MH i2c: E2 [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: E2 0E 00 [20:32:22]MH_I2C_Read... [20:32:22]Read from MH i2c: E2 0E 00 E2 1B 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C2 [20:32:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:32:22]wFMCommunicate OK [20:32:22]SAM_PROTO_GetShiftState done [20:32:22]FM_GetShiftState done [20:32:22]opened in 1729384561 [20:32:22]opened+sec_in_day 1729470961 [20:32:22]quantity*price = 50041 [20:32:22]sum+1 = 50042 [20:32:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 328 20.10.2024 20:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165846 ФПД: 236655743306075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203237&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165846&fm=236655743306075&tin=02508201610067®Number=0000000000091764&sum=50000 [20:32:24]StoreToDocumentArchive [20:32:24]shift 534 fd 165846 [20:32:24]save to /storage/0534/doc_00165846 [20:32:24]save last doc name /storage/0534/doc_00165846 to /storage/kkm_last_doc_name [20:32:24]save OK [20:32:24]Clear old archive folders... [20:32:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:24]tlvbuf is 01456660 [20:32:24]SAM_PROTO_ClearQueue [20:32:24]wFMCommunicate request_size=4 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 09 00 00 [20:32:24]Write to MH i2c: E2 08 00 EF 1B 80 09 00 00 00 00 00 00 7C [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 03 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 03 00 EF 1B 00 90 00 7E [20:32:24]RAPDU: 90 00 [20:32:24]wFMCommunicate OK [20:32:24]SAM_PROTO_ClearQueue done [20:32:24]KKMCreateOFDPacket [20:32:24]OFDProtocolAddRootSTLVToBuf [20:32:24]FM_MakeSignedData [20:32:24]FM_MakeSignedData [20:32:24]SAM_PROTO_SignData [20:32:24]wFMCommunicate request_size=4 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 0D 01 02 [20:32:24]Write to MH i2c: E2 08 00 F0 1B 80 0D 01 02 00 00 00 00 84 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 03 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 03 00 F0 1B 00 90 00 7F [20:32:24]RAPDU: 90 00 [20:32:24]wFMCommunicate OK [20:32:24]wFMCommunicate request_size=255 [20:32:24]MH_SAM_APDU [20:32: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 E5 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 87 02 00 35 04 06 00 D7 [20:32:24]Write to MH i2c: E2 02 01 F1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 E5 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 87 02 00 35 04 06 00 D7 00 00 7A [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 03 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 03 00 F1 1B 00 90 00 80 [20:32:24]RAPDU: 90 00 [20:32:24]wFMCommunicate OK [20:32:24]wFMCommunicate request_size=10 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 0D 02 02 05 3C B5 83 89 5B [20:32:24]Write to MH i2c: E2 0D 00 F2 1B 80 0D 02 02 05 00 3C B5 83 89 5B 00 00 E9 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 03 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 03 00 F2 1B 00 90 00 81 [20:32:24]RAPDU: 90 00 [20:32:24]wFMCommunicate OK [20:32:24]wFMCommunicate request_size=4 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 0D 03 02 [20:32:24]Write to MH i2c: E2 08 00 F3 1B 80 0D 03 02 00 00 00 00 89 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 0B 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 0B 00 F3 1B 00 A8 2B E6 3C 1A 87 6C 62 90 00 EE [20:32:24]RAPDU: A8 2B E6 3C 1A 87 6C 62 90 00 [20:32:24]wFMCommunicate OK [20:32:24]SAM_PROTO_SignData done [20:32:24]FM_MakeSignedData done [20:32:24]CreateOFDProtocolMessage [20:32:24]wFMCommunicate request_size=4 [20:32:24]MH_SAM_APDU [20:32:24]CAPDU: 80 11 00 00 [20:32:24]Write to MH i2c: E2 08 00 F4 1B 80 11 00 00 00 00 00 00 89 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:24]Read from MH i2c: E2 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 17 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: E2 17 00 F4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [20:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:32:24]wFMCommunicate OK [20:32:24]CreateOFDProtocolMessage done [20:32:24]OFDSenderStorePacket 165846 [20:32:24]StoreOFDPacket docnum=165846 [20:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 54 46 07 01 91 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 E5 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 87 02 00 35 04 06 00 D7 3C B5 83 89 5B A8 2B E6 3C 1A 87 6C 62 [20:32:24]CheckFolder [20:32:24]dirname=/storage/ofd_packets [20:32:24]CheckFolder done [20:32:24]ProducePacketName [20:32:24]name=ofd_packets/00165846 [20:32:24]NVStorageSaveData ofd_packets/00165846 [20:32:24]File name is /storage/ofd_packets/00165846 [20:32:24]Write 301 bytes [20:32:24]NVStorageSaveData done [20:32:24]OFDSenderStorePacket done [20:32:24]KKMCreateOFDPacket done [20:32:24]NVStorageSaveData kkm_last_timestamp [20:32:24]File name is /storage/kkm_last_timestamp [20:32:24]Write 4 bytes [20:32:24]NVStorageSaveData done [20:32:24]ExternCall_PrintAddStr [20:32:24]wPrintStart [20:32:24]Write to MH i2c: 01 00 00 F5 1B 10 [20:32:24]Write i2c OK [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: 01 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: 01 07 00 [20:32:24]MH_I2C_Read... [20:32:24]Read from MH i2c: 01 07 00 F5 1B 00 00 00 00 00 FF 0F 25 [20:32:24]RasterBufferAndPrint [20:32:24]line Счет N : (1)220414 [20:32:24]line ИНН: 02508201610067 [20:32:24]line Контрольно-Кассовый Чек [20:32:24]line ПРОДАЖА [20:32:24]line ТРК (МРК, ГНК) : 23 [20:32:24]line Товар: 2710124130 [20:32:24]line Аи-92-К-5 [20:32:24]line 7.480 * 66.90 [20:32:24]line = 500.41 [20:32:24]line НДС 12% НСП 1% [20:32:24]line > о реализуемом товаре [20:32:24]line ОКРУГЛЕНИЕ: -0.41 [20:32:24]line ИТОГО: 500.00 [20:32:24]line Внесено: 500.00 [20:32:24]line СДАЧА: 0.00 [20:32:24]line НСП 1% : 4.43 [20:32:24]line НДС 12% : 53.14 [20:32:24]line Наличными: 500.00 [20:32:24]line Безнал.: 0.00 [20:32:24]line Место: АЗС № 161 "Партнер Нефть" [20:32:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:32:24]line СНО: Общий режим [20:32:24]line Чек 328 20.10.2024 20:32 [20:32:24]line Смена: 534 ФФД: 1.0 [20:32:24]line ЗНМ: 0300000104 [20:32:24]line РНМ: 0000000000091764 [20:32:24]line Версия ККМ: 001 [20:32:24]line ФМ: 0000000000871759 [20:32:24]line ФД: 165846 [20:32:24]line ФПД: 236655743306075 [20:32:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203237&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165846&fm=236655743306075&tin=02508201610067®Number=0000000000091764&sum=50000 [20:32:24]OFD Sender: Processing packet 165846 [packets to send 48, broken 47] [20:32:24]ProducePacketName [20:32:24]name=ofd_packets/00165846 [20:32:24]OFD Sender: To server: pG, [20:32:24]CommunicateWithHost lk.salyk.kg:30040 [20:32:24]ConnectInit lk.salyk.kg [20:32:24]written 0, free lines is 4095 [20:32:25]Connected sock=7 [20:32:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 54 46 07 01 91 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 E5 68 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 87 02 00 35 04 06 00 D7 3C B5 83 89 5B A8 2B E6 3C 1A 87 6C 62 [20:32:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 61 01 47 00 F9 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 31 37 35 39 10 04 04 00 D6 87 02 00 F4 03 04 00 56 0F 15 67 B6 04 01 00 00 BA 19 0C AC 7B C1 CC 5D [20:32:25]CommunicateWithHost err = 0 [20:32:25]CheckOFDResponse [20:32:25]1017 (14) - 77093643461234 [20:32:25]1041 (16) - 0000000000871759 [20:32:25]1040 (4) - 165846 [20:32:25]1012 (4) - 20.10.2024 14:10 [20:32:25]1206 (1) - 0 [20:32:25]OFD Sender: Remove packet 165846 [20:32:25]ProducePacketName [20:32:25]name=ofd_packets/00165846 [20:32:25]NVStorageDeleteData [20:32:25]Write to MH i2c: 01 00 00 20 1C 3C [20:32:25]Write i2c OK [20:32:25]MH_I2C_Read... [20:32:25]Read from MH i2c: 01 [20:32:25]MH_I2C_Read... [20:32:25]Read from MH i2c: 01 07 00 [20:32:25]MH_I2C_Read... [20:32:25]Read from MH i2c: 01 07 00 20 1C 00 00 00 00 00 C3 0C 12 [20:32:25]RasterBufferAndPrint [20:32:25]line [20:32:25]line [20:32:25]line [20:32:25]line [20:32:25]line [20:32:25]written 0, free lines is 3276 [20:32:25]MH_Cut [20:32:25]Write to MH i2c: D1 01 00 27 1C 01 15 [20:32:25]Write i2c OK [20:32:25]MH_I2C_Read... [20:32:25]Read from MH i2c: D1 [20:32:25]MH_I2C_Read... [20:32:25]Read from MH i2c: D1 01 00 [20:32:25]MH_I2C_Read... [20:32:25]Read from MH i2c: D1 01 00 27 1C 00 14 [20:32:25]Write to MH i2c: 01 00 00 28 1C 44 [20:32:25]Write i2c OK [20:32:25]MH_I2C_Read... [20:32:25]OFD Sender: No OFD packet to send [20:32:26]*** Cut start [20:32:26]*** Partial cut [20:32:26]*** CUTSNS_PIN = 1 [20:32:26]*** CUTSNS_PIN = 0 [20:32:26]*** Brake cut motor [20:32:26]Read from MH i2c: 01 [20:32:26]MH_I2C_Read... [20:32:26]*** Stop cut motor [20:32:26]*** Cut end [20:32:26]Read from MH i2c: 01 07 00 [20:32:26]MH_I2C_Read... [20:32:26]Read from MH i2c: 01 07 00 28 1C 00 00 00 00 00 FF 0F 59 [20:32:26]process_action close_receipt done [20:32:26]requested_data is exist [20:32:26]produce_requested_data [20:32:26]requested_item fm.sn is exist - process it [20:32:26]wFMCommunicate request_size=4 [20:32:26]MH_SAM_APDU [20:32:26]CAPDU: 80 11 00 00 [20:32:26]Write to MH i2c: E2 08 00 29 1C 80 11 00 00 00 00 00 00 BF [20:32:26]Write i2c OK [20:32:26]MH_I2C_Read... [20:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:26]Read from MH i2c: E2 [20:32:26]MH_I2C_Read... [20:32:26]Read from MH i2c: E2 17 00 [20:32:26]MH_I2C_Read... [20:32:26]Read from MH i2c: E2 17 00 29 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [20:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:32:26]wFMCommunicate OK [20:32:26]requested_item fd.num is exist - process it [20:32:26]SAM_PROTO_GetFieldsCounters [20:32:26]wFMCommunicate request_size=4 [20:32:26]MH_SAM_APDU [20:32:26]CAPDU: 80 13 00 00 [20:32:26]Write to MH i2c: E2 08 00 2A 1C 80 13 00 00 00 00 00 00 C2 [20:32:26]Write i2c OK [20:32:26]MH_I2C_Read... [20:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:27]Read from MH i2c: E2 [20:32:27]MH_I2C_Read... [20:32:27]Read from MH i2c: E2 62 00 [20:32:27]MH_I2C_Read... [20:32:27]Read from MH i2c: E2 62 00 2A 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 87 02 00 0E 04 04 00 16 02 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 3C [20:32:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 87 02 00 0E 04 04 00 16 02 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:32:27]wFMCommunicate OK [20:32:27]SAM_PROTO_GetFieldsCounters done [20:32:27]requested_item shift.num is exist - process it [20:32:27]requested_item shift.opened is exist - process it [20:32:27]req_shift_opened [20:32:27]FM_GetShiftState [20:32:27]SAM_PROTO_GetShiftState [20:32:27]wFMCommunicate request_size=4 [20:32:27]MH_SAM_APDU [20:32:27]CAPDU: 80 13 01 00 [20:32:27]Write to MH i2c: E2 08 00 2B 1C 80 13 01 00 00 00 00 00 C4 [20:32:27]Write i2c OK [20:32:27]MH_I2C_Read... [20:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:27]Read from MH i2c: E2 [20:32:27]MH_I2C_Read... [20:32:27]Read from MH i2c: E2 0E 00 [20:32:27]MH_I2C_Read... [20:32:27]Read from MH i2c: E2 0E 00 2B 1C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0C [20:32:27]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:32:27]wFMCommunicate OK [20:32:27]SAM_PROTO_GetShiftState done [20:32:27]FM_GetShiftState done [20:32:27]req_shift_opened done [20:32:27]requested_item shift.open_date is exist - process it [20:32:27]req_shift_open_date [20:32:27]req_shift_open_date done [20:32:27]produce_requested_data done [20:32:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165846,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:32:27]process_action_free close_receipt [20:32:27]json_value_free [20:32:27]json_value_free done [20:32:27]process_json_proto returns [20:32:27]Send response to host [20:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165846,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:32:27]free response buf [20:32:27]execute_script done [20:32:27]execute_script returns [20:32:27]free content buf [20:32:27]Sock 6.Close socket [20:32:27]Sock 6.Thread stoped [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]accept exits with 5 [20:34:55]New connection [20:34:55]New thread 3066776932 created [20:34:55]Thread 3066920292 joined [20:34:55]Waiting for new connection... [20:34:55] Sock 5.Parse request [20:34:55]Sock 5.Check first char [20:34:55]Sock 5.First char is OK [20:34:55]request: POST /json_proto HTTP/1.0 [20:34:55]Method: POST [20:34:55]URL: /json_proto [20:34:55]Method is POST - this is cgi request [20:34:55]url: /json_proto [20:34:55]query_string will be loaded in cgi processing [20:34:55]execute_cgi json_proto POST (null) [20:34:55]execute_cgi path=json_proto method=POST [20:34:55]POST find Content-Length [20:34:55]Host: 172.17.53.195:8080 [20:34:55]Content-Length: 682 [20:34:55]Content-Type: application/json [20:34:55] [20:34:55]POST finish read [20:34:55]Found Content-Length = 682 [20:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:55]execute_script... [20:34: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)220415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:55]POST & json_proto [20:34:55]process_json_proto [20:34:55]json parsed OK: [20:34:55]protocol is kg_v1.0 [20:34:55]action value=close_receipt [20:34:55]process_action close_receipt [20:34:55]cmd_close_receipt [20:34:55]MH_GetDate [20:34:55]Write to MH i2c: F0 00 00 2C 1C 37 [20:34:55]Write i2c OK [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: F0 [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: F0 09 00 [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: F0 09 00 2C 1C 00 7D 69 15 67 21 48 4A 65 BA [20:34:55]GetLastDocTimeStamp 1729456357 [20:34:55]current date 1729456509 [20:34:55]FM_GetShiftState [20:34:55]SAM_PROTO_GetShiftState [20:34:55]wFMCommunicate request_size=4 [20:34:55]MH_SAM_APDU [20:34:55]CAPDU: 80 13 01 00 [20:34:55]Write to MH i2c: E2 08 00 2D 1C 80 13 01 00 00 00 00 00 C6 [20:34:55]Write i2c OK [20:34:55]MH_I2C_Read... [20:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:55]Read from MH i2c: E2 [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: E2 0E 00 [20:34:55]MH_I2C_Read... [20:34:55]Read from MH i2c: E2 0E 00 2D 1C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0E [20:34:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:34:55]wFMCommunicate OK [20:34:55]SAM_PROTO_GetShiftState done [20:34:55]FM_GetShiftState done [20:34:55]opened in 1729384561 [20:34:55]opened+sec_in_day 1729470961 [20:34:55]quantity*price = 100015 [20:34:55]sum+1 = 100017 [20:34:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 329 20.10.2024 20:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165847 ФПД: 50968756320237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203509&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165847&fm=50968756320237&tin=02508201610067®Number=0000000000091764&sum=100000 [20:34:56]StoreToDocumentArchive [20:34:56]shift 534 fd 165847 [20:34:56]save to /storage/0534/doc_00165847 [20:34:56]save last doc name /storage/0534/doc_00165847 to /storage/kkm_last_doc_name [20:34:56]save OK [20:34:56]Clear old archive folders... [20:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:56]tlvbuf is 015BCF40 [20:34:56]SAM_PROTO_ClearQueue [20:34:56]wFMCommunicate request_size=4 [20:34:56]MH_SAM_APDU [20:34:56]CAPDU: 80 09 00 00 [20:34:56]Write to MH i2c: E2 08 00 3A 1C 80 09 00 00 00 00 00 00 C8 [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:56]Read from MH i2c: E2 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 3A 1C 00 90 00 CA [20:34:56]RAPDU: 90 00 [20:34:56]wFMCommunicate OK [20:34:56]SAM_PROTO_ClearQueue done [20:34:56]KKMCreateOFDPacket [20:34:56]OFDProtocolAddRootSTLVToBuf [20:34:56]FM_MakeSignedData [20:34:56]FM_MakeSignedData [20:34:56]SAM_PROTO_SignData [20:34:56]wFMCommunicate request_size=4 [20:34:56]MH_SAM_APDU [20:34:56]CAPDU: 80 0D 01 02 [20:34:56]Write to MH i2c: E2 08 00 3B 1C 80 0D 01 02 00 00 00 00 D0 [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:56]Read from MH i2c: E2 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 3B 1C 00 90 00 CB [20:34:56]RAPDU: 90 00 [20:34:56]wFMCommunicate OK [20:34:56]wFMCommunicate request_size=255 [20:34:56]MH_SAM_APDU [20:34: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 7D 69 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 87 02 00 35 04 06 00 2E [20:34:56]Write to MH i2c: E2 02 01 3C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 7D 69 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 87 02 00 35 04 06 00 2E 00 00 B2 [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:56]Read from MH i2c: E2 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 3C 1C 00 90 00 CC [20:34:56]RAPDU: 90 00 [20:34:56]wFMCommunicate OK [20:34:56]wFMCommunicate request_size=10 [20:34:56]MH_SAM_APDU [20:34:56]CAPDU: 80 0D 02 02 05 5B 16 9D 77 ED [20:34:56]Write to MH i2c: E2 0D 00 3D 1C 80 0D 02 02 05 00 5B 16 9D 77 ED 00 00 4F [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:56]Read from MH i2c: E2 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 03 00 3D 1C 00 90 00 CD [20:34:56]RAPDU: 90 00 [20:34:56]wFMCommunicate OK [20:34:56]wFMCommunicate request_size=4 [20:34:56]MH_SAM_APDU [20:34:56]CAPDU: 80 0D 03 02 [20:34:56]Write to MH i2c: E2 08 00 3E 1C 80 0D 03 02 00 00 00 00 D5 [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:56]Read from MH i2c: E2 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 0B 00 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: E2 0B 00 3E 1C 00 7F D3 7C B0 C9 B6 96 50 90 00 B9 [20:34:56]RAPDU: 7F D3 7C B0 C9 B6 96 50 90 00 [20:34:56]wFMCommunicate OK [20:34:56]SAM_PROTO_SignData done [20:34:56]FM_MakeSignedData done [20:34:56]CreateOFDProtocolMessage [20:34:56]wFMCommunicate request_size=4 [20:34:56]MH_SAM_APDU [20:34:56]CAPDU: 80 11 00 00 [20:34:56]Write to MH i2c: E2 08 00 3F 1C 80 11 00 00 00 00 00 00 D5 [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:57]Read from MH i2c: E2 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 17 00 [20:34:57]MH_I2C_Read... [20:34:57]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 31 37 35 39 90 00 2D [20:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:34:57]wFMCommunicate OK [20:34:57]CreateOFDProtocolMessage done [20:34:57]OFDSenderStorePacket 165847 [20:34:57]StoreOFDPacket docnum=165847 [20:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A0 7E 07 01 BF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 7D 69 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 87 02 00 35 04 06 00 2E 5B 16 9D 77 ED 7F D3 7C B0 C9 B6 96 50 [20:34:57]CheckFolder [20:34:57]dirname=/storage/ofd_packets [20:34:57]CheckFolder done [20:34:57]ProducePacketName [20:34:57]name=ofd_packets/00165847 [20:34:57]NVStorageSaveData ofd_packets/00165847 [20:34:57]File name is /storage/ofd_packets/00165847 [20:34:57]Write 301 bytes [20:34:57]NVStorageSaveData done [20:34:57]OFDSenderStorePacket done [20:34:57]KKMCreateOFDPacket done [20:34:57]NVStorageSaveData kkm_last_timestamp [20:34:57]File name is /storage/kkm_last_timestamp [20:34:57]Write 4 bytes [20:34:57]NVStorageSaveData done [20:34:57]ExternCall_PrintAddStr [20:34:57]wPrintStart [20:34:57]Write to MH i2c: 01 00 00 40 1C 5C [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 07 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 07 00 40 1C 00 00 00 00 00 FF 0F 71 [20:34:57]RasterBufferAndPrint [20:34:57]line Счет N : (1)220415 [20:34:57]line ИНН: 02508201610067 [20:34:57]line Контрольно-Кассовый Чек [20:34:57]line ПРОДАЖА [20:34:57]line ТРК (МРК, ГНК) : 23 [20:34:57]line Товар: 2710124130 [20:34:57]line Аи-92-К-5 [20:34:57]line 14.950 * 66.90 [20:34:57]line = 1000.16 [20:34:57]line НДС 12% НСП 1% [20:34:57]line > о реализуемом товаре [20:34:57]line ОКРУГЛЕНИЕ: -0.16 [20:34:57]line ИТОГО: 1000.00 [20:34:57]line Внесено: 1000.00 [20:34:57]line СДАЧА: 0.00 [20:34:57]line НСП 1% : 8.85 [20:34:57]line НДС 12% : 106.21 [20:34:57]line Наличными: 1000.00 [20:34:57]line Безнал.: 0.00 [20:34:57]line Место: АЗС № 161 "Партнер Нефть" [20:34:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:34:57]line СНО: Общий режим [20:34:57]line Чек 329 20.10.2024 20:35 [20:34:57]line Смена: 534 ФФД: 1.0 [20:34:57]line ЗНМ: 0300000104 [20:34:57]line РНМ: 0000000000091764 [20:34:57]line Версия ККМ: 001 [20:34:57]line ФМ: 0000000000871759 [20:34:57]line ФД: 165847 [20:34:57]line ФПД: 50968756320237 [20:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203509&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165847&fm=50968756320237&tin=02508201610067®Number=0000000000091764&sum=100000 [20:34:57]OFD Sender: Processing packet 165847 [packets to send 48, broken 47] [20:34:57]ProducePacketName [20:34:57]name=ofd_packets/00165847 [20:34:57]OFD Sender: To server: pG, [20:34:57]CommunicateWithHost lk.salyk.kg:30040 [20:34:57]ConnectInit lk.salyk.kg [20:34:57]written 0, free lines is 4095 [20:34:57]Connected sock=7 [20:34:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A0 7E 07 01 BF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 7D 69 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 87 02 00 35 04 06 00 2E 5B 16 9D 77 ED 7F D3 7C B0 C9 B6 96 50 [20:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A2 8C 47 00 08 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 87 02 00 F4 03 04 00 EE 0F 15 67 B6 04 01 00 00 BF 50 86 6A 8B 24 6F E8 [20:34:57]CommunicateWithHost err = 0 [20:34:57]CheckOFDResponse [20:34:57]1017 (14) - 77093643461234 [20:34:57]1041 (16) - 0000000000871759 [20:34:57]1040 (4) - 165847 [20:34:57]1012 (4) - 20.10.2024 14:13 [20:34:57]1206 (1) - 0 [20:34:57]OFD Sender: Remove packet 165847 [20:34:57]ProducePacketName [20:34:57]name=ofd_packets/00165847 [20:34:57]NVStorageDeleteData [20:34:57]Write to MH i2c: 01 00 00 6B 1C 87 [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 07 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: 01 07 00 6B 1C 00 00 00 00 00 C5 0C 5F [20:34:57]RasterBufferAndPrint [20:34:57]line [20:34:57]line [20:34:57]line [20:34:57]line [20:34:57]line [20:34:57]written 0, free lines is 3276 [20:34:57]MH_Cut [20:34:57]Write to MH i2c: D1 01 00 72 1C 01 60 [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: D1 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: D1 01 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: D1 01 00 72 1C 00 5F [20:34:57]Write to MH i2c: 01 00 00 73 1C 8F [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:58]OFD Sender: No OFD packet to send [20:34:58]*** Cut start [20:34:58]*** Partial cut [20:34:58]*** CUTSNS_PIN = 1 [20:34:58]*** CUTSNS_PIN = 0 [20:34:58]*** Brake cut motor [20:34:59]Read from MH i2c: 01 [20:34:59]MH_I2C_Read... [20:34:59]*** Stop cut motor [20:34:59]*** Cut end [20:34:59]Read from MH i2c: 01 07 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: 01 07 00 73 1C 00 00 00 00 00 FF 0F A4 [20:34:59]process_action close_receipt done [20:34:59]requested_data is exist [20:34:59]produce_requested_data [20:34:59]requested_item fm.sn is exist - process it [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 11 00 00 [20:34:59]Write to MH i2c: E2 08 00 74 1C 80 11 00 00 00 00 00 00 0A [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 17 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 17 00 74 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [20:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:34:59]wFMCommunicate OK [20:34:59]requested_item fd.num is exist - process it [20:34:59]SAM_PROTO_GetFieldsCounters [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 13 00 00 [20:34:59]Write to MH i2c: E2 08 00 75 1C 80 13 00 00 00 00 00 00 0D [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 62 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 62 00 75 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 87 02 00 0E 04 04 00 16 02 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 8B [20:34: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 87 02 00 0E 04 04 00 16 02 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 [20:34:59]wFMCommunicate OK [20:34:59]SAM_PROTO_GetFieldsCounters done [20:34:59]requested_item shift.num is exist - process it [20:34:59]requested_item shift.opened is exist - process it [20:34:59]req_shift_opened [20:34:59]FM_GetShiftState [20:34:59]SAM_PROTO_GetShiftState [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 13 01 00 [20:34:59]Write to MH i2c: E2 08 00 76 1C 80 13 01 00 00 00 00 00 0F [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 0E 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 0E 00 76 1C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 57 [20:34:59]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:34:59]wFMCommunicate OK [20:34:59]SAM_PROTO_GetShiftState done [20:34:59]FM_GetShiftState done [20:34:59]req_shift_opened done [20:34:59]requested_item shift.open_date is exist - process it [20:34:59]req_shift_open_date [20:34:59]req_shift_open_date done [20:34:59]produce_requested_data done [20:34:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165847,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:34:59]process_action_free close_receipt [20:34:59]json_value_free [20:34:59]json_value_free done [20:34:59]process_json_proto returns [20:34:59]Send response to host [20:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165847,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:34:59]free response buf [20:34:59]execute_script done [20:34:59]execute_script returns [20:34:59]free content buf [20:34:59]Sock 5.Close socket [20:34:59]Sock 5.Thread stoped [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]accept exits with 6 [20:36:58]New connection [20:36:58]New thread 3066920292 created [20:36:58]Thread 3066776932 joined [20:36:58]Waiting for new connection... [20:36:58] Sock 6.Parse request [20:36:58]Sock 6.Check first char [20:36:58]Sock 6.First char is OK [20:36:58]request: POST /json_proto HTTP/1.0 [20:36:58]Method: POST [20:36:58]URL: /json_proto [20:36:58]Method is POST - this is cgi request [20:36:58]url: /json_proto [20:36:58]query_string will be loaded in cgi processing [20:36:58]execute_cgi json_proto POST (null) [20:36:58]execute_cgi path=json_proto method=POST [20:36:58]POST find Content-Length [20:36:58]Host: 172.17.53.195:8080 [20:36:58]Content-Length: 682 [20:36:58]Content-Type: application/json [20:36:58] [20:36:58]POST finish read [20:36:58]Found Content-Length = 682 [20:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:58]execute_script... [20:36: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)220416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:58]POST & json_proto [20:36:58]process_json_proto [20:36:58]json parsed OK: [20:36:58]protocol is kg_v1.0 [20:36:58]action value=close_receipt [20:36:58]process_action close_receipt [20:36:58]cmd_close_receipt [20:36:58]MH_GetDate [20:36:58]Write to MH i2c: F0 00 00 77 1C 82 [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: F0 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: F0 09 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: F0 09 00 77 1C 00 F8 69 15 67 21 48 4A 65 80 [20:36:58]GetLastDocTimeStamp 1729456509 [20:36:58]current date 1729456632 [20:36:58]FM_GetShiftState [20:36:58]SAM_PROTO_GetShiftState [20:36:58]wFMCommunicate request_size=4 [20:36:58]MH_SAM_APDU [20:36:58]CAPDU: 80 13 01 00 [20:36:58]Write to MH i2c: E2 08 00 78 1C 80 13 01 00 00 00 00 00 11 [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:58]Read from MH i2c: E2 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 0E 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 0E 00 78 1C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 59 [20:36:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:36:58]wFMCommunicate OK [20:36:58]SAM_PROTO_GetShiftState done [20:36:58]FM_GetShiftState done [20:36:58]opened in 1729384561 [20:36:58]opened+sec_in_day 1729470961 [20:36:58]quantity*price = 100021 [20:36:58]sum+1 = 100023 [20:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 330 20.10.2024 20:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165848 ФПД: 19019351804705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203712&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165848&fm=19019351804705&tin=02508201610067®Number=0000000000091764&sum=100000 [20:36:59]StoreToDocumentArchive [20:36:59]shift 534 fd 165848 [20:36:59]save to /storage/0534/doc_00165848 [20:36:59]save last doc name /storage/0534/doc_00165848 to /storage/kkm_last_doc_name [20:36:59]save OK [20:36:59]Clear old archive folders... [20:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:59]tlvbuf is 014CB040 [20:36:59]SAM_PROTO_ClearQueue [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 09 00 00 [20:36:59]Write to MH i2c: E2 08 00 85 1C 80 09 00 00 00 00 00 00 13 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 85 1C 00 90 00 15 [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]SAM_PROTO_ClearQueue done [20:36:59]KKMCreateOFDPacket [20:36:59]OFDProtocolAddRootSTLVToBuf [20:36:59]FM_MakeSignedData [20:36:59]FM_MakeSignedData [20:36:59]SAM_PROTO_SignData [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 01 02 [20:36:59]Write to MH i2c: E2 08 00 86 1C 80 0D 01 02 00 00 00 00 1B [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 86 1C 00 90 00 16 [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]wFMCommunicate request_size=255 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 F8 69 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 87 02 00 35 04 06 00 11 [20:36:59]Write to MH i2c: E2 02 01 87 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 F8 69 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 87 02 00 35 04 06 00 11 00 00 80 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 87 1C 00 90 00 17 [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]wFMCommunicate request_size=10 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 02 02 05 4C 49 B5 4B 21 [20:36:59]Write to MH i2c: E2 0D 00 88 1C 80 0D 02 02 05 00 4C 49 B5 4B 21 00 00 DE [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 88 1C 00 90 00 18 [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 03 02 [20:36:59]Write to MH i2c: E2 08 00 89 1C 80 0D 03 02 00 00 00 00 20 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 0B 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 0B 00 89 1C 00 89 1E 47 95 02 F3 8E 10 90 00 37 [20:36:59]RAPDU: 89 1E 47 95 02 F3 8E 10 90 00 [20:36:59]wFMCommunicate OK [20:36:59]SAM_PROTO_SignData done [20:36:59]FM_MakeSignedData done [20:36:59]CreateOFDProtocolMessage [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 11 00 00 [20:36:59]Write to MH i2c: E2 08 00 8A 1C 80 11 00 00 00 00 00 00 20 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 17 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 17 00 8A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [20:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:36:59]wFMCommunicate OK [20:36:59]CreateOFDProtocolMessage done [20:36:59]OFDSenderStorePacket 165848 [20:36:59]StoreOFDPacket docnum=165848 [20:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B F3 07 01 F2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 F8 69 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 87 02 00 35 04 06 00 11 4C 49 B5 4B 21 89 1E 47 95 02 F3 8E 10 [20:36:59]CheckFolder [20:36:59]dirname=/storage/ofd_packets [20:36:59]CheckFolder done [20:36:59]ProducePacketName [20:36:59]name=ofd_packets/00165848 [20:36:59]NVStorageSaveData ofd_packets/00165848 [20:36:59]File name is /storage/ofd_packets/00165848 [20:36:59]Write 301 bytes [20:36:59]NVStorageSaveData done [20:36:59]OFDSenderStorePacket done [20:36:59]KKMCreateOFDPacket done [20:36:59]NVStorageSaveData kkm_last_timestamp [20:36:59]File name is /storage/kkm_last_timestamp [20:36:59]Write 4 bytes [20:36:59]NVStorageSaveData done [20:36:59]ExternCall_PrintAddStr [20:36:59]wPrintStart [20:36:59]Write to MH i2c: 01 00 00 8B 1C A7 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 07 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 07 00 8B 1C 00 00 00 00 00 FF 0F BC [20:36:59]RasterBufferAndPrint [20:36:59]line Счет N : (1)220416 [20:36:59]line ИНН: 02508201610067 [20:36:59]line Контрольно-Кассовый Чек [20:36:59]line ПРОДАЖА [20:36:59]line ТРК (МРК, ГНК) : 24 [20:36:59]line Товар: 2710124500 [20:36:59]line Аи-95-К-5 [20:36:59]line 13.480 * 74.20 [20:36:59]line = 1000.22 [20:36:59]line НДС 12% НСП 1% [20:36:59]line > о реализуемом товаре [20:36:59]line ОКРУГЛЕНИЕ: -0.22 [20:36:59]line ИТОГО: 1000.00 [20:36:59]line Внесено: 1000.00 [20:36:59]line СДАЧА: 0.00 [20:36:59]line НСП 1% : 8.85 [20:36:59]line НДС 12% : 106.22 [20:36:59]line Наличными: 1000.00 [20:36:59]line Безнал.: 0.00 [20:36:59]line Место: АЗС № 161 "Партнер Нефть" [20:36:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:36:59]line СНО: Общий режим [20:36:59]line Чек 330 20.10.2024 20:37 [20:36:59]line Смена: 534 ФФД: 1.0 [20:36:59]line ЗНМ: 0300000104 [20:36:59]line РНМ: 0000000000091764 [20:36:59]line Версия ККМ: 001 [20:36:59]line ФМ: 0000000000871759 [20:36:59]line ФД: 165848 [20:36:59]line ФПД: 19019351804705 [20:36:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203712&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165848&fm=19019351804705&tin=02508201610067®Number=0000000000091764&sum=100000 [20:37:00]OFD Sender: Processing packet 165848 [packets to send 48, broken 47] [20:37:00]ProducePacketName [20:37:00]name=ofd_packets/00165848 [20:37:00]OFD Sender: To server: pG, [20:37:00]CommunicateWithHost lk.salyk.kg:30040 [20:37:00]ConnectInit lk.salyk.kg [20:37:00]written 0, free lines is 4095 [20:37:00]Connected sock=7 [20:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B F3 07 01 F2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 F8 69 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 87 02 00 35 04 06 00 11 4C 49 B5 4B 21 89 1E 47 95 02 F3 8E 10 [20:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C1 B5 47 00 3C 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 31 37 35 39 10 04 04 00 D8 87 02 00 F4 03 04 00 69 10 15 67 B6 04 01 00 00 9D D0 1E A5 6F 0E 82 2B [20:37:00]CommunicateWithHost err = 0 [20:37:00]CheckOFDResponse [20:37:00]1017 (14) - 77093643461234 [20:37:00]1041 (16) - 0000000000871759 [20:37:00]1040 (4) - 165848 [20:37:00]1012 (4) - 20.10.2024 14:15 [20:37:00]1206 (1) - 0 [20:37:00]OFD Sender: Remove packet 165848 [20:37:00]ProducePacketName [20:37:00]name=ofd_packets/00165848 [20:37:00]NVStorageDeleteData [20:37:00]Write to MH i2c: 01 00 00 B6 1C D2 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 07 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 07 00 B6 1C 00 00 00 00 00 BC 0C A1 [20:37:00]RasterBufferAndPrint [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]written 0, free lines is 3268 [20:37:00]MH_Cut [20:37:00]Write to MH i2c: D1 01 00 BD 1C 01 AB [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 01 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 01 00 BD 1C 00 AA [20:37:00]Write to MH i2c: 01 00 00 BE 1C DA [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:01]OFD Sender: No OFD packet to send [20:37:01]*** Cut start [20:37:01]*** Partial cut [20:37:01]*** CUTSNS_PIN = 1 [20:37:01]*** CUTSNS_PIN = 0 [20:37:01]*** Brake cut motor [20:37:02]Read from MH i2c: 01 [20:37:02]MH_I2C_Read... [20:37:02]*** Stop cut motor [20:37:02]*** Cut end [20:37:02]Read from MH i2c: 01 07 00 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 FF 0F EF [20:37:02]process_action close_receipt done [20:37:02]requested_data is exist [20:37:02]produce_requested_data [20:37:02]requested_item fm.sn is exist - process it [20:37:02]wFMCommunicate request_size=4 [20:37:02]MH_SAM_APDU [20:37:02]CAPDU: 80 11 00 00 [20:37:02]Write to MH i2c: E2 08 00 BF 1C 80 11 00 00 00 00 00 00 55 [20:37:02]Write i2c OK [20:37:02]MH_I2C_Read... [20:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:02]Read from MH i2c: E2 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 17 00 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 17 00 BF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [20:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:37:02]wFMCommunicate OK [20:37:02]requested_item fd.num is exist - process it [20:37:02]SAM_PROTO_GetFieldsCounters [20:37:02]wFMCommunicate request_size=4 [20:37:02]MH_SAM_APDU [20:37:02]CAPDU: 80 13 00 00 [20:37:02]Write to MH i2c: E2 08 00 C0 1C 80 13 00 00 00 00 00 00 58 [20:37:02]Write i2c OK [20:37:02]MH_I2C_Read... [20:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:02]Read from MH i2c: E2 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 62 00 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 62 00 C0 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 87 02 00 0E 04 04 00 16 02 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 DA [20:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 87 02 00 0E 04 04 00 16 02 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 [20:37:02]wFMCommunicate OK [20:37:02]SAM_PROTO_GetFieldsCounters done [20:37:02]requested_item shift.num is exist - process it [20:37:02]requested_item shift.opened is exist - process it [20:37:02]req_shift_opened [20:37:02]FM_GetShiftState [20:37:02]SAM_PROTO_GetShiftState [20:37:02]wFMCommunicate request_size=4 [20:37:02]MH_SAM_APDU [20:37:02]CAPDU: 80 13 01 00 [20:37:02]Write to MH i2c: E2 08 00 C1 1C 80 13 01 00 00 00 00 00 5A [20:37:02]Write i2c OK [20:37:02]MH_I2C_Read... [20:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:02]Read from MH i2c: E2 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 0E 00 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 0E 00 C1 1C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A2 [20:37:02]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:37:02]wFMCommunicate OK [20:37:02]SAM_PROTO_GetShiftState done [20:37:02]FM_GetShiftState done [20:37:02]req_shift_opened done [20:37:02]requested_item shift.open_date is exist - process it [20:37:02]req_shift_open_date [20:37:02]req_shift_open_date done [20:37:02]produce_requested_data done [20:37:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165848,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:37:02]process_action_free close_receipt [20:37:02]json_value_free [20:37:02]json_value_free done [20:37:02]process_json_proto returns [20:37:02]Send response to host [20:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165848,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:37:02]free response buf [20:37:02]execute_script done [20:37:02]execute_script returns [20:37:02]free content buf [20:37:02]Sock 6.Close socket [20:37:02]Sock 6.Thread stoped [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:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43: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:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:24]accept exits with 5 [20:49:24]New connection [20:49:24]New thread 3066776932 created [20:49:24]Thread 3066920292 joined [20:49:24]Waiting for new connection... [20:49:24] Sock 5.Parse request [20:49:24]Sock 5.Check first char [20:49:24]Sock 5.First char is OK [20:49:24]request: POST /json_proto HTTP/1.0 [20:49:24]Method: POST [20:49:24]URL: /json_proto [20:49:24]Method is POST - this is cgi request [20:49:24]url: /json_proto [20:49:24]query_string will be loaded in cgi processing [20:49:24]execute_cgi json_proto POST (null) [20:49:24]execute_cgi path=json_proto method=POST [20:49:24]POST find Content-Length [20:49:24]Host: 172.17.53.195:8080 [20:49:24]Content-Length: 682 [20:49:24]Content-Type: application/json [20:49:24] [20:49:24]POST finish read [20:49:24]Found Content-Length = 682 [20:49:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:24]execute_script... [20:49: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)220419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:24]POST & json_proto [20:49:24]process_json_proto [20:49:24]json parsed OK: [20:49:24]protocol is kg_v1.0 [20:49:24]action value=close_receipt [20:49:24]process_action close_receipt [20:49:24]cmd_close_receipt [20:49:24]MH_GetDate [20:49:24]Write to MH i2c: F0 00 00 C2 1C CD [20:49:24]Write i2c OK [20:49:24]MH_I2C_Read... [20:49:24]Read from MH i2c: F0 [20:49:24]MH_I2C_Read... [20:49:24]Read from MH i2c: F0 09 00 [20:49:24]MH_I2C_Read... [20:49:24]Read from MH i2c: F0 09 00 C2 1C 00 E2 6C 15 67 21 48 4A 65 B8 [20:49:24]GetLastDocTimeStamp 1729456632 [20:49:24]current date 1729457378 [20:49:24]FM_GetShiftState [20:49:24]SAM_PROTO_GetShiftState [20:49:24]wFMCommunicate request_size=4 [20:49:24]MH_SAM_APDU [20:49:24]CAPDU: 80 13 01 00 [20:49:24]Write to MH i2c: E2 08 00 C3 1C 80 13 01 00 00 00 00 00 5C [20:49:24]Write i2c OK [20:49:24]MH_I2C_Read... [20:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:24]Read from MH i2c: E2 [20:49:24]MH_I2C_Read... [20:49:24]Read from MH i2c: E2 0E 00 [20:49:24]MH_I2C_Read... [20:49:24]Read from MH i2c: E2 0E 00 C3 1C 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A4 [20:49:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:49:24]wFMCommunicate OK [20:49:24]SAM_PROTO_GetShiftState done [20:49:24]FM_GetShiftState done [20:49:24]opened in 1729384561 [20:49:24]opened+sec_in_day 1729470961 [20:49:24]quantity*price = 100015 [20:49:24]sum+1 = 100017 [20:49: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 331 20.10.2024 20:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165849 ФПД: 260658724456951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204938&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165849&fm=260658724456951&tin=02508201610067®Number=0000000000091764&sum=100000 [20:49:25]StoreToDocumentArchive [20:49:25]shift 534 fd 165849 [20:49:25]save to /storage/0534/doc_00165849 [20:49:25]save last doc name /storage/0534/doc_00165849 to /storage/kkm_last_doc_name [20:49:25]save OK [20:49:25]Clear old archive folders... [20:49:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:25]tlvbuf is 01A4DFE0 [20:49:25]SAM_PROTO_ClearQueue [20:49:25]wFMCommunicate request_size=4 [20:49:25]MH_SAM_APDU [20:49:25]CAPDU: 80 09 00 00 [20:49:25]Write to MH i2c: E2 08 00 D0 1C 80 09 00 00 00 00 00 00 5E [20:49:25]Write i2c OK [20:49:25]MH_I2C_Read... [20:49:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:25]Read from MH i2c: E2 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 03 00 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 03 00 D0 1C 00 90 00 60 [20:49:25]RAPDU: 90 00 [20:49:25]wFMCommunicate OK [20:49:25]SAM_PROTO_ClearQueue done [20:49:25]KKMCreateOFDPacket [20:49:25]OFDProtocolAddRootSTLVToBuf [20:49:25]FM_MakeSignedData [20:49:25]FM_MakeSignedData [20:49:25]SAM_PROTO_SignData [20:49:25]wFMCommunicate request_size=4 [20:49:25]MH_SAM_APDU [20:49:25]CAPDU: 80 0D 01 02 [20:49:25]Write to MH i2c: E2 08 00 D1 1C 80 0D 01 02 00 00 00 00 66 [20:49:25]Write i2c OK [20:49:25]MH_I2C_Read... [20:49:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:25]Read from MH i2c: E2 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 03 00 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 03 00 D1 1C 00 90 00 61 [20:49:25]RAPDU: 90 00 [20:49:25]wFMCommunicate OK [20:49:25]wFMCommunicate request_size=255 [20:49:25]MH_SAM_APDU [20:49: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 E2 6C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 87 02 00 35 04 06 00 ED [20:49:25]Write to MH i2c: E2 02 01 D2 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 E2 6C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 87 02 00 35 04 06 00 ED 00 00 73 [20:49:25]Write i2c OK [20:49:25]MH_I2C_Read... [20:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:26]Read from MH i2c: E2 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: E2 03 00 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: E2 03 00 D2 1C 00 90 00 62 [20:49:26]RAPDU: 90 00 [20:49:26]wFMCommunicate OK [20:49:26]wFMCommunicate request_size=10 [20:49:26]MH_SAM_APDU [20:49:26]CAPDU: 80 0D 02 02 05 11 56 AD C9 F7 [20:49:26]Write to MH i2c: E2 0D 00 D3 1C 80 0D 02 02 05 00 11 56 AD C9 F7 00 00 47 [20:49:26]Write i2c OK [20:49:26]MH_I2C_Read... [20:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:26]Read from MH i2c: E2 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: E2 03 00 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: E2 03 00 D3 1C 00 90 00 63 [20:49:26]RAPDU: 90 00 [20:49:26]wFMCommunicate OK [20:49:26]wFMCommunicate request_size=4 [20:49:26]MH_SAM_APDU [20:49:26]CAPDU: 80 0D 03 02 [20:49:26]Write to MH i2c: E2 08 00 D4 1C 80 0D 03 02 00 00 00 00 6B [20:49:26]Write i2c OK [20:49:26]MH_I2C_Read... [20:49:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:26]Read from MH i2c: E2 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: E2 0B 00 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: E2 0B 00 D4 1C 00 B9 48 18 51 EC 08 56 E2 90 00 02 [20:49:26]RAPDU: B9 48 18 51 EC 08 56 E2 90 00 [20:49:26]wFMCommunicate OK [20:49:26]SAM_PROTO_SignData done [20:49:26]FM_MakeSignedData done [20:49:26]CreateOFDProtocolMessage [20:49:26]wFMCommunicate request_size=4 [20:49:26]MH_SAM_APDU [20:49:26]CAPDU: 80 11 00 00 [20:49:26]Write to MH i2c: E2 08 00 D5 1C 80 11 00 00 00 00 00 00 6B [20:49:26]Write i2c OK [20:49:26]MH_I2C_Read... [20:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:26]Read from MH i2c: E2 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: E2 17 00 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: E2 17 00 D5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [20:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:49:26]wFMCommunicate OK [20:49:26]CreateOFDProtocolMessage done [20:49:26]OFDSenderStorePacket 165849 [20:49:26]StoreOFDPacket docnum=165849 [20:49:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5C 2D 07 01 F6 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 E2 6C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 87 02 00 35 04 06 00 ED 11 56 AD C9 F7 B9 48 18 51 EC 08 56 E2 [20:49:26]CheckFolder [20:49:26]dirname=/storage/ofd_packets [20:49:26]CheckFolder done [20:49:26]ProducePacketName [20:49:26]name=ofd_packets/00165849 [20:49:26]NVStorageSaveData ofd_packets/00165849 [20:49:26]File name is /storage/ofd_packets/00165849 [20:49:26]Write 301 bytes [20:49:26]NVStorageSaveData done [20:49:26]OFDSenderStorePacket done [20:49:26]KKMCreateOFDPacket done [20:49:26]NVStorageSaveData kkm_last_timestamp [20:49:26]File name is /storage/kkm_last_timestamp [20:49:26]Write 4 bytes [20:49:26]NVStorageSaveData done [20:49:26]ExternCall_PrintAddStr [20:49:26]wPrintStart [20:49:26]Write to MH i2c: 01 00 00 D6 1C F2 [20:49:26]Write i2c OK [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: 01 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: 01 07 00 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: 01 07 00 D6 1C 00 00 00 00 00 FF 0F 07 [20:49:26]RasterBufferAndPrint [20:49:26]line Счет N : (1)220419 [20:49:26]line ИНН: 02508201610067 [20:49:26]line Контрольно-Кассовый Чек [20:49:26]line ПРОДАЖА [20:49:26]line ТРК (МРК, ГНК) : 43 [20:49:26]line Товар: 2710124130 [20:49:26]line Аи-92-К-5 [20:49:26]line 14.950 * 66.90 [20:49:26]line = 1000.16 [20:49:26]line НДС 12% НСП 1% [20:49:26]line > о реализуемом товаре [20:49:26]line ОКРУГЛЕНИЕ: -0.16 [20:49:26]line ИТОГО: 1000.00 [20:49:26]line Внесено: 1000.00 [20:49:26]line СДАЧА: 0.00 [20:49:26]line НСП 1% : 8.85 [20:49:26]line НДС 12% : 106.21 [20:49:26]line Наличными: 1000.00 [20:49:26]line Безнал.: 0.00 [20:49:26]line Место: АЗС № 161 "Партнер Нефть" [20:49:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:49:26]line СНО: Общий режим [20:49:26]line Чек 331 20.10.2024 20:49 [20:49:26]line Смена: 534 ФФД: 1.0 [20:49:26]line ЗНМ: 0300000104 [20:49:26]line РНМ: 0000000000091764 [20:49:26]line Версия ККМ: 001 [20:49:26]line ФМ: 0000000000871759 [20:49:26]line ФД: 165849 [20:49:26]line ФПД: 260658724456951 [20:49:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204938&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165849&fm=260658724456951&tin=02508201610067®Number=0000000000091764&sum=100000 [20:49:26]OFD Sender: Processing packet 165849 [packets to send 48, broken 47] [20:49:26]ProducePacketName [20:49:26]name=ofd_packets/00165849 [20:49:26]OFD Sender: To server: pG, [20:49:26]CommunicateWithHost lk.salyk.kg:30040 [20:49:26]ConnectInit lk.salyk.kg [20:49:26]written 0, free lines is 4095 [20:49:26]Connected sock=7 [20:49:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5C 2D 07 01 F6 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 E2 6C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 87 02 00 35 04 06 00 ED 11 56 AD C9 F7 B9 48 18 51 EC 08 56 E2 [20:49:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D1 12 47 00 3B 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 87 02 00 F4 03 04 00 53 13 15 67 B6 04 01 00 00 01 5F 9D A8 B0 E2 18 36 [20:49:26]CommunicateWithHost err = 0 [20:49:26]CheckOFDResponse [20:49:26]1017 (14) - 77093643461234 [20:49:26]1041 (16) - 0000000000871759 [20:49:26]1040 (4) - 165849 [20:49:26]1012 (4) - 20.10.2024 14:27 [20:49:26]1206 (1) - 0 [20:49:26]OFD Sender: Remove packet 165849 [20:49:26]ProducePacketName [20:49:26]name=ofd_packets/00165849 [20:49:26]NVStorageDeleteData [20:49:26]Write to MH i2c: 01 00 00 01 1D 1E [20:49:26]Write i2c OK [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: 01 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: 01 07 00 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: 01 07 00 01 1D 00 00 00 00 00 C4 0C F5 [20:49:26]RasterBufferAndPrint [20:49:26]line [20:49:26]line [20:49:26]line [20:49:26]line [20:49:26]line [20:49:26]written 0, free lines is 3274 [20:49:26]MH_Cut [20:49:26]Write to MH i2c: D1 01 00 08 1D 01 F7 [20:49:26]Write i2c OK [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: D1 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: D1 01 00 [20:49:26]MH_I2C_Read... [20:49:26]Read from MH i2c: D1 01 00 08 1D 00 F6 [20:49:26]Write to MH i2c: 01 00 00 09 1D 26 [20:49:27]Write i2c OK [20:49:27]MH_I2C_Read... [20:49:27]OFD Sender: No OFD packet to send [20:49:27]*** Cut start [20:49:27]*** Partial cut [20:49:27]*** CUTSNS_PIN = 1 [20:49:27]*** CUTSNS_PIN = 0 [20:49:28]*** Brake cut motor [20:49:28]Read from MH i2c: 01 [20:49:28]MH_I2C_Read... [20:49:28]*** Stop cut motor [20:49:28]*** Cut end [20:49:28]Read from MH i2c: 01 07 00 [20:49:28]MH_I2C_Read... [20:49:28]Read from MH i2c: 01 07 00 09 1D 00 00 00 00 00 FF 0F 3B [20:49:28]process_action close_receipt done [20:49:28]requested_data is exist [20:49:28]produce_requested_data [20:49:28]requested_item fm.sn is exist - process it [20:49:28]wFMCommunicate request_size=4 [20:49:28]MH_SAM_APDU [20:49:28]CAPDU: 80 11 00 00 [20:49:28]Write to MH i2c: E2 08 00 0A 1D 80 11 00 00 00 00 00 00 A1 [20:49:28]Write i2c OK [20:49:28]MH_I2C_Read... [20:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:28]Read from MH i2c: E2 [20:49:28]MH_I2C_Read... [20:49:28]Read from MH i2c: E2 17 00 [20:49:28]MH_I2C_Read... [20:49:28]Read from MH i2c: E2 17 00 0A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [20:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:49:28]wFMCommunicate OK [20:49:28]requested_item fd.num is exist - process it [20:49:28]SAM_PROTO_GetFieldsCounters [20:49:28]wFMCommunicate request_size=4 [20:49:28]MH_SAM_APDU [20:49:28]CAPDU: 80 13 00 00 [20:49:28]Write to MH i2c: E2 08 00 0B 1D 80 13 00 00 00 00 00 00 A4 [20:49:28]Write i2c OK [20:49:28]MH_I2C_Read... [20:49:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:28]Read from MH i2c: E2 [20:49:28]MH_I2C_Read... [20:49:28]Read from MH i2c: E2 62 00 [20:49:28]MH_I2C_Read... [20:49:28]Read from MH i2c: E2 62 00 0B 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 87 02 00 0E 04 04 00 16 02 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 2A [20:49:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 87 02 00 0E 04 04 00 16 02 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 [20:49:28]wFMCommunicate OK [20:49:28]SAM_PROTO_GetFieldsCounters done [20:49:28]requested_item shift.num is exist - process it [20:49:28]requested_item shift.opened is exist - process it [20:49:28]req_shift_opened [20:49:28]FM_GetShiftState [20:49:28]SAM_PROTO_GetShiftState [20:49:28]wFMCommunicate request_size=4 [20:49:28]MH_SAM_APDU [20:49:28]CAPDU: 80 13 01 00 [20:49:28]Write to MH i2c: E2 08 00 0C 1D 80 13 01 00 00 00 00 00 A6 [20:49:28]Write i2c OK [20:49:28]MH_I2C_Read... [20:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:28]Read from MH i2c: E2 [20:49:28]MH_I2C_Read... [20:49:28]Read from MH i2c: E2 0E 00 [20:49:28]MH_I2C_Read... [20:49:28]Read from MH i2c: E2 0E 00 0C 1D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EE [20:49:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:49:28]wFMCommunicate OK [20:49:28]SAM_PROTO_GetShiftState done [20:49:28]FM_GetShiftState done [20:49:28]req_shift_opened done [20:49:28]requested_item shift.open_date is exist - process it [20:49:28]req_shift_open_date [20:49:28]req_shift_open_date done [20:49:28]produce_requested_data done [20:49:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165849,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:49:28]process_action_free close_receipt [20:49:28]json_value_free [20:49:28]json_value_free done [20:49:28]process_json_proto returns [20:49:28]Send response to host [20:49:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165849,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:49:28]free response buf [20:49:28]execute_script done [20:49:28]execute_script returns [20:49:28]free content buf [20:49:28]Sock 5.Close socket [20:49:28]Sock 5.Thread stoped [20:49:32]OFD Sender: No OFD packet to send [20:49:36]accept exits with 6 [20:49:36]New connection [20:49:36]New thread 3066920292 created [20:49:36]Thread 3066776932 joined [20:49:36]Waiting for new connection... [20:49:36] Sock 6.Parse request [20:49:36]Sock 6.Check first char [20:49:36]Sock 6.First char is OK [20:49:36]request: POST /json_proto HTTP/1.0 [20:49:36]Method: POST [20:49:36]URL: /json_proto [20:49:36]Method is POST - this is cgi request [20:49:36]url: /json_proto [20:49:36]query_string will be loaded in cgi processing [20:49:36]execute_cgi json_proto POST (null) [20:49:36]execute_cgi path=json_proto method=POST [20:49:36]POST find Content-Length [20:49:36]Host: 172.17.53.195:8080 [20:49:36]Content-Length: 682 [20:49:36]Content-Type: application/json [20:49:36] [20:49:36]POST finish read [20:49:36]Found Content-Length = 682 [20:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 38.870, "sum" : 2600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:36]execute_script... [20:49: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)220418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 38.870, "sum" : 2600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:36]POST & json_proto [20:49:36]process_json_proto [20:49:36]json parsed OK: [20:49:36]protocol is kg_v1.0 [20:49:36]action value=close_receipt [20:49:36]process_action close_receipt [20:49:36]cmd_close_receipt [20:49:36]MH_GetDate [20:49:36]Write to MH i2c: F0 00 00 0D 1D 19 [20:49:36]Write i2c OK [20:49:36]MH_I2C_Read... [20:49:36]Read from MH i2c: F0 [20:49:36]MH_I2C_Read... [20:49:36]Read from MH i2c: F0 09 00 [20:49:36]MH_I2C_Read... [20:49:36]Read from MH i2c: F0 09 00 0D 1D 00 EE 6C 15 67 21 48 4A 65 10 [20:49:36]GetLastDocTimeStamp 1729457378 [20:49:36]current date 1729457390 [20:49:36]FM_GetShiftState [20:49:36]SAM_PROTO_GetShiftState [20:49:36]wFMCommunicate request_size=4 [20:49:36]MH_SAM_APDU [20:49:36]CAPDU: 80 13 01 00 [20:49:36]Write to MH i2c: E2 08 00 0E 1D 80 13 01 00 00 00 00 00 A8 [20:49:36]Write i2c OK [20:49:36]MH_I2C_Read... [20:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:36]Read from MH i2c: E2 [20:49:36]MH_I2C_Read... [20:49:36]Read from MH i2c: E2 0E 00 [20:49:36]MH_I2C_Read... [20:49:36]Read from MH i2c: E2 0E 00 0E 1D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F0 [20:49:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:49:36]wFMCommunicate OK [20:49:36]SAM_PROTO_GetShiftState done [20:49:36]FM_GetShiftState done [20:49:36]opened in 1729384561 [20:49:36]opened+sec_in_day 1729470961 [20:49:36]quantity*price = 260040 [20:49:36]sum+1 = 260041 [20:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 2600.00 Внесено: 2600.00 СДАЧА: 0.00 НСП 1% : 23.01 НДС 12% : 276.15 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 332 20.10.2024 20:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165850 ФПД: 216441636015030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204950&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165850&fm=216441636015030&tin=02508201610067®Number=0000000000091764&sum=260000 [20:49:37]StoreToDocumentArchive [20:49:37]shift 534 fd 165850 [20:49:37]save to /storage/0534/doc_00165850 [20:49:37]save last doc name /storage/0534/doc_00165850 to /storage/kkm_last_doc_name [20:49:37]save OK [20:49:37]Clear old archive folders... [20:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:37]tlvbuf is 017B0800 [20:49:37]SAM_PROTO_ClearQueue [20:49:37]wFMCommunicate request_size=4 [20:49:37]MH_SAM_APDU [20:49:37]CAPDU: 80 09 00 00 [20:49:37]Write to MH i2c: E2 08 00 1B 1D 80 09 00 00 00 00 00 00 AA [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:37]Read from MH i2c: E2 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 03 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 03 00 1B 1D 00 90 00 AC [20:49:37]RAPDU: 90 00 [20:49:37]wFMCommunicate OK [20:49:37]SAM_PROTO_ClearQueue done [20:49:37]KKMCreateOFDPacket [20:49:37]OFDProtocolAddRootSTLVToBuf [20:49:37]FM_MakeSignedData [20:49:37]FM_MakeSignedData [20:49:37]SAM_PROTO_SignData [20:49:37]wFMCommunicate request_size=4 [20:49:37]MH_SAM_APDU [20:49:37]CAPDU: 80 0D 01 02 [20:49:37]Write to MH i2c: E2 08 00 1C 1D 80 0D 01 02 00 00 00 00 B2 [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:37]Read from MH i2c: E2 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 03 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 03 00 1C 1D 00 90 00 AD [20:49:37]RAPDU: 90 00 [20:49:37]wFMCommunicate OK [20:49:37]wFMCommunicate request_size=255 [20:49:37]MH_SAM_APDU [20:49: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 D6 97 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C8 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 EE 6C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 87 02 00 35 04 06 00 C4 [20:49:37]Write to MH i2c: E2 02 01 1D 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 D6 97 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C8 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 EE 6C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 87 02 00 35 04 06 00 C4 00 00 13 [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]OFD Sender: No OFD packet to send [20:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:37]Read from MH i2c: E2 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 03 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 03 00 1D 1D 00 90 00 AE [20:49:37]RAPDU: 90 00 [20:49:37]wFMCommunicate OK [20:49:37]wFMCommunicate request_size=10 [20:49:37]MH_SAM_APDU [20:49:37]CAPDU: 80 0D 02 02 05 DA 3E D4 4B B6 [20:49:37]Write to MH i2c: E2 0D 00 1E 1D 80 0D 02 02 05 00 DA 3E D4 4B B6 00 00 AC [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:37]Read from MH i2c: E2 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 03 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 03 00 1E 1D 00 90 00 AF [20:49:37]RAPDU: 90 00 [20:49:37]wFMCommunicate OK [20:49:37]wFMCommunicate request_size=4 [20:49:37]MH_SAM_APDU [20:49:37]CAPDU: 80 0D 03 02 [20:49:37]Write to MH i2c: E2 08 00 1F 1D 80 0D 03 02 00 00 00 00 B7 [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:37]Read from MH i2c: E2 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 0B 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 0B 00 1F 1D 00 B8 85 C3 AD 92 56 3B 3F 90 00 C7 [20:49:37]RAPDU: B8 85 C3 AD 92 56 3B 3F 90 00 [20:49:37]wFMCommunicate OK [20:49:37]SAM_PROTO_SignData done [20:49:37]FM_MakeSignedData done [20:49:37]CreateOFDProtocolMessage [20:49:37]wFMCommunicate request_size=4 [20:49:37]MH_SAM_APDU [20:49:37]CAPDU: 80 11 00 00 [20:49:37]Write to MH i2c: E2 08 00 20 1D 80 11 00 00 00 00 00 00 B7 [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:37]Read from MH i2c: E2 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 17 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 17 00 20 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [20:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:49:37]wFMCommunicate OK [20:49:37]CreateOFDProtocolMessage done [20:49:37]OFDSenderStorePacket 165850 [20:49:37]StoreOFDPacket docnum=165850 [20:49:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 43 A1 07 01 44 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C8 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 EE 6C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 87 02 00 35 04 06 00 C4 DA 3E D4 4B B6 B8 85 C3 AD 92 56 3B 3F [20:49:37]CheckFolder [20:49:37]dirname=/storage/ofd_packets [20:49:37]CheckFolder done [20:49:37]ProducePacketName [20:49:37]name=ofd_packets/00165850 [20:49:37]NVStorageSaveData ofd_packets/00165850 [20:49:37]File name is /storage/ofd_packets/00165850 [20:49:37]Write 301 bytes [20:49:37]NVStorageSaveData done [20:49:37]OFDSenderStorePacket done [20:49:37]KKMCreateOFDPacket done [20:49:37]NVStorageSaveData kkm_last_timestamp [20:49:37]File name is /storage/kkm_last_timestamp [20:49:37]Write 4 bytes [20:49:37]NVStorageSaveData done [20:49:37]ExternCall_PrintAddStr [20:49:37]wPrintStart [20:49:37]Write to MH i2c: 01 00 00 21 1D 3E [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: 01 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: 01 07 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: 01 07 00 21 1D 00 00 00 00 00 FF 0F 53 [20:49:37]RasterBufferAndPrint [20:49:37]line Счет N : (1)220418 [20:49:37]line ИНН: 02508201610067 [20:49:37]line Контрольно-Кассовый Чек [20:49:37]line ПРОДАЖА [20:49:37]line ТРК (МРК, ГНК) : 23 [20:49:37]line Товар: 2710124130 [20:49:37]line Аи-92-К-5 [20:49:37]line 38.870 * 66.90 [20:49:37]line = 2600.40 [20:49:37]line НДС 12% НСП 1% [20:49:37]line > о реализуемом товаре [20:49:37]line ОКРУГЛЕНИЕ: -0.40 [20:49:37]line ИТОГО: 2600.00 [20:49:37]line Внесено: 2600.00 [20:49:37]line СДАЧА: 0.00 [20:49:37]line НСП 1% : 23.01 [20:49:37]line НДС 12% : 276.15 [20:49:37]line Наличными: 2600.00 [20:49:37]line Безнал.: 0.00 [20:49:37]line Место: АЗС № 161 "Партнер Нефть" [20:49:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:49:37]line СНО: Общий режим [20:49:37]line Чек 332 20.10.2024 20:49 [20:49:37]line Смена: 534 ФФД: 1.0 [20:49:37]line ЗНМ: 0300000104 [20:49:37]line РНМ: 0000000000091764 [20:49:37]line Версия ККМ: 001 [20:49:37]line ФМ: 0000000000871759 [20:49:37]line ФД: 165850 [20:49:37]line ФПД: 216441636015030 [20:49:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204950&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165850&fm=216441636015030&tin=02508201610067®Number=0000000000091764&sum=260000 [20:49:38]OFD Sender: Processing packet 165850 [packets to send 48, broken 47] [20:49:38]ProducePacketName [20:49:38]name=ofd_packets/00165850 [20:49:38]OFD Sender: To server: pG, [20:49:38]CommunicateWithHost lk.salyk.kg:30040 [20:49:38]ConnectInit lk.salyk.kg [20:49:38]written 0, free lines is 4095 [20:49:38]Connected sock=7 [20:49:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 43 A1 07 01 44 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C8 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 6B 00 00 00 00 07 04 06 00 A0 F7 03 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 EE 6C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 87 02 00 35 04 06 00 C4 DA 3E D4 4B B6 B8 85 C3 AD 92 56 3B 3F [20:49:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 07 29 47 00 56 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 31 37 35 39 10 04 04 00 DA 87 02 00 F4 03 04 00 5F 13 15 67 B6 04 01 00 00 A5 27 2F 82 81 3C 89 11 [20:49:38]CommunicateWithHost err = 0 [20:49:38]CheckOFDResponse [20:49:38]1017 (14) - 77093643461234 [20:49:38]1041 (16) - 0000000000871759 [20:49:38]1040 (4) - 165850 [20:49:38]1012 (4) - 20.10.2024 14:27 [20:49:38]1206 (1) - 0 [20:49:38]OFD Sender: Remove packet 165850 [20:49:38]ProducePacketName [20:49:38]name=ofd_packets/00165850 [20:49:38]NVStorageDeleteData [20:49:38]Write to MH i2c: 01 00 00 4C 1D 69 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: 01 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: 01 07 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: 01 07 00 4C 1D 00 00 00 00 00 C2 0C 3E [20:49:38]RasterBufferAndPrint [20:49:38]line [20:49:38]line [20:49:38]line [20:49:38]line [20:49:38]line [20:49:38]written 0, free lines is 3272 [20:49:38]MH_Cut [20:49:38]Write to MH i2c: D1 01 00 53 1D 01 42 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: D1 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: D1 01 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: D1 01 00 53 1D 00 41 [20:49:38]Write to MH i2c: 01 00 00 54 1D 71 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]OFD Sender: No OFD packet to send [20:49:39]*** Cut start [20:49:39]*** Partial cut [20:49:39]*** CUTSNS_PIN = 1 [20:49:39]*** CUTSNS_PIN = 0 [20:49:39]*** Brake cut motor [20:49:39]Read from MH i2c: 01 [20:49:39]MH_I2C_Read... [20:49:39]*** Stop cut motor [20:49:39]*** Cut end [20:49:39]Read from MH i2c: 01 07 00 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: 01 07 00 54 1D 00 00 00 00 00 FF 0F 86 [20:49:40]process_action close_receipt done [20:49:40]requested_data is exist [20:49:40]produce_requested_data [20:49:40]requested_item fm.sn is exist - process it [20:49:40]wFMCommunicate request_size=4 [20:49:40]MH_SAM_APDU [20:49:40]CAPDU: 80 11 00 00 [20:49:40]Write to MH i2c: E2 08 00 55 1D 80 11 00 00 00 00 00 00 EC [20:49:40]Write i2c OK [20:49:40]MH_I2C_Read... [20:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:40]Read from MH i2c: E2 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 17 00 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 17 00 55 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [20:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:49:40]wFMCommunicate OK [20:49:40]requested_item fd.num is exist - process it [20:49:40]SAM_PROTO_GetFieldsCounters [20:49:40]wFMCommunicate request_size=4 [20:49:40]MH_SAM_APDU [20:49:40]CAPDU: 80 13 00 00 [20:49:40]Write to MH i2c: E2 08 00 56 1D 80 13 00 00 00 00 00 00 EF [20:49:40]Write i2c OK [20:49:40]MH_I2C_Read... [20:49:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:40]Read from MH i2c: E2 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 62 00 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 62 00 56 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 87 02 00 0E 04 04 00 16 02 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 79 [20:49:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 87 02 00 0E 04 04 00 16 02 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 [20:49:40]wFMCommunicate OK [20:49:40]SAM_PROTO_GetFieldsCounters done [20:49:40]requested_item shift.num is exist - process it [20:49:40]requested_item shift.opened is exist - process it [20:49:40]req_shift_opened [20:49:40]FM_GetShiftState [20:49:40]SAM_PROTO_GetShiftState [20:49:40]wFMCommunicate request_size=4 [20:49:40]MH_SAM_APDU [20:49:40]CAPDU: 80 13 01 00 [20:49:40]Write to MH i2c: E2 08 00 57 1D 80 13 01 00 00 00 00 00 F1 [20:49:40]Write i2c OK [20:49:40]MH_I2C_Read... [20:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:40]Read from MH i2c: E2 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 0E 00 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 0E 00 57 1D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 39 [20:49:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:49:40]wFMCommunicate OK [20:49:40]SAM_PROTO_GetShiftState done [20:49:40]FM_GetShiftState done [20:49:40]req_shift_opened done [20:49:40]requested_item shift.open_date is exist - process it [20:49:40]req_shift_open_date [20:49:40]req_shift_open_date done [20:49:40]produce_requested_data done [20:49:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165850,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:49:40]process_action_free close_receipt [20:49:40]json_value_free [20:49:40]json_value_free done [20:49:40]process_json_proto returns [20:49:40]Send response to host [20:49:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165850,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:49:40]free response buf [20:49:40]execute_script done [20:49:40]execute_script returns [20:49:40]free content buf [20:49:40]Sock 6.Close socket [20:49:40]Sock 6.Thread stoped [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:10]accept exits with 5 [20:51:10]New connection [20:51:10]New thread 3066776932 created [20:51:10]Thread 3066920292 joined [20:51:10]Waiting for new connection... [20:51:10] Sock 5.Parse request [20:51:10]Sock 5.Check first char [20:51:10]Sock 5.First char is OK [20:51:10]request: POST /json_proto HTTP/1.0 [20:51:10]Method: POST [20:51:10]URL: /json_proto [20:51:10]Method is POST - this is cgi request [20:51:10]url: /json_proto [20:51:10]query_string will be loaded in cgi processing [20:51:10]execute_cgi json_proto POST (null) [20:51:10]execute_cgi path=json_proto method=POST [20:51:10]POST find Content-Length [20:51:10]Host: 172.17.53.195:8080 [20:51:10]Content-Length: 789 [20:51:10]Content-Type: application/json [20:51:10] [20:51:10]POST finish read [20:51:10]Found Content-Length = 789 [20:51:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220420", "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" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:10]execute_script... [20:51:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220420", "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" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:10]POST & json_proto [20:51:10]process_json_proto [20:51:10]json parsed OK: [20:51:10]protocol is kg_v1.0 [20:51:10]action value=close_receipt [20:51:10]process_action close_receipt [20:51:10]cmd_close_receipt [20:51:10]MH_GetDate [20:51:10]Write to MH i2c: F0 00 00 58 1D 64 [20:51:10]Write i2c OK [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: F0 [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: F0 09 00 [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: F0 09 00 58 1D 00 4D 6D 15 67 21 48 4A 65 BB [20:51:10]GetLastDocTimeStamp 1729457390 [20:51:10]current date 1729457485 [20:51:10]FM_GetShiftState [20:51:10]SAM_PROTO_GetShiftState [20:51:10]wFMCommunicate request_size=4 [20:51:10]MH_SAM_APDU [20:51:10]CAPDU: 80 13 01 00 [20:51:10]Write to MH i2c: E2 08 00 59 1D 80 13 01 00 00 00 00 00 F3 [20:51:10]Write i2c OK [20:51:10]MH_I2C_Read... [20:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:10]Read from MH i2c: E2 [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: E2 0E 00 [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: E2 0E 00 59 1D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 3B [20:51:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:51:10]wFMCommunicate OK [20:51:10]SAM_PROTO_GetShiftState done [20:51:10]FM_GetShiftState done [20:51:10]opened in 1729384561 [20:51:10]opened+sec_in_day 1729470961 [20:51:10]quantity*price = 0 [20:51:10]sum+1 = 1 [20:51:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 333 20.10.2024 20:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165851 ФПД: 250843467667198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205125&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165851&fm=250843467667198&tin=02508201610067®Number=0000000000091764&sum=0 [20:51:11]StoreToDocumentArchive [20:51:11]shift 534 fd 165851 [20:51:11]save to /storage/0534/doc_00165851 [20:51:11]save last doc name /storage/0534/doc_00165851 to /storage/kkm_last_doc_name [20:51:11]save OK [20:51:11]Clear old archive folders... [20:51:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:51:11]tlvbuf is 015E92C0 [20:51:11]SAM_PROTO_ClearQueue [20:51:11]wFMCommunicate request_size=4 [20:51:11]MH_SAM_APDU [20:51:11]CAPDU: 80 09 00 00 [20:51:11]Write to MH i2c: E2 08 00 66 1D 80 09 00 00 00 00 00 00 F5 [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:11]Read from MH i2c: E2 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 66 1D 00 90 00 F7 [20:51:11]RAPDU: 90 00 [20:51:11]wFMCommunicate OK [20:51:11]SAM_PROTO_ClearQueue done [20:51:11]KKMCreateOFDPacket [20:51:11]OFDProtocolAddRootSTLVToBuf [20:51:11]FM_MakeSignedData [20:51:11]FM_MakeSignedData [20:51:11]SAM_PROTO_SignData [20:51:11]wFMCommunicate request_size=4 [20:51:11]MH_SAM_APDU [20:51:11]CAPDU: 80 0D 01 02 [20:51:11]Write to MH i2c: E2 08 00 67 1D 80 0D 01 02 00 00 00 00 FD [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:12]Read from MH i2c: E2 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 03 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 03 00 67 1D 00 90 00 F8 [20:51:12]RAPDU: 90 00 [20:51:12]wFMCommunicate OK [20:51:12]wFMCommunicate request_size=255 [20:51:12]MH_SAM_APDU [20:51: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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 4D 6D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 87 02 00 35 04 06 00 E4 24 0B C8 [20:51:12]Write to MH i2c: E2 02 01 68 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 4D 6D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 87 02 00 35 04 06 00 E4 24 0B C8 00 00 2C [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:12]Read from MH i2c: E2 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 03 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 03 00 68 1D 00 90 00 F9 [20:51:12]RAPDU: 90 00 [20:51:12]wFMCommunicate OK [20:51:12]wFMCommunicate request_size=7 [20:51:12]MH_SAM_APDU [20:51:12]CAPDU: 80 0D 02 02 02 D6 FE [20:51:12]Write to MH i2c: E2 0A 00 69 1D 80 0D 02 02 02 00 D6 FE 00 00 D8 [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:12]Read from MH i2c: E2 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 03 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 03 00 69 1D 00 90 00 FA [20:51:12]RAPDU: 90 00 [20:51:12]wFMCommunicate OK [20:51:12]wFMCommunicate request_size=4 [20:51:12]MH_SAM_APDU [20:51:12]CAPDU: 80 0D 03 02 [20:51:12]Write to MH i2c: E2 08 00 6A 1D 80 0D 03 02 00 00 00 00 02 [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:12]Read from MH i2c: E2 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 0B 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 0B 00 6A 1D 00 96 E5 6C 61 BF EC 80 DE 90 00 54 [20:51:12]RAPDU: 96 E5 6C 61 BF EC 80 DE 90 00 [20:51:12]wFMCommunicate OK [20:51:12]SAM_PROTO_SignData done [20:51:12]FM_MakeSignedData done [20:51:12]CreateOFDProtocolMessage [20:51:12]wFMCommunicate request_size=4 [20:51:12]MH_SAM_APDU [20:51:12]CAPDU: 80 11 00 00 [20:51:12]Write to MH i2c: E2 08 00 6B 1D 80 11 00 00 00 00 00 00 02 [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:12]Read from MH i2c: E2 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 17 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: E2 17 00 6B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [20:51:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:51:12]wFMCommunicate OK [20:51:12]CreateOFDProtocolMessage done [20:51:12]OFDSenderStorePacket 165851 [20:51:12]StoreOFDPacket docnum=165851 [20:51:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5A 88 04 01 8C 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 4D 6D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 87 02 00 35 04 06 00 E4 24 0B C8 D6 FE 96 E5 6C 61 BF EC 80 DE [20:51:12]CheckFolder [20:51:12]dirname=/storage/ofd_packets [20:51:12]CheckFolder done [20:51:12]ProducePacketName [20:51:12]name=ofd_packets/00165851 [20:51:12]NVStorageSaveData ofd_packets/00165851 [20:51:12]File name is /storage/ofd_packets/00165851 [20:51:12]Write 298 bytes [20:51:12]NVStorageSaveData done [20:51:12]OFDSenderStorePacket done [20:51:12]KKMCreateOFDPacket done [20:51:12]NVStorageSaveData kkm_last_timestamp [20:51:12]File name is /storage/kkm_last_timestamp [20:51:12]Write 4 bytes [20:51:12]NVStorageSaveData done [20:51:12]ExternCall_PrintAddStr [20:51:12]wPrintStart [20:51:12]Write to MH i2c: 01 00 00 6C 1D 89 [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 07 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 07 00 6C 1D 00 00 00 00 00 FF 0F 9E [20:51:12]RasterBufferAndPrint [20:51:12]line Счет N : (1)220420 [20:51:12]line ИНН: 02508201610067 [20:51:12]line Контрольно-Кассовый Чек [20:51:12]line ПРОДАЖА [20:51:12]line ТРК (МРК, ГНК) : 21 [20:51:12]line Товар: 2710194210 [20:51:12]line ДТ-К-5 [20:51:12]line 26.250 * 0.00 [20:51:12]line = 0.00 [20:51:12]line НДС 12% НСП 1% [20:51:12]line > о реализуемом товаре [20:51:12]line ИТОГО: 0.00 [20:51:12]line НСП 1% : 0.00 [20:51:12]line НДС 12% : 0.00 [20:51:12]line Наличными: 0.00 [20:51:12]line Безнал.: 0.00 [20:51:12]line Место: АЗС № 161 "Партнер Нефть" [20:51:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:51:12]line СНО: Общий режим [20:51:12]line Чек 333 20.10.2024 20:51 [20:51:12]line Смена: 534 ФФД: 1.0 [20:51:12]line ЗНМ: 0300000104 [20:51:12]line РНМ: 0000000000091764 [20:51:12]line Версия ККМ: 001 [20:51:12]line Талоны: Топливная Карта [20:51:12]line 39590 [20:51:12]line ФМ: 0000000000871759 [20:51:12]line ФД: 165851 [20:51:12]line ФПД: 250843467667198 [20:51:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205125&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165851&fm=250843467667198&tin=02508201610067®Number=0000000000091764&sum=0 [20:51:12]OFD Sender: Processing packet 165851 [packets to send 48, broken 47] [20:51:12]ProducePacketName [20:51:12]name=ofd_packets/00165851 [20:51:12]OFD Sender: To server: pG, [20:51:12]CommunicateWithHost lk.salyk.kg:30040 [20:51:12]ConnectInit lk.salyk.kg [20:51:12]written 0, free lines is 4095 [20:51:12]Connected sock=7 [20:51:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5A 88 04 01 8C 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 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 4D 6D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 87 02 00 35 04 06 00 E4 24 0B C8 D6 FE 96 E5 6C 61 BF EC 80 DE [20:51:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 66 AC 47 00 B4 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 31 37 35 39 10 04 04 00 DB 87 02 00 F4 03 04 00 BD 13 15 67 B6 04 01 00 00 21 13 C4 2A 6E E2 0B FC [20:51:13]CommunicateWithHost err = 0 [20:51:13]CheckOFDResponse [20:51:13]1017 (14) - 77093643461234 [20:51:13]1041 (16) - 0000000000871759 [20:51:13]1040 (4) - 165851 [20:51:13]1012 (4) - 20.10.2024 14:29 [20:51:13]1206 (1) - 0 [20:51:13]OFD Sender: Remove packet 165851 [20:51:13]ProducePacketName [20:51:13]name=ofd_packets/00165851 [20:51:13]NVStorageDeleteData [20:51:13]Write to MH i2c: 01 00 00 96 1D B3 [20:51:13]Write i2c OK [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: 01 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: 01 07 00 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: 01 07 00 96 1D 00 00 00 00 00 CB 0C 91 [20:51:13]RasterBufferAndPrint [20:51:13]line [20:51:13]line [20:51:13]line [20:51:13]line [20:51:13]line [20:51:13]written 0, free lines is 3281 [20:51:13]MH_Cut [20:51:13]Write to MH i2c: D1 01 00 9D 1D 01 8C [20:51:13]Write i2c OK [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: D1 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: D1 01 00 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: D1 01 00 9D 1D 00 8B [20:51:13]Write to MH i2c: 01 00 00 9E 1D BB [20:51:13]Write i2c OK [20:51:13]MH_I2C_Read... [20:51:13]OFD Sender: No OFD packet to send [20:51:14]*** Cut start [20:51:14]*** Partial cut [20:51:14]*** CUTSNS_PIN = 1 [20:51:14]*** CUTSNS_PIN = 0 [20:51:14]*** Brake cut motor [20:51:14]Read from MH i2c: 01 [20:51:14]MH_I2C_Read... [20:51:14]*** Stop cut motor [20:51:14]*** Cut end [20:51:14]Read from MH i2c: 01 07 00 [20:51:14]MH_I2C_Read... [20:51:14]Read from MH i2c: 01 07 00 9E 1D 00 00 00 00 00 FF 0F D0 [20:51:14]process_action close_receipt done [20:51:14]requested_data is exist [20:51:14]produce_requested_data [20:51:14]requested_item fm.sn is exist - process it [20:51:14]wFMCommunicate request_size=4 [20:51:14]MH_SAM_APDU [20:51:14]CAPDU: 80 11 00 00 [20:51:14]Write to MH i2c: E2 08 00 9F 1D 80 11 00 00 00 00 00 00 36 [20:51:14]Write i2c OK [20:51:14]MH_I2C_Read... [20:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:14]Read from MH i2c: E2 [20:51:14]MH_I2C_Read... [20:51:14]Read from MH i2c: E2 17 00 [20:51:14]MH_I2C_Read... [20:51:14]Read from MH i2c: E2 17 00 9F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [20:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:51:14]wFMCommunicate OK [20:51:14]requested_item fd.num is exist - process it [20:51:14]SAM_PROTO_GetFieldsCounters [20:51:14]wFMCommunicate request_size=4 [20:51:14]MH_SAM_APDU [20:51:14]CAPDU: 80 13 00 00 [20:51:14]Write to MH i2c: E2 08 00 A0 1D 80 13 00 00 00 00 00 00 39 [20:51:14]Write i2c OK [20:51:14]MH_I2C_Read... [20:51:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:14]Read from MH i2c: E2 [20:51:14]MH_I2C_Read... [20:51:14]Read from MH i2c: E2 62 00 [20:51:14]MH_I2C_Read... [20:51:14]Read from MH i2c: E2 62 00 A0 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 87 02 00 0E 04 04 00 16 02 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 C7 [20:51:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 87 02 00 0E 04 04 00 16 02 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 [20:51:14]wFMCommunicate OK [20:51:14]SAM_PROTO_GetFieldsCounters done [20:51:14]requested_item shift.num is exist - process it [20:51:14]requested_item shift.opened is exist - process it [20:51:14]req_shift_opened [20:51:14]FM_GetShiftState [20:51:14]SAM_PROTO_GetShiftState [20:51:14]wFMCommunicate request_size=4 [20:51:14]MH_SAM_APDU [20:51:14]CAPDU: 80 13 01 00 [20:51:14]Write to MH i2c: E2 08 00 A1 1D 80 13 01 00 00 00 00 00 3B [20:51:14]Write i2c OK [20:51:14]MH_I2C_Read... [20:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:14]Read from MH i2c: E2 [20:51:14]MH_I2C_Read... [20:51:14]Read from MH i2c: E2 0E 00 [20:51:14]MH_I2C_Read... [20:51:14]Read from MH i2c: E2 0E 00 A1 1D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 83 [20:51:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:51:14]wFMCommunicate OK [20:51:14]SAM_PROTO_GetShiftState done [20:51:14]FM_GetShiftState done [20:51:14]req_shift_opened done [20:51:14]requested_item shift.open_date is exist - process it [20:51:14]req_shift_open_date [20:51:14]req_shift_open_date done [20:51:14]produce_requested_data done [20:51:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165851,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:51:14]process_action_free close_receipt [20:51:14]json_value_free [20:51:14]json_value_free done [20:51:14]process_json_proto returns [20:51:14]Send response to host [20:51:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165851,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:51:14]free response buf [20:51:14]execute_script done [20:51:14]execute_script returns [20:51:14]free content buf [20:51:14]Sock 5.Close socket [20:51:14]Sock 5.Thread stoped [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:07]accept exits with 6 [20:53:07]New connection [20:53:07]New thread 3066920292 created [20:53:07]Thread 3066776932 joined [20:53:07]Waiting for new connection... [20:53:07] Sock 6.Parse request [20:53:07]Sock 6.Check first char [20:53:07]Sock 6.First char is OK [20:53:07]request: POST /json_proto HTTP/1.0 [20:53:07]Method: POST [20:53:07]URL: /json_proto [20:53:07]Method is POST - this is cgi request [20:53:07]url: /json_proto [20:53:07]query_string will be loaded in cgi processing [20:53:07]execute_cgi json_proto POST (null) [20:53:07]execute_cgi path=json_proto method=POST [20:53:07]POST find Content-Length [20:53:07]Host: 172.17.53.195:8080 [20:53:07]Content-Length: 682 [20:53:07]Content-Type: application/json [20:53:07] [20:53:07]POST finish read [20:53:07]Found Content-Length = 682 [20:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:07]execute_script... [20:53: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)220421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:07]POST & json_proto [20:53:07]process_json_proto [20:53:07]json parsed OK: [20:53:07]protocol is kg_v1.0 [20:53:07]action value=close_receipt [20:53:07]process_action close_receipt [20:53:07]cmd_close_receipt [20:53:07]MH_GetDate [20:53:07]Write to MH i2c: F0 00 00 A2 1D AE [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: F0 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: F0 09 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: F0 09 00 A2 1D 00 C1 6D 15 67 21 48 4A 65 79 [20:53:07]GetLastDocTimeStamp 1729457485 [20:53:07]current date 1729457601 [20:53:07]FM_GetShiftState [20:53:07]SAM_PROTO_GetShiftState [20:53:07]wFMCommunicate request_size=4 [20:53:07]MH_SAM_APDU [20:53:07]CAPDU: 80 13 01 00 [20:53:07]Write to MH i2c: E2 08 00 A3 1D 80 13 01 00 00 00 00 00 3D [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:07]Read from MH i2c: E2 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 0E 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 0E 00 A3 1D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 85 [20:53:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:53:07]wFMCommunicate OK [20:53:07]SAM_PROTO_GetShiftState done [20:53:07]FM_GetShiftState done [20:53:07]opened in 1729384561 [20:53:07]opened+sec_in_day 1729470961 [20:53:07]quantity*price = 199969 [20:53:07]sum+1 = 199970 [20:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.36 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 334 20.10.2024 20:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165852 ФПД: 119592408399222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205321&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165852&fm=119592408399222&tin=02508201610067®Number=0000000000091764&sum=199900 [20:53:08]StoreToDocumentArchive [20:53:08]shift 534 fd 165852 [20:53:08]save to /storage/0534/doc_00165852 [20:53:08]save last doc name /storage/0534/doc_00165852 to /storage/kkm_last_doc_name [20:53:08]save OK [20:53:08]Clear old archive folders... [20:53:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:08]tlvbuf is 01891900 [20:53:08]SAM_PROTO_ClearQueue [20:53:08]wFMCommunicate request_size=4 [20:53:08]MH_SAM_APDU [20:53:08]CAPDU: 80 09 00 00 [20:53:08]Write to MH i2c: E2 08 00 B0 1D 80 09 00 00 00 00 00 00 3F [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:08]Read from MH i2c: E2 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 B0 1D 00 90 00 41 [20:53:08]RAPDU: 90 00 [20:53:08]wFMCommunicate OK [20:53:08]SAM_PROTO_ClearQueue done [20:53:08]KKMCreateOFDPacket [20:53:08]OFDProtocolAddRootSTLVToBuf [20:53:08]FM_MakeSignedData [20:53:08]FM_MakeSignedData [20:53:08]SAM_PROTO_SignData [20:53:08]wFMCommunicate request_size=4 [20:53:08]MH_SAM_APDU [20:53:08]CAPDU: 80 0D 01 02 [20:53:08]Write to MH i2c: E2 08 00 B1 1D 80 0D 01 02 00 00 00 00 47 [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:08]Read from MH i2c: E2 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 B1 1D 00 90 00 42 [20:53:08]RAPDU: 90 00 [20:53:08]wFMCommunicate OK [20:53:08]wFMCommunicate request_size=255 [20:53:08]MH_SAM_APDU [20:53: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C1 6D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 87 02 00 35 04 06 00 6C [20:53:08]Write to MH i2c: E2 02 01 B2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C1 6D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 87 02 00 35 04 06 00 6C 00 00 42 [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]OFD Sender: No OFD packet to send [20:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:08]Read from MH i2c: E2 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 B2 1D 00 90 00 43 [20:53:08]RAPDU: 90 00 [20:53:08]wFMCommunicate OK [20:53:08]wFMCommunicate request_size=10 [20:53:08]MH_SAM_APDU [20:53:08]CAPDU: 80 0D 02 02 05 C4 C7 05 3D 76 [20:53:08]Write to MH i2c: E2 0D 00 B3 1D 80 0D 02 02 05 00 C4 C7 05 3D 76 00 00 97 [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:08]Read from MH i2c: E2 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 B3 1D 00 90 00 44 [20:53:08]RAPDU: 90 00 [20:53:08]wFMCommunicate OK [20:53:08]wFMCommunicate request_size=4 [20:53:08]MH_SAM_APDU [20:53:08]CAPDU: 80 0D 03 02 [20:53:08]Write to MH i2c: E2 08 00 B4 1D 80 0D 03 02 00 00 00 00 4C [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:08]Read from MH i2c: E2 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 0B 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 0B 00 B4 1D 00 16 FF 08 EA 83 D9 08 E0 90 00 98 [20:53:08]RAPDU: 16 FF 08 EA 83 D9 08 E0 90 00 [20:53:08]wFMCommunicate OK [20:53:08]SAM_PROTO_SignData done [20:53:08]FM_MakeSignedData done [20:53:08]CreateOFDProtocolMessage [20:53:08]wFMCommunicate request_size=4 [20:53:08]MH_SAM_APDU [20:53:08]CAPDU: 80 11 00 00 [20:53:08]Write to MH i2c: E2 08 00 B5 1D 80 11 00 00 00 00 00 00 4C [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:08]Read from MH i2c: E2 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 17 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 17 00 B5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [20:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:53:08]wFMCommunicate OK [20:53:08]CreateOFDProtocolMessage done [20:53:08]OFDSenderStorePacket 165852 [20:53:08]StoreOFDPacket docnum=165852 [20:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 CD 07 01 28 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C1 6D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 87 02 00 35 04 06 00 6C C4 C7 05 3D 76 16 FF 08 EA 83 D9 08 E0 [20:53:08]CheckFolder [20:53:08]dirname=/storage/ofd_packets [20:53:08]CheckFolder done [20:53:08]ProducePacketName [20:53:08]name=ofd_packets/00165852 [20:53:08]NVStorageSaveData ofd_packets/00165852 [20:53:08]File name is /storage/ofd_packets/00165852 [20:53:08]Write 301 bytes [20:53:08]NVStorageSaveData done [20:53:08]OFDSenderStorePacket done [20:53:08]KKMCreateOFDPacket done [20:53:08]NVStorageSaveData kkm_last_timestamp [20:53:08]File name is /storage/kkm_last_timestamp [20:53:08]Write 4 bytes [20:53:08]NVStorageSaveData done [20:53:08]ExternCall_PrintAddStr [20:53:08]wPrintStart [20:53:08]Write to MH i2c: 01 00 00 B6 1D D3 [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: 01 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: 01 07 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: 01 07 00 B6 1D 00 00 00 00 00 FF 0F E8 [20:53:08]RasterBufferAndPrint [20:53:08]line Счет N : (1)220421 [20:53:08]line ИНН: 02508201610067 [20:53:08]line Контрольно-Кассовый Чек [20:53:08]line ПРОДАЖА [20:53:08]line ТРК (МРК, ГНК) : 44 [20:53:08]line Товар: 2710124500 [20:53:08]line Аи-95-К-5 [20:53:08]line 26.950 * 74.20 [20:53:08]line = 1999.69 [20:53:08]line НДС 12% НСП 1% [20:53:08]line > о реализуемом товаре [20:53:08]line ОКРУГЛЕНИЕ: -0.69 [20:53:08]line ИТОГО: 1999.00 [20:53:08]line Внесено: 2000.00 [20:53:08]line СДАЧА: 1.00 [20:53:08]line НСП 1% : 17.70 [20:53:08]line НДС 12% : 212.36 [20:53:08]line Наличными: 1999.00 [20:53:08]line Безнал.: 0.00 [20:53:08]line Место: АЗС № 161 "Партнер Нефть" [20:53:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:53:08]line СНО: Общий режим [20:53:08]line Чек 334 20.10.2024 20:53 [20:53:08]line Смена: 534 ФФД: 1.0 [20:53:08]line ЗНМ: 0300000104 [20:53:08]line РНМ: 0000000000091764 [20:53:08]line Версия ККМ: 001 [20:53:08]line ФМ: 0000000000871759 [20:53:08]line ФД: 165852 [20:53:08]line ФПД: 119592408399222 [20:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205321&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165852&fm=119592408399222&tin=02508201610067®Number=0000000000091764&sum=199900 [20:53:09]OFD Sender: Processing packet 165852 [packets to send 48, broken 47] [20:53:09]ProducePacketName [20:53:09]name=ofd_packets/00165852 [20:53:09]OFD Sender: To server: pG, [20:53:09]CommunicateWithHost lk.salyk.kg:30040 [20:53:09]ConnectInit lk.salyk.kg [20:53:09]written 0, free lines is 4095 [20:53:09]Connected sock=7 [20:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 CD 07 01 28 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C1 6D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 87 02 00 35 04 06 00 6C C4 C7 05 3D 76 16 FF 08 EA 83 D9 08 E0 [20:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 67 92 47 00 24 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 87 02 00 F4 03 04 00 32 14 15 67 B6 04 01 00 00 B3 AA 88 1C CB 2E 67 9F [20:53:09]CommunicateWithHost err = 0 [20:53:09]CheckOFDResponse [20:53:09]1017 (14) - 77093643461234 [20:53:09]1041 (16) - 0000000000871759 [20:53:09]1040 (4) - 165852 [20:53:09]1012 (4) - 20.10.2024 14:31 [20:53:09]1206 (1) - 0 [20:53:09]OFD Sender: Remove packet 165852 [20:53:09]ProducePacketName [20:53:09]name=ofd_packets/00165852 [20:53:09]NVStorageDeleteData [20:53:09]Write to MH i2c: 01 00 00 E1 1D FE [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: 01 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: 01 07 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: 01 07 00 E1 1D 00 00 00 00 00 D1 0C E2 [20:53:09]RasterBufferAndPrint [20:53:09]line [20:53:09]line [20:53:09]line [20:53:09]line [20:53:09]line [20:53:09]written 0, free lines is 3286 [20:53:09]MH_Cut [20:53:09]Write to MH i2c: D1 01 00 E8 1D 01 D7 [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: D1 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: D1 01 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: D1 01 00 E8 1D 00 D6 [20:53:09]Write to MH i2c: 01 00 00 E9 1D 06 [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:10]OFD Sender: No OFD packet to send [20:53:10]*** Cut start [20:53:10]*** Partial cut [20:53:10]*** CUTSNS_PIN = 1 [20:53:10]*** CUTSNS_PIN = 0 [20:53:10]*** Brake cut motor [20:53:11]Read from MH i2c: 01 [20:53:11]MH_I2C_Read... [20:53:11]*** Stop cut motor [20:53:11]*** Cut end [20:53:11]Read from MH i2c: 01 07 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: 01 07 00 E9 1D 00 00 00 00 00 FF 0F 1B [20:53:11]process_action close_receipt done [20:53:11]requested_data is exist [20:53:11]produce_requested_data [20:53:11]requested_item fm.sn is exist - process it [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 11 00 00 [20:53:11]Write to MH i2c: E2 08 00 EA 1D 80 11 00 00 00 00 00 00 81 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 17 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 17 00 EA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [20:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:53:11]wFMCommunicate OK [20:53:11]requested_item fd.num is exist - process it [20:53:11]SAM_PROTO_GetFieldsCounters [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 13 00 00 [20:53:11]Write to MH i2c: E2 08 00 EB 1D 80 13 00 00 00 00 00 00 84 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 62 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 62 00 EB 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 87 02 00 0E 04 04 00 16 02 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 16 [20:53:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 87 02 00 0E 04 04 00 16 02 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 [20:53:11]wFMCommunicate OK [20:53:11]SAM_PROTO_GetFieldsCounters done [20:53:11]requested_item shift.num is exist - process it [20:53:11]requested_item shift.opened is exist - process it [20:53:11]req_shift_opened [20:53:11]FM_GetShiftState [20:53:11]SAM_PROTO_GetShiftState [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 13 01 00 [20:53:11]Write to MH i2c: E2 08 00 EC 1D 80 13 01 00 00 00 00 00 86 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 0E 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 0E 00 EC 1D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CE [20:53:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:53:11]wFMCommunicate OK [20:53:11]SAM_PROTO_GetShiftState done [20:53:11]FM_GetShiftState done [20:53:11]req_shift_opened done [20:53:11]requested_item shift.open_date is exist - process it [20:53:11]req_shift_open_date [20:53:11]req_shift_open_date done [20:53:11]produce_requested_data done [20:53:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165852,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:53:11]process_action_free close_receipt [20:53:11]json_value_free [20:53:11]json_value_free done [20:53:11]process_json_proto returns [20:53:11]Send response to host [20:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165852,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:53:11]free response buf [20:53:11]execute_script done [20:53:11]execute_script returns [20:53:11]free content buf [20:53:11]Sock 6.Close socket [20:53:11]Sock 6.Thread stoped [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:15]accept exits with 5 [20:59:15]New connection [20:59:15]New thread 3066776932 created [20:59:15]Thread 3066920292 joined [20:59:15]Waiting for new connection... [20:59:15] Sock 5.Parse request [20:59:15]Sock 5.Check first char [20:59:15]Sock 5.First char is OK [20:59:15]request: POST /json_proto HTTP/1.0 [20:59:15]Method: POST [20:59:15]URL: /json_proto [20:59:15]Method is POST - this is cgi request [20:59:15]url: /json_proto [20:59:15]query_string will be loaded in cgi processing [20:59:15]execute_cgi json_proto POST (null) [20:59:15]execute_cgi path=json_proto method=POST [20:59:15]POST find Content-Length [20:59:15]Host: 172.17.53.195:8080 [20:59:15]Content-Length: 766 [20:59:15]Content-Type: application/json [20:59:15] [20:59:15]POST finish read [20:59:15]Found Content-Length = 766 [20:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:15]execute_script... [20:59: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)220422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:15]POST & json_proto [20:59:15]process_json_proto [20:59:15]json parsed OK: [20:59:15]protocol is kg_v1.0 [20:59:15]action value=close_receipt [20:59:15]process_action close_receipt [20:59:15]cmd_close_receipt [20:59:15]MH_GetDate [20:59:15]Write to MH i2c: F0 00 00 ED 1D F9 [20:59:15]Write i2c OK [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: F0 [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: F0 09 00 [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: F0 09 00 ED 1D 00 32 6F 15 67 21 48 4A 65 37 [20:59:15]GetLastDocTimeStamp 1729457601 [20:59:15]current date 1729457970 [20:59:15]FM_GetShiftState [20:59:15]SAM_PROTO_GetShiftState [20:59:15]wFMCommunicate request_size=4 [20:59:15]MH_SAM_APDU [20:59:15]CAPDU: 80 13 01 00 [20:59:15]Write to MH i2c: E2 08 00 EE 1D 80 13 01 00 00 00 00 00 88 [20:59:15]Write i2c OK [20:59:15]MH_I2C_Read... [20:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:16]Read from MH i2c: E2 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 0E 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 0E 00 EE 1D 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D0 [20:59:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:59:16]wFMCommunicate OK [20:59:16]SAM_PROTO_GetShiftState done [20:59:16]FM_GetShiftState done [20:59:16]opened in 1729384561 [20:59:16]opened+sec_in_day 1729470961 [20:59:16]quantity*price = 50041 [20:59:16]sum+1 = 50042 [20:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 335 20.10.2024 20:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165853 ФПД: 69912645379505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205930&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165853&fm=69912645379505&tin=02508201610067®Number=0000000000091764&sum=50041 [20:59:17]StoreToDocumentArchive [20:59:17]shift 534 fd 165853 [20:59:17]save to /storage/0534/doc_00165853 [20:59:17]save last doc name /storage/0534/doc_00165853 to /storage/kkm_last_doc_name [20:59:17]save OK [20:59:17]Clear old archive folders... [20:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:17]tlvbuf is 01464C30 [20:59:17]SAM_PROTO_ClearQueue [20:59:17]wFMCommunicate request_size=4 [20:59:17]MH_SAM_APDU [20:59:17]CAPDU: 80 09 00 00 [20:59:17]Write to MH i2c: E2 08 00 FB 1D 80 09 00 00 00 00 00 00 8A [20:59:17]Write i2c OK [20:59:17]MH_I2C_Read... [20:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:17]Read from MH i2c: E2 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 03 00 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 03 00 FB 1D 00 90 00 8C [20:59:17]RAPDU: 90 00 [20:59:17]wFMCommunicate OK [20:59:17]SAM_PROTO_ClearQueue done [20:59:17]KKMCreateOFDPacket [20:59:17]OFDProtocolAddRootSTLVToBuf [20:59:17]FM_MakeSignedData [20:59:17]FM_MakeSignedData [20:59:17]SAM_PROTO_SignData [20:59:17]wFMCommunicate request_size=4 [20:59:17]MH_SAM_APDU [20:59:17]CAPDU: 80 0D 01 02 [20:59:17]Write to MH i2c: E2 08 00 FC 1D 80 0D 01 02 00 00 00 00 92 [20:59:17]Write i2c OK [20:59:17]MH_I2C_Read... [20:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:17]Read from MH i2c: E2 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 03 00 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 03 00 FC 1D 00 90 00 8D [20:59:17]RAPDU: 90 00 [20:59:17]wFMCommunicate OK [20:59:17]wFMCommunicate request_size=255 [20:59:17]MH_SAM_APDU [20:59: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 32 6F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 87 02 00 35 04 06 00 3F [20:59:17]Write to MH i2c: E2 02 01 FD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 32 6F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 87 02 00 35 04 06 00 3F 00 00 A4 [20:59:17]Write i2c OK [20:59:17]MH_I2C_Read... [20:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:17]Read from MH i2c: E2 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 03 00 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 03 00 FD 1D 00 90 00 8E [20:59:17]RAPDU: 90 00 [20:59:17]wFMCommunicate OK [20:59:17]wFMCommunicate request_size=10 [20:59:17]MH_SAM_APDU [20:59:17]CAPDU: 80 0D 02 02 05 95 CE 64 A5 B1 [20:59:17]Write to MH i2c: E2 0D 00 FE 1D 80 0D 02 02 05 00 95 CE 64 A5 B1 00 00 BC [20:59:17]Write i2c OK [20:59:17]MH_I2C_Read... [20:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:17]Read from MH i2c: E2 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 03 00 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 03 00 FE 1D 00 90 00 8F [20:59:17]RAPDU: 90 00 [20:59:17]wFMCommunicate OK [20:59:17]wFMCommunicate request_size=4 [20:59:17]MH_SAM_APDU [20:59:17]CAPDU: 80 0D 03 02 [20:59:17]Write to MH i2c: E2 08 00 FF 1D 80 0D 03 02 00 00 00 00 97 [20:59:17]Write i2c OK [20:59:17]MH_I2C_Read... [20:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:17]Read from MH i2c: E2 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 0B 00 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 0B 00 FF 1D 00 0E B8 4A 05 53 87 BA E2 90 00 23 [20:59:17]RAPDU: 0E B8 4A 05 53 87 BA E2 90 00 [20:59:17]wFMCommunicate OK [20:59:17]SAM_PROTO_SignData done [20:59:17]FM_MakeSignedData done [20:59:17]CreateOFDProtocolMessage [20:59:17]wFMCommunicate request_size=4 [20:59:17]MH_SAM_APDU [20:59:17]CAPDU: 80 11 00 00 [20:59:17]Write to MH i2c: E2 08 00 00 1E 80 11 00 00 00 00 00 00 98 [20:59:17]Write i2c OK [20:59:17]MH_I2C_Read... [20:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:17]Read from MH i2c: E2 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 17 00 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: E2 17 00 00 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F0 [20:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:59:17]wFMCommunicate OK [20:59:17]CreateOFDProtocolMessage done [20:59:17]OFDSenderStorePacket 165853 [20:59:17]StoreOFDPacket docnum=165853 [20:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 86 07 01 72 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 32 6F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 87 02 00 35 04 06 00 3F 95 CE 64 A5 B1 0E B8 4A 05 53 87 BA E2 [20:59:17]CheckFolder [20:59:17]dirname=/storage/ofd_packets [20:59:17]CheckFolder done [20:59:17]ProducePacketName [20:59:17]name=ofd_packets/00165853 [20:59:17]NVStorageSaveData ofd_packets/00165853 [20:59:17]File name is /storage/ofd_packets/00165853 [20:59:17]Write 301 bytes [20:59:17]NVStorageSaveData done [20:59:17]OFDSenderStorePacket done [20:59:17]KKMCreateOFDPacket done [20:59:17]NVStorageSaveData kkm_last_timestamp [20:59:17]File name is /storage/kkm_last_timestamp [20:59:17]Write 4 bytes [20:59:17]NVStorageSaveData done [20:59:17]ExternCall_PrintAddStr [20:59:17]wPrintStart [20:59:17]Write to MH i2c: 01 00 00 01 1E 1F [20:59:17]Write i2c OK [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: 01 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: 01 07 00 [20:59:17]MH_I2C_Read... [20:59:17]Read from MH i2c: 01 07 00 01 1E 00 00 00 00 00 FF 0F 34 [20:59:17]RasterBufferAndPrint [20:59:17]line Счет N : (1)220422 [20:59:17]line ИНН: 02508201610067 [20:59:17]line Контрольно-Кассовый Чек [20:59:17]line ПРОДАЖА [20:59:17]line ТРК (МРК, ГНК) : 23 [20:59:17]line Товар: 2710124130 [20:59:17]line Аи-92-К-5 [20:59:17]line 7.480 * 66.90 [20:59:17]line = 500.41 [20:59:17]line НДС 12% НСП 1% [20:59:17]line > о реализуемом товаре [20:59:17]line ИТОГО: 500.41 [20:59:17]line НСП 1% : 4.43 [20:59:17]line НДС 12% : 53.14 [20:59:17]line Наличными: 0.00 [20:59:17]line Безнал.: 500.41 [20:59:17]line Место: АЗС № 161 "Партнер Нефть" [20:59:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:59:17]line СНО: Общий режим [20:59:17]line Чек 335 20.10.2024 20:59 [20:59:17]line Смена: 534 ФФД: 1.0 [20:59:17]line ЗНМ: 0300000104 [20:59:17]line РНМ: 0000000000091764 [20:59:17]line Версия ККМ: 001 [20:59:17]line Платежная система: Mbank [20:59:17]line ФМ: 0000000000871759 [20:59:17]line ФД: 165853 [20:59:17]line ФПД: 69912645379505 [20:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205930&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165853&fm=69912645379505&tin=02508201610067®Number=0000000000091764&sum=50041 [20:59:17]written 0, free lines is 4095 [20:59:17]OFD Sender: Processing packet 165853 [packets to send 48, broken 47] [20:59:17]ProducePacketName [20:59:17]name=ofd_packets/00165853 [20:59:17]OFD Sender: To server: pG, [20:59:17]CommunicateWithHost lk.salyk.kg:30040 [20:59:17]ConnectInit lk.salyk.kg [20:59:17]Connected sock=9 [20:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 86 07 01 72 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 32 6F 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 87 02 00 35 04 06 00 3F 95 CE 64 A5 B1 0E B8 4A 05 53 87 BA E2 [20:59:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6C B4 47 00 3E 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 87 02 00 F4 03 04 00 A2 15 15 67 B6 04 01 00 00 58 C1 57 9B CA 24 82 16 [20:59:18]CommunicateWithHost err = 0 [20:59:18]CheckOFDResponse [20:59:18]1017 (14) - 77093643461234 [20:59:18]1041 (16) - 0000000000871759 [20:59:18]1040 (4) - 165853 [20:59:18]1012 (4) - 20.10.2024 14:37 [20:59:18]1206 (1) - 0 [20:59:18]OFD Sender: Remove packet 165853 [20:59:18]ProducePacketName [20:59:18]name=ofd_packets/00165853 [20:59:18]NVStorageDeleteData [20:59:18]Write to MH i2c: 01 00 00 2A 1E 48 [20:59:18]Write i2c OK [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: 01 [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: 01 07 00 [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: 01 07 00 2A 1E 00 00 00 00 00 E6 0C 41 [20:59:18]RasterBufferAndPrint [20:59:18]line [20:59:18]line [20:59:18]line [20:59:18]line [20:59:18]line [20:59:18]written 0, free lines is 3308 [20:59:18]MH_Cut [20:59:18]Write to MH i2c: D1 01 00 31 1E 01 21 [20:59:18]Write i2c OK [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: D1 [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: D1 01 00 [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: D1 01 00 31 1E 00 20 [20:59:18]Write to MH i2c: 01 00 00 32 1E 50 [20:59:18]Write i2c OK [20:59:18]MH_I2C_Read... [20:59:18]OFD Sender: No OFD packet to send [20:59:18]*** Cut start [20:59:18]*** Partial cut [20:59:18]*** CUTSNS_PIN = 1 [20:59:19]*** CUTSNS_PIN = 0 [20:59:19]*** Brake cut motor [20:59:19]Read from MH i2c: 01 [20:59:19]MH_I2C_Read... [20:59:19]*** Stop cut motor [20:59:19]*** Cut end [20:59:19]Read from MH i2c: 01 07 00 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: 01 07 00 32 1E 00 00 00 00 00 FF 0F 65 [20:59:19]process_action close_receipt done [20:59:19]requested_data is exist [20:59:19]produce_requested_data [20:59:19]requested_item fm.sn is exist - process it [20:59:19]wFMCommunicate request_size=4 [20:59:19]MH_SAM_APDU [20:59:19]CAPDU: 80 11 00 00 [20:59:19]Write to MH i2c: E2 08 00 33 1E 80 11 00 00 00 00 00 00 CB [20:59:19]Write i2c OK [20:59:19]MH_I2C_Read... [20:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:19]Read from MH i2c: E2 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: E2 17 00 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: E2 17 00 33 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [20:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:59:19]wFMCommunicate OK [20:59:19]requested_item fd.num is exist - process it [20:59:19]SAM_PROTO_GetFieldsCounters [20:59:19]wFMCommunicate request_size=4 [20:59:19]MH_SAM_APDU [20:59:19]CAPDU: 80 13 00 00 [20:59:19]Write to MH i2c: E2 08 00 34 1E 80 13 00 00 00 00 00 00 CE [20:59:19]Write i2c OK [20:59:19]MH_I2C_Read... [20:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:19]Read from MH i2c: E2 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: E2 62 00 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: E2 62 00 34 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 87 02 00 0E 04 04 00 16 02 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 64 [20:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 87 02 00 0E 04 04 00 16 02 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 [20:59:19]wFMCommunicate OK [20:59:19]SAM_PROTO_GetFieldsCounters done [20:59:19]requested_item shift.num is exist - process it [20:59:19]requested_item shift.opened is exist - process it [20:59:19]req_shift_opened [20:59:19]FM_GetShiftState [20:59:19]SAM_PROTO_GetShiftState [20:59:19]wFMCommunicate request_size=4 [20:59:19]MH_SAM_APDU [20:59:19]CAPDU: 80 13 01 00 [20:59:19]Write to MH i2c: E2 08 00 35 1E 80 13 01 00 00 00 00 00 D0 [20:59:19]Write i2c OK [20:59:19]MH_I2C_Read... [20:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:19]Read from MH i2c: E2 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: E2 0E 00 [20:59:19]MH_I2C_Read... [20:59:19]Read from MH i2c: E2 0E 00 35 1E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 18 [20:59:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [20:59:19]wFMCommunicate OK [20:59:19]SAM_PROTO_GetShiftState done [20:59:19]FM_GetShiftState done [20:59:19]req_shift_opened done [20:59:19]requested_item shift.open_date is exist - process it [20:59:19]req_shift_open_date [20:59:19]req_shift_open_date done [20:59:19]produce_requested_data done [20:59:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165853,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [20:59:19]process_action_free close_receipt [20:59:19]json_value_free [20:59:19]json_value_free done [20:59:19]process_json_proto returns [20:59:19]Send response to host [20:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165853,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [20:59:19]free response buf [20:59:19]execute_script done [20:59:19]execute_script returns [20:59:19]free content buf [20:59:19]Sock 5.Close socket [20:59:19]Sock 5.Thread stoped [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:20]accept exits with 6 [21:03:20]New connection [21:03:20]New thread 3066920292 created [21:03:20]Thread 3066776932 joined [21:03:20]Waiting for new connection... [21:03:20] Sock 6.Parse request [21:03:20]Sock 6.Check first char [21:03:20]Sock 6.First char is OK [21:03:20]request: POST /json_proto HTTP/1.0 [21:03:20]Method: POST [21:03:20]URL: /json_proto [21:03:20]Method is POST - this is cgi request [21:03:20]url: /json_proto [21:03:20]query_string will be loaded in cgi processing [21:03:20]execute_cgi json_proto POST (null) [21:03:20]execute_cgi path=json_proto method=POST [21:03:20]POST find Content-Length [21:03:20]Host: 172.17.53.195:8080 [21:03:20]Content-Length: 677 [21:03:20]Content-Type: application/json [21:03:20] [21:03:20]POST finish read [21:03:20]Found Content-Length = 677 [21:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:20]execute_script... [21:03: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)220423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:20]POST & json_proto [21:03:20]process_json_proto [21:03:20]json parsed OK: [21:03:20]protocol is kg_v1.0 [21:03:20]action value=close_receipt [21:03:20]process_action close_receipt [21:03:20]cmd_close_receipt [21:03:20]MH_GetDate [21:03:20]Write to MH i2c: F0 00 00 36 1E 43 [21:03:20]Write i2c OK [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: F0 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: F0 09 00 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: F0 09 00 36 1E 00 27 70 15 67 21 48 4A 65 77 [21:03:20]GetLastDocTimeStamp 1729457970 [21:03:20]current date 1729458215 [21:03:20]FM_GetShiftState [21:03:20]SAM_PROTO_GetShiftState [21:03:20]wFMCommunicate request_size=4 [21:03:20]MH_SAM_APDU [21:03:20]CAPDU: 80 13 01 00 [21:03:20]Write to MH i2c: E2 08 00 37 1E 80 13 01 00 00 00 00 00 D2 [21:03:20]Write i2c OK [21:03:20]MH_I2C_Read... [21:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:20]Read from MH i2c: E2 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: E2 0E 00 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: E2 0E 00 37 1E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 1A [21:03:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:03:20]wFMCommunicate OK [21:03:20]SAM_PROTO_GetShiftState done [21:03:20]FM_GetShiftState done [21:03:20]opened in 1729384561 [21:03:20]opened+sec_in_day 1729470961 [21:03:20]quantity*price = 50010 [21:03:20]sum+1 = 50012 [21:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 336 20.10.2024 21:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165854 ФПД: 262276013505253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210335&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165854&fm=262276013505253&tin=02508201610067®Number=0000000000091764&sum=50000 [21:03:21]StoreToDocumentArchive [21:03:21]shift 534 fd 165854 [21:03:21]save to /storage/0534/doc_00165854 [21:03:21]save last doc name /storage/0534/doc_00165854 to /storage/kkm_last_doc_name [21:03:21]save OK [21:03:21]Clear old archive folders... [21:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:21]tlvbuf is 0166A9E0 [21:03:21]SAM_PROTO_ClearQueue [21:03:21]wFMCommunicate request_size=4 [21:03:21]MH_SAM_APDU [21:03:21]CAPDU: 80 09 00 00 [21:03:21]Write to MH i2c: E2 08 00 44 1E 80 09 00 00 00 00 00 00 D4 [21:03:21]Write i2c OK [21:03:21]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 03 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 03 00 44 1E 00 90 00 D6 [21:03:22]RAPDU: 90 00 [21:03:22]wFMCommunicate OK [21:03:22]SAM_PROTO_ClearQueue done [21:03:22]KKMCreateOFDPacket [21:03:22]OFDProtocolAddRootSTLVToBuf [21:03:22]FM_MakeSignedData [21:03:22]FM_MakeSignedData [21:03:22]SAM_PROTO_SignData [21:03:22]wFMCommunicate request_size=4 [21:03:22]MH_SAM_APDU [21:03:22]CAPDU: 80 0D 01 02 [21:03:22]Write to MH i2c: E2 08 00 45 1E 80 0D 01 02 00 00 00 00 DC [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 03 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 03 00 45 1E 00 90 00 D7 [21:03:22]RAPDU: 90 00 [21:03:22]wFMCommunicate OK [21:03:22]wFMCommunicate request_size=255 [21:03:22]MH_SAM_APDU [21:03: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 27 70 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 87 02 00 35 04 06 00 EE [21:03:22]Write to MH i2c: E2 02 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 27 70 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 87 02 00 35 04 06 00 EE 00 00 1B [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 03 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 03 00 46 1E 00 90 00 D8 [21:03:22]RAPDU: 90 00 [21:03:22]wFMCommunicate OK [21:03:22]wFMCommunicate request_size=10 [21:03:22]MH_SAM_APDU [21:03:22]CAPDU: 80 0D 02 02 05 89 E4 9E 3A E5 [21:03:22]Write to MH i2c: E2 0D 00 47 1E 80 0D 02 02 05 00 89 E4 9E 3A E5 00 00 13 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 03 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 03 00 47 1E 00 90 00 D9 [21:03:22]RAPDU: 90 00 [21:03:22]wFMCommunicate OK [21:03:22]wFMCommunicate request_size=4 [21:03:22]MH_SAM_APDU [21:03:22]CAPDU: 80 0D 03 02 [21:03:22]Write to MH i2c: E2 08 00 48 1E 80 0D 03 02 00 00 00 00 E1 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 0B 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 0B 00 48 1E 00 25 26 63 51 72 79 85 4D 90 00 9E [21:03:22]RAPDU: 25 26 63 51 72 79 85 4D 90 00 [21:03:22]wFMCommunicate OK [21:03:22]SAM_PROTO_SignData done [21:03:22]FM_MakeSignedData done [21:03:22]CreateOFDProtocolMessage [21:03:22]wFMCommunicate request_size=4 [21:03:22]MH_SAM_APDU [21:03:22]CAPDU: 80 11 00 00 [21:03:22]Write to MH i2c: E2 08 00 49 1E 80 11 00 00 00 00 00 00 E1 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 17 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 17 00 49 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 39 [21:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:03:22]wFMCommunicate OK [21:03:22]CreateOFDProtocolMessage done [21:03:22]OFDSenderStorePacket 165854 [21:03:22]StoreOFDPacket docnum=165854 [21:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 EA 07 01 7A 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 27 70 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 87 02 00 35 04 06 00 EE 89 E4 9E 3A E5 25 26 63 51 72 79 85 4D [21:03:22]CheckFolder [21:03:22]dirname=/storage/ofd_packets [21:03:22]CheckFolder done [21:03:22]ProducePacketName [21:03:22]name=ofd_packets/00165854 [21:03:22]NVStorageSaveData ofd_packets/00165854 [21:03:22]File name is /storage/ofd_packets/00165854 [21:03:22]Write 301 bytes [21:03:22]NVStorageSaveData done [21:03:22]OFDSenderStorePacket done [21:03:22]KKMCreateOFDPacket done [21:03:22]NVStorageSaveData kkm_last_timestamp [21:03:22]File name is /storage/kkm_last_timestamp [21:03:22]Write 4 bytes [21:03:22]NVStorageSaveData done [21:03:22]ExternCall_PrintAddStr [21:03:22]wPrintStart [21:03:22]Write to MH i2c: 01 00 00 4A 1E 68 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: 01 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: 01 07 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: 01 07 00 4A 1E 00 00 00 00 00 FF 0F 7D [21:03:22]RasterBufferAndPrint [21:03:22]line Счет N : (1)220423 [21:03:22]line ИНН: 02508201610067 [21:03:22]line Контрольно-Кассовый Чек [21:03:22]line ПРОДАЖА [21:03:22]line ТРК (МРК, ГНК) : 34 [21:03:22]line Товар: 2710124500 [21:03:22]line Аи-95-К-5 [21:03:22]line 6.740 * 74.20 [21:03:22]line = 500.11 [21:03:22]line НДС 12% НСП 1% [21:03:22]line > о реализуемом товаре [21:03:22]line ОКРУГЛЕНИЕ: -0.11 [21:03:22]line ИТОГО: 500.00 [21:03:22]line Внесено: 500.00 [21:03:22]line СДАЧА: 0.00 [21:03:22]line НСП 1% : 4.43 [21:03:22]line НДС 12% : 53.11 [21:03:22]line Наличными: 500.00 [21:03:22]line Безнал.: 0.00 [21:03:22]line Место: АЗС № 161 "Партнер Нефть" [21:03:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:03:22]line СНО: Общий режим [21:03:22]line Чек 336 20.10.2024 21:03 [21:03:22]line Смена: 534 ФФД: 1.0 [21:03:22]line ЗНМ: 0300000104 [21:03:22]line РНМ: 0000000000091764 [21:03:22]line Версия ККМ: 001 [21:03:22]line ФМ: 0000000000871759 [21:03:22]line ФД: 165854 [21:03:22]line ФПД: 262276013505253 [21:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210335&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165854&fm=262276013505253&tin=02508201610067®Number=0000000000091764&sum=50000 [21:03:22]OFD Sender: Processing packet 165854 [packets to send 48, broken 47] [21:03:22]ProducePacketName [21:03:22]name=ofd_packets/00165854 [21:03:22]OFD Sender: To server: pG, [21:03:22]CommunicateWithHost lk.salyk.kg:30040 [21:03:22]ConnectInit lk.salyk.kg [21:03:22]written 0, free lines is 4095 [21:03:22]Connected sock=7 [21:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 EA 07 01 7A 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 27 70 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 87 02 00 35 04 06 00 EE 89 E4 9E 3A E5 25 26 63 51 72 79 85 4D [21:03:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E8 18 47 00 C8 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 31 37 35 39 10 04 04 00 DE 87 02 00 F4 03 04 00 97 16 15 67 B6 04 01 00 00 9B 49 08 6C 35 06 26 47 [21:03:23]CommunicateWithHost err = 0 [21:03:23]CheckOFDResponse [21:03:23]1017 (14) - 77093643461234 [21:03:23]1041 (16) - 0000000000871759 [21:03:23]1040 (4) - 165854 [21:03:23]1012 (4) - 20.10.2024 14:41 [21:03:23]1206 (1) - 0 [21:03:23]OFD Sender: Remove packet 165854 [21:03:23]ProducePacketName [21:03:23]name=ofd_packets/00165854 [21:03:23]NVStorageDeleteData [21:03:23]Write to MH i2c: 01 00 00 75 1E 93 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 07 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 C5 0C 6B [21:03:23]RasterBufferAndPrint [21:03:23]line [21:03:23]line [21:03:23]line [21:03:23]line [21:03:23]line [21:03:23]written 0, free lines is 3278 [21:03:23]MH_Cut [21:03:23]Write to MH i2c: D1 01 00 7C 1E 01 6C [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: D1 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: D1 01 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: D1 01 00 7C 1E 00 6B [21:03:23]Write to MH i2c: 01 00 00 7D 1E 9B [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]OFD Sender: No OFD packet to send [21:03:24]*** Cut start [21:03:24]*** Partial cut [21:03:24]*** CUTSNS_PIN = 1 [21:03:24]*** CUTSNS_PIN = 0 [21:03:24]*** Brake cut motor [21:03:24]Read from MH i2c: 01 [21:03:24]MH_I2C_Read... [21:03:24]*** Stop cut motor [21:03:24]*** Cut end [21:03:24]Read from MH i2c: 01 07 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 07 00 7D 1E 00 00 00 00 00 FF 0F B0 [21:03:24]process_action close_receipt done [21:03:24]requested_data is exist [21:03:24]produce_requested_data [21:03:24]requested_item fm.sn is exist - process it [21:03:24]wFMCommunicate request_size=4 [21:03:24]MH_SAM_APDU [21:03:24]CAPDU: 80 11 00 00 [21:03:24]Write to MH i2c: E2 08 00 7E 1E 80 11 00 00 00 00 00 00 16 [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:24]Read from MH i2c: E2 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 17 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: E2 17 00 7E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [21:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:03:24]wFMCommunicate OK [21:03:24]requested_item fd.num is exist - process it [21:03:24]SAM_PROTO_GetFieldsCounters [21:03:24]wFMCommunicate request_size=4 [21:03:24]MH_SAM_APDU [21:03:24]CAPDU: 80 13 00 00 [21:03:24]Write to MH i2c: E2 08 00 7F 1E 80 13 00 00 00 00 00 00 19 [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:25]Read from MH i2c: E2 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: E2 62 00 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: E2 62 00 7F 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 87 02 00 0E 04 04 00 16 02 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 B3 [21:03:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 87 02 00 0E 04 04 00 16 02 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:03:25]wFMCommunicate OK [21:03:25]SAM_PROTO_GetFieldsCounters done [21:03:25]requested_item shift.num is exist - process it [21:03:25]requested_item shift.opened is exist - process it [21:03:25]req_shift_opened [21:03:25]FM_GetShiftState [21:03:25]SAM_PROTO_GetShiftState [21:03:25]wFMCommunicate request_size=4 [21:03:25]MH_SAM_APDU [21:03:25]CAPDU: 80 13 01 00 [21:03:25]Write to MH i2c: E2 08 00 80 1E 80 13 01 00 00 00 00 00 1B [21:03:25]Write i2c OK [21:03:25]MH_I2C_Read... [21:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:25]Read from MH i2c: E2 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: E2 0E 00 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: E2 0E 00 80 1E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 63 [21:03:25]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:03:25]wFMCommunicate OK [21:03:25]SAM_PROTO_GetShiftState done [21:03:25]FM_GetShiftState done [21:03:25]req_shift_opened done [21:03:25]requested_item shift.open_date is exist - process it [21:03:25]req_shift_open_date [21:03:25]req_shift_open_date done [21:03:25]produce_requested_data done [21:03:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165854,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:03:25]process_action_free close_receipt [21:03:25]json_value_free [21:03:25]json_value_free done [21:03:25]process_json_proto returns [21:03:25]Send response to host [21:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165854,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:03:25]free response buf [21:03:25]execute_script done [21:03:25]execute_script returns [21:03:25]free content buf [21:03:25]Sock 6.Close socket [21:03:25]Sock 6.Thread stoped [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:58]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]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:18]accept exits with 5 [21:11:18]New connection [21:11:18]New thread 3066776932 created [21:11:18]Thread 3066920292 joined [21:11:18]Waiting for new connection... [21:11:18] Sock 5.Parse request [21:11:18]Sock 5.Check first char [21:11:18]Sock 5.First char is OK [21:11:18]request: POST /json_proto HTTP/1.0 [21:11:18]Method: POST [21:11:18]URL: /json_proto [21:11:18]Method is POST - this is cgi request [21:11:18]url: /json_proto [21:11:18]query_string will be loaded in cgi processing [21:11:18]execute_cgi json_proto POST (null) [21:11:18]execute_cgi path=json_proto method=POST [21:11:18]POST find Content-Length [21:11:18]Host: 172.17.53.195:8080 [21:11:18]Content-Length: 682 [21:11:18]Content-Type: application/json [21:11:18] [21:11:18]POST finish read [21:11:18]Found Content-Length = 682 [21:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [21:11:18]execute_script... [21:11: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)220424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [21:11:18]POST & json_proto [21:11:18]process_json_proto [21:11:18]json parsed OK: [21:11:18]protocol is kg_v1.0 [21:11:18]action value=close_receipt [21:11:18]process_action close_receipt [21:11:18]cmd_close_receipt [21:11:18]MH_GetDate [21:11:18]Write to MH i2c: F0 00 00 81 1E 8E [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: F0 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: F0 09 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: F0 09 00 81 1E 00 04 72 15 67 21 48 4A 65 A1 [21:11:18]GetLastDocTimeStamp 1729458215 [21:11:18]current date 1729458692 [21:11:18]FM_GetShiftState [21:11:18]SAM_PROTO_GetShiftState [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 13 01 00 [21:11:18]Write to MH i2c: E2 08 00 82 1E 80 13 01 00 00 00 00 00 1D [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 0E 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 0E 00 82 1E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 65 [21:11:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:11:18]wFMCommunicate OK [21:11:18]SAM_PROTO_GetShiftState done [21:11:18]FM_GetShiftState done [21:11:18]opened in 1729384561 [21:11:18]opened+sec_in_day 1729470961 [21:11:18]quantity*price = 200031 [21:11:18]sum+1 = 200032 [21:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 337 20.10.2024 21:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165855 ФПД: 230218659083682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211132&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165855&fm=230218659083682&tin=02508201610067®Number=0000000000091764&sum=200000 [21:11:19]StoreToDocumentArchive [21:11:19]shift 534 fd 165855 [21:11:19]save to /storage/0534/doc_00165855 [21:11:19]save last doc name /storage/0534/doc_00165855 to /storage/kkm_last_doc_name [21:11:19]save OK [21:11:19]Clear old archive folders... [21:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:19]tlvbuf is 015BCA10 [21:11:19]SAM_PROTO_ClearQueue [21:11:19]wFMCommunicate request_size=4 [21:11:19]MH_SAM_APDU [21:11:19]CAPDU: 80 09 00 00 [21:11:19]Write to MH i2c: E2 08 00 8F 1E 80 09 00 00 00 00 00 00 1F [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 03 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 03 00 8F 1E 00 90 00 21 [21:11:19]RAPDU: 90 00 [21:11:19]wFMCommunicate OK [21:11:19]SAM_PROTO_ClearQueue done [21:11:19]KKMCreateOFDPacket [21:11:19]OFDProtocolAddRootSTLVToBuf [21:11:19]FM_MakeSignedData [21:11:19]FM_MakeSignedData [21:11:19]SAM_PROTO_SignData [21:11:19]wFMCommunicate request_size=4 [21:11:19]MH_SAM_APDU [21:11:19]CAPDU: 80 0D 01 02 [21:11:19]Write to MH i2c: E2 08 00 90 1E 80 0D 01 02 00 00 00 00 27 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 03 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 03 00 90 1E 00 90 00 22 [21:11:19]RAPDU: 90 00 [21:11:19]wFMCommunicate OK [21:11:19]wFMCommunicate request_size=255 [21:11:19]MH_SAM_APDU [21:11: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 01 00 00 F4 03 04 00 04 72 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 87 02 00 35 04 06 00 D1 [21:11:19]Write to MH i2c: E2 02 01 91 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 01 00 00 F4 03 04 00 04 72 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 87 02 00 35 04 06 00 D1 00 00 94 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 03 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 03 00 91 1E 00 90 00 23 [21:11:19]RAPDU: 90 00 [21:11:19]wFMCommunicate OK [21:11:19]wFMCommunicate request_size=10 [21:11:19]MH_SAM_APDU [21:11:19]CAPDU: 80 0D 02 02 05 61 F5 65 35 A2 [21:11:19]Write to MH i2c: E2 0D 00 92 1E 80 0D 02 02 05 00 61 F5 65 35 A2 00 00 C6 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 03 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 03 00 92 1E 00 90 00 24 [21:11:19]RAPDU: 90 00 [21:11:19]wFMCommunicate OK [21:11:19]wFMCommunicate request_size=4 [21:11:19]MH_SAM_APDU [21:11:19]CAPDU: 80 0D 03 02 [21:11:19]Write to MH i2c: E2 08 00 93 1E 80 0D 03 02 00 00 00 00 2C [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 0B 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 0B 00 93 1E 00 59 A3 40 AA 32 E8 6D 06 90 00 A0 [21:11:19]RAPDU: 59 A3 40 AA 32 E8 6D 06 90 00 [21:11:19]wFMCommunicate OK [21:11:19]SAM_PROTO_SignData done [21:11:19]FM_MakeSignedData done [21:11:19]CreateOFDProtocolMessage [21:11:19]wFMCommunicate request_size=4 [21:11:19]MH_SAM_APDU [21:11:19]CAPDU: 80 11 00 00 [21:11:19]Write to MH i2c: E2 08 00 94 1E 80 11 00 00 00 00 00 00 2C [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 17 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 17 00 94 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [21:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:11:19]wFMCommunicate OK [21:11:19]CreateOFDProtocolMessage done [21:11:19]OFDSenderStorePacket 165855 [21:11:19]StoreOFDPacket docnum=165855 [21:11:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F5 65 07 01 E5 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 01 00 00 F4 03 04 00 04 72 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 87 02 00 35 04 06 00 D1 61 F5 65 35 A2 59 A3 40 AA 32 E8 6D 06 [21:11:19]CheckFolder [21:11:19]dirname=/storage/ofd_packets [21:11:19]CheckFolder done [21:11:19]ProducePacketName [21:11:19]name=ofd_packets/00165855 [21:11:19]NVStorageSaveData ofd_packets/00165855 [21:11:19]File name is /storage/ofd_packets/00165855 [21:11:19]Write 301 bytes [21:11:19]NVStorageSaveData done [21:11:19]OFDSenderStorePacket done [21:11:19]KKMCreateOFDPacket done [21:11:19]NVStorageSaveData kkm_last_timestamp [21:11:19]File name is /storage/kkm_last_timestamp [21:11:19]Write 4 bytes [21:11:19]NVStorageSaveData done [21:11:19]ExternCall_PrintAddStr [21:11:19]wPrintStart [21:11:19]Write to MH i2c: 01 00 00 95 1E B3 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 95 1E 00 00 00 00 00 FF 0F C8 [21:11:19]RasterBufferAndPrint [21:11:19]line Счет N : (1)220424 [21:11:19]line ИНН: 02508201610067 [21:11:19]line Контрольно-Кассовый Чек [21:11:19]line ПРОДАЖА [21:11:19]line ТРК (МРК, ГНК) : 13 [21:11:19]line Товар: 2710124130 [21:11:19]line Аи-92-К-5 [21:11:19]line 29.900 * 66.90 [21:11:19]line = 2000.31 [21:11:19]line НДС 12% НСП 1% [21:11:19]line > о реализуемом товаре [21:11:19]line ОКРУГЛЕНИЕ: -0.31 [21:11:19]line ИТОГО: 2000.00 [21:11:19]line Внесено: 2000.00 [21:11:19]line СДАЧА: 0.00 [21:11:19]line НСП 1% : 17.70 [21:11:19]line НДС 12% : 212.42 [21:11:19]line Наличными: 2000.00 [21:11:19]line Безнал.: 0.00 [21:11:19]line Место: АЗС № 161 "Партнер Нефть" [21:11:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:11:19]line СНО: Общий режим [21:11:19]line Чек 337 20.10.2024 21:11 [21:11:19]line Смена: 534 ФФД: 1.0 [21:11:19]line ЗНМ: 0300000104 [21:11:19]line РНМ: 0000000000091764 [21:11:19]line Версия ККМ: 001 [21:11:19]line ФМ: 0000000000871759 [21:11:19]line ФД: 165855 [21:11:19]line ФПД: 230218659083682 [21:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211132&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165855&fm=230218659083682&tin=02508201610067®Number=0000000000091764&sum=200000 [21:11:20]OFD Sender: Processing packet 165855 [packets to send 48, broken 47] [21:11:20]ProducePacketName [21:11:20]name=ofd_packets/00165855 [21:11:20]OFD Sender: To server: pG, [21:11:20]CommunicateWithHost lk.salyk.kg:30040 [21:11:20]ConnectInit lk.salyk.kg [21:11:20]written 0, free lines is 4095 [21:11:20]Connected sock=7 [21:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F5 65 07 01 E5 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 01 00 00 F4 03 04 00 04 72 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 87 02 00 35 04 06 00 D1 61 F5 65 35 A2 59 A3 40 AA 32 E8 6D 06 [21:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 89 B9 47 00 6B 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 31 37 35 39 10 04 04 00 DF 87 02 00 F4 03 04 00 75 18 15 67 B6 04 01 00 00 19 4C D9 47 F4 D4 4F 6F [21:11:20]CommunicateWithHost err = 0 [21:11:20]CheckOFDResponse [21:11:20]1017 (14) - 77093643461234 [21:11:20]1041 (16) - 0000000000871759 [21:11:20]1040 (4) - 165855 [21:11:20]1012 (4) - 20.10.2024 14:49 [21:11:20]1206 (1) - 0 [21:11:20]OFD Sender: Remove packet 165855 [21:11:20]ProducePacketName [21:11:20]name=ofd_packets/00165855 [21:11:20]NVStorageDeleteData [21:11:20]Write to MH i2c: 01 00 00 C0 1E DE [21:11:20]Write i2c OK [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: 01 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: 01 07 00 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: 01 07 00 C0 1E 00 00 00 00 00 C6 0C B7 [21:11:20]RasterBufferAndPrint [21:11:20]line [21:11:20]line [21:11:20]line [21:11:20]line [21:11:20]line [21:11:20]written 0, free lines is 3277 [21:11:20]MH_Cut [21:11:20]Write to MH i2c: D1 01 00 C7 1E 01 B7 [21:11:20]Write i2c OK [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: D1 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: D1 01 00 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: D1 01 00 C7 1E 00 B6 [21:11:20]Write to MH i2c: 01 00 00 C8 1E E6 [21:11:20]Write i2c OK [21:11:20]MH_I2C_Read... [21:11:20]OFD Sender: No OFD packet to send [21:11:21]*** Cut start [21:11:21]*** Partial cut [21:11:21]*** CUTSNS_PIN = 1 [21:11:21]*** CUTSNS_PIN = 0 [21:11:21]*** Brake cut motor [21:11:22]Read from MH i2c: 01 [21:11:22]MH_I2C_Read... [21:11:22]*** Stop cut motor [21:11:22]*** Cut end [21:11:22]Read from MH i2c: 01 07 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 07 00 C8 1E 00 00 00 00 00 FF 0F FB [21:11:22]process_action close_receipt done [21:11:22]requested_data is exist [21:11:22]produce_requested_data [21:11:22]requested_item fm.sn is exist - process it [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 11 00 00 [21:11:22]Write to MH i2c: E2 08 00 C9 1E 80 11 00 00 00 00 00 00 61 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 17 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 17 00 C9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [21:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:11:22]wFMCommunicate OK [21:11:22]requested_item fd.num is exist - process it [21:11:22]SAM_PROTO_GetFieldsCounters [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 13 00 00 [21:11:22]Write to MH i2c: E2 08 00 CA 1E 80 13 00 00 00 00 00 00 64 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 62 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 62 00 CA 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 87 02 00 0E 04 04 00 16 02 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 02 [21:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 87 02 00 0E 04 04 00 16 02 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:11:22]wFMCommunicate OK [21:11:22]SAM_PROTO_GetFieldsCounters done [21:11:22]requested_item shift.num is exist - process it [21:11:22]requested_item shift.opened is exist - process it [21:11:22]req_shift_opened [21:11:22]FM_GetShiftState [21:11:22]SAM_PROTO_GetShiftState [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 13 01 00 [21:11:22]Write to MH i2c: E2 08 00 CB 1E 80 13 01 00 00 00 00 00 66 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 0E 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 0E 00 CB 1E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AE [21:11:22]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:11:22]wFMCommunicate OK [21:11:22]SAM_PROTO_GetShiftState done [21:11:22]FM_GetShiftState done [21:11:22]req_shift_opened done [21:11:22]requested_item shift.open_date is exist - process it [21:11:22]req_shift_open_date [21:11:22]req_shift_open_date done [21:11:22]produce_requested_data done [21:11:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165855,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:11:22]process_action_free close_receipt [21:11:22]json_value_free [21:11:22]json_value_free done [21:11:22]process_json_proto returns [21:11:22]Send response to host [21:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165855,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:11:22]free response buf [21:11:22]execute_script done [21:11:22]execute_script returns [21:11:22]free content buf [21:11:22]Sock 5.Close socket [21:11:22]Sock 5.Thread stoped [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:11]accept exits with 6 [21:18:11]New connection [21:18:11]New thread 3066920292 created [21:18:11]Thread 3066776932 joined [21:18:11]Waiting for new connection... [21:18:11] Sock 6.Parse request [21:18:11]Sock 6.Check first char [21:18:11]Sock 6.First char is OK [21:18:11]request: POST /json_proto HTTP/1.0 [21:18:11]Method: POST [21:18:11]URL: /json_proto [21:18:11]Method is POST - this is cgi request [21:18:11]url: /json_proto [21:18:11]query_string will be loaded in cgi processing [21:18:11]execute_cgi json_proto POST (null) [21:18:11]execute_cgi path=json_proto method=POST [21:18:11]POST find Content-Length [21:18:11]Host: 172.17.53.195:8080 [21:18:11]Content-Length: 679 [21:18:11]Content-Type: application/json [21:18:11] [21:18:11]POST finish read [21:18:11]Found Content-Length = 679 [21:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220425", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [21:18:11]execute_script... [21:18: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)220425", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [21:18:11]POST & json_proto [21:18:11]process_json_proto [21:18:11]json parsed OK: [21:18:11]protocol is kg_v1.0 [21:18:11]action value=close_receipt [21:18:11]process_action close_receipt [21:18:11]cmd_close_receipt [21:18:11]MH_GetDate [21:18:11]Write to MH i2c: F0 00 00 CC 1E D9 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: F0 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: F0 09 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: F0 09 00 CC 1E 00 A2 73 15 67 21 48 4A 65 8B [21:18:11]GetLastDocTimeStamp 1729458692 [21:18:11]current date 1729459106 [21:18:11]FM_GetShiftState [21:18:11]SAM_PROTO_GetShiftState [21:18:11]wFMCommunicate request_size=4 [21:18:11]MH_SAM_APDU [21:18:11]CAPDU: 80 13 01 00 [21:18:11]Write to MH i2c: E2 08 00 CD 1E 80 13 01 00 00 00 00 00 68 [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:11]Read from MH i2c: E2 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 0E 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: E2 0E 00 CD 1E 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B0 [21:18:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:18:11]wFMCommunicate OK [21:18:11]SAM_PROTO_GetShiftState done [21:18:11]FM_GetShiftState done [21:18:11]opened in 1729384561 [21:18:11]opened+sec_in_day 1729470961 [21:18:11]quantity*price = 150037 [21:18:11]sum+1 = 150039 [21:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 338 20.10.2024 21:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165856 ФПД: 239597719418219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211826&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165856&fm=239597719418219&tin=02508201610067®Number=0000000000091764&sum=150000 [21:18:12]StoreToDocumentArchive [21:18:12]shift 534 fd 165856 [21:18:12]save to /storage/0534/doc_00165856 [21:18:12]save last doc name /storage/0534/doc_00165856 to /storage/kkm_last_doc_name [21:18:12]save OK [21:18:12]Clear old archive folders... [21:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:18:12]tlvbuf is 015BCAA0 [21:18:12]SAM_PROTO_ClearQueue [21:18:12]wFMCommunicate request_size=4 [21:18:12]MH_SAM_APDU [21:18:12]CAPDU: 80 09 00 00 [21:18:12]Write to MH i2c: E2 08 00 DA 1E 80 09 00 00 00 00 00 00 6A [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:12]Read from MH i2c: E2 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: E2 03 00 DA 1E 00 90 00 6C [21:18:12]RAPDU: 90 00 [21:18:12]wFMCommunicate OK [21:18:12]SAM_PROTO_ClearQueue done [21:18:12]KKMCreateOFDPacket [21:18:12]OFDProtocolAddRootSTLVToBuf [21:18:12]FM_MakeSignedData [21:18:12]FM_MakeSignedData [21:18:12]SAM_PROTO_SignData [21:18:12]wFMCommunicate request_size=4 [21:18:12]MH_SAM_APDU [21:18:12]CAPDU: 80 0D 01 02 [21:18:12]Write to MH i2c: E2 08 00 DB 1E 80 0D 01 02 00 00 00 00 72 [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:13]Read from MH i2c: E2 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 03 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 03 00 DB 1E 00 90 00 6D [21:18:13]RAPDU: 90 00 [21:18:13]wFMCommunicate OK [21:18:13]wFMCommunicate request_size=255 [21:18:13]MH_SAM_APDU [21:18: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 52 01 00 00 F4 03 04 00 A2 73 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 87 02 00 35 04 06 00 D9 E9 B0 F4 [21:18:13]Write to MH i2c: E2 02 01 DC 1E 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 52 01 00 00 F4 03 04 00 A2 73 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 87 02 00 35 04 06 00 D9 E9 B0 F4 00 00 40 [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:13]Read from MH i2c: E2 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 03 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 03 00 DC 1E 00 90 00 6E [21:18:13]RAPDU: 90 00 [21:18:13]wFMCommunicate OK [21:18:13]wFMCommunicate request_size=7 [21:18:13]MH_SAM_APDU [21:18:13]CAPDU: 80 0D 02 02 02 75 6B [21:18:13]Write to MH i2c: E2 0A 00 DD 1E 80 0D 02 02 02 00 75 6B 00 00 59 [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:13]Read from MH i2c: E2 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 03 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 03 00 DD 1E 00 90 00 6F [21:18:13]RAPDU: 90 00 [21:18:13]wFMCommunicate OK [21:18:13]wFMCommunicate request_size=4 [21:18:13]MH_SAM_APDU [21:18:13]CAPDU: 80 0D 03 02 [21:18:13]Write to MH i2c: E2 08 00 DE 1E 80 0D 03 02 00 00 00 00 77 [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:13]Read from MH i2c: E2 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 0B 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 0B 00 DE 1E 00 77 C1 DF CB 97 6A FA 63 90 00 B8 [21:18:13]RAPDU: 77 C1 DF CB 97 6A FA 63 90 00 [21:18:13]wFMCommunicate OK [21:18:13]SAM_PROTO_SignData done [21:18:13]FM_MakeSignedData done [21:18:13]CreateOFDProtocolMessage [21:18:13]wFMCommunicate request_size=4 [21:18:13]MH_SAM_APDU [21:18:13]CAPDU: 80 11 00 00 [21:18:13]Write to MH i2c: E2 08 00 DF 1E 80 11 00 00 00 00 00 00 77 [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:13]Read from MH i2c: E2 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 17 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: E2 17 00 DF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [21:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:18:13]wFMCommunicate OK [21:18:13]CreateOFDProtocolMessage done [21:18:13]OFDSenderStorePacket 165856 [21:18:13]StoreOFDPacket docnum=165856 [21:18:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DA 5D 04 01 DA 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 52 01 00 00 F4 03 04 00 A2 73 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 87 02 00 35 04 06 00 D9 E9 B0 F4 75 6B 77 C1 DF CB 97 6A FA 63 [21:18:13]CheckFolder [21:18:13]dirname=/storage/ofd_packets [21:18:13]CheckFolder done [21:18:13]ProducePacketName [21:18:13]name=ofd_packets/00165856 [21:18:13]NVStorageSaveData ofd_packets/00165856 [21:18:13]File name is /storage/ofd_packets/00165856 [21:18:13]Write 298 bytes [21:18:13]NVStorageSaveData done [21:18:13]OFDSenderStorePacket done [21:18:13]KKMCreateOFDPacket done [21:18:13]NVStorageSaveData kkm_last_timestamp [21:18:13]File name is /storage/kkm_last_timestamp [21:18:13]Write 4 bytes [21:18:13]NVStorageSaveData done [21:18:13]ExternCall_PrintAddStr [21:18:13]wPrintStart [21:18:13]Write to MH i2c: 01 00 00 E0 1E FE [21:18:13]Write i2c OK [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: 01 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: 01 07 00 [21:18:13]MH_I2C_Read... [21:18:13]Read from MH i2c: 01 07 00 E0 1E 00 00 00 00 00 FF 0F 13 [21:18:13]RasterBufferAndPrint [21:18:13]line Счет N : (1)220425 [21:18:13]line ИНН: 02508201610067 [21:18:13]line Контрольно-Кассовый Чек [21:18:13]line ПРОДАЖА [21:18:13]line ТРК (МРК, ГНК) : 11 [21:18:13]line Товар: 2710194210 [21:18:13]line ДТ-К-5 [21:18:13]line 19.690 * 76.20 [21:18:13]line = 1500.38 [21:18:13]line НДС 12% НСП 1% [21:18:13]line > о реализуемом товаре [21:18:13]line ОКРУГЛЕНИЕ: -0.38 [21:18:13]line ИТОГО: 1500.00 [21:18:13]line Внесено: 1500.00 [21:18:13]line СДАЧА: 0.00 [21:18:13]line НСП 1% : 13.28 [21:18:13]line НДС 12% : 159.33 [21:18:13]line Наличными: 1500.00 [21:18:13]line Безнал.: 0.00 [21:18:13]line Место: АЗС № 161 "Партнер Нефть" [21:18:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:18:13]line СНО: Общий режим [21:18:13]line Чек 338 20.10.2024 21:18 [21:18:13]line Смена: 534 ФФД: 1.0 [21:18:13]line ЗНМ: 0300000104 [21:18:13]line РНМ: 0000000000091764 [21:18:13]line Версия ККМ: 001 [21:18:13]line ФМ: 0000000000871759 [21:18:13]line ФД: 165856 [21:18:13]line ФПД: 239597719418219 [21:18:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211826&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165856&fm=239597719418219&tin=02508201610067®Number=0000000000091764&sum=150000 [21:18:13]OFD Sender: Processing packet 165856 [packets to send 48, broken 47] [21:18:13]ProducePacketName [21:18:13]name=ofd_packets/00165856 [21:18:13]OFD Sender: To server: pG, [21:18:13]CommunicateWithHost lk.salyk.kg:30040 [21:18:13]ConnectInit lk.salyk.kg [21:18:13]written 0, free lines is 4095 [21:18:13]Connected sock=7 [21:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DA 5D 04 01 DA 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 52 01 00 00 F4 03 04 00 A2 73 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 87 02 00 35 04 06 00 D9 E9 B0 F4 75 6B 77 C1 DF CB 97 6A FA 63 [21:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 12 88 47 00 13 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 31 37 35 39 10 04 04 00 E0 87 02 00 F4 03 04 00 12 1A 15 67 B6 04 01 00 00 B6 B5 A1 97 85 43 49 3D [21:18:14]CommunicateWithHost err = 0 [21:18:14]CheckOFDResponse [21:18:14]1017 (14) - 77093643461234 [21:18:14]1041 (16) - 0000000000871759 [21:18:14]1040 (4) - 165856 [21:18:14]1012 (4) - 20.10.2024 14:56 [21:18:14]1206 (1) - 0 [21:18:14]OFD Sender: Remove packet 165856 [21:18:14]ProducePacketName [21:18:14]name=ofd_packets/00165856 [21:18:14]NVStorageDeleteData [21:18:14]Write to MH i2c: 01 00 00 0B 1F 2A [21:18:14]Write i2c OK [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: 01 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: 01 07 00 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: 01 07 00 0B 1F 00 00 00 00 00 BF 0C FC [21:18:14]RasterBufferAndPrint [21:18:14]line [21:18:14]line [21:18:14]line [21:18:14]line [21:18:14]line [21:18:14]written 0, free lines is 3269 [21:18:14]MH_Cut [21:18:14]Write to MH i2c: D1 01 00 12 1F 01 03 [21:18:14]Write i2c OK [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: D1 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: D1 01 00 [21:18:14]MH_I2C_Read... [21:18:14]Read from MH i2c: D1 01 00 12 1F 00 02 [21:18:14]Write to MH i2c: 01 00 00 13 1F 32 [21:18:14]Write i2c OK [21:18:14]MH_I2C_Read... [21:18:14]OFD Sender: No OFD packet to send [21:18:15]*** Cut start [21:18:15]*** Partial cut [21:18:15]*** CUTSNS_PIN = 1 [21:18:15]*** CUTSNS_PIN = 0 [21:18:15]*** Brake cut motor [21:18:15]Read from MH i2c: 01 [21:18:15]MH_I2C_Read... [21:18:15]*** Stop cut motor [21:18:15]*** Cut end [21:18:15]Read from MH i2c: 01 07 00 [21:18:15]MH_I2C_Read... [21:18:15]Read from MH i2c: 01 07 00 13 1F 00 00 00 00 00 FF 0F 47 [21:18:15]process_action close_receipt done [21:18:15]requested_data is exist [21:18:15]produce_requested_data [21:18:15]requested_item fm.sn is exist - process it [21:18:15]wFMCommunicate request_size=4 [21:18:15]MH_SAM_APDU [21:18:15]CAPDU: 80 11 00 00 [21:18:15]Write to MH i2c: E2 08 00 14 1F 80 11 00 00 00 00 00 00 AD [21:18:15]Write i2c OK [21:18:15]MH_I2C_Read... [21:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:15]Read from MH i2c: E2 [21:18:15]MH_I2C_Read... [21:18:15]Read from MH i2c: E2 17 00 [21:18:15]MH_I2C_Read... [21:18:15]Read from MH i2c: E2 17 00 14 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 05 [21:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:18:15]wFMCommunicate OK [21:18:15]requested_item fd.num is exist - process it [21:18:15]SAM_PROTO_GetFieldsCounters [21:18:15]wFMCommunicate request_size=4 [21:18:15]MH_SAM_APDU [21:18:15]CAPDU: 80 13 00 00 [21:18:15]Write to MH i2c: E2 08 00 15 1F 80 13 00 00 00 00 00 00 B0 [21:18:15]Write i2c OK [21:18:15]MH_I2C_Read... [21:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:15]Read from MH i2c: E2 [21:18:15]MH_I2C_Read... [21:18:15]Read from MH i2c: E2 62 00 [21:18:15]MH_I2C_Read... [21:18:15]Read from MH i2c: E2 62 00 15 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 87 02 00 0E 04 04 00 16 02 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 52 [21:18:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 87 02 00 0E 04 04 00 16 02 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:18:15]wFMCommunicate OK [21:18:15]SAM_PROTO_GetFieldsCounters done [21:18:15]requested_item shift.num is exist - process it [21:18:15]requested_item shift.opened is exist - process it [21:18:15]req_shift_opened [21:18:15]FM_GetShiftState [21:18:15]SAM_PROTO_GetShiftState [21:18:15]wFMCommunicate request_size=4 [21:18:15]MH_SAM_APDU [21:18:15]CAPDU: 80 13 01 00 [21:18:15]Write to MH i2c: E2 08 00 16 1F 80 13 01 00 00 00 00 00 B2 [21:18:15]Write i2c OK [21:18:15]MH_I2C_Read... [21:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:15]Read from MH i2c: E2 [21:18:15]MH_I2C_Read... [21:18:15]Read from MH i2c: E2 0E 00 [21:18:15]MH_I2C_Read... [21:18:15]Read from MH i2c: E2 0E 00 16 1F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FA [21:18:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:18:15]wFMCommunicate OK [21:18:15]SAM_PROTO_GetShiftState done [21:18:15]FM_GetShiftState done [21:18:15]req_shift_opened done [21:18:15]requested_item shift.open_date is exist - process it [21:18:15]req_shift_open_date [21:18:15]req_shift_open_date done [21:18:15]produce_requested_data done [21:18:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165856,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:18:15]process_action_free close_receipt [21:18:15]json_value_free [21:18:15]json_value_free done [21:18:15]process_json_proto returns [21:18:15]Send response to host [21:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165856,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:18:15]free response buf [21:18:15]execute_script done [21:18:15]execute_script returns [21:18:15]free content buf [21:18:15]Sock 6.Close socket [21:18:15]Sock 6.Thread stoped [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:51]accept exits with 5 [21:19:51]New connection [21:19:51]New thread 3066776932 created [21:19:51]Thread 3066920292 joined [21:19:51]Waiting for new connection... [21:19:51] Sock 5.Parse request [21:19:51]Sock 5.Check first char [21:19:51]Sock 5.First char is OK [21:19:51]request: POST /json_proto HTTP/1.0 [21:19:51]Method: POST [21:19:51]URL: /json_proto [21:19:51]Method is POST - this is cgi request [21:19:51]url: /json_proto [21:19:51]query_string will be loaded in cgi processing [21:19:51]execute_cgi json_proto POST (null) [21:19:51]execute_cgi path=json_proto method=POST [21:19:51]POST find Content-Length [21:19:51]Host: 172.17.53.195:8080 [21:19:51]Content-Length: 766 [21:19:51]Content-Type: application/json [21:19:51] [21:19:51]POST finish read [21:19:51]Found Content-Length = 766 [21:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:51]execute_script... [21:19: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)220426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:51]POST & json_proto [21:19:51]process_json_proto [21:19:51]json parsed OK: [21:19:51]protocol is kg_v1.0 [21:19:51]action value=close_receipt [21:19:51]process_action close_receipt [21:19:51]cmd_close_receipt [21:19:51]MH_GetDate [21:19:51]Write to MH i2c: F0 00 00 17 1F 25 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: F0 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: F0 09 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: F0 09 00 17 1F 00 06 74 15 67 21 48 4A 65 3C [21:19:51]GetLastDocTimeStamp 1729459106 [21:19:51]current date 1729459206 [21:19:51]FM_GetShiftState [21:19:51]SAM_PROTO_GetShiftState [21:19:51]wFMCommunicate request_size=4 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 13 01 00 [21:19:51]Write to MH i2c: E2 08 00 18 1F 80 13 01 00 00 00 00 00 B4 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 0E 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 0E 00 18 1F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 FC [21:19:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:19:51]wFMCommunicate OK [21:19:51]SAM_PROTO_GetShiftState done [21:19:51]FM_GetShiftState done [21:19:51]opened in 1729384561 [21:19:51]opened+sec_in_day 1729470961 [21:19:51]quantity*price = 100050 [21:19:51]sum+1 = 100052 [21:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 339 20.10.2024 21:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165857 ФПД: 184295316008438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212006&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165857&fm=184295316008438&tin=02508201610067®Number=0000000000091764&sum=100051 [21:19:53]StoreToDocumentArchive [21:19:53]shift 534 fd 165857 [21:19:53]save to /storage/0534/doc_00165857 [21:19:53]save last doc name /storage/0534/doc_00165857 to /storage/kkm_last_doc_name [21:19:53]save OK [21:19:53]Clear old archive folders... [21:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:19:53]tlvbuf is 01616500 [21:19:53]SAM_PROTO_ClearQueue [21:19:53]wFMCommunicate request_size=4 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 09 00 00 [21:19:53]Write to MH i2c: E2 08 00 25 1F 80 09 00 00 00 00 00 00 B6 [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:53]Read from MH i2c: E2 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 25 1F 00 90 00 B8 [21:19:53]RAPDU: 90 00 [21:19:53]wFMCommunicate OK [21:19:53]SAM_PROTO_ClearQueue done [21:19:53]KKMCreateOFDPacket [21:19:53]OFDProtocolAddRootSTLVToBuf [21:19:53]FM_MakeSignedData [21:19:53]FM_MakeSignedData [21:19:53]SAM_PROTO_SignData [21:19:53]wFMCommunicate request_size=4 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 0D 01 02 [21:19:53]Write to MH i2c: E2 08 00 26 1F 80 0D 01 02 00 00 00 00 BE [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:53]Read from MH i2c: E2 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 26 1F 00 90 00 B9 [21:19:53]RAPDU: 90 00 [21:19:53]wFMCommunicate OK [21:19:53]wFMCommunicate request_size=255 [21:19:53]MH_SAM_APDU [21:19:53]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 06 74 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 87 02 00 35 04 06 00 A7 9D 98 D8 [21:19:53]Write to MH i2c: E2 02 01 27 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 06 74 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 87 02 00 35 04 06 00 A7 9D 98 D8 00 00 30 [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:53]Read from MH i2c: E2 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 27 1F 00 90 00 BA [21:19:53]RAPDU: 90 00 [21:19:53]wFMCommunicate OK [21:19:53]wFMCommunicate request_size=7 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 0D 02 02 02 2D F6 [21:19:53]Write to MH i2c: E2 0A 00 28 1F 80 0D 02 02 02 00 2D F6 00 00 E8 [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:53]Read from MH i2c: E2 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 28 1F 00 90 00 BB [21:19:53]RAPDU: 90 00 [21:19:53]wFMCommunicate OK [21:19:53]wFMCommunicate request_size=4 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 0D 03 02 [21:19:53]Write to MH i2c: E2 08 00 29 1F 80 0D 03 02 00 00 00 00 C3 [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:53]Read from MH i2c: E2 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 0B 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 0B 00 29 1F 00 3E 2B 83 E8 8E E4 C9 9C 90 00 6F [21:19:53]RAPDU: 3E 2B 83 E8 8E E4 C9 9C 90 00 [21:19:53]wFMCommunicate OK [21:19:53]SAM_PROTO_SignData done [21:19:53]FM_MakeSignedData done [21:19:53]CreateOFDProtocolMessage [21:19:53]wFMCommunicate request_size=4 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 11 00 00 [21:19:53]Write to MH i2c: E2 08 00 2A 1F 80 11 00 00 00 00 00 00 C3 [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:53]Read from MH i2c: E2 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 17 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 17 00 2A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1B [21:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:19:53]wFMCommunicate OK [21:19:53]CreateOFDProtocolMessage done [21:19:53]OFDSenderStorePacket 165857 [21:19:53]StoreOFDPacket docnum=165857 [21:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 66 F9 04 01 C0 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 06 74 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 87 02 00 35 04 06 00 A7 9D 98 D8 2D F6 3E 2B 83 E8 8E E4 C9 9C [21:19:53]CheckFolder [21:19:53]dirname=/storage/ofd_packets [21:19:53]CheckFolder done [21:19:53]ProducePacketName [21:19:53]name=ofd_packets/00165857 [21:19:53]NVStorageSaveData ofd_packets/00165857 [21:19:53]File name is /storage/ofd_packets/00165857 [21:19:53]Write 298 bytes [21:19:53]NVStorageSaveData done [21:19:53]OFDSenderStorePacket done [21:19:53]KKMCreateOFDPacket done [21:19:53]NVStorageSaveData kkm_last_timestamp [21:19:53]File name is /storage/kkm_last_timestamp [21:19:53]Write 4 bytes [21:19:53]NVStorageSaveData done [21:19:53]ExternCall_PrintAddStr [21:19:53]wPrintStart [21:19:53]Write to MH i2c: 01 00 00 2B 1F 4A [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: 01 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: 01 07 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: 01 07 00 2B 1F 00 00 00 00 00 FF 0F 5F [21:19:53]RasterBufferAndPrint [21:19:53]line Счет N : (1)220426 [21:19:53]line ИНН: 02508201610067 [21:19:53]line Контрольно-Кассовый Чек [21:19:53]line ПРОДАЖА [21:19:53]line ТРК (МРК, ГНК) : 31 [21:19:53]line Товар: 2710194210 [21:19:53]line ДТ-К-5 [21:19:53]line 13.130 * 76.20 [21:19:53]line = 1000.51 [21:19:53]line НДС 12% НСП 1% [21:19:53]line > о реализуемом товаре [21:19:53]line ИТОГО: 1000.51 [21:19:53]line НСП 1% : 8.85 [21:19:53]line НДС 12% : 106.25 [21:19:53]line Наличными: 0.00 [21:19:53]line Безнал.: 1000.51 [21:19:53]line Место: АЗС № 161 "Партнер Нефть" [21:19:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:19:53]line СНО: Общий режим [21:19:53]line Чек 339 20.10.2024 21:20 [21:19:53]line Смена: 534 ФФД: 1.0 [21:19:53]line ЗНМ: 0300000104 [21:19:53]line РНМ: 0000000000091764 [21:19:53]line Версия ККМ: 001 [21:19:53]line Платежная система: Mbank [21:19:53]line ФМ: 0000000000871759 [21:19:53]line ФД: 165857 [21:19:53]line ФПД: 184295316008438 [21:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212006&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165857&fm=184295316008438&tin=02508201610067®Number=0000000000091764&sum=100051 [21:19:53]OFD Sender: Processing packet 165857 [packets to send 48, broken 47] [21:19:53]ProducePacketName [21:19:53]name=ofd_packets/00165857 [21:19:53]OFD Sender: To server: pG, [21:19:53]CommunicateWithHost lk.salyk.kg:30040 [21:19:53]ConnectInit lk.salyk.kg [21:19:53]written 0, free lines is 4095 [21:19:54]Connected sock=7 [21:19:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 66 F9 04 01 C0 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 06 74 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 87 02 00 35 04 06 00 A7 9D 98 D8 2D F6 3E 2B 83 E8 8E E4 C9 9C [21:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 69 C6 47 00 AA C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 87 02 00 F4 03 04 00 77 1A 15 67 B6 04 01 00 00 6B 4D 02 C4 F6 6B 2D 47 [21:19:54]CommunicateWithHost err = 0 [21:19:54]CheckOFDResponse [21:19:54]1017 (14) - 77093643461234 [21:19:54]1041 (16) - 0000000000871759 [21:19:54]1040 (4) - 165857 [21:19:54]1012 (4) - 20.10.2024 14:57 [21:19:54]1206 (1) - 0 [21:19:54]OFD Sender: Remove packet 165857 [21:19:54]ProducePacketName [21:19:54]name=ofd_packets/00165857 [21:19:54]NVStorageDeleteData [21:19:54]Write to MH i2c: 01 00 00 54 1F 73 [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 07 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 07 00 54 1F 00 00 00 00 00 F2 0C 78 [21:19:54]RasterBufferAndPrint [21:19:54]line [21:19:54]line [21:19:54]line [21:19:54]line [21:19:54]line [21:19:54]written 0, free lines is 3319 [21:19:54]MH_Cut [21:19:54]Write to MH i2c: D1 01 00 5B 1F 01 4C [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: D1 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: D1 01 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: D1 01 00 5B 1F 00 4B [21:19:54]Write to MH i2c: 01 00 00 5C 1F 7B [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]OFD Sender: No OFD packet to send [21:19:55]*** Cut start [21:19:55]*** Partial cut [21:19:55]*** CUTSNS_PIN = 1 [21:19:55]*** CUTSNS_PIN = 0 [21:19:55]*** Brake cut motor [21:19:55]Read from MH i2c: 01 [21:19:55]MH_I2C_Read... [21:19:55]*** Stop cut motor [21:19:55]*** Cut end [21:19:55]Read from MH i2c: 01 07 00 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: 01 07 00 5C 1F 00 00 00 00 00 FF 0F 90 [21:19:55]process_action close_receipt done [21:19:55]requested_data is exist [21:19:55]produce_requested_data [21:19:55]requested_item fm.sn is exist - process it [21:19:55]wFMCommunicate request_size=4 [21:19:55]MH_SAM_APDU [21:19:55]CAPDU: 80 11 00 00 [21:19:55]Write to MH i2c: E2 08 00 5D 1F 80 11 00 00 00 00 00 00 F6 [21:19:55]Write i2c OK [21:19:55]MH_I2C_Read... [21:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:55]Read from MH i2c: E2 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: E2 17 00 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: E2 17 00 5D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [21:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:19:55]wFMCommunicate OK [21:19:55]requested_item fd.num is exist - process it [21:19:55]SAM_PROTO_GetFieldsCounters [21:19:55]wFMCommunicate request_size=4 [21:19:55]MH_SAM_APDU [21:19:55]CAPDU: 80 13 00 00 [21:19:55]Write to MH i2c: E2 08 00 5E 1F 80 13 00 00 00 00 00 00 F9 [21:19:55]Write i2c OK [21:19:55]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 62 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 62 00 5E 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 87 02 00 0E 04 04 00 16 02 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 9F [21:19: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 87 02 00 0E 04 04 00 16 02 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:19:56]wFMCommunicate OK [21:19:56]SAM_PROTO_GetFieldsCounters done [21:19:56]requested_item shift.num is exist - process it [21:19:56]requested_item shift.opened is exist - process it [21:19:56]req_shift_opened [21:19:56]FM_GetShiftState [21:19:56]SAM_PROTO_GetShiftState [21:19:56]wFMCommunicate request_size=4 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 13 01 00 [21:19:56]Write to MH i2c: E2 08 00 5F 1F 80 13 01 00 00 00 00 00 FB [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 0E 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 0E 00 5F 1F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 43 [21:19:56]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:19:56]wFMCommunicate OK [21:19:56]SAM_PROTO_GetShiftState done [21:19:56]FM_GetShiftState done [21:19:56]req_shift_opened done [21:19:56]requested_item shift.open_date is exist - process it [21:19:56]req_shift_open_date [21:19:56]req_shift_open_date done [21:19:56]produce_requested_data done [21:19:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165857,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:19:56]process_action_free close_receipt [21:19:56]json_value_free [21:19:56]json_value_free done [21:19:56]process_json_proto returns [21:19:56]Send response to host [21:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165857,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:19:56]free response buf [21:19:56]execute_script done [21:19:56]execute_script returns [21:19:56]free content buf [21:19:56]Sock 5.Close socket [21:19:56]Sock 5.Thread stoped [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]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:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [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:54]accept exits with 6 [21:31:54]New connection [21:31:54]New thread 3066920292 created [21:31:54]Thread 3066776932 joined [21:31:54]Waiting for new connection... [21:31:54] Sock 6.Parse request [21:31:54]Sock 6.Check first char [21:31:54]Sock 6.First char is OK [21:31:54]request: POST /json_proto HTTP/1.0 [21:31:54]Method: POST [21:31:54]URL: /json_proto [21:31:54]Method is POST - this is cgi request [21:31:54]url: /json_proto [21:31:54]query_string will be loaded in cgi processing [21:31:54]execute_cgi json_proto POST (null) [21:31:54]execute_cgi path=json_proto method=POST [21:31:54]POST find Content-Length [21:31:54]Host: 172.17.53.195:8080 [21:31:54]Content-Length: 677 [21:31:54]Content-Type: application/json [21:31:54] [21:31:54]POST finish read [21:31:54]Found Content-Length = 677 [21:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:54]execute_script... [21:31: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)220427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:54]POST & json_proto [21:31:54]process_json_proto [21:31:54]json parsed OK: [21:31:54]protocol is kg_v1.0 [21:31:54]action value=close_receipt [21:31:54]process_action close_receipt [21:31:54]cmd_close_receipt [21:31:54]MH_GetDate [21:31:54]Write to MH i2c: F0 00 00 60 1F 6E [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: F0 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: F0 09 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: F0 09 00 60 1F 00 D8 76 15 67 21 48 4A 65 59 [21:31:54]GetLastDocTimeStamp 1729459206 [21:31:54]current date 1729459928 [21:31:54]FM_GetShiftState [21:31:54]SAM_PROTO_GetShiftState [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 13 01 00 [21:31:54]Write to MH i2c: E2 08 00 61 1F 80 13 01 00 00 00 00 00 FD [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0E 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0E 00 61 1F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 45 [21:31:54]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:31:54]wFMCommunicate OK [21:31:54]SAM_PROTO_GetShiftState done [21:31:54]FM_GetShiftState done [21:31:54]opened in 1729384561 [21:31:54]opened+sec_in_day 1729470961 [21:31:54]quantity*price = 20003 [21:31:54]sum+1 = 20004 [21:31: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 340 20.10.2024 21:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165858 ФПД: 67941170119519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165858&fm=67941170119519&tin=02508201610067®Number=0000000000091764&sum=20000 [21:31:55]StoreToDocumentArchive [21:31:55]shift 534 fd 165858 [21:31:55]save to /storage/0534/doc_00165858 [21:31:55]save last doc name /storage/0534/doc_00165858 to /storage/kkm_last_doc_name [21:31:55]save OK [21:31:55]Clear old archive folders... [21:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:55]tlvbuf is 0186AE50 [21:31:55]SAM_PROTO_ClearQueue [21:31:55]wFMCommunicate request_size=4 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 09 00 00 [21:31:55]Write to MH i2c: E2 08 00 6E 1F 80 09 00 00 00 00 00 00 FF [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 6E 1F 00 90 00 01 [21:31:55]RAPDU: 90 00 [21:31:55]wFMCommunicate OK [21:31:55]SAM_PROTO_ClearQueue done [21:31:55]KKMCreateOFDPacket [21:31:55]OFDProtocolAddRootSTLVToBuf [21:31:55]FM_MakeSignedData [21:31:55]FM_MakeSignedData [21:31:55]SAM_PROTO_SignData [21:31:55]wFMCommunicate request_size=4 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 0D 01 02 [21:31:55]Write to MH i2c: E2 08 00 6F 1F 80 0D 01 02 00 00 00 00 07 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 6F 1F 00 90 00 02 [21:31:55]RAPDU: 90 00 [21:31:55]wFMCommunicate OK [21:31:55]wFMCommunicate request_size=255 [21:31:55]MH_SAM_APDU [21:31: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 D8 76 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 87 02 00 35 04 06 00 3D [21:31:55]Write to MH i2c: E2 02 01 70 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 D8 76 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 87 02 00 35 04 06 00 3D 00 00 3E [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]OFD Sender: No OFD packet to send [21:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 70 1F 00 90 00 03 [21:31:55]RAPDU: 90 00 [21:31:55]wFMCommunicate OK [21:31:55]wFMCommunicate request_size=10 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 0D 02 02 05 CA C9 4F 83 5F [21:31:55]Write to MH i2c: E2 0D 00 71 1F 80 0D 02 02 05 00 CA C9 4F 83 5F 00 00 D8 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 71 1F 00 90 00 04 [21:31:55]RAPDU: 90 00 [21:31:55]wFMCommunicate OK [21:31:55]wFMCommunicate request_size=4 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 0D 03 02 [21:31:55]Write to MH i2c: E2 08 00 72 1F 80 0D 03 02 00 00 00 00 0C [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 0B 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 0B 00 72 1F 00 FE 07 A3 CA F2 D6 62 95 90 00 3E [21:31:55]RAPDU: FE 07 A3 CA F2 D6 62 95 90 00 [21:31:55]wFMCommunicate OK [21:31:55]SAM_PROTO_SignData done [21:31:55]FM_MakeSignedData done [21:31:55]CreateOFDProtocolMessage [21:31:55]wFMCommunicate request_size=4 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 11 00 00 [21:31:55]Write to MH i2c: E2 08 00 73 1F 80 11 00 00 00 00 00 00 0C [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 17 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 17 00 73 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [21:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:31:55]wFMCommunicate OK [21:31:55]CreateOFDProtocolMessage done [21:31:55]OFDSenderStorePacket 165858 [21:31:55]StoreOFDPacket docnum=165858 [21:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 8A 07 01 ED 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 D8 76 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 87 02 00 35 04 06 00 3D CA C9 4F 83 5F FE 07 A3 CA F2 D6 62 95 [21:31:55]CheckFolder [21:31:55]dirname=/storage/ofd_packets [21:31:55]CheckFolder done [21:31:55]ProducePacketName [21:31:55]name=ofd_packets/00165858 [21:31:55]NVStorageSaveData ofd_packets/00165858 [21:31:55]File name is /storage/ofd_packets/00165858 [21:31:55]Write 301 bytes [21:31:55]NVStorageSaveData done [21:31:55]OFDSenderStorePacket done [21:31:55]KKMCreateOFDPacket done [21:31:55]NVStorageSaveData kkm_last_timestamp [21:31:55]File name is /storage/kkm_last_timestamp [21:31:55]Write 4 bytes [21:31:55]NVStorageSaveData done [21:31:55]ExternCall_PrintAddStr [21:31:55]wPrintStart [21:31:55]Write to MH i2c: 01 00 00 74 1F 93 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 07 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 07 00 74 1F 00 00 00 00 00 FF 0F A8 [21:31:55]RasterBufferAndPrint [21:31:55]line Счет N : (1)220427 [21:31:55]line ИНН: 02508201610067 [21:31:55]line Контрольно-Кассовый Чек [21:31:55]line ПРОДАЖА [21:31:55]line ТРК (МРК, ГНК) : 23 [21:31:55]line Товар: 2710124130 [21:31:55]line Аи-92-К-5 [21:31:55]line 2.990 * 66.90 [21:31:55]line = 200.03 [21:31:55]line НДС 12% НСП 1% [21:31:55]line > о реализуемом товаре [21:31:55]line ОКРУГЛЕНИЕ: -0.03 [21:31:55]line ИТОГО: 200.00 [21:31:55]line Внесено: 200.00 [21:31:55]line СДАЧА: 0.00 [21:31:55]line НСП 1% : 1.77 [21:31:55]line НДС 12% : 21.24 [21:31:55]line Наличными: 200.00 [21:31:55]line Безнал.: 0.00 [21:31:55]line Место: АЗС № 161 "Партнер Нефть" [21:31:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:31:55]line СНО: Общий режим [21:31:55]line Чек 340 20.10.2024 21:32 [21:31:55]line Смена: 534 ФФД: 1.0 [21:31:55]line ЗНМ: 0300000104 [21:31:55]line РНМ: 0000000000091764 [21:31:55]line Версия ККМ: 001 [21:31:55]line ФМ: 0000000000871759 [21:31:55]line ФД: 165858 [21:31:55]line ФПД: 67941170119519 [21:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165858&fm=67941170119519&tin=02508201610067®Number=0000000000091764&sum=20000 [21:31:56]OFD Sender: Processing packet 165858 [packets to send 48, broken 47] [21:31:56]ProducePacketName [21:31:56]name=ofd_packets/00165858 [21:31:56]OFD Sender: To server: pG, [21:31:56]CommunicateWithHost lk.salyk.kg:30040 [21:31:56]ConnectInit lk.salyk.kg [21:31:56]written 0, free lines is 4095 [21:31:56]Connected sock=7 [21:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 8A 07 01 ED 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 D8 76 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 87 02 00 35 04 06 00 3D CA C9 4F 83 5F FE 07 A3 CA F2 D6 62 95 [21:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C9 87 47 00 CA 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 31 37 35 39 10 04 04 00 E2 87 02 00 F4 03 04 00 49 1D 15 67 B6 04 01 00 00 72 4D DB 95 AD 24 65 4E [21:31:56]CommunicateWithHost err = 0 [21:31:56]CheckOFDResponse [21:31:56]1017 (14) - 77093643461234 [21:31:56]1041 (16) - 0000000000871759 [21:31:56]1040 (4) - 165858 [21:31:56]1012 (4) - 20.10.2024 15:10 [21:31:56]1206 (1) - 0 [21:31:56]OFD Sender: Remove packet 165858 [21:31:56]ProducePacketName [21:31:56]name=ofd_packets/00165858 [21:31:56]NVStorageDeleteData [21:31:56]Write to MH i2c: 01 00 00 9F 1F BE [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: 01 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: 01 07 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: 01 07 00 9F 1F 00 00 00 00 00 BB 0C 8C [21:31:56]RasterBufferAndPrint [21:31:56]line [21:31:56]line [21:31:56]line [21:31:56]line [21:31:56]line [21:31:56]written 0, free lines is 3270 [21:31:56]MH_Cut [21:31:56]Write to MH i2c: D1 01 00 A6 1F 01 97 [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: D1 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: D1 01 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: D1 01 00 A6 1F 00 96 [21:31:56]Write to MH i2c: 01 00 00 A7 1F C6 [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]OFD Sender: No OFD packet to send [21:31:57]*** Cut start [21:31:57]*** Partial cut [21:31:57]*** CUTSNS_PIN = 1 [21:31:57]*** CUTSNS_PIN = 0 [21:31:57]*** Brake cut motor [21:31:57]Read from MH i2c: 01 [21:31:57]MH_I2C_Read... [21:31:57]*** Stop cut motor [21:31:58]*** Cut end [21:31:58]Read from MH i2c: 01 07 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: 01 07 00 A7 1F 00 00 00 00 00 FF 0F DB [21:31:58]process_action close_receipt done [21:31:58]requested_data is exist [21:31:58]produce_requested_data [21:31:58]requested_item fm.sn is exist - process it [21:31:58]wFMCommunicate request_size=4 [21:31:58]MH_SAM_APDU [21:31:58]CAPDU: 80 11 00 00 [21:31:58]Write to MH i2c: E2 08 00 A8 1F 80 11 00 00 00 00 00 00 41 [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:58]Read from MH i2c: E2 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 17 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 17 00 A8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [21:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:31:58]wFMCommunicate OK [21:31:58]requested_item fd.num is exist - process it [21:31:58]SAM_PROTO_GetFieldsCounters [21:31:58]wFMCommunicate request_size=4 [21:31:58]MH_SAM_APDU [21:31:58]CAPDU: 80 13 00 00 [21:31:58]Write to MH i2c: E2 08 00 A9 1F 80 13 00 00 00 00 00 00 44 [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:58]Read from MH i2c: E2 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 62 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 62 00 A9 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 87 02 00 0E 04 04 00 16 02 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 EE [21:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 87 02 00 0E 04 04 00 16 02 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:31:58]wFMCommunicate OK [21:31:58]SAM_PROTO_GetFieldsCounters done [21:31:58]requested_item shift.num is exist - process it [21:31:58]requested_item shift.opened is exist - process it [21:31:58]req_shift_opened [21:31:58]FM_GetShiftState [21:31:58]SAM_PROTO_GetShiftState [21:31:58]wFMCommunicate request_size=4 [21:31:58]MH_SAM_APDU [21:31:58]CAPDU: 80 13 01 00 [21:31:58]Write to MH i2c: E2 08 00 AA 1F 80 13 01 00 00 00 00 00 46 [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:58]Read from MH i2c: E2 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 0E 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 0E 00 AA 1F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8E [21:31:58]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:31:58]wFMCommunicate OK [21:31:58]SAM_PROTO_GetShiftState done [21:31:58]FM_GetShiftState done [21:31:58]req_shift_opened done [21:31:58]requested_item shift.open_date is exist - process it [21:31:58]req_shift_open_date [21:31:58]req_shift_open_date done [21:31:58]produce_requested_data done [21:31:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165858,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:31:58]process_action_free close_receipt [21:31:58]json_value_free [21:31:58]json_value_free done [21:31:58]process_json_proto returns [21:31:58]Send response to host [21:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165858,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:31:58]free response buf [21:31:58]execute_script done [21:31:58]execute_script returns [21:31:58]free content buf [21:31:58]Sock 6.Close socket [21:31:58]Sock 6.Thread stoped [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:53]accept exits with 5 [21:32:53]New connection [21:32:53]New thread 3066776932 created [21:32:53]Thread 3066920292 joined [21:32:53]Waiting for new connection... [21:32:53] Sock 5.Parse request [21:32:53]Sock 5.Check first char [21:32:53]Sock 5.First char is OK [21:32:53]request: POST /json_proto HTTP/1.0 [21:32:53]Method: POST [21:32:53]URL: /json_proto [21:32:53]Method is POST - this is cgi request [21:32:53]url: /json_proto [21:32:53]query_string will be loaded in cgi processing [21:32:53]execute_cgi json_proto POST (null) [21:32:53]execute_cgi path=json_proto method=POST [21:32:53]POST find Content-Length [21:32:53]Host: 172.17.53.195:8080 [21:32:53]Content-Length: 677 [21:32:53]Content-Type: application/json [21:32:53] [21:32:53]POST finish read [21:32:53]Found Content-Length = 677 [21:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:53]execute_script... [21:32: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)220428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:53]POST & json_proto [21:32:53]process_json_proto [21:32:53]json parsed OK: [21:32:53]protocol is kg_v1.0 [21:32:53]action value=close_receipt [21:32:53]process_action close_receipt [21:32:53]cmd_close_receipt [21:32:53]MH_GetDate [21:32:53]Write to MH i2c: F0 00 00 AB 1F B9 [21:32:53]Write i2c OK [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: F0 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: F0 09 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: F0 09 00 AB 1F 00 13 77 15 67 21 48 4A 65 E0 [21:32:53]GetLastDocTimeStamp 1729459928 [21:32:53]current date 1729459987 [21:32:53]FM_GetShiftState [21:32:53]SAM_PROTO_GetShiftState [21:32:53]wFMCommunicate request_size=4 [21:32:53]MH_SAM_APDU [21:32:53]CAPDU: 80 13 01 00 [21:32:53]Write to MH i2c: E2 08 00 AC 1F 80 13 01 00 00 00 00 00 48 [21:32:53]Write i2c OK [21:32:53]MH_I2C_Read... [21:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:53]Read from MH i2c: E2 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 0E 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: E2 0E 00 AC 1F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 90 [21:32:53]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:32:53]wFMCommunicate OK [21:32:53]SAM_PROTO_GetShiftState done [21:32:53]FM_GetShiftState done [21:32:53]opened in 1729384561 [21:32:53]opened+sec_in_day 1729470961 [21:32:53]quantity*price = 30038 [21:32:53]sum+1 = 30039 [21:32:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 341 20.10.2024 21:33 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165859 ФПД: 12985790604613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213307&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165859&fm=12985790604613&tin=02508201610067®Number=0000000000091764&sum=30000 [21:32:54]StoreToDocumentArchive [21:32:54]shift 534 fd 165859 [21:32:54]save to /storage/0534/doc_00165859 [21:32:54]save last doc name /storage/0534/doc_00165859 to /storage/kkm_last_doc_name [21:32:54]save OK [21:32:54]Clear old archive folders... [21:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:54]tlvbuf is 01615FA0 [21:32:54]SAM_PROTO_ClearQueue [21:32:54]wFMCommunicate request_size=4 [21:32:54]MH_SAM_APDU [21:32:54]CAPDU: 80 09 00 00 [21:32:54]Write to MH i2c: E2 08 00 B9 1F 80 09 00 00 00 00 00 00 4A [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:54]Read from MH i2c: E2 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 03 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 03 00 B9 1F 00 90 00 4C [21:32:54]RAPDU: 90 00 [21:32:54]wFMCommunicate OK [21:32:54]SAM_PROTO_ClearQueue done [21:32:54]KKMCreateOFDPacket [21:32:54]OFDProtocolAddRootSTLVToBuf [21:32:54]FM_MakeSignedData [21:32:54]FM_MakeSignedData [21:32:54]SAM_PROTO_SignData [21:32:54]wFMCommunicate request_size=4 [21:32:54]MH_SAM_APDU [21:32:54]CAPDU: 80 0D 01 02 [21:32:54]Write to MH i2c: E2 08 00 BA 1F 80 0D 01 02 00 00 00 00 52 [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:54]Read from MH i2c: E2 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 03 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 03 00 BA 1F 00 90 00 4D [21:32:54]RAPDU: 90 00 [21:32:54]wFMCommunicate OK [21:32:54]wFMCommunicate request_size=255 [21:32:54]MH_SAM_APDU [21:32: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 13 77 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 87 02 00 35 04 06 00 0B [21:32:54]Write to MH i2c: E2 02 01 BB 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 13 77 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 87 02 00 35 04 06 00 0B 00 00 C7 [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:54]Read from MH i2c: E2 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 03 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 03 00 BB 1F 00 90 00 4E [21:32:54]RAPDU: 90 00 [21:32:54]wFMCommunicate OK [21:32:54]wFMCommunicate request_size=10 [21:32:54]MH_SAM_APDU [21:32:54]CAPDU: 80 0D 02 02 05 CF 7D 6F A5 45 [21:32:54]Write to MH i2c: E2 0D 00 BC 1F 80 0D 02 02 05 00 CF 7D 6F A5 45 00 00 04 [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:54]Read from MH i2c: E2 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 03 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 03 00 BC 1F 00 90 00 4F [21:32:54]RAPDU: 90 00 [21:32:54]wFMCommunicate OK [21:32:54]wFMCommunicate request_size=4 [21:32:54]MH_SAM_APDU [21:32:54]CAPDU: 80 0D 03 02 [21:32:54]Write to MH i2c: E2 08 00 BD 1F 80 0D 03 02 00 00 00 00 57 [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:54]Read from MH i2c: E2 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 0B 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 0B 00 BD 1F 00 FF B8 15 F5 B5 7E AB C2 90 00 B9 [21:32:54]RAPDU: FF B8 15 F5 B5 7E AB C2 90 00 [21:32:54]wFMCommunicate OK [21:32:54]SAM_PROTO_SignData done [21:32:54]FM_MakeSignedData done [21:32:54]CreateOFDProtocolMessage [21:32:54]wFMCommunicate request_size=4 [21:32:54]MH_SAM_APDU [21:32:54]CAPDU: 80 11 00 00 [21:32:54]Write to MH i2c: E2 08 00 BE 1F 80 11 00 00 00 00 00 00 57 [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:54]Read from MH i2c: E2 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 17 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 17 00 BE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [21:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:32:54]wFMCommunicate OK [21:32:54]CreateOFDProtocolMessage done [21:32:54]OFDSenderStorePacket 165859 [21:32:54]StoreOFDPacket docnum=165859 [21:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 C6 07 01 76 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 13 77 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 87 02 00 35 04 06 00 0B CF 7D 6F A5 45 FF B8 15 F5 B5 7E AB C2 [21:32:54]CheckFolder [21:32:54]dirname=/storage/ofd_packets [21:32:54]CheckFolder done [21:32:54]ProducePacketName [21:32:54]name=ofd_packets/00165859 [21:32:54]NVStorageSaveData ofd_packets/00165859 [21:32:54]File name is /storage/ofd_packets/00165859 [21:32:54]Write 301 bytes [21:32:54]NVStorageSaveData done [21:32:54]OFDSenderStorePacket done [21:32:54]KKMCreateOFDPacket done [21:32:54]NVStorageSaveData kkm_last_timestamp [21:32:54]File name is /storage/kkm_last_timestamp [21:32:54]Write 4 bytes [21:32:54]NVStorageSaveData done [21:32:54]ExternCall_PrintAddStr [21:32:54]wPrintStart [21:32:54]Write to MH i2c: 01 00 00 BF 1F DE [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: 01 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: 01 07 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: 01 07 00 BF 1F 00 00 00 00 00 FF 0F F3 [21:32:54]RasterBufferAndPrint [21:32:54]line Счет N : (1)220428 [21:32:54]line ИНН: 02508201610067 [21:32:54]line Контрольно-Кассовый Чек [21:32:54]line ПРОДАЖА [21:32:54]line ТРК (МРК, ГНК) : 43 [21:32:54]line Товар: 2710124130 [21:32:54]line Аи-92-К-5 [21:32:54]line 4.490 * 66.90 [21:32:54]line = 300.38 [21:32:54]line НДС 12% НСП 1% [21:32:54]line > о реализуемом товаре [21:32:54]line ОКРУГЛЕНИЕ: -0.38 [21:32:54]line ИТОГО: 300.00 [21:32:54]line Внесено: 300.00 [21:32:54]line СДАЧА: 0.00 [21:32:54]line НСП 1% : 2.66 [21:32:54]line НДС 12% : 31.90 [21:32:54]line Наличными: 300.00 [21:32:54]line Безнал.: 0.00 [21:32:54]line Место: АЗС № 161 "Партнер Нефть" [21:32:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:32:54]line СНО: Общий режим [21:32:54]line Чек 341 20.10.2024 21:33 [21:32:54]line Смена: 534 ФФД: 1.0 [21:32:54]line ЗНМ: 0300000104 [21:32:54]line РНМ: 0000000000091764 [21:32:54]line Версия ККМ: 001 [21:32:54]line ФМ: 0000000000871759 [21:32:54]line ФД: 165859 [21:32:54]line ФПД: 12985790604613 [21:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213307&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165859&fm=12985790604613&tin=02508201610067®Number=0000000000091764&sum=30000 [21:32:55]OFD Sender: Processing packet 165859 [packets to send 48, broken 47] [21:32:55]ProducePacketName [21:32:55]name=ofd_packets/00165859 [21:32:55]OFD Sender: To server: pG, [21:32:55]CommunicateWithHost lk.salyk.kg:30040 [21:32:55]ConnectInit lk.salyk.kg [21:32:55]written 0, free lines is 4095 [21:32:55]Connected sock=7 [21:32:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 C6 07 01 76 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 13 77 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 87 02 00 35 04 06 00 0B CF 7D 6F A5 45 FF B8 15 F5 B5 7E AB C2 [21:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 75 57 47 00 FE 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 87 02 00 F4 03 04 00 84 1D 15 67 B6 04 01 00 00 D0 0C 74 1B 9C FF 5C 5D [21:32:55]CommunicateWithHost err = 0 [21:32:55]CheckOFDResponse [21:32:55]1017 (14) - 77093643461234 [21:32:55]1041 (16) - 0000000000871759 [21:32:55]1040 (4) - 165859 [21:32:55]1012 (4) - 20.10.2024 15:11 [21:32:55]1206 (1) - 0 [21:32:55]OFD Sender: Remove packet 165859 [21:32:55]ProducePacketName [21:32:55]name=ofd_packets/00165859 [21:32:55]NVStorageDeleteData [21:32:55]Write to MH i2c: 01 00 00 EA 1F 09 [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: 01 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: 01 07 00 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: 01 07 00 EA 1F 00 00 00 00 00 C8 0C E4 [21:32:55]RasterBufferAndPrint [21:32:55]line [21:32:55]line [21:32:55]line [21:32:55]line [21:32:55]line [21:32:55]written 0, free lines is 3278 [21:32:55]MH_Cut [21:32:55]Write to MH i2c: D1 01 00 F1 1F 01 E2 [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: D1 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: D1 01 00 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: D1 01 00 F1 1F 00 E1 [21:32:55]Write to MH i2c: 01 00 00 F2 1F 11 [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:55]OFD Sender: No OFD packet to send [21:32:56]*** Cut start [21:32:56]*** Partial cut [21:32:56]*** CUTSNS_PIN = 1 [21:32:56]*** CUTSNS_PIN = 0 [21:32:56]*** Brake cut motor [21:32:56]Read from MH i2c: 01 [21:32:56]MH_I2C_Read... [21:32:56]*** Stop cut motor [21:32:56]*** Cut end [21:32:56]Read from MH i2c: 01 07 00 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: 01 07 00 F2 1F 00 00 00 00 00 FF 0F 26 [21:32:56]process_action close_receipt done [21:32:56]requested_data is exist [21:32:56]produce_requested_data [21:32:56]requested_item fm.sn is exist - process it [21:32:56]wFMCommunicate request_size=4 [21:32:56]MH_SAM_APDU [21:32:56]CAPDU: 80 11 00 00 [21:32:56]Write to MH i2c: E2 08 00 F3 1F 80 11 00 00 00 00 00 00 8C [21:32:56]Write i2c OK [21:32:56]MH_I2C_Read... [21:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 17 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 17 00 F3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [21:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:32:57]wFMCommunicate OK [21:32:57]requested_item fd.num is exist - process it [21:32:57]SAM_PROTO_GetFieldsCounters [21:32:57]wFMCommunicate request_size=4 [21:32:57]MH_SAM_APDU [21:32:57]CAPDU: 80 13 00 00 [21:32:57]Write to MH i2c: E2 08 00 F4 1F 80 13 00 00 00 00 00 00 8F [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 62 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 62 00 F4 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 87 02 00 0E 04 04 00 16 02 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 3D [21:32:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 87 02 00 0E 04 04 00 16 02 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 [21:32:57]wFMCommunicate OK [21:32:57]SAM_PROTO_GetFieldsCounters done [21:32:57]requested_item shift.num is exist - process it [21:32:57]requested_item shift.opened is exist - process it [21:32:57]req_shift_opened [21:32:57]FM_GetShiftState [21:32:57]SAM_PROTO_GetShiftState [21:32:57]wFMCommunicate request_size=4 [21:32:57]MH_SAM_APDU [21:32:57]CAPDU: 80 13 01 00 [21:32:57]Write to MH i2c: E2 08 00 F5 1F 80 13 01 00 00 00 00 00 91 [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 0E 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 0E 00 F5 1F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D9 [21:32:57]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:32:57]wFMCommunicate OK [21:32:57]SAM_PROTO_GetShiftState done [21:32:57]FM_GetShiftState done [21:32:57]req_shift_opened done [21:32:57]requested_item shift.open_date is exist - process it [21:32:57]req_shift_open_date [21:32:57]req_shift_open_date done [21:32:57]produce_requested_data done [21:32:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165859,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:32:57]process_action_free close_receipt [21:32:57]json_value_free [21:32:57]json_value_free done [21:32:57]process_json_proto returns [21:32:57]Send response to host [21:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165859,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:32:57]free response buf [21:32:57]execute_script done [21:32:57]execute_script returns [21:32:57]free content buf [21:32:57]Sock 5.Close socket [21:32:57]Sock 5.Thread stoped [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:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34: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:13]accept exits with 6 [21:37:13]New connection [21:37:13]New thread 3066920292 created [21:37:13]Thread 3066776932 joined [21:37:13]Waiting for new connection... [21:37:13] Sock 6.Parse request [21:37:13]Sock 6.Check first char [21:37:13]Sock 6.First char is OK [21:37:13]request: POST /json_proto HTTP/1.0 [21:37:13]Method: POST [21:37:13]URL: /json_proto [21:37:13]Method is POST - this is cgi request [21:37:13]url: /json_proto [21:37:13]query_string will be loaded in cgi processing [21:37:13]execute_cgi json_proto POST (null) [21:37:13]execute_cgi path=json_proto method=POST [21:37:13]POST find Content-Length [21:37:13]Host: 172.17.53.195:8080 [21:37:13]Content-Length: 766 [21:37:13]Content-Type: application/json [21:37:13] [21:37:13]POST finish read [21:37:13]Found Content-Length = 766 [21:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:13]execute_script... [21:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:13]POST & json_proto [21:37:13]process_json_proto [21:37:13]json parsed OK: [21:37:13]protocol is kg_v1.0 [21:37:13]action value=close_receipt [21:37:13]process_action close_receipt [21:37:13]cmd_close_receipt [21:37:13]MH_GetDate [21:37:13]Write to MH i2c: F0 00 00 F6 1F 04 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: F0 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: F0 09 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: F0 09 00 F6 1F 00 17 78 15 67 21 48 4A 65 30 [21:37:13]GetLastDocTimeStamp 1729459987 [21:37:13]current date 1729460247 [21:37:13]FM_GetShiftState [21:37:13]SAM_PROTO_GetShiftState [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 13 01 00 [21:37:13]Write to MH i2c: E2 08 00 F7 1F 80 13 01 00 00 00 00 00 93 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0E 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0E 00 F7 1F 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DB [21:37:13]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:37:13]wFMCommunicate OK [21:37:13]SAM_PROTO_GetShiftState done [21:37:13]FM_GetShiftState done [21:37:13]opened in 1729384561 [21:37:13]opened+sec_in_day 1729470961 [21:37:13]quantity*price = 40068 [21:37:13]sum+1 = 40069 [21:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.68 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 0.00 Безнал.: 400.68 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 342 20.10.2024 21:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165860 ФПД: 220517535744362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213727&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165860&fm=220517535744362&tin=02508201610067®Number=0000000000091764&sum=40068 [21:37:14]StoreToDocumentArchive [21:37:14]shift 534 fd 165860 [21:37:14]save to /storage/0534/doc_00165860 [21:37:14]save last doc name /storage/0534/doc_00165860 to /storage/kkm_last_doc_name [21:37:14]save OK [21:37:14]Clear old archive folders... [21:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:14]tlvbuf is 015E92C0 [21:37:14]SAM_PROTO_ClearQueue [21:37:14]wFMCommunicate request_size=4 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 09 00 00 [21:37:14]Write to MH i2c: E2 08 00 04 20 80 09 00 00 00 00 00 00 96 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 04 20 00 90 00 98 [21:37:14]RAPDU: 90 00 [21:37:14]wFMCommunicate OK [21:37:14]SAM_PROTO_ClearQueue done [21:37:14]KKMCreateOFDPacket [21:37:14]OFDProtocolAddRootSTLVToBuf [21:37:14]FM_MakeSignedData [21:37:14]FM_MakeSignedData [21:37:14]SAM_PROTO_SignData [21:37:14]wFMCommunicate request_size=4 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 0D 01 02 [21:37:14]Write to MH i2c: E2 08 00 05 20 80 0D 01 02 00 00 00 00 9E [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 05 20 00 90 00 99 [21:37:14]RAPDU: 90 00 [21:37:14]wFMCommunicate OK [21:37:14]wFMCommunicate request_size=255 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 17 78 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 87 02 00 35 04 06 00 C8 [21:37:14]Write to MH i2c: E2 02 01 06 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 17 78 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 87 02 00 35 04 06 00 C8 00 00 1A [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 06 20 00 90 00 9A [21:37:14]RAPDU: 90 00 [21:37:14]wFMCommunicate OK [21:37:14]wFMCommunicate request_size=10 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 0D 02 02 05 8F 3D 62 81 6A [21:37:14]Write to MH i2c: E2 0D 00 07 20 80 0D 02 02 05 00 8F 3D 62 81 6A 00 00 C4 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:15]Read from MH i2c: E2 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 03 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 03 00 07 20 00 90 00 9B [21:37:15]RAPDU: 90 00 [21:37:15]wFMCommunicate OK [21:37:15]wFMCommunicate request_size=4 [21:37:15]MH_SAM_APDU [21:37:15]CAPDU: 80 0D 03 02 [21:37:15]Write to MH i2c: E2 08 00 08 20 80 0D 03 02 00 00 00 00 A3 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:15]Read from MH i2c: E2 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 0B 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 0B 00 08 20 00 4F B6 1B 9B 25 E4 CD 5D 90 00 92 [21:37:15]RAPDU: 4F B6 1B 9B 25 E4 CD 5D 90 00 [21:37:15]wFMCommunicate OK [21:37:15]SAM_PROTO_SignData done [21:37:15]FM_MakeSignedData done [21:37:15]CreateOFDProtocolMessage [21:37:15]wFMCommunicate request_size=4 [21:37:15]MH_SAM_APDU [21:37:15]CAPDU: 80 11 00 00 [21:37:15]Write to MH i2c: E2 08 00 09 20 80 11 00 00 00 00 00 00 A3 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:15]Read from MH i2c: E2 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 17 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 17 00 09 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FB [21:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:37:15]wFMCommunicate OK [21:37:15]CreateOFDProtocolMessage done [21:37:15]OFDSenderStorePacket 165860 [21:37:15]StoreOFDPacket docnum=165860 [21:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F0 60 07 01 43 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 17 78 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 87 02 00 35 04 06 00 C8 8F 3D 62 81 6A 4F B6 1B 9B 25 E4 CD 5D [21:37:15]CheckFolder [21:37:15]dirname=/storage/ofd_packets [21:37:15]CheckFolder done [21:37:15]ProducePacketName [21:37:15]name=ofd_packets/00165860 [21:37:15]NVStorageSaveData ofd_packets/00165860 [21:37:15]File name is /storage/ofd_packets/00165860 [21:37:15]Write 301 bytes [21:37:15]NVStorageSaveData done [21:37:15]OFDSenderStorePacket done [21:37:15]KKMCreateOFDPacket done [21:37:15]NVStorageSaveData kkm_last_timestamp [21:37:15]File name is /storage/kkm_last_timestamp [21:37:15]Write 4 bytes [21:37:15]NVStorageSaveData done [21:37:15]ExternCall_PrintAddStr [21:37:15]wPrintStart [21:37:15]Write to MH i2c: 01 00 00 0A 20 2A [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 07 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 07 00 0A 20 00 00 00 00 00 FF 0F 3F [21:37:15]RasterBufferAndPrint [21:37:15]line Счет N : (1)220429 [21:37:15]line ИНН: 02508201610067 [21:37:15]line Контрольно-Кассовый Чек [21:37:15]line ПРОДАЖА [21:37:15]line ТРК (МРК, ГНК) : 44 [21:37:15]line Товар: 2710124500 [21:37:15]line Аи-95-К-5 [21:37:15]line 5.400 * 74.20 [21:37:15]line = 400.68 [21:37:15]line НДС 12% НСП 1% [21:37:15]line > о реализуемом товаре [21:37:15]line ИТОГО: 400.68 [21:37:15]line НСП 1% : 3.55 [21:37:15]line НДС 12% : 42.55 [21:37:15]line Наличными: 0.00 [21:37:15]line Безнал.: 400.68 [21:37:15]line Место: АЗС № 161 "Партнер Нефть" [21:37:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:37:15]line СНО: Общий режим [21:37:15]line Чек 342 20.10.2024 21:37 [21:37:15]line Смена: 534 ФФД: 1.0 [21:37:15]line ЗНМ: 0300000104 [21:37:15]line РНМ: 0000000000091764 [21:37:15]line Версия ККМ: 001 [21:37:15]line Платежная система: Mbank [21:37:15]line ФМ: 0000000000871759 [21:37:15]line ФД: 165860 [21:37:15]line ФПД: 220517535744362 [21:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213727&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165860&fm=220517535744362&tin=02508201610067®Number=0000000000091764&sum=40068 [21:37:15]written 0, free lines is 4095 [21:37:15]OFD Sender: Processing packet 165860 [packets to send 48, broken 47] [21:37:15]ProducePacketName [21:37:15]name=ofd_packets/00165860 [21:37:15]OFD Sender: To server: pG, [21:37:15]CommunicateWithHost lk.salyk.kg:30040 [21:37:15]ConnectInit lk.salyk.kg [21:37:15]Connected sock=7 [21:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F0 60 07 01 43 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 17 78 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 87 02 00 35 04 06 00 C8 8F 3D 62 81 6A 4F B6 1B 9B 25 E4 CD 5D [21:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 94 5E 47 00 48 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 31 37 35 39 10 04 04 00 E4 87 02 00 F4 03 04 00 88 1E 15 67 B6 04 01 00 00 05 F4 57 9E 3D A1 81 45 [21:37:15]CommunicateWithHost err = 0 [21:37:15]CheckOFDResponse [21:37:15]1017 (14) - 77093643461234 [21:37:15]1041 (16) - 0000000000871759 [21:37:15]1040 (4) - 165860 [21:37:15]1012 (4) - 20.10.2024 15:15 [21:37:15]1206 (1) - 0 [21:37:15]OFD Sender: Remove packet 165860 [21:37:15]ProducePacketName [21:37:15]name=ofd_packets/00165860 [21:37:15]NVStorageDeleteData [21:37:15]Write to MH i2c: 01 00 00 33 20 53 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 07 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 07 00 33 20 00 00 00 00 00 EF 0C 55 [21:37:15]RasterBufferAndPrint [21:37:15]line [21:37:15]line [21:37:15]line [21:37:15]line [21:37:15]line [21:37:15]written 0, free lines is 3317 [21:37:15]MH_Cut [21:37:15]Write to MH i2c: D1 01 00 3A 20 01 2C [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: D1 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: D1 01 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: D1 01 00 3A 20 00 2B [21:37:15]Write to MH i2c: 01 00 00 3B 20 5B [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]OFD Sender: No OFD packet to send [21:37:16]*** Cut start [21:37:16]*** Partial cut [21:37:16]*** CUTSNS_PIN = 1 [21:37:16]*** CUTSNS_PIN = 0 [21:37:16]*** Brake cut motor [21:37:16]Read from MH i2c: 01 [21:37:17]MH_I2C_Read... [21:37:17]*** Stop cut motor [21:37:17]*** Cut end [21:37:17]Read from MH i2c: 01 07 00 [21:37:17]MH_I2C_Read... [21:37:17]Read from MH i2c: 01 07 00 3B 20 00 00 00 00 00 FF 0F 70 [21:37:17]process_action close_receipt done [21:37:17]requested_data is exist [21:37:17]produce_requested_data [21:37:17]requested_item fm.sn is exist - process it [21:37:17]wFMCommunicate request_size=4 [21:37:17]MH_SAM_APDU [21:37:17]CAPDU: 80 11 00 00 [21:37:17]Write to MH i2c: E2 08 00 3C 20 80 11 00 00 00 00 00 00 D6 [21:37:17]Write i2c OK [21:37:17]MH_I2C_Read... [21:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:17]Read from MH i2c: E2 [21:37:17]MH_I2C_Read... [21:37:17]Read from MH i2c: E2 17 00 [21:37:17]MH_I2C_Read... [21:37:17]Read from MH i2c: E2 17 00 3C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [21:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:37:17]wFMCommunicate OK [21:37:17]requested_item fd.num is exist - process it [21:37:17]SAM_PROTO_GetFieldsCounters [21:37:17]wFMCommunicate request_size=4 [21:37:17]MH_SAM_APDU [21:37:17]CAPDU: 80 13 00 00 [21:37:17]Write to MH i2c: E2 08 00 3D 20 80 13 00 00 00 00 00 00 D9 [21:37:17]Write i2c OK [21:37:17]MH_I2C_Read... [21:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:17]Read from MH i2c: E2 [21:37:17]MH_I2C_Read... [21:37:17]Read from MH i2c: E2 62 00 [21:37:17]MH_I2C_Read... [21:37:17]Read from MH i2c: E2 62 00 3D 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 87 02 00 0E 04 04 00 16 02 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 8B [21:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 87 02 00 0E 04 04 00 16 02 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 [21:37:17]wFMCommunicate OK [21:37:17]SAM_PROTO_GetFieldsCounters done [21:37:17]requested_item shift.num is exist - process it [21:37:17]requested_item shift.opened is exist - process it [21:37:17]req_shift_opened [21:37:17]FM_GetShiftState [21:37:17]SAM_PROTO_GetShiftState [21:37:17]wFMCommunicate request_size=4 [21:37:17]MH_SAM_APDU [21:37:17]CAPDU: 80 13 01 00 [21:37:17]Write to MH i2c: E2 08 00 3E 20 80 13 01 00 00 00 00 00 DB [21:37:17]Write i2c OK [21:37:17]MH_I2C_Read... [21:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:17]Read from MH i2c: E2 [21:37:17]MH_I2C_Read... [21:37:17]Read from MH i2c: E2 0E 00 [21:37:17]MH_I2C_Read... [21:37:17]Read from MH i2c: E2 0E 00 3E 20 00 09 00 01 71 50 14 67 00 00 00 00 90 00 23 [21:37:17]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:37:17]wFMCommunicate OK [21:37:17]SAM_PROTO_GetShiftState done [21:37:17]FM_GetShiftState done [21:37:17]req_shift_opened done [21:37:17]requested_item shift.open_date is exist - process it [21:37:17]req_shift_open_date [21:37:17]req_shift_open_date done [21:37:17]produce_requested_data done [21:37:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165860,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:37:17]process_action_free close_receipt [21:37:17]json_value_free [21:37:17]json_value_free done [21:37:17]process_json_proto returns [21:37:17]Send response to host [21:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165860,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:37:17]free response buf [21:37:17]execute_script done [21:37:17]execute_script returns [21:37:17]free content buf [21:37:17]Sock 6.Close socket [21:37:17]Sock 6.Thread stoped [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37: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:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:15]accept exits with 5 [21:41:15]New connection [21:41:15]New thread 3066776932 created [21:41:15]Thread 3066920292 joined [21:41:15]Waiting for new connection... [21:41:15] Sock 5.Parse request [21:41:15]Sock 5.Check first char [21:41:15]Sock 5.First char is OK [21:41:15]request: POST /json_proto HTTP/1.0 [21:41:15]Method: POST [21:41:15]URL: /json_proto [21:41:15]Method is POST - this is cgi request [21:41:15]url: /json_proto [21:41:15]query_string will be loaded in cgi processing [21:41:15]execute_cgi json_proto POST (null) [21:41:15]execute_cgi path=json_proto method=POST [21:41:15]POST find Content-Length [21:41:15]Host: 172.17.53.195:8080 [21:41:15]Content-Length: 677 [21:41:15]Content-Type: application/json [21:41:15] [21:41:15]POST finish read [21:41:15]Found Content-Length = 677 [21:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:15]execute_script... [21:41: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)220430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:15]POST & json_proto [21:41:15]process_json_proto [21:41:15]json parsed OK: [21:41:15]protocol is kg_v1.0 [21:41:15]action value=close_receipt [21:41:15]process_action close_receipt [21:41:15]cmd_close_receipt [21:41:15]MH_GetDate [21:41:15]Write to MH i2c: F0 00 00 3F 20 4E [21:41:15]Write i2c OK [21:41:15]MH_I2C_Read... [21:41:15]Read from MH i2c: F0 [21:41:15]MH_I2C_Read... [21:41:15]Read from MH i2c: F0 09 00 [21:41:15]MH_I2C_Read... [21:41:15]Read from MH i2c: F0 09 00 3F 20 00 0A 79 15 67 21 48 4A 65 6E [21:41:15]GetLastDocTimeStamp 1729460247 [21:41:15]current date 1729460490 [21:41:15]FM_GetShiftState [21:41:15]SAM_PROTO_GetShiftState [21:41:15]wFMCommunicate request_size=4 [21:41:15]MH_SAM_APDU [21:41:15]CAPDU: 80 13 01 00 [21:41:15]Write to MH i2c: E2 08 00 40 20 80 13 01 00 00 00 00 00 DD [21:41:15]Write i2c OK [21:41:15]MH_I2C_Read... [21:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:15]Read from MH i2c: E2 [21:41:15]MH_I2C_Read... [21:41:15]Read from MH i2c: E2 0E 00 [21:41:15]MH_I2C_Read... [21:41:15]Read from MH i2c: E2 0E 00 40 20 00 09 00 01 71 50 14 67 00 00 00 00 90 00 25 [21:41:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:41:15]wFMCommunicate OK [21:41:15]SAM_PROTO_GetShiftState done [21:41:15]FM_GetShiftState done [21:41:15]opened in 1729384561 [21:41:15]opened+sec_in_day 1729470961 [21:41:15]quantity*price = 49974 [21:41:15]sum+1 = 49975 [21:41:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 343 20.10.2024 21:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165861 ФПД: 127093432229576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165861&fm=127093432229576&tin=02508201610067®Number=0000000000091764&sum=49900 [21:41:16]StoreToDocumentArchive [21:41:16]shift 534 fd 165861 [21:41:16]save to /storage/0534/doc_00165861 [21:41:16]save last doc name /storage/0534/doc_00165861 to /storage/kkm_last_doc_name [21:41:16]save OK [21:41:16]Clear old archive folders... [21:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:16]tlvbuf is 015BCE30 [21:41:16]SAM_PROTO_ClearQueue [21:41:16]wFMCommunicate request_size=4 [21:41:16]MH_SAM_APDU [21:41:16]CAPDU: 80 09 00 00 [21:41:16]Write to MH i2c: E2 08 00 4D 20 80 09 00 00 00 00 00 00 DF [21:41:16]Write i2c OK [21:41:16]MH_I2C_Read... [21:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:16]Read from MH i2c: E2 [21:41:16]MH_I2C_Read... [21:41:16]Read from MH i2c: E2 03 00 [21:41:16]MH_I2C_Read... [21:41:16]Read from MH i2c: E2 03 00 4D 20 00 90 00 E1 [21:41:16]RAPDU: 90 00 [21:41:16]wFMCommunicate OK [21:41:16]SAM_PROTO_ClearQueue done [21:41:16]KKMCreateOFDPacket [21:41:16]OFDProtocolAddRootSTLVToBuf [21:41:16]FM_MakeSignedData [21:41:16]FM_MakeSignedData [21:41:16]SAM_PROTO_SignData [21:41:16]wFMCommunicate request_size=4 [21:41:16]MH_SAM_APDU [21:41:16]CAPDU: 80 0D 01 02 [21:41:16]Write to MH i2c: E2 08 00 4E 20 80 0D 01 02 00 00 00 00 E7 [21:41:16]Write i2c OK [21:41:16]MH_I2C_Read... [21:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:16]Read from MH i2c: E2 [21:41:16]MH_I2C_Read... [21:41:16]Read from MH i2c: E2 03 00 [21:41:16]MH_I2C_Read... [21:41:16]Read from MH i2c: E2 03 00 4E 20 00 90 00 E2 [21:41:16]RAPDU: 90 00 [21:41:16]wFMCommunicate OK [21:41:16]wFMCommunicate request_size=255 [21:41:16]MH_SAM_APDU [21:41: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 0A 79 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 87 02 00 35 04 06 00 73 [21:41:16]Write to MH i2c: E2 02 01 4F 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 0A 79 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 87 02 00 35 04 06 00 73 00 00 AE [21:41:16]Write i2c OK [21:41:16]MH_I2C_Read... [21:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:17]Read from MH i2c: E2 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 03 00 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 03 00 4F 20 00 90 00 E3 [21:41:17]RAPDU: 90 00 [21:41:17]wFMCommunicate OK [21:41:17]wFMCommunicate request_size=10 [21:41:17]MH_SAM_APDU [21:41:17]CAPDU: 80 0D 02 02 05 97 3E E1 9E C8 [21:41:17]Write to MH i2c: E2 0D 00 50 20 80 0D 02 02 05 00 97 3E E1 9E C8 00 00 10 [21:41:17]Write i2c OK [21:41:17]MH_I2C_Read... [21:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:17]Read from MH i2c: E2 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 03 00 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 03 00 50 20 00 90 00 E4 [21:41:17]RAPDU: 90 00 [21:41:17]wFMCommunicate OK [21:41:17]wFMCommunicate request_size=4 [21:41:17]MH_SAM_APDU [21:41:17]CAPDU: 80 0D 03 02 [21:41:17]Write to MH i2c: E2 08 00 51 20 80 0D 03 02 00 00 00 00 EC [21:41:17]Write i2c OK [21:41:17]MH_I2C_Read... [21:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:17]Read from MH i2c: E2 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 0B 00 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 0B 00 51 20 00 50 3A 75 26 60 47 12 B1 90 00 7C [21:41:17]RAPDU: 50 3A 75 26 60 47 12 B1 90 00 [21:41:17]wFMCommunicate OK [21:41:17]SAM_PROTO_SignData done [21:41:17]FM_MakeSignedData done [21:41:17]CreateOFDProtocolMessage [21:41:17]wFMCommunicate request_size=4 [21:41:17]MH_SAM_APDU [21:41:17]CAPDU: 80 11 00 00 [21:41:17]Write to MH i2c: E2 08 00 52 20 80 11 00 00 00 00 00 00 EC [21:41:17]Write i2c OK [21:41:17]MH_I2C_Read... [21:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:17]Read from MH i2c: E2 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 17 00 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 17 00 52 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [21:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:41:17]wFMCommunicate OK [21:41:17]CreateOFDProtocolMessage done [21:41:17]OFDSenderStorePacket 165861 [21:41:17]StoreOFDPacket docnum=165861 [21:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 71 07 01 EA 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 0A 79 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 87 02 00 35 04 06 00 73 97 3E E1 9E C8 50 3A 75 26 60 47 12 B1 [21:41:17]CheckFolder [21:41:17]dirname=/storage/ofd_packets [21:41:17]CheckFolder done [21:41:17]ProducePacketName [21:41:17]name=ofd_packets/00165861 [21:41:17]NVStorageSaveData ofd_packets/00165861 [21:41:17]File name is /storage/ofd_packets/00165861 [21:41:17]Write 301 bytes [21:41:17]NVStorageSaveData done [21:41:17]OFDSenderStorePacket done [21:41:17]KKMCreateOFDPacket done [21:41:17]NVStorageSaveData kkm_last_timestamp [21:41:17]File name is /storage/kkm_last_timestamp [21:41:17]Write 4 bytes [21:41:17]NVStorageSaveData done [21:41:17]ExternCall_PrintAddStr [21:41:17]wPrintStart [21:41:17]Write to MH i2c: 01 00 00 53 20 73 [21:41:17]Write i2c OK [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: 01 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: 01 07 00 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: 01 07 00 53 20 00 00 00 00 00 FF 0F 88 [21:41:17]RasterBufferAndPrint [21:41:17]line Счет N : (1)220430 [21:41:17]line ИНН: 02508201610067 [21:41:17]line Контрольно-Кассовый Чек [21:41:17]line ПРОДАЖА [21:41:17]line ТРК (МРК, ГНК) : 13 [21:41:17]line Товар: 2710124130 [21:41:17]line Аи-92-К-5 [21:41:17]line 7.470 * 66.90 [21:41:17]line = 499.74 [21:41:17]line НДС 12% НСП 1% [21:41:17]line > о реализуемом товаре [21:41:17]line ОКРУГЛЕНИЕ: -0.74 [21:41:17]line ИТОГО: 499.00 [21:41:17]line Внесено: 500.00 [21:41:17]line СДАЧА: 1.00 [21:41:17]line НСП 1% : 4.42 [21:41:17]line НДС 12% : 53.07 [21:41:17]line Наличными: 499.00 [21:41:17]line Безнал.: 0.00 [21:41:17]line Место: АЗС № 161 "Партнер Нефть" [21:41:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:41:17]line СНО: Общий режим [21:41:17]line Чек 343 20.10.2024 21:41 [21:41:17]line Смена: 534 ФФД: 1.0 [21:41:17]line ЗНМ: 0300000104 [21:41:17]line РНМ: 0000000000091764 [21:41:17]line Версия ККМ: 001 [21:41:17]line ФМ: 0000000000871759 [21:41:17]line ФД: 165861 [21:41:17]line ФПД: 127093432229576 [21:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165861&fm=127093432229576&tin=02508201610067®Number=0000000000091764&sum=49900 [21:41:17]OFD Sender: Processing packet 165861 [packets to send 48, broken 47] [21:41:17]ProducePacketName [21:41:17]name=ofd_packets/00165861 [21:41:17]OFD Sender: To server: pG, [21:41:17]CommunicateWithHost lk.salyk.kg:30040 [21:41:17]ConnectInit lk.salyk.kg [21:41:17]written 0, free lines is 4095 [21:41:17]Connected sock=7 [21:41:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 71 07 01 EA 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 0A 79 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 87 02 00 35 04 06 00 73 97 3E E1 9E C8 50 3A 75 26 60 47 12 B1 [21:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2F 08 47 00 BC 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 31 37 35 39 10 04 04 00 E5 87 02 00 F4 03 04 00 7A 1F 15 67 B6 04 01 00 00 FB C8 20 39 0D 14 38 E4 [21:41:17]CommunicateWithHost err = 0 [21:41:17]CheckOFDResponse [21:41:17]1017 (14) - 77093643461234 [21:41:17]1041 (16) - 0000000000871759 [21:41:17]1040 (4) - 165861 [21:41:17]1012 (4) - 20.10.2024 15:19 [21:41:17]1206 (1) - 0 [21:41:17]OFD Sender: Remove packet 165861 [21:41:17]ProducePacketName [21:41:17]name=ofd_packets/00165861 [21:41:17]NVStorageDeleteData [21:41:17]Write to MH i2c: 01 00 00 7E 20 9E [21:41:17]Write i2c OK [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: 01 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: 01 07 00 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: 01 07 00 7E 20 00 00 00 00 00 A9 0C 5A [21:41:17]RasterBufferAndPrint [21:41:17]line [21:41:17]line [21:41:17]line [21:41:17]line [21:41:17]line [21:41:17]written 0, free lines is 3246 [21:41:18]MH_Cut [21:41:18]Write to MH i2c: D1 01 00 85 20 01 77 [21:41:18]Write i2c OK [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: D1 [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: D1 01 00 [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: D1 01 00 85 20 00 76 [21:41:18]Write to MH i2c: 01 00 00 86 20 A6 [21:41:18]Write i2c OK [21:41:18]MH_I2C_Read... [21:41:18]OFD Sender: No OFD packet to send [21:41:18]*** Cut start [21:41:18]*** Partial cut [21:41:18]*** CUTSNS_PIN = 1 [21:41:18]*** CUTSNS_PIN = 0 [21:41:19]*** Brake cut motor [21:41:19]Read from MH i2c: 01 [21:41:19]MH_I2C_Read... [21:41:19]*** Stop cut motor [21:41:19]*** Cut end [21:41:19]Read from MH i2c: 01 07 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: 01 07 00 86 20 00 00 00 00 00 FF 0F BB [21:41:19]process_action close_receipt done [21:41:19]requested_data is exist [21:41:19]produce_requested_data [21:41:19]requested_item fm.sn is exist - process it [21:41:19]wFMCommunicate request_size=4 [21:41:19]MH_SAM_APDU [21:41:19]CAPDU: 80 11 00 00 [21:41:19]Write to MH i2c: E2 08 00 87 20 80 11 00 00 00 00 00 00 21 [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:19]Read from MH i2c: E2 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 17 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 17 00 87 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [21:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:41:19]wFMCommunicate OK [21:41:19]requested_item fd.num is exist - process it [21:41:19]SAM_PROTO_GetFieldsCounters [21:41:19]wFMCommunicate request_size=4 [21:41:19]MH_SAM_APDU [21:41:19]CAPDU: 80 13 00 00 [21:41:19]Write to MH i2c: E2 08 00 88 20 80 13 00 00 00 00 00 00 24 [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:19]Read from MH i2c: E2 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 62 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 62 00 88 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 87 02 00 0E 04 04 00 16 02 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 DA [21:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 87 02 00 0E 04 04 00 16 02 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 [21:41:19]wFMCommunicate OK [21:41:19]SAM_PROTO_GetFieldsCounters done [21:41:19]requested_item shift.num is exist - process it [21:41:19]requested_item shift.opened is exist - process it [21:41:19]req_shift_opened [21:41:19]FM_GetShiftState [21:41:19]SAM_PROTO_GetShiftState [21:41:19]wFMCommunicate request_size=4 [21:41:19]MH_SAM_APDU [21:41:19]CAPDU: 80 13 01 00 [21:41:19]Write to MH i2c: E2 08 00 89 20 80 13 01 00 00 00 00 00 26 [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:19]Read from MH i2c: E2 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 0E 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 0E 00 89 20 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6E [21:41:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:41:19]wFMCommunicate OK [21:41:19]SAM_PROTO_GetShiftState done [21:41:19]FM_GetShiftState done [21:41:19]req_shift_opened done [21:41:19]requested_item shift.open_date is exist - process it [21:41:19]req_shift_open_date [21:41:19]req_shift_open_date done [21:41:19]produce_requested_data done [21:41:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165861,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:41:19]process_action_free close_receipt [21:41:19]json_value_free [21:41:19]json_value_free done [21:41:19]process_json_proto returns [21:41:19]Send response to host [21:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165861,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:41:19]free response buf [21:41:19]execute_script done [21:41:19]execute_script returns [21:41:19]free content buf [21:41:19]Sock 5.Close socket [21:41:19]Sock 5.Thread stoped [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:23]accept exits with 6 [21:42:23]New connection [21:42:23]New thread 3066920292 created [21:42:23]Thread 3066776932 joined [21:42:23]Waiting for new connection... [21:42:23] Sock 6.Parse request [21:42:23]Sock 6.Check first char [21:42:23]Sock 6.First char is OK [21:42:23]request: POST /json_proto HTTP/1.0 [21:42:23]Method: POST [21:42:23]URL: /json_proto [21:42:23]Method is POST - this is cgi request [21:42:23]url: /json_proto [21:42:23]query_string will be loaded in cgi processing [21:42:23]execute_cgi json_proto POST (null) [21:42:23]execute_cgi path=json_proto method=POST [21:42:23]POST find Content-Length [21:42:23]Host: 172.17.53.195:8080 [21:42:23]Content-Length: 766 [21:42:23]Content-Type: application/json [21:42:23] [21:42:23]POST finish read [21:42:23]Found Content-Length = 766 [21:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220431", "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" : 76.20, "quantity" : 80.000, "sum" : 6096.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: Mbank", "payments": [ { "type": 1, "sum" : 6096.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:23]execute_script... [21:42: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)220431", "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" : 76.20, "quantity" : 80.000, "sum" : 6096.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: Mbank", "payments": [ { "type": 1, "sum" : 6096.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:23]POST & json_proto [21:42:23]process_json_proto [21:42:23]json parsed OK: [21:42:23]protocol is kg_v1.0 [21:42:23]action value=close_receipt [21:42:23]process_action close_receipt [21:42:23]cmd_close_receipt [21:42:23]MH_GetDate [21:42:23]Write to MH i2c: F0 00 00 8A 20 99 [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: F0 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: F0 09 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: F0 09 00 8A 20 00 4E 79 15 67 21 48 4A 65 FD [21:42:23]GetLastDocTimeStamp 1729460490 [21:42:23]current date 1729460558 [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 8B 20 80 13 01 00 00 00 00 00 28 [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:24]Read from MH i2c: E2 [21:42:24]MH_I2C_Read... [21:42:24]Read from MH i2c: E2 0E 00 [21:42:24]MH_I2C_Read... [21:42:24]Read from MH i2c: E2 0E 00 8B 20 00 09 00 01 71 50 14 67 00 00 00 00 90 00 70 [21:42:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:42:24]wFMCommunicate OK [21:42:24]SAM_PROTO_GetShiftState done [21:42:24]FM_GetShiftState done [21:42:24]opened in 1729384561 [21:42:24]opened+sec_in_day 1729470961 [21:42:24]quantity*price = 609600 [21:42:24]sum+1 = 609601 [21:42:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6096.00 НСП 1% : 53.95 НДС 12% : 647.36 Наличными: 0.00 Безнал.: 6096.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 344 20.10.2024 21:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165862 ФПД: 84389496766567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214238&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165862&fm=84389496766567&tin=02508201610067®Number=0000000000091764&sum=609600 [21:42:25]StoreToDocumentArchive [21:42:25]shift 534 fd 165862 [21:42:25]save to /storage/0534/doc_00165862 [21:42:25]save last doc name /storage/0534/doc_00165862 to /storage/kkm_last_doc_name [21:42:25]save OK [21:42:25]Clear old archive folders... [21:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:42:25]tlvbuf is 01A04C90 [21:42:25]SAM_PROTO_ClearQueue [21:42:25]wFMCommunicate request_size=4 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 09 00 00 [21:42:25]Write to MH i2c: E2 08 00 98 20 80 09 00 00 00 00 00 00 2A [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 03 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 03 00 98 20 00 90 00 2C [21:42:25]RAPDU: 90 00 [21:42:25]wFMCommunicate OK [21:42:25]SAM_PROTO_ClearQueue done [21:42:25]KKMCreateOFDPacket [21:42:25]OFDProtocolAddRootSTLVToBuf [21:42:25]FM_MakeSignedData [21:42:25]FM_MakeSignedData [21:42:25]SAM_PROTO_SignData [21:42:25]wFMCommunicate request_size=4 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 0D 01 02 [21:42:25]Write to MH i2c: E2 08 00 99 20 80 0D 01 02 00 00 00 00 32 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 03 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 03 00 99 20 00 90 00 2D [21:42:25]RAPDU: 90 00 [21:42:25]wFMCommunicate OK [21:42:25]wFMCommunicate request_size=255 [21:42:25]MH_SAM_APDU [21:42: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 80 38 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 40 4D 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 4D 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 FC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 4D 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 4E 79 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 87 02 00 35 04 06 00 4C C0 75 FA [21:42:25]Write to MH i2c: E2 02 01 9A 20 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 80 38 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 40 4D 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 4D 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 FC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 4D 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 4E 79 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 87 02 00 35 04 06 00 4C C0 75 FA 00 00 94 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 03 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 03 00 9A 20 00 90 00 2E [21:42:25]RAPDU: 90 00 [21:42:25]wFMCommunicate OK [21:42:25]wFMCommunicate request_size=7 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 0D 02 02 02 40 67 [21:42:25]Write to MH i2c: E2 0A 00 9B 20 80 0D 02 02 02 00 40 67 00 00 E0 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 03 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 03 00 9B 20 00 90 00 2F [21:42:25]RAPDU: 90 00 [21:42:25]wFMCommunicate OK [21:42:25]wFMCommunicate request_size=4 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 0D 03 02 [21:42:25]Write to MH i2c: E2 08 00 9C 20 80 0D 03 02 00 00 00 00 37 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 0B 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 0B 00 9C 20 00 F4 BB 31 48 43 0B 4D 8B 90 00 86 [21:42:25]RAPDU: F4 BB 31 48 43 0B 4D 8B 90 00 [21:42:25]wFMCommunicate OK [21:42:25]SAM_PROTO_SignData done [21:42:25]FM_MakeSignedData done [21:42:25]CreateOFDProtocolMessage [21:42:25]wFMCommunicate request_size=4 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 11 00 00 [21:42:25]Write to MH i2c: E2 08 00 9D 20 80 11 00 00 00 00 00 00 37 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 17 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 17 00 9D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [21:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:42:25]wFMCommunicate OK [21:42:25]CreateOFDProtocolMessage done [21:42:25]OFDSenderStorePacket 165862 [21:42:25]StoreOFDPacket docnum=165862 [21:42:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 73 E0 04 01 22 C9 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 80 38 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 40 4D 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 4D 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 FC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 4D 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 4E 79 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 87 02 00 35 04 06 00 4C C0 75 FA 40 67 F4 BB 31 48 43 0B 4D 8B [21:42:25]CheckFolder [21:42:25]dirname=/storage/ofd_packets [21:42:25]CheckFolder done [21:42:25]ProducePacketName [21:42:25]name=ofd_packets/00165862 [21:42:25]NVStorageSaveData ofd_packets/00165862 [21:42:25]File name is /storage/ofd_packets/00165862 [21:42:25]Write 298 bytes [21:42:25]NVStorageSaveData done [21:42:25]OFDSenderStorePacket done [21:42:25]KKMCreateOFDPacket done [21:42:25]NVStorageSaveData kkm_last_timestamp [21:42:25]File name is /storage/kkm_last_timestamp [21:42:25]Write 4 bytes [21:42:25]NVStorageSaveData done [21:42:25]ExternCall_PrintAddStr [21:42:25]wPrintStart [21:42:25]Write to MH i2c: 01 00 00 9E 20 BE [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: 01 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: 01 07 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: 01 07 00 9E 20 00 00 00 00 00 FF 0F D3 [21:42:25]RasterBufferAndPrint [21:42:25]line Счет N : (1)220431 [21:42:25]line ИНН: 02508201610067 [21:42:25]line Контрольно-Кассовый Чек [21:42:25]line ПРОДАЖА [21:42:25]line ТРК (МРК, ГНК) : 21 [21:42:25]line Товар: 2710194210 [21:42:25]line ДТ-К-5 [21:42:25]line 80.000 * 76.20 [21:42:25]line = 6096.00 [21:42:25]line НДС 12% НСП 1% [21:42:25]line > о реализуемом товаре [21:42:25]line ИТОГО: 6096.00 [21:42:25]line НСП 1% : 53.95 [21:42:25]line НДС 12% : 647.36 [21:42:25]line Наличными: 0.00 [21:42:25]line Безнал.: 6096.00 [21:42:25]line Место: АЗС № 161 "Партнер Нефть" [21:42:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:42:25]line СНО: Общий режим [21:42:25]line Чек 344 20.10.2024 21:42 [21:42:25]line Смена: 534 ФФД: 1.0 [21:42:25]line ЗНМ: 0300000104 [21:42:25]line РНМ: 0000000000091764 [21:42:25]line Версия ККМ: 001 [21:42:25]line Платежная система: Mbank [21:42:25]line ФМ: 0000000000871759 [21:42:25]line ФД: 165862 [21:42:25]line ФПД: 84389496766567 [21:42:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214238&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165862&fm=84389496766567&tin=02508201610067®Number=0000000000091764&sum=609600 [21:42:25]OFD Sender: Processing packet 165862 [packets to send 48, broken 47] [21:42:25]ProducePacketName [21:42:25]name=ofd_packets/00165862 [21:42:25]OFD Sender: To server: pG, [21:42:25]CommunicateWithHost lk.salyk.kg:30040 [21:42:25]ConnectInit lk.salyk.kg [21:42:25]written 0, free lines is 4095 [21:42:26]Connected sock=7 [21:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 73 E0 04 01 22 C9 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 80 38 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 40 4D 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 4D 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 FC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 4D 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 4E 79 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 87 02 00 35 04 06 00 4C C0 75 FA 40 67 F4 BB 31 48 43 0B 4D 8B [21:42:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FD 7F 47 00 F6 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 87 02 00 F4 03 04 00 BF 1F 15 67 B6 04 01 00 00 2E 2F 83 32 B3 B5 0A 67 [21:42:26]CommunicateWithHost err = 0 [21:42:26]CheckOFDResponse [21:42:26]1017 (14) - 77093643461234 [21:42:26]1041 (16) - 0000000000871759 [21:42:26]1040 (4) - 165862 [21:42:26]1012 (4) - 20.10.2024 15:20 [21:42:26]1206 (1) - 0 [21:42:26]OFD Sender: Remove packet 165862 [21:42:26]ProducePacketName [21:42:26]name=ofd_packets/00165862 [21:42:26]NVStorageDeleteData [21:42:26]Write to MH i2c: 01 00 00 C7 20 E7 [21:42:26]Write i2c OK [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: 01 [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: 01 07 00 [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: 01 07 00 C7 20 00 00 00 00 00 DC 0C D6 [21:42:26]RasterBufferAndPrint [21:42:26]line [21:42:26]line [21:42:26]line [21:42:26]line [21:42:26]line [21:42:26]written 0, free lines is 3298 [21:42:26]MH_Cut [21:42:26]Write to MH i2c: D1 01 00 CE 20 01 C0 [21:42:26]Write i2c OK [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: D1 [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: D1 01 00 [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: D1 01 00 CE 20 00 BF [21:42:26]Write to MH i2c: 01 00 00 CF 20 EF [21:42:26]Write i2c OK [21:42:26]MH_I2C_Read... [21:42:26]OFD Sender: No OFD packet to send [21:42:27]*** Cut start [21:42:27]*** Partial cut [21:42:27]*** CUTSNS_PIN = 1 [21:42:27]*** CUTSNS_PIN = 0 [21:42:27]*** Brake cut motor [21:42:27]Read from MH i2c: 01 [21:42:27]MH_I2C_Read... [21:42:27]*** Stop cut motor [21:42:27]*** Cut end [21:42:27]Read from MH i2c: 01 07 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: 01 07 00 CF 20 00 00 00 00 00 FF 0F 04 [21:42:27]process_action close_receipt done [21:42:27]requested_data is exist [21:42:27]produce_requested_data [21:42:27]requested_item fm.sn is exist - process it [21:42:27]wFMCommunicate request_size=4 [21:42:27]MH_SAM_APDU [21:42:27]CAPDU: 80 11 00 00 [21:42:27]Write to MH i2c: E2 08 00 D0 20 80 11 00 00 00 00 00 00 6A [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:27]Read from MH i2c: E2 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 17 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 17 00 D0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [21:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:42:27]wFMCommunicate OK [21:42:27]requested_item fd.num is exist - process it [21:42:27]SAM_PROTO_GetFieldsCounters [21:42:27]wFMCommunicate request_size=4 [21:42:27]MH_SAM_APDU [21:42:27]CAPDU: 80 13 00 00 [21:42:27]Write to MH i2c: E2 08 00 D1 20 80 13 00 00 00 00 00 00 6D [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:28]Read from MH i2c: E2 [21:42:28]MH_I2C_Read... [21:42:28]Read from MH i2c: E2 62 00 [21:42:28]MH_I2C_Read... [21:42:28]Read from MH i2c: E2 62 00 D1 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 87 02 00 0E 04 04 00 16 02 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 27 [21:42:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 87 02 00 0E 04 04 00 16 02 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 [21:42:28]wFMCommunicate OK [21:42:28]SAM_PROTO_GetFieldsCounters done [21:42:28]requested_item shift.num is exist - process it [21:42:28]requested_item shift.opened is exist - process it [21:42:28]req_shift_opened [21:42:28]FM_GetShiftState [21:42:28]SAM_PROTO_GetShiftState [21:42:28]wFMCommunicate request_size=4 [21:42:28]MH_SAM_APDU [21:42:28]CAPDU: 80 13 01 00 [21:42:28]Write to MH i2c: E2 08 00 D2 20 80 13 01 00 00 00 00 00 6F [21:42:28]Write i2c OK [21:42:28]MH_I2C_Read... [21:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:28]Read from MH i2c: E2 [21:42:28]MH_I2C_Read... [21:42:28]Read from MH i2c: E2 0E 00 [21:42:28]MH_I2C_Read... [21:42:28]Read from MH i2c: E2 0E 00 D2 20 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B7 [21:42:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:42:28]wFMCommunicate OK [21:42:28]SAM_PROTO_GetShiftState done [21:42:28]FM_GetShiftState done [21:42:28]req_shift_opened done [21:42:28]requested_item shift.open_date is exist - process it [21:42:28]req_shift_open_date [21:42:28]req_shift_open_date done [21:42:28]produce_requested_data done [21:42:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165862,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:42:28]process_action_free close_receipt [21:42:28]json_value_free [21:42:28]json_value_free done [21:42:28]process_json_proto returns [21:42:28]Send response to host [21:42:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165862,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:42:28]free response buf [21:42:28]execute_script done [21:42:28]execute_script returns [21:42:28]free content buf [21:42:28]Sock 6.Close socket [21:42:28]Sock 6.Thread stoped [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:48]accept exits with 5 [21:46:48]New connection [21:46:48]New thread 3066776932 created [21:46:48]Thread 3066920292 joined [21:46:48]Waiting for new connection... [21:46:48] Sock 5.Parse request [21:46:48]Sock 5.Check first char [21:46:48]Sock 5.First char is OK [21:46:48]request: POST /json_proto HTTP/1.0 [21:46:48]Method: POST [21:46:48]URL: /json_proto [21:46:48]Method is POST - this is cgi request [21:46:48]url: /json_proto [21:46:48]query_string will be loaded in cgi processing [21:46:48]execute_cgi json_proto POST (null) [21:46:48]execute_cgi path=json_proto method=POST [21:46:48]POST find Content-Length [21:46:48]Host: 172.17.53.195:8080 [21:46:48]Content-Length: 789 [21:46:48]Content-Type: application/json [21:46:48] [21:46:48]POST finish read [21:46:48]Found Content-Length = 789 [21:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:48]execute_script... [21:46: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)220432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:48]POST & json_proto [21:46:48]process_json_proto [21:46:48]json parsed OK: [21:46:48]protocol is kg_v1.0 [21:46:48]action value=close_receipt [21:46:48]process_action close_receipt [21:46:48]cmd_close_receipt [21:46:48]MH_GetDate [21:46:48]Write to MH i2c: F0 00 00 D3 20 E2 [21:46:48]Write i2c OK [21:46:48]MH_I2C_Read... [21:46:48]Read from MH i2c: F0 [21:46:48]MH_I2C_Read... [21:46:48]Read from MH i2c: F0 09 00 [21:46:48]MH_I2C_Read... [21:46:48]Read from MH i2c: F0 09 00 D3 20 00 56 7A 15 67 21 48 4A 65 4F [21:46:48]GetLastDocTimeStamp 1729460558 [21:46:48]current date 1729460822 [21:46:48]FM_GetShiftState [21:46:48]SAM_PROTO_GetShiftState [21:46:48]wFMCommunicate request_size=4 [21:46:48]MH_SAM_APDU [21:46:48]CAPDU: 80 13 01 00 [21:46:48]Write to MH i2c: E2 08 00 D4 20 80 13 01 00 00 00 00 00 71 [21:46:48]Write i2c OK [21:46:48]MH_I2C_Read... [21:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:48]Read from MH i2c: E2 [21:46:48]MH_I2C_Read... [21:46:48]Read from MH i2c: E2 0E 00 [21:46:48]MH_I2C_Read... [21:46:48]Read from MH i2c: E2 0E 00 D4 20 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B9 [21:46:48]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:46:48]wFMCommunicate OK [21:46:48]SAM_PROTO_GetShiftState done [21:46:48]FM_GetShiftState done [21:46:48]opened in 1729384561 [21:46:48]opened+sec_in_day 1729470961 [21:46:48]quantity*price = 0 [21:46:48]sum+1 = 1 [21:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 345 20.10.2024 21:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165863 ФПД: 871652287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214702&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165863&fm=871652287&tin=02508201610067®Number=0000000000091764&sum=0 [21:46:49]StoreToDocumentArchive [21:46:49]shift 534 fd 165863 [21:46:49]save to /storage/0534/doc_00165863 [21:46:49]save last doc name /storage/0534/doc_00165863 to /storage/kkm_last_doc_name [21:46:49]save OK [21:46:49]Clear old archive folders... [21:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:46:49]tlvbuf is 018B0210 [21:46:49]SAM_PROTO_ClearQueue [21:46:49]wFMCommunicate request_size=4 [21:46:49]MH_SAM_APDU [21:46:49]CAPDU: 80 09 00 00 [21:46:49]Write to MH i2c: E2 08 00 E1 20 80 09 00 00 00 00 00 00 73 [21:46:49]Write i2c OK [21:46:49]MH_I2C_Read... [21:46:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:49]Read from MH i2c: E2 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 03 00 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 03 00 E1 20 00 90 00 75 [21:46:49]RAPDU: 90 00 [21:46:49]wFMCommunicate OK [21:46:49]SAM_PROTO_ClearQueue done [21:46:49]KKMCreateOFDPacket [21:46:49]OFDProtocolAddRootSTLVToBuf [21:46:49]FM_MakeSignedData [21:46:49]FM_MakeSignedData [21:46:49]SAM_PROTO_SignData [21:46:49]wFMCommunicate request_size=4 [21:46:49]MH_SAM_APDU [21:46:49]CAPDU: 80 0D 01 02 [21:46:49]Write to MH i2c: E2 08 00 E2 20 80 0D 01 02 00 00 00 00 7B [21:46:49]Write i2c OK [21:46:49]MH_I2C_Read... [21:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:49]Read from MH i2c: E2 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 03 00 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 03 00 E2 20 00 90 00 76 [21:46:49]RAPDU: 90 00 [21:46:49]wFMCommunicate OK [21:46:49]wFMCommunicate request_size=255 [21:46:49]MH_SAM_APDU [21:46: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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 56 7A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 87 02 00 35 04 06 00 00 00 33 F4 [21:46:49]Write to MH i2c: E2 02 01 E3 20 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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 56 7A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 87 02 00 35 04 06 00 00 00 33 F4 00 00 6A [21:46:49]Write i2c OK [21:46:49]MH_I2C_Read... [21:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:49]Read from MH i2c: E2 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 03 00 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 03 00 E3 20 00 90 00 77 [21:46:49]RAPDU: 90 00 [21:46:49]wFMCommunicate OK [21:46:49]wFMCommunicate request_size=7 [21:46:49]MH_SAM_APDU [21:46:49]CAPDU: 80 0D 02 02 02 5B BF [21:46:49]Write to MH i2c: E2 0A 00 E4 20 80 0D 02 02 02 00 5B BF 00 00 9C [21:46:49]Write i2c OK [21:46:49]MH_I2C_Read... [21:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:49]Read from MH i2c: E2 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 03 00 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 03 00 E4 20 00 90 00 78 [21:46:49]RAPDU: 90 00 [21:46:49]wFMCommunicate OK [21:46:49]wFMCommunicate request_size=4 [21:46:49]MH_SAM_APDU [21:46:49]CAPDU: 80 0D 03 02 [21:46:49]Write to MH i2c: E2 08 00 E5 20 80 0D 03 02 00 00 00 00 80 [21:46:49]Write i2c OK [21:46:49]MH_I2C_Read... [21:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:49]Read from MH i2c: E2 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 0B 00 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 0B 00 E5 20 00 98 81 85 D3 63 23 F3 A5 90 00 10 [21:46:49]RAPDU: 98 81 85 D3 63 23 F3 A5 90 00 [21:46:49]wFMCommunicate OK [21:46:49]SAM_PROTO_SignData done [21:46:49]FM_MakeSignedData done [21:46:49]CreateOFDProtocolMessage [21:46:49]wFMCommunicate request_size=4 [21:46:49]MH_SAM_APDU [21:46:49]CAPDU: 80 11 00 00 [21:46:49]Write to MH i2c: E2 08 00 E6 20 80 11 00 00 00 00 00 00 80 [21:46:49]Write i2c OK [21:46:49]MH_I2C_Read... [21:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:49]Read from MH i2c: E2 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 17 00 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: E2 17 00 E6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [21:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:46:49]wFMCommunicate OK [21:46:49]CreateOFDProtocolMessage done [21:46:49]OFDSenderStorePacket 165863 [21:46:49]StoreOFDPacket docnum=165863 [21:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C4 AD 04 01 41 46 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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 56 7A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 87 02 00 35 04 06 00 00 00 33 F4 5B BF 98 81 85 D3 63 23 F3 A5 [21:46:49]CheckFolder [21:46:49]dirname=/storage/ofd_packets [21:46:49]CheckFolder done [21:46:49]ProducePacketName [21:46:49]name=ofd_packets/00165863 [21:46:49]NVStorageSaveData ofd_packets/00165863 [21:46:49]File name is /storage/ofd_packets/00165863 [21:46:49]Write 298 bytes [21:46:49]NVStorageSaveData done [21:46:49]OFDSenderStorePacket done [21:46:49]KKMCreateOFDPacket done [21:46:49]NVStorageSaveData kkm_last_timestamp [21:46:49]File name is /storage/kkm_last_timestamp [21:46:49]Write 4 bytes [21:46:49]NVStorageSaveData done [21:46:49]ExternCall_PrintAddStr [21:46:49]wPrintStart [21:46:49]Write to MH i2c: 01 00 00 E7 20 07 [21:46:49]Write i2c OK [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: 01 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: 01 07 00 [21:46:49]MH_I2C_Read... [21:46:49]Read from MH i2c: 01 07 00 E7 20 00 00 00 00 00 FF 0F 1C [21:46:49]RasterBufferAndPrint [21:46:49]line Счет N : (1)220432 [21:46:49]line ИНН: 02508201610067 [21:46:49]line Контрольно-Кассовый Чек [21:46:49]line ПРОДАЖА [21:46:49]line ТРК (МРК, ГНК) : 41 [21:46:49]line Товар: 2710194210 [21:46:49]line ДТ-К-5 [21:46:49]line 19.690 * 0.00 [21:46:49]line = 0.00 [21:46:49]line НДС 12% НСП 1% [21:46:49]line > о реализуемом товаре [21:46:49]line ИТОГО: 0.00 [21:46:49]line НСП 1% : 0.00 [21:46:49]line НДС 12% : 0.00 [21:46:49]line Наличными: 0.00 [21:46:49]line Безнал.: 0.00 [21:46:49]line Место: АЗС № 161 "Партнер Нефть" [21:46:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:46:49]line СНО: Общий режим [21:46:49]line Чек 345 20.10.2024 21:47 [21:46:49]line Смена: 534 ФФД: 1.0 [21:46:49]line ЗНМ: 0300000104 [21:46:49]line РНМ: 0000000000091764 [21:46:49]line Версия ККМ: 001 [21:46:49]line Талоны: Топливная Карта [21:46:49]line 39590 [21:46:49]line ФМ: 0000000000871759 [21:46:49]line ФД: 165863 [21:46:49]line ФПД: 871652287 [21:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214702&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165863&fm=871652287&tin=02508201610067®Number=0000000000091764&sum=0 [21:46:50]OFD Sender: Processing packet 165863 [packets to send 48, broken 47] [21:46:50]ProducePacketName [21:46:50]name=ofd_packets/00165863 [21:46:50]OFD Sender: To server: pG, [21:46:50]CommunicateWithHost lk.salyk.kg:30040 [21:46:50]ConnectInit lk.salyk.kg [21:46:50]written 0, free lines is 4095 [21:46:50]Connected sock=7 [21:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C4 AD 04 01 41 46 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 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 56 7A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 87 02 00 35 04 06 00 00 00 33 F4 5B BF 98 81 85 D3 63 23 F3 A5 [21:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BF AE 47 00 87 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 31 37 35 39 10 04 04 00 E7 87 02 00 F4 03 04 00 C7 20 15 67 B6 04 01 00 00 B8 CC AF DD 04 6E 3E 1F [21:46:50]CommunicateWithHost err = 0 [21:46:50]CheckOFDResponse [21:46:50]1017 (14) - 77093643461234 [21:46:50]1041 (16) - 0000000000871759 [21:46:50]1040 (4) - 165863 [21:46:50]1012 (4) - 20.10.2024 15:24 [21:46:50]1206 (1) - 0 [21:46:50]OFD Sender: Remove packet 165863 [21:46:50]ProducePacketName [21:46:50]name=ofd_packets/00165863 [21:46:50]NVStorageDeleteData [21:46:50]Write to MH i2c: 01 00 00 11 21 32 [21:46:50]Write i2c OK [21:46:50]MH_I2C_Read... [21:46:50]Read from MH i2c: 01 [21:46:50]MH_I2C_Read... [21:46:50]Read from MH i2c: 01 07 00 [21:46:50]MH_I2C_Read... [21:46:50]Read from MH i2c: 01 07 00 11 21 00 00 00 00 00 BA 0C FF [21:46:50]RasterBufferAndPrint [21:46:50]line [21:46:50]line [21:46:50]line [21:46:50]line [21:46:50]line [21:46:50]written 0, free lines is 3264 [21:46:50]MH_Cut [21:46:50]Write to MH i2c: D1 01 00 18 21 01 0B [21:46:50]Write i2c OK [21:46:50]MH_I2C_Read... [21:46:50]Read from MH i2c: D1 [21:46:50]MH_I2C_Read... [21:46:50]Read from MH i2c: D1 01 00 [21:46:50]MH_I2C_Read... [21:46:50]Read from MH i2c: D1 01 00 18 21 00 0A [21:46:50]Write to MH i2c: 01 00 00 19 21 3A [21:46:50]Write i2c OK [21:46:50]MH_I2C_Read... [21:46:50]OFD Sender: No OFD packet to send [21:46:51]*** Cut start [21:46:51]*** Partial cut [21:46:51]*** CUTSNS_PIN = 1 [21:46:51]*** CUTSNS_PIN = 0 [21:46:51]*** Brake cut motor [21:46:51]Read from MH i2c: 01 [21:46:51]MH_I2C_Read... [21:46:51]*** Stop cut motor [21:46:51]*** Cut end [21:46:51]Read from MH i2c: 01 07 00 [21:46:51]MH_I2C_Read... [21:46:51]Read from MH i2c: 01 07 00 19 21 00 00 00 00 00 FF 0F 4F [21:46:51]process_action close_receipt done [21:46:51]requested_data is exist [21:46:51]produce_requested_data [21:46:51]requested_item fm.sn is exist - process it [21:46:51]wFMCommunicate request_size=4 [21:46:51]MH_SAM_APDU [21:46:51]CAPDU: 80 11 00 00 [21:46:51]Write to MH i2c: E2 08 00 1A 21 80 11 00 00 00 00 00 00 B5 [21:46:51]Write i2c OK [21:46:51]MH_I2C_Read... [21:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:52]Read from MH i2c: E2 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 17 00 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 17 00 1A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [21:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:46:52]wFMCommunicate OK [21:46:52]requested_item fd.num is exist - process it [21:46:52]SAM_PROTO_GetFieldsCounters [21:46:52]wFMCommunicate request_size=4 [21:46:52]MH_SAM_APDU [21:46:52]CAPDU: 80 13 00 00 [21:46:52]Write to MH i2c: E2 08 00 1B 21 80 13 00 00 00 00 00 00 B8 [21:46:52]Write i2c OK [21:46:52]MH_I2C_Read... [21:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:52]Read from MH i2c: E2 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 62 00 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 62 00 1B 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 87 02 00 0E 04 04 00 16 02 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 76 [21:46:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 87 02 00 0E 04 04 00 16 02 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:46:52]wFMCommunicate OK [21:46:52]SAM_PROTO_GetFieldsCounters done [21:46:52]requested_item shift.num is exist - process it [21:46:52]requested_item shift.opened is exist - process it [21:46:52]req_shift_opened [21:46:52]FM_GetShiftState [21:46:52]SAM_PROTO_GetShiftState [21:46:52]wFMCommunicate request_size=4 [21:46:52]MH_SAM_APDU [21:46:52]CAPDU: 80 13 01 00 [21:46:52]Write to MH i2c: E2 08 00 1C 21 80 13 01 00 00 00 00 00 BA [21:46:52]Write i2c OK [21:46:52]MH_I2C_Read... [21:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:52]Read from MH i2c: E2 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 0E 00 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 0E 00 1C 21 00 09 00 01 71 50 14 67 00 00 00 00 90 00 02 [21:46:52]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:46:52]wFMCommunicate OK [21:46:52]SAM_PROTO_GetShiftState done [21:46:52]FM_GetShiftState done [21:46:52]req_shift_opened done [21:46:52]requested_item shift.open_date is exist - process it [21:46:52]req_shift_open_date [21:46:52]req_shift_open_date done [21:46:52]produce_requested_data done [21:46:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165863,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:46:52]process_action_free close_receipt [21:46:52]json_value_free [21:46:52]json_value_free done [21:46:52]process_json_proto returns [21:46:52]Send response to host [21:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165863,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:46:52]free response buf [21:46:52]execute_script done [21:46:52]execute_script returns [21:46:52]free content buf [21:46:52]Sock 5.Close socket [21:46:52]Sock 5.Thread stoped [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:29]accept exits with 6 [21:49:29]New connection [21:49:29]New thread 3066920292 created [21:49:29]Thread 3066776932 joined [21:49:29]Waiting for new connection... [21:49:29] Sock 6.Parse request [21:49:29]Sock 6.Check first char [21:49:29]Sock 6.First char is OK [21:49:29]request: POST /json_proto HTTP/1.0 [21:49:29]Method: POST [21:49:29]URL: /json_proto [21:49:29]Method is POST - this is cgi request [21:49:29]url: /json_proto [21:49:29]query_string will be loaded in cgi processing [21:49:29]execute_cgi json_proto POST (null) [21:49:29]execute_cgi path=json_proto method=POST [21:49:29]POST find Content-Length [21:49:29]Host: 172.17.53.195:8080 [21:49:29]Content-Length: 677 [21:49:29]Content-Type: application/json [21:49:29] [21:49:29]POST finish read [21:49:29]Found Content-Length = 677 [21:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:29]execute_script... [21:49: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)220433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:29]POST & json_proto [21:49:29]process_json_proto [21:49:29]json parsed OK: [21:49:29]protocol is kg_v1.0 [21:49:29]action value=close_receipt [21:49:29]process_action close_receipt [21:49:29]cmd_close_receipt [21:49:29]MH_GetDate [21:49:29]Write to MH i2c: F0 00 00 1D 21 2D [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: F0 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: F0 09 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: F0 09 00 1D 21 00 F7 7A 15 67 21 48 4A 65 3B [21:49:29]GetLastDocTimeStamp 1729460822 [21:49:29]current date 1729460983 [21:49:29]FM_GetShiftState [21:49:29]SAM_PROTO_GetShiftState [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 13 01 00 [21:49:29]Write to MH i2c: E2 08 00 1E 21 80 13 01 00 00 00 00 00 BC [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 0E 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 0E 00 1E 21 00 09 00 01 71 50 14 67 00 00 00 00 90 00 04 [21:49:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:49:29]wFMCommunicate OK [21:49:29]SAM_PROTO_GetShiftState done [21:49:29]FM_GetShiftState done [21:49:29]opened in 1729384561 [21:49:29]opened+sec_in_day 1729470961 [21:49:29]quantity*price = 50041 [21:49:29]sum+1 = 50042 [21:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 346 20.10.2024 21:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165864 ФПД: 180299889695547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165864&fm=180299889695547&tin=02508201610067®Number=0000000000091764&sum=50000 [21:49:30]StoreToDocumentArchive [21:49:30]shift 534 fd 165864 [21:49:30]save to /storage/0534/doc_00165864 [21:49:30]save last doc name /storage/0534/doc_00165864 to /storage/kkm_last_doc_name [21:49:30]save OK [21:49:30]Clear old archive folders... [21:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:30]tlvbuf is 017B09C0 [21:49:30]SAM_PROTO_ClearQueue [21:49:30]wFMCommunicate request_size=4 [21:49:30]MH_SAM_APDU [21:49:30]CAPDU: 80 09 00 00 [21:49:30]Write to MH i2c: E2 08 00 2B 21 80 09 00 00 00 00 00 00 BE [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:30]Read from MH i2c: E2 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 03 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 03 00 2B 21 00 90 00 C0 [21:49:30]RAPDU: 90 00 [21:49:30]wFMCommunicate OK [21:49:30]SAM_PROTO_ClearQueue done [21:49:30]KKMCreateOFDPacket [21:49:30]OFDProtocolAddRootSTLVToBuf [21:49:30]FM_MakeSignedData [21:49:30]FM_MakeSignedData [21:49:30]SAM_PROTO_SignData [21:49:30]wFMCommunicate request_size=4 [21:49:30]MH_SAM_APDU [21:49:30]CAPDU: 80 0D 01 02 [21:49:30]Write to MH i2c: E2 08 00 2C 21 80 0D 01 02 00 00 00 00 C6 [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:30]Read from MH i2c: E2 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 03 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 03 00 2C 21 00 90 00 C1 [21:49:30]RAPDU: 90 00 [21:49:30]wFMCommunicate OK [21:49:30]wFMCommunicate request_size=255 [21:49:30]MH_SAM_APDU [21:49: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 F7 7A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 87 02 00 35 04 06 00 A3 [21:49:30]Write to MH i2c: E2 02 01 2D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 F7 7A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 87 02 00 35 04 06 00 A3 00 00 D0 [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:30]Read from MH i2c: E2 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 03 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 03 00 2D 21 00 90 00 C2 [21:49:30]RAPDU: 90 00 [21:49:30]wFMCommunicate OK [21:49:30]wFMCommunicate request_size=10 [21:49:30]MH_SAM_APDU [21:49:30]CAPDU: 80 0D 02 02 05 FB 56 E0 DB 3B [21:49:30]Write to MH i2c: E2 0D 00 2E 21 80 0D 02 02 05 00 FB 56 E0 DB 3B 00 00 1A [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:30]Read from MH i2c: E2 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 03 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 03 00 2E 21 00 90 00 C3 [21:49:30]RAPDU: 90 00 [21:49:30]wFMCommunicate OK [21:49:30]wFMCommunicate request_size=4 [21:49:30]MH_SAM_APDU [21:49:30]CAPDU: 80 0D 03 02 [21:49:30]Write to MH i2c: E2 08 00 2F 21 80 0D 03 02 00 00 00 00 CB [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 0B 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 0B 00 2F 21 00 66 90 B7 43 6C 1B B9 3E 90 00 3A [21:49:31]RAPDU: 66 90 B7 43 6C 1B B9 3E 90 00 [21:49:31]wFMCommunicate OK [21:49:31]SAM_PROTO_SignData done [21:49:31]FM_MakeSignedData done [21:49:31]CreateOFDProtocolMessage [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 11 00 00 [21:49:31]Write to MH i2c: E2 08 00 30 21 80 11 00 00 00 00 00 00 CB [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 17 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 17 00 30 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [21:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:49:31]wFMCommunicate OK [21:49:31]CreateOFDProtocolMessage done [21:49:31]OFDSenderStorePacket 165864 [21:49:31]StoreOFDPacket docnum=165864 [21:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B6 5E 07 01 59 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 F7 7A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 87 02 00 35 04 06 00 A3 FB 56 E0 DB 3B 66 90 B7 43 6C 1B B9 3E [21:49:31]CheckFolder [21:49:31]dirname=/storage/ofd_packets [21:49:31]CheckFolder done [21:49:31]ProducePacketName [21:49:31]name=ofd_packets/00165864 [21:49:31]NVStorageSaveData ofd_packets/00165864 [21:49:31]File name is /storage/ofd_packets/00165864 [21:49:31]Write 301 bytes [21:49:31]NVStorageSaveData done [21:49:31]OFDSenderStorePacket done [21:49:31]KKMCreateOFDPacket done [21:49:31]NVStorageSaveData kkm_last_timestamp [21:49:31]File name is /storage/kkm_last_timestamp [21:49:31]Write 4 bytes [21:49:31]NVStorageSaveData done [21:49:31]ExternCall_PrintAddStr [21:49:31]wPrintStart [21:49:31]Write to MH i2c: 01 00 00 31 21 52 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 07 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 07 00 31 21 00 00 00 00 00 FF 0F 67 [21:49:31]RasterBufferAndPrint [21:49:31]line Счет N : (1)220433 [21:49:31]line ИНН: 02508201610067 [21:49:31]line Контрольно-Кассовый Чек [21:49:31]line ПРОДАЖА [21:49:31]line ТРК (МРК, ГНК) : 23 [21:49:31]line Товар: 2710124130 [21:49:31]line Аи-92-К-5 [21:49:31]line 7.480 * 66.90 [21:49:31]line = 500.41 [21:49:31]line НДС 12% НСП 1% [21:49:31]line > о реализуемом товаре [21:49:31]line ОКРУГЛЕНИЕ: -0.41 [21:49:31]line ИТОГО: 500.00 [21:49:31]line Внесено: 500.00 [21:49:31]line СДАЧА: 0.00 [21:49:31]line НСП 1% : 4.43 [21:49:31]line НДС 12% : 53.14 [21:49:31]line Наличными: 500.00 [21:49:31]line Безнал.: 0.00 [21:49:31]line Место: АЗС № 161 "Партнер Нефть" [21:49:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:49:31]line СНО: Общий режим [21:49:31]line Чек 346 20.10.2024 21:49 [21:49:31]line Смена: 534 ФФД: 1.0 [21:49:31]line ЗНМ: 0300000104 [21:49:31]line РНМ: 0000000000091764 [21:49:31]line Версия ККМ: 001 [21:49:31]line ФМ: 0000000000871759 [21:49:31]line ФД: 165864 [21:49:31]line ФПД: 180299889695547 [21:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165864&fm=180299889695547&tin=02508201610067®Number=0000000000091764&sum=50000 [21:49:31]OFD Sender: Processing packet 165864 [packets to send 48, broken 47] [21:49:31]ProducePacketName [21:49:31]name=ofd_packets/00165864 [21:49:31]OFD Sender: To server: pG, [21:49:31]CommunicateWithHost lk.salyk.kg:30040 [21:49:31]ConnectInit lk.salyk.kg [21:49:31]written 0, free lines is 4095 [21:49:31]Connected sock=7 [21:49:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B6 5E 07 01 59 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 F7 7A 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 87 02 00 35 04 06 00 A3 FB 56 E0 DB 3B 66 90 B7 43 6C 1B B9 3E [21:49:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B4 09 47 00 8B 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 87 02 00 F4 03 04 00 68 21 15 67 B6 04 01 00 00 10 1E 1C 12 BB 69 95 BE [21:49:31]CommunicateWithHost err = 0 [21:49:31]CheckOFDResponse [21:49:31]1017 (14) - 77093643461234 [21:49:31]1041 (16) - 0000000000871759 [21:49:31]1040 (4) - 165864 [21:49:31]1012 (4) - 20.10.2024 15:27 [21:49:31]1206 (1) - 0 [21:49:31]OFD Sender: Remove packet 165864 [21:49:31]ProducePacketName [21:49:31]name=ofd_packets/00165864 [21:49:31]NVStorageDeleteData [21:49:31]Write to MH i2c: 01 00 00 5C 21 7D [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 07 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 07 00 5C 21 00 00 00 00 00 BB 0C 4B [21:49:31]RasterBufferAndPrint [21:49:31]line [21:49:31]line [21:49:31]line [21:49:31]line [21:49:31]line [21:49:31]written 0, free lines is 3266 [21:49:31]MH_Cut [21:49:31]Write to MH i2c: D1 01 00 63 21 01 56 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: D1 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: D1 01 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: D1 01 00 63 21 00 55 [21:49:31]Write to MH i2c: 01 00 00 64 21 85 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:32]OFD Sender: No OFD packet to send [21:49:32]*** Cut start [21:49:32]*** Partial cut [21:49:32]*** CUTSNS_PIN = 1 [21:49:32]*** CUTSNS_PIN = 0 [21:49:32]*** Brake cut motor [21:49:33]Read from MH i2c: 01 [21:49:33]MH_I2C_Read... [21:49:33]*** Stop cut motor [21:49:33]*** Cut end [21:49:33]Read from MH i2c: 01 07 00 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: 01 07 00 64 21 00 00 00 00 00 FF 0F 9A [21:49:33]process_action close_receipt done [21:49:33]requested_data is exist [21:49:33]produce_requested_data [21:49:33]requested_item fm.sn is exist - process it [21:49:33]wFMCommunicate request_size=4 [21:49:33]MH_SAM_APDU [21:49:33]CAPDU: 80 11 00 00 [21:49:33]Write to MH i2c: E2 08 00 65 21 80 11 00 00 00 00 00 00 00 [21:49:33]Write i2c OK [21:49:33]MH_I2C_Read... [21:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:33]Read from MH i2c: E2 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 17 00 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 17 00 65 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [21:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:49:33]wFMCommunicate OK [21:49:33]requested_item fd.num is exist - process it [21:49:33]SAM_PROTO_GetFieldsCounters [21:49:33]wFMCommunicate request_size=4 [21:49:33]MH_SAM_APDU [21:49:33]CAPDU: 80 13 00 00 [21:49:33]Write to MH i2c: E2 08 00 66 21 80 13 00 00 00 00 00 00 03 [21:49:33]Write i2c OK [21:49:33]MH_I2C_Read... [21:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:33]Read from MH i2c: E2 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 62 00 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 62 00 66 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 87 02 00 0E 04 04 00 16 02 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 C5 [21: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 87 02 00 0E 04 04 00 16 02 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 [21:49:33]wFMCommunicate OK [21:49:33]SAM_PROTO_GetFieldsCounters done [21:49:33]requested_item shift.num is exist - process it [21:49:33]requested_item shift.opened is exist - process it [21:49:33]req_shift_opened [21:49:33]FM_GetShiftState [21:49:33]SAM_PROTO_GetShiftState [21:49:33]wFMCommunicate request_size=4 [21:49:33]MH_SAM_APDU [21:49:33]CAPDU: 80 13 01 00 [21:49:33]Write to MH i2c: E2 08 00 67 21 80 13 01 00 00 00 00 00 05 [21:49:33]Write i2c OK [21:49:33]MH_I2C_Read... [21:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:33]Read from MH i2c: E2 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 0E 00 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 0E 00 67 21 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4D [21:49:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:49:33]wFMCommunicate OK [21:49:33]SAM_PROTO_GetShiftState done [21:49:33]FM_GetShiftState done [21:49:33]req_shift_opened done [21:49:33]requested_item shift.open_date is exist - process it [21:49:33]req_shift_open_date [21:49:33]req_shift_open_date done [21:49:33]produce_requested_data done [21:49:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165864,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:49:33]process_action_free close_receipt [21:49:33]json_value_free [21:49:33]json_value_free done [21:49:33]process_json_proto returns [21:49:33]Send response to host [21:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165864,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:49:33]free response buf [21:49:33]execute_script done [21:49:33]execute_script returns [21:49:33]free content buf [21:49:33]Sock 6.Close socket [21:49:33]Sock 6.Thread stoped [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:08]accept exits with 5 [21:53:08]New connection [21:53:08]New thread 3066776932 created [21:53:08]Thread 3066920292 joined [21:53:08]Waiting for new connection... [21:53:08] Sock 5.Parse request [21:53:08]Sock 5.Check first char [21:53:08]Sock 5.First char is OK [21:53:08]request: POST /json_proto HTTP/1.0 [21:53:08]Method: POST [21:53:08]URL: /json_proto [21:53:08]Method is POST - this is cgi request [21:53:08]url: /json_proto [21:53:08]query_string will be loaded in cgi processing [21:53:08]execute_cgi json_proto POST (null) [21:53:08]execute_cgi path=json_proto method=POST [21:53:08]POST find Content-Length [21:53:08]Host: 172.17.53.195:8080 [21:53:08]Content-Length: 766 [21:53:08]Content-Type: application/json [21:53:08] [21:53:08]POST finish read [21:53:08]Found Content-Length = 766 [21:53:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:08]execute_script... [21:53: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)220434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:08]POST & json_proto [21:53:08]process_json_proto [21:53:08]json parsed OK: [21:53:08]protocol is kg_v1.0 [21:53:08]action value=close_receipt [21:53:08]process_action close_receipt [21:53:08]cmd_close_receipt [21:53:08]MH_GetDate [21:53:08]Write to MH i2c: F0 00 00 68 21 78 [21:53:08]Write i2c OK [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: F0 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: F0 09 00 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: F0 09 00 68 21 00 D3 7B 15 67 21 48 4A 65 63 [21:53:08]GetLastDocTimeStamp 1729460983 [21:53:08]current date 1729461203 [21:53:08]FM_GetShiftState [21:53:08]SAM_PROTO_GetShiftState [21:53:08]wFMCommunicate request_size=4 [21:53:08]MH_SAM_APDU [21:53:08]CAPDU: 80 13 01 00 [21:53:08]Write to MH i2c: E2 08 00 69 21 80 13 01 00 00 00 00 00 07 [21:53:08]Write i2c OK [21:53:08]MH_I2C_Read... [21:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:08]Read from MH i2c: E2 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 0E 00 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 0E 00 69 21 00 09 00 01 71 50 14 67 00 00 00 00 90 00 4F [21:53:08]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:53:08]wFMCommunicate OK [21:53:08]SAM_PROTO_GetShiftState done [21:53:08]FM_GetShiftState done [21:53:08]opened in 1729384561 [21:53:08]opened+sec_in_day 1729470961 [21:53:08]quantity*price = 50041 [21:53:08]sum+1 = 50042 [21:53:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 347 20.10.2024 21:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165865 ФПД: 37032904298177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215323&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165865&fm=37032904298177&tin=02508201610067®Number=0000000000091764&sum=50041 [21:53:09]StoreToDocumentArchive [21:53:09]shift 534 fd 165865 [21:53:09]save to /storage/0534/doc_00165865 [21:53:09]save last doc name /storage/0534/doc_00165865 to /storage/kkm_last_doc_name [21:53:09]save OK [21:53:09]Clear old archive folders... [21:53:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:09]tlvbuf is 01456EB0 [21:53:09]SAM_PROTO_ClearQueue [21:53:09]wFMCommunicate request_size=4 [21:53:09]MH_SAM_APDU [21:53:09]CAPDU: 80 09 00 00 [21:53:09]Write to MH i2c: E2 08 00 76 21 80 09 00 00 00 00 00 00 09 [21:53:09]Write i2c OK [21:53:09]MH_I2C_Read... [21:53:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:09]Read from MH i2c: E2 [21:53:09]MH_I2C_Read... [21:53:09]Read from MH i2c: E2 03 00 [21:53:09]MH_I2C_Read... [21:53:09]Read from MH i2c: E2 03 00 76 21 00 90 00 0B [21:53:09]RAPDU: 90 00 [21:53:09]wFMCommunicate OK [21:53:09]SAM_PROTO_ClearQueue done [21:53:09]KKMCreateOFDPacket [21:53:09]OFDProtocolAddRootSTLVToBuf [21:53:09]FM_MakeSignedData [21:53:09]FM_MakeSignedData [21:53:09]SAM_PROTO_SignData [21:53:09]wFMCommunicate request_size=4 [21:53:09]MH_SAM_APDU [21:53:09]CAPDU: 80 0D 01 02 [21:53:09]Write to MH i2c: E2 08 00 77 21 80 0D 01 02 00 00 00 00 11 [21:53:09]Write i2c OK [21:53:09]MH_I2C_Read... [21:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:09]Read from MH i2c: E2 [21:53:09]MH_I2C_Read... [21:53:09]Read from MH i2c: E2 03 00 [21:53:09]MH_I2C_Read... [21:53:09]Read from MH i2c: E2 03 00 77 21 00 90 00 0C [21:53:09]RAPDU: 90 00 [21:53:09]wFMCommunicate OK [21:53:09]wFMCommunicate request_size=255 [21:53:09]MH_SAM_APDU [21:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 D3 7B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 87 02 00 35 04 06 00 21 [21:53:09]Write to MH i2c: E2 02 01 78 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 D3 7B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 87 02 00 35 04 06 00 21 00 00 CA [21:53:09]Write i2c OK [21:53:09]MH_I2C_Read... [21:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:10]Read from MH i2c: E2 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 03 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 03 00 78 21 00 90 00 0D [21:53:10]RAPDU: 90 00 [21:53:10]wFMCommunicate OK [21:53:10]wFMCommunicate request_size=10 [21:53:10]MH_SAM_APDU [21:53:10]CAPDU: 80 0D 02 02 05 AE 65 1B 0E C1 [21:53:10]Write to MH i2c: E2 0D 00 79 21 80 0D 02 02 05 00 AE 65 1B 0E C1 00 00 1B [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:10]Read from MH i2c: E2 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 03 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 03 00 79 21 00 90 00 0E [21:53:10]RAPDU: 90 00 [21:53:10]wFMCommunicate OK [21:53:10]wFMCommunicate request_size=4 [21:53:10]MH_SAM_APDU [21:53:10]CAPDU: 80 0D 03 02 [21:53:10]Write to MH i2c: E2 08 00 7A 21 80 0D 03 02 00 00 00 00 16 [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:10]Read from MH i2c: E2 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 0B 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 0B 00 7A 21 00 62 82 D6 C9 0F D8 A0 A4 90 00 C5 [21:53:10]RAPDU: 62 82 D6 C9 0F D8 A0 A4 90 00 [21:53:10]wFMCommunicate OK [21:53:10]SAM_PROTO_SignData done [21:53:10]FM_MakeSignedData done [21:53:10]CreateOFDProtocolMessage [21:53:10]wFMCommunicate request_size=4 [21:53:10]MH_SAM_APDU [21:53:10]CAPDU: 80 11 00 00 [21:53:10]Write to MH i2c: E2 08 00 7B 21 80 11 00 00 00 00 00 00 16 [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:10]Read from MH i2c: E2 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 17 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 17 00 7B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [21:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:53:10]wFMCommunicate OK [21:53:10]CreateOFDProtocolMessage done [21:53:10]OFDSenderStorePacket 165865 [21:53:10]StoreOFDPacket docnum=165865 [21:53:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 04 07 01 E6 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 D3 7B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 87 02 00 35 04 06 00 21 AE 65 1B 0E C1 62 82 D6 C9 0F D8 A0 A4 [21:53:10]CheckFolder [21:53:10]dirname=/storage/ofd_packets [21:53:10]CheckFolder done [21:53:10]ProducePacketName [21:53:10]name=ofd_packets/00165865 [21:53:10]NVStorageSaveData ofd_packets/00165865 [21:53:10]File name is /storage/ofd_packets/00165865 [21:53:10]Write 301 bytes [21:53:10]NVStorageSaveData done [21:53:10]OFDSenderStorePacket done [21:53:10]KKMCreateOFDPacket done [21:53:10]NVStorageSaveData kkm_last_timestamp [21:53:10]File name is /storage/kkm_last_timestamp [21:53:10]Write 4 bytes [21:53:10]NVStorageSaveData done [21:53:10]ExternCall_PrintAddStr [21:53:10]wPrintStart [21:53:10]Write to MH i2c: 01 00 00 7C 21 9D [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: 01 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: 01 07 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: 01 07 00 7C 21 00 00 00 00 00 FF 0F B2 [21:53:10]RasterBufferAndPrint [21:53:10]line Счет N : (1)220434 [21:53:10]line ИНН: 02508201610067 [21:53:10]line Контрольно-Кассовый Чек [21:53:10]line ПРОДАЖА [21:53:10]line ТРК (МРК, ГНК) : 13 [21:53:10]line Товар: 2710124130 [21:53:10]line Аи-92-К-5 [21:53:10]line 7.480 * 66.90 [21:53:10]line = 500.41 [21:53:10]line НДС 12% НСП 1% [21:53:10]line > о реализуемом товаре [21:53:10]line ИТОГО: 500.41 [21:53:10]line НСП 1% : 4.43 [21:53:10]line НДС 12% : 53.14 [21:53:10]line Наличными: 0.00 [21:53:10]line Безнал.: 500.41 [21:53:10]line Место: АЗС № 161 "Партнер Нефть" [21:53:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:53:10]line СНО: Общий режим [21:53:10]line Чек 347 20.10.2024 21:53 [21:53:10]line Смена: 534 ФФД: 1.0 [21:53:10]line ЗНМ: 0300000104 [21:53:10]line РНМ: 0000000000091764 [21:53:10]line Версия ККМ: 001 [21:53:10]line Платежная система: Mbank [21:53:10]line ФМ: 0000000000871759 [21:53:10]line ФД: 165865 [21:53:10]line ФПД: 37032904298177 [21:53:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215323&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165865&fm=37032904298177&tin=02508201610067®Number=0000000000091764&sum=50041 [21:53:10]written 0, free lines is 4095 [21:53:10]OFD Sender: Processing packet 165865 [packets to send 48, broken 47] [21:53:10]ProducePacketName [21:53:10]name=ofd_packets/00165865 [21:53:10]OFD Sender: To server: pG, [21:53:10]CommunicateWithHost lk.salyk.kg:30040 [21:53:10]ConnectInit lk.salyk.kg [21:53:10]Connected sock=7 [21:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 04 07 01 E6 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 D3 7B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 87 02 00 35 04 06 00 21 AE 65 1B 0E C1 62 82 D6 C9 0F D8 A0 A4 [21:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5E FB 47 00 FB 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 31 37 35 39 10 04 04 00 E9 87 02 00 F4 03 04 00 43 22 15 67 B6 04 01 00 00 76 4D D3 E5 FB F4 77 38 [21:53:10]CommunicateWithHost err = 0 [21:53:10]CheckOFDResponse [21:53:10]1017 (14) - 77093643461234 [21:53:10]1041 (16) - 0000000000871759 [21:53:10]1040 (4) - 165865 [21:53:10]1012 (4) - 20.10.2024 15:31 [21:53:10]1206 (1) - 0 [21:53:10]OFD Sender: Remove packet 165865 [21:53:10]ProducePacketName [21:53:10]name=ofd_packets/00165865 [21:53:10]NVStorageDeleteData [21:53:10]Write to MH i2c: 01 00 00 A5 21 C6 [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: 01 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: 01 07 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: 01 07 00 A5 21 00 00 00 00 00 DA 0C B3 [21:53:10]RasterBufferAndPrint [21:53:10]line [21:53:10]line [21:53:10]line [21:53:10]line [21:53:10]line [21:53:10]written 0, free lines is 3299 [21:53:10]MH_Cut [21:53:10]Write to MH i2c: D1 01 00 AC 21 01 9F [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: D1 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: D1 01 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: D1 01 00 AC 21 00 9E [21:53:10]Write to MH i2c: 01 00 00 AD 21 CE [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:11]OFD Sender: No OFD packet to send [21:53:11]*** Cut start [21:53:11]*** Partial cut [21:53:11]*** CUTSNS_PIN = 1 [21:53:11]*** CUTSNS_PIN = 0 [21:53:11]*** Brake cut motor [21:53:12]Read from MH i2c: 01 [21:53:12]MH_I2C_Read... [21:53:12]*** Stop cut motor [21:53:12]*** Cut end [21:53:12]Read from MH i2c: 01 07 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: 01 07 00 AD 21 00 00 00 00 00 FF 0F E3 [21:53:12]process_action close_receipt done [21:53:12]requested_data is exist [21:53:12]produce_requested_data [21:53:12]requested_item fm.sn is exist - process it [21:53:12]wFMCommunicate request_size=4 [21:53:12]MH_SAM_APDU [21:53:12]CAPDU: 80 11 00 00 [21:53:12]Write to MH i2c: E2 08 00 AE 21 80 11 00 00 00 00 00 00 49 [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:12]Read from MH i2c: E2 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 17 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 17 00 AE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [21:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:53:12]wFMCommunicate OK [21:53:12]requested_item fd.num is exist - process it [21:53:12]SAM_PROTO_GetFieldsCounters [21:53:12]wFMCommunicate request_size=4 [21:53:12]MH_SAM_APDU [21:53:12]CAPDU: 80 13 00 00 [21:53:12]Write to MH i2c: E2 08 00 AF 21 80 13 00 00 00 00 00 00 4C [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:12]Read from MH i2c: E2 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 62 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 62 00 AF 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 87 02 00 0E 04 04 00 16 02 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 12 [21:53:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 87 02 00 0E 04 04 00 16 02 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 [21:53:12]wFMCommunicate OK [21:53:12]SAM_PROTO_GetFieldsCounters done [21:53:12]requested_item shift.num is exist - process it [21:53:12]requested_item shift.opened is exist - process it [21:53:12]req_shift_opened [21:53:12]FM_GetShiftState [21:53:12]SAM_PROTO_GetShiftState [21:53:12]wFMCommunicate request_size=4 [21:53:12]MH_SAM_APDU [21:53:12]CAPDU: 80 13 01 00 [21:53:12]Write to MH i2c: E2 08 00 B0 21 80 13 01 00 00 00 00 00 4E [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:12]Read from MH i2c: E2 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 0E 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: E2 0E 00 B0 21 00 09 00 01 71 50 14 67 00 00 00 00 90 00 96 [21:53:12]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:53:12]wFMCommunicate OK [21:53:12]SAM_PROTO_GetShiftState done [21:53:12]FM_GetShiftState done [21:53:12]req_shift_opened done [21:53:12]requested_item shift.open_date is exist - process it [21:53:12]req_shift_open_date [21:53:12]req_shift_open_date done [21:53:12]produce_requested_data done [21:53:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165865,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:53:12]process_action_free close_receipt [21:53:12]json_value_free [21:53:12]json_value_free done [21:53:12]process_json_proto returns [21:53:12]Send response to host [21:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165865,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:53:12]free response buf [21:53:12]execute_script done [21:53:12]execute_script returns [21:53:12]free content buf [21:53:12]Sock 5.Close socket [21:53:12]Sock 5.Thread stoped [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:55:59]accept exits with 6 [21:55:59]New connection [21:55:59]New thread 3066920292 created [21:55:59]Thread 3066776932 joined [21:55:59]Waiting for new connection... [21:55:59] Sock 6.Parse request [21:55:59]Sock 6.Check first char [21:55:59]Sock 6.First char is OK [21:55:59]request: POST /json_proto HTTP/1.0 [21:55:59]Method: POST [21:55:59]URL: /json_proto [21:55:59]Method is POST - this is cgi request [21:55:59]url: /json_proto [21:55:59]query_string will be loaded in cgi processing [21:55:59]execute_cgi json_proto POST (null) [21:55:59]execute_cgi path=json_proto method=POST [21:55:59]POST find Content-Length [21:55:59]Host: 172.17.53.195:8080 [21:55:59]Content-Length: 769 [21:55:59]Content-Type: application/json [21:55:59] [21:55:59]POST finish read [21:55:59]Found Content-Length = 769 [21:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1300.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:59]execute_script... [21:55: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)220435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1300.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:59]POST & json_proto [21:55:59]process_json_proto [21:56:00]json parsed OK: [21:56:00]protocol is kg_v1.0 [21:56:00]action value=close_receipt [21:56:00]process_action close_receipt [21:56:00]cmd_close_receipt [21:56:00]MH_GetDate [21:56:00]Write to MH i2c: F0 00 00 B1 21 C1 [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: F0 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: F0 09 00 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: F0 09 00 B1 21 00 7E 7C 15 67 21 48 4A 65 58 [21:56:00]GetLastDocTimeStamp 1729461203 [21:56:00]current date 1729461374 [21:56:00]FM_GetShiftState [21:56:00]SAM_PROTO_GetShiftState [21:56:00]wFMCommunicate request_size=4 [21:56:00]MH_SAM_APDU [21:56:00]CAPDU: 80 13 01 00 [21:56:00]Write to MH i2c: E2 08 00 B2 21 80 13 01 00 00 00 00 00 50 [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:00]Read from MH i2c: E2 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: E2 0E 00 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: E2 0E 00 B2 21 00 09 00 01 71 50 14 67 00 00 00 00 90 00 98 [21:56:00]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:56:00]wFMCommunicate OK [21:56:00]SAM_PROTO_GetShiftState done [21:56:00]FM_GetShiftState done [21:56:00]opened in 1729384561 [21:56:00]opened+sec_in_day 1729470961 [21:56:00]quantity*price = 130072 [21:56:00]sum+1 = 130074 [21:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.73 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 0.00 Безнал.: 1300.73 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 348 20.10.2024 21:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165866 ФПД: 40365296991602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215614&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165866&fm=40365296991602&tin=02508201610067®Number=0000000000091764&sum=130073 [21:56:01]StoreToDocumentArchive [21:56:01]shift 534 fd 165866 [21:56:01]save to /storage/0534/doc_00165866 [21:56:01]save last doc name /storage/0534/doc_00165866 to /storage/kkm_last_doc_name [21:56:01]save OK [21:56:01]Clear old archive folders... [21:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:56:01]tlvbuf is 01971790 [21:56:01]SAM_PROTO_ClearQueue [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 09 00 00 [21:56:01]Write to MH i2c: E2 08 00 BF 21 80 09 00 00 00 00 00 00 52 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 03 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 03 00 BF 21 00 90 00 54 [21:56:01]RAPDU: 90 00 [21:56:01]wFMCommunicate OK [21:56:01]SAM_PROTO_ClearQueue done [21:56:01]KKMCreateOFDPacket [21:56:01]OFDProtocolAddRootSTLVToBuf [21:56:01]FM_MakeSignedData [21:56:01]FM_MakeSignedData [21:56:01]SAM_PROTO_SignData [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 0D 01 02 [21:56:01]Write to MH i2c: E2 08 00 C0 21 80 0D 01 02 00 00 00 00 5A [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]OFD Sender: No OFD packet to send [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:01]Read from MH i2c: E2 03 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 03 00 C0 21 00 90 00 55 [21:56:01]RAPDU: 90 00 [21:56:01]wFMCommunicate OK [21:56:01]wFMCommunicate request_size=255 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 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 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 7E 7C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 87 02 00 35 04 06 00 24 [21:56:01]Write to MH i2c: E2 02 01 C1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 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 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 7E 7C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 87 02 00 35 04 06 00 24 00 00 B6 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 03 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 03 00 C1 21 00 90 00 56 [21:56:01]RAPDU: 90 00 [21:56:01]wFMCommunicate OK [21:56:01]wFMCommunicate request_size=10 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 0D 02 02 05 B6 47 30 3D 72 [21:56:01]Write to MH i2c: E2 0D 00 C2 21 80 0D 02 02 05 00 B6 47 30 3D 72 00 00 43 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 03 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 03 00 C2 21 00 90 00 57 [21:56:01]RAPDU: 90 00 [21:56:01]wFMCommunicate OK [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 0D 03 02 [21:56:01]Write to MH i2c: E2 08 00 C3 21 80 0D 03 02 00 00 00 00 5F [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0B 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0B 00 C3 21 00 16 AB 40 68 AD BF 83 EB 90 00 A3 [21:56:01]RAPDU: 16 AB 40 68 AD BF 83 EB 90 00 [21:56:01]wFMCommunicate OK [21:56:01]SAM_PROTO_SignData done [21:56:01]FM_MakeSignedData done [21:56:01]CreateOFDProtocolMessage [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 11 00 00 [21:56:01]Write to MH i2c: E2 08 00 C4 21 80 11 00 00 00 00 00 00 5F [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 17 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 17 00 C4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [21:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:56:01]wFMCommunicate OK [21:56:01]CreateOFDProtocolMessage done [21:56:01]OFDSenderStorePacket 165866 [21:56:01]StoreOFDPacket docnum=165866 [21:56:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA 93 07 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 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 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 7E 7C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 87 02 00 35 04 06 00 24 B6 47 30 3D 72 16 AB 40 68 AD BF 83 EB [21:56:01]CheckFolder [21:56:01]dirname=/storage/ofd_packets [21:56:01]CheckFolder done [21:56:01]ProducePacketName [21:56:01]name=ofd_packets/00165866 [21:56:01]NVStorageSaveData ofd_packets/00165866 [21:56:01]File name is /storage/ofd_packets/00165866 [21:56:01]Write 301 bytes [21:56:01]NVStorageSaveData done [21:56:01]OFDSenderStorePacket done [21:56:01]KKMCreateOFDPacket done [21:56:01]NVStorageSaveData kkm_last_timestamp [21:56:01]File name is /storage/kkm_last_timestamp [21:56:01]Write 4 bytes [21:56:01]NVStorageSaveData done [21:56:01]ExternCall_PrintAddStr [21:56:01]wPrintStart [21:56:01]Write to MH i2c: 01 00 00 C5 21 E6 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: 01 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: 01 07 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: 01 07 00 C5 21 00 00 00 00 00 FF 0F FB [21:56:01]RasterBufferAndPrint [21:56:01]line Счет N : (1)220435 [21:56:01]line ИНН: 02508201610067 [21:56:01]line Контрольно-Кассовый Чек [21:56:01]line ПРОДАЖА [21:56:01]line ТРК (МРК, ГНК) : 14 [21:56:01]line Товар: 2710124500 [21:56:01]line Аи-95-К-5 [21:56:01]line 17.530 * 74.20 [21:56:01]line = 1300.73 [21:56:01]line НДС 12% НСП 1% [21:56:01]line > о реализуемом товаре [21:56:01]line ИТОГО: 1300.73 [21:56:01]line НСП 1% : 11.51 [21:56:01]line НДС 12% : 138.13 [21:56:01]line Наличными: 0.00 [21:56:01]line Безнал.: 1300.73 [21:56:01]line Место: АЗС № 161 "Партнер Нефть" [21:56:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:56:01]line СНО: Общий режим [21:56:01]line Чек 348 20.10.2024 21:56 [21:56:01]line Смена: 534 ФФД: 1.0 [21:56:01]line ЗНМ: 0300000104 [21:56:01]line РНМ: 0000000000091764 [21:56:01]line Версия ККМ: 001 [21:56:01]line Платежная система: Mbank [21:56:01]line ФМ: 0000000000871759 [21:56:01]line ФД: 165866 [21:56:01]line ФПД: 40365296991602 [21:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215614&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165866&fm=40365296991602&tin=02508201610067®Number=0000000000091764&sum=130073 [21:56:02]OFD Sender: Processing packet 165866 [packets to send 48, broken 47] [21:56:02]ProducePacketName [21:56:02]name=ofd_packets/00165866 [21:56:02]OFD Sender: To server: pG, [21:56:02]CommunicateWithHost lk.salyk.kg:30040 [21:56:02]ConnectInit lk.salyk.kg [21:56:02]written 0, free lines is 4095 [21:56:02]Connected sock=7 [21:56:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA 93 07 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 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 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 7E 7C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 87 02 00 35 04 06 00 24 B6 47 30 3D 72 16 AB 40 68 AD BF 83 EB [21:56:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F8 52 47 00 5C 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 31 37 35 39 10 04 04 00 EA 87 02 00 F4 03 04 00 EF 22 15 67 B6 04 01 00 00 AF 7A 76 9F 06 37 10 AD [21:56:02]CommunicateWithHost err = 0 [21:56:02]CheckOFDResponse [21:56:02]1017 (14) - 77093643461234 [21:56:02]1041 (16) - 0000000000871759 [21:56:02]1040 (4) - 165866 [21:56:02]1012 (4) - 20.10.2024 15:34 [21:56:02]1206 (1) - 0 [21:56:02]OFD Sender: Remove packet 165866 [21:56:02]ProducePacketName [21:56:02]name=ofd_packets/00165866 [21:56:02]NVStorageDeleteData [21:56:02]Write to MH i2c: 01 00 00 EE 21 0F [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: 01 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: 01 07 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: 01 07 00 EE 21 00 00 00 00 00 D8 0C FA [21:56:02]RasterBufferAndPrint [21:56:02]line [21:56:02]line [21:56:02]line [21:56:02]line [21:56:02]line [21:56:02]written 0, free lines is 3296 [21:56:02]MH_Cut [21:56:02]Write to MH i2c: D1 01 00 F5 21 01 E8 [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: D1 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: D1 01 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: D1 01 00 F5 21 00 E7 [21:56:02]Write to MH i2c: 01 00 00 F6 21 17 [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]OFD Sender: No OFD packet to send [21:56:03]*** Cut start [21:56:03]*** Partial cut [21:56:03]*** CUTSNS_PIN = 1 [21:56:03]*** CUTSNS_PIN = 0 [21:56:03]*** Brake cut motor [21:56:03]Read from MH i2c: 01 [21:56:03]MH_I2C_Read... [21:56:03]*** Stop cut motor [21:56:03]*** Cut end [21:56:03]Read from MH i2c: 01 07 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: 01 07 00 F6 21 00 00 00 00 00 FF 0F 2C [21:56:03]process_action close_receipt done [21:56:03]requested_data is exist [21:56:03]produce_requested_data [21:56:03]requested_item fm.sn is exist - process it [21:56:03]wFMCommunicate request_size=4 [21:56:03]MH_SAM_APDU [21:56:03]CAPDU: 80 11 00 00 [21:56:03]Write to MH i2c: E2 08 00 F7 21 80 11 00 00 00 00 00 00 92 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:03]Read from MH i2c: E2 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 17 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 17 00 F7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [21:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:56:03]wFMCommunicate OK [21:56:03]requested_item fd.num is exist - process it [21:56:03]SAM_PROTO_GetFieldsCounters [21:56:03]wFMCommunicate request_size=4 [21:56:03]MH_SAM_APDU [21:56:03]CAPDU: 80 13 00 00 [21:56:03]Write to MH i2c: E2 08 00 F8 21 80 13 00 00 00 00 00 00 95 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:04]Read from MH i2c: E2 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 62 00 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 62 00 F8 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 87 02 00 0E 04 04 00 16 02 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 5F [21:56: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 87 02 00 0E 04 04 00 16 02 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 [21:56:04]wFMCommunicate OK [21:56:04]SAM_PROTO_GetFieldsCounters done [21:56:04]requested_item shift.num is exist - process it [21:56:04]requested_item shift.opened is exist - process it [21:56:04]req_shift_opened [21:56:04]FM_GetShiftState [21:56:04]SAM_PROTO_GetShiftState [21:56:04]wFMCommunicate request_size=4 [21:56:04]MH_SAM_APDU [21:56:04]CAPDU: 80 13 01 00 [21:56:04]Write to MH i2c: E2 08 00 F9 21 80 13 01 00 00 00 00 00 97 [21:56:04]Write i2c OK [21:56:04]MH_I2C_Read... [21:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:04]Read from MH i2c: E2 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 0E 00 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 0E 00 F9 21 00 09 00 01 71 50 14 67 00 00 00 00 90 00 DF [21:56:04]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [21:56:04]wFMCommunicate OK [21:56:04]SAM_PROTO_GetShiftState done [21:56:04]FM_GetShiftState done [21:56:04]req_shift_opened done [21:56:04]requested_item shift.open_date is exist - process it [21:56:04]req_shift_open_date [21:56:04]req_shift_open_date done [21:56:04]produce_requested_data done [21:56:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165866,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [21:56:04]process_action_free close_receipt [21:56:04]json_value_free [21:56:04]json_value_free done [21:56:04]process_json_proto returns [21:56:04]Send response to host [21:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165866,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [21:56:04]free response buf [21:56:04]execute_script done [21:56:04]execute_script returns [21:56:04]free content buf [21:56:04]Sock 6.Close socket [21:56:04]Sock 6.Thread stoped [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:33]accept exits with 5 [22:06:33]New connection [22:06:33]New thread 3066776932 created [22:06:33]Thread 3066920292 joined [22:06:33]Waiting for new connection... [22:06:33] Sock 5.Parse request [22:06:33]Sock 5.Check first char [22:06:33]Sock 5.First char is OK [22:06:33]request: POST /json_proto HTTP/1.0 [22:06:33]Method: POST [22:06:33]URL: /json_proto [22:06:33]Method is POST - this is cgi request [22:06:33]url: /json_proto [22:06:33]query_string will be loaded in cgi processing [22:06:33]execute_cgi json_proto POST (null) [22:06:33]execute_cgi path=json_proto method=POST [22:06:33]POST find Content-Length [22:06:33]Host: 172.17.53.195:8080 [22:06:33]Content-Length: 682 [22:06:33]Content-Type: application/json [22:06:33] [22:06:33]POST finish read [22:06:33]Found Content-Length = 682 [22:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:33]execute_script... [22:06: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)220436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:33]POST & json_proto [22:06:33]process_json_proto [22:06:33]json parsed OK: [22:06:33]protocol is kg_v1.0 [22:06:33]action value=close_receipt [22:06:33]process_action close_receipt [22:06:33]cmd_close_receipt [22:06:33]MH_GetDate [22:06:33]Write to MH i2c: F0 00 00 FA 21 0A [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: F0 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: F0 09 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: F0 09 00 FA 21 00 F8 7E 15 67 21 48 4A 65 1D [22:06:33]GetLastDocTimeStamp 1729461374 [22:06:33]current date 1729462008 [22:06:33]FM_GetShiftState [22:06:33]SAM_PROTO_GetShiftState [22:06:33]wFMCommunicate request_size=4 [22:06:33]MH_SAM_APDU [22:06:33]CAPDU: 80 13 01 00 [22:06:33]Write to MH i2c: E2 08 00 FB 21 80 13 01 00 00 00 00 00 99 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 0E 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 0E 00 FB 21 00 09 00 01 71 50 14 67 00 00 00 00 90 00 E1 [22:06:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:06:33]wFMCommunicate OK [22:06:33]SAM_PROTO_GetShiftState done [22:06:33]FM_GetShiftState done [22:06:33]opened in 1729384561 [22:06:33]opened+sec_in_day 1729470961 [22:06:33]quantity*price = 300046 [22:06:33]sum+1 = 300048 [22:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 349 20.10.2024 22:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165867 ФПД: 92966579828723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220648&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165867&fm=92966579828723&tin=02508201610067®Number=0000000000091764&sum=300000 [22:06:34]StoreToDocumentArchive [22:06:34]shift 534 fd 165867 [22:06:34]save to /storage/0534/doc_00165867 [22:06:34]save last doc name /storage/0534/doc_00165867 to /storage/kkm_last_doc_name [22:06:34]save OK [22:06:34]Clear old archive folders... [22:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:34]tlvbuf is 01971690 [22:06:34]SAM_PROTO_ClearQueue [22:06:34]wFMCommunicate request_size=4 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 09 00 00 [22:06:34]Write to MH i2c: E2 08 00 08 22 80 09 00 00 00 00 00 00 9C [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 08 22 00 90 00 9E [22:06:34]RAPDU: 90 00 [22:06:34]wFMCommunicate OK [22:06:34]SAM_PROTO_ClearQueue done [22:06:34]KKMCreateOFDPacket [22:06:34]OFDProtocolAddRootSTLVToBuf [22:06:34]FM_MakeSignedData [22:06:34]FM_MakeSignedData [22:06:34]SAM_PROTO_SignData [22:06:34]wFMCommunicate request_size=4 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 0D 01 02 [22:06:34]Write to MH i2c: E2 08 00 09 22 80 0D 01 02 00 00 00 00 A4 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 09 22 00 90 00 9F [22:06:34]RAPDU: 90 00 [22:06:34]wFMCommunicate OK [22:06:34]wFMCommunicate request_size=255 [22:06:34]MH_SAM_APDU [22:06: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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F8 7E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 87 02 00 35 04 06 00 54 [22:06:34]Write to MH i2c: E2 02 01 0A 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F8 7E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 87 02 00 35 04 06 00 54 00 00 F3 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 0A 22 00 90 00 A0 [22:06:34]RAPDU: 90 00 [22:06:34]wFMCommunicate OK [22:06:34]wFMCommunicate request_size=10 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 0D 02 02 05 8D 77 F7 77 F3 [22:06:34]Write to MH i2c: E2 0D 00 0B 22 80 0D 02 02 05 00 8D 77 F7 77 F3 00 00 16 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 0B 22 00 90 00 A1 [22:06:34]RAPDU: 90 00 [22:06:34]wFMCommunicate OK [22:06:34]wFMCommunicate request_size=4 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 0D 03 02 [22:06:34]Write to MH i2c: E2 08 00 0C 22 80 0D 03 02 00 00 00 00 A9 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:35]Read from MH i2c: E2 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 0B 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 0B 00 0C 22 00 F7 8C 5D 5E B7 2E 43 45 90 00 55 [22:06:35]RAPDU: F7 8C 5D 5E B7 2E 43 45 90 00 [22:06:35]wFMCommunicate OK [22:06:35]SAM_PROTO_SignData done [22:06:35]FM_MakeSignedData done [22:06:35]CreateOFDProtocolMessage [22:06:35]wFMCommunicate request_size=4 [22:06:35]MH_SAM_APDU [22:06:35]CAPDU: 80 11 00 00 [22:06:35]Write to MH i2c: E2 08 00 0D 22 80 11 00 00 00 00 00 00 A9 [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:35]Read from MH i2c: E2 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 17 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 17 00 0D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [22:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:06:35]wFMCommunicate OK [22:06:35]CreateOFDProtocolMessage done [22:06:35]OFDSenderStorePacket 165867 [22:06:35]StoreOFDPacket docnum=165867 [22:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 72 3C 07 01 E4 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F8 7E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 87 02 00 35 04 06 00 54 8D 77 F7 77 F3 F7 8C 5D 5E B7 2E 43 45 [22:06:35]CheckFolder [22:06:35]dirname=/storage/ofd_packets [22:06:35]CheckFolder done [22:06:35]ProducePacketName [22:06:35]name=ofd_packets/00165867 [22:06:35]NVStorageSaveData ofd_packets/00165867 [22:06:35]File name is /storage/ofd_packets/00165867 [22:06:35]Write 301 bytes [22:06:35]NVStorageSaveData done [22:06:35]OFDSenderStorePacket done [22:06:35]KKMCreateOFDPacket done [22:06:35]NVStorageSaveData kkm_last_timestamp [22:06:35]File name is /storage/kkm_last_timestamp [22:06:35]Write 4 bytes [22:06:35]NVStorageSaveData done [22:06:35]ExternCall_PrintAddStr [22:06:35]wPrintStart [22:06:35]Write to MH i2c: 01 00 00 0E 22 30 [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 07 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 07 00 0E 22 00 00 00 00 00 FF 0F 45 [22:06:35]RasterBufferAndPrint [22:06:35]line Счет N : (1)220436 [22:06:35]line ИНН: 02508201610067 [22:06:35]line Контрольно-Кассовый Чек [22:06:35]line ПРОДАЖА [22:06:35]line ТРК (МРК, ГНК) : 23 [22:06:35]line Товар: 2710124130 [22:06:35]line Аи-92-К-5 [22:06:35]line 44.850 * 66.90 [22:06:35]line = 3000.47 [22:06:35]line НДС 12% НСП 1% [22:06:35]line > о реализуемом товаре [22:06:35]line ОКРУГЛЕНИЕ: -0.47 [22:06:35]line ИТОГО: 3000.00 [22:06:35]line Внесено: 3000.00 [22:06:35]line СДАЧА: 0.00 [22:06:35]line НСП 1% : 26.55 [22:06:35]line НДС 12% : 318.63 [22:06:35]line Наличными: 3000.00 [22:06:35]line Безнал.: 0.00 [22:06:35]line Место: АЗС № 161 "Партнер Нефть" [22:06:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:06:35]line СНО: Общий режим [22:06:35]line Чек 349 20.10.2024 22:06 [22:06:35]line Смена: 534 ФФД: 1.0 [22:06:35]line ЗНМ: 0300000104 [22:06:35]line РНМ: 0000000000091764 [22:06:35]line Версия ККМ: 001 [22:06:35]line ФМ: 0000000000871759 [22:06:35]line ФД: 165867 [22:06:35]line ФПД: 92966579828723 [22:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220648&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165867&fm=92966579828723&tin=02508201610067®Number=0000000000091764&sum=300000 [22:06:35]OFD Sender: Processing packet 165867 [packets to send 48, broken 47] [22:06:35]ProducePacketName [22:06:35]name=ofd_packets/00165867 [22:06:35]OFD Sender: To server: pG, [22:06:35]CommunicateWithHost lk.salyk.kg:30040 [22:06:35]ConnectInit lk.salyk.kg [22:06:35]written 0, free lines is 4095 [22:06:35]Connected sock=7 [22:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 72 3C 07 01 E4 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F8 7E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 87 02 00 35 04 06 00 54 8D 77 F7 77 F3 F7 8C 5D 5E B7 2E 43 45 [22:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF 83 47 00 7C 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 31 37 35 39 10 04 04 00 EB 87 02 00 F4 03 04 00 68 25 15 67 B6 04 01 00 00 90 21 B3 43 93 A5 69 35 [22:06:35]CommunicateWithHost err = 0 [22:06:35]CheckOFDResponse [22:06:35]1017 (14) - 77093643461234 [22:06:35]1041 (16) - 0000000000871759 [22:06:35]1040 (4) - 165867 [22:06:35]1012 (4) - 20.10.2024 15:44 [22:06:35]1206 (1) - 0 [22:06:35]OFD Sender: Remove packet 165867 [22:06:35]ProducePacketName [22:06:35]name=ofd_packets/00165867 [22:06:35]NVStorageDeleteData [22:06:35]Write to MH i2c: 01 00 00 39 22 5B [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 07 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 07 00 39 22 00 00 00 00 00 BB 0C 29 [22:06:35]RasterBufferAndPrint [22:06:35]line [22:06:35]line [22:06:35]line [22:06:35]line [22:06:35]line [22:06:35]written 0, free lines is 3265 [22:06:35]MH_Cut [22:06:35]Write to MH i2c: D1 01 00 40 22 01 34 [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: D1 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: D1 01 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: D1 01 00 40 22 00 33 [22:06:35]Write to MH i2c: 01 00 00 41 22 63 [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:36]OFD Sender: No OFD packet to send [22:06:36]*** Cut start [22:06:36]*** Partial cut [22:06:36]*** CUTSNS_PIN = 1 [22:06:36]*** CUTSNS_PIN = 0 [22:06:37]*** Brake cut motor [22:06:37]Read from MH i2c: 01 [22:06:37]MH_I2C_Read... [22:06:37]*** Stop cut motor [22:06:37]*** Cut end [22:06:37]Read from MH i2c: 01 07 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: 01 07 00 41 22 00 00 00 00 00 FF 0F 78 [22:06:37]process_action close_receipt done [22:06:37]requested_data is exist [22:06:37]produce_requested_data [22:06:37]requested_item fm.sn is exist - process it [22:06:37]wFMCommunicate request_size=4 [22:06:37]MH_SAM_APDU [22:06:37]CAPDU: 80 11 00 00 [22:06:37]Write to MH i2c: E2 08 00 42 22 80 11 00 00 00 00 00 00 DE [22:06:37]Write i2c OK [22:06:37]MH_I2C_Read... [22:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:37]Read from MH i2c: E2 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 17 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 17 00 42 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [22:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:06:37]wFMCommunicate OK [22:06:37]requested_item fd.num is exist - process it [22:06:37]SAM_PROTO_GetFieldsCounters [22:06:37]wFMCommunicate request_size=4 [22:06:37]MH_SAM_APDU [22:06:37]CAPDU: 80 13 00 00 [22:06:37]Write to MH i2c: E2 08 00 43 22 80 13 00 00 00 00 00 00 E1 [22:06:37]Write i2c OK [22:06:37]MH_I2C_Read... [22:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:37]Read from MH i2c: E2 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 62 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 62 00 43 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 87 02 00 0E 04 04 00 16 02 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 AF [22:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 87 02 00 0E 04 04 00 16 02 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:06:37]wFMCommunicate OK [22:06:37]SAM_PROTO_GetFieldsCounters done [22:06:37]requested_item shift.num is exist - process it [22:06:37]requested_item shift.opened is exist - process it [22:06:37]req_shift_opened [22:06:37]FM_GetShiftState [22:06:37]SAM_PROTO_GetShiftState [22:06:37]wFMCommunicate request_size=4 [22:06:37]MH_SAM_APDU [22:06:37]CAPDU: 80 13 01 00 [22:06:37]Write to MH i2c: E2 08 00 44 22 80 13 01 00 00 00 00 00 E3 [22:06:37]Write i2c OK [22:06:37]MH_I2C_Read... [22:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:37]Read from MH i2c: E2 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 0E 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 0E 00 44 22 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2B [22:06:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:06:37]wFMCommunicate OK [22:06:37]SAM_PROTO_GetShiftState done [22:06:37]FM_GetShiftState done [22:06:37]req_shift_opened done [22:06:37]requested_item shift.open_date is exist - process it [22:06:37]req_shift_open_date [22:06:37]req_shift_open_date done [22:06:37]produce_requested_data done [22:06:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165867,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [22:06:37]process_action_free close_receipt [22:06:37]json_value_free [22:06:37]json_value_free done [22:06:37]process_json_proto returns [22:06:37]Send response to host [22:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165867,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [22:06:37]free response buf [22:06:37]execute_script done [22:06:37]execute_script returns [22:06:37]free content buf [22:06:37]Sock 5.Close socket [22:06:37]Sock 5.Thread stoped [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:21]accept exits with 6 [22:22:21]New connection [22:22:21]New thread 3066920292 created [22:22:21]Thread 3066776932 joined [22:22:21]Waiting for new connection... [22:22:21] Sock 6.Parse request [22:22:21]Sock 6.Check first char [22:22:21]Sock 6.First char is OK [22:22:21]request: POST /json_proto HTTP/1.0 [22:22:21]Method: POST [22:22:21]URL: /json_proto [22:22:21]Method is POST - this is cgi request [22:22:21]url: /json_proto [22:22:21]query_string will be loaded in cgi processing [22:22:21]execute_cgi json_proto POST (null) [22:22:21]execute_cgi path=json_proto method=POST [22:22:21]POST find Content-Length [22:22:21]Host: 172.17.53.195:8080 [22:22:21]Content-Length: 766 [22:22:21]Content-Type: application/json [22:22:21] [22:22:21]POST finish read [22:22:21]Found Content-Length = 766 [22:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:21]execute_script... [22:22: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)220437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:21]POST & json_proto [22:22:21]process_json_proto [22:22:21]json parsed OK: [22:22:21]protocol is kg_v1.0 [22:22:21]action value=close_receipt [22:22:21]process_action close_receipt [22:22:21]cmd_close_receipt [22:22:21]MH_GetDate [22:22:21]Write to MH i2c: F0 00 00 45 22 56 [22:22:21]Write i2c OK [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: F0 [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: F0 09 00 [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: F0 09 00 45 22 00 AB 82 15 67 21 48 4A 65 20 [22:22:21]GetLastDocTimeStamp 1729462008 [22:22:21]current date 1729462955 [22:22:21]FM_GetShiftState [22:22:21]SAM_PROTO_GetShiftState [22:22:21]wFMCommunicate request_size=4 [22:22:21]MH_SAM_APDU [22:22:21]CAPDU: 80 13 01 00 [22:22:21]Write to MH i2c: E2 08 00 46 22 80 13 01 00 00 00 00 00 E5 [22:22:21]Write i2c OK [22:22:21]MH_I2C_Read... [22:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:21]Read from MH i2c: E2 [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: E2 0E 00 [22:22:21]MH_I2C_Read... [22:22:21]Read from MH i2c: E2 0E 00 46 22 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2D [22:22:21]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:22:21]wFMCommunicate OK [22:22:21]SAM_PROTO_GetShiftState done [22:22:21]FM_GetShiftState done [22:22:21]opened in 1729384561 [22:22:21]opened+sec_in_day 1729470961 [22:22:21]quantity*price = 50010 [22:22:21]sum+1 = 50012 [22:22:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 350 20.10.2024 22:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165868 ФПД: 88557395671451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T222235&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165868&fm=88557395671451&tin=02508201610067®Number=0000000000091764&sum=50011 [22:22:22]StoreToDocumentArchive [22:22:22]shift 534 fd 165868 [22:22:22]save to /storage/0534/doc_00165868 [22:22:22]save last doc name /storage/0534/doc_00165868 to /storage/kkm_last_doc_name [22:22:22]save OK [22:22:22]Clear old archive folders... [22:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:22:22]tlvbuf is 01722CE0 [22:22:22]SAM_PROTO_ClearQueue [22:22:22]wFMCommunicate request_size=4 [22:22:22]MH_SAM_APDU [22:22:22]CAPDU: 80 09 00 00 [22:22:22]Write to MH i2c: E2 08 00 53 22 80 09 00 00 00 00 00 00 E7 [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 53 22 00 90 00 E9 [22:22:22]RAPDU: 90 00 [22:22:22]wFMCommunicate OK [22:22:22]SAM_PROTO_ClearQueue done [22:22:22]KKMCreateOFDPacket [22:22:22]OFDProtocolAddRootSTLVToBuf [22:22:22]FM_MakeSignedData [22:22:22]FM_MakeSignedData [22:22:22]SAM_PROTO_SignData [22:22:22]wFMCommunicate request_size=4 [22:22:22]MH_SAM_APDU [22:22:22]CAPDU: 80 0D 01 02 [22:22:22]Write to MH i2c: E2 08 00 54 22 80 0D 01 02 00 00 00 00 EF [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 54 22 00 90 00 EA [22:22:22]RAPDU: 90 00 [22:22:22]wFMCommunicate OK [22:22:22]wFMCommunicate request_size=255 [22:22:22]MH_SAM_APDU [22:22: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 AB 82 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 87 02 00 35 04 06 00 50 [22:22:22]Write to MH i2c: E2 02 01 55 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 AB 82 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 87 02 00 35 04 06 00 50 00 00 58 [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 55 22 00 90 00 EB [22:22:22]RAPDU: 90 00 [22:22:22]wFMCommunicate OK [22:22:22]wFMCommunicate request_size=10 [22:22:22]MH_SAM_APDU [22:22:22]CAPDU: 80 0D 02 02 05 8A E0 1C 79 9B [22:22:22]Write to MH i2c: E2 0D 00 56 22 80 0D 02 02 05 00 8A E0 1C 79 9B 00 00 96 [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 03 00 56 22 00 90 00 EC [22:22:22]RAPDU: 90 00 [22:22:22]wFMCommunicate OK [22:22:22]wFMCommunicate request_size=4 [22:22:22]MH_SAM_APDU [22:22:22]CAPDU: 80 0D 03 02 [22:22:22]Write to MH i2c: E2 08 00 57 22 80 0D 03 02 00 00 00 00 F4 [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 0B 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 0B 00 57 22 00 FC E0 80 48 AC E2 E1 F8 90 00 00 [22:22:22]RAPDU: FC E0 80 48 AC E2 E1 F8 90 00 [22:22:22]wFMCommunicate OK [22:22:22]SAM_PROTO_SignData done [22:22:22]FM_MakeSignedData done [22:22:22]CreateOFDProtocolMessage [22:22:22]wFMCommunicate request_size=4 [22:22:22]MH_SAM_APDU [22:22:22]CAPDU: 80 11 00 00 [22:22:22]Write to MH i2c: E2 08 00 58 22 80 11 00 00 00 00 00 00 F4 [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:22]Read from MH i2c: E2 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 17 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: E2 17 00 58 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [22:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:22:22]wFMCommunicate OK [22:22:22]CreateOFDProtocolMessage done [22:22:22]OFDSenderStorePacket 165868 [22:22:22]StoreOFDPacket docnum=165868 [22:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE E0 07 01 AA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 AB 82 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 87 02 00 35 04 06 00 50 8A E0 1C 79 9B FC E0 80 48 AC E2 E1 F8 [22:22:22]CheckFolder [22:22:22]dirname=/storage/ofd_packets [22:22:22]CheckFolder done [22:22:22]ProducePacketName [22:22:22]name=ofd_packets/00165868 [22:22:22]NVStorageSaveData ofd_packets/00165868 [22:22:22]File name is /storage/ofd_packets/00165868 [22:22:22]Write 301 bytes [22:22:22]NVStorageSaveData done [22:22:22]OFDSenderStorePacket done [22:22:22]KKMCreateOFDPacket done [22:22:22]NVStorageSaveData kkm_last_timestamp [22:22:22]File name is /storage/kkm_last_timestamp [22:22:22]Write 4 bytes [22:22:22]NVStorageSaveData done [22:22:22]ExternCall_PrintAddStr [22:22:22]wPrintStart [22:22:22]Write to MH i2c: 01 00 00 59 22 7B [22:22:22]Write i2c OK [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: 01 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: 01 07 00 [22:22:22]MH_I2C_Read... [22:22:22]Read from MH i2c: 01 07 00 59 22 00 00 00 00 00 FF 0F 90 [22:22:22]RasterBufferAndPrint [22:22:22]line Счет N : (1)220437 [22:22:22]line ИНН: 02508201610067 [22:22:22]line Контрольно-Кассовый Чек [22:22:22]line ПРОДАЖА [22:22:22]line ТРК (МРК, ГНК) : 24 [22:22:22]line Товар: 2710124500 [22:22:22]line Аи-95-К-5 [22:22:22]line 6.740 * 74.20 [22:22:22]line = 500.11 [22:22:22]line НДС 12% НСП 1% [22:22:22]line > о реализуемом товаре [22:22:22]line ИТОГО: 500.11 [22:22:22]line НСП 1% : 4.43 [22:22:22]line НДС 12% : 53.11 [22:22:22]line Наличными: 0.00 [22:22:22]line Безнал.: 500.11 [22:22:22]line Место: АЗС № 161 "Партнер Нефть" [22:22:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:22:22]line СНО: Общий режим [22:22:22]line Чек 350 20.10.2024 22:22 [22:22:22]line Смена: 534 ФФД: 1.0 [22:22:22]line ЗНМ: 0300000104 [22:22:22]line РНМ: 0000000000091764 [22:22:22]line Версия ККМ: 001 [22:22:22]line Платежная система: Mbank [22:22:22]line ФМ: 0000000000871759 [22:22:22]line ФД: 165868 [22:22:22]line ФПД: 88557395671451 [22:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T222235&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165868&fm=88557395671451&tin=02508201610067®Number=0000000000091764&sum=50011 [22:22:22]written 0, free lines is 4095 [22:22:22]OFD Sender: Processing packet 165868 [packets to send 48, broken 47] [22:22:22]ProducePacketName [22:22:22]name=ofd_packets/00165868 [22:22:22]OFD Sender: To server: pG, [22:22:22]CommunicateWithHost lk.salyk.kg:30040 [22:22:22]ConnectInit lk.salyk.kg [22:22:22]Connected sock=7 [22:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE E0 07 01 AA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 AB 82 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 87 02 00 35 04 06 00 50 8A E0 1C 79 9B FC E0 80 48 AC E2 E1 F8 [22:22:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E3 02 47 00 86 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 87 02 00 F4 03 04 00 1C 29 15 67 B6 04 01 00 00 BA D3 15 A9 55 12 D8 FC [22:22:23]CommunicateWithHost err = 0 [22:22:23]CheckOFDResponse [22:22:23]1017 (14) - 77093643461234 [22:22:23]1041 (16) - 0000000000871759 [22:22:23]1040 (4) - 165868 [22:22:23]1012 (4) - 20.10.2024 16:00 [22:22:23]1206 (1) - 0 [22:22:23]OFD Sender: Remove packet 165868 [22:22:23]ProducePacketName [22:22:23]name=ofd_packets/00165868 [22:22:23]NVStorageDeleteData [22:22:23]Write to MH i2c: 01 00 00 82 22 A4 [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 07 00 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: 01 07 00 82 22 00 00 00 00 00 E1 0C 98 [22:22:23]RasterBufferAndPrint [22:22:23]line [22:22:23]line [22:22:23]line [22:22:23]line [22:22:23]line [22:22:23]written 0, free lines is 3303 [22:22:23]MH_Cut [22:22:23]Write to MH i2c: D1 01 00 89 22 01 7D [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: D1 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: D1 01 00 [22:22:23]MH_I2C_Read... [22:22:23]Read from MH i2c: D1 01 00 89 22 00 7C [22:22:23]Write to MH i2c: 01 00 00 8A 22 AC [22:22:23]Write i2c OK [22:22:23]MH_I2C_Read... [22:22:23]OFD Sender: No OFD packet to send [22:22:24]*** Cut start [22:22:24]*** Partial cut [22:22:24]*** CUTSNS_PIN = 1 [22:22:24]*** CUTSNS_PIN = 0 [22:22:24]*** Brake cut motor [22:22:24]Read from MH i2c: 01 [22:22:24]MH_I2C_Read... [22:22:24]*** Stop cut motor [22:22:24]*** Cut end [22:22:24]Read from MH i2c: 01 07 00 [22:22:24]MH_I2C_Read... [22:22:24]Read from MH i2c: 01 07 00 8A 22 00 00 00 00 00 FF 0F C1 [22:22:24]process_action close_receipt done [22:22:24]requested_data is exist [22:22:24]produce_requested_data [22:22:24]requested_item fm.sn is exist - process it [22:22:24]wFMCommunicate request_size=4 [22:22:24]MH_SAM_APDU [22:22:24]CAPDU: 80 11 00 00 [22:22:24]Write to MH i2c: E2 08 00 8B 22 80 11 00 00 00 00 00 00 27 [22:22:24]Write i2c OK [22:22:24]MH_I2C_Read... [22:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:24]Read from MH i2c: E2 [22:22:24]MH_I2C_Read... [22:22:24]Read from MH i2c: E2 17 00 [22:22:24]MH_I2C_Read... [22:22:24]Read from MH i2c: E2 17 00 8B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [22:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:22:24]wFMCommunicate OK [22:22:24]requested_item fd.num is exist - process it [22:22:24]SAM_PROTO_GetFieldsCounters [22:22:24]wFMCommunicate request_size=4 [22:22:24]MH_SAM_APDU [22:22:24]CAPDU: 80 13 00 00 [22:22:24]Write to MH i2c: E2 08 00 8C 22 80 13 00 00 00 00 00 00 2A [22:22:24]Write i2c OK [22:22:24]MH_I2C_Read... [22:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:24]Read from MH i2c: E2 [22:22:24]MH_I2C_Read... [22:22:24]Read from MH i2c: E2 62 00 [22:22:24]MH_I2C_Read... [22:22:24]Read from MH i2c: E2 62 00 8C 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 87 02 00 0E 04 04 00 16 02 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 FC [22:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 87 02 00 0E 04 04 00 16 02 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:22:24]wFMCommunicate OK [22:22:24]SAM_PROTO_GetFieldsCounters done [22:22:24]requested_item shift.num is exist - process it [22:22:24]requested_item shift.opened is exist - process it [22:22:24]req_shift_opened [22:22:24]FM_GetShiftState [22:22:24]SAM_PROTO_GetShiftState [22:22:24]wFMCommunicate request_size=4 [22:22:24]MH_SAM_APDU [22:22:24]CAPDU: 80 13 01 00 [22:22:24]Write to MH i2c: E2 08 00 8D 22 80 13 01 00 00 00 00 00 2C [22:22:24]Write i2c OK [22:22:24]MH_I2C_Read... [22:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:24]Read from MH i2c: E2 [22:22:24]MH_I2C_Read... [22:22:24]Read from MH i2c: E2 0E 00 [22:22:24]MH_I2C_Read... [22:22:24]Read from MH i2c: E2 0E 00 8D 22 00 09 00 01 71 50 14 67 00 00 00 00 90 00 74 [22:22:24]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:22:24]wFMCommunicate OK [22:22:24]SAM_PROTO_GetShiftState done [22:22:24]FM_GetShiftState done [22:22:24]req_shift_opened done [22:22:24]requested_item shift.open_date is exist - process it [22:22:24]req_shift_open_date [22:22:24]req_shift_open_date done [22:22:24]produce_requested_data done [22:22:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165868,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [22:22:24]process_action_free close_receipt [22:22:24]json_value_free [22:22:24]json_value_free done [22:22:24]process_json_proto returns [22:22:24]Send response to host [22:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165868,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [22:22:24]free response buf [22:22:24]execute_script done [22:22:24]execute_script returns [22:22:24]free content buf [22:22:24]Sock 6.Close socket [22:22:24]Sock 6.Thread stoped [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:51]accept exits with 5 [22:24:51]New connection [22:24:51]New thread 3066776932 created [22:24:51]Thread 3066920292 joined [22:24:51]Waiting for new connection... [22:24:51] Sock 5.Parse request [22:24:51]Sock 5.Check first char [22:24:51]Sock 5.First char is OK [22:24:51]request: POST /json_proto HTTP/1.0 [22:24:51]Method: POST [22:24:51]URL: /json_proto [22:24:51]Method is POST - this is cgi request [22:24:51]url: /json_proto [22:24:51]query_string will be loaded in cgi processing [22:24:51]execute_cgi json_proto POST (null) [22:24:51]execute_cgi path=json_proto method=POST [22:24:51]POST find Content-Length [22:24:51]Host: 172.17.53.195:8080 [22:24:51]Content-Length: 677 [22:24:51]Content-Type: application/json [22:24:51] [22:24:51]POST finish read [22:24:51]Found Content-Length = 677 [22:24:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:51]execute_script... [22:24: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)220438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:51]POST & json_proto [22:24:51]process_json_proto [22:24:51]json parsed OK: [22:24:51]protocol is kg_v1.0 [22:24:51]action value=close_receipt [22:24:51]process_action close_receipt [22:24:51]cmd_close_receipt [22:24:51]MH_GetDate [22:24:51]Write to MH i2c: F0 00 00 8E 22 9F [22:24:51]Write i2c OK [22:24:51]MH_I2C_Read... [22:24:51]Read from MH i2c: F0 [22:24:51]MH_I2C_Read... [22:24:51]Read from MH i2c: F0 09 00 [22:24:51]MH_I2C_Read... [22:24:51]Read from MH i2c: F0 09 00 8E 22 00 42 83 15 67 21 48 4A 65 01 [22:24:51]GetLastDocTimeStamp 1729462955 [22:24:51]current date 1729463106 [22:24:51]FM_GetShiftState [22:24:51]SAM_PROTO_GetShiftState [22:24:51]wFMCommunicate request_size=4 [22:24:51]MH_SAM_APDU [22:24:51]CAPDU: 80 13 01 00 [22:24:51]Write to MH i2c: E2 08 00 8F 22 80 13 01 00 00 00 00 00 2E [22:24:51]Write i2c OK [22:24:51]MH_I2C_Read... [22:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:51]Read from MH i2c: E2 [22:24:51]MH_I2C_Read... [22:24:51]Read from MH i2c: E2 0E 00 [22:24:51]MH_I2C_Read... [22:24:51]Read from MH i2c: E2 0E 00 8F 22 00 09 00 01 71 50 14 67 00 00 00 00 90 00 76 [22:24:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:24:51]wFMCommunicate OK [22:24:51]SAM_PROTO_GetShiftState done [22:24:51]FM_GetShiftState done [22:24:51]opened in 1729384561 [22:24:51]opened+sec_in_day 1729470961 [22:24:51]quantity*price = 50041 [22:24:51]sum+1 = 50042 [22:24:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 351 20.10.2024 22:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165869 ФПД: 40534439864290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T222506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165869&fm=40534439864290&tin=02508201610067®Number=0000000000091764&sum=50000 [22:24:52]StoreToDocumentArchive [22:24:52]shift 534 fd 165869 [22:24:52]save to /storage/0534/doc_00165869 [22:24:52]save last doc name /storage/0534/doc_00165869 to /storage/kkm_last_doc_name [22:24:52]save OK [22:24:52]Clear old archive folders... [22:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:52]tlvbuf is 01839A30 [22:24:52]SAM_PROTO_ClearQueue [22:24:52]wFMCommunicate request_size=4 [22:24:52]MH_SAM_APDU [22:24:52]CAPDU: 80 09 00 00 [22:24:52]Write to MH i2c: E2 08 00 9C 22 80 09 00 00 00 00 00 00 30 [22:24:52]Write i2c OK [22:24:52]MH_I2C_Read... [22:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:52]Read from MH i2c: E2 [22:24:52]MH_I2C_Read... [22:24:52]Read from MH i2c: E2 03 00 [22:24:52]MH_I2C_Read... [22:24:52]Read from MH i2c: E2 03 00 9C 22 00 90 00 32 [22:24:52]RAPDU: 90 00 [22:24:52]wFMCommunicate OK [22:24:52]SAM_PROTO_ClearQueue done [22:24:52]KKMCreateOFDPacket [22:24:52]OFDProtocolAddRootSTLVToBuf [22:24:52]FM_MakeSignedData [22:24:52]FM_MakeSignedData [22:24:52]SAM_PROTO_SignData [22:24:52]wFMCommunicate request_size=4 [22:24:52]MH_SAM_APDU [22:24:52]CAPDU: 80 0D 01 02 [22:24:52]Write to MH i2c: E2 08 00 9D 22 80 0D 01 02 00 00 00 00 38 [22:24:52]Write i2c OK [22:24:52]MH_I2C_Read... [22:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:52]Read from MH i2c: E2 [22:24:52]MH_I2C_Read... [22:24:52]Read from MH i2c: E2 03 00 [22:24:52]MH_I2C_Read... [22:24:52]Read from MH i2c: E2 03 00 9D 22 00 90 00 33 [22:24:52]RAPDU: 90 00 [22:24:52]wFMCommunicate OK [22:24:52]wFMCommunicate request_size=255 [22:24:52]MH_SAM_APDU [22:24: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 42 83 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 87 02 00 35 04 06 00 24 [22:24:52]Write to MH i2c: E2 02 01 9E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 42 83 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 87 02 00 35 04 06 00 24 00 00 21 [22:24:52]Write i2c OK [22:24:52]MH_I2C_Read... [22:24:53]Read from MH i2c: E2 [22:24:53]MH_I2C_Read... [22:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:53]Read from MH i2c: E2 03 00 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: E2 03 00 9E 22 00 90 00 34 [22:24:53]RAPDU: 90 00 [22:24:53]wFMCommunicate OK [22:24:53]wFMCommunicate request_size=10 [22:24:53]MH_SAM_APDU [22:24:53]CAPDU: 80 0D 02 02 05 DD A8 E3 A7 E2 [22:24:53]Write to MH i2c: E2 0D 00 9F 22 80 0D 02 02 05 00 DD A8 E3 A7 E2 00 00 36 [22:24:53]Write i2c OK [22:24:53]MH_I2C_Read... [22:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:53]Read from MH i2c: E2 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: E2 03 00 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: E2 03 00 9F 22 00 90 00 35 [22:24:53]RAPDU: 90 00 [22:24:53]wFMCommunicate OK [22:24:53]wFMCommunicate request_size=4 [22:24:53]MH_SAM_APDU [22:24:53]CAPDU: 80 0D 03 02 [22:24:53]Write to MH i2c: E2 08 00 A0 22 80 0D 03 02 00 00 00 00 3D [22:24:53]Write i2c OK [22:24:53]MH_I2C_Read... [22:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:53]Read from MH i2c: E2 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: E2 0B 00 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: E2 0B 00 A0 22 00 5F 5B 5E 0D 52 43 4C 95 90 00 D9 [22:24:53]RAPDU: 5F 5B 5E 0D 52 43 4C 95 90 00 [22:24:53]wFMCommunicate OK [22:24:53]SAM_PROTO_SignData done [22:24:53]FM_MakeSignedData done [22:24:53]CreateOFDProtocolMessage [22:24:53]wFMCommunicate request_size=4 [22:24:53]MH_SAM_APDU [22:24:53]CAPDU: 80 11 00 00 [22:24:53]Write to MH i2c: E2 08 00 A1 22 80 11 00 00 00 00 00 00 3D [22:24:53]Write i2c OK [22:24:53]MH_I2C_Read... [22:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:53]Read from MH i2c: E2 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: E2 17 00 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: E2 17 00 A1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [22:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:24:53]wFMCommunicate OK [22:24:53]CreateOFDProtocolMessage done [22:24:53]OFDSenderStorePacket 165869 [22:24:53]StoreOFDPacket docnum=165869 [22:24:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2F 34 07 01 3E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 42 83 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 87 02 00 35 04 06 00 24 DD A8 E3 A7 E2 5F 5B 5E 0D 52 43 4C 95 [22:24:53]CheckFolder [22:24:53]dirname=/storage/ofd_packets [22:24:53]CheckFolder done [22:24:53]ProducePacketName [22:24:53]name=ofd_packets/00165869 [22:24:53]NVStorageSaveData ofd_packets/00165869 [22:24:53]File name is /storage/ofd_packets/00165869 [22:24:53]Write 301 bytes [22:24:53]NVStorageSaveData done [22:24:53]OFDSenderStorePacket done [22:24:53]KKMCreateOFDPacket done [22:24:53]NVStorageSaveData kkm_last_timestamp [22:24:53]File name is /storage/kkm_last_timestamp [22:24:53]Write 4 bytes [22:24:53]NVStorageSaveData done [22:24:53]ExternCall_PrintAddStr [22:24:53]wPrintStart [22:24:53]Write to MH i2c: 01 00 00 A2 22 C4 [22:24:53]Write i2c OK [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: 01 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: 01 07 00 [22:24:53]MH_I2C_Read... [22:24:53]Read from MH i2c: 01 07 00 A2 22 00 00 00 00 00 FF 0F D9 [22:24:53]RasterBufferAndPrint [22:24:53]line Счет N : (1)220438 [22:24:53]line ИНН: 02508201610067 [22:24:53]line Контрольно-Кассовый Чек [22:24:53]line ПРОДАЖА [22:24:53]line ТРК (МРК, ГНК) : 13 [22:24:53]line Товар: 2710124130 [22:24:53]line Аи-92-К-5 [22:24:53]line 7.480 * 66.90 [22:24:53]line = 500.41 [22:24:53]line НДС 12% НСП 1% [22:24:53]line > о реализуемом товаре [22:24:53]line ОКРУГЛЕНИЕ: -0.41 [22:24:53]line ИТОГО: 500.00 [22:24:53]line Внесено: 500.00 [22:24:53]line СДАЧА: 0.00 [22:24:53]line НСП 1% : 4.43 [22:24:53]line НДС 12% : 53.14 [22:24:53]line Наличными: 500.00 [22:24:53]line Безнал.: 0.00 [22:24:53]line Место: АЗС № 161 "Партнер Нефть" [22:24:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:24:53]line СНО: Общий режим [22:24:53]line Чек 351 20.10.2024 22:25 [22:24:53]line Смена: 534 ФФД: 1.0 [22:24:53]line ЗНМ: 0300000104 [22:24:53]line РНМ: 0000000000091764 [22:24:53]line Версия ККМ: 001 [22:24:53]line ФМ: 0000000000871759 [22:24:53]line ФД: 165869 [22:24:53]line ФПД: 40534439864290 [22:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T222506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165869&fm=40534439864290&tin=02508201610067®Number=0000000000091764&sum=50000 [22:24:53]OFD Sender: Processing packet 165869 [packets to send 48, broken 47] [22:24:53]ProducePacketName [22:24:53]name=ofd_packets/00165869 [22:24:53]OFD Sender: To server: pG, [22:24:53]CommunicateWithHost lk.salyk.kg:30040 [22:24:53]ConnectInit lk.salyk.kg [22:24:53]written 0, free lines is 4095 [22:24:53]Connected sock=7 [22:24:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2F 34 07 01 3E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 42 83 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 87 02 00 35 04 06 00 24 DD A8 E3 A7 E2 5F 5B 5E 0D 52 43 4C 95 [22:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7D D4 47 00 51 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 87 02 00 F4 03 04 00 B2 29 15 67 B6 04 01 00 00 8D 68 AD 25 C7 E6 1D E6 [22:24:53]CommunicateWithHost err = 0 [22:24:53]CheckOFDResponse [22:24:53]1017 (14) - 77093643461234 [22:24:53]1041 (16) - 0000000000871759 [22:24:53]1040 (4) - 165869 [22:24:53]1012 (4) - 20.10.2024 16:02 [22:24:53]1206 (1) - 0 [22:24:53]OFD Sender: Remove packet 165869 [22:24:53]ProducePacketName [22:24:53]name=ofd_packets/00165869 [22:24:53]NVStorageDeleteData [22:24:54]Write to MH i2c: 01 00 00 CD 22 EF [22:24:54]Write i2c OK [22:24:54]MH_I2C_Read... [22:24:54]Read from MH i2c: 01 [22:24:54]MH_I2C_Read... [22:24:54]Read from MH i2c: 01 07 00 [22:24:54]MH_I2C_Read... [22:24:54]Read from MH i2c: 01 07 00 CD 22 00 00 00 00 00 C7 0C C9 [22:24:54]RasterBufferAndPrint [22:24:54]line [22:24:54]line [22:24:54]line [22:24:54]line [22:24:54]line [22:24:54]written 0, free lines is 3277 [22:24:54]MH_Cut [22:24:54]Write to MH i2c: D1 01 00 D4 22 01 C8 [22:24:54]Write i2c OK [22:24:54]MH_I2C_Read... [22:24:54]Read from MH i2c: D1 [22:24:54]MH_I2C_Read... [22:24:54]Read from MH i2c: D1 01 00 [22:24:54]MH_I2C_Read... [22:24:54]Read from MH i2c: D1 01 00 D4 22 00 C7 [22:24:54]Write to MH i2c: 01 00 00 D5 22 F7 [22:24:54]Write i2c OK [22:24:54]MH_I2C_Read... [22:24:54]OFD Sender: No OFD packet to send [22:24:54]*** Cut start [22:24:54]*** Partial cut [22:24:54]*** CUTSNS_PIN = 1 [22:24:55]*** CUTSNS_PIN = 0 [22:24:55]*** Brake cut motor [22:24:55]Read from MH i2c: 01 [22:24:55]MH_I2C_Read... [22:24:55]*** Stop cut motor [22:24:55]*** Cut end [22:24:55]Read from MH i2c: 01 07 00 [22:24:55]MH_I2C_Read... [22:24:55]Read from MH i2c: 01 07 00 D5 22 00 00 00 00 00 FF 0F 0C [22:24:55]process_action close_receipt done [22:24:55]requested_data is exist [22:24:55]produce_requested_data [22:24:55]requested_item fm.sn is exist - process it [22:24:55]wFMCommunicate request_size=4 [22:24:55]MH_SAM_APDU [22:24:55]CAPDU: 80 11 00 00 [22:24:55]Write to MH i2c: E2 08 00 D6 22 80 11 00 00 00 00 00 00 72 [22:24:55]Write i2c OK [22:24:55]MH_I2C_Read... [22:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:55]Read from MH i2c: E2 [22:24:55]MH_I2C_Read... [22:24:55]Read from MH i2c: E2 17 00 [22:24:55]MH_I2C_Read... [22:24:55]Read from MH i2c: E2 17 00 D6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [22:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:24:55]wFMCommunicate OK [22:24:55]requested_item fd.num is exist - process it [22:24:55]SAM_PROTO_GetFieldsCounters [22:24:55]wFMCommunicate request_size=4 [22:24:55]MH_SAM_APDU [22:24:55]CAPDU: 80 13 00 00 [22:24:55]Write to MH i2c: E2 08 00 D7 22 80 13 00 00 00 00 00 00 75 [22:24:55]Write i2c OK [22:24:55]MH_I2C_Read... [22:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:55]Read from MH i2c: E2 [22:24:55]MH_I2C_Read... [22:24:55]Read from MH i2c: E2 62 00 [22:24:55]MH_I2C_Read... [22:24:55]Read from MH i2c: E2 62 00 D7 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 87 02 00 0E 04 04 00 16 02 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 4B [22:24: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 87 02 00 0E 04 04 00 16 02 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:24:55]wFMCommunicate OK [22:24:55]SAM_PROTO_GetFieldsCounters done [22:24:55]requested_item shift.num is exist - process it [22:24:55]requested_item shift.opened is exist - process it [22:24:55]req_shift_opened [22:24:55]FM_GetShiftState [22:24:55]SAM_PROTO_GetShiftState [22:24:55]wFMCommunicate request_size=4 [22:24:55]MH_SAM_APDU [22:24:55]CAPDU: 80 13 01 00 [22:24:55]Write to MH i2c: E2 08 00 D8 22 80 13 01 00 00 00 00 00 77 [22:24:55]Write i2c OK [22:24:55]MH_I2C_Read... [22:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:55]Read from MH i2c: E2 [22:24:55]MH_I2C_Read... [22:24:55]Read from MH i2c: E2 0E 00 [22:24:55]MH_I2C_Read... [22:24:55]Read from MH i2c: E2 0E 00 D8 22 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BF [22:24:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:24:55]wFMCommunicate OK [22:24:55]SAM_PROTO_GetShiftState done [22:24:55]FM_GetShiftState done [22:24:55]req_shift_opened done [22:24:55]requested_item shift.open_date is exist - process it [22:24:55]req_shift_open_date [22:24:55]req_shift_open_date done [22:24:55]produce_requested_data done [22:24:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165869,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [22:24:55]process_action_free close_receipt [22:24:55]json_value_free [22:24:55]json_value_free done [22:24:55]process_json_proto returns [22:24:55]Send response to host [22:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165869,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [22:24:55]free response buf [22:24:55]execute_script done [22:24:55]execute_script returns [22:24:55]free content buf [22:24:55]Sock 5.Close socket [22:24:55]Sock 5.Thread stoped [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:36]accept exits with 6 [22:27:36]New connection [22:27:36]New thread 3066920292 created [22:27:36]Thread 3066776932 joined [22:27:36]Waiting for new connection... [22:27:36] Sock 6.Parse request [22:27:36]Sock 6.Check first char [22:27:36]Sock 6.First char is OK [22:27:36]request: POST /json_proto HTTP/1.0 [22:27:36]Method: POST [22:27:36]URL: /json_proto [22:27:36]Method is POST - this is cgi request [22:27:36]url: /json_proto [22:27:36]query_string will be loaded in cgi processing [22:27:36]execute_cgi json_proto POST (null) [22:27:36]execute_cgi path=json_proto method=POST [22:27:36]POST find Content-Length [22:27:36]Host: 172.17.53.195:8080 [22:27:36]Content-Length: 766 [22:27:36]Content-Type: application/json [22:27:36] [22:27:36]POST finish read [22:27:36]Found Content-Length = 766 [22:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:36]execute_script... [22:27: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)220439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:36]POST & json_proto [22:27:36]process_json_proto [22:27:36]json parsed OK: [22:27:36]protocol is kg_v1.0 [22:27:36]action value=close_receipt [22:27:36]process_action close_receipt [22:27:36]cmd_close_receipt [22:27:36]MH_GetDate [22:27:36]Write to MH i2c: F0 00 00 D9 22 EA [22:27:36]Write i2c OK [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: F0 [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: F0 09 00 [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: F0 09 00 D9 22 00 E7 83 15 67 21 48 4A 65 F1 [22:27:36]GetLastDocTimeStamp 1729463106 [22:27:36]current date 1729463271 [22:27:36]FM_GetShiftState [22:27:36]SAM_PROTO_GetShiftState [22:27:36]wFMCommunicate request_size=4 [22:27:36]MH_SAM_APDU [22:27:36]CAPDU: 80 13 01 00 [22:27:36]Write to MH i2c: E2 08 00 DA 22 80 13 01 00 00 00 00 00 79 [22:27:36]Write i2c OK [22:27:36]MH_I2C_Read... [22:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:36]Read from MH i2c: E2 [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: E2 0E 00 [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: E2 0E 00 DA 22 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C1 [22:27:36]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:27:36]wFMCommunicate OK [22:27:36]SAM_PROTO_GetShiftState done [22:27:36]FM_GetShiftState done [22:27:36]opened in 1729384561 [22:27:36]opened+sec_in_day 1729470961 [22:27:36]quantity*price = 50041 [22:27:36]sum+1 = 50042 [22:27:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 352 20.10.2024 22:27 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165870 ФПД: 272882875808457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T222751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165870&fm=272882875808457&tin=02508201610067®Number=0000000000091764&sum=50041 [22:27:37]StoreToDocumentArchive [22:27:37]shift 534 fd 165870 [22:27:37]save to /storage/0534/doc_00165870 [22:27:37]save last doc name /storage/0534/doc_00165870 to /storage/kkm_last_doc_name [22:27:37]save OK [22:27:37]Clear old archive folders... [22:27:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:37]tlvbuf is 01971260 [22:27:37]SAM_PROTO_ClearQueue [22:27:37]wFMCommunicate request_size=4 [22:27:37]MH_SAM_APDU [22:27:37]CAPDU: 80 09 00 00 [22:27:37]Write to MH i2c: E2 08 00 E7 22 80 09 00 00 00 00 00 00 7B [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 E7 22 00 90 00 7D [22:27:37]RAPDU: 90 00 [22:27:37]wFMCommunicate OK [22:27:37]SAM_PROTO_ClearQueue done [22:27:37]KKMCreateOFDPacket [22:27:37]OFDProtocolAddRootSTLVToBuf [22:27:37]FM_MakeSignedData [22:27:37]FM_MakeSignedData [22:27:37]SAM_PROTO_SignData [22:27:37]wFMCommunicate request_size=4 [22:27:37]MH_SAM_APDU [22:27:37]CAPDU: 80 0D 01 02 [22:27:37]Write to MH i2c: E2 08 00 E8 22 80 0D 01 02 00 00 00 00 83 [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 E8 22 00 90 00 7E [22:27:37]RAPDU: 90 00 [22:27:37]wFMCommunicate OK [22:27:37]wFMCommunicate request_size=255 [22:27:37]MH_SAM_APDU [22:27: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 E7 83 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 87 02 00 35 04 06 00 F8 [22:27:37]Write to MH i2c: E2 02 01 E9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 E7 83 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 87 02 00 35 04 06 00 F8 00 00 39 [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 [22:27:38]MH_I2C_Read... [22:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:38]Read from MH i2c: E2 03 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 03 00 E9 22 00 90 00 7F [22:27:38]RAPDU: 90 00 [22:27:38]wFMCommunicate OK [22:27:38]wFMCommunicate request_size=10 [22:27:38]MH_SAM_APDU [22:27:38]CAPDU: 80 0D 02 02 05 2F 7E E0 BA C9 [22:27:38]Write to MH i2c: E2 0D 00 EA 22 80 0D 02 02 05 00 2F 7E E0 BA C9 00 00 A0 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:38]Read from MH i2c: E2 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 03 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 03 00 EA 22 00 90 00 80 [22:27:38]RAPDU: 90 00 [22:27:38]wFMCommunicate OK [22:27:38]wFMCommunicate request_size=4 [22:27:38]MH_SAM_APDU [22:27:38]CAPDU: 80 0D 03 02 [22:27:38]Write to MH i2c: E2 08 00 EB 22 80 0D 03 02 00 00 00 00 88 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:38]Read from MH i2c: E2 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 0B 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 0B 00 EB 22 00 75 02 58 22 7E 58 45 A8 90 00 3D [22:27:38]RAPDU: 75 02 58 22 7E 58 45 A8 90 00 [22:27:38]wFMCommunicate OK [22:27:38]SAM_PROTO_SignData done [22:27:38]FM_MakeSignedData done [22:27:38]CreateOFDProtocolMessage [22:27:38]wFMCommunicate request_size=4 [22:27:38]MH_SAM_APDU [22:27:38]CAPDU: 80 11 00 00 [22:27:38]Write to MH i2c: E2 08 00 EC 22 80 11 00 00 00 00 00 00 88 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:38]Read from MH i2c: E2 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 17 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 17 00 EC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [22:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:27:38]wFMCommunicate OK [22:27:38]CreateOFDProtocolMessage done [22:27:38]OFDSenderStorePacket 165870 [22:27:38]StoreOFDPacket docnum=165870 [22:27:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 A1 07 01 8B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 E7 83 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 87 02 00 35 04 06 00 F8 2F 7E E0 BA C9 75 02 58 22 7E 58 45 A8 [22:27:38]CheckFolder [22:27:38]dirname=/storage/ofd_packets [22:27:38]CheckFolder done [22:27:38]ProducePacketName [22:27:38]name=ofd_packets/00165870 [22:27:38]NVStorageSaveData ofd_packets/00165870 [22:27:38]File name is /storage/ofd_packets/00165870 [22:27:38]Write 301 bytes [22:27:38]NVStorageSaveData done [22:27:38]OFDSenderStorePacket done [22:27:38]KKMCreateOFDPacket done [22:27:38]NVStorageSaveData kkm_last_timestamp [22:27:38]File name is /storage/kkm_last_timestamp [22:27:38]Write 4 bytes [22:27:38]NVStorageSaveData done [22:27:38]ExternCall_PrintAddStr [22:27:38]wPrintStart [22:27:38]Write to MH i2c: 01 00 00 ED 22 0F [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 07 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 07 00 ED 22 00 00 00 00 00 FF 0F 24 [22:27:38]RasterBufferAndPrint [22:27:38]line Счет N : (1)220439 [22:27:38]line ИНН: 02508201610067 [22:27:38]line Контрольно-Кассовый Чек [22:27:38]line ПРОДАЖА [22:27:38]line ТРК (МРК, ГНК) : 13 [22:27:38]line Товар: 2710124130 [22:27:38]line Аи-92-К-5 [22:27:38]line 7.480 * 66.90 [22:27:38]line = 500.41 [22:27:38]line НДС 12% НСП 1% [22:27:38]line > о реализуемом товаре [22:27:38]line ИТОГО: 500.41 [22:27:38]line НСП 1% : 4.43 [22:27:38]line НДС 12% : 53.14 [22:27:38]line Наличными: 0.00 [22:27:38]line Безнал.: 500.41 [22:27:38]line Место: АЗС № 161 "Партнер Нефть" [22:27:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:27:38]line СНО: Общий режим [22:27:38]line Чек 352 20.10.2024 22:27 [22:27:38]line Смена: 534 ФФД: 1.0 [22:27:38]line ЗНМ: 0300000104 [22:27:38]line РНМ: 0000000000091764 [22:27:38]line Версия ККМ: 001 [22:27:38]line Платежная система: Mbank [22:27:38]line ФМ: 0000000000871759 [22:27:38]line ФД: 165870 [22:27:38]line ФПД: 272882875808457 [22:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T222751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165870&fm=272882875808457&tin=02508201610067®Number=0000000000091764&sum=50041 [22:27:38]written 0, free lines is 4095 [22:27:38]OFD Sender: Processing packet 165870 [packets to send 48, broken 47] [22:27:38]ProducePacketName [22:27:38]name=ofd_packets/00165870 [22:27:38]OFD Sender: To server: pG, [22:27:38]CommunicateWithHost lk.salyk.kg:30040 [22:27:38]ConnectInit lk.salyk.kg [22:27:38]Connected sock=7 [22:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 A1 07 01 8B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 E7 83 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 87 02 00 35 04 06 00 F8 2F 7E E0 BA C9 75 02 58 22 7E 58 45 A8 [22:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4D FA 47 00 D8 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 87 02 00 F4 03 04 00 57 2A 15 67 B6 04 01 00 00 89 04 DB A9 FB 98 78 65 [22:27:38]CommunicateWithHost err = 0 [22:27:38]CheckOFDResponse [22:27:38]1017 (14) - 77093643461234 [22:27:38]1041 (16) - 0000000000871759 [22:27:38]1040 (4) - 165870 [22:27:38]1012 (4) - 20.10.2024 16:05 [22:27:38]1206 (1) - 0 [22:27:38]OFD Sender: Remove packet 165870 [22:27:38]ProducePacketName [22:27:38]name=ofd_packets/00165870 [22:27:38]NVStorageDeleteData [22:27:38]Write to MH i2c: 01 00 00 16 23 39 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 07 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 E1 0C 2D [22:27:38]RasterBufferAndPrint [22:27:38]line [22:27:38]line [22:27:38]line [22:27:38]line [22:27:38]line [22:27:38]written 0, free lines is 3303 [22:27:38]MH_Cut [22:27:38]Write to MH i2c: D1 01 00 1D 23 01 12 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: D1 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: D1 01 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: D1 01 00 1D 23 00 11 [22:27:38]Write to MH i2c: 01 00 00 1E 23 41 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:39]OFD Sender: No OFD packet to send [22:27:39]*** Cut start [22:27:39]*** Partial cut [22:27:39]*** CUTSNS_PIN = 1 [22:27:39]*** CUTSNS_PIN = 0 [22:27:39]*** Brake cut motor [22:27:40]Read from MH i2c: 01 [22:27:40]MH_I2C_Read... [22:27:40]*** Stop cut motor [22:27:40]*** Cut end [22:27:40]Read from MH i2c: 01 07 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: 01 07 00 1E 23 00 00 00 00 00 FF 0F 56 [22:27:40]process_action close_receipt done [22:27:40]requested_data is exist [22:27:40]produce_requested_data [22:27:40]requested_item fm.sn is exist - process it [22:27:40]wFMCommunicate request_size=4 [22:27:40]MH_SAM_APDU [22:27:40]CAPDU: 80 11 00 00 [22:27:40]Write to MH i2c: E2 08 00 1F 23 80 11 00 00 00 00 00 00 BC [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:40]Read from MH i2c: E2 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 17 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 17 00 1F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 14 [22:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:27:40]wFMCommunicate OK [22:27:40]requested_item fd.num is exist - process it [22:27:40]SAM_PROTO_GetFieldsCounters [22:27:40]wFMCommunicate request_size=4 [22:27:40]MH_SAM_APDU [22:27:40]CAPDU: 80 13 00 00 [22:27:40]Write to MH i2c: E2 08 00 20 23 80 13 00 00 00 00 00 00 BF [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:40]Read from MH i2c: E2 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 62 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 62 00 20 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 87 02 00 0E 04 04 00 16 02 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 99 [22:27:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 87 02 00 0E 04 04 00 16 02 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:27:40]wFMCommunicate OK [22:27:40]SAM_PROTO_GetFieldsCounters done [22:27:40]requested_item shift.num is exist - process it [22:27:40]requested_item shift.opened is exist - process it [22:27:40]req_shift_opened [22:27:40]FM_GetShiftState [22:27:40]SAM_PROTO_GetShiftState [22:27:40]wFMCommunicate request_size=4 [22:27:40]MH_SAM_APDU [22:27:40]CAPDU: 80 13 01 00 [22:27:40]Write to MH i2c: E2 08 00 21 23 80 13 01 00 00 00 00 00 C1 [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:40]Read from MH i2c: E2 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 0E 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 0E 00 21 23 00 09 00 01 71 50 14 67 00 00 00 00 90 00 09 [22:27:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:27:40]wFMCommunicate OK [22:27:40]SAM_PROTO_GetShiftState done [22:27:40]FM_GetShiftState done [22:27:40]req_shift_opened done [22:27:40]requested_item shift.open_date is exist - process it [22:27:40]req_shift_open_date [22:27:40]req_shift_open_date done [22:27:40]produce_requested_data done [22:27:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165870,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [22:27:40]process_action_free close_receipt [22:27:40]json_value_free [22:27:40]json_value_free done [22:27:40]process_json_proto returns [22:27:40]Send response to host [22:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165870,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [22:27:40]free response buf [22:27:40]execute_script done [22:27:40]execute_script returns [22:27:40]free content buf [22:27:40]Sock 6.Close socket [22:27:40]Sock 6.Thread stoped [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:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]accept exits with 5 [22:32:14]New connection [22:32:14]New thread 3066776932 created [22:32:14]Thread 3066920292 joined [22:32:14]Waiting for new connection... [22:32:14] Sock 5.Parse request [22:32:14]Sock 5.Check first char [22:32:14]Sock 5.First char is OK [22:32:14]request: POST /json_proto HTTP/1.0 [22:32:14]Method: POST [22:32:14]URL: /json_proto [22:32:14]Method is POST - this is cgi request [22:32:14]url: /json_proto [22:32:14]query_string will be loaded in cgi processing [22:32:14]execute_cgi json_proto POST (null) [22:32:14]execute_cgi path=json_proto method=POST [22:32:14]POST find Content-Length [22:32:14]Host: 172.17.53.195:8080 [22:32:14]Content-Length: 678 [22:32:14]Content-Type: application/json [22:32:14] [22:32:14]POST finish read [22:32:14]Found Content-Length = 678 [22:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.670, "sum" : 847.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 847.00, "total" : 847.00, "payments": [ { "type": 0, "sum" : 847.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:14]execute_script... [22:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.670, "sum" : 847.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 847.00, "total" : 847.00, "payments": [ { "type": 0, "sum" : 847.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:14]POST & json_proto [22:32:14]process_json_proto [22:32:14]json parsed OK: [22:32:14]protocol is kg_v1.0 [22:32:14]action value=close_receipt [22:32:14]process_action close_receipt [22:32:14]cmd_close_receipt [22:32:14]MH_GetDate [22:32:14]Write to MH i2c: F0 00 00 22 23 34 [22:32:14]Write i2c OK [22:32:14]MH_I2C_Read... [22:32:14]Read from MH i2c: F0 [22:32:14]MH_I2C_Read... [22:32:14]Read from MH i2c: F0 09 00 [22:32:14]MH_I2C_Read... [22:32:14]Read from MH i2c: F0 09 00 22 23 00 FD 84 15 67 21 48 4A 65 52 [22:32:14]GetLastDocTimeStamp 1729463271 [22:32:14]current date 1729463549 [22:32:14]FM_GetShiftState [22:32:14]SAM_PROTO_GetShiftState [22:32:14]wFMCommunicate request_size=4 [22:32:14]MH_SAM_APDU [22:32:14]CAPDU: 80 13 01 00 [22:32:14]Write to MH i2c: E2 08 00 23 23 80 13 01 00 00 00 00 00 C3 [22:32:14]Write i2c OK [22:32:14]MH_I2C_Read... [22:32:14]OFD Sender: No OFD packet to send [22:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:14]Read from MH i2c: E2 [22:32:14]MH_I2C_Read... [22:32:14]Read from MH i2c: E2 0E 00 [22:32:14]MH_I2C_Read... [22:32:14]Read from MH i2c: E2 0E 00 23 23 00 09 00 01 71 50 14 67 00 00 00 00 90 00 0B [22:32:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:32:14]wFMCommunicate OK [22:32:14]SAM_PROTO_GetShiftState done [22:32:14]FM_GetShiftState done [22:32:14]opened in 1729384561 [22:32:14]opened+sec_in_day 1729470961 [22:32:14]quantity*price = 84762 [22:32:14]sum+1 = 84763 [22:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 847.00 Внесено: 847.00 СДАЧА: 0.00 НСП 1% : 7.50 НДС 12% : 90.01 Наличными: 847.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 353 20.10.2024 22:32 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165871 ФПД: 176350019237272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T223229&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165871&fm=176350019237272&tin=02508201610067®Number=0000000000091764&sum=84700 [22:32:15]StoreToDocumentArchive [22:32:15]shift 534 fd 165871 [22:32:15]save to /storage/0534/doc_00165871 [22:32:15]save last doc name /storage/0534/doc_00165871 to /storage/kkm_last_doc_name [22:32:15]save OK [22:32:15]Clear old archive folders... [22:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:15]tlvbuf is 018AFD70 [22:32:15]SAM_PROTO_ClearQueue [22:32:15]wFMCommunicate request_size=4 [22:32:15]MH_SAM_APDU [22:32:15]CAPDU: 80 09 00 00 [22:32:15]Write to MH i2c: E2 08 00 30 23 80 09 00 00 00 00 00 00 C5 [22:32:15]Write i2c OK [22:32:15]MH_I2C_Read... [22:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:15]Read from MH i2c: E2 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: E2 03 00 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: E2 03 00 30 23 00 90 00 C7 [22:32:15]RAPDU: 90 00 [22:32:15]wFMCommunicate OK [22:32:15]SAM_PROTO_ClearQueue done [22:32:15]KKMCreateOFDPacket [22:32:15]OFDProtocolAddRootSTLVToBuf [22:32:15]FM_MakeSignedData [22:32:15]FM_MakeSignedData [22:32:15]SAM_PROTO_SignData [22:32:15]wFMCommunicate request_size=4 [22:32:15]MH_SAM_APDU [22:32:15]CAPDU: 80 0D 01 02 [22:32:15]Write to MH i2c: E2 08 00 31 23 80 0D 01 02 00 00 00 00 CD [22:32:15]Write i2c OK [22:32:15]MH_I2C_Read... [22:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:15]Read from MH i2c: E2 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: E2 03 00 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: E2 03 00 31 23 00 90 00 C8 [22:32:15]RAPDU: 90 00 [22:32:15]wFMCommunicate OK [22:32:15]wFMCommunicate request_size=255 [22:32:15]MH_SAM_APDU [22:32:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1A 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 23 00 00 00 00 07 04 06 00 DC 4A 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 01 00 00 F4 03 04 00 FD 84 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 87 02 00 35 04 06 00 A0 [22:32:15]Write to MH i2c: E2 02 01 32 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 7E 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1A 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 23 00 00 00 00 07 04 06 00 DC 4A 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 01 00 00 F4 03 04 00 FD 84 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 87 02 00 35 04 06 00 A0 00 00 48 [22:32:15]Write i2c OK [22:32:15]MH_I2C_Read... [22:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:16]Read from MH i2c: E2 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 03 00 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 03 00 32 23 00 90 00 C9 [22:32:16]RAPDU: 90 00 [22:32:16]wFMCommunicate OK [22:32:16]wFMCommunicate request_size=10 [22:32:16]MH_SAM_APDU [22:32:16]CAPDU: 80 0D 02 02 05 63 B0 40 B5 98 [22:32:16]Write to MH i2c: E2 0D 00 33 23 80 0D 02 02 05 00 63 B0 40 B5 98 00 00 7A [22:32:16]Write i2c OK [22:32:16]MH_I2C_Read... [22:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:16]Read from MH i2c: E2 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 03 00 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 03 00 33 23 00 90 00 CA [22:32:16]RAPDU: 90 00 [22:32:16]wFMCommunicate OK [22:32:16]wFMCommunicate request_size=4 [22:32:16]MH_SAM_APDU [22:32:16]CAPDU: 80 0D 03 02 [22:32:16]Write to MH i2c: E2 08 00 34 23 80 0D 03 02 00 00 00 00 D2 [22:32:16]Write i2c OK [22:32:16]MH_I2C_Read... [22:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:16]Read from MH i2c: E2 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 0B 00 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 0B 00 34 23 00 4D 6E 18 27 49 A1 7B D7 90 00 09 [22:32:16]RAPDU: 4D 6E 18 27 49 A1 7B D7 90 00 [22:32:16]wFMCommunicate OK [22:32:16]SAM_PROTO_SignData done [22:32:16]FM_MakeSignedData done [22:32:16]CreateOFDProtocolMessage [22:32:16]wFMCommunicate request_size=4 [22:32:16]MH_SAM_APDU [22:32:16]CAPDU: 80 11 00 00 [22:32:16]Write to MH i2c: E2 08 00 35 23 80 11 00 00 00 00 00 00 D2 [22:32:16]Write i2c OK [22:32:16]MH_I2C_Read... [22:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:16]Read from MH i2c: E2 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 17 00 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 17 00 35 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2A [22:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:32:16]wFMCommunicate OK [22:32:16]CreateOFDProtocolMessage done [22:32:16]OFDSenderStorePacket 165871 [22:32:16]StoreOFDPacket docnum=165871 [22:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 80 07 01 DE 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 7E 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1A 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 23 00 00 00 00 07 04 06 00 DC 4A 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 01 00 00 F4 03 04 00 FD 84 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 87 02 00 35 04 06 00 A0 63 B0 40 B5 98 4D 6E 18 27 49 A1 7B D7 [22:32:16]CheckFolder [22:32:16]dirname=/storage/ofd_packets [22:32:16]CheckFolder done [22:32:16]ProducePacketName [22:32:16]name=ofd_packets/00165871 [22:32:16]NVStorageSaveData ofd_packets/00165871 [22:32:16]File name is /storage/ofd_packets/00165871 [22:32:16]Write 301 bytes [22:32:16]NVStorageSaveData done [22:32:16]OFDSenderStorePacket done [22:32:16]KKMCreateOFDPacket done [22:32:16]NVStorageSaveData kkm_last_timestamp [22:32:16]File name is /storage/kkm_last_timestamp [22:32:16]Write 4 bytes [22:32:16]NVStorageSaveData done [22:32:16]ExternCall_PrintAddStr [22:32:16]wPrintStart [22:32:16]Write to MH i2c: 01 00 00 36 23 59 [22:32:16]Write i2c OK [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: 01 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: 01 07 00 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: 01 07 00 36 23 00 00 00 00 00 FF 0F 6E [22:32:16]RasterBufferAndPrint [22:32:16]line Счет N : (1)220440 [22:32:16]line ИНН: 02508201610067 [22:32:16]line Контрольно-Кассовый Чек [22:32:16]line ПРОДАЖА [22:32:16]line ТРК (МРК, ГНК) : 23 [22:32:16]line Товар: 2710124130 [22:32:16]line Аи-92-К-5 [22:32:16]line 12.670 * 66.90 [22:32:16]line = 847.62 [22:32:16]line НДС 12% НСП 1% [22:32:16]line > о реализуемом товаре [22:32:16]line ОКРУГЛЕНИЕ: -0.62 [22:32:16]line ИТОГО: 847.00 [22:32:16]line Внесено: 847.00 [22:32:16]line СДАЧА: 0.00 [22:32:16]line НСП 1% : 7.50 [22:32:16]line НДС 12% : 90.01 [22:32:16]line Наличными: 847.00 [22:32:16]line Безнал.: 0.00 [22:32:16]line Место: АЗС № 161 "Партнер Нефть" [22:32:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:32:16]line СНО: Общий режим [22:32:16]line Чек 353 20.10.2024 22:32 [22:32:16]line Смена: 534 ФФД: 1.0 [22:32:16]line ЗНМ: 0300000104 [22:32:16]line РНМ: 0000000000091764 [22:32:16]line Версия ККМ: 001 [22:32:16]line ФМ: 0000000000871759 [22:32:16]line ФД: 165871 [22:32:16]line ФПД: 176350019237272 [22:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T223229&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165871&fm=176350019237272&tin=02508201610067®Number=0000000000091764&sum=84700 [22:32:16]OFD Sender: Processing packet 165871 [packets to send 48, broken 47] [22:32:16]ProducePacketName [22:32:16]name=ofd_packets/00165871 [22:32:16]OFD Sender: To server: pG, [22:32:16]CommunicateWithHost lk.salyk.kg:30040 [22:32:16]ConnectInit lk.salyk.kg [22:32:16]written 0, free lines is 4095 [22:32:16]Connected sock=9 [22:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 80 07 01 DE 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 7E 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1A 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 23 00 00 00 00 07 04 06 00 DC 4A 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 01 00 00 F4 03 04 00 FD 84 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 87 02 00 35 04 06 00 A0 63 B0 40 B5 98 4D 6E 18 27 49 A1 7B D7 [22:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AF 55 47 00 4A 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 31 37 35 39 10 04 04 00 EF 87 02 00 F4 03 04 00 6D 2B 15 67 B6 04 01 00 00 EF 4D 74 C2 4F 79 E9 BD [22:32:16]CommunicateWithHost err = 0 [22:32:16]CheckOFDResponse [22:32:16]1017 (14) - 77093643461234 [22:32:16]1041 (16) - 0000000000871759 [22:32:16]1040 (4) - 165871 [22:32:16]1012 (4) - 20.10.2024 16:10 [22:32:16]1206 (1) - 0 [22:32:16]OFD Sender: Remove packet 165871 [22:32:16]ProducePacketName [22:32:16]name=ofd_packets/00165871 [22:32:16]NVStorageDeleteData [22:32:16]Write to MH i2c: 01 00 00 61 23 84 [22:32:16]Write i2c OK [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: 01 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: 01 07 00 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: 01 07 00 61 23 00 00 00 00 00 C0 0C 57 [22:32:16]RasterBufferAndPrint [22:32:16]line [22:32:16]line [22:32:16]line [22:32:16]line [22:32:16]line [22:32:16]written 0, free lines is 3270 [22:32:17]MH_Cut [22:32:17]Write to MH i2c: D1 01 00 68 23 01 5D [22:32:17]Write i2c OK [22:32:17]MH_I2C_Read... [22:32:17]Read from MH i2c: D1 [22:32:17]MH_I2C_Read... [22:32:17]Read from MH i2c: D1 01 00 [22:32:17]MH_I2C_Read... [22:32:17]Read from MH i2c: D1 01 00 68 23 00 5C [22:32:17]Write to MH i2c: 01 00 00 69 23 8C [22:32:17]Write i2c OK [22:32:17]MH_I2C_Read... [22:32:17]OFD Sender: No OFD packet to send [22:32:17]*** Cut start [22:32:17]*** Partial cut [22:32:17]*** CUTSNS_PIN = 1 [22:32:17]*** CUTSNS_PIN = 0 [22:32:18]*** Brake cut motor [22:32:18]Read from MH i2c: 01 [22:32:18]MH_I2C_Read... [22:32:18]*** Stop cut motor [22:32:18]*** Cut end [22:32:18]Read from MH i2c: 01 07 00 [22:32:18]MH_I2C_Read... [22:32:18]Read from MH i2c: 01 07 00 69 23 00 00 00 00 00 FF 0F A1 [22:32:18]process_action close_receipt done [22:32:18]requested_data is exist [22:32:18]produce_requested_data [22:32:18]requested_item fm.sn is exist - process it [22:32:18]wFMCommunicate request_size=4 [22:32:18]MH_SAM_APDU [22:32:18]CAPDU: 80 11 00 00 [22:32:18]Write to MH i2c: E2 08 00 6A 23 80 11 00 00 00 00 00 00 07 [22:32:18]Write i2c OK [22:32:18]MH_I2C_Read... [22:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:18]Read from MH i2c: E2 [22:32:18]MH_I2C_Read... [22:32:18]Read from MH i2c: E2 17 00 [22:32:18]MH_I2C_Read... [22:32:18]Read from MH i2c: E2 17 00 6A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5F [22:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:32:18]wFMCommunicate OK [22:32:18]requested_item fd.num is exist - process it [22:32:18]SAM_PROTO_GetFieldsCounters [22:32:18]wFMCommunicate request_size=4 [22:32:18]MH_SAM_APDU [22:32:18]CAPDU: 80 13 00 00 [22:32:18]Write to MH i2c: E2 08 00 6B 23 80 13 00 00 00 00 00 00 0A [22:32:18]Write i2c OK [22:32:18]MH_I2C_Read... [22:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:18]Read from MH i2c: E2 [22:32:18]MH_I2C_Read... [22:32:18]Read from MH i2c: E2 62 00 [22:32:18]MH_I2C_Read... [22:32:18]Read from MH i2c: E2 62 00 6B 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 87 02 00 0E 04 04 00 16 02 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 E8 [22:32:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 87 02 00 0E 04 04 00 16 02 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 [22:32:18]wFMCommunicate OK [22:32:18]SAM_PROTO_GetFieldsCounters done [22:32:18]requested_item shift.num is exist - process it [22:32:18]requested_item shift.opened is exist - process it [22:32:18]req_shift_opened [22:32:18]FM_GetShiftState [22:32:18]SAM_PROTO_GetShiftState [22:32:18]wFMCommunicate request_size=4 [22:32:18]MH_SAM_APDU [22:32:18]CAPDU: 80 13 01 00 [22:32:18]Write to MH i2c: E2 08 00 6C 23 80 13 01 00 00 00 00 00 0C [22:32:18]Write i2c OK [22:32:18]MH_I2C_Read... [22:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:18]Read from MH i2c: E2 [22:32:18]MH_I2C_Read... [22:32:18]Read from MH i2c: E2 0E 00 [22:32:18]MH_I2C_Read... [22:32:18]Read from MH i2c: E2 0E 00 6C 23 00 09 00 01 71 50 14 67 00 00 00 00 90 00 54 [22:32:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [22:32:18]wFMCommunicate OK [22:32:18]SAM_PROTO_GetShiftState done [22:32:18]FM_GetShiftState done [22:32:18]req_shift_opened done [22:32:18]requested_item shift.open_date is exist - process it [22:32:18]req_shift_open_date [22:32:18]req_shift_open_date done [22:32:18]produce_requested_data done [22:32:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165871,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [22:32:18]process_action_free close_receipt [22:32:18]json_value_free [22:32:18]json_value_free done [22:32:18]process_json_proto returns [22:32:18]Send response to host [22:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165871,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [22:32:18]free response buf [22:32:18]execute_script done [22:32:18]execute_script returns [22:32:18]free content buf [22:32:18]Sock 5.Close socket [22:32:18]Sock 5.Thread stoped [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:11]accept exits with 6 [23:00:11]New connection [23:00:11]New thread 3066920292 created [23:00:11]Thread 3066776932 joined [23:00:11]Waiting for new connection... [23:00:11] Sock 6.Parse request [23:00:11]Sock 6.Check first char [23:00:11]Sock 6.First char is OK [23:00:11]request: POST /json_proto HTTP/1.0 [23:00:11]Method: POST [23:00:11]URL: /json_proto [23:00:11]Method is POST - this is cgi request [23:00:11]url: /json_proto [23:00:11]query_string will be loaded in cgi processing [23:00:11]execute_cgi json_proto POST (null) [23:00:11]execute_cgi path=json_proto method=POST [23:00:11]POST find Content-Length [23:00:11]Host: 172.17.53.195:8080 [23:00:11]Content-Length: 790 [23:00:11]Content-Type: application/json [23:00:11] [23:00:11]POST finish read [23:00:11]Found Content-Length = 790 [23:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220441", "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" : 0.00, "quantity" : 425.200, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:11]execute_script... [23:00: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)220441", "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" : 0.00, "quantity" : 425.200, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A39590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:11]POST & json_proto [23:00:11]process_json_proto [23:00:11]json parsed OK: [23:00:11]protocol is kg_v1.0 [23:00:11]action value=close_receipt [23:00:11]process_action close_receipt [23:00:11]cmd_close_receipt [23:00:11]MH_GetDate [23:00:11]Write to MH i2c: F0 00 00 6D 23 7F [23:00:11]Write i2c OK [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: F0 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: F0 09 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: F0 09 00 6D 23 00 8A 8B 15 67 21 48 4A 65 31 [23:00:11]GetLastDocTimeStamp 1729463549 [23:00:11]current date 1729465226 [23:00:11]FM_GetShiftState [23:00:11]SAM_PROTO_GetShiftState [23:00:11]wFMCommunicate request_size=4 [23:00:11]MH_SAM_APDU [23:00:11]CAPDU: 80 13 01 00 [23:00:11]Write to MH i2c: E2 08 00 6E 23 80 13 01 00 00 00 00 00 0E [23:00:11]Write i2c OK [23:00:11]MH_I2C_Read... [23:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:11]Read from MH i2c: E2 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 0E 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 0E 00 6E 23 00 09 00 01 71 50 14 67 00 00 00 00 90 00 56 [23:00:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:00:11]wFMCommunicate OK [23:00:11]SAM_PROTO_GetShiftState done [23:00:11]FM_GetShiftState done [23:00:11]opened in 1729384561 [23:00:11]opened+sec_in_day 1729470961 [23:00:11]quantity*price = 0 [23:00:11]sum+1 = 1 [23:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 354 20.10.2024 23:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 39590 ФМ: 0000000000871759 ФД: 165872 ФПД: 173465155813548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165872&fm=173465155813548&tin=02508201610067®Number=0000000000091764&sum=0 [23:00:12]StoreToDocumentArchive [23:00:12]shift 534 fd 165872 [23:00:12]save to /storage/0534/doc_00165872 [23:00:12]save last doc name /storage/0534/doc_00165872 to /storage/kkm_last_doc_name [23:00:12]save OK [23:00:12]Clear old archive folders... [23:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:00:12]tlvbuf is 01484D40 [23:00:12]SAM_PROTO_ClearQueue [23:00:12]wFMCommunicate request_size=4 [23:00:12]MH_SAM_APDU [23:00:12]CAPDU: 80 09 00 00 [23:00:12]Write to MH i2c: E2 08 00 7B 23 80 09 00 00 00 00 00 00 10 [23:00:12]Write i2c OK [23:00:12]MH_I2C_Read... [23:00:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:13]Read from MH i2c: E2 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 03 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 03 00 7B 23 00 90 00 12 [23:00:13]RAPDU: 90 00 [23:00:13]wFMCommunicate OK [23:00:13]SAM_PROTO_ClearQueue done [23:00:13]KKMCreateOFDPacket [23:00:13]OFDProtocolAddRootSTLVToBuf [23:00:13]FM_MakeSignedData [23:00:13]FM_MakeSignedData [23:00:13]SAM_PROTO_SignData [23:00:13]wFMCommunicate request_size=4 [23:00:13]MH_SAM_APDU [23:00:13]CAPDU: 80 0D 01 02 [23:00:13]Write to MH i2c: E2 08 00 7C 23 80 0D 01 02 00 00 00 00 18 [23:00:13]Write i2c OK [23:00:13]MH_I2C_Read... [23:00:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:13]Read from MH i2c: E2 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 03 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 03 00 7C 23 00 90 00 13 [23:00:13]RAPDU: 90 00 [23:00:13]wFMCommunicate OK [23:00:13]wFMCommunicate request_size=255 [23:00:13]MH_SAM_APDU [23:00: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 F0 7C 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 8A 8B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 87 02 00 35 04 06 00 9D C4 00 FE [23:00:13]Write to MH i2c: E2 02 01 7D 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 F0 7C 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 8A 8B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 87 02 00 35 04 06 00 9D C4 00 FE 00 00 D2 [23:00:13]Write i2c OK [23:00:13]MH_I2C_Read... [23:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:13]Read from MH i2c: E2 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 03 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 03 00 7D 23 00 90 00 14 [23:00:13]RAPDU: 90 00 [23:00:13]wFMCommunicate OK [23:00:13]wFMCommunicate request_size=7 [23:00:13]MH_SAM_APDU [23:00:13]CAPDU: 80 0D 02 02 02 40 AC [23:00:13]Write to MH i2c: E2 0A 00 7E 23 80 0D 02 02 02 00 40 AC 00 00 0B [23:00:13]Write i2c OK [23:00:13]MH_I2C_Read... [23:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:13]Read from MH i2c: E2 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 03 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 03 00 7E 23 00 90 00 15 [23:00:13]RAPDU: 90 00 [23:00:13]wFMCommunicate OK [23:00:13]wFMCommunicate request_size=4 [23:00:13]MH_SAM_APDU [23:00:13]CAPDU: 80 0D 03 02 [23:00:13]Write to MH i2c: E2 08 00 7F 23 80 0D 03 02 00 00 00 00 1D [23:00:13]Write i2c OK [23:00:13]MH_I2C_Read... [23:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:13]Read from MH i2c: E2 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 0B 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 0B 00 7F 23 00 C2 1F 16 FD 58 D1 D5 47 90 00 57 [23:00:13]RAPDU: C2 1F 16 FD 58 D1 D5 47 90 00 [23:00:13]wFMCommunicate OK [23:00:13]SAM_PROTO_SignData done [23:00:13]FM_MakeSignedData done [23:00:13]CreateOFDProtocolMessage [23:00:13]wFMCommunicate request_size=4 [23:00:13]MH_SAM_APDU [23:00:13]CAPDU: 80 11 00 00 [23:00:13]Write to MH i2c: E2 08 00 80 23 80 11 00 00 00 00 00 00 1D [23:00:13]Write i2c OK [23:00:13]MH_I2C_Read... [23:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:13]Read from MH i2c: E2 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 17 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 17 00 80 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [23:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:00:13]wFMCommunicate OK [23:00:13]CreateOFDProtocolMessage done [23:00:13]OFDSenderStorePacket 165872 [23:00:13]StoreOFDPacket docnum=165872 [23:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6D EC 04 01 D5 5B 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 F0 7C 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 8A 8B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 87 02 00 35 04 06 00 9D C4 00 FE 40 AC C2 1F 16 FD 58 D1 D5 47 [23:00:13]CheckFolder [23:00:13]dirname=/storage/ofd_packets [23:00:13]CheckFolder done [23:00:13]ProducePacketName [23:00:13]name=ofd_packets/00165872 [23:00:13]NVStorageSaveData ofd_packets/00165872 [23:00:13]File name is /storage/ofd_packets/00165872 [23:00:13]Write 298 bytes [23:00:13]NVStorageSaveData done [23:00:13]OFDSenderStorePacket done [23:00:13]KKMCreateOFDPacket done [23:00:13]NVStorageSaveData kkm_last_timestamp [23:00:13]File name is /storage/kkm_last_timestamp [23:00:13]Write 4 bytes [23:00:13]NVStorageSaveData done [23:00:13]ExternCall_PrintAddStr [23:00:13]wPrintStart [23:00:13]Write to MH i2c: 01 00 00 81 23 A4 [23:00:13]Write i2c OK [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: 01 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: 01 07 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: 01 07 00 81 23 00 00 00 00 00 FF 0F B9 [23:00:13]RasterBufferAndPrint [23:00:13]line Счет N : (1)220441 [23:00:13]line ИНН: 02508201610067 [23:00:13]line Контрольно-Кассовый Чек [23:00:13]line ПРОДАЖА [23:00:13]line ТРК (МРК, ГНК) : 11 [23:00:13]line Товар: 2710194210 [23:00:13]line ДТ-К-5 [23:00:13]line 425.200 * 0.00 [23:00:13]line = 0.00 [23:00:13]line НДС 12% НСП 1% [23:00:13]line > о реализуемом товаре [23:00:13]line ИТОГО: 0.00 [23:00:13]line НСП 1% : 0.00 [23:00:13]line НДС 12% : 0.00 [23:00:13]line Наличными: 0.00 [23:00:13]line Безнал.: 0.00 [23:00:13]line Место: АЗС № 161 "Партнер Нефть" [23:00:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:00:13]line СНО: Общий режим [23:00:13]line Чек 354 20.10.2024 23:00 [23:00:13]line Смена: 534 ФФД: 1.0 [23:00:13]line ЗНМ: 0300000104 [23:00:13]line РНМ: 0000000000091764 [23:00:13]line Версия ККМ: 001 [23:00:13]line Талоны: Топливная Карта [23:00:13]line 39590 [23:00:13]line ФМ: 0000000000871759 [23:00:13]line ФД: 165872 [23:00:13]line ФПД: 173465155813548 [23:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165872&fm=173465155813548&tin=02508201610067®Number=0000000000091764&sum=0 [23:00:13]OFD Sender: Processing packet 165872 [packets to send 48, broken 47] [23:00:13]ProducePacketName [23:00:13]name=ofd_packets/00165872 [23:00:13]OFD Sender: To server: pG, [23:00:13]CommunicateWithHost lk.salyk.kg:30040 [23:00:13]ConnectInit lk.salyk.kg [23:00:13]written 0, free lines is 4095 [23:00:13]Connected sock=7 [23:00:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6D EC 04 01 D5 5B 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 F0 7C 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 8A 8B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 87 02 00 35 04 06 00 9D C4 00 FE 40 AC C2 1F 16 FD 58 D1 D5 47 [23:00:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DA E5 47 00 C5 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 31 37 35 39 10 04 04 00 F0 87 02 00 F4 03 04 00 FB 31 15 67 B6 04 01 00 00 88 A0 39 9E 6D 38 68 44 [23:00:14]CommunicateWithHost err = 0 [23:00:14]CheckOFDResponse [23:00:14]1017 (14) - 77093643461234 [23:00:14]1041 (16) - 0000000000871759 [23:00:14]1040 (4) - 165872 [23:00:14]1012 (4) - 20.10.2024 16:38 [23:00:14]1206 (1) - 0 [23:00:14]OFD Sender: Remove packet 165872 [23:00:14]ProducePacketName [23:00:14]name=ofd_packets/00165872 [23:00:14]NVStorageDeleteData [23:00:14]Write to MH i2c: 01 00 00 AB 23 CE [23:00:14]Write i2c OK [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: 01 [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: 01 07 00 [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: 01 07 00 AB 23 00 00 00 00 00 C5 0C A6 [23:00:14]RasterBufferAndPrint [23:00:14]line [23:00:14]line [23:00:14]line [23:00:14]line [23:00:14]line [23:00:14]written 0, free lines is 3276 [23:00:14]MH_Cut [23:00:14]Write to MH i2c: D1 01 00 B2 23 01 A7 [23:00:14]Write i2c OK [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: D1 [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: D1 01 00 [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: D1 01 00 B2 23 00 A6 [23:00:14]Write to MH i2c: 01 00 00 B3 23 D6 [23:00:14]Write i2c OK [23:00:14]MH_I2C_Read... [23:00:14]OFD Sender: No OFD packet to send [23:00:15]*** Cut start [23:00:15]*** Partial cut [23:00:15]*** CUTSNS_PIN = 1 [23:00:15]*** CUTSNS_PIN = 0 [23:00:15]*** Brake cut motor [23:00:15]Read from MH i2c: 01 [23:00:15]MH_I2C_Read... [23:00:15]*** Stop cut motor [23:00:15]*** Cut end [23:00:15]Read from MH i2c: 01 07 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: 01 07 00 B3 23 00 00 00 00 00 FF 0F EB [23:00:15]process_action close_receipt done [23:00:15]requested_data is exist [23:00:15]produce_requested_data [23:00:15]requested_item fm.sn is exist - process it [23:00:15]wFMCommunicate request_size=4 [23:00:15]MH_SAM_APDU [23:00:15]CAPDU: 80 11 00 00 [23:00:15]Write to MH i2c: E2 08 00 B4 23 80 11 00 00 00 00 00 00 51 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:15]Read from MH i2c: E2 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 17 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 17 00 B4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A9 [23:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:00:15]wFMCommunicate OK [23:00:15]requested_item fd.num is exist - process it [23:00:15]SAM_PROTO_GetFieldsCounters [23:00:15]wFMCommunicate request_size=4 [23:00:15]MH_SAM_APDU [23:00:15]CAPDU: 80 13 00 00 [23:00:15]Write to MH i2c: E2 08 00 B5 23 80 13 00 00 00 00 00 00 54 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:15]Read from MH i2c: E2 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 62 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 62 00 B5 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 87 02 00 0E 04 04 00 16 02 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 36 [23:00:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 87 02 00 0E 04 04 00 16 02 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:00:15]wFMCommunicate OK [23:00:15]SAM_PROTO_GetFieldsCounters done [23:00:15]requested_item shift.num is exist - process it [23:00:15]requested_item shift.opened is exist - process it [23:00:15]req_shift_opened [23:00:15]FM_GetShiftState [23:00:15]SAM_PROTO_GetShiftState [23:00:15]wFMCommunicate request_size=4 [23:00:15]MH_SAM_APDU [23:00:15]CAPDU: 80 13 01 00 [23:00:15]Write to MH i2c: E2 08 00 B6 23 80 13 01 00 00 00 00 00 56 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:15]Read from MH i2c: E2 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 0E 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 0E 00 B6 23 00 09 00 01 71 50 14 67 00 00 00 00 90 00 9E [23:00:15]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:00:15]wFMCommunicate OK [23:00:15]SAM_PROTO_GetShiftState done [23:00:15]FM_GetShiftState done [23:00:15]req_shift_opened done [23:00:15]requested_item shift.open_date is exist - process it [23:00:15]req_shift_open_date [23:00:15]req_shift_open_date done [23:00:15]produce_requested_data done [23:00:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165872,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:00:15]process_action_free close_receipt [23:00:15]json_value_free [23:00:15]json_value_free done [23:00:15]process_json_proto returns [23:00:15]Send response to host [23:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165872,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:00:15]free response buf [23:00:15]execute_script done [23:00:15]execute_script returns [23:00:15]free content buf [23:00:15]Sock 6.Close socket [23:00:15]Sock 6.Thread stoped [23:00:16]accept exits with 5 [23:00:16]New connection [23:00:16]New thread 3066776932 created [23:00:16]Thread 3066920292 joined [23:00:16]Waiting for new connection... [23:00:16] Sock 5.Parse request [23:00:16]Sock 5.Check first char [23:00:16]Sock 5.First char is OK [23:00:16]request: POST /json_proto HTTP/1.0 [23:00:16]Method: POST [23:00:16]URL: /json_proto [23:00:16]Method is POST - this is cgi request [23:00:16]url: /json_proto [23:00:16]query_string will be loaded in cgi processing [23:00:16]execute_cgi json_proto POST (null) [23:00:16]execute_cgi path=json_proto method=POST [23:00:16]POST find Content-Length [23:00:16]Host: 172.17.53.195:8080 [23:00:16]Content-Length: 682 [23:00:16]Content-Type: application/json [23:00:16] [23:00:16]POST finish read [23:00:16]Found Content-Length = 682 [23:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:16]execute_script... [23:00: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)220417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:16]POST & json_proto [23:00:16]process_json_proto [23:00:16]json parsed OK: [23:00:16]protocol is kg_v1.0 [23:00:16]action value=close_receipt [23:00:16]process_action close_receipt [23:00:16]cmd_close_receipt [23:00:16]MH_GetDate [23:00:16]Write to MH i2c: F0 00 00 B7 23 C9 [23:00:16]Write i2c OK [23:00:16]MH_I2C_Read... [23:00:16]Read from MH i2c: F0 [23:00:16]MH_I2C_Read... [23:00:16]Read from MH i2c: F0 09 00 [23:00:16]MH_I2C_Read... [23:00:16]Read from MH i2c: F0 09 00 B7 23 00 8F 8B 15 67 21 48 4A 65 80 [23:00:16]GetLastDocTimeStamp 1729465226 [23:00:16]current date 1729465231 [23:00:16]FM_GetShiftState [23:00:16]SAM_PROTO_GetShiftState [23:00:16]wFMCommunicate request_size=4 [23:00:16]MH_SAM_APDU [23:00:16]CAPDU: 80 13 01 00 [23:00:16]Write to MH i2c: E2 08 00 B8 23 80 13 01 00 00 00 00 00 58 [23:00:16]Write i2c OK [23:00:16]MH_I2C_Read... [23:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:16]Read from MH i2c: E2 [23:00:16]MH_I2C_Read... [23:00:16]Read from MH i2c: E2 0E 00 [23:00:16]MH_I2C_Read... [23:00:16]Read from MH i2c: E2 0E 00 B8 23 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A0 [23:00:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:00:16]wFMCommunicate OK [23:00:16]SAM_PROTO_GetShiftState done [23:00:16]FM_GetShiftState done [23:00:16]opened in 1729384561 [23:00:16]opened+sec_in_day 1729470961 [23:00:16]quantity*price = 199969 [23:00:16]sum+1 = 199970 [23:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.36 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 355 20.10.2024 23:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165873 ФПД: 63901378773878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230031&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165873&fm=63901378773878&tin=02508201610067®Number=0000000000091764&sum=199900 [23:00:17]StoreToDocumentArchive [23:00:17]shift 534 fd 165873 [23:00:17]save to /storage/0534/doc_00165873 [23:00:17]save last doc name /storage/0534/doc_00165873 to /storage/kkm_last_doc_name [23:00:17]save OK [23:00:17]Clear old archive folders... [23:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:17]tlvbuf is 015151C0 [23:00:17]SAM_PROTO_ClearQueue [23:00:17]wFMCommunicate request_size=4 [23:00:17]MH_SAM_APDU [23:00:17]CAPDU: 80 09 00 00 [23:00:17]Write to MH i2c: E2 08 00 C5 23 80 09 00 00 00 00 00 00 5A [23:00:17]Write i2c OK [23:00:17]MH_I2C_Read... [23:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:17]Read from MH i2c: E2 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: E2 03 00 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: E2 03 00 C5 23 00 90 00 5C [23:00:17]RAPDU: 90 00 [23:00:17]wFMCommunicate OK [23:00:17]SAM_PROTO_ClearQueue done [23:00:17]KKMCreateOFDPacket [23:00:17]OFDProtocolAddRootSTLVToBuf [23:00:17]FM_MakeSignedData [23:00:17]FM_MakeSignedData [23:00:17]SAM_PROTO_SignData [23:00:17]wFMCommunicate request_size=4 [23:00:17]MH_SAM_APDU [23:00:17]CAPDU: 80 0D 01 02 [23:00:17]Write to MH i2c: E2 08 00 C6 23 80 0D 01 02 00 00 00 00 62 [23:00:17]Write i2c OK [23:00:17]MH_I2C_Read... [23:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:17]Read from MH i2c: E2 [23:00:17]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 C6 23 00 90 00 5D [23:00:18]RAPDU: 90 00 [23:00:18]wFMCommunicate OK [23:00:18]wFMCommunicate request_size=255 [23:00:18]MH_SAM_APDU [23:00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 8F 8B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 87 02 00 35 04 06 00 3A [23:00:18]Write to MH i2c: E2 02 01 C7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 8F 8B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 87 02 00 35 04 06 00 3A 00 00 41 [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:18]Read from MH i2c: E2 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 C7 23 00 90 00 5E [23:00:18]RAPDU: 90 00 [23:00:18]wFMCommunicate OK [23:00:18]wFMCommunicate request_size=10 [23:00:18]MH_SAM_APDU [23:00:18]CAPDU: 80 0D 02 02 05 1E 32 FB 83 76 [23:00:18]Write to MH i2c: E2 0D 00 C8 23 80 0D 02 02 05 00 1E 32 FB 83 76 00 00 B3 [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:18]Read from MH i2c: E2 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 03 00 C8 23 00 90 00 5F [23:00:18]RAPDU: 90 00 [23:00:18]wFMCommunicate OK [23:00:18]wFMCommunicate request_size=4 [23:00:18]MH_SAM_APDU [23:00:18]CAPDU: 80 0D 03 02 [23:00:18]Write to MH i2c: E2 08 00 C9 23 80 0D 03 02 00 00 00 00 67 [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:18]Read from MH i2c: E2 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 0B 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 0B 00 C9 23 00 12 55 CA AA 8E B4 44 85 90 00 4E [23:00:18]RAPDU: 12 55 CA AA 8E B4 44 85 90 00 [23:00:18]wFMCommunicate OK [23:00:18]SAM_PROTO_SignData done [23:00:18]FM_MakeSignedData done [23:00:18]CreateOFDProtocolMessage [23:00:18]wFMCommunicate request_size=4 [23:00:18]MH_SAM_APDU [23:00:18]CAPDU: 80 11 00 00 [23:00:18]Write to MH i2c: E2 08 00 CA 23 80 11 00 00 00 00 00 00 67 [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:18]Read from MH i2c: E2 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 17 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: E2 17 00 CA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BF [23:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:00:18]wFMCommunicate OK [23:00:18]CreateOFDProtocolMessage done [23:00:18]OFDSenderStorePacket 165873 [23:00:18]StoreOFDPacket docnum=165873 [23:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA BD 07 01 BB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 8F 8B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 87 02 00 35 04 06 00 3A 1E 32 FB 83 76 12 55 CA AA 8E B4 44 85 [23:00:18]CheckFolder [23:00:18]dirname=/storage/ofd_packets [23:00:18]CheckFolder done [23:00:18]ProducePacketName [23:00:18]name=ofd_packets/00165873 [23:00:18]NVStorageSaveData ofd_packets/00165873 [23:00:18]File name is /storage/ofd_packets/00165873 [23:00:18]Write 301 bytes [23:00:18]NVStorageSaveData done [23:00:18]OFDSenderStorePacket done [23:00:18]KKMCreateOFDPacket done [23:00:18]NVStorageSaveData kkm_last_timestamp [23:00:18]File name is /storage/kkm_last_timestamp [23:00:18]Write 4 bytes [23:00:18]NVStorageSaveData done [23:00:18]OFD Sender: Processing packet 165873 [packets to send 48, broken 47] [23:00:18]ProducePacketName [23:00:18]name=ofd_packets/00165873 [23:00:18]OFD Sender: To server: pG, [23:00:18]CommunicateWithHost lk.salyk.kg:30040 [23:00:18]ConnectInit lk.salyk.kg [23:00:18]ExternCall_PrintAddStr [23:00:18]wPrintStart [23:00:18]Write to MH i2c: 01 00 00 CB 23 EE [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: 01 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: 01 07 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: 01 07 00 CB 23 00 00 00 00 00 FF 0F 03 [23:00:18]RasterBufferAndPrint [23:00:18]line Счет N : (1)220417 [23:00:18]line ИНН: 02508201610067 [23:00:18]line Контрольно-Кассовый Чек [23:00:18]line ПРОДАЖА [23:00:18]line ТРК (МРК, ГНК) : 14 [23:00:18]line Товар: 2710124500 [23:00:18]line Аи-95-К-5 [23:00:18]line 26.950 * 74.20 [23:00:18]line = 1999.69 [23:00:18]line НДС 12% НСП 1% [23:00:18]line > о реализуемом товаре [23:00:18]line ОКРУГЛЕНИЕ: -0.69 [23:00:18]line ИТОГО: 1999.00 [23:00:18]line Внесено: 2000.00 [23:00:18]line СДАЧА: 1.00 [23:00:18]line НСП 1% : 17.70 [23:00:18]line НДС 12% : 212.36 [23:00:18]line Наличными: 1999.00 [23:00:18]line Безнал.: 0.00 [23:00:18]line Место: АЗС № 161 "Партнер Нефть" [23:00:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:00:18]line СНО: Общий режим [23:00:18]line Чек 355 20.10.2024 23:00 [23:00:18]line Смена: 534 ФФД: 1.0 [23:00:18]line ЗНМ: 0300000104 [23:00:18]line РНМ: 0000000000091764 [23:00:18]line Версия ККМ: 001 [23:00:18]line ФМ: 0000000000871759 [23:00:18]line ФД: 165873 [23:00:18]line ФПД: 63901378773878 [23:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230031&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165873&fm=63901378773878&tin=02508201610067®Number=0000000000091764&sum=199900 [23:00:18]written 0, free lines is 4095 [23:00:18]Connected sock=9 [23:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA BD 07 01 BB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 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 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 8F 8B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 87 02 00 35 04 06 00 3A 1E 32 FB 83 76 12 55 CA AA 8E B4 44 85 [23:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FE FD 47 00 93 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 31 37 35 39 10 04 04 00 F1 87 02 00 F4 03 04 00 FF 31 15 67 B6 04 01 00 00 1A DB 6A C7 86 78 75 F5 [23:00:18]CommunicateWithHost err = 0 [23:00:18]CheckOFDResponse [23:00:18]1017 (14) - 77093643461234 [23:00:18]1041 (16) - 0000000000871759 [23:00:18]1040 (4) - 165873 [23:00:18]1012 (4) - 20.10.2024 16:38 [23:00:18]1206 (1) - 0 [23:00:18]OFD Sender: Remove packet 165873 [23:00:18]ProducePacketName [23:00:18]name=ofd_packets/00165873 [23:00:18]NVStorageDeleteData [23:00:18]Write to MH i2c: 01 00 00 F6 23 19 [23:00:18]Write i2c OK [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: 01 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: 01 07 00 [23:00:18]MH_I2C_Read... [23:00:18]Read from MH i2c: 01 07 00 F6 23 00 00 00 00 00 C1 0C ED [23:00:18]RasterBufferAndPrint [23:00:18]line [23:00:18]line [23:00:18]line [23:00:18]line [23:00:18]line [23:00:18]written 0, free lines is 3280 [23:00:19]MH_Cut [23:00:19]Write to MH i2c: D1 01 00 FD 23 01 F2 [23:00:19]Write i2c OK [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: D1 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: D1 01 00 [23:00:19]MH_I2C_Read... [23:00:19]Read from MH i2c: D1 01 00 FD 23 00 F1 [23:00:19]Write to MH i2c: 01 00 00 FE 23 21 [23:00:19]Write i2c OK [23:00:19]MH_I2C_Read... [23:00:19]OFD Sender: No OFD packet to send [23:00:19]*** Cut start [23:00:19]*** Partial cut [23:00:19]*** CUTSNS_PIN = 1 [23:00:19]*** CUTSNS_PIN = 0 [23:00:20]*** Brake cut motor [23:00:20]Read from MH i2c: 01 [23:00:20]MH_I2C_Read... [23:00:20]*** Stop cut motor [23:00:20]*** Cut end [23:00:20]Read from MH i2c: 01 07 00 [23:00:20]MH_I2C_Read... [23:00:20]Read from MH i2c: 01 07 00 FE 23 00 00 00 00 00 FF 0F 36 [23:00:20]process_action close_receipt done [23:00:20]requested_data is exist [23:00:20]produce_requested_data [23:00:20]requested_item fm.sn is exist - process it [23:00:20]wFMCommunicate request_size=4 [23:00:20]MH_SAM_APDU [23:00:20]CAPDU: 80 11 00 00 [23:00:20]Write to MH i2c: E2 08 00 FF 23 80 11 00 00 00 00 00 00 9C [23:00:20]Write i2c OK [23:00:20]MH_I2C_Read... [23:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:20]Read from MH i2c: E2 [23:00:20]MH_I2C_Read... [23:00:20]Read from MH i2c: E2 17 00 [23:00:20]MH_I2C_Read... [23:00:20]Read from MH i2c: E2 17 00 FF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [23:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:00:20]wFMCommunicate OK [23:00:20]requested_item fd.num is exist - process it [23:00:20]SAM_PROTO_GetFieldsCounters [23:00:20]wFMCommunicate request_size=4 [23:00:20]MH_SAM_APDU [23:00:20]CAPDU: 80 13 00 00 [23:00:20]Write to MH i2c: E2 08 00 00 24 80 13 00 00 00 00 00 00 A0 [23:00:20]Write i2c OK [23:00:20]MH_I2C_Read... [23:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:20]Read from MH i2c: E2 [23:00:20]MH_I2C_Read... [23:00:20]Read from MH i2c: E2 62 00 [23:00:20]MH_I2C_Read... [23:00:20]Read from MH i2c: E2 62 00 00 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 87 02 00 0E 04 04 00 16 02 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 86 [23:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 87 02 00 0E 04 04 00 16 02 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:00:20]wFMCommunicate OK [23:00:20]SAM_PROTO_GetFieldsCounters done [23:00:20]requested_item shift.num is exist - process it [23:00:20]requested_item shift.opened is exist - process it [23:00:20]req_shift_opened [23:00:20]FM_GetShiftState [23:00:20]SAM_PROTO_GetShiftState [23:00:20]wFMCommunicate request_size=4 [23:00:20]MH_SAM_APDU [23:00:20]CAPDU: 80 13 01 00 [23:00:20]Write to MH i2c: E2 08 00 01 24 80 13 01 00 00 00 00 00 A2 [23:00:20]Write i2c OK [23:00:20]MH_I2C_Read... [23:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:20]Read from MH i2c: E2 [23:00:20]MH_I2C_Read... [23:00:20]Read from MH i2c: E2 0E 00 [23:00:20]MH_I2C_Read... [23:00:20]Read from MH i2c: E2 0E 00 01 24 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EA [23:00:20]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:00:20]wFMCommunicate OK [23:00:20]SAM_PROTO_GetShiftState done [23:00:20]FM_GetShiftState done [23:00:20]req_shift_opened done [23:00:20]requested_item shift.open_date is exist - process it [23:00:20]req_shift_open_date [23:00:20]req_shift_open_date done [23:00:20]produce_requested_data done [23:00:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165873,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:00:20]process_action_free close_receipt [23:00:20]json_value_free [23:00:20]json_value_free done [23:00:20]process_json_proto returns [23:00:20]Send response to host [23:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165873,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:00:20]free response buf [23:00:20]execute_script done [23:00:20]execute_script returns [23:00:20]free content buf [23:00:20]Sock 5.Close socket [23:00:20]Sock 5.Thread stoped [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:37]accept exits with 6 [23:04:37]New connection [23:04:37]New thread 3066920292 created [23:04:37]Thread 3066776932 joined [23:04:37]Waiting for new connection... [23:04:37] Sock 6.Parse request [23:04:37]Sock 6.Check first char [23:04:37]Sock 6.First char is OK [23:04:37]request: POST /json_proto HTTP/1.0 [23:04:37]Method: POST [23:04:37]URL: /json_proto [23:04:37]Method is POST - this is cgi request [23:04:37]url: /json_proto [23:04:37]query_string will be loaded in cgi processing [23:04:37]execute_cgi json_proto POST (null) [23:04:37]execute_cgi path=json_proto method=POST [23:04:37]POST find Content-Length [23:04:37]Host: 172.17.53.195:8080 [23:04:37]Content-Length: 677 [23:04:37]Content-Type: application/json [23:04:37] [23:04:37]POST finish read [23:04:37]Found Content-Length = 677 [23:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:37]execute_script... [23:04: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)220442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:37]POST & json_proto [23:04:37]process_json_proto [23:04:37]json parsed OK: [23:04:37]protocol is kg_v1.0 [23:04:37]action value=close_receipt [23:04:37]process_action close_receipt [23:04:37]cmd_close_receipt [23:04:37]MH_GetDate [23:04:37]Write to MH i2c: F0 00 00 02 24 15 [23:04:37]Write i2c OK [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: F0 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: F0 09 00 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: F0 09 00 02 24 00 94 8C 15 67 21 48 4A 65 D2 [23:04:37]GetLastDocTimeStamp 1729465231 [23:04:37]current date 1729465492 [23:04:37]FM_GetShiftState [23:04:37]SAM_PROTO_GetShiftState [23:04:37]wFMCommunicate request_size=4 [23:04:37]MH_SAM_APDU [23:04:37]CAPDU: 80 13 01 00 [23:04:37]Write to MH i2c: E2 08 00 03 24 80 13 01 00 00 00 00 00 A4 [23:04:37]Write i2c OK [23:04:37]MH_I2C_Read... [23:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:37]Read from MH i2c: E2 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: E2 0E 00 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: E2 0E 00 03 24 00 09 00 01 71 50 14 67 00 00 00 00 90 00 EC [23:04:37]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:04:37]wFMCommunicate OK [23:04:37]SAM_PROTO_GetShiftState done [23:04:37]FM_GetShiftState done [23:04:37]opened in 1729384561 [23:04:37]opened+sec_in_day 1729470961 [23:04:37]quantity*price = 40006 [23:04:37]sum+1 = 40007 [23:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 356 20.10.2024 23:04 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165874 ФПД: 4069205801481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165874&fm=4069205801481&tin=02508201610067®Number=0000000000091764&sum=40000 [23:04:38]StoreToDocumentArchive [23:04:38]shift 534 fd 165874 [23:04:38]save to /storage/0534/doc_00165874 [23:04:38]save last doc name /storage/0534/doc_00165874 to /storage/kkm_last_doc_name [23:04:38]save OK [23:04:38]Clear old archive folders... [23:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:38]tlvbuf is 01530910 [23:04:38]SAM_PROTO_ClearQueue [23:04:38]wFMCommunicate request_size=4 [23:04:38]MH_SAM_APDU [23:04:38]CAPDU: 80 09 00 00 [23:04:38]Write to MH i2c: E2 08 00 10 24 80 09 00 00 00 00 00 00 A6 [23:04:38]Write i2c OK [23:04:38]MH_I2C_Read... [23:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:38]Read from MH i2c: E2 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 03 00 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 03 00 10 24 00 90 00 A8 [23:04:38]RAPDU: 90 00 [23:04:38]wFMCommunicate OK [23:04:38]SAM_PROTO_ClearQueue done [23:04:38]KKMCreateOFDPacket [23:04:38]OFDProtocolAddRootSTLVToBuf [23:04:38]FM_MakeSignedData [23:04:38]FM_MakeSignedData [23:04:38]SAM_PROTO_SignData [23:04:38]wFMCommunicate request_size=4 [23:04:38]MH_SAM_APDU [23:04:38]CAPDU: 80 0D 01 02 [23:04:38]Write to MH i2c: E2 08 00 11 24 80 0D 01 02 00 00 00 00 AE [23:04:38]Write i2c OK [23:04:38]MH_I2C_Read... [23:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:38]Read from MH i2c: E2 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 03 00 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 03 00 11 24 00 90 00 A9 [23:04:38]RAPDU: 90 00 [23:04:38]wFMCommunicate OK [23:04:38]wFMCommunicate request_size=255 [23:04:38]MH_SAM_APDU [23:04: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 94 8C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 87 02 00 35 04 06 00 03 [23:04:38]Write to MH i2c: E2 02 01 12 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 94 8C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 87 02 00 35 04 06 00 03 00 00 AA [23:04:38]Write i2c OK [23:04:38]MH_I2C_Read... [23:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:38]Read from MH i2c: E2 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 03 00 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 03 00 12 24 00 90 00 AA [23:04:38]RAPDU: 90 00 [23:04:38]wFMCommunicate OK [23:04:38]wFMCommunicate request_size=10 [23:04:38]MH_SAM_APDU [23:04:38]CAPDU: 80 0D 02 02 05 B3 6F 90 FA 09 [23:04:38]Write to MH i2c: E2 0D 00 13 24 80 0D 02 02 05 00 B3 6F 90 FA 09 00 00 70 [23:04:38]Write i2c OK [23:04:38]MH_I2C_Read... [23:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:38]Read from MH i2c: E2 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 03 00 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 03 00 13 24 00 90 00 AB [23:04:38]RAPDU: 90 00 [23:04:38]wFMCommunicate OK [23:04:38]wFMCommunicate request_size=4 [23:04:38]MH_SAM_APDU [23:04:38]CAPDU: 80 0D 03 02 [23:04:38]Write to MH i2c: E2 08 00 14 24 80 0D 03 02 00 00 00 00 B3 [23:04:39]Write i2c OK [23:04:39]MH_I2C_Read... [23:04:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:39]Read from MH i2c: E2 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: E2 0B 00 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: E2 0B 00 14 24 00 EA 29 F1 03 9E 9D BF 7E 90 00 33 [23:04:39]RAPDU: EA 29 F1 03 9E 9D BF 7E 90 00 [23:04:39]wFMCommunicate OK [23:04:39]SAM_PROTO_SignData done [23:04:39]FM_MakeSignedData done [23:04:39]CreateOFDProtocolMessage [23:04:39]wFMCommunicate request_size=4 [23:04:39]MH_SAM_APDU [23:04:39]CAPDU: 80 11 00 00 [23:04:39]Write to MH i2c: E2 08 00 15 24 80 11 00 00 00 00 00 00 B3 [23:04:39]Write i2c OK [23:04:39]MH_I2C_Read... [23:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:39]Read from MH i2c: E2 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: E2 17 00 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: E2 17 00 15 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [23:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:04:39]wFMCommunicate OK [23:04:39]CreateOFDProtocolMessage done [23:04:39]OFDSenderStorePacket 165874 [23:04:39]StoreOFDPacket docnum=165874 [23:04:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E 42 07 01 80 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 94 8C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 87 02 00 35 04 06 00 03 B3 6F 90 FA 09 EA 29 F1 03 9E 9D BF 7E [23:04:39]CheckFolder [23:04:39]dirname=/storage/ofd_packets [23:04:39]CheckFolder done [23:04:39]ProducePacketName [23:04:39]name=ofd_packets/00165874 [23:04:39]NVStorageSaveData ofd_packets/00165874 [23:04:39]File name is /storage/ofd_packets/00165874 [23:04:39]Write 301 bytes [23:04:39]NVStorageSaveData done [23:04:39]OFDSenderStorePacket done [23:04:39]KKMCreateOFDPacket done [23:04:39]NVStorageSaveData kkm_last_timestamp [23:04:39]File name is /storage/kkm_last_timestamp [23:04:39]Write 4 bytes [23:04:39]NVStorageSaveData done [23:04:39]ExternCall_PrintAddStr [23:04:39]wPrintStart [23:04:39]Write to MH i2c: 01 00 00 16 24 3A [23:04:39]Write i2c OK [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: 01 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: 01 07 00 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: 01 07 00 16 24 00 00 00 00 00 FF 0F 4F [23:04:39]RasterBufferAndPrint [23:04:39]line Счет N : (1)220442 [23:04:39]line ИНН: 02508201610067 [23:04:39]line Контрольно-Кассовый Чек [23:04:39]line ПРОДАЖА [23:04:39]line ТРК (МРК, ГНК) : 23 [23:04:39]line Товар: 2710124130 [23:04:39]line Аи-92-К-5 [23:04:39]line 5.980 * 66.90 [23:04:39]line = 400.06 [23:04:39]line НДС 12% НСП 1% [23:04:39]line > о реализуемом товаре [23:04:39]line ОКРУГЛЕНИЕ: -0.06 [23:04:39]line ИТОГО: 400.00 [23:04:39]line Внесено: 400.00 [23:04:39]line СДАЧА: 0.00 [23:04:39]line НСП 1% : 3.54 [23:04:39]line НДС 12% : 42.48 [23:04:39]line Наличными: 400.00 [23:04:39]line Безнал.: 0.00 [23:04:39]line Место: АЗС № 161 "Партнер Нефть" [23:04:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:04:39]line СНО: Общий режим [23:04:39]line Чек 356 20.10.2024 23:04 [23:04:39]line Смена: 534 ФФД: 1.0 [23:04:39]line ЗНМ: 0300000104 [23:04:39]line РНМ: 0000000000091764 [23:04:39]line Версия ККМ: 001 [23:04:39]line ФМ: 0000000000871759 [23:04:39]line ФД: 165874 [23:04:39]line ФПД: 4069205801481 [23:04:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165874&fm=4069205801481&tin=02508201610067®Number=0000000000091764&sum=40000 [23:04:39]OFD Sender: Processing packet 165874 [packets to send 48, broken 47] [23:04:39]ProducePacketName [23:04:39]name=ofd_packets/00165874 [23:04:39]OFD Sender: To server: pG, [23:04:39]CommunicateWithHost lk.salyk.kg:30040 [23:04:39]ConnectInit lk.salyk.kg [23:04:39]written 0, free lines is 4095 [23:04:39]Connected sock=7 [23:04:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E 42 07 01 80 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 94 8C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 87 02 00 35 04 06 00 03 B3 6F 90 FA 09 EA 29 F1 03 9E 9D BF 7E [23:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF 5B 47 00 A4 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 31 37 35 39 10 04 04 00 F2 87 02 00 F4 03 04 00 04 33 15 67 B6 04 01 00 00 76 9B 90 72 00 5F 92 07 [23:04:39]CommunicateWithHost err = 0 [23:04:39]CheckOFDResponse [23:04:39]1017 (14) - 77093643461234 [23:04:39]1041 (16) - 0000000000871759 [23:04:39]1040 (4) - 165874 [23:04:39]1012 (4) - 20.10.2024 16:42 [23:04:39]1206 (1) - 0 [23:04:39]OFD Sender: Remove packet 165874 [23:04:39]ProducePacketName [23:04:39]name=ofd_packets/00165874 [23:04:39]NVStorageDeleteData [23:04:39]Write to MH i2c: 01 00 00 41 24 65 [23:04:39]Write i2c OK [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: 01 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: 01 07 00 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: 01 07 00 41 24 00 00 00 00 00 AE 0C 26 [23:04:39]RasterBufferAndPrint [23:04:39]line [23:04:39]line [23:04:39]line [23:04:39]line [23:04:39]line [23:04:39]written 0, free lines is 3253 [23:04:39]MH_Cut [23:04:39]Write to MH i2c: D1 01 00 48 24 01 3E [23:04:39]Write i2c OK [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: D1 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: D1 01 00 [23:04:39]MH_I2C_Read... [23:04:39]Read from MH i2c: D1 01 00 48 24 00 3D [23:04:39]Write to MH i2c: 01 00 00 49 24 6D [23:04:39]Write i2c OK [23:04:39]MH_I2C_Read... [23:04:40]OFD Sender: No OFD packet to send [23:04:40]*** Cut start [23:04:40]*** Partial cut [23:04:40]*** CUTSNS_PIN = 1 [23:04:40]*** CUTSNS_PIN = 0 [23:04:41]*** Brake cut motor [23:04:41]Read from MH i2c: 01 [23:04:41]MH_I2C_Read... [23:04:41]*** Stop cut motor [23:04:41]*** Cut end [23:04:41]Read from MH i2c: 01 07 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: 01 07 00 49 24 00 00 00 00 00 FF 0F 82 [23:04:41]process_action close_receipt done [23:04:41]requested_data is exist [23:04:41]produce_requested_data [23:04:41]requested_item fm.sn is exist - process it [23:04:41]wFMCommunicate request_size=4 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 11 00 00 [23:04:41]Write to MH i2c: E2 08 00 4A 24 80 11 00 00 00 00 00 00 E8 [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 17 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 17 00 4A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [23:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:04:41]wFMCommunicate OK [23:04:41]requested_item fd.num is exist - process it [23:04:41]SAM_PROTO_GetFieldsCounters [23:04:41]wFMCommunicate request_size=4 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 13 00 00 [23:04:41]Write to MH i2c: E2 08 00 4B 24 80 13 00 00 00 00 00 00 EB [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 62 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 62 00 4B 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 87 02 00 0E 04 04 00 16 02 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 D5 [23:04: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 87 02 00 0E 04 04 00 16 02 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:04:41]wFMCommunicate OK [23:04:41]SAM_PROTO_GetFieldsCounters done [23:04:41]requested_item shift.num is exist - process it [23:04:41]requested_item shift.opened is exist - process it [23:04:41]req_shift_opened [23:04:41]FM_GetShiftState [23:04:41]SAM_PROTO_GetShiftState [23:04:41]wFMCommunicate request_size=4 [23:04:41]MH_SAM_APDU [23:04:41]CAPDU: 80 13 01 00 [23:04:41]Write to MH i2c: E2 08 00 4C 24 80 13 01 00 00 00 00 00 ED [23:04:41]Write i2c OK [23:04:41]MH_I2C_Read... [23:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:41]Read from MH i2c: E2 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 0E 00 [23:04:41]MH_I2C_Read... [23:04:41]Read from MH i2c: E2 0E 00 4C 24 00 09 00 01 71 50 14 67 00 00 00 00 90 00 35 [23:04:41]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:04:41]wFMCommunicate OK [23:04:41]SAM_PROTO_GetShiftState done [23:04:41]FM_GetShiftState done [23:04:41]req_shift_opened done [23:04:41]requested_item shift.open_date is exist - process it [23:04:41]req_shift_open_date [23:04:41]req_shift_open_date done [23:04:41]produce_requested_data done [23:04:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165874,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:04:41]process_action_free close_receipt [23:04:41]json_value_free [23:04:41]json_value_free done [23:04:41]process_json_proto returns [23:04:41]Send response to host [23:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165874,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:04:41]free response buf [23:04:41]execute_script done [23:04:41]execute_script returns [23:04:41]free content buf [23:04:41]Sock 6.Close socket [23:04:41]Sock 6.Thread stoped [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:35]accept exits with 5 [23:09:35]New connection [23:09:35]New thread 3066776932 created [23:09:35]Thread 3066920292 joined [23:09:35]Waiting for new connection... [23:09:35] Sock 5.Parse request [23:09:35]Sock 5.Check first char [23:09:35]Sock 5.First char is OK [23:09:35]request: POST /json_proto HTTP/1.0 [23:09:35]Method: POST [23:09:35]URL: /json_proto [23:09:35]Method is POST - this is cgi request [23:09:35]url: /json_proto [23:09:35]query_string will be loaded in cgi processing [23:09:35]execute_cgi json_proto POST (null) [23:09:35]execute_cgi path=json_proto method=POST [23:09:35]POST find Content-Length [23:09:35]Host: 172.17.53.195:8080 [23:09:35]Content-Length: 769 [23:09:35]Content-Type: application/json [23:09:35] [23:09:35]POST finish read [23:09:35]Found Content-Length = 769 [23:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:35]execute_script... [23:09: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)220443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:35]POST & json_proto [23:09:35]process_json_proto [23:09:35]json parsed OK: [23:09:35]protocol is kg_v1.0 [23:09:35]action value=close_receipt [23:09:35]process_action close_receipt [23:09:35]cmd_close_receipt [23:09:35]MH_GetDate [23:09:35]Write to MH i2c: F0 00 00 4D 24 60 [23:09:35]Write i2c OK [23:09:35]MH_I2C_Read... [23:09:35]Read from MH i2c: F0 [23:09:35]MH_I2C_Read... [23:09:35]Read from MH i2c: F0 09 00 [23:09:35]MH_I2C_Read... [23:09:35]Read from MH i2c: F0 09 00 4D 24 00 BE 8D 15 67 21 48 4A 65 48 [23:09:35]GetLastDocTimeStamp 1729465492 [23:09:35]current date 1729465790 [23:09:35]FM_GetShiftState [23:09:35]SAM_PROTO_GetShiftState [23:09:35]wFMCommunicate request_size=4 [23:09:35]MH_SAM_APDU [23:09:35]CAPDU: 80 13 01 00 [23:09:35]Write to MH i2c: E2 08 00 4E 24 80 13 01 00 00 00 00 00 EF [23:09:35]Write i2c OK [23:09:35]MH_I2C_Read... [23:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:35]Read from MH i2c: E2 [23:09:35]MH_I2C_Read... [23:09:35]Read from MH i2c: E2 0E 00 [23:09:35]MH_I2C_Read... [23:09:35]Read from MH i2c: E2 0E 00 4E 24 00 09 00 01 71 50 14 67 00 00 00 00 90 00 37 [23:09:35]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:09:35]wFMCommunicate OK [23:09:35]SAM_PROTO_GetShiftState done [23:09:35]FM_GetShiftState done [23:09:35]opened in 1729384561 [23:09:35]opened+sec_in_day 1729470961 [23:09:35]quantity*price = 150032 [23:09:35]sum+1 = 150033 [23:09:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 357 20.10.2024 23:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165875 ФПД: 257978117566808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230950&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165875&fm=257978117566808&tin=02508201610067®Number=0000000000091764&sum=150032 [23:09:36]StoreToDocumentArchive [23:09:36]shift 534 fd 165875 [23:09:36]save to /storage/0534/doc_00165875 [23:09:36]save last doc name /storage/0534/doc_00165875 to /storage/kkm_last_doc_name [23:09:36]save OK [23:09:36]Clear old archive folders... [23:09:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:09:36]tlvbuf is 01456520 [23:09:36]SAM_PROTO_ClearQueue [23:09:36]wFMCommunicate request_size=4 [23:09:36]MH_SAM_APDU [23:09:36]CAPDU: 80 09 00 00 [23:09:36]Write to MH i2c: E2 08 00 5B 24 80 09 00 00 00 00 00 00 F1 [23:09:36]Write i2c OK [23:09:36]MH_I2C_Read... [23:09:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:36]Read from MH i2c: E2 [23:09:36]MH_I2C_Read... [23:09:36]Read from MH i2c: E2 03 00 [23:09:36]MH_I2C_Read... [23:09:36]Read from MH i2c: E2 03 00 5B 24 00 90 00 F3 [23:09:36]RAPDU: 90 00 [23:09:36]wFMCommunicate OK [23:09:36]SAM_PROTO_ClearQueue done [23:09:36]KKMCreateOFDPacket [23:09:36]OFDProtocolAddRootSTLVToBuf [23:09:36]FM_MakeSignedData [23:09:36]FM_MakeSignedData [23:09:36]SAM_PROTO_SignData [23:09:36]wFMCommunicate request_size=4 [23:09:36]MH_SAM_APDU [23:09:36]CAPDU: 80 0D 01 02 [23:09:36]Write to MH i2c: E2 08 00 5C 24 80 0D 01 02 00 00 00 00 F9 [23:09:36]Write i2c OK [23:09:36]MH_I2C_Read... [23:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:36]Read from MH i2c: E2 [23:09:36]MH_I2C_Read... [23:09:36]Read from MH i2c: E2 03 00 [23:09:36]MH_I2C_Read... [23:09:36]Read from MH i2c: E2 03 00 5C 24 00 90 00 F4 [23:09:36]RAPDU: 90 00 [23:09:36]wFMCommunicate OK [23:09:36]wFMCommunicate request_size=255 [23:09:36]MH_SAM_APDU [23:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 BE 8D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 87 02 00 35 04 06 00 EA [23:09:36]Write to MH i2c: E2 02 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 BE 8D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 87 02 00 35 04 06 00 EA 00 00 DF [23:09:36]Write i2c OK [23:09:36]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 5D 24 00 90 00 F5 [23:09:37]RAPDU: 90 00 [23:09:37]wFMCommunicate OK [23:09:37]wFMCommunicate request_size=10 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 0D 02 02 05 A1 36 0E B1 58 [23:09:37]Write to MH i2c: E2 0D 00 5E 24 80 0D 02 02 05 00 A1 36 0E B1 58 00 00 F4 [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 5E 24 00 90 00 F6 [23:09:37]RAPDU: 90 00 [23:09:37]wFMCommunicate OK [23:09:37]wFMCommunicate request_size=4 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 0D 03 02 [23:09:37]Write to MH i2c: E2 08 00 5F 24 80 0D 03 02 00 00 00 00 FE [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 0B 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 0B 00 5F 24 00 06 81 22 CD 4A 9B 60 ED 90 00 A7 [23:09:37]RAPDU: 06 81 22 CD 4A 9B 60 ED 90 00 [23:09:37]wFMCommunicate OK [23:09:37]SAM_PROTO_SignData done [23:09:37]FM_MakeSignedData done [23:09:37]CreateOFDProtocolMessage [23:09:37]wFMCommunicate request_size=4 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 11 00 00 [23:09:37]Write to MH i2c: E2 08 00 60 24 80 11 00 00 00 00 00 00 FE [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 17 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 17 00 60 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 56 [23:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:09:37]wFMCommunicate OK [23:09:37]CreateOFDProtocolMessage done [23:09:37]OFDSenderStorePacket 165875 [23:09:37]StoreOFDPacket docnum=165875 [23:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 7B 07 01 EC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 BE 8D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 87 02 00 35 04 06 00 EA A1 36 0E B1 58 06 81 22 CD 4A 9B 60 ED [23:09:37]CheckFolder [23:09:37]dirname=/storage/ofd_packets [23:09:37]CheckFolder done [23:09:37]ProducePacketName [23:09:37]name=ofd_packets/00165875 [23:09:37]NVStorageSaveData ofd_packets/00165875 [23:09:37]File name is /storage/ofd_packets/00165875 [23:09:37]Write 301 bytes [23:09:37]NVStorageSaveData done [23:09:37]OFDSenderStorePacket done [23:09:37]KKMCreateOFDPacket done [23:09:37]NVStorageSaveData kkm_last_timestamp [23:09:37]File name is /storage/kkm_last_timestamp [23:09:37]Write 4 bytes [23:09:37]NVStorageSaveData done [23:09:37]ExternCall_PrintAddStr [23:09:37]wPrintStart [23:09:37]Write to MH i2c: 01 00 00 61 24 85 [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: 01 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: 01 07 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: 01 07 00 61 24 00 00 00 00 00 FF 0F 9A [23:09:37]RasterBufferAndPrint [23:09:37]line Счет N : (1)220443 [23:09:37]line ИНН: 02508201610067 [23:09:37]line Контрольно-Кассовый Чек [23:09:37]line ПРОДАЖА [23:09:37]line ТРК (МРК, ГНК) : 24 [23:09:37]line Товар: 2710124500 [23:09:37]line Аи-95-К-5 [23:09:37]line 20.220 * 74.20 [23:09:37]line = 1500.32 [23:09:37]line НДС 12% НСП 1% [23:09:37]line > о реализуемом товаре [23:09:37]line ИТОГО: 1500.32 [23:09:37]line НСП 1% : 13.28 [23:09:37]line НДС 12% : 159.33 [23:09:37]line Наличными: 0.00 [23:09:37]line Безнал.: 1500.32 [23:09:37]line Место: АЗС № 161 "Партнер Нефть" [23:09:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:09:37]line СНО: Общий режим [23:09:37]line Чек 357 20.10.2024 23:09 [23:09:37]line Смена: 534 ФФД: 1.0 [23:09:37]line ЗНМ: 0300000104 [23:09:37]line РНМ: 0000000000091764 [23:09:37]line Версия ККМ: 001 [23:09:37]line Платежная система: Mbank [23:09:37]line ФМ: 0000000000871759 [23:09:37]line ФД: 165875 [23:09:37]line ФПД: 257978117566808 [23:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230950&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165875&fm=257978117566808&tin=02508201610067®Number=0000000000091764&sum=150032 [23:09:37]OFD Sender: Processing packet 165875 [packets to send 48, broken 47] [23:09:37]ProducePacketName [23:09:37]name=ofd_packets/00165875 [23:09:37]OFD Sender: To server: pG, [23:09:37]CommunicateWithHost lk.salyk.kg:30040 [23:09:37]ConnectInit lk.salyk.kg [23:09:37]written 0, free lines is 4095 [23:09:37]Connected sock=7 [23:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 7B 07 01 EC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 BE 8D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 87 02 00 35 04 06 00 EA A1 36 0E B1 58 06 81 22 CD 4A 9B 60 ED [23:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3A 17 47 00 09 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 87 02 00 F4 03 04 00 2E 34 15 67 B6 04 01 00 00 57 0D 9C B8 EE 54 43 2B [23:09:37]CommunicateWithHost err = 0 [23:09:37]CheckOFDResponse [23:09:37]1017 (14) - 77093643461234 [23:09:37]1041 (16) - 0000000000871759 [23:09:37]1040 (4) - 165875 [23:09:37]1012 (4) - 20.10.2024 16:47 [23:09:37]1206 (1) - 0 [23:09:37]OFD Sender: Remove packet 165875 [23:09:37]ProducePacketName [23:09:37]name=ofd_packets/00165875 [23:09:37]NVStorageDeleteData [23:09:38]Write to MH i2c: 01 00 00 8A 24 AE [23:09:38]Write i2c OK [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: 01 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: 01 07 00 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: 01 07 00 8A 24 00 00 00 00 00 E1 0C A2 [23:09:38]RasterBufferAndPrint [23:09:38]line [23:09:38]line [23:09:38]line [23:09:38]line [23:09:38]line [23:09:38]written 0, free lines is 3305 [23:09:38]MH_Cut [23:09:38]Write to MH i2c: D1 01 00 91 24 01 87 [23:09:38]Write i2c OK [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: D1 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: D1 01 00 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: D1 01 00 91 24 00 86 [23:09:38]Write to MH i2c: 01 00 00 92 24 B6 [23:09:38]Write i2c OK [23:09:38]MH_I2C_Read... [23:09:38]OFD Sender: No OFD packet to send [23:09:38]*** Cut start [23:09:38]*** Partial cut [23:09:38]*** CUTSNS_PIN = 1 [23:09:38]*** CUTSNS_PIN = 0 [23:09:39]*** Brake cut motor [23:09:39]Read from MH i2c: 01 [23:09:39]MH_I2C_Read... [23:09:39]*** Stop cut motor [23:09:39]*** Cut end [23:09:39]Read from MH i2c: 01 07 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: 01 07 00 92 24 00 00 00 00 00 FF 0F CB [23:09:39]process_action close_receipt done [23:09:39]requested_data is exist [23:09:39]produce_requested_data [23:09:39]requested_item fm.sn is exist - process it [23:09:39]wFMCommunicate request_size=4 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 11 00 00 [23:09:39]Write to MH i2c: E2 08 00 93 24 80 11 00 00 00 00 00 00 31 [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 17 00 [23:09:39]MH_I2C_Read... [23:09:39]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 31 37 35 39 90 00 89 [23:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:09:39]wFMCommunicate OK [23:09:39]requested_item fd.num is exist - process it [23:09:39]SAM_PROTO_GetFieldsCounters [23:09:39]wFMCommunicate request_size=4 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 13 00 00 [23:09:39]Write to MH i2c: E2 08 00 94 24 80 13 00 00 00 00 00 00 34 [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 62 00 [23:09:39]MH_I2C_Read... [23:09:39]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 87 02 00 0E 04 04 00 16 02 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 22 [23:09:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 87 02 00 0E 04 04 00 16 02 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:09:39]wFMCommunicate OK [23:09:39]SAM_PROTO_GetFieldsCounters done [23:09:39]requested_item shift.num is exist - process it [23:09:39]requested_item shift.opened is exist - process it [23:09:39]req_shift_opened [23:09:39]FM_GetShiftState [23:09:39]SAM_PROTO_GetShiftState [23:09:39]wFMCommunicate request_size=4 [23:09:39]MH_SAM_APDU [23:09:39]CAPDU: 80 13 01 00 [23:09:39]Write to MH i2c: E2 08 00 95 24 80 13 01 00 00 00 00 00 36 [23:09:39]Write i2c OK [23:09:39]MH_I2C_Read... [23:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:39]Read from MH i2c: E2 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 0E 00 [23:09:39]MH_I2C_Read... [23:09:39]Read from MH i2c: E2 0E 00 95 24 00 09 00 01 71 50 14 67 00 00 00 00 90 00 7E [23:09:39]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:09:39]wFMCommunicate OK [23:09:39]SAM_PROTO_GetShiftState done [23:09:39]FM_GetShiftState done [23:09:39]req_shift_opened done [23:09:39]requested_item shift.open_date is exist - process it [23:09:39]req_shift_open_date [23:09:39]req_shift_open_date done [23:09:39]produce_requested_data done [23:09:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165875,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:09:39]process_action_free close_receipt [23:09:39]json_value_free [23:09:39]json_value_free done [23:09:39]process_json_proto returns [23:09:39]Send response to host [23:09:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165875,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:09:39]free response buf [23:09:39]execute_script done [23:09:39]execute_script returns [23:09:39]free content buf [23:09:39]Sock 5.Close socket [23:09:39]Sock 5.Thread stoped [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:14]accept exits with 6 [23:11:14]New connection [23:11:14]New thread 3066920292 created [23:11:14]Thread 3066776932 joined [23:11:14]Waiting for new connection... [23:11:14] Sock 6.Parse request [23:11:14]Sock 6.Check first char [23:11:14]Sock 6.First char is OK [23:11:14]request: POST /json_proto HTTP/1.0 [23:11:14]Method: POST [23:11:14]URL: /json_proto [23:11:14]Method is POST - this is cgi request [23:11:14]url: /json_proto [23:11:14]query_string will be loaded in cgi processing [23:11:14]execute_cgi json_proto POST (null) [23:11:14]execute_cgi path=json_proto method=POST [23:11:14]POST find Content-Length [23:11:14]Host: 172.17.53.195:8080 [23:11:14]Content-Length: 679 [23:11:14]Content-Type: application/json [23:11:14] [23:11:14]POST finish read [23:11:14]Found Content-Length = 679 [23:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 11.860, "sum" : 880.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1380.00, "total" : 880.00, "payments": [ { "type": 0, "sum" : 880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:14]execute_script... [23:11: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)220444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 11.860, "sum" : 880.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1380.00, "total" : 880.00, "payments": [ { "type": 0, "sum" : 880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:14]POST & json_proto [23:11:14]process_json_proto [23:11:14]json parsed OK: [23:11:14]protocol is kg_v1.0 [23:11:14]action value=close_receipt [23:11:14]process_action close_receipt [23:11:14]cmd_close_receipt [23:11:14]MH_GetDate [23:11:14]Write to MH i2c: F0 00 00 96 24 A9 [23:11:14]Write i2c OK [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: F0 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: F0 09 00 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: F0 09 00 96 24 00 20 8E 15 67 21 48 4A 65 F4 [23:11:14]GetLastDocTimeStamp 1729465790 [23:11:14]current date 1729465888 [23:11:14]FM_GetShiftState [23:11:14]SAM_PROTO_GetShiftState [23:11:14]wFMCommunicate request_size=4 [23:11:14]MH_SAM_APDU [23:11:14]CAPDU: 80 13 01 00 [23:11:14]Write to MH i2c: E2 08 00 97 24 80 13 01 00 00 00 00 00 38 [23:11:14]Write i2c OK [23:11:14]MH_I2C_Read... [23:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:14]Read from MH i2c: E2 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 0E 00 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 0E 00 97 24 00 09 00 01 71 50 14 67 00 00 00 00 90 00 80 [23:11:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:11:14]wFMCommunicate OK [23:11:14]SAM_PROTO_GetShiftState done [23:11:14]FM_GetShiftState done [23:11:14]opened in 1729384561 [23:11:14]opened+sec_in_day 1729470961 [23:11:14]quantity*price = 88001 [23:11:14]sum+1 = 88002 [23:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 880.00 Внесено: 1380.00 СДАЧА: 500.00 НСП 1% : 7.79 НДС 12% : 93.45 Наличными: 880.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 358 20.10.2024 23:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165876 ФПД: 194621192601186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231128&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165876&fm=194621192601186&tin=02508201610067®Number=0000000000091764&sum=88000 [23:11:15]StoreToDocumentArchive [23:11:15]shift 534 fd 165876 [23:11:15]save to /storage/0534/doc_00165876 [23:11:15]save last doc name /storage/0534/doc_00165876 to /storage/kkm_last_doc_name [23:11:15]save OK [23:11:15]Clear old archive folders... [23:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:11:15]tlvbuf is 019716E0 [23:11:15]SAM_PROTO_ClearQueue [23:11:15]wFMCommunicate request_size=4 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 09 00 00 [23:11:15]Write to MH i2c: E2 08 00 A4 24 80 09 00 00 00 00 00 00 3A [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 A4 24 00 90 00 3C [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]SAM_PROTO_ClearQueue done [23:11:15]KKMCreateOFDPacket [23:11:15]OFDProtocolAddRootSTLVToBuf [23:11:15]FM_MakeSignedData [23:11:15]FM_MakeSignedData [23:11:15]SAM_PROTO_SignData [23:11:15]wFMCommunicate request_size=4 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 0D 01 02 [23:11:15]Write to MH i2c: E2 08 00 A5 24 80 0D 01 02 00 00 00 00 42 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 A5 24 00 90 00 3D [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]wFMCommunicate request_size=255 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 20 8E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 87 02 00 35 04 06 00 B1 [23:11:15]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 20 8E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 87 02 00 35 04 06 00 B1 00 00 C4 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 A6 24 00 90 00 3E [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]wFMCommunicate request_size=10 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 0D 02 02 05 01 C7 0C FE 62 [23:11:15]Write to MH i2c: E2 0D 00 A7 24 80 0D 02 02 05 00 01 C7 0C FE 62 00 00 83 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 A7 24 00 90 00 3F [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]wFMCommunicate request_size=4 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 0D 03 02 [23:11:15]Write to MH i2c: E2 08 00 A8 24 80 0D 03 02 00 00 00 00 47 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 0B 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 0B 00 A8 24 00 BA F3 2F 10 12 2B 70 46 90 00 27 [23:11:15]RAPDU: BA F3 2F 10 12 2B 70 46 90 00 [23:11:15]wFMCommunicate OK [23:11:15]SAM_PROTO_SignData done [23:11:15]FM_MakeSignedData done [23:11:15]CreateOFDProtocolMessage [23:11:15]wFMCommunicate request_size=4 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 11 00 00 [23:11:15]Write to MH i2c: E2 08 00 A9 24 80 11 00 00 00 00 00 00 47 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 17 00 [23:11:15]MH_I2C_Read... [23:11:15]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 31 37 35 39 90 00 9F [23:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:11:15]wFMCommunicate OK [23:11:15]CreateOFDProtocolMessage done [23:11:15]OFDSenderStorePacket 165876 [23:11:15]StoreOFDPacket docnum=165876 [23:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 7A 07 01 32 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 20 8E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 87 02 00 35 04 06 00 B1 01 C7 0C FE 62 BA F3 2F 10 12 2B 70 46 [23:11:15]CheckFolder [23:11:15]dirname=/storage/ofd_packets [23:11:15]CheckFolder done [23:11:15]ProducePacketName [23:11:15]name=ofd_packets/00165876 [23:11:15]NVStorageSaveData ofd_packets/00165876 [23:11:15]File name is /storage/ofd_packets/00165876 [23:11:15]Write 301 bytes [23:11:15]NVStorageSaveData done [23:11:15]OFDSenderStorePacket done [23:11:15]KKMCreateOFDPacket done [23:11:15]NVStorageSaveData kkm_last_timestamp [23:11:15]File name is /storage/kkm_last_timestamp [23:11:15]Write 4 bytes [23:11:15]NVStorageSaveData done [23:11:15]ExternCall_PrintAddStr [23:11:15]wPrintStart [23:11:15]Write to MH i2c: 01 00 00 AA 24 CE [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: 01 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: 01 07 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: 01 07 00 AA 24 00 00 00 00 00 FF 0F E3 [23:11:15]RasterBufferAndPrint [23:11:15]line Счет N : (1)220444 [23:11:15]line ИНН: 02508201610067 [23:11:15]line Контрольно-Кассовый Чек [23:11:15]line ПРОДАЖА [23:11:15]line ТРК (МРК, ГНК) : 24 [23:11:15]line Товар: 2710124500 [23:11:15]line Аи-95-К-5 [23:11:15]line 11.860 * 74.20 [23:11:15]line = 880.01 [23:11:15]line НДС 12% НСП 1% [23:11:15]line > о реализуемом товаре [23:11:15]line ОКРУГЛЕНИЕ: -0.01 [23:11:15]line ИТОГО: 880.00 [23:11:15]line Внесено: 1380.00 [23:11:15]line СДАЧА: 500.00 [23:11:15]line НСП 1% : 7.79 [23:11:15]line НДС 12% : 93.45 [23:11:15]line Наличными: 880.00 [23:11:15]line Безнал.: 0.00 [23:11:15]line Место: АЗС № 161 "Партнер Нефть" [23:11:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:11:15]line СНО: Общий режим [23:11:15]line Чек 358 20.10.2024 23:11 [23:11:15]line Смена: 534 ФФД: 1.0 [23:11:15]line ЗНМ: 0300000104 [23:11:15]line РНМ: 0000000000091764 [23:11:15]line Версия ККМ: 001 [23:11:15]line ФМ: 0000000000871759 [23:11:15]line ФД: 165876 [23:11:15]line ФПД: 194621192601186 [23:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231128&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165876&fm=194621192601186&tin=02508201610067®Number=0000000000091764&sum=88000 [23:11:16]OFD Sender: Processing packet 165876 [packets to send 48, broken 47] [23:11:16]ProducePacketName [23:11:16]name=ofd_packets/00165876 [23:11:16]OFD Sender: To server: pG, [23:11:16]CommunicateWithHost lk.salyk.kg:30040 [23:11:16]ConnectInit lk.salyk.kg [23:11:16]written 0, free lines is 4095 [23:11:16]Connected sock=7 [23:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 7A 07 01 32 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 20 8E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 87 02 00 35 04 06 00 B1 01 C7 0C FE 62 BA F3 2F 10 12 2B 70 46 [23:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B1 3F 47 00 C0 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 87 02 00 F4 03 04 00 91 34 15 67 B6 04 01 00 00 5E 3B 9C 7A B7 B1 D3 26 [23:11:16]CommunicateWithHost err = 0 [23:11:16]CheckOFDResponse [23:11:16]1017 (14) - 77093643461234 [23:11:16]1041 (16) - 0000000000871759 [23:11:16]1040 (4) - 165876 [23:11:16]1012 (4) - 20.10.2024 16:49 [23:11:16]1206 (1) - 0 [23:11:16]OFD Sender: Remove packet 165876 [23:11:16]ProducePacketName [23:11:16]name=ofd_packets/00165876 [23:11:16]NVStorageDeleteData [23:11:16]Write to MH i2c: 01 00 00 D5 24 F9 [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 07 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 07 00 D5 24 00 00 00 00 00 BB 0C C7 [23:11:16]RasterBufferAndPrint [23:11:16]line [23:11:16]line [23:11:16]line [23:11:16]line [23:11:16]line [23:11:16]written 0, free lines is 3266 [23:11:16]MH_Cut [23:11:16]Write to MH i2c: D1 01 00 DC 24 01 D2 [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: D1 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: D1 01 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: D1 01 00 DC 24 00 D1 [23:11:16]Write to MH i2c: 01 00 00 DD 24 01 [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]OFD Sender: No OFD packet to send [23:11:17]*** Cut start [23:11:17]*** Partial cut [23:11:17]*** CUTSNS_PIN = 1 [23:11:17]*** CUTSNS_PIN = 0 [23:11:17]*** Brake cut motor [23:11:18]Read from MH i2c: 01 [23:11:18]MH_I2C_Read... [23:11:18]*** Stop cut motor [23:11:18]*** Cut end [23:11:18]Read from MH i2c: 01 07 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: 01 07 00 DD 24 00 00 00 00 00 FF 0F 16 [23:11:18]process_action close_receipt done [23:11:18]requested_data is exist [23:11:18]produce_requested_data [23:11:18]requested_item fm.sn is exist - process it [23:11:18]wFMCommunicate request_size=4 [23:11:18]MH_SAM_APDU [23:11:18]CAPDU: 80 11 00 00 [23:11:18]Write to MH i2c: E2 08 00 DE 24 80 11 00 00 00 00 00 00 7C [23:11:18]Write i2c OK [23:11:18]MH_I2C_Read... [23:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:18]Read from MH i2c: E2 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 17 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 17 00 DE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [23:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:11:18]wFMCommunicate OK [23:11:18]requested_item fd.num is exist - process it [23:11:18]SAM_PROTO_GetFieldsCounters [23:11:18]wFMCommunicate request_size=4 [23:11:18]MH_SAM_APDU [23:11:18]CAPDU: 80 13 00 00 [23:11:18]Write to MH i2c: E2 08 00 DF 24 80 13 00 00 00 00 00 00 7F [23:11:18]Write i2c OK [23:11:18]MH_I2C_Read... [23:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:18]Read from MH i2c: E2 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 62 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 62 00 DF 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 87 02 00 0E 04 04 00 16 02 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 71 [23:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 87 02 00 0E 04 04 00 16 02 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:11:18]wFMCommunicate OK [23:11:18]SAM_PROTO_GetFieldsCounters done [23:11:18]requested_item shift.num is exist - process it [23:11:18]requested_item shift.opened is exist - process it [23:11:18]req_shift_opened [23:11:18]FM_GetShiftState [23:11:18]SAM_PROTO_GetShiftState [23:11:18]wFMCommunicate request_size=4 [23:11:18]MH_SAM_APDU [23:11:18]CAPDU: 80 13 01 00 [23:11:18]Write to MH i2c: E2 08 00 E0 24 80 13 01 00 00 00 00 00 81 [23:11:18]Write i2c OK [23:11:18]MH_I2C_Read... [23:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:18]Read from MH i2c: E2 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 0E 00 [23:11:18]MH_I2C_Read... [23:11:18]Read from MH i2c: E2 0E 00 E0 24 00 09 00 01 71 50 14 67 00 00 00 00 90 00 C9 [23:11:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:11:18]wFMCommunicate OK [23:11:18]SAM_PROTO_GetShiftState done [23:11:18]FM_GetShiftState done [23:11:18]req_shift_opened done [23:11:18]requested_item shift.open_date is exist - process it [23:11:18]req_shift_open_date [23:11:18]req_shift_open_date done [23:11:18]produce_requested_data done [23:11:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165876,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:11:18]process_action_free close_receipt [23:11:18]json_value_free [23:11:18]json_value_free done [23:11:18]process_json_proto returns [23:11:18]Send response to host [23:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165876,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:11:18]free response buf [23:11:18]execute_script done [23:11:18]execute_script returns [23:11:18]free content buf [23:11:18]Sock 6.Close socket [23:11:18]Sock 6.Thread stoped [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]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:11]accept exits with 5 [23:21:11]New connection [23:21:11]New thread 3066776932 created [23:21:11]Thread 3066920292 joined [23:21:11]Waiting for new connection... [23:21:11] Sock 5.Parse request [23:21:11]Sock 5.Check first char [23:21:11]Sock 5.First char is OK [23:21:11]request: POST /json_proto HTTP/1.0 [23:21:11]Method: POST [23:21:11]URL: /json_proto [23:21:11]Method is POST - this is cgi request [23:21:11]url: /json_proto [23:21:11]query_string will be loaded in cgi processing [23:21:11]execute_cgi json_proto POST (null) [23:21:11]execute_cgi path=json_proto method=POST [23:21:11]POST find Content-Length [23:21:11]Host: 172.17.53.195:8080 [23:21:11]Content-Length: 678 [23:21:11]Content-Type: application/json [23:21:11] [23:21:11]POST finish read [23:21:11]Found Content-Length = 678 [23:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:11]execute_script... [23: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)220446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:11]POST & json_proto [23:21:11]process_json_proto [23:21:11]json parsed OK: [23:21:11]protocol is kg_v1.0 [23:21:11]action value=close_receipt [23:21:11]process_action close_receipt [23:21:11]cmd_close_receipt [23:21:11]MH_GetDate [23:21:11]Write to MH i2c: F0 00 00 E1 24 F4 [23:21:11]Write i2c OK [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: F0 [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: F0 09 00 [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: F0 09 00 E1 24 00 76 90 15 67 21 48 4A 65 97 [23:21:11]GetLastDocTimeStamp 1729465888 [23:21:11]current date 1729466486 [23:21:11]FM_GetShiftState [23:21:11]SAM_PROTO_GetShiftState [23:21:11]wFMCommunicate request_size=4 [23:21:11]MH_SAM_APDU [23:21:11]CAPDU: 80 13 01 00 [23:21:11]Write to MH i2c: E2 08 00 E2 24 80 13 01 00 00 00 00 00 83 [23:21:11]Write i2c OK [23:21:11]MH_I2C_Read... [23:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:11]Read from MH i2c: E2 [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: E2 0E 00 [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: E2 0E 00 E2 24 00 09 00 01 71 50 14 67 00 00 00 00 90 00 CB [23:21:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:21:11]wFMCommunicate OK [23:21:11]SAM_PROTO_GetShiftState done [23:21:11]FM_GetShiftState done [23:21:11]opened in 1729384561 [23:21:11]opened+sec_in_day 1729470961 [23:21:11]quantity*price = 70044 [23:21:11]sum+1 = 70045 [23:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 359 20.10.2024 23:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165877 ФПД: 205547840956252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165877&fm=205547840956252&tin=02508201610067®Number=0000000000091764&sum=70000 [23:21:13]StoreToDocumentArchive [23:21:13]shift 534 fd 165877 [23:21:13]save to /storage/0534/doc_00165877 [23:21:13]save last doc name /storage/0534/doc_00165877 to /storage/kkm_last_doc_name [23:21:13]save OK [23:21:13]Clear old archive folders... [23:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:21:13]tlvbuf is 016C7A20 [23:21:13]SAM_PROTO_ClearQueue [23:21:13]wFMCommunicate request_size=4 [23:21:13]MH_SAM_APDU [23:21:13]CAPDU: 80 09 00 00 [23:21:13]Write to MH i2c: E2 08 00 EF 24 80 09 00 00 00 00 00 00 85 [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:13]Read from MH i2c: E2 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 03 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 03 00 EF 24 00 90 00 87 [23:21:13]RAPDU: 90 00 [23:21:13]wFMCommunicate OK [23:21:13]SAM_PROTO_ClearQueue done [23:21:13]KKMCreateOFDPacket [23:21:13]OFDProtocolAddRootSTLVToBuf [23:21:13]FM_MakeSignedData [23:21:13]FM_MakeSignedData [23:21:13]SAM_PROTO_SignData [23:21:13]wFMCommunicate request_size=4 [23:21:13]MH_SAM_APDU [23:21:13]CAPDU: 80 0D 01 02 [23:21:13]Write to MH i2c: E2 08 00 F0 24 80 0D 01 02 00 00 00 00 8D [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:13]Read from MH i2c: E2 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 03 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 03 00 F0 24 00 90 00 88 [23:21:13]RAPDU: 90 00 [23:21:13]wFMCommunicate OK [23:21:13]wFMCommunicate request_size=255 [23:21:13]MH_SAM_APDU [23:21:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 76 90 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 87 02 00 35 04 06 00 BA [23:21:13]Write to MH i2c: E2 02 01 F1 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 76 90 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 87 02 00 35 04 06 00 BA 00 00 6D [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:13]Read from MH i2c: E2 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 03 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 03 00 F1 24 00 90 00 89 [23:21:13]RAPDU: 90 00 [23:21:13]wFMCommunicate OK [23:21:13]wFMCommunicate request_size=10 [23:21:13]MH_SAM_APDU [23:21:13]CAPDU: 80 0D 02 02 05 F1 D6 0B 67 5C [23:21:13]Write to MH i2c: E2 0D 00 F2 24 80 0D 02 02 05 00 F1 D6 0B 67 5C 00 00 2F [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:13]Read from MH i2c: E2 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 03 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 03 00 F2 24 00 90 00 8A [23:21:13]RAPDU: 90 00 [23:21:13]wFMCommunicate OK [23:21:13]wFMCommunicate request_size=4 [23:21:13]MH_SAM_APDU [23:21:13]CAPDU: 80 0D 03 02 [23:21:13]Write to MH i2c: E2 08 00 F3 24 80 0D 03 02 00 00 00 00 92 [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:13]Read from MH i2c: E2 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 0B 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 0B 00 F3 24 00 4D 0D 20 07 27 3F 8C 80 90 00 86 [23:21:13]RAPDU: 4D 0D 20 07 27 3F 8C 80 90 00 [23:21:13]wFMCommunicate OK [23:21:13]SAM_PROTO_SignData done [23:21:13]FM_MakeSignedData done [23:21:13]CreateOFDProtocolMessage [23:21:13]wFMCommunicate request_size=4 [23:21:13]MH_SAM_APDU [23:21:13]CAPDU: 80 11 00 00 [23:21:13]Write to MH i2c: E2 08 00 F4 24 80 11 00 00 00 00 00 00 92 [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:13]Read from MH i2c: E2 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 17 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: E2 17 00 F4 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [23:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:21:13]wFMCommunicate OK [23:21:13]CreateOFDProtocolMessage done [23:21:13]OFDSenderStorePacket 165877 [23:21:13]StoreOFDPacket docnum=165877 [23:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A2 FB 07 01 0D 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 76 90 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 87 02 00 35 04 06 00 BA F1 D6 0B 67 5C 4D 0D 20 07 27 3F 8C 80 [23:21:13]CheckFolder [23:21:13]dirname=/storage/ofd_packets [23:21:13]CheckFolder done [23:21:13]ProducePacketName [23:21:13]name=ofd_packets/00165877 [23:21:13]NVStorageSaveData ofd_packets/00165877 [23:21:13]File name is /storage/ofd_packets/00165877 [23:21:13]Write 301 bytes [23:21:13]NVStorageSaveData done [23:21:13]OFDSenderStorePacket done [23:21:13]KKMCreateOFDPacket done [23:21:13]NVStorageSaveData kkm_last_timestamp [23:21:13]File name is /storage/kkm_last_timestamp [23:21:13]Write 4 bytes [23:21:13]NVStorageSaveData done [23:21:13]ExternCall_PrintAddStr [23:21:13]wPrintStart [23:21:13]Write to MH i2c: 01 00 00 F5 24 19 [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: 01 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: 01 07 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: 01 07 00 F5 24 00 00 00 00 00 FF 0F 2E [23:21:13]RasterBufferAndPrint [23:21:13]line Счет N : (1)220446 [23:21:13]line ИНН: 02508201610067 [23:21:13]line Контрольно-Кассовый Чек [23:21:13]line ПРОДАЖА [23:21:13]line ТРК (МРК, ГНК) : 23 [23:21:13]line Товар: 2710124130 [23:21:13]line Аи-92-К-5 [23:21:13]line 10.470 * 66.90 [23:21:13]line = 700.44 [23:21:13]line НДС 12% НСП 1% [23:21:13]line > о реализуемом товаре [23:21:13]line ОКРУГЛЕНИЕ: -0.44 [23:21:13]line ИТОГО: 700.00 [23:21:13]line Внесено: 700.00 [23:21:13]line СДАЧА: 0.00 [23:21:13]line НСП 1% : 6.20 [23:21:13]line НДС 12% : 74.38 [23:21:13]line Наличными: 700.00 [23:21:13]line Безнал.: 0.00 [23:21:13]line Место: АЗС № 161 "Партнер Нефть" [23:21:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:21:13]line СНО: Общий режим [23:21:13]line Чек 359 20.10.2024 23:21 [23:21:13]line Смена: 534 ФФД: 1.0 [23:21:13]line ЗНМ: 0300000104 [23:21:13]line РНМ: 0000000000091764 [23:21:13]line Версия ККМ: 001 [23:21:13]line ФМ: 0000000000871759 [23:21:13]line ФД: 165877 [23:21:13]line ФПД: 205547840956252 [23:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165877&fm=205547840956252&tin=02508201610067®Number=0000000000091764&sum=70000 [23:21:13]OFD Sender: Processing packet 165877 [packets to send 48, broken 47] [23:21:13]ProducePacketName [23:21:13]name=ofd_packets/00165877 [23:21:13]OFD Sender: To server: pG, [23:21:13]CommunicateWithHost lk.salyk.kg:30040 [23:21:13]ConnectInit lk.salyk.kg [23:21:13]written 0, free lines is 4095 [23:21:14]Connected sock=6 [23:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A2 FB 07 01 0D 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 76 90 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 87 02 00 35 04 06 00 BA F1 D6 0B 67 5C 4D 0D 20 07 27 3F 8C 80 [23:21:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 14 0C 47 00 17 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 31 37 35 39 10 04 04 00 F5 87 02 00 F4 03 04 00 E7 36 15 67 B6 04 01 00 00 A8 CB 91 0E 44 09 B3 B6 [23:21:14]CommunicateWithHost err = 0 [23:21:14]CheckOFDResponse [23:21:14]1017 (14) - 77093643461234 [23:21:14]1041 (16) - 0000000000871759 [23:21:14]1040 (4) - 165877 [23:21:14]1012 (4) - 20.10.2024 16:59 [23:21:14]1206 (1) - 0 [23:21:14]OFD Sender: Remove packet 165877 [23:21:14]ProducePacketName [23:21:14]name=ofd_packets/00165877 [23:21:14]NVStorageDeleteData [23:21:14]Write to MH i2c: 01 00 00 20 25 45 [23:21:14]Write i2c OK [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: 01 [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: 01 07 00 [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: 01 07 00 20 25 00 00 00 00 00 C5 0C 1D [23:21:14]RasterBufferAndPrint [23:21:14]line [23:21:14]line [23:21:14]line [23:21:14]line [23:21:14]line [23:21:14]written 0, free lines is 3278 [23:21:14]MH_Cut [23:21:14]Write to MH i2c: D1 01 00 27 25 01 1E [23:21:14]Write i2c OK [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: D1 [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: D1 01 00 [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: D1 01 00 27 25 00 1D [23:21:14]Write to MH i2c: 01 00 00 28 25 4D [23:21:14]Write i2c OK [23:21:14]MH_I2C_Read... [23:21:14]OFD Sender: No OFD packet to send [23:21:15]*** Cut start [23:21:15]*** Partial cut [23:21:15]*** CUTSNS_PIN = 1 [23:21:15]*** CUTSNS_PIN = 0 [23:21:15]*** Brake cut motor [23:21:15]Read from MH i2c: 01 [23:21:15]MH_I2C_Read... [23:21:15]*** Stop cut motor [23:21:15]*** Cut end [23:21:15]Read from MH i2c: 01 07 00 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: 01 07 00 28 25 00 00 00 00 00 FF 0F 62 [23:21:15]process_action close_receipt done [23:21:15]requested_data is exist [23:21:15]produce_requested_data [23:21:15]requested_item fm.sn is exist - process it [23:21:15]wFMCommunicate request_size=4 [23:21:15]MH_SAM_APDU [23:21:15]CAPDU: 80 11 00 00 [23:21:15]Write to MH i2c: E2 08 00 29 25 80 11 00 00 00 00 00 00 C8 [23:21:15]Write i2c OK [23:21:15]MH_I2C_Read... [23:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:15]Read from MH i2c: E2 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: E2 17 00 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: E2 17 00 29 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [23:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:21:15]wFMCommunicate OK [23:21:15]requested_item fd.num is exist - process it [23:21:15]SAM_PROTO_GetFieldsCounters [23:21:15]wFMCommunicate request_size=4 [23:21:15]MH_SAM_APDU [23:21:15]CAPDU: 80 13 00 00 [23:21:15]Write to MH i2c: E2 08 00 2A 25 80 13 00 00 00 00 00 00 CB [23:21:15]Write i2c OK [23:21:15]MH_I2C_Read... [23:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:16]Read from MH i2c: E2 [23:21:16]MH_I2C_Read... [23:21:16]Read from MH i2c: E2 62 00 [23:21:16]MH_I2C_Read... [23:21:16]Read from MH i2c: E2 62 00 2A 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 87 02 00 0E 04 04 00 16 02 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 C1 [23:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 87 02 00 0E 04 04 00 16 02 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:21:16]wFMCommunicate OK [23:21:16]SAM_PROTO_GetFieldsCounters done [23:21:16]requested_item shift.num is exist - process it [23:21:16]requested_item shift.opened is exist - process it [23:21:16]req_shift_opened [23:21:16]FM_GetShiftState [23:21:16]SAM_PROTO_GetShiftState [23:21:16]wFMCommunicate request_size=4 [23:21:16]MH_SAM_APDU [23:21:16]CAPDU: 80 13 01 00 [23:21:16]Write to MH i2c: E2 08 00 2B 25 80 13 01 00 00 00 00 00 CD [23:21:16]Write i2c OK [23:21:16]MH_I2C_Read... [23:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:16]Read from MH i2c: E2 [23:21:16]MH_I2C_Read... [23:21:16]Read from MH i2c: E2 0E 00 [23:21:16]MH_I2C_Read... [23:21:16]Read from MH i2c: E2 0E 00 2B 25 00 09 00 01 71 50 14 67 00 00 00 00 90 00 15 [23:21:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:21:16]wFMCommunicate OK [23:21:16]SAM_PROTO_GetShiftState done [23:21:16]FM_GetShiftState done [23:21:16]req_shift_opened done [23:21:16]requested_item shift.open_date is exist - process it [23:21:16]req_shift_open_date [23:21:16]req_shift_open_date done [23:21:16]produce_requested_data done [23:21:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165877,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:21:16]process_action_free close_receipt [23:21:16]json_value_free [23:21:16]json_value_free done [23:21:16]process_json_proto returns [23:21:16]Send response to host [23:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165877,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:21:16]free response buf [23:21:16]execute_script done [23:21:16]execute_script returns [23:21:16]free content buf [23:21:16]Sock 5.Close socket [23:21:16]Sock 5.Thread stoped [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:38]accept exits with 7 [23:27:38]New connection [23:27:38]New thread 3066920292 created [23:27:38]Thread 3066776932 joined [23:27:38]Waiting for new connection... [23:27:38] Sock 7.Parse request [23:27:38]Sock 7.Check first char [23:27:38]Sock 7.First char is OK [23:27:38]request: POST /json_proto HTTP/1.0 [23:27:38]Method: POST [23:27:38]URL: /json_proto [23:27:38]Method is POST - this is cgi request [23:27:38]url: /json_proto [23:27:38]query_string will be loaded in cgi processing [23:27:38]execute_cgi json_proto POST (null) [23:27:38]execute_cgi path=json_proto method=POST [23:27:38]POST find Content-Length [23:27:38]Host: 172.17.53.195:8080 [23:27:38]Content-Length: 682 [23:27:38]Content-Type: application/json [23:27:38] [23:27:38]POST finish read [23:27:38]Found Content-Length = 682 [23:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.770, "sum" : 1055.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1055.00, "total" : 1055.00, "payments": [ { "type": 0, "sum" : 1055.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:38]execute_script... [23:27: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)220447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.770, "sum" : 1055.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1055.00, "total" : 1055.00, "payments": [ { "type": 0, "sum" : 1055.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:38]POST & json_proto [23:27:38]process_json_proto [23:27:38]json parsed OK: [23:27:38]protocol is kg_v1.0 [23:27:38]action value=close_receipt [23:27:38]process_action close_receipt [23:27:38]cmd_close_receipt [23:27:38]MH_GetDate [23:27:38]Write to MH i2c: F0 00 00 2C 25 40 [23:27:38]Write i2c OK [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: F0 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: F0 09 00 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: F0 09 00 2C 25 00 F9 91 15 67 21 48 4A 65 67 [23:27:38]GetLastDocTimeStamp 1729466486 [23:27:38]current date 1729466873 [23:27:38]FM_GetShiftState [23:27:38]SAM_PROTO_GetShiftState [23:27:38]wFMCommunicate request_size=4 [23:27:38]MH_SAM_APDU [23:27:38]CAPDU: 80 13 01 00 [23:27:38]Write to MH i2c: E2 08 00 2D 25 80 13 01 00 00 00 00 00 CF [23:27:38]Write i2c OK [23:27:38]MH_I2C_Read... [23:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:38]Read from MH i2c: E2 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: E2 0E 00 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: E2 0E 00 2D 25 00 09 00 01 71 50 14 67 00 00 00 00 90 00 17 [23:27:38]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:27:38]wFMCommunicate OK [23:27:38]SAM_PROTO_GetShiftState done [23:27:38]FM_GetShiftState done [23:27:38]opened in 1729384561 [23:27:38]opened+sec_in_day 1729470961 [23:27:38]quantity*price = 105501 [23:27:38]sum+1 = 105502 [23:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1055.00 Внесено: 1055.00 СДАЧА: 0.00 НСП 1% : 9.34 НДС 12% : 112.04 Наличными: 1055.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 360 20.10.2024 23:27 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165878 ФПД: 240388006571111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232753&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165878&fm=240388006571111&tin=02508201610067®Number=0000000000091764&sum=105500 [23:27:39]StoreToDocumentArchive [23:27:39]shift 534 fd 165878 [23:27:39]save to /storage/0534/doc_00165878 [23:27:39]save last doc name /storage/0534/doc_00165878 to /storage/kkm_last_doc_name [23:27:39]save OK [23:27:39]Clear old archive folders... [23:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:39]tlvbuf is 0163FE30 [23:27:39]SAM_PROTO_ClearQueue [23:27:39]wFMCommunicate request_size=4 [23:27:39]MH_SAM_APDU [23:27:39]CAPDU: 80 09 00 00 [23:27:39]Write to MH i2c: E2 08 00 3A 25 80 09 00 00 00 00 00 00 D1 [23:27:39]Write i2c OK [23:27:39]MH_I2C_Read... [23:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:39]Read from MH i2c: E2 [23:27:39]MH_I2C_Read... [23:27:39]Read from MH i2c: E2 03 00 [23:27:39]MH_I2C_Read... [23:27:39]Read from MH i2c: E2 03 00 3A 25 00 90 00 D3 [23:27:39]RAPDU: 90 00 [23:27:39]wFMCommunicate OK [23:27:39]SAM_PROTO_ClearQueue done [23:27:39]KKMCreateOFDPacket [23:27:39]OFDProtocolAddRootSTLVToBuf [23:27:39]FM_MakeSignedData [23:27:39]FM_MakeSignedData [23:27:39]SAM_PROTO_SignData [23:27:39]wFMCommunicate request_size=4 [23:27:39]MH_SAM_APDU [23:27:39]CAPDU: 80 0D 01 02 [23:27:39]Write to MH i2c: E2 08 00 3B 25 80 0D 01 02 00 00 00 00 D9 [23:27:39]Write i2c OK [23:27:39]MH_I2C_Read... [23:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:39]Read from MH i2c: E2 [23:27:39]MH_I2C_Read... [23:27:39]Read from MH i2c: E2 03 00 [23:27:39]MH_I2C_Read... [23:27:39]Read from MH i2c: E2 03 00 3B 25 00 90 00 D4 [23:27:39]RAPDU: 90 00 [23:27:39]wFMCommunicate OK [23:27:39]wFMCommunicate request_size=255 [23:27:39]MH_SAM_APDU [23:27: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 9A 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 2B 00 00 00 00 07 04 06 00 1C 9C 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 F9 91 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 87 02 00 35 04 06 00 DA [23:27:39]Write to MH i2c: E2 02 01 3C 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 9A 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 2B 00 00 00 00 07 04 06 00 1C 9C 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 F9 91 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 87 02 00 35 04 06 00 DA 00 00 A1 [23:27:39]Write i2c OK [23:27:39]MH_I2C_Read... [23:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:39]Read from MH i2c: E2 [23:27:39]MH_I2C_Read... [23:27:39]Read from MH i2c: E2 03 00 [23:27:39]MH_I2C_Read... [23:27:39]Read from MH i2c: E2 03 00 3C 25 00 90 00 D5 [23:27:39]RAPDU: 90 00 [23:27:39]wFMCommunicate OK [23:27:39]wFMCommunicate request_size=10 [23:27:39]MH_SAM_APDU [23:27:39]CAPDU: 80 0D 02 02 05 A1 B1 BD 6C 67 [23:27:39]Write to MH i2c: E2 0D 00 3D 25 80 0D 02 02 05 00 A1 B1 BD 6C 67 00 00 C8 [23:27:39]Write i2c OK [23:27:39]MH_I2C_Read... [23:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:40]Read from MH i2c: E2 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: E2 03 00 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: E2 03 00 3D 25 00 90 00 D6 [23:27:40]RAPDU: 90 00 [23:27:40]wFMCommunicate OK [23:27:40]wFMCommunicate request_size=4 [23:27:40]MH_SAM_APDU [23:27:40]CAPDU: 80 0D 03 02 [23:27:40]Write to MH i2c: E2 08 00 3E 25 80 0D 03 02 00 00 00 00 DE [23:27:40]Write i2c OK [23:27:40]MH_I2C_Read... [23:27:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:40]Read from MH i2c: E2 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: E2 0B 00 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: E2 0B 00 3E 25 00 85 83 00 E8 FE 51 04 55 90 00 77 [23:27:40]RAPDU: 85 83 00 E8 FE 51 04 55 90 00 [23:27:40]wFMCommunicate OK [23:27:40]SAM_PROTO_SignData done [23:27:40]FM_MakeSignedData done [23:27:40]CreateOFDProtocolMessage [23:27:40]wFMCommunicate request_size=4 [23:27:40]MH_SAM_APDU [23:27:40]CAPDU: 80 11 00 00 [23:27:40]Write to MH i2c: E2 08 00 3F 25 80 11 00 00 00 00 00 00 DE [23:27:40]Write i2c OK [23:27:40]MH_I2C_Read... [23:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:40]Read from MH i2c: E2 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: E2 17 00 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: E2 17 00 3F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [23:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:27:40]wFMCommunicate OK [23:27:40]CreateOFDProtocolMessage done [23:27:40]OFDSenderStorePacket 165878 [23:27:40]StoreOFDPacket docnum=165878 [23:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 26 07 01 FB 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 2B 00 00 00 00 07 04 06 00 1C 9C 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 F9 91 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 87 02 00 35 04 06 00 DA A1 B1 BD 6C 67 85 83 00 E8 FE 51 04 55 [23:27:40]CheckFolder [23:27:40]dirname=/storage/ofd_packets [23:27:40]CheckFolder done [23:27:40]ProducePacketName [23:27:40]name=ofd_packets/00165878 [23:27:40]NVStorageSaveData ofd_packets/00165878 [23:27:40]File name is /storage/ofd_packets/00165878 [23:27:40]Write 301 bytes [23:27:40]NVStorageSaveData done [23:27:40]OFDSenderStorePacket done [23:27:40]KKMCreateOFDPacket done [23:27:40]NVStorageSaveData kkm_last_timestamp [23:27:40]File name is /storage/kkm_last_timestamp [23:27:40]Write 4 bytes [23:27:40]NVStorageSaveData done [23:27:40]ExternCall_PrintAddStr [23:27:40]wPrintStart [23:27:40]Write to MH i2c: 01 00 00 40 25 65 [23:27:40]Write i2c OK [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: 01 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: 01 07 00 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: 01 07 00 40 25 00 00 00 00 00 FF 0F 7A [23:27:40]RasterBufferAndPrint [23:27:40]line Счет N : (1)220447 [23:27:40]line ИНН: 02508201610067 [23:27:40]line Контрольно-Кассовый Чек [23:27:40]line ПРОДАЖА [23:27:40]line ТРК (МРК, ГНК) : 13 [23:27:40]line Товар: 2710124130 [23:27:40]line Аи-92-К-5 [23:27:40]line 15.770 * 66.90 [23:27:40]line = 1055.01 [23:27:40]line НДС 12% НСП 1% [23:27:40]line > о реализуемом товаре [23:27:40]line ОКРУГЛЕНИЕ: -0.01 [23:27:40]line ИТОГО: 1055.00 [23:27:40]line Внесено: 1055.00 [23:27:40]line СДАЧА: 0.00 [23:27:40]line НСП 1% : 9.34 [23:27:40]line НДС 12% : 112.04 [23:27:40]line Наличными: 1055.00 [23:27:40]line Безнал.: 0.00 [23:27:40]line Место: АЗС № 161 "Партнер Нефть" [23:27:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:27:40]line СНО: Общий режим [23:27:40]line Чек 360 20.10.2024 23:27 [23:27:40]line Смена: 534 ФФД: 1.0 [23:27:40]line ЗНМ: 0300000104 [23:27:40]line РНМ: 0000000000091764 [23:27:40]line Версия ККМ: 001 [23:27:40]line ФМ: 0000000000871759 [23:27:40]line ФД: 165878 [23:27:40]line ФПД: 240388006571111 [23:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232753&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165878&fm=240388006571111&tin=02508201610067®Number=0000000000091764&sum=105500 [23:27:40]OFD Sender: Processing packet 165878 [packets to send 48, broken 47] [23:27:40]ProducePacketName [23:27:40]name=ofd_packets/00165878 [23:27:40]OFD Sender: To server: pG, [23:27:40]CommunicateWithHost lk.salyk.kg:30040 [23:27:40]ConnectInit lk.salyk.kg [23:27:40]written 0, free lines is 4095 [23:27:40]Connected sock=6 [23:27:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 26 07 01 FB 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 2B 00 00 00 00 07 04 06 00 1C 9C 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 F9 91 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 87 02 00 35 04 06 00 DA A1 B1 BD 6C 67 85 83 00 E8 FE 51 04 55 [23:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BF 08 47 00 07 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 31 37 35 39 10 04 04 00 F6 87 02 00 F4 03 04 00 69 38 15 67 B6 04 01 00 00 75 B3 BE 73 3B C3 91 2A [23:27:40]CommunicateWithHost err = 0 [23:27:40]CheckOFDResponse [23:27:40]1017 (14) - 77093643461234 [23:27:40]1041 (16) - 0000000000871759 [23:27:40]1040 (4) - 165878 [23:27:40]1012 (4) - 20.10.2024 17:05 [23:27:40]1206 (1) - 0 [23:27:40]OFD Sender: Remove packet 165878 [23:27:40]ProducePacketName [23:27:40]name=ofd_packets/00165878 [23:27:40]NVStorageDeleteData [23:27:40]Write to MH i2c: 01 00 00 6B 25 90 [23:27:40]Write i2c OK [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: 01 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: 01 07 00 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: 01 07 00 6B 25 00 00 00 00 00 BA 0C 5D [23:27:40]RasterBufferAndPrint [23:27:40]line [23:27:40]line [23:27:40]line [23:27:40]line [23:27:40]line [23:27:40]written 0, free lines is 3266 [23:27:40]MH_Cut [23:27:40]Write to MH i2c: D1 01 00 72 25 01 69 [23:27:40]Write i2c OK [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: D1 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: D1 01 00 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: D1 01 00 72 25 00 68 [23:27:40]Write to MH i2c: 01 00 00 73 25 98 [23:27:40]Write i2c OK [23:27:40]MH_I2C_Read... [23:27:41]OFD Sender: No OFD packet to send [23:27:41]*** Cut start [23:27:41]*** Partial cut [23:27:41]*** CUTSNS_PIN = 1 [23:27:41]*** CUTSNS_PIN = 0 [23:27:42]*** Brake cut motor [23:27:42]Read from MH i2c: 01 [23:27:42]MH_I2C_Read... [23:27:42]*** Stop cut motor [23:27:42]*** Cut end [23:27:42]Read from MH i2c: 01 07 00 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: 01 07 00 73 25 00 00 00 00 00 FF 0F AD [23:27:42]process_action close_receipt done [23:27:42]requested_data is exist [23:27:42]produce_requested_data [23:27:42]requested_item fm.sn is exist - process it [23:27:42]wFMCommunicate request_size=4 [23:27:42]MH_SAM_APDU [23:27:42]CAPDU: 80 11 00 00 [23:27:42]Write to MH i2c: E2 08 00 74 25 80 11 00 00 00 00 00 00 13 [23:27:42]Write i2c OK [23:27:42]MH_I2C_Read... [23:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:42]Read from MH i2c: E2 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: E2 17 00 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: E2 17 00 74 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [23:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:27:42]wFMCommunicate OK [23:27:42]requested_item fd.num is exist - process it [23:27:42]SAM_PROTO_GetFieldsCounters [23:27:42]wFMCommunicate request_size=4 [23:27:42]MH_SAM_APDU [23:27:42]CAPDU: 80 13 00 00 [23:27:42]Write to MH i2c: E2 08 00 75 25 80 13 00 00 00 00 00 00 16 [23:27:42]Write i2c OK [23:27:42]MH_I2C_Read... [23:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:42]Read from MH i2c: E2 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: E2 62 00 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: E2 62 00 75 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 87 02 00 0E 04 04 00 16 02 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 10 [23:27: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 87 02 00 0E 04 04 00 16 02 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:42]wFMCommunicate OK [23:27:42]SAM_PROTO_GetFieldsCounters done [23:27:42]requested_item shift.num is exist - process it [23:27:42]requested_item shift.opened is exist - process it [23:27:42]req_shift_opened [23:27:42]FM_GetShiftState [23:27:42]SAM_PROTO_GetShiftState [23:27:42]wFMCommunicate request_size=4 [23:27:42]MH_SAM_APDU [23:27:42]CAPDU: 80 13 01 00 [23:27:42]Write to MH i2c: E2 08 00 76 25 80 13 01 00 00 00 00 00 18 [23:27:42]Write i2c OK [23:27:42]MH_I2C_Read... [23:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:42]Read from MH i2c: E2 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: E2 0E 00 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: E2 0E 00 76 25 00 09 00 01 71 50 14 67 00 00 00 00 90 00 60 [23:27:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:27:42]wFMCommunicate OK [23:27:42]SAM_PROTO_GetShiftState done [23:27:42]FM_GetShiftState done [23:27:42]req_shift_opened done [23:27:42]requested_item shift.open_date is exist - process it [23:27:42]req_shift_open_date [23:27:42]req_shift_open_date done [23:27:42]produce_requested_data done [23:27:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165878,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:27:42]process_action_free close_receipt [23:27:42]json_value_free [23:27:42]json_value_free done [23:27:42]process_json_proto returns [23:27:42]Send response to host [23:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165878,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:27:42]free response buf [23:27:42]execute_script done [23:27:42]execute_script returns [23:27:42]free content buf [23:27:42]Sock 7.Close socket [23:27:42]Sock 7.Thread stoped [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]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:03]accept exits with 5 [23:50:03]New connection [23:50:03]New thread 3066776932 created [23:50:03]Thread 3066920292 joined [23:50:03]Waiting for new connection... [23:50:03] Sock 5.Parse request [23:50:03]Sock 5.Check first char [23:50:03]Sock 5.First char is OK [23:50:03]request: POST /json_proto HTTP/1.0 [23:50:03]Method: POST [23:50:03]URL: /json_proto [23:50:03]Method is POST - this is cgi request [23:50:03]url: /json_proto [23:50:03]query_string will be loaded in cgi processing [23:50:03]execute_cgi json_proto POST (null) [23:50:03]execute_cgi path=json_proto method=POST [23:50:03]POST find Content-Length [23:50:03]Host: 172.17.53.195:8080 [23:50:03]Content-Length: 677 [23:50:03]Content-Type: application/json [23:50:03] [23:50:03]POST finish read [23:50:03]Found Content-Length = 677 [23:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:03]execute_script... [23:50: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)220448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:03]POST & json_proto [23:50:03]process_json_proto [23:50:03]json parsed OK: [23:50:03]protocol is kg_v1.0 [23:50:03]action value=close_receipt [23:50:03]process_action close_receipt [23:50:03]cmd_close_receipt [23:50:03]MH_GetDate [23:50:03]Write to MH i2c: F0 00 00 77 25 8B [23:50:03]Write i2c OK [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: F0 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: F0 09 00 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: F0 09 00 77 25 00 3A 97 15 67 21 48 4A 65 F9 [23:50:03]GetLastDocTimeStamp 1729466873 [23:50:03]current date 1729468218 [23:50:03]FM_GetShiftState [23:50:03]SAM_PROTO_GetShiftState [23:50:03]wFMCommunicate request_size=4 [23:50:03]MH_SAM_APDU [23:50:03]CAPDU: 80 13 01 00 [23:50:03]Write to MH i2c: E2 08 00 78 25 80 13 01 00 00 00 00 00 1A [23:50:03]Write i2c OK [23:50:03]MH_I2C_Read... [23:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:03]Read from MH i2c: E2 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: E2 0E 00 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: E2 0E 00 78 25 00 09 00 01 71 50 14 67 00 00 00 00 90 00 62 [23:50:03]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:50:03]wFMCommunicate OK [23:50:03]SAM_PROTO_GetShiftState done [23:50:03]FM_GetShiftState done [23:50:03]opened in 1729384561 [23:50:03]opened+sec_in_day 1729470961 [23:50:03]quantity*price = 60009 [23:50:03]sum+1 = 60010 [23:50:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 361 20.10.2024 23:50 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165879 ФПД: 187548490881391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235018&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165879&fm=187548490881391&tin=02508201610067®Number=0000000000091764&sum=60000 [23:50:04]StoreToDocumentArchive [23:50:04]shift 534 fd 165879 [23:50:04]save to /storage/0534/doc_00165879 [23:50:04]save last doc name /storage/0534/doc_00165879 to /storage/kkm_last_doc_name [23:50:04]save OK [23:50:04]Clear old archive folders... [23:50:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:50:04]tlvbuf is 01615FA0 [23:50:04]SAM_PROTO_ClearQueue [23:50:04]wFMCommunicate request_size=4 [23:50:04]MH_SAM_APDU [23:50:04]CAPDU: 80 09 00 00 [23:50:04]Write to MH i2c: E2 08 00 85 25 80 09 00 00 00 00 00 00 1C [23:50:04]Write i2c OK [23:50:04]MH_I2C_Read... [23:50:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:04]Read from MH i2c: E2 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 03 00 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 03 00 85 25 00 90 00 1E [23:50:04]RAPDU: 90 00 [23:50:04]wFMCommunicate OK [23:50:04]SAM_PROTO_ClearQueue done [23:50:04]KKMCreateOFDPacket [23:50:04]OFDProtocolAddRootSTLVToBuf [23:50:04]FM_MakeSignedData [23:50:04]FM_MakeSignedData [23:50:04]SAM_PROTO_SignData [23:50:04]wFMCommunicate request_size=4 [23:50:04]MH_SAM_APDU [23:50:04]CAPDU: 80 0D 01 02 [23:50:04]Write to MH i2c: E2 08 00 86 25 80 0D 01 02 00 00 00 00 24 [23:50:04]Write i2c OK [23:50:04]MH_I2C_Read... [23:50:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:04]Read from MH i2c: E2 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 03 00 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 03 00 86 25 00 90 00 1F [23:50:04]RAPDU: 90 00 [23:50:04]wFMCommunicate OK [23:50:04]wFMCommunicate request_size=255 [23:50:04]MH_SAM_APDU [23:50: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 3A 97 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 87 02 00 35 04 06 00 AA [23:50:04]Write to MH i2c: E2 02 01 87 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 3A 97 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 87 02 00 35 04 06 00 AA 00 00 90 [23:50:04]Write i2c OK [23:50:04]MH_I2C_Read... [23:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:05]Read from MH i2c: E2 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 03 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 03 00 87 25 00 90 00 20 [23:50:05]RAPDU: 90 00 [23:50:05]wFMCommunicate OK [23:50:05]wFMCommunicate request_size=10 [23:50:05]MH_SAM_APDU [23:50:05]CAPDU: 80 0D 02 02 05 93 09 2D 59 6F [23:50:05]Write to MH i2c: E2 0D 00 88 25 80 0D 02 02 05 00 93 09 2D 59 6F 00 00 C2 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:05]Read from MH i2c: E2 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 03 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 03 00 88 25 00 90 00 21 [23:50:05]RAPDU: 90 00 [23:50:05]wFMCommunicate OK [23:50:05]wFMCommunicate request_size=4 [23:50:05]MH_SAM_APDU [23:50:05]CAPDU: 80 0D 03 02 [23:50:05]Write to MH i2c: E2 08 00 89 25 80 0D 03 02 00 00 00 00 29 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:05]Read from MH i2c: E2 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 0B 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 0B 00 89 25 00 F7 3A 1B 93 0D AF 0D 29 90 00 FB [23:50:05]RAPDU: F7 3A 1B 93 0D AF 0D 29 90 00 [23:50:05]wFMCommunicate OK [23:50:05]SAM_PROTO_SignData done [23:50:05]FM_MakeSignedData done [23:50:05]CreateOFDProtocolMessage [23:50:05]wFMCommunicate request_size=4 [23:50:05]MH_SAM_APDU [23:50:05]CAPDU: 80 11 00 00 [23:50:05]Write to MH i2c: E2 08 00 8A 25 80 11 00 00 00 00 00 00 29 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:05]Read from MH i2c: E2 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 17 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 17 00 8A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [23:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:50:05]wFMCommunicate OK [23:50:05]CreateOFDProtocolMessage done [23:50:05]OFDSenderStorePacket 165879 [23:50:05]StoreOFDPacket docnum=165879 [23:50:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 0C 07 01 5C 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 3A 97 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 87 02 00 35 04 06 00 AA 93 09 2D 59 6F F7 3A 1B 93 0D AF 0D 29 [23:50:05]CheckFolder [23:50:05]dirname=/storage/ofd_packets [23:50:05]CheckFolder done [23:50:05]ProducePacketName [23:50:05]name=ofd_packets/00165879 [23:50:05]NVStorageSaveData ofd_packets/00165879 [23:50:05]File name is /storage/ofd_packets/00165879 [23:50:05]Write 301 bytes [23:50:05]NVStorageSaveData done [23:50:05]OFDSenderStorePacket done [23:50:05]KKMCreateOFDPacket done [23:50:05]NVStorageSaveData kkm_last_timestamp [23:50:05]File name is /storage/kkm_last_timestamp [23:50:05]Write 4 bytes [23:50:05]NVStorageSaveData done [23:50:05]ExternCall_PrintAddStr [23:50:05]wPrintStart [23:50:05]Write to MH i2c: 01 00 00 8B 25 B0 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: 01 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: 01 07 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: 01 07 00 8B 25 00 00 00 00 00 FF 0F C5 [23:50:05]RasterBufferAndPrint [23:50:05]line Счет N : (1)220448 [23:50:05]line ИНН: 02508201610067 [23:50:05]line Контрольно-Кассовый Чек [23:50:05]line ПРОДАЖА [23:50:05]line ТРК (МРК, ГНК) : 33 [23:50:05]line Товар: 2710124130 [23:50:05]line Аи-92-К-5 [23:50:05]line 8.970 * 66.90 [23:50:05]line = 600.09 [23:50:05]line НДС 12% НСП 1% [23:50:05]line > о реализуемом товаре [23:50:05]line ОКРУГЛЕНИЕ: -0.09 [23:50:05]line ИТОГО: 600.00 [23:50:05]line Внесено: 600.00 [23:50:05]line СДАЧА: 0.00 [23:50:05]line НСП 1% : 5.31 [23:50:05]line НДС 12% : 63.73 [23:50:05]line Наличными: 600.00 [23:50:05]line Безнал.: 0.00 [23:50:05]line Место: АЗС № 161 "Партнер Нефть" [23:50:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:50:05]line СНО: Общий режим [23:50:05]line Чек 361 20.10.2024 23:50 [23:50:05]line Смена: 534 ФФД: 1.0 [23:50:05]line ЗНМ: 0300000104 [23:50:05]line РНМ: 0000000000091764 [23:50:05]line Версия ККМ: 001 [23:50:05]line ФМ: 0000000000871759 [23:50:05]line ФД: 165879 [23:50:05]line ФПД: 187548490881391 [23:50:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235018&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165879&fm=187548490881391&tin=02508201610067®Number=0000000000091764&sum=60000 [23:50:05]OFD Sender: Processing packet 165879 [packets to send 48, broken 47] [23:50:05]ProducePacketName [23:50:05]name=ofd_packets/00165879 [23:50:05]OFD Sender: To server: pG, [23:50:05]CommunicateWithHost lk.salyk.kg:30040 [23:50:05]ConnectInit lk.salyk.kg [23:50:05]written 0, free lines is 4095 [23:50:05]Connected sock=7 [23:50:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 0C 07 01 5C 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 3A 97 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 87 02 00 35 04 06 00 AA 93 09 2D 59 6F F7 3A 1B 93 0D AF 0D 29 [23:50:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 95 3F 47 00 83 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 87 02 00 F4 03 04 00 AB 3D 15 67 B6 04 01 00 00 C6 48 AF C4 FD 4D 7A 7E [23:50:05]CommunicateWithHost err = 0 [23:50:05]CheckOFDResponse [23:50:05]1017 (14) - 77093643461234 [23:50:05]1041 (16) - 0000000000871759 [23:50:05]1040 (4) - 165879 [23:50:05]1012 (4) - 20.10.2024 17:28 [23:50:05]1206 (1) - 0 [23:50:05]OFD Sender: Remove packet 165879 [23:50:05]ProducePacketName [23:50:05]name=ofd_packets/00165879 [23:50:05]NVStorageDeleteData [23:50:06]Write to MH i2c: 01 00 00 B6 25 DB [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 07 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 07 00 B6 25 00 00 00 00 00 C5 0C B3 [23:50:06]RasterBufferAndPrint [23:50:06]line [23:50:06]line [23:50:06]line [23:50:06]line [23:50:06]line [23:50:06]written 0, free lines is 3278 [23:50:06]MH_Cut [23:50:06]Write to MH i2c: D1 01 00 BD 25 01 B4 [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: D1 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: D1 01 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: D1 01 00 BD 25 00 B3 [23:50:06]Write to MH i2c: 01 00 00 BE 25 E3 [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]OFD Sender: No OFD packet to send [23:50:06]*** Cut start [23:50:06]*** Partial cut [23:50:06]*** CUTSNS_PIN = 1 [23:50:06]*** CUTSNS_PIN = 0 [23:50:07]*** Brake cut motor [23:50:07]Read from MH i2c: 01 [23:50:07]MH_I2C_Read... [23:50:07]*** Stop cut motor [23:50:07]*** Cut end [23:50:07]Read from MH i2c: 01 07 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: 01 07 00 BE 25 00 00 00 00 00 FF 0F F8 [23:50:07]process_action close_receipt done [23:50:07]requested_data is exist [23:50:07]produce_requested_data [23:50:07]requested_item fm.sn is exist - process it [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 11 00 00 [23:50:07]Write to MH i2c: E2 08 00 BF 25 80 11 00 00 00 00 00 00 5E [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 17 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 17 00 BF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [23:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:50:07]wFMCommunicate OK [23:50:07]requested_item fd.num is exist - process it [23:50:07]SAM_PROTO_GetFieldsCounters [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 13 00 00 [23:50:07]Write to MH i2c: E2 08 00 C0 25 80 13 00 00 00 00 00 00 61 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 62 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 62 00 C0 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 87 02 00 0E 04 04 00 16 02 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 5F [23:50:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 87 02 00 0E 04 04 00 16 02 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:50:07]wFMCommunicate OK [23:50:07]SAM_PROTO_GetFieldsCounters done [23:50:07]requested_item shift.num is exist - process it [23:50:07]requested_item shift.opened is exist - process it [23:50:07]req_shift_opened [23:50:07]FM_GetShiftState [23:50:07]SAM_PROTO_GetShiftState [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 13 01 00 [23:50:07]Write to MH i2c: E2 08 00 C1 25 80 13 01 00 00 00 00 00 63 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 0E 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 0E 00 C1 25 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AB [23:50:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:50:07]wFMCommunicate OK [23:50:07]SAM_PROTO_GetShiftState done [23:50:07]FM_GetShiftState done [23:50:07]req_shift_opened done [23:50:07]requested_item shift.open_date is exist - process it [23:50:07]req_shift_open_date [23:50:07]req_shift_open_date done [23:50:07]produce_requested_data done [23:50:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165879,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:50:07]process_action_free close_receipt [23:50:07]json_value_free [23:50:07]json_value_free done [23:50:07]process_json_proto returns [23:50:07]Send response to host [23:50:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165879,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:50:07]free response buf [23:50:07]execute_script done [23:50:07]execute_script returns [23:50:07]free content buf [23:50:07]Sock 5.Close socket [23:50:07]Sock 5.Thread stoped [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:40]accept exits with 6 [23:51:40]New connection [23:51:40]New thread 3066920292 created [23:51:40]Thread 3066776932 joined [23:51:40]Waiting for new connection... [23:51:40] Sock 6.Parse request [23:51:40]Sock 6.Check first char [23:51:40]Sock 6.First char is OK [23:51:40]request: POST /json_proto HTTP/1.0 [23:51:40]Method: POST [23:51:40]URL: /json_proto [23:51:40]Method is POST - this is cgi request [23:51:40]url: /json_proto [23:51:40]query_string will be loaded in cgi processing [23:51:40]execute_cgi json_proto POST (null) [23:51:40]execute_cgi path=json_proto method=POST [23:51:40]POST find Content-Length [23:51:40]Host: 172.17.53.195:8080 [23:51:40]Content-Length: 766 [23:51:40]Content-Type: application/json [23:51:40] [23:51:40]POST finish read [23:51:40]Found Content-Length = 766 [23:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:40]execute_script... [23:51: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)220449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:40]POST & json_proto [23:51:40]process_json_proto [23:51:40]json parsed OK: [23:51:40]protocol is kg_v1.0 [23:51:40]action value=close_receipt [23:51:40]process_action close_receipt [23:51:40]cmd_close_receipt [23:51:40]MH_GetDate [23:51:40]Write to MH i2c: F0 00 00 C2 25 D6 [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: F0 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: F0 09 00 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: F0 09 00 C2 25 00 9B 97 15 67 21 48 4A 65 A5 [23:51:40]GetLastDocTimeStamp 1729468218 [23:51:40]current date 1729468315 [23:51:40]FM_GetShiftState [23:51:40]SAM_PROTO_GetShiftState [23:51:40]wFMCommunicate request_size=4 [23:51:40]MH_SAM_APDU [23:51:40]CAPDU: 80 13 01 00 [23:51:40]Write to MH i2c: E2 08 00 C3 25 80 13 01 00 00 00 00 00 65 [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:40]Read from MH i2c: E2 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 0E 00 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 0E 00 C3 25 00 09 00 01 71 50 14 67 00 00 00 00 90 00 AD [23:51:40]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:51:40]wFMCommunicate OK [23:51:40]SAM_PROTO_GetShiftState done [23:51:40]FM_GetShiftState done [23:51:40]opened in 1729384561 [23:51:40]opened+sec_in_day 1729470961 [23:51:40]quantity*price = 60009 [23:51:40]sum+1 = 60010 [23:51:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 362 20.10.2024 23:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165880 ФПД: 241758349249054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235155&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165880&fm=241758349249054&tin=02508201610067®Number=0000000000091764&sum=60009 [23:51:41]StoreToDocumentArchive [23:51:41]shift 534 fd 165880 [23:51:41]save to /storage/0534/doc_00165880 [23:51:41]save last doc name /storage/0534/doc_00165880 to /storage/kkm_last_doc_name [23:51:41]save OK [23:51:41]Clear old archive folders... [23:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:51:41]tlvbuf is 01441C70 [23:51:41]SAM_PROTO_ClearQueue [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 09 00 00 [23:51:41]Write to MH i2c: E2 08 00 D0 25 80 09 00 00 00 00 00 00 67 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]OFD Sender: No OFD packet to send [23:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 03 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 03 00 D0 25 00 90 00 69 [23:51:41]RAPDU: 90 00 [23:51:41]wFMCommunicate OK [23:51:41]SAM_PROTO_ClearQueue done [23:51:41]KKMCreateOFDPacket [23:51:41]OFDProtocolAddRootSTLVToBuf [23:51:41]FM_MakeSignedData [23:51:41]FM_MakeSignedData [23:51:41]SAM_PROTO_SignData [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 0D 01 02 [23:51:41]Write to MH i2c: E2 08 00 D1 25 80 0D 01 02 00 00 00 00 6F [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 03 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 03 00 D1 25 00 90 00 6A [23:51:41]RAPDU: 90 00 [23:51:41]wFMCommunicate OK [23:51:41]wFMCommunicate request_size=255 [23:51:41]MH_SAM_APDU [23:51: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 9B 97 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 87 02 00 35 04 06 00 DB [23:51:41]Write to MH i2c: E2 02 01 D2 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 9B 97 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 87 02 00 35 04 06 00 DB 00 00 81 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 03 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 03 00 D2 25 00 90 00 6B [23:51:41]RAPDU: 90 00 [23:51:41]wFMCommunicate OK [23:51:41]wFMCommunicate request_size=10 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 0D 02 02 05 E0 C0 87 4A 1E [23:51:41]Write to MH i2c: E2 0D 00 D3 25 80 0D 02 02 05 00 E0 C0 87 4A 1E 00 00 0B [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 03 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 03 00 D3 25 00 90 00 6C [23:51:41]RAPDU: 90 00 [23:51:41]wFMCommunicate OK [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 0D 03 02 [23:51:41]Write to MH i2c: E2 08 00 D4 25 80 0D 03 02 00 00 00 00 74 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 0B 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 0B 00 D4 25 00 23 CD CD 1F 54 B1 7D 26 90 00 F9 [23:51:42]RAPDU: 23 CD CD 1F 54 B1 7D 26 90 00 [23:51:42]wFMCommunicate OK [23:51:42]SAM_PROTO_SignData done [23:51:42]FM_MakeSignedData done [23:51:42]CreateOFDProtocolMessage [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 11 00 00 [23:51:42]Write to MH i2c: E2 08 00 D5 25 80 11 00 00 00 00 00 00 74 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 17 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 17 00 D5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [23:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:51:42]wFMCommunicate OK [23:51:42]CreateOFDProtocolMessage done [23:51:42]OFDSenderStorePacket 165880 [23:51:42]StoreOFDPacket docnum=165880 [23:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 01 AE 07 01 15 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 9B 97 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 87 02 00 35 04 06 00 DB E0 C0 87 4A 1E 23 CD CD 1F 54 B1 7D 26 [23:51:42]CheckFolder [23:51:42]dirname=/storage/ofd_packets [23:51:42]CheckFolder done [23:51:42]ProducePacketName [23:51:42]name=ofd_packets/00165880 [23:51:42]NVStorageSaveData ofd_packets/00165880 [23:51:42]File name is /storage/ofd_packets/00165880 [23:51:42]Write 301 bytes [23:51:42]NVStorageSaveData done [23:51:42]OFDSenderStorePacket done [23:51:42]KKMCreateOFDPacket done [23:51:42]NVStorageSaveData kkm_last_timestamp [23:51:42]File name is /storage/kkm_last_timestamp [23:51:42]Write 4 bytes [23:51:42]NVStorageSaveData done [23:51:42]ExternCall_PrintAddStr [23:51:42]wPrintStart [23:51:42]Write to MH i2c: 01 00 00 D6 25 FB [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: 01 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: 01 07 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: 01 07 00 D6 25 00 00 00 00 00 FF 0F 10 [23:51:42]RasterBufferAndPrint [23:51:42]line Счет N : (1)220449 [23:51:42]line ИНН: 02508201610067 [23:51:42]line Контрольно-Кассовый Чек [23:51:42]line ПРОДАЖА [23:51:42]line ТРК (МРК, ГНК) : 23 [23:51:42]line Товар: 2710124130 [23:51:42]line Аи-92-К-5 [23:51:42]line 8.970 * 66.90 [23:51:42]line = 600.09 [23:51:42]line НДС 12% НСП 1% [23:51:42]line > о реализуемом товаре [23:51:42]line ИТОГО: 600.09 [23:51:42]line НСП 1% : 5.31 [23:51:42]line НДС 12% : 63.73 [23:51:42]line Наличными: 0.00 [23:51:42]line Безнал.: 600.09 [23:51:42]line Место: АЗС № 161 "Партнер Нефть" [23:51:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:51:42]line СНО: Общий режим [23:51:42]line Чек 362 20.10.2024 23:51 [23:51:42]line Смена: 534 ФФД: 1.0 [23:51:42]line ЗНМ: 0300000104 [23:51:42]line РНМ: 0000000000091764 [23:51:42]line Версия ККМ: 001 [23:51:42]line Платежная система: Mbank [23:51:42]line ФМ: 0000000000871759 [23:51:42]line ФД: 165880 [23:51:42]line ФПД: 241758349249054 [23:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235155&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165880&fm=241758349249054&tin=02508201610067®Number=0000000000091764&sum=60009 [23:51:42]OFD Sender: Processing packet 165880 [packets to send 48, broken 47] [23:51:42]ProducePacketName [23:51:42]name=ofd_packets/00165880 [23:51:42]OFD Sender: To server: pG, [23:51:42]CommunicateWithHost lk.salyk.kg:30040 [23:51:42]ConnectInit lk.salyk.kg [23:51:42]written 0, free lines is 4095 [23:51:42]Connected sock=7 [23:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 01 AE 07 01 15 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 9B 97 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 87 02 00 35 04 06 00 DB E0 C0 87 4A 1E 23 CD CD 1F 54 B1 7D 26 [23:51:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 17 3F 47 00 6D DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 87 02 00 F4 03 04 00 0B 3E 15 67 B6 04 01 00 00 62 F5 AC FF 46 AD 9D 2C [23:51:42]CommunicateWithHost err = 0 [23:51:42]CheckOFDResponse [23:51:42]1017 (14) - 77093643461234 [23:51:42]1041 (16) - 0000000000871759 [23:51:42]1040 (4) - 165880 [23:51:42]1012 (4) - 20.10.2024 17:29 [23:51:42]1206 (1) - 0 [23:51:42]OFD Sender: Remove packet 165880 [23:51:42]ProducePacketName [23:51:42]name=ofd_packets/00165880 [23:51:42]NVStorageDeleteData [23:51:42]Write to MH i2c: 01 00 00 FF 25 24 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: 01 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: 01 07 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: 01 07 00 FF 25 00 00 00 00 00 DB 0C 12 [23:51:42]RasterBufferAndPrint [23:51:42]line [23:51:42]line [23:51:42]line [23:51:42]line [23:51:42]line [23:51:42]written 0, free lines is 3297 [23:51:42]MH_Cut [23:51:42]Write to MH i2c: D1 01 00 06 26 01 FE [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: D1 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: D1 01 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: D1 01 00 06 26 00 FD [23:51:42]Write to MH i2c: 01 00 00 07 26 2D [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:43]OFD Sender: No OFD packet to send [23:51:43]*** Cut start [23:51:43]*** Partial cut [23:51:43]*** CUTSNS_PIN = 1 [23:51:43]*** CUTSNS_PIN = 0 [23:51:43]*** Brake cut motor [23:51:44]Read from MH i2c: 01 [23:51:44]MH_I2C_Read... [23:51:44]*** Stop cut motor [23:51:44]*** Cut end [23:51:44]Read from MH i2c: 01 07 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: 01 07 00 07 26 00 00 00 00 00 FF 0F 42 [23:51:44]process_action close_receipt done [23:51:44]requested_data is exist [23:51:44]produce_requested_data [23:51:44]requested_item fm.sn is exist - process it [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 11 00 00 [23:51:44]Write to MH i2c: E2 08 00 08 26 80 11 00 00 00 00 00 00 A8 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 17 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 17 00 08 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [23:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:51:44]wFMCommunicate OK [23:51:44]requested_item fd.num is exist - process it [23:51:44]SAM_PROTO_GetFieldsCounters [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 13 00 00 [23:51:44]Write to MH i2c: E2 08 00 09 26 80 13 00 00 00 00 00 00 AB [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 62 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 62 00 09 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 87 02 00 0E 04 04 00 16 02 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 AD [23:51: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 87 02 00 0E 04 04 00 16 02 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:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetFieldsCounters done [23:51:44]requested_item shift.num is exist - process it [23:51:44]requested_item shift.opened is exist - process it [23:51:44]req_shift_opened [23:51:44]FM_GetShiftState [23:51:44]SAM_PROTO_GetShiftState [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 13 01 00 [23:51:44]Write to MH i2c: E2 08 00 0A 26 80 13 01 00 00 00 00 00 AD [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 0E 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 0E 00 0A 26 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F5 [23:51:44]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetShiftState done [23:51:44]FM_GetShiftState done [23:51:44]req_shift_opened done [23:51:44]requested_item shift.open_date is exist - process it [23:51:44]req_shift_open_date [23:51:44]req_shift_open_date done [23:51:44]produce_requested_data done [23:51:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165880,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:51:44]process_action_free close_receipt [23:51:44]json_value_free [23:51:44]json_value_free done [23:51:44]process_json_proto returns [23:51:44]Send response to host [23:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165880,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:51:44]free response buf [23:51:44]execute_script done [23:51:44]execute_script returns [23:51:44]free content buf [23:51:44]Sock 6.Close socket [23:51:44]Sock 6.Thread stoped [23:51:48]OFD Sender: No OFD packet to send [23:51:53]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]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:51]accept exits with 5 [23:58:51]New connection [23:58:51]New thread 3066776932 created [23:58:51]Thread 3066920292 joined [23:58:51]Waiting for new connection... [23:58:51] Sock 5.Parse request [23:58:51]Sock 5.Check first char [23:58:51]Sock 5.First char is OK [23:58:51]request: POST /json_proto HTTP/1.0 [23:58:51]Method: POST [23:58:51]URL: /json_proto [23:58:51]Method is POST - this is cgi request [23:58:51]url: /json_proto [23:58:51]query_string will be loaded in cgi processing [23:58:51]execute_cgi json_proto POST (null) [23:58:51]execute_cgi path=json_proto method=POST [23:58:51]POST find Content-Length [23:58:51]Host: 172.17.53.195:8080 [23:58:51]Content-Length: 682 [23:58:51]Content-Type: application/json [23:58:51] [23:58:51]POST finish read [23:58:51]Found Content-Length = 682 [23:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.420, "sum" : 1499.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:51]execute_script... [23: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)220445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.420, "sum" : 1499.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:51]POST & json_proto [23:58:51]process_json_proto [23:58:51]json parsed OK: [23:58:51]protocol is kg_v1.0 [23:58:51]action value=close_receipt [23:58:51]process_action close_receipt [23:58:51]cmd_close_receipt [23:58:51]MH_GetDate [23:58:51]Write to MH i2c: F0 00 00 0B 26 20 [23:58:51]Write i2c OK [23:58:51]MH_I2C_Read... [23:58:51]Read from MH i2c: F0 [23:58:51]MH_I2C_Read... [23:58:51]Read from MH i2c: F0 09 00 [23:58:51]MH_I2C_Read... [23:58:51]Read from MH i2c: F0 09 00 0B 26 00 4A 99 15 67 21 48 4A 65 A0 [23:58:51]GetLastDocTimeStamp 1729468315 [23:58:51]current date 1729468746 [23:58:51]FM_GetShiftState [23:58:51]SAM_PROTO_GetShiftState [23:58:51]wFMCommunicate request_size=4 [23:58:51]MH_SAM_APDU [23:58:51]CAPDU: 80 13 01 00 [23:58:51]Write to MH i2c: E2 08 00 0C 26 80 13 01 00 00 00 00 00 AF [23:58:51]Write i2c OK [23:58:51]MH_I2C_Read... [23:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:51]Read from MH i2c: E2 [23:58:51]MH_I2C_Read... [23:58:51]Read from MH i2c: E2 0E 00 [23:58:51]MH_I2C_Read... [23:58:51]Read from MH i2c: E2 0E 00 0C 26 00 09 00 01 71 50 14 67 00 00 00 00 90 00 F7 [23:58:51]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:58:51]wFMCommunicate OK [23:58:51]SAM_PROTO_GetShiftState done [23:58:51]FM_GetShiftState done [23:58:51]opened in 1729384561 [23:58:51]opened+sec_in_day 1729470961 [23:58:51]quantity*price = 149989 [23:58:51]sum+1 = 149991 [23:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.28 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 363 20.10.2024 23:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165881 ФПД: 254377602700163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235906&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165881&fm=254377602700163&tin=02508201610067®Number=0000000000091764&sum=149900 [23:58:52]StoreToDocumentArchive [23:58:52]shift 534 fd 165881 [23:58:52]save to /storage/0534/doc_00165881 [23:58:52]save last doc name /storage/0534/doc_00165881 to /storage/kkm_last_doc_name [23:58:52]save OK [23:58:52]Clear old archive folders... [23:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:58:52]tlvbuf is 01A05630 [23:58:52]SAM_PROTO_ClearQueue [23:58:52]wFMCommunicate request_size=4 [23:58:52]MH_SAM_APDU [23:58:52]CAPDU: 80 09 00 00 [23:58:52]Write to MH i2c: E2 08 00 19 26 80 09 00 00 00 00 00 00 B1 [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:52]Read from MH i2c: E2 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 19 26 00 90 00 B3 [23:58:52]RAPDU: 90 00 [23:58:52]wFMCommunicate OK [23:58:52]SAM_PROTO_ClearQueue done [23:58:52]KKMCreateOFDPacket [23:58:52]OFDProtocolAddRootSTLVToBuf [23:58:52]FM_MakeSignedData [23:58:52]FM_MakeSignedData [23:58:52]SAM_PROTO_SignData [23:58:52]wFMCommunicate request_size=4 [23:58:52]MH_SAM_APDU [23:58:52]CAPDU: 80 0D 01 02 [23:58:52]Write to MH i2c: E2 08 00 1A 26 80 0D 01 02 00 00 00 00 B9 [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:52]Read from MH i2c: E2 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 1A 26 00 90 00 B4 [23:58:52]RAPDU: 90 00 [23:58:52]wFMCommunicate OK [23:58:52]wFMCommunicate request_size=255 [23:58:52]MH_SAM_APDU [23: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 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 38 3E 00 00 00 00 07 04 06 00 8C 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 6B 01 00 00 F4 03 04 00 4A 99 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 87 02 00 35 04 06 00 E7 [23:58:52]Write to MH i2c: E2 02 01 1B 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 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 38 3E 00 00 00 00 07 04 06 00 8C 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 6B 01 00 00 F4 03 04 00 4A 99 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 87 02 00 35 04 06 00 E7 00 00 C6 [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:52]Read from MH i2c: E2 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 1B 26 00 90 00 B5 [23:58:52]RAPDU: 90 00 [23:58:52]wFMCommunicate OK [23:58:52]wFMCommunicate request_size=10 [23:58:52]MH_SAM_APDU [23:58:52]CAPDU: 80 0D 02 02 05 5A E6 A5 D3 83 [23:58:52]Write to MH i2c: E2 0D 00 1C 26 80 0D 02 02 05 00 5A E6 A5 D3 83 00 00 01 [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:52]Read from MH i2c: E2 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 1C 26 00 90 00 B6 [23:58:52]RAPDU: 90 00 [23:58:52]wFMCommunicate OK [23:58:52]wFMCommunicate request_size=4 [23:58:52]MH_SAM_APDU [23:58:52]CAPDU: 80 0D 03 02 [23:58:52]Write to MH i2c: E2 08 00 1D 26 80 0D 03 02 00 00 00 00 BE [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:52]Read from MH i2c: E2 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 0B 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 0B 00 1D 26 00 54 07 B6 2F E5 76 A1 FF 90 00 FA [23:58:52]RAPDU: 54 07 B6 2F E5 76 A1 FF 90 00 [23:58:52]wFMCommunicate OK [23:58:52]SAM_PROTO_SignData done [23:58:52]FM_MakeSignedData done [23:58:52]CreateOFDProtocolMessage [23:58:52]wFMCommunicate request_size=4 [23:58:52]MH_SAM_APDU [23:58:52]CAPDU: 80 11 00 00 [23:58:52]Write to MH i2c: E2 08 00 1E 26 80 11 00 00 00 00 00 00 BE [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:52]Read from MH i2c: E2 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 17 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 17 00 1E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [23:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:58:52]wFMCommunicate OK [23:58:52]CreateOFDProtocolMessage done [23:58:52]OFDSenderStorePacket 165881 [23:58:52]StoreOFDPacket docnum=165881 [23:58:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 02 9D 07 01 05 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 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 38 3E 00 00 00 00 07 04 06 00 8C 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 6B 01 00 00 F4 03 04 00 4A 99 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 87 02 00 35 04 06 00 E7 5A E6 A5 D3 83 54 07 B6 2F E5 76 A1 FF [23:58:52]CheckFolder [23:58:52]dirname=/storage/ofd_packets [23:58:52]CheckFolder done [23:58:52]ProducePacketName [23:58:52]name=ofd_packets/00165881 [23:58:52]NVStorageSaveData ofd_packets/00165881 [23:58:52]File name is /storage/ofd_packets/00165881 [23:58:52]Write 301 bytes [23:58:52]NVStorageSaveData done [23:58:52]OFDSenderStorePacket done [23:58:52]KKMCreateOFDPacket done [23:58:52]NVStorageSaveData kkm_last_timestamp [23:58:52]File name is /storage/kkm_last_timestamp [23:58:52]Write 4 bytes [23:58:52]NVStorageSaveData done [23:58:52]ExternCall_PrintAddStr [23:58:52]wPrintStart [23:58:52]Write to MH i2c: 01 00 00 1F 26 45 [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: 01 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: 01 07 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: 01 07 00 1F 26 00 00 00 00 00 FF 0F 5A [23:58:52]RasterBufferAndPrint [23:58:52]line Счет N : (1)220445 [23:58:52]line ИНН: 02508201610067 [23:58:52]line Контрольно-Кассовый Чек [23:58:52]line ПРОДАЖА [23:58:52]line ТРК (МРК, ГНК) : 13 [23:58:52]line Товар: 2710124130 [23:58:52]line Аи-92-К-5 [23:58:52]line 22.420 * 66.90 [23:58:52]line = 1499.90 [23:58:52]line НДС 12% НСП 1% [23:58:52]line > о реализуемом товаре [23:58:52]line ОКРУГЛЕНИЕ: -0.90 [23:58:52]line ИТОГО: 1499.00 [23:58:52]line Внесено: 1500.00 [23:58:52]line СДАЧА: 1.00 [23:58:52]line НСП 1% : 13.27 [23:58:52]line НДС 12% : 159.28 [23:58:52]line Наличными: 1499.00 [23:58:52]line Безнал.: 0.00 [23:58:52]line Место: АЗС № 161 "Партнер Нефть" [23:58:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:58:52]line СНО: Общий режим [23:58:52]line Чек 363 20.10.2024 23:59 [23:58:52]line Смена: 534 ФФД: 1.0 [23:58:52]line ЗНМ: 0300000104 [23:58:52]line РНМ: 0000000000091764 [23:58:52]line Версия ККМ: 001 [23:58:52]line ФМ: 0000000000871759 [23:58:52]line ФД: 165881 [23:58:52]line ФПД: 254377602700163 [23:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235906&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165881&fm=254377602700163&tin=02508201610067®Number=0000000000091764&sum=149900 [23:58:53]OFD Sender: Processing packet 165881 [packets to send 48, broken 47] [23:58:53]ProducePacketName [23:58:53]name=ofd_packets/00165881 [23:58:53]OFD Sender: To server: pG, [23:58:53]CommunicateWithHost lk.salyk.kg:30040 [23:58:53]ConnectInit lk.salyk.kg [23:58:53]written 0, free lines is 4095 [23:58:53]Connected sock=7 [23: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 31 37 35 39 0F 01 00 00 02 9D 07 01 05 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 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 38 3E 00 00 00 00 07 04 06 00 8C 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 6B 01 00 00 F4 03 04 00 4A 99 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 87 02 00 35 04 06 00 E7 5A E6 A5 D3 83 54 07 B6 2F E5 76 A1 FF [23:58:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6E D6 47 00 86 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 31 37 35 39 10 04 04 00 F9 87 02 00 F4 03 04 00 BA 3F 15 67 B6 04 01 00 00 DC A6 64 ED 10 B4 28 E8 [23:58:53]CommunicateWithHost err = 0 [23:58:53]CheckOFDResponse [23:58:53]1017 (14) - 77093643461234 [23:58:53]1041 (16) - 0000000000871759 [23:58:53]1040 (4) - 165881 [23:58:53]1012 (4) - 20.10.2024 17:36 [23:58:53]1206 (1) - 0 [23:58:53]OFD Sender: Remove packet 165881 [23:58:53]ProducePacketName [23:58:53]name=ofd_packets/00165881 [23:58:53]NVStorageDeleteData [23:58:53]Write to MH i2c: 01 00 00 4A 26 70 [23:58:53]Write i2c OK [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 07 00 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 07 00 4A 26 00 00 00 00 00 B0 0C 33 [23:58:53]RasterBufferAndPrint [23:58:53]line [23:58:53]line [23:58:53]line [23:58:53]line [23:58:53]line [23:58:53]written 0, free lines is 3255 [23:58:53]MH_Cut [23:58:53]Write to MH i2c: D1 01 00 51 26 01 49 [23:58:53]Write i2c OK [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: D1 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: D1 01 00 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: D1 01 00 51 26 00 48 [23:58:53]Write to MH i2c: 01 00 00 52 26 78 [23:58:53]Write i2c OK [23:58:53]MH_I2C_Read... [23:58:53]OFD Sender: No OFD packet to send [23:58:54]*** Cut start [23:58:54]*** Partial cut [23:58:54]*** CUTSNS_PIN = 1 [23:58:54]*** CUTSNS_PIN = 0 [23:58:54]*** Brake cut motor [23:58:55]Read from MH i2c: 01 [23:58:55]MH_I2C_Read... [23:58:55]*** Stop cut motor [23:58:55]*** Cut end [23:58:55]Read from MH i2c: 01 07 00 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: 01 07 00 52 26 00 00 00 00 00 FF 0F 8D [23:58:55]process_action close_receipt done [23:58:55]requested_data is exist [23:58:55]produce_requested_data [23:58:55]requested_item fm.sn is exist - process it [23:58:55]wFMCommunicate request_size=4 [23:58:55]MH_SAM_APDU [23:58:55]CAPDU: 80 11 00 00 [23:58:55]Write to MH i2c: E2 08 00 53 26 80 11 00 00 00 00 00 00 F3 [23:58:55]Write i2c OK [23:58:55]MH_I2C_Read... [23:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:55]Read from MH i2c: E2 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: E2 17 00 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: E2 17 00 53 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [23:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:58:55]wFMCommunicate OK [23:58:55]requested_item fd.num is exist - process it [23:58:55]SAM_PROTO_GetFieldsCounters [23:58:55]wFMCommunicate request_size=4 [23:58:55]MH_SAM_APDU [23:58:55]CAPDU: 80 13 00 00 [23:58:55]Write to MH i2c: E2 08 00 54 26 80 13 00 00 00 00 00 00 F6 [23:58:55]Write i2c OK [23:58:55]MH_I2C_Read... [23:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:55]Read from MH i2c: E2 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: E2 62 00 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: E2 62 00 54 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 87 02 00 0E 04 04 00 16 02 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 FC [23:58: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 87 02 00 0E 04 04 00 16 02 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:58:55]wFMCommunicate OK [23:58:55]SAM_PROTO_GetFieldsCounters done [23:58:55]requested_item shift.num is exist - process it [23:58:55]requested_item shift.opened is exist - process it [23:58:55]req_shift_opened [23:58:55]FM_GetShiftState [23:58:55]SAM_PROTO_GetShiftState [23:58:55]wFMCommunicate request_size=4 [23:58:55]MH_SAM_APDU [23:58:55]CAPDU: 80 13 01 00 [23:58:55]Write to MH i2c: E2 08 00 55 26 80 13 01 00 00 00 00 00 F8 [23:58:55]Write i2c OK [23:58:55]MH_I2C_Read... [23:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:55]Read from MH i2c: E2 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: E2 0E 00 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: E2 0E 00 55 26 00 09 00 01 71 50 14 67 00 00 00 00 90 00 40 [23:58:55]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [23:58:55]wFMCommunicate OK [23:58:55]SAM_PROTO_GetShiftState done [23:58:55]FM_GetShiftState done [23:58:55]req_shift_opened done [23:58:55]requested_item shift.open_date is exist - process it [23:58:55]req_shift_open_date [23:58:55]req_shift_open_date done [23:58:55]produce_requested_data done [23:58:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165881,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [23:58:55]process_action_free close_receipt [23:58:55]json_value_free [23:58:55]json_value_free done [23:58:55]process_json_proto returns [23:58:55]Send response to host [23:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165881,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [23:58:55]free response buf [23:58:55]execute_script done [23:58:55]execute_script returns [23:58:55]free content buf [23:58:55]Sock 5.Close socket [23:58:55]Sock 5.Thread stoped [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:07]accept exits with 6 [00:00:07]New connection [00:00:07]New thread 3066920292 created [00:00:07]Thread 3066776932 joined [00:00:07]Waiting for new connection... [00:00:07] Sock 6.Parse request [00:00:07]Sock 6.Check first char [00:00:07]Sock 6.First char is OK [00:00:07]request: POST /json_proto HTTP/1.0 [00:00:07]Method: POST [00:00:07]URL: /json_proto [00:00:07]Method is POST - this is cgi request [00:00:07]url: /json_proto [00:00:07]query_string will be loaded in cgi processing [00:00:07]execute_cgi json_proto POST (null) [00:00:07]execute_cgi path=json_proto method=POST [00:00:07]POST find Content-Length [00:00:07]Host: 172.17.53.195:8080 [00:00:07]Content-Length: 682 [00:00:07]Content-Type: application/json [00:00:07] [00:00:07]POST finish read [00:00:07]Found Content-Length = 682 [00:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:07]execute_script... [00: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)220450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:07]POST & json_proto [00:00:07]process_json_proto [00:00:07]json parsed OK: [00:00:07]protocol is kg_v1.0 [00:00:07]action value=close_receipt [00:00:07]process_action close_receipt [00:00:07]cmd_close_receipt [00:00:07]MH_GetDate [00:00:07]Write to MH i2c: F0 00 00 56 26 6B [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 09 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 09 00 56 26 00 96 99 15 67 21 48 4A 65 37 [00:00:07]GetLastDocTimeStamp 1729468746 [00:00:07]current date 1729468822 [00:00:07]FM_GetShiftState [00:00:07]SAM_PROTO_GetShiftState [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 01 00 [00:00:07]Write to MH i2c: E2 08 00 57 26 80 13 01 00 00 00 00 00 FA [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 57 26 00 09 00 01 71 50 14 67 00 00 00 00 90 00 42 [00:00:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:00:07]wFMCommunicate OK [00:00:07]SAM_PROTO_GetShiftState done [00:00:07]FM_GetShiftState done [00:00:07]opened in 1729384561 [00:00:07]opened+sec_in_day 1729470961 [00:00:07]quantity*price = 100021 [00:00:07]sum+1 = 100023 [00:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 364 21.10.2024 00:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165882 ФПД: 176900134762502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000022&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165882&fm=176900134762502&tin=02508201610067®Number=0000000000091764&sum=100000 [00:00:08]StoreToDocumentArchive [00:00:08]shift 534 fd 165882 [00:00:08]save to /storage/0534/doc_00165882 [00:00:08]save last doc name /storage/0534/doc_00165882 to /storage/kkm_last_doc_name [00:00:08]save OK [00:00:08]Clear old archive folders... [00:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:00:08]tlvbuf is 01A050E0 [00:00:08]SAM_PROTO_ClearQueue [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 09 00 00 [00:00:08]Write to MH i2c: E2 08 00 64 26 80 09 00 00 00 00 00 00 FC [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 64 26 00 90 00 FE [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]SAM_PROTO_ClearQueue done [00:00:08]KKMCreateOFDPacket [00:00:08]OFDProtocolAddRootSTLVToBuf [00:00:08]FM_MakeSignedData [00:00:08]FM_MakeSignedData [00:00:08]SAM_PROTO_SignData [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 0D 01 02 [00:00:08]Write to MH i2c: E2 08 00 65 26 80 0D 01 02 00 00 00 00 04 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 65 26 00 90 00 FF [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=255 [00:00:08]MH_SAM_APDU [00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 96 99 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 87 02 00 35 04 06 00 A0 [00:00:08]Write to MH i2c: E2 02 01 66 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 96 99 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 87 02 00 35 04 06 00 A0 00 00 0A [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 66 26 00 90 00 00 [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=10 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 0D 02 02 05 E3 C5 B1 78 06 [00:00:08]Write to MH i2c: E2 0D 00 67 26 80 0D 02 02 05 00 E3 C5 B1 78 06 00 00 E8 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 67 26 00 90 00 01 [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 0D 03 02 [00:00:08]Write to MH i2c: E2 08 00 68 26 80 0D 03 02 00 00 00 00 09 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 0B 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 0B 00 68 26 00 A5 89 01 E5 59 4F 22 81 90 00 69 [00:00:08]RAPDU: A5 89 01 E5 59 4F 22 81 90 00 [00:00:08]wFMCommunicate OK [00:00:08]SAM_PROTO_SignData done [00:00:08]FM_MakeSignedData done [00:00:08]CreateOFDProtocolMessage [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 11 00 00 [00:00:08]Write to MH i2c: E2 08 00 69 26 80 11 00 00 00 00 00 00 09 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 17 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 17 00 69 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [00:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:00:08]wFMCommunicate OK [00:00:08]CreateOFDProtocolMessage done [00:00:08]OFDSenderStorePacket 165882 [00:00:08]StoreOFDPacket docnum=165882 [00:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B4 17 07 01 0D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 96 99 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 87 02 00 35 04 06 00 A0 E3 C5 B1 78 06 A5 89 01 E5 59 4F 22 81 [00:00:08]CheckFolder [00:00:08]dirname=/storage/ofd_packets [00:00:08]CheckFolder done [00:00:08]ProducePacketName [00:00:08]name=ofd_packets/00165882 [00:00:08]NVStorageSaveData ofd_packets/00165882 [00:00:08]File name is /storage/ofd_packets/00165882 [00:00:08]Write 301 bytes [00:00:08]NVStorageSaveData done [00:00:08]OFDSenderStorePacket done [00:00:08]KKMCreateOFDPacket done [00:00:08]NVStorageSaveData kkm_last_timestamp [00:00:08]File name is /storage/kkm_last_timestamp [00:00:08]Write 4 bytes [00:00:08]NVStorageSaveData done [00:00:08]ExternCall_PrintAddStr [00:00:08]wPrintStart [00:00:08]Write to MH i2c: 01 00 00 6A 26 90 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 01 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 01 07 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 01 07 00 6A 26 00 00 00 00 00 FF 0F A5 [00:00:08]RasterBufferAndPrint [00:00:08]line Счет N : (1)220450 [00:00:08]line ИНН: 02508201610067 [00:00:08]line Контрольно-Кассовый Чек [00:00:08]line ПРОДАЖА [00:00:08]line ТРК (МРК, ГНК) : 24 [00:00:08]line Товар: 2710124500 [00:00:08]line Аи-95-К-5 [00:00:08]line 13.480 * 74.20 [00:00:08]line = 1000.22 [00:00:08]line НДС 12% НСП 1% [00:00:08]line > о реализуемом товаре [00:00:08]line ОКРУГЛЕНИЕ: -0.22 [00:00:08]line ИТОГО: 1000.00 [00:00:08]line Внесено: 1000.00 [00:00:08]line СДАЧА: 0.00 [00:00:08]line НСП 1% : 8.85 [00:00:08]line НДС 12% : 106.22 [00:00:08]line Наличными: 1000.00 [00:00:08]line Безнал.: 0.00 [00:00:08]line Место: АЗС № 161 "Партнер Нефть" [00:00:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:00:08]line СНО: Общий режим [00:00:08]line Чек 364 21.10.2024 00:00 [00:00:08]line Смена: 534 ФФД: 1.0 [00:00:08]line ЗНМ: 0300000104 [00:00:08]line РНМ: 0000000000091764 [00:00:08]line Версия ККМ: 001 [00:00:08]line ФМ: 0000000000871759 [00:00:08]line ФД: 165882 [00:00:08]line ФПД: 176900134762502 [00:00:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000022&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165882&fm=176900134762502&tin=02508201610067®Number=0000000000091764&sum=100000 [00:00:09]OFD Sender: Processing packet 165882 [packets to send 48, broken 47] [00:00:09]ProducePacketName [00:00:09]name=ofd_packets/00165882 [00:00:09]OFD Sender: To server: pG, [00:00:09]CommunicateWithHost lk.salyk.kg:30040 [00:00:09]ConnectInit lk.salyk.kg [00:00:09]written 0, free lines is 4095 [00:00:09]Connected sock=7 [00: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 31 37 35 39 0F 01 00 00 B4 17 07 01 0D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 96 99 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 87 02 00 35 04 06 00 A0 E3 C5 B1 78 06 A5 89 01 E5 59 4F 22 81 [00:00:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D2 C3 47 00 1E EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 87 02 00 F4 03 04 00 06 40 15 67 B6 04 01 00 00 0B B0 DD 80 B2 CF A3 74 [00:00:09]CommunicateWithHost err = 0 [00:00:09]CheckOFDResponse [00:00:09]1017 (14) - 77093643461234 [00:00:09]1041 (16) - 0000000000871759 [00:00:09]1040 (4) - 165882 [00:00:09]1012 (4) - 20.10.2024 17:38 [00:00:09]1206 (1) - 0 [00:00:09]OFD Sender: Remove packet 165882 [00:00:09]ProducePacketName [00:00:09]name=ofd_packets/00165882 [00:00:09]NVStorageDeleteData [00:00:09]Write to MH i2c: 01 00 00 95 26 BB [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 A8 0C 76 [00:00:09]RasterBufferAndPrint [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]written 0, free lines is 3244 [00:00:09]MH_Cut [00:00:09]Write to MH i2c: D1 01 00 9C 26 01 94 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D1 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D1 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D1 01 00 9C 26 00 93 [00:00:09]Write to MH i2c: 01 00 00 9D 26 C3 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]OFD Sender: No OFD packet to send [00:00:10]*** Cut start [00:00:10]*** Partial cut [00:00:10]*** CUTSNS_PIN = 1 [00:00:10]*** CUTSNS_PIN = 0 [00:00:10]*** Brake cut motor [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]*** Stop cut motor [00:00:11]*** Cut end [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 9D 26 00 00 00 00 00 FF 0F D8 [00:00:11]process_action close_receipt done [00:00:11]requested_data is exist [00:00:11]produce_requested_data [00:00:11]requested_item fm.sn is exist - process it [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 11 00 00 [00:00:11]Write to MH i2c: E2 08 00 9E 26 80 11 00 00 00 00 00 00 3E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 9E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [00:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:00:11]wFMCommunicate OK [00:00:11]requested_item fd.num is exist - process it [00:00:11]SAM_PROTO_GetFieldsCounters [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 00 00 [00:00:11]Write to MH i2c: E2 08 00 9F 26 80 13 00 00 00 00 00 00 41 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 62 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 62 00 9F 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 87 02 00 0E 04 04 00 16 02 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 4B [00:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 87 02 00 0E 04 04 00 16 02 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 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetFieldsCounters done [00:00:11]requested_item shift.num is exist - process it [00:00:11]requested_item shift.opened is exist - process it [00:00:11]req_shift_opened [00:00:11]FM_GetShiftState [00:00:11]SAM_PROTO_GetShiftState [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 01 00 [00:00:11]Write to MH i2c: E2 08 00 A0 26 80 13 01 00 00 00 00 00 43 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 A0 26 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8B [00:00:11]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetShiftState done [00:00:11]FM_GetShiftState done [00:00:11]req_shift_opened done [00:00:11]requested_item shift.open_date is exist - process it [00:00:11]req_shift_open_date [00:00:11]req_shift_open_date done [00:00:11]produce_requested_data done [00:00:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165882,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:00:11]process_action_free close_receipt [00:00:11]json_value_free [00:00:11]json_value_free done [00:00:11]process_json_proto returns [00:00:11]Send response to host [00:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165882,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:00:11]free response buf [00:00:11]execute_script done [00:00:11]execute_script returns [00:00:11]free content buf [00:00:11]Sock 6.Close socket [00:00:11]Sock 6.Thread stoped [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:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:26]accept exits with 5 [00:06:26]New connection [00:06:26]New thread 3066776932 created [00:06:26]Thread 3066920292 joined [00:06:26]Waiting for new connection... [00:06:26] Sock 5.Parse request [00:06:26]Sock 5.Check first char [00:06:26]Sock 5.First char is OK [00:06:26]request: POST /json_proto HTTP/1.0 [00:06:26]Method: POST [00:06:26]URL: /json_proto [00:06:26]Method is POST - this is cgi request [00:06:26]url: /json_proto [00:06:26]query_string will be loaded in cgi processing [00:06:26]execute_cgi json_proto POST (null) [00:06:26]execute_cgi path=json_proto method=POST [00:06:26]POST find Content-Length [00:06:26]Host: 172.17.53.195:8080 [00:06:26]Content-Length: 682 [00:06:26]Content-Type: application/json [00:06:26] [00:06:26]POST finish read [00:06:26]Found Content-Length = 682 [00:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 52.320, "sum" : 3500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:26]execute_script... [00:06: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)220451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 52.320, "sum" : 3500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:26]POST & json_proto [00:06:26]process_json_proto [00:06:26]json parsed OK: [00:06:26]protocol is kg_v1.0 [00:06:26]action value=close_receipt [00:06:26]process_action close_receipt [00:06:26]cmd_close_receipt [00:06:26]MH_GetDate [00:06:26]Write to MH i2c: F0 00 00 A1 26 B6 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 09 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 09 00 A1 26 00 11 9B 15 67 21 48 4A 65 FF [00:06:26]GetLastDocTimeStamp 1729468822 [00:06:26]current date 1729469201 [00:06:26]FM_GetShiftState [00:06:26]SAM_PROTO_GetShiftState [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 13 01 00 [00:06:26]Write to MH i2c: E2 08 00 A2 26 80 13 01 00 00 00 00 00 45 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 0E 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 0E 00 A2 26 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8D [00:06:26]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:06:26]wFMCommunicate OK [00:06:26]SAM_PROTO_GetShiftState done [00:06:26]FM_GetShiftState done [00:06:26]opened in 1729384561 [00:06:26]opened+sec_in_day 1729470961 [00:06:26]quantity*price = 350020 [00:06:26]sum+1 = 350022 [00:06:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.97 НДС 12% : 371.70 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 365 21.10.2024 00:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165883 ФПД: 83307924740055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000641&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165883&fm=83307924740055&tin=02508201610067®Number=0000000000091764&sum=350000 [00:06:27]StoreToDocumentArchive [00:06:27]shift 534 fd 165883 [00:06:27]save to /storage/0534/doc_00165883 [00:06:27]save last doc name /storage/0534/doc_00165883 to /storage/kkm_last_doc_name [00:06:27]save OK [00:06:27]Clear old archive folders... [00:06:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:06:27]tlvbuf is 0162CF10 [00:06:27]SAM_PROTO_ClearQueue [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 09 00 00 [00:06:27]Write to MH i2c: E2 08 00 AF 26 80 09 00 00 00 00 00 00 47 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 AF 26 00 90 00 49 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_ClearQueue done [00:06:27]KKMCreateOFDPacket [00:06:27]OFDProtocolAddRootSTLVToBuf [00:06:27]FM_MakeSignedData [00:06:27]FM_MakeSignedData [00:06:27]SAM_PROTO_SignData [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 0D 01 02 [00:06:27]Write to MH i2c: E2 08 00 B0 26 80 0D 01 02 00 00 00 00 4F [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 B0 26 00 90 00 4A [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=255 [00:06:27]MH_SAM_APDU [00:06: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 60 CC 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 45 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 91 00 00 00 00 07 04 06 00 30 57 05 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 11 9B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 87 02 00 35 04 06 00 4B [00:06:27]Write to MH i2c: E2 02 01 B1 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 60 CC 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 45 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 91 00 00 00 00 07 04 06 00 30 57 05 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 11 9B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 87 02 00 35 04 06 00 4B 00 00 E6 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 B1 26 00 90 00 4B [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=10 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 0D 02 02 05 C4 A3 42 D7 D7 [00:06:27]Write to MH i2c: E2 0D 00 B2 26 80 0D 02 02 05 00 C4 A3 42 D7 D7 00 00 B3 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 B2 26 00 90 00 4C [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 0D 03 02 [00:06:27]Write to MH i2c: E2 08 00 B3 26 80 0D 03 02 00 00 00 00 54 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0B 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0B 00 B3 26 00 2E 9A 23 5F 52 A1 DB 70 90 00 DD [00:06:27]RAPDU: 2E 9A 23 5F 52 A1 DB 70 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_SignData done [00:06:27]FM_MakeSignedData done [00:06:27]CreateOFDProtocolMessage [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 11 00 00 [00:06:27]Write to MH i2c: E2 08 00 B4 26 80 11 00 00 00 00 00 00 54 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 17 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 17 00 B4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [00:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:06:27]wFMCommunicate OK [00:06:27]CreateOFDProtocolMessage done [00:06:27]OFDSenderStorePacket 165883 [00:06:27]StoreOFDPacket docnum=165883 [00:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 0D 07 01 CF 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 60 CC 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 45 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 91 00 00 00 00 07 04 06 00 30 57 05 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 11 9B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 87 02 00 35 04 06 00 4B C4 A3 42 D7 D7 2E 9A 23 5F 52 A1 DB 70 [00:06:27]CheckFolder [00:06:27]dirname=/storage/ofd_packets [00:06:27]CheckFolder done [00:06:27]ProducePacketName [00:06:27]name=ofd_packets/00165883 [00:06:27]NVStorageSaveData ofd_packets/00165883 [00:06:27]File name is /storage/ofd_packets/00165883 [00:06:27]Write 301 bytes [00:06:27]NVStorageSaveData done [00:06:27]OFDSenderStorePacket done [00:06:27]KKMCreateOFDPacket done [00:06:27]NVStorageSaveData kkm_last_timestamp [00:06:27]File name is /storage/kkm_last_timestamp [00:06:27]Write 4 bytes [00:06:27]NVStorageSaveData done [00:06:27]ExternCall_PrintAddStr [00:06:27]wPrintStart [00:06:27]Write to MH i2c: 01 00 00 B5 26 DB [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: 01 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: 01 07 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: 01 07 00 B5 26 00 00 00 00 00 FF 0F F0 [00:06:27]RasterBufferAndPrint [00:06:27]line Счет N : (1)220451 [00:06:27]line ИНН: 02508201610067 [00:06:27]line Контрольно-Кассовый Чек [00:06:27]line ПРОДАЖА [00:06:27]line ТРК (МРК, ГНК) : 23 [00:06:27]line Товар: 2710124130 [00:06:27]line Аи-92-К-5 [00:06:27]line 52.320 * 66.90 [00:06:27]line = 3500.21 [00:06:27]line НДС 12% НСП 1% [00:06:27]line > о реализуемом товаре [00:06:27]line ОКРУГЛЕНИЕ: -0.21 [00:06:27]line ИТОГО: 3500.00 [00:06:27]line Внесено: 3500.00 [00:06:27]line СДАЧА: 0.00 [00:06:27]line НСП 1% : 30.97 [00:06:27]line НДС 12% : 371.70 [00:06:27]line Наличными: 3500.00 [00:06:27]line Безнал.: 0.00 [00:06:27]line Место: АЗС № 161 "Партнер Нефть" [00:06:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:06:27]line СНО: Общий режим [00:06:27]line Чек 365 21.10.2024 00:06 [00:06:27]line Смена: 534 ФФД: 1.0 [00:06:27]line ЗНМ: 0300000104 [00:06:27]line РНМ: 0000000000091764 [00:06:27]line Версия ККМ: 001 [00:06:27]line ФМ: 0000000000871759 [00:06:27]line ФД: 165883 [00:06:27]line ФПД: 83307924740055 [00:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000641&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165883&fm=83307924740055&tin=02508201610067®Number=0000000000091764&sum=350000 [00:06:28]OFD Sender: Processing packet 165883 [packets to send 48, broken 47] [00:06:28]ProducePacketName [00:06:28]name=ofd_packets/00165883 [00:06:28]OFD Sender: To server: pG, [00:06:28]CommunicateWithHost lk.salyk.kg:30040 [00:06:28]ConnectInit lk.salyk.kg [00:06:28]written 0, free lines is 4095 [00:06:28]Connected sock=7 [00:06:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 0D 07 01 CF 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 60 CC 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 45 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 91 00 00 00 00 07 04 06 00 30 57 05 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 11 9B 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 87 02 00 35 04 06 00 4B C4 A3 42 D7 D7 2E 9A 23 5F 52 A1 DB 70 [00:06:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D7 17 47 00 29 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 87 02 00 F4 03 04 00 81 41 15 67 B6 04 01 00 00 4E FF 25 A0 AB 87 E1 67 [00:06:28]CommunicateWithHost err = 0 [00:06:28]CheckOFDResponse [00:06:28]1017 (14) - 77093643461234 [00:06:28]1041 (16) - 0000000000871759 [00:06:28]1040 (4) - 165883 [00:06:28]1012 (4) - 20.10.2024 17:44 [00:06:28]1206 (1) - 0 [00:06:28]OFD Sender: Remove packet 165883 [00:06:28]ProducePacketName [00:06:28]name=ofd_packets/00165883 [00:06:28]NVStorageDeleteData [00:06:28]Write to MH i2c: 01 00 00 E0 26 06 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: 01 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: 01 07 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: 01 07 00 E0 26 00 00 00 00 00 AD 0C C6 [00:06:28]RasterBufferAndPrint [00:06:28]line [00:06:28]line [00:06:28]line [00:06:28]line [00:06:28]line [00:06:28]written 0, free lines is 3255 [00:06:28]MH_Cut [00:06:28]Write to MH i2c: D1 01 00 E7 26 01 DF [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: D1 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: D1 01 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: D1 01 00 E7 26 00 DE [00:06:28]Write to MH i2c: 01 00 00 E8 26 0E [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]OFD Sender: No OFD packet to send [00:06:29]*** Cut start [00:06:29]*** Partial cut [00:06:29]*** CUTSNS_PIN = 1 [00:06:29]*** CUTSNS_PIN = 0 [00:06:29]*** Brake cut motor [00:06:30]Read from MH i2c: 01 [00:06:30]MH_I2C_Read... [00:06:30]*** Stop cut motor [00:06:30]*** Cut end [00:06:30]Read from MH i2c: 01 07 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: 01 07 00 E8 26 00 00 00 00 00 FF 0F 23 [00:06:30]process_action close_receipt done [00:06:30]requested_data is exist [00:06:30]produce_requested_data [00:06:30]requested_item fm.sn is exist - process it [00:06:30]wFMCommunicate request_size=4 [00:06:30]MH_SAM_APDU [00:06:30]CAPDU: 80 11 00 00 [00:06:30]Write to MH i2c: E2 08 00 E9 26 80 11 00 00 00 00 00 00 89 [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:30]Read from MH i2c: E2 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 17 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 17 00 E9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [00:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:06:30]wFMCommunicate OK [00:06:30]requested_item fd.num is exist - process it [00:06:30]SAM_PROTO_GetFieldsCounters [00:06:30]wFMCommunicate request_size=4 [00:06:30]MH_SAM_APDU [00:06:30]CAPDU: 80 13 00 00 [00:06:30]Write to MH i2c: E2 08 00 EA 26 80 13 00 00 00 00 00 00 8C [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:30]Read from MH i2c: E2 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 62 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 62 00 EA 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 87 02 00 0E 04 04 00 16 02 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 9A [00:06:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 87 02 00 0E 04 04 00 16 02 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:06:30]wFMCommunicate OK [00:06:30]SAM_PROTO_GetFieldsCounters done [00:06:30]requested_item shift.num is exist - process it [00:06:30]requested_item shift.opened is exist - process it [00:06:30]req_shift_opened [00:06:30]FM_GetShiftState [00:06:30]SAM_PROTO_GetShiftState [00:06:30]wFMCommunicate request_size=4 [00:06:30]MH_SAM_APDU [00:06:30]CAPDU: 80 13 01 00 [00:06:30]Write to MH i2c: E2 08 00 EB 26 80 13 01 00 00 00 00 00 8E [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:30]Read from MH i2c: E2 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 0E 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: E2 0E 00 EB 26 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D6 [00:06:30]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:06:30]wFMCommunicate OK [00:06:30]SAM_PROTO_GetShiftState done [00:06:30]FM_GetShiftState done [00:06:30]req_shift_opened done [00:06:30]requested_item shift.open_date is exist - process it [00:06:30]req_shift_open_date [00:06:30]req_shift_open_date done [00:06:30]produce_requested_data done [00:06:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165883,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:06:30]process_action_free close_receipt [00:06:30]json_value_free [00:06:30]json_value_free done [00:06:30]process_json_proto returns [00:06:30]Send response to host [00:06:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165883,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:06:30]free response buf [00:06:30]execute_script done [00:06:30]execute_script returns [00:06:30]free content buf [00:06:30]Sock 5.Close socket [00:06:30]Sock 5.Thread stoped [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:28]accept exits with 6 [00:12:28]New connection [00:12:28]New thread 3066920292 created [00:12:28]Thread 3066776932 joined [00:12:28]Waiting for new connection... [00:12:28] Sock 6.Parse request [00:12:28]Sock 6.Check first char [00:12:28]Sock 6.First char is OK [00:12:28]request: POST /json_proto HTTP/1.0 [00:12:28]Method: POST [00:12:28]URL: /json_proto [00:12:28]Method is POST - this is cgi request [00:12:28]url: /json_proto [00:12:28]query_string will be loaded in cgi processing [00:12:28]execute_cgi json_proto POST (null) [00:12:28]execute_cgi path=json_proto method=POST [00:12:28]POST find Content-Length [00:12:28]Host: 172.17.53.195:8080 [00:12:28]Content-Length: 682 [00:12:28]Content-Type: application/json [00:12:28] [00:12:28]POST finish read [00:12:28]Found Content-Length = 682 [00:12:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 27.360, "sum" : 1830.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1830.00, "payments": [ { "type": 0, "sum" : 1830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:28]execute_script... [00:12: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)220452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 27.360, "sum" : 1830.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1830.00, "payments": [ { "type": 0, "sum" : 1830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:28]POST & json_proto [00:12:28]process_json_proto [00:12:28]json parsed OK: [00:12:28]protocol is kg_v1.0 [00:12:28]action value=close_receipt [00:12:28]process_action close_receipt [00:12:28]cmd_close_receipt [00:12:28]MH_GetDate [00:12:28]Write to MH i2c: F0 00 00 EC 26 01 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: F0 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: F0 09 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: F0 09 00 EC 26 00 7C 9C 15 67 21 48 4A 65 B6 [00:12:28]GetLastDocTimeStamp 1729469201 [00:12:28]current date 1729469564 [00:12:28]FM_GetShiftState [00:12:28]SAM_PROTO_GetShiftState [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 13 01 00 [00:12:28]Write to MH i2c: E2 08 00 ED 26 80 13 01 00 00 00 00 00 90 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 0E 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 0E 00 ED 26 00 09 00 01 71 50 14 67 00 00 00 00 90 00 D8 [00:12:28]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:12:28]wFMCommunicate OK [00:12:28]SAM_PROTO_GetShiftState done [00:12:28]FM_GetShiftState done [00:12:28]opened in 1729384561 [00:12:28]opened+sec_in_day 1729470961 [00:12:28]quantity*price = 183038 [00:12:28]sum+1 = 183039 [00:12:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1830.00 Внесено: 2000.00 СДАЧА: 170.00 НСП 1% : 16.20 НДС 12% : 194.38 Наличными: 1830.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 366 21.10.2024 00:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165884 ФПД: 223894777833791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001244&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165884&fm=223894777833791&tin=02508201610067®Number=0000000000091764&sum=183000 [00:12:30]StoreToDocumentArchive [00:12:30]shift 534 fd 165884 [00:12:30]save to /storage/0534/doc_00165884 [00:12:30]save last doc name /storage/0534/doc_00165884 to /storage/kkm_last_doc_name [00:12:30]save OK [00:12:30]Clear old archive folders... [00:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:12:30]tlvbuf is 0165D770 [00:12:30]SAM_PROTO_ClearQueue [00:12:30]wFMCommunicate request_size=4 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 09 00 00 [00:12:30]Write to MH i2c: E2 08 00 FA 26 80 09 00 00 00 00 00 00 92 [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 03 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 03 00 FA 26 00 90 00 94 [00:12:30]RAPDU: 90 00 [00:12:30]wFMCommunicate OK [00:12:30]SAM_PROTO_ClearQueue done [00:12:30]KKMCreateOFDPacket [00:12:30]OFDProtocolAddRootSTLVToBuf [00:12:30]FM_MakeSignedData [00:12:30]FM_MakeSignedData [00:12:30]SAM_PROTO_SignData [00:12:30]wFMCommunicate request_size=4 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 0D 01 02 [00:12:30]Write to MH i2c: E2 08 00 FB 26 80 0D 01 02 00 00 00 00 9A [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 03 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 03 00 FB 26 00 90 00 95 [00:12:30]RAPDU: 90 00 [00:12:30]wFMCommunicate OK [00:12:30]wFMCommunicate request_size=255 [00:12:30]MH_SAM_APDU [00:12: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 6A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE CA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 4B 00 00 00 00 07 04 06 00 D8 CA 02 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 7C 9C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 87 02 00 35 04 06 00 CB [00:12:30]Write to MH i2c: E2 02 01 FC 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 E0 6A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE CA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 4B 00 00 00 00 07 04 06 00 D8 CA 02 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 7C 9C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 87 02 00 35 04 06 00 CB 00 00 41 [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 03 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 03 00 FC 26 00 90 00 96 [00:12:30]RAPDU: 90 00 [00:12:30]wFMCommunicate OK [00:12:30]wFMCommunicate request_size=10 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 0D 02 02 05 A1 90 B3 29 3F [00:12:30]Write to MH i2c: E2 0D 00 FD 26 80 0D 02 02 05 00 A1 90 B3 29 3F 00 00 F3 [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 03 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 03 00 FD 26 00 90 00 97 [00:12:30]RAPDU: 90 00 [00:12:30]wFMCommunicate OK [00:12:30]wFMCommunicate request_size=4 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 0D 03 02 [00:12:30]Write to MH i2c: E2 08 00 FE 26 80 0D 03 02 00 00 00 00 9F [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 0B 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 0B 00 FE 26 00 5C 3A FF 0A AA 12 10 C9 90 00 D4 [00:12:30]RAPDU: 5C 3A FF 0A AA 12 10 C9 90 00 [00:12:30]wFMCommunicate OK [00:12:30]SAM_PROTO_SignData done [00:12:30]FM_MakeSignedData done [00:12:30]CreateOFDProtocolMessage [00:12:30]wFMCommunicate request_size=4 [00:12:30]MH_SAM_APDU [00:12:30]CAPDU: 80 11 00 00 [00:12:30]Write to MH i2c: E2 08 00 FF 26 80 11 00 00 00 00 00 00 9F [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:30]Read from MH i2c: E2 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 17 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: E2 17 00 FF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [00:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:12:30]wFMCommunicate OK [00:12:30]CreateOFDProtocolMessage done [00:12:30]OFDSenderStorePacket 165884 [00:12:30]StoreOFDPacket docnum=165884 [00:12:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 F7 07 01 64 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE CA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 4B 00 00 00 00 07 04 06 00 D8 CA 02 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 7C 9C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 87 02 00 35 04 06 00 CB A1 90 B3 29 3F 5C 3A FF 0A AA 12 10 C9 [00:12:30]CheckFolder [00:12:30]dirname=/storage/ofd_packets [00:12:30]CheckFolder done [00:12:30]ProducePacketName [00:12:30]name=ofd_packets/00165884 [00:12:30]NVStorageSaveData ofd_packets/00165884 [00:12:30]File name is /storage/ofd_packets/00165884 [00:12:30]Write 301 bytes [00:12:30]NVStorageSaveData done [00:12:30]OFDSenderStorePacket done [00:12:30]KKMCreateOFDPacket done [00:12:30]NVStorageSaveData kkm_last_timestamp [00:12:30]File name is /storage/kkm_last_timestamp [00:12:30]Write 4 bytes [00:12:30]NVStorageSaveData done [00:12:30]ExternCall_PrintAddStr [00:12:30]wPrintStart [00:12:30]Write to MH i2c: 01 00 00 00 27 27 [00:12:30]Write i2c OK [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: 01 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: 01 07 00 [00:12:30]MH_I2C_Read... [00:12:30]Read from MH i2c: 01 07 00 00 27 00 00 00 00 00 FF 0F 3C [00:12:30]RasterBufferAndPrint [00:12:30]line Счет N : (1)220452 [00:12:30]line ИНН: 02508201610067 [00:12:30]line Контрольно-Кассовый Чек [00:12:30]line ПРОДАЖА [00:12:30]line ТРК (МРК, ГНК) : 33 [00:12:30]line Товар: 2710124130 [00:12:30]line Аи-92-К-5 [00:12:30]line 27.360 * 66.90 [00:12:30]line = 1830.38 [00:12:30]line НДС 12% НСП 1% [00:12:30]line > о реализуемом товаре [00:12:30]line ОКРУГЛЕНИЕ: -0.38 [00:12:30]line ИТОГО: 1830.00 [00:12:30]line Внесено: 2000.00 [00:12:30]line СДАЧА: 170.00 [00:12:30]line НСП 1% : 16.20 [00:12:30]line НДС 12% : 194.38 [00:12:30]line Наличными: 1830.00 [00:12:30]line Безнал.: 0.00 [00:12:30]line Место: АЗС № 161 "Партнер Нефть" [00:12:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:12:30]line СНО: Общий режим [00:12:30]line Чек 366 21.10.2024 00:12 [00:12:30]line Смена: 534 ФФД: 1.0 [00:12:30]line ЗНМ: 0300000104 [00:12:30]line РНМ: 0000000000091764 [00:12:30]line Версия ККМ: 001 [00:12:30]line ФМ: 0000000000871759 [00:12:30]line ФД: 165884 [00:12:30]line ФПД: 223894777833791 [00:12:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001244&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165884&fm=223894777833791&tin=02508201610067®Number=0000000000091764&sum=183000 [00:12:30]OFD Sender: Processing packet 165884 [packets to send 48, broken 47] [00:12:30]ProducePacketName [00:12:30]name=ofd_packets/00165884 [00:12:30]OFD Sender: To server: pG, [00:12:30]CommunicateWithHost lk.salyk.kg:30040 [00:12:30]ConnectInit lk.salyk.kg [00:12:30]written 0, free lines is 4095 [00:12:31]Connected sock=7 [00:12:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 F7 07 01 64 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE CA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 4B 00 00 00 00 07 04 06 00 D8 CA 02 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 7C 9C 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 87 02 00 35 04 06 00 CB A1 90 B3 29 3F 5C 3A FF 0A AA 12 10 C9 [00:12:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 00 D8 47 00 F2 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 31 37 35 39 10 04 04 00 FC 87 02 00 F4 03 04 00 EC 42 15 67 B6 04 01 00 00 A6 D3 C0 93 49 C5 F2 DF [00:12:31]CommunicateWithHost err = 0 [00:12:31]CheckOFDResponse [00:12:31]1017 (14) - 77093643461234 [00:12:31]1041 (16) - 0000000000871759 [00:12:31]1040 (4) - 165884 [00:12:31]1012 (4) - 20.10.2024 17:50 [00:12:31]1206 (1) - 0 [00:12:31]OFD Sender: Remove packet 165884 [00:12:31]ProducePacketName [00:12:31]name=ofd_packets/00165884 [00:12:31]NVStorageDeleteData [00:12:31]Write to MH i2c: 01 00 00 2B 27 52 [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: 01 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: 01 07 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: 01 07 00 2B 27 00 00 00 00 00 BB 0C 20 [00:12:31]RasterBufferAndPrint [00:12:31]line [00:12:31]line [00:12:31]line [00:12:31]line [00:12:31]line [00:12:31]written 0, free lines is 3266 [00:12:31]MH_Cut [00:12:31]Write to MH i2c: D1 01 00 32 27 01 2B [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: D1 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: D1 01 00 [00:12:31]MH_I2C_Read... [00:12:31]Read from MH i2c: D1 01 00 32 27 00 2A [00:12:31]Write to MH i2c: 01 00 00 33 27 5A [00:12:31]Write i2c OK [00:12:31]MH_I2C_Read... [00:12:31]OFD Sender: No OFD packet to send [00:12:32]*** Cut start [00:12:32]*** Partial cut [00:12:32]*** CUTSNS_PIN = 1 [00:12:32]*** CUTSNS_PIN = 0 [00:12:32]*** Brake cut motor [00:12:32]Read from MH i2c: 01 [00:12:32]MH_I2C_Read... [00:12:32]*** Stop cut motor [00:12:32]*** Cut end [00:12:32]Read from MH i2c: 01 07 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: 01 07 00 33 27 00 00 00 00 00 FF 0F 6F [00:12:32]process_action close_receipt done [00:12:32]requested_data is exist [00:12:32]produce_requested_data [00:12:32]requested_item fm.sn is exist - process it [00:12:32]wFMCommunicate request_size=4 [00:12:32]MH_SAM_APDU [00:12:32]CAPDU: 80 11 00 00 [00:12:32]Write to MH i2c: E2 08 00 34 27 80 11 00 00 00 00 00 00 D5 [00:12:32]Write i2c OK [00:12:32]MH_I2C_Read... [00:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:32]Read from MH i2c: E2 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 17 00 [00:12:32]MH_I2C_Read... [00:12:32]Read from MH i2c: E2 17 00 34 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [00:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:12:32]wFMCommunicate OK [00:12:32]requested_item fd.num is exist - process it [00:12:32]SAM_PROTO_GetFieldsCounters [00:12:32]wFMCommunicate request_size=4 [00:12:32]MH_SAM_APDU [00:12:32]CAPDU: 80 13 00 00 [00:12:32]Write to MH i2c: E2 08 00 35 27 80 13 00 00 00 00 00 00 D8 [00:12:32]Write i2c OK [00:12:32]MH_I2C_Read... [00:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:33]Read from MH i2c: E2 [00:12:33]MH_I2C_Read... [00:12:33]Read from MH i2c: E2 62 00 [00:12:33]MH_I2C_Read... [00:12:33]Read from MH i2c: E2 62 00 35 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 87 02 00 0E 04 04 00 16 02 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 EA [00:12:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 87 02 00 0E 04 04 00 16 02 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:12:33]wFMCommunicate OK [00:12:33]SAM_PROTO_GetFieldsCounters done [00:12:33]requested_item shift.num is exist - process it [00:12:33]requested_item shift.opened is exist - process it [00:12:33]req_shift_opened [00:12:33]FM_GetShiftState [00:12:33]SAM_PROTO_GetShiftState [00:12:33]wFMCommunicate request_size=4 [00:12:33]MH_SAM_APDU [00:12:33]CAPDU: 80 13 01 00 [00:12:33]Write to MH i2c: E2 08 00 36 27 80 13 01 00 00 00 00 00 DA [00:12:33]Write i2c OK [00:12:33]MH_I2C_Read... [00:12:33]Read from MH i2c: E2 [00:12:33]MH_I2C_Read... [00:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:33]Read from MH i2c: E2 0E 00 [00:12:33]MH_I2C_Read... [00:12:33]Read from MH i2c: E2 0E 00 36 27 00 09 00 01 71 50 14 67 00 00 00 00 90 00 22 [00:12:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:12:33]wFMCommunicate OK [00:12:33]SAM_PROTO_GetShiftState done [00:12:33]FM_GetShiftState done [00:12:33]req_shift_opened done [00:12:33]requested_item shift.open_date is exist - process it [00:12:33]req_shift_open_date [00:12:33]req_shift_open_date done [00:12:33]produce_requested_data done [00:12:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165884,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:12:33]process_action_free close_receipt [00:12:33]json_value_free [00:12:33]json_value_free done [00:12:33]process_json_proto returns [00:12:33]Send response to host [00:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165884,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:12:33]free response buf [00:12:33]execute_script done [00:12:33]execute_script returns [00:12:33]free content buf [00:12:33]Sock 6.Close socket [00:12:33]Sock 6.Thread stoped [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:14]accept exits with 5 [00:16:14]New connection [00:16:14]New thread 3066776932 created [00:16:14]Thread 3066920292 joined [00:16:14]Waiting for new connection... [00:16:14] Sock 5.Parse request [00:16:14]Sock 5.Check first char [00:16:14]Sock 5.First char is OK [00:16:14]request: POST /json_proto HTTP/1.0 [00:16:14]Method: POST [00:16:14]URL: /json_proto [00:16:14]Method is POST - this is cgi request [00:16:14]url: /json_proto [00:16:14]query_string will be loaded in cgi processing [00:16:14]execute_cgi json_proto POST (null) [00:16:14]execute_cgi path=json_proto method=POST [00:16:14]POST find Content-Length [00:16:14]Host: 172.17.53.195:8080 [00:16:14]Content-Length: 677 [00:16:14]Content-Type: application/json [00:16:14] [00:16:14]POST finish read [00:16:14]Found Content-Length = 677 [00:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:14]execute_script... [00:16: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)220453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:14]POST & json_proto [00:16:14]process_json_proto [00:16:14]json parsed OK: [00:16:14]protocol is kg_v1.0 [00:16:14]action value=close_receipt [00:16:14]process_action close_receipt [00:16:14]cmd_close_receipt [00:16:14]MH_GetDate [00:16:14]Write to MH i2c: F0 00 00 37 27 4D [00:16:14]Write i2c OK [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: F0 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: F0 09 00 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: F0 09 00 37 27 00 5E 9D 15 67 21 48 4A 65 E5 [00:16:14]GetLastDocTimeStamp 1729469564 [00:16:14]current date 1729469790 [00:16:14]FM_GetShiftState [00:16:14]SAM_PROTO_GetShiftState [00:16:14]wFMCommunicate request_size=4 [00:16:14]MH_SAM_APDU [00:16:14]CAPDU: 80 13 01 00 [00:16:14]Write to MH i2c: E2 08 00 38 27 80 13 01 00 00 00 00 00 DC [00:16:14]Write i2c OK [00:16:14]MH_I2C_Read... [00:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:14]Read from MH i2c: E2 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 0E 00 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 0E 00 38 27 00 09 00 01 71 50 14 67 00 00 00 00 90 00 24 [00:16:14]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:16:14]wFMCommunicate OK [00:16:14]SAM_PROTO_GetShiftState done [00:16:14]FM_GetShiftState done [00:16:14]opened in 1729384561 [00:16:14]opened+sec_in_day 1729470961 [00:16:14]quantity*price = 50010 [00:16:14]sum+1 = 50012 [00:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 367 21.10.2024 00:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165885 ФПД: 144553131376571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001630&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165885&fm=144553131376571&tin=02508201610067®Number=0000000000091764&sum=50000 [00:16:16]StoreToDocumentArchive [00:16:16]shift 534 fd 165885 [00:16:16]save to /storage/0534/doc_00165885 [00:16:16]save last doc name /storage/0534/doc_00165885 to /storage/kkm_last_doc_name [00:16:16]save OK [00:16:16]Clear old archive folders... [00:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:16:16]tlvbuf is 014DA890 [00:16:16]SAM_PROTO_ClearQueue [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 09 00 00 [00:16:16]Write to MH i2c: E2 08 00 45 27 80 09 00 00 00 00 00 00 DE [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 45 27 00 90 00 E0 [00:16:16]RAPDU: 90 00 [00:16:16]wFMCommunicate OK [00:16:16]SAM_PROTO_ClearQueue done [00:16:16]KKMCreateOFDPacket [00:16:16]OFDProtocolAddRootSTLVToBuf [00:16:16]FM_MakeSignedData [00:16:16]FM_MakeSignedData [00:16:16]SAM_PROTO_SignData [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 0D 01 02 [00:16:16]Write to MH i2c: E2 08 00 46 27 80 0D 01 02 00 00 00 00 E6 [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 46 27 00 90 00 E1 [00:16:16]RAPDU: 90 00 [00:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=255 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 5E 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 87 02 00 35 04 06 00 83 [00:16:16]Write to MH i2c: E2 02 01 47 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 5E 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 87 02 00 35 04 06 00 83 00 00 5C [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 47 27 00 90 00 E2 [00:16:16]RAPDU: 90 00 [00:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=10 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 0D 02 02 05 78 66 0B FF BB [00:16:16]Write to MH i2c: E2 0D 00 48 27 80 0D 02 02 05 00 78 66 0B FF BB 00 00 96 [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 48 27 00 90 00 E3 [00:16:16]RAPDU: 90 00 [00:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 0D 03 02 [00:16:16]Write to MH i2c: E2 08 00 49 27 80 0D 03 02 00 00 00 00 EB [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 0B 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 0B 00 49 27 00 7C 6A FC 4E 2D C3 F2 0F 90 00 0D [00:16:16]RAPDU: 7C 6A FC 4E 2D C3 F2 0F 90 00 [00:16:16]wFMCommunicate OK [00:16:16]SAM_PROTO_SignData done [00:16:16]FM_MakeSignedData done [00:16:16]CreateOFDProtocolMessage [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 11 00 00 [00:16:16]Write to MH i2c: E2 08 00 4A 27 80 11 00 00 00 00 00 00 EB [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 17 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 17 00 4A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [00:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:16:16]wFMCommunicate OK [00:16:16]CreateOFDProtocolMessage done [00:16:16]OFDSenderStorePacket 165885 [00:16:16]StoreOFDPacket docnum=165885 [00:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 93 6A 07 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 5E 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 87 02 00 35 04 06 00 83 78 66 0B FF BB 7C 6A FC 4E 2D C3 F2 0F [00:16:16]CheckFolder [00:16:16]dirname=/storage/ofd_packets [00:16:16]CheckFolder done [00:16:16]ProducePacketName [00:16:16]name=ofd_packets/00165885 [00:16:16]NVStorageSaveData ofd_packets/00165885 [00:16:16]File name is /storage/ofd_packets/00165885 [00:16:16]Write 301 bytes [00:16:16]NVStorageSaveData done [00:16:16]OFDSenderStorePacket done [00:16:16]KKMCreateOFDPacket done [00:16:16]NVStorageSaveData kkm_last_timestamp [00:16:16]File name is /storage/kkm_last_timestamp [00:16:16]Write 4 bytes [00:16:16]NVStorageSaveData done [00:16:16]ExternCall_PrintAddStr [00:16:16]wPrintStart [00:16:16]Write to MH i2c: 01 00 00 4B 27 72 [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: 01 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: 01 07 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: 01 07 00 4B 27 00 00 00 00 00 FF 0F 87 [00:16:16]RasterBufferAndPrint [00:16:16]line Счет N : (1)220453 [00:16:16]line ИНН: 02508201610067 [00:16:16]line Контрольно-Кассовый Чек [00:16:16]line ПРОДАЖА [00:16:16]line ТРК (МРК, ГНК) : 24 [00:16:16]line Товар: 2710124500 [00:16:16]line Аи-95-К-5 [00:16:16]line 6.740 * 74.20 [00:16:16]line = 500.11 [00:16:16]line НДС 12% НСП 1% [00:16:16]line > о реализуемом товаре [00:16:16]line ОКРУГЛЕНИЕ: -0.11 [00:16:16]line ИТОГО: 500.00 [00:16:16]line Внесено: 500.00 [00:16:16]line СДАЧА: 0.00 [00:16:16]line НСП 1% : 4.43 [00:16:16]line НДС 12% : 53.11 [00:16:16]line Наличными: 500.00 [00:16:16]line Безнал.: 0.00 [00:16:16]line Место: АЗС № 161 "Партнер Нефть" [00:16:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:16:16]line СНО: Общий режим [00:16:16]line Чек 367 21.10.2024 00:16 [00:16:16]line Смена: 534 ФФД: 1.0 [00:16:16]line ЗНМ: 0300000104 [00:16:16]line РНМ: 0000000000091764 [00:16:16]line Версия ККМ: 001 [00:16:16]line ФМ: 0000000000871759 [00:16:16]line ФД: 165885 [00:16:16]line ФПД: 144553131376571 [00:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001630&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165885&fm=144553131376571&tin=02508201610067®Number=0000000000091764&sum=50000 [00:16:16]OFD Sender: Processing packet 165885 [packets to send 48, broken 47] [00:16:16]ProducePacketName [00:16:16]name=ofd_packets/00165885 [00:16:16]OFD Sender: To server: pG, [00:16:16]CommunicateWithHost lk.salyk.kg:30040 [00:16:16]ConnectInit lk.salyk.kg [00:16:16]written 0, free lines is 4095 [00:16:16]Connected sock=7 [00:16:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 93 6A 07 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 5E 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 87 02 00 35 04 06 00 83 78 66 0B FF BB 7C 6A FC 4E 2D C3 F2 0F [00:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D2 FC 47 00 9D 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 31 37 35 39 10 04 04 00 FD 87 02 00 F4 03 04 00 CE 43 15 67 B6 04 01 00 00 A4 08 02 8F F3 48 82 C9 [00:16:17]CommunicateWithHost err = 0 [00:16:17]CheckOFDResponse [00:16:17]1017 (14) - 77093643461234 [00:16:17]1041 (16) - 0000000000871759 [00:16:17]1040 (4) - 165885 [00:16:17]1012 (4) - 20.10.2024 17:54 [00:16:17]1206 (1) - 0 [00:16:17]OFD Sender: Remove packet 165885 [00:16:17]ProducePacketName [00:16:17]name=ofd_packets/00165885 [00:16:17]NVStorageDeleteData [00:16:17]Write to MH i2c: 01 00 00 76 27 9D [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: 01 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: 01 07 00 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: 01 07 00 76 27 00 00 00 00 00 A4 0C 54 [00:16:17]RasterBufferAndPrint [00:16:17]line [00:16:17]line [00:16:17]line [00:16:17]line [00:16:17]line [00:16:17]written 0, free lines is 3242 [00:16:17]MH_Cut [00:16:17]Write to MH i2c: D1 01 00 7D 27 01 76 [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: D1 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: D1 01 00 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: D1 01 00 7D 27 00 75 [00:16:17]Write to MH i2c: 01 00 00 7E 27 A5 [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:17]OFD Sender: No OFD packet to send [00:16:18]*** Cut start [00:16:18]*** Partial cut [00:16:18]*** CUTSNS_PIN = 1 [00:16:18]*** CUTSNS_PIN = 0 [00:16:18]*** Brake cut motor [00:16:18]Read from MH i2c: 01 [00:16:18]MH_I2C_Read... [00:16:18]*** Stop cut motor [00:16:18]*** Cut end [00:16:18]Read from MH i2c: 01 07 00 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: 01 07 00 7E 27 00 00 00 00 00 FF 0F BA [00:16:18]process_action close_receipt done [00:16:18]requested_data is exist [00:16:18]produce_requested_data [00:16:18]requested_item fm.sn is exist - process it [00:16:18]wFMCommunicate request_size=4 [00:16:18]MH_SAM_APDU [00:16:18]CAPDU: 80 11 00 00 [00:16:18]Write to MH i2c: E2 08 00 7F 27 80 11 00 00 00 00 00 00 20 [00:16:18]Write i2c OK [00:16:18]MH_I2C_Read... [00:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:18]Read from MH i2c: E2 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 17 00 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 17 00 7F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [00:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:16:18]wFMCommunicate OK [00:16:18]requested_item fd.num is exist - process it [00:16:18]SAM_PROTO_GetFieldsCounters [00:16:18]wFMCommunicate request_size=4 [00:16:18]MH_SAM_APDU [00:16:18]CAPDU: 80 13 00 00 [00:16:18]Write to MH i2c: E2 08 00 80 27 80 13 00 00 00 00 00 00 23 [00:16:18]Write i2c OK [00:16:18]MH_I2C_Read... [00:16:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:19]Read from MH i2c: E2 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 62 00 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 62 00 80 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 87 02 00 0E 04 04 00 16 02 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 39 [00:16:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 87 02 00 0E 04 04 00 16 02 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:16:19]wFMCommunicate OK [00:16:19]SAM_PROTO_GetFieldsCounters done [00:16:19]requested_item shift.num is exist - process it [00:16:19]requested_item shift.opened is exist - process it [00:16:19]req_shift_opened [00:16:19]FM_GetShiftState [00:16:19]SAM_PROTO_GetShiftState [00:16:19]wFMCommunicate request_size=4 [00:16:19]MH_SAM_APDU [00:16:19]CAPDU: 80 13 01 00 [00:16:19]Write to MH i2c: E2 08 00 81 27 80 13 01 00 00 00 00 00 25 [00:16:19]Write i2c OK [00:16:19]MH_I2C_Read... [00:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:19]Read from MH i2c: E2 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 0E 00 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 0E 00 81 27 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6D [00:16:19]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:16:19]wFMCommunicate OK [00:16:19]SAM_PROTO_GetShiftState done [00:16:19]FM_GetShiftState done [00:16:19]req_shift_opened done [00:16:19]requested_item shift.open_date is exist - process it [00:16:19]req_shift_open_date [00:16:19]req_shift_open_date done [00:16:19]produce_requested_data done [00:16:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165885,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:16:19]process_action_free close_receipt [00:16:19]json_value_free [00:16:19]json_value_free done [00:16:19]process_json_proto returns [00:16:19]Send response to host [00:16:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165885,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:16:19]free response buf [00:16:19]execute_script done [00:16:19]execute_script returns [00:16:19]free content buf [00:16:19]Sock 5.Close socket [00:16:19]Sock 5.Thread stoped [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:05]accept exits with 6 [00:17:05]New connection [00:17:05]New thread 3066920292 created [00:17:05]Thread 3066776932 joined [00:17:05]Waiting for new connection... [00:17:05] Sock 6.Parse request [00:17:05]Sock 6.Check first char [00:17:05]Sock 6.First char is OK [00:17:05]request: POST /json_proto HTTP/1.0 [00:17:05]Method: POST [00:17:05]URL: /json_proto [00:17:05]Method is POST - this is cgi request [00:17:05]url: /json_proto [00:17:05]query_string will be loaded in cgi processing [00:17:05]execute_cgi json_proto POST (null) [00:17:05]execute_cgi path=json_proto method=POST [00:17:05]POST find Content-Length [00:17:05]Host: 172.17.53.195:8080 [00:17:05]Content-Length: 682 [00:17:05]Content-Type: application/json [00:17:05] [00:17:05]POST finish read [00:17:05]Found Content-Length = 682 [00:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:05]execute_script... [00:17: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)220454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:05]POST & json_proto [00:17:05]process_json_proto [00:17:05]json parsed OK: [00:17:05]protocol is kg_v1.0 [00:17:05]action value=close_receipt [00:17:05]process_action close_receipt [00:17:05]cmd_close_receipt [00:17:05]MH_GetDate [00:17:05]Write to MH i2c: F0 00 00 82 27 98 [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: F0 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: F0 09 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: F0 09 00 82 27 00 91 9D 15 67 21 48 4A 65 63 [00:17:05]GetLastDocTimeStamp 1729469790 [00:17:05]current date 1729469841 [00:17:05]FM_GetShiftState [00:17:05]SAM_PROTO_GetShiftState [00:17:05]wFMCommunicate request_size=4 [00:17:05]MH_SAM_APDU [00:17:05]CAPDU: 80 13 01 00 [00:17:05]Write to MH i2c: E2 08 00 83 27 80 13 01 00 00 00 00 00 27 [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:05]Read from MH i2c: E2 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 0E 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 0E 00 83 27 00 09 00 01 71 50 14 67 00 00 00 00 90 00 6F [00:17:05]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:17:05]wFMCommunicate OK [00:17:05]SAM_PROTO_GetShiftState done [00:17:05]FM_GetShiftState done [00:17:05]opened in 1729384561 [00:17:05]opened+sec_in_day 1729470961 [00:17:05]quantity*price = 100021 [00:17:05]sum+1 = 100023 [00:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 368 21.10.2024 00:17 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165886 ФПД: 255924877471830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165886&fm=255924877471830&tin=02508201610067®Number=0000000000091764&sum=100000 [00:17:07]StoreToDocumentArchive [00:17:07]shift 534 fd 165886 [00:17:07]save to /storage/0534/doc_00165886 [00:17:07]save last doc name /storage/0534/doc_00165886 to /storage/kkm_last_doc_name [00:17:07]save OK [00:17:07]Clear old archive folders... [00:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:17:07]tlvbuf is 0169F560 [00:17:07]SAM_PROTO_ClearQueue [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 09 00 00 [00:17:07]Write to MH i2c: E2 08 00 90 27 80 09 00 00 00 00 00 00 29 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 03 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 03 00 90 27 00 90 00 2B [00:17:07]RAPDU: 90 00 [00:17:07]wFMCommunicate OK [00:17:07]SAM_PROTO_ClearQueue done [00:17:07]KKMCreateOFDPacket [00:17:07]OFDProtocolAddRootSTLVToBuf [00:17:07]FM_MakeSignedData [00:17:07]FM_MakeSignedData [00:17:07]SAM_PROTO_SignData [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 0D 01 02 [00:17:07]Write to MH i2c: E2 08 00 91 27 80 0D 01 02 00 00 00 00 31 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 03 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 03 00 91 27 00 90 00 2C [00:17:07]RAPDU: 90 00 [00:17:07]wFMCommunicate OK [00:17:07]wFMCommunicate request_size=255 [00:17:07]MH_SAM_APDU [00:17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 91 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 87 02 00 35 04 06 00 E8 [00:17:07]Write to MH i2c: E2 02 01 92 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 91 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 87 02 00 35 04 06 00 E8 00 00 86 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 03 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 03 00 92 27 00 90 00 2D [00:17:07]RAPDU: 90 00 [00:17:07]wFMCommunicate OK [00:17:07]wFMCommunicate request_size=10 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 0D 02 02 05 C3 27 69 30 56 [00:17:07]Write to MH i2c: E2 0D 00 93 27 80 0D 02 02 05 00 C3 27 69 30 56 00 00 17 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 03 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 03 00 93 27 00 90 00 2E [00:17:07]RAPDU: 90 00 [00:17:07]wFMCommunicate OK [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 0D 03 02 [00:17:07]Write to MH i2c: E2 08 00 94 27 80 0D 03 02 00 00 00 00 36 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 0B 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 0B 00 94 27 00 3C 6B 86 05 97 47 8F 71 90 00 47 [00:17:07]RAPDU: 3C 6B 86 05 97 47 8F 71 90 00 [00:17:07]wFMCommunicate OK [00:17:07]SAM_PROTO_SignData done [00:17:07]FM_MakeSignedData done [00:17:07]CreateOFDProtocolMessage [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 11 00 00 [00:17:07]Write to MH i2c: E2 08 00 95 27 80 11 00 00 00 00 00 00 36 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 17 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 17 00 95 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [00:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:17:07]wFMCommunicate OK [00:17:07]CreateOFDProtocolMessage done [00:17:07]OFDSenderStorePacket 165886 [00:17:07]StoreOFDPacket docnum=165886 [00:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1D 39 07 01 6D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 91 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 87 02 00 35 04 06 00 E8 C3 27 69 30 56 3C 6B 86 05 97 47 8F 71 [00:17:07]CheckFolder [00:17:07]dirname=/storage/ofd_packets [00:17:07]CheckFolder done [00:17:07]ProducePacketName [00:17:07]name=ofd_packets/00165886 [00:17:07]NVStorageSaveData ofd_packets/00165886 [00:17:07]File name is /storage/ofd_packets/00165886 [00:17:07]Write 301 bytes [00:17:07]NVStorageSaveData done [00:17:07]OFDSenderStorePacket done [00:17:07]KKMCreateOFDPacket done [00:17:07]NVStorageSaveData kkm_last_timestamp [00:17:07]File name is /storage/kkm_last_timestamp [00:17:07]Write 4 bytes [00:17:07]NVStorageSaveData done [00:17:07]ExternCall_PrintAddStr [00:17:07]wPrintStart [00:17:07]Write to MH i2c: 01 00 00 96 27 BD [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 07 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 07 00 96 27 00 00 00 00 00 FF 0F D2 [00:17:07]RasterBufferAndPrint [00:17:07]line Счет N : (1)220454 [00:17:07]line ИНН: 02508201610067 [00:17:07]line Контрольно-Кассовый Чек [00:17:07]line ПРОДАЖА [00:17:07]line ТРК (МРК, ГНК) : 44 [00:17:07]line Товар: 2710124500 [00:17:07]line Аи-95-К-5 [00:17:07]line 13.480 * 74.20 [00:17:07]line = 1000.22 [00:17:07]line НДС 12% НСП 1% [00:17:07]line > о реализуемом товаре [00:17:07]line ОКРУГЛЕНИЕ: -0.22 [00:17:07]line ИТОГО: 1000.00 [00:17:07]line Внесено: 1000.00 [00:17:07]line СДАЧА: 0.00 [00:17:07]line НСП 1% : 8.85 [00:17:07]line НДС 12% : 106.22 [00:17:07]line Наличными: 1000.00 [00:17:07]line Безнал.: 0.00 [00:17:07]line Место: АЗС № 161 "Партнер Нефть" [00:17:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:17:07]line СНО: Общий режим [00:17:07]line Чек 368 21.10.2024 00:17 [00:17:07]line Смена: 534 ФФД: 1.0 [00:17:07]line ЗНМ: 0300000104 [00:17:07]line РНМ: 0000000000091764 [00:17:07]line Версия ККМ: 001 [00:17:07]line ФМ: 0000000000871759 [00:17:07]line ФД: 165886 [00:17:07]line ФПД: 255924877471830 [00:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165886&fm=255924877471830&tin=02508201610067®Number=0000000000091764&sum=100000 [00:17:07]OFD Sender: Processing packet 165886 [packets to send 48, broken 47] [00:17:07]ProducePacketName [00:17:07]name=ofd_packets/00165886 [00:17:07]OFD Sender: To server: pG, [00:17:07]CommunicateWithHost lk.salyk.kg:30040 [00:17:07]ConnectInit lk.salyk.kg [00:17:07]written 0, free lines is 4095 [00:17:08]Connected sock=7 [00:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1D 39 07 01 6D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 91 9D 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 87 02 00 35 04 06 00 E8 C3 27 69 30 56 3C 6B 86 05 97 47 8F 71 [00:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E8 82 47 00 1C 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 31 37 35 39 10 04 04 00 FE 87 02 00 F4 03 04 00 01 44 15 67 B6 04 01 00 00 03 04 16 68 65 12 18 38 [00:17:08]CommunicateWithHost err = 0 [00:17:08]CheckOFDResponse [00:17:08]1017 (14) - 77093643461234 [00:17:08]1041 (16) - 0000000000871759 [00:17:08]1040 (4) - 165886 [00:17:08]1012 (4) - 20.10.2024 17:55 [00:17:08]1206 (1) - 0 [00:17:08]OFD Sender: Remove packet 165886 [00:17:08]ProducePacketName [00:17:08]name=ofd_packets/00165886 [00:17:08]NVStorageDeleteData [00:17:08]Write to MH i2c: 01 00 00 C1 27 E8 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: 01 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: 01 07 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 AA 0C A5 [00:17:08]RasterBufferAndPrint [00:17:08]line [00:17:08]line [00:17:08]line [00:17:08]line [00:17:08]line [00:17:08]written 0, free lines is 3248 [00:17:08]MH_Cut [00:17:08]Write to MH i2c: D1 01 00 C8 27 01 C1 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: D1 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: D1 01 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: D1 01 00 C8 27 00 C0 [00:17:08]Write to MH i2c: 01 00 00 C9 27 F0 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]OFD Sender: No OFD packet to send [00:17:09]*** Cut start [00:17:09]*** Partial cut [00:17:09]*** CUTSNS_PIN = 1 [00:17:09]*** CUTSNS_PIN = 0 [00:17:09]*** Brake cut motor [00:17:09]Read from MH i2c: 01 [00:17:09]MH_I2C_Read... [00:17:09]*** Stop cut motor [00:17:09]*** Cut end [00:17:09]Read from MH i2c: 01 07 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: 01 07 00 C9 27 00 00 00 00 00 FF 0F 05 [00:17:09]process_action close_receipt done [00:17:09]requested_data is exist [00:17:09]produce_requested_data [00:17:09]requested_item fm.sn is exist - process it [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 11 00 00 [00:17:09]Write to MH i2c: E2 08 00 CA 27 80 11 00 00 00 00 00 00 6B [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 17 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 17 00 CA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [00:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:17:09]wFMCommunicate OK [00:17:09]requested_item fd.num is exist - process it [00:17:09]SAM_PROTO_GetFieldsCounters [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 13 00 00 [00:17:09]Write to MH i2c: E2 08 00 CB 27 80 13 00 00 00 00 00 00 6E [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:10]Read from MH i2c: E2 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 62 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 62 00 CB 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [00:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:10]wFMCommunicate OK [00:17:10]SAM_PROTO_GetFieldsCounters done [00:17:10]requested_item shift.num is exist - process it [00:17:10]requested_item shift.opened is exist - process it [00:17:10]req_shift_opened [00:17:10]FM_GetShiftState [00:17:10]SAM_PROTO_GetShiftState [00:17:10]wFMCommunicate request_size=4 [00:17:10]MH_SAM_APDU [00:17:10]CAPDU: 80 13 01 00 [00:17:10]Write to MH i2c: E2 08 00 CC 27 80 13 01 00 00 00 00 00 70 [00:17:10]Write i2c OK [00:17:10]MH_I2C_Read... [00:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:10]Read from MH i2c: E2 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 0E 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 0E 00 CC 27 00 09 00 01 71 50 14 67 00 00 00 00 90 00 B8 [00:17:10]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:17:10]wFMCommunicate OK [00:17:10]SAM_PROTO_GetShiftState done [00:17:10]FM_GetShiftState done [00:17:10]req_shift_opened done [00:17:10]requested_item shift.open_date is exist - process it [00:17:10]req_shift_open_date [00:17:10]req_shift_open_date done [00:17:10]produce_requested_data done [00:17:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165886,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:17:10]process_action_free close_receipt [00:17:10]json_value_free [00:17:10]json_value_free done [00:17:10]process_json_proto returns [00:17:10]Send response to host [00:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165886,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:17:10]free response buf [00:17:10]execute_script done [00:17:10]execute_script returns [00:17:10]free content buf [00:17:10]Sock 6.Close socket [00:17:10]Sock 6.Thread stoped [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:42]accept exits with 5 [00:22:42]New connection [00:22:42]New thread 3066776932 created [00:22:42]Thread 3066920292 joined [00:22:42]Waiting for new connection... [00:22:42] Sock 5.Parse request [00:22:42]Sock 5.Check first char [00:22:42]Sock 5.First char is OK [00:22:42]request: POST /json_proto HTTP/1.0 [00:22:42]Method: POST [00:22:42]URL: /json_proto [00:22:42]Method is POST - this is cgi request [00:22:42]url: /json_proto [00:22:42]query_string will be loaded in cgi processing [00:22:42]execute_cgi json_proto POST (null) [00:22:42]execute_cgi path=json_proto method=POST [00:22:42]POST find Content-Length [00:22:42]Host: 172.17.53.195:8080 [00:22:42]Content-Length: 677 [00:22:42]Content-Type: application/json [00:22:42] [00:22:42]POST finish read [00:22:42]Found Content-Length = 677 [00:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:42]execute_script... [00:22: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)220455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:42]POST & json_proto [00:22:42]process_json_proto [00:22:42]json parsed OK: [00:22:42]protocol is kg_v1.0 [00:22:42]action value=close_receipt [00:22:42]process_action close_receipt [00:22:42]cmd_close_receipt [00:22:42]MH_GetDate [00:22:42]Write to MH i2c: F0 00 00 CD 27 E3 [00:22:42]Write i2c OK [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: F0 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: F0 09 00 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: F0 09 00 CD 27 00 E1 9E 15 67 21 48 4A 65 FF [00:22:42]GetLastDocTimeStamp 1729469841 [00:22:42]current date 1729470177 [00:22:42]FM_GetShiftState [00:22:42]SAM_PROTO_GetShiftState [00:22:42]wFMCommunicate request_size=4 [00:22:42]MH_SAM_APDU [00:22:42]CAPDU: 80 13 01 00 [00:22:42]Write to MH i2c: E2 08 00 CE 27 80 13 01 00 00 00 00 00 72 [00:22:42]Write i2c OK [00:22:42]MH_I2C_Read... [00:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:42]Read from MH i2c: E2 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 0E 00 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 0E 00 CE 27 00 09 00 01 71 50 14 67 00 00 00 00 90 00 BA [00:22:42]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:22:42]wFMCommunicate OK [00:22:42]SAM_PROTO_GetShiftState done [00:22:42]FM_GetShiftState done [00:22:42]opened in 1729384561 [00:22:42]opened+sec_in_day 1729470961 [00:22:42]quantity*price = 60027 [00:22:42]sum+1 = 60029 [00:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 369 21.10.2024 00:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165887 ФПД: 109660769557837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165887&fm=109660769557837&tin=02508201610067®Number=0000000000091764&sum=60000 [00:22:43]StoreToDocumentArchive [00:22:43]shift 534 fd 165887 [00:22:43]save to /storage/0534/doc_00165887 [00:22:43]save last doc name /storage/0534/doc_00165887 to /storage/kkm_last_doc_name [00:22:43]save OK [00:22:43]Clear old archive folders... [00:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:22:43]tlvbuf is 015DDB20 [00:22:43]SAM_PROTO_ClearQueue [00:22:43]wFMCommunicate request_size=4 [00:22:43]MH_SAM_APDU [00:22:43]CAPDU: 80 09 00 00 [00:22:43]Write to MH i2c: E2 08 00 DB 27 80 09 00 00 00 00 00 00 74 [00:22:43]Write i2c OK [00:22:43]MH_I2C_Read... [00:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:43]Read from MH i2c: E2 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 03 00 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 03 00 DB 27 00 90 00 76 [00:22:43]RAPDU: 90 00 [00:22:43]wFMCommunicate OK [00:22:43]SAM_PROTO_ClearQueue done [00:22:43]KKMCreateOFDPacket [00:22:43]OFDProtocolAddRootSTLVToBuf [00:22:43]FM_MakeSignedData [00:22:43]FM_MakeSignedData [00:22:43]SAM_PROTO_SignData [00:22:43]wFMCommunicate request_size=4 [00:22:43]MH_SAM_APDU [00:22:43]CAPDU: 80 0D 01 02 [00:22:43]Write to MH i2c: E2 08 00 DC 27 80 0D 01 02 00 00 00 00 7C [00:22:43]Write i2c OK [00:22:43]MH_I2C_Read... [00:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:43]Read from MH i2c: E2 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 03 00 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 03 00 DC 27 00 90 00 77 [00:22:43]RAPDU: 90 00 [00:22:43]wFMCommunicate OK [00:22:43]wFMCommunicate request_size=255 [00:22:43]MH_SAM_APDU [00:22: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 E1 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 87 02 00 35 04 06 00 63 [00:22:43]Write to MH i2c: E2 02 01 DD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 E1 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 87 02 00 35 04 06 00 63 00 00 E0 [00:22:43]Write i2c OK [00:22:43]MH_I2C_Read... [00:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:44]Read from MH i2c: E2 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 03 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 03 00 DD 27 00 90 00 78 [00:22:44]RAPDU: 90 00 [00:22:44]wFMCommunicate OK [00:22:44]wFMCommunicate request_size=10 [00:22:44]MH_SAM_APDU [00:22:44]CAPDU: 80 0D 02 02 05 BC 63 37 1D 4D [00:22:44]Write to MH i2c: E2 0D 00 DE 27 80 0D 02 02 05 00 BC 63 37 1D 4D 00 00 49 [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:44]Read from MH i2c: E2 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 03 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 03 00 DE 27 00 90 00 79 [00:22:44]RAPDU: 90 00 [00:22:44]wFMCommunicate OK [00:22:44]wFMCommunicate request_size=4 [00:22:44]MH_SAM_APDU [00:22:44]CAPDU: 80 0D 03 02 [00:22:44]Write to MH i2c: E2 08 00 DF 27 80 0D 03 02 00 00 00 00 81 [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:44]Read from MH i2c: E2 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 0B 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 0B 00 DF 27 00 FD 28 76 27 87 5F 3F EC 90 00 55 [00:22:44]RAPDU: FD 28 76 27 87 5F 3F EC 90 00 [00:22:44]wFMCommunicate OK [00:22:44]SAM_PROTO_SignData done [00:22:44]FM_MakeSignedData done [00:22:44]CreateOFDProtocolMessage [00:22:44]wFMCommunicate request_size=4 [00:22:44]MH_SAM_APDU [00:22:44]CAPDU: 80 11 00 00 [00:22:44]Write to MH i2c: E2 08 00 E0 27 80 11 00 00 00 00 00 00 81 [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]OFD Sender: No OFD packet to send [00:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:44]Read from MH i2c: E2 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 17 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 17 00 E0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [00:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:22:44]wFMCommunicate OK [00:22:44]CreateOFDProtocolMessage done [00:22:44]OFDSenderStorePacket 165887 [00:22:44]StoreOFDPacket docnum=165887 [00:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D4 72 07 01 49 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 E1 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 87 02 00 35 04 06 00 63 BC 63 37 1D 4D FD 28 76 27 87 5F 3F EC [00:22:44]CheckFolder [00:22:44]dirname=/storage/ofd_packets [00:22:44]CheckFolder done [00:22:44]ProducePacketName [00:22:44]name=ofd_packets/00165887 [00:22:44]NVStorageSaveData ofd_packets/00165887 [00:22:44]File name is /storage/ofd_packets/00165887 [00:22:44]Write 301 bytes [00:22:44]NVStorageSaveData done [00:22:44]OFDSenderStorePacket done [00:22:44]KKMCreateOFDPacket done [00:22:44]NVStorageSaveData kkm_last_timestamp [00:22:44]File name is /storage/kkm_last_timestamp [00:22:44]Write 4 bytes [00:22:44]NVStorageSaveData done [00:22:44]ExternCall_PrintAddStr [00:22:44]wPrintStart [00:22:44]Write to MH i2c: 01 00 00 E1 27 08 [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: 01 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: 01 07 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: 01 07 00 E1 27 00 00 00 00 00 FF 0F 1D [00:22:44]RasterBufferAndPrint [00:22:44]line Счет N : (1)220455 [00:22:44]line ИНН: 02508201610067 [00:22:44]line Контрольно-Кассовый Чек [00:22:44]line ПРОДАЖА [00:22:44]line ТРК (МРК, ГНК) : 34 [00:22:44]line Товар: 2710124500 [00:22:44]line Аи-95-К-5 [00:22:44]line 8.090 * 74.20 [00:22:44]line = 600.28 [00:22:44]line НДС 12% НСП 1% [00:22:44]line > о реализуемом товаре [00:22:44]line ОКРУГЛЕНИЕ: -0.28 [00:22:44]line ИТОГО: 600.00 [00:22:44]line Внесено: 600.00 [00:22:44]line СДАЧА: 0.00 [00:22:44]line НСП 1% : 5.31 [00:22:44]line НДС 12% : 63.75 [00:22:44]line Наличными: 600.00 [00:22:44]line Безнал.: 0.00 [00:22:44]line Место: АЗС № 161 "Партнер Нефть" [00:22:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:22:44]line СНО: Общий режим [00:22:44]line Чек 369 21.10.2024 00:22 [00:22:44]line Смена: 534 ФФД: 1.0 [00:22:44]line ЗНМ: 0300000104 [00:22:44]line РНМ: 0000000000091764 [00:22:44]line Версия ККМ: 001 [00:22:44]line ФМ: 0000000000871759 [00:22:44]line ФД: 165887 [00:22:44]line ФПД: 109660769557837 [00:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165887&fm=109660769557837&tin=02508201610067®Number=0000000000091764&sum=60000 [00:22:44]OFD Sender: Processing packet 165887 [packets to send 48, broken 47] [00:22:44]ProducePacketName [00:22:44]name=ofd_packets/00165887 [00:22:44]OFD Sender: To server: pG, [00:22:44]CommunicateWithHost lk.salyk.kg:30040 [00:22:44]ConnectInit lk.salyk.kg [00:22:44]written 0, free lines is 4095 [00:22:44]Connected sock=6 [00:22:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D4 72 07 01 49 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 E1 9E 15 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 87 02 00 35 04 06 00 63 BC 63 37 1D 4D FD 28 76 27 87 5F 3F EC [00:22:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 58 FD 47 00 1D 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 87 02 00 F4 03 04 00 51 45 15 67 B6 04 01 00 00 2D 52 3B 26 73 E1 12 7F [00:22:44]CommunicateWithHost err = 0 [00:22:44]CheckOFDResponse [00:22:44]1017 (14) - 77093643461234 [00:22:44]1041 (16) - 0000000000871759 [00:22:44]1040 (4) - 165887 [00:22:44]1012 (4) - 20.10.2024 18:00 [00:22:44]1206 (1) - 0 [00:22:44]OFD Sender: Remove packet 165887 [00:22:44]ProducePacketName [00:22:44]name=ofd_packets/00165887 [00:22:44]NVStorageDeleteData [00:22:44]Write to MH i2c: 01 00 00 0C 28 34 [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: 01 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: 01 07 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: 01 07 00 0C 28 00 00 00 00 00 B9 0C 00 [00:22:44]RasterBufferAndPrint [00:22:44]line [00:22:44]line [00:22:44]line [00:22:44]line [00:22:44]line [00:22:44]written 0, free lines is 3264 [00:22:44]MH_Cut [00:22:44]Write to MH i2c: D1 01 00 13 28 01 0D [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: D1 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: D1 01 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: D1 01 00 13 28 00 0C [00:22:44]Write to MH i2c: 01 00 00 14 28 3C [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:45]OFD Sender: No OFD packet to send [00:22:45]*** Cut start [00:22:45]*** Partial cut [00:22:45]*** CUTSNS_PIN = 1 [00:22:45]*** CUTSNS_PIN = 0 [00:22:46]*** Brake cut motor [00:22:46]Read from MH i2c: 01 [00:22:46]MH_I2C_Read... [00:22:46]*** Stop cut motor [00:22:46]*** Cut end [00:22:46]Read from MH i2c: 01 07 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: 01 07 00 14 28 00 00 00 00 00 FF 0F 51 [00:22:46]process_action close_receipt done [00:22:46]requested_data is exist [00:22:46]produce_requested_data [00:22:46]requested_item fm.sn is exist - process it [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 11 00 00 [00:22:46]Write to MH i2c: E2 08 00 15 28 80 11 00 00 00 00 00 00 B7 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:46]Read from MH i2c: E2 17 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 17 00 15 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [00:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:22:46]wFMCommunicate OK [00:22:46]requested_item fd.num is exist - process it [00:22:46]SAM_PROTO_GetFieldsCounters [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 13 00 00 [00:22:46]Write to MH i2c: E2 08 00 16 28 80 13 00 00 00 00 00 00 BA [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 62 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 62 00 16 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [00:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:46]wFMCommunicate OK [00:22:46]SAM_PROTO_GetFieldsCounters done [00:22:46]requested_item shift.num is exist - process it [00:22:46]requested_item shift.opened is exist - process it [00:22:46]req_shift_opened [00:22:46]FM_GetShiftState [00:22:46]SAM_PROTO_GetShiftState [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 13 01 00 [00:22:46]Write to MH i2c: E2 08 00 17 28 80 13 01 00 00 00 00 00 BC [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 0E 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 0E 00 17 28 00 09 00 01 71 50 14 67 00 00 00 00 90 00 04 [00:22:46]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:22:46]wFMCommunicate OK [00:22:46]SAM_PROTO_GetShiftState done [00:22:46]FM_GetShiftState done [00:22:46]req_shift_opened done [00:22:46]requested_item shift.open_date is exist - process it [00:22:46]req_shift_open_date [00:22:46]req_shift_open_date done [00:22:46]produce_requested_data done [00:22:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:22:46]process_action_free close_receipt [00:22:46]json_value_free [00:22:46]json_value_free done [00:22:46]process_json_proto returns [00:22:46]Send response to host [00:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:22:46]free response buf [00:22:46]execute_script done [00:22:46]execute_script returns [00:22:46]free content buf [00:22:46]Sock 5.Close socket [00:22:46]Sock 5.Thread stoped [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:33]accept exits with 7 [00:25:33]New connection [00:25:33]New thread 3066920292 created [00:25:33]Thread 3066776932 joined [00:25:33]Waiting for new connection... [00:25:33] Sock 7.Parse request [00:25:33]Sock 7.Check first char [00:25:33]Sock 7.First char is OK [00:25:33]request: POST /json_proto HTTP/1.0 [00:25:33]Method: POST [00:25:33]URL: /json_proto [00:25:33]Method is POST - this is cgi request [00:25:33]url: /json_proto [00:25:33]query_string will be loaded in cgi processing [00:25:33]execute_cgi json_proto POST (null) [00:25:33]execute_cgi path=json_proto method=POST [00:25:33]POST find Content-Length [00:25:33]Host: 172.17.53.195:8080 [00:25:33]Content-Length: 215 [00:25:33]Content-Type: application/json [00:25:33] [00:25:33]POST finish read [00:25:33]Found Content-Length = 215 [00:25: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" ] } } [00:25:33]execute_script... [00:25: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" ] } } [00:25:33]POST & json_proto [00:25:33]process_json_proto [00:25:33]json parsed OK: [00:25:33]protocol is kg_v1.0 [00:25:33]action value=get_value [00:25:33]process_action get_value [00:25:33]cmd_get_value [00:25:33]process_action get_value done [00:25:33]requested_data is exist [00:25:33]produce_requested_data [00:25:33]requested_item kkm.sn is exist - process it [00:25:33]requested_item kkm.ver is exist - process it [00:25:33]requested_item fm.sn is exist - process it [00:25:33]wFMCommunicate request_size=4 [00:25:33]MH_SAM_APDU [00:25:33]CAPDU: 80 11 00 00 [00:25:33]Write to MH i2c: E2 08 00 18 28 80 11 00 00 00 00 00 00 BA [00:25:33]Write i2c OK [00:25:33]MH_I2C_Read... [00:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:33]Read from MH i2c: E2 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 17 00 [00:25:33]MH_I2C_Read... [00:25:33]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 31 37 35 39 90 00 12 [00:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:25:33]wFMCommunicate OK [00:25:33]requested_item fd.num is exist - process it [00:25:33]SAM_PROTO_GetFieldsCounters [00:25:33]wFMCommunicate request_size=4 [00:25:33]MH_SAM_APDU [00:25:33]CAPDU: 80 13 00 00 [00:25:33]Write to MH i2c: E2 08 00 19 28 80 13 00 00 00 00 00 00 BD [00:25:33]Write i2c OK [00:25:33]MH_I2C_Read... [00:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:33]Read from MH i2c: E2 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 62 00 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 62 00 19 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [00:25:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:33]wFMCommunicate OK [00:25:33]SAM_PROTO_GetFieldsCounters done [00:25:33]requested_item shift.num is exist - process it [00:25:33]requested_item shift.opened is exist - process it [00:25:33]req_shift_opened [00:25:33]FM_GetShiftState [00:25:33]SAM_PROTO_GetShiftState [00:25:33]wFMCommunicate request_size=4 [00:25:33]MH_SAM_APDU [00:25:33]CAPDU: 80 13 01 00 [00:25:33]Write to MH i2c: E2 08 00 1A 28 80 13 01 00 00 00 00 00 BF [00:25:33]Write i2c OK [00:25:33]MH_I2C_Read... [00:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:33]Read from MH i2c: E2 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 0E 00 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 0E 00 1A 28 00 09 00 01 71 50 14 67 00 00 00 00 90 00 07 [00:25:33]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:25:33]wFMCommunicate OK [00:25:33]SAM_PROTO_GetShiftState done [00:25:33]FM_GetShiftState done [00:25:33]req_shift_opened done [00:25:33]requested_item shift.open_date is exist - process it [00:25:33]req_shift_open_date [00:25:33]req_shift_open_date done [00:25:33]produce_requested_data done [00:25:33]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:25:33]process_action_free get_value [00:25:33]json_value_free [00:25:33]json_value_free done [00:25:33]process_json_proto returns [00:25:33]Send response to host [00:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:25:33]free response buf [00:25:33]execute_script done [00:25:33]execute_script returns [00:25:33]free content buf [00:25:33]Sock 7.Close socket [00:25:33]Sock 7.Thread stoped [00:25:33]accept exits with 5 [00:25:33]New connection [00:25:33]New thread 3066776932 created [00:25:33]Thread 3066920292 joined [00:25:33]Waiting for new connection... [00:25:33] Sock 5.Parse request [00:25:33]Sock 5.Check first char [00:25:33]Sock 5.First char is OK [00:25:33]request: POST /json_proto HTTP/1.0 [00:25:33]Method: POST [00:25:33]URL: /json_proto [00:25:33]Method is POST - this is cgi request [00:25:33]url: /json_proto [00:25:33]query_string will be loaded in cgi processing [00:25:33]execute_cgi json_proto POST (null) [00:25:33]execute_cgi path=json_proto method=POST [00:25:33]POST find Content-Length [00:25:33]Host: 172.17.53.195:8080 [00:25:33]Content-Length: 331 [00:25:33]Content-Type: application/json [00:25:33] [00:25:33]POST finish read [00:25:33]Found Content-Length = 331 [00:25: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" ] } } [00:25:33]execute_script... [00:25: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" ] } } [00:25:33]POST & json_proto [00:25:33]process_json_proto [00:25:33]json parsed OK: [00:25:33]protocol is kg_v1.0 [00:25:33]action value=get_value [00:25:33]process_action get_value [00:25:33]cmd_get_value [00:25:33]process_action get_value done [00:25:33]requested_data is exist [00:25:33]produce_requested_data [00:25:33]requested_item fm.sale.total is exist - process it [00:25:33]SAM_PROTO_GetFMData [00:25:33]wFMCommunicate request_size=4 [00:25:33]MH_SAM_APDU [00:25:33]CAPDU: 80 13 03 00 [00:25:33]Write to MH i2c: E2 08 00 1B 28 80 13 03 00 00 00 00 00 C2 [00:25:33]Write i2c OK [00:25:33]MH_I2C_Read... [00:25:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:34]Read from MH i2c: E2 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 1B 28 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 90 [00:25:34]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [00:25:34]wFMCommunicate OK [00:25:34]wFMCommunicate request_size=4 [00:25:34]MH_SAM_APDU [00:25:34]CAPDU: 80 17 00 00 [00:25:34]Write to MH i2c: E2 08 00 1C 28 80 17 00 00 00 00 00 00 C4 [00:25:34]Write i2c OK [00:25:34]MH_I2C_Read... [00:25:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:34]Read from MH i2c: E2 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 1C 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 90 [00:25:34]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:34]wFMCommunicate OK [00:25:34]wFMCommunicate request_size=4 [00:25:34]MH_SAM_APDU [00:25:34]CAPDU: 80 17 00 00 [00:25:34]Write to MH i2c: E2 08 00 1D 28 80 17 00 00 00 00 00 00 C5 [00:25:34]Write i2c OK [00:25:34]MH_I2C_Read... [00:25:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:34]Read from MH i2c: E2 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 1D 28 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 90 00 D7 [00:25:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:34]wFMCommunicate OK [00:25:34]wFMCommunicate request_size=4 [00:25:34]MH_SAM_APDU [00:25:34]CAPDU: 80 17 00 00 [00:25:34]Write to MH i2c: E2 08 00 1E 28 80 17 00 00 00 00 00 00 C6 [00:25:34]Write i2c OK [00:25:34]MH_I2C_Read... [00:25:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:34]Read from MH i2c: E2 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 1E 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [00:25:34]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:34]wFMCommunicate OK [00:25:34]wFMCommunicate request_size=4 [00:25:34]MH_SAM_APDU [00:25:34]CAPDU: 80 17 00 00 [00:25:34]Write to MH i2c: E2 08 00 1F 28 80 17 00 00 00 00 00 00 C7 [00:25:34]Write i2c OK [00:25:34]MH_I2C_Read... [00:25:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:25:35]Read from MH i2c: E2 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 E2 00 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 E2 00 1F 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A5 [00:25:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:35]wFMCommunicate OK [00:25:35]SAM_PROTO_GetFMData done [00:25:35]requested_item fm.sale_refund.total is exist - process it [00:25:35]requested_item fm.buy.total is exist - process it [00:25:35]requested_item shift.sale.total is exist - process it [00:25:35]SAM_PROTO_GetShiftData [00:25:35]wFMCommunicate request_size=4 [00:25:35]MH_SAM_APDU [00:25:35]CAPDU: 80 13 02 00 [00:25:35]Write to MH i2c: E2 08 00 20 28 80 13 02 00 00 00 00 00 C6 [00:25:35]Write i2c OK [00:25:35]MH_I2C_Read... [00:25:35]OFD Sender: No OFD packet to send [00:25:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:35]Read from MH i2c: E2 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 FD 00 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 FD 00 20 28 00 B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 69 [00:25:35]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 [00:25:35]wFMCommunicate OK [00:25:35]wFMCommunicate request_size=4 [00:25:35]MH_SAM_APDU [00:25:35]CAPDU: 80 17 00 00 [00:25:35]Write to MH i2c: E2 08 00 21 28 80 17 00 00 00 00 00 00 C9 [00:25:35]Write i2c OK [00:25:35]MH_I2C_Read... [00:25:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:35]Read from MH i2c: E2 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 FD 00 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 FD 00 21 28 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 E2 [00:25:35]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:25:35]wFMCommunicate OK [00:25:35]wFMCommunicate request_size=4 [00:25:35]MH_SAM_APDU [00:25:35]CAPDU: 80 17 00 00 [00:25:35]Write to MH i2c: E2 08 00 22 28 80 17 00 00 00 00 00 00 CA [00:25:35]Write i2c OK [00:25:35]MH_I2C_Read... [00:25:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:36]Read from MH i2c: E2 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 FD 00 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 FD 00 22 28 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 83 [00:25:36]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:25:36]wFMCommunicate OK [00:25:36]wFMCommunicate request_size=4 [00:25:36]MH_SAM_APDU [00:25:36]CAPDU: 80 17 00 00 [00:25:36]Write to MH i2c: E2 08 00 23 28 80 17 00 00 00 00 00 00 CB [00:25:36]Write i2c OK [00:25:36]MH_I2C_Read... [00:25:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:36]Read from MH i2c: E2 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 FD 00 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 FD 00 23 28 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 43 [00:25:36]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:25:36]wFMCommunicate OK [00:25:36]wFMCommunicate request_size=4 [00:25:36]MH_SAM_APDU [00:25:36]CAPDU: 80 17 00 00 [00:25:36]Write to MH i2c: E2 08 00 24 28 80 17 00 00 00 00 00 00 CC [00:25:36]Write i2c OK [00:25:36]MH_I2C_Read... [00:25:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:36]Read from MH i2c: E2 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 CE 00 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 CE 00 24 28 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 B1 [00:25:36]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:25:36]wFMCommunicate OK [00:25:36]SAM_PROTO_GetShiftData done [00:25:36]requested_item shift.sale.total_cash is exist - process it [00:25:36]requested_item shift.sale_refund.total is exist - process it [00:25:36]requested_item shift.sale_refund.total_cash is exist - process it [00:25:36]requested_item shift.buy.total is exist - process it [00:25:36]requested_item shift.buy.total_cash is exist - process it [00:25:36]produce_requested_data done [00:25:36]produce_requested_data return {"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:25:36]process_action_free get_value [00:25:36]json_value_free [00:25:36]json_value_free done [00:25:36]process_json_proto returns [00:25:36]Send response to host [00:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:25:36]free response buf [00:25:36]execute_script done [00:25:36]execute_script returns [00:25:36]free content buf [00:25:36]Sock 5.Close socket [00:25:36]Sock 5.Thread stoped [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:09]accept exits with 6 [00:26:09]New connection [00:26:09]New thread 3066920292 created [00:26:09]Thread 3066776932 joined [00:26:09]Waiting for new connection... [00:26:09] Sock 6.Parse request [00:26:09]Sock 6.Check first char [00:26:09]Sock 6.First char is OK [00:26:09]request: POST /json_proto HTTP/1.0 [00:26:09]Method: POST [00:26:09]URL: /json_proto [00:26:09]Method is POST - this is cgi request [00:26:09]url: /json_proto [00:26:09]query_string will be loaded in cgi processing [00:26:09]execute_cgi json_proto POST (null) [00:26:09]execute_cgi path=json_proto method=POST [00:26:09]POST find Content-Length [00:26:09]Host: 172.17.53.195:8080 [00:26:09]Content-Length: 215 [00:26:09]Content-Type: application/json [00:26:09] [00:26:09]POST finish read [00:26:09]Found Content-Length = 215 [00:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:09]execute_script... [00:26:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:09]POST & json_proto [00:26:09]process_json_proto [00:26:09]json parsed OK: [00:26:09]protocol is kg_v1.0 [00:26:09]action value=get_value [00:26:09]process_action get_value [00:26:09]cmd_get_value [00:26:09]process_action get_value done [00:26:09]requested_data is exist [00:26:09]produce_requested_data [00:26:09]requested_item kkm.sn is exist - process it [00:26:09]requested_item kkm.ver is exist - process it [00:26:09]requested_item fm.sn is exist - process it [00:26:09]wFMCommunicate request_size=4 [00:26:09]MH_SAM_APDU [00:26:09]CAPDU: 80 11 00 00 [00:26:09]Write to MH i2c: E2 08 00 25 28 80 11 00 00 00 00 00 00 C7 [00:26:09]Write i2c OK [00:26:09]MH_I2C_Read... [00:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:09]Read from MH i2c: E2 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 17 00 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 17 00 25 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [00:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:26:09]wFMCommunicate OK [00:26:09]requested_item fd.num is exist - process it [00:26:09]SAM_PROTO_GetFieldsCounters [00:26:09]wFMCommunicate request_size=4 [00:26:09]MH_SAM_APDU [00:26:09]CAPDU: 80 13 00 00 [00:26:09]Write to MH i2c: E2 08 00 26 28 80 13 00 00 00 00 00 00 CA [00:26:09]Write i2c OK [00:26:09]MH_I2C_Read... [00:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:09]Read from MH i2c: E2 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 62 00 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 62 00 26 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [00:26:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:09]wFMCommunicate OK [00:26:09]SAM_PROTO_GetFieldsCounters done [00:26:09]requested_item shift.num is exist - process it [00:26:09]requested_item shift.opened is exist - process it [00:26:09]req_shift_opened [00:26:09]FM_GetShiftState [00:26:09]SAM_PROTO_GetShiftState [00:26:09]wFMCommunicate request_size=4 [00:26:09]MH_SAM_APDU [00:26:09]CAPDU: 80 13 01 00 [00:26:09]Write to MH i2c: E2 08 00 27 28 80 13 01 00 00 00 00 00 CC [00:26:09]Write i2c OK [00:26:09]MH_I2C_Read... [00:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:09]Read from MH i2c: E2 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 0E 00 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 0E 00 27 28 00 09 00 01 71 50 14 67 00 00 00 00 90 00 14 [00:26:09]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:26:09]wFMCommunicate OK [00:26:09]SAM_PROTO_GetShiftState done [00:26:09]FM_GetShiftState done [00:26:09]req_shift_opened done [00:26:09]requested_item shift.open_date is exist - process it [00:26:09]req_shift_open_date [00:26:09]req_shift_open_date done [00:26:09]produce_requested_data done [00:26:09]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:26:09]process_action_free get_value [00:26:09]json_value_free [00:26:09]json_value_free done [00:26:09]process_json_proto returns [00:26:09]Send response to host [00:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:26:09]free response buf [00:26:09]execute_script done [00:26:09]execute_script returns [00:26:09]free content buf [00:26:09]Sock 6.Close socket [00:26:09]Sock 6.Thread stoped [00:26:09]accept exits with 5 [00:26:09]New connection [00:26:09]New thread 3066776932 created [00:26:09]Thread 3066920292 joined [00:26:09]Waiting for new connection... [00:26:09] Sock 5.Parse request [00:26:09]Sock 5.Check first char [00:26:09]Sock 5.First char is OK [00:26:09]request: POST /json_proto HTTP/1.0 [00:26:09]Method: POST [00:26:09]URL: /json_proto [00:26:09]Method is POST - this is cgi request [00:26:09]url: /json_proto [00:26:09]query_string will be loaded in cgi processing [00:26:09]execute_cgi json_proto POST (null) [00:26:09]execute_cgi path=json_proto method=POST [00:26:09]POST find Content-Length [00:26:09]Host: 172.17.53.195:8080 [00:26:09]Content-Length: 331 [00:26:09]Content-Type: application/json [00:26:09] [00:26:09]POST finish read [00:26:09]Found Content-Length = 331 [00:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:09]execute_script... [00:26:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:10]POST & json_proto [00:26:10]process_json_proto [00:26:10]json parsed OK: [00:26:10]protocol is kg_v1.0 [00:26:10]action value=get_value [00:26:10]process_action get_value [00:26:10]cmd_get_value [00:26:10]process_action get_value done [00:26:10]requested_data is exist [00:26:10]produce_requested_data [00:26:10]requested_item fm.sale.total is exist - process it [00:26:10]SAM_PROTO_GetFMData [00:26:10]wFMCommunicate request_size=4 [00:26:10]MH_SAM_APDU [00:26:10]CAPDU: 80 13 03 00 [00:26:10]Write to MH i2c: E2 08 00 28 28 80 13 03 00 00 00 00 00 CF [00:26:10]Write i2c OK [00:26:10]MH_I2C_Read... [00:26:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:10]Read from MH i2c: E2 [00:26:10]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 [00:26:10]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 28 28 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 9D [00:26:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [00:26:10]wFMCommunicate OK [00:26:10]wFMCommunicate request_size=4 [00:26:10]MH_SAM_APDU [00:26:10]CAPDU: 80 17 00 00 [00:26:10]Write to MH i2c: E2 08 00 29 28 80 17 00 00 00 00 00 00 D1 [00:26:10]Write i2c OK [00:26:10]MH_I2C_Read... [00:26:10]OFD Sender: No OFD packet to send [00:26:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:10]Read from MH i2c: E2 [00:26:10]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 [00:26:10]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 29 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [00:26:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:10]wFMCommunicate OK [00:26:10]wFMCommunicate request_size=4 [00:26:10]MH_SAM_APDU [00:26:10]CAPDU: 80 17 00 00 [00:26:10]Write to MH i2c: E2 08 00 2A 28 80 17 00 00 00 00 00 00 D2 [00:26:10]Write i2c OK [00:26:10]MH_I2C_Read... [00:26:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:11]Read from MH i2c: E2 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 FD 00 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 FD 00 2A 28 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 90 00 E4 [00:26:11]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:11]wFMCommunicate OK [00:26:11]wFMCommunicate request_size=4 [00:26:11]MH_SAM_APDU [00:26:11]CAPDU: 80 17 00 00 [00:26:11]Write to MH i2c: E2 08 00 2B 28 80 17 00 00 00 00 00 00 D3 [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:11]Read from MH i2c: E2 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 FD 00 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 FD 00 2B 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [00:26:11]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:11]wFMCommunicate OK [00:26:11]wFMCommunicate request_size=4 [00:26:11]MH_SAM_APDU [00:26:11]CAPDU: 80 17 00 00 [00:26:11]Write to MH i2c: E2 08 00 2C 28 80 17 00 00 00 00 00 00 D4 [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:26:11]Read from MH i2c: E2 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 E2 00 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 E2 00 2C 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B2 [00:26:11]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:11]wFMCommunicate OK [00:26:11]SAM_PROTO_GetFMData done [00:26:11]requested_item fm.sale_refund.total is exist - process it [00:26:11]requested_item fm.buy.total is exist - process it [00:26:11]requested_item shift.sale.total is exist - process it [00:26:11]SAM_PROTO_GetShiftData [00:26:11]wFMCommunicate request_size=4 [00:26:11]MH_SAM_APDU [00:26:11]CAPDU: 80 13 02 00 [00:26:11]Write to MH i2c: E2 08 00 2D 28 80 13 02 00 00 00 00 00 D3 [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 2D 28 00 B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 76 [00:26:12]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 [00:26:12]wFMCommunicate OK [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 17 00 00 [00:26:12]Write to MH i2c: E2 08 00 2E 28 80 17 00 00 00 00 00 00 D6 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 2E 28 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 EF [00:26:12]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:26:12]wFMCommunicate OK [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 17 00 00 [00:26:12]Write to MH i2c: E2 08 00 2F 28 80 17 00 00 00 00 00 00 D7 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 2F 28 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 90 [00:26:12]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:26:12]wFMCommunicate OK [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 17 00 00 [00:26:12]Write to MH i2c: E2 08 00 30 28 80 17 00 00 00 00 00 00 D8 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 30 28 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 50 [00:26:13]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:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 31 28 80 17 00 00 00 00 00 00 D9 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 CE 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 CE 00 31 28 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 BE [00:26:13]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:26:13]wFMCommunicate OK [00:26:13]SAM_PROTO_GetShiftData done [00:26:13]requested_item shift.sale.total_cash is exist - process it [00:26:13]requested_item shift.sale_refund.total is exist - process it [00:26:13]requested_item shift.sale_refund.total_cash is exist - process it [00:26:13]requested_item shift.buy.total is exist - process it [00:26:13]requested_item shift.buy.total_cash is exist - process it [00:26:13]produce_requested_data done [00:26:13]produce_requested_data return {"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:26:13]process_action_free get_value [00:26:13]json_value_free [00:26:13]json_value_free done [00:26:13]process_json_proto returns [00:26:13]Send response to host [00:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:26:13]free response buf [00:26:13]execute_script done [00:26:13]execute_script returns [00:26:13]free content buf [00:26:13]Sock 5.Close socket [00:26:13]Sock 5.Thread stoped [00:26:13]accept exits with 6 [00:26:13]New connection [00:26:13]New thread 3066920292 created [00:26:13]Thread 3066776932 joined [00:26:13]Waiting for new connection... [00:26:13] Sock 6.Parse request [00:26:13]Sock 6.Check first char [00:26:13]Sock 6.First char is OK [00:26:13]request: POST /json_proto HTTP/1.0 [00:26:13]Method: POST [00:26:13]URL: /json_proto [00:26:13]Method is POST - this is cgi request [00:26:13]url: /json_proto [00:26:13]query_string will be loaded in cgi processing [00:26:13]execute_cgi json_proto POST (null) [00:26:13]execute_cgi path=json_proto method=POST [00:26:13]POST find Content-Length [00:26:13]Host: 172.17.53.195:8080 [00:26:13]Content-Length: 331 [00:26:13]Content-Type: application/json [00:26:13] [00:26:13]POST finish read [00:26:13]Found Content-Length = 331 [00:26:13]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:26:13]execute_script... [00:26:13]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:26:13]POST & json_proto [00:26:13]process_json_proto [00:26:13]json parsed OK: [00:26:13]protocol is kg_v1.0 [00:26:13]action value=get_value [00:26:13]process_action get_value [00:26:13]cmd_get_value [00:26:13]process_action get_value done [00:26:13]requested_data is exist [00:26:13]produce_requested_data [00:26:13]requested_item fm.sale.total is exist - process it [00:26:13]SAM_PROTO_GetFMData [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 13 03 00 [00:26:13]Write to MH i2c: E2 08 00 32 28 80 13 03 00 00 00 00 00 D9 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 32 28 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 A7 [00:26:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 17 00 00 [00:26:14]Write to MH i2c: E2 08 00 33 28 80 17 00 00 00 00 00 00 DB [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 33 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [00:26:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 17 00 00 [00:26:14]Write to MH i2c: E2 08 00 34 28 80 17 00 00 00 00 00 00 DC [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 34 28 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 90 00 EE [00:26:14]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 17 00 00 [00:26:14]Write to MH i2c: E2 08 00 35 28 80 17 00 00 00 00 00 00 DD [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 35 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 69 [00:26:15]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:15]wFMCommunicate OK [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 17 00 00 [00:26:15]Write to MH i2c: E2 08 00 36 28 80 17 00 00 00 00 00 00 DE [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 E2 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 E2 00 36 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:15]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:15]wFMCommunicate OK [00:26:15]SAM_PROTO_GetFMData done [00:26:15]requested_item fm.sale_refund.total is exist - process it [00:26:15]requested_item fm.buy.total is exist - process it [00:26:15]requested_item shift.sale.total is exist - process it [00:26:15]SAM_PROTO_GetShiftData [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 13 02 00 [00:26:15]Write to MH i2c: E2 08 00 37 28 80 13 02 00 00 00 00 00 DD [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]OFD Sender: No OFD packet to send [00:26:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 37 28 00 B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 80 [00:26:16]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=4 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 17 00 00 [00:26:16]Write to MH i2c: E2 08 00 38 28 80 17 00 00 00 00 00 00 E0 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 38 28 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 F9 [00:26:16]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:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=4 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 17 00 00 [00:26:16]Write to MH i2c: E2 08 00 39 28 80 17 00 00 00 00 00 00 E1 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 39 28 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 9A [00:26:17]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:26:17]wFMCommunicate OK [00:26:17]wFMCommunicate request_size=4 [00:26:17]MH_SAM_APDU [00:26:17]CAPDU: 80 17 00 00 [00:26:17]Write to MH i2c: E2 08 00 3A 28 80 17 00 00 00 00 00 00 E2 [00:26:17]Write i2c OK [00:26:17]MH_I2C_Read... [00:26:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:17]Read from MH i2c: E2 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 FD 00 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 FD 00 3A 28 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 5A [00:26:17]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:26:17]wFMCommunicate OK [00:26:17]wFMCommunicate request_size=4 [00:26:17]MH_SAM_APDU [00:26:17]CAPDU: 80 17 00 00 [00:26:17]Write to MH i2c: E2 08 00 3B 28 80 17 00 00 00 00 00 00 E3 [00:26:17]Write i2c OK [00:26:17]MH_I2C_Read... [00:26:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:17]Read from MH i2c: E2 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 CE 00 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 CE 00 3B 28 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 C8 [00:26:17]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:26:18]wFMCommunicate OK [00:26:18]SAM_PROTO_GetShiftData done [00:26:18]requested_item shift.sale.total_cash is exist - process it [00:26:18]requested_item shift.sale_refund.total is exist - process it [00:26:18]requested_item shift.sale_refund.total_cash is exist - process it [00:26:18]requested_item shift.buy.total is exist - process it [00:26:18]requested_item shift.buy.total_cash is exist - process it [00:26:18]produce_requested_data done [00:26:18]produce_requested_data return {"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:26:18]process_action_free get_value [00:26:18]json_value_free [00:26:18]json_value_free done [00:26:18]process_json_proto returns [00:26:18]Send response to host [00:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:26:18]free response buf [00:26:18]execute_script done [00:26:18]execute_script returns [00:26:18]free content buf [00:26:18]Sock 6.Close socket [00:26:18]Sock 6.Thread stoped [00:26:18]accept exits with 5 [00:26:18]New connection [00:26:18]New thread 3066776932 created [00:26:18]Thread 3066920292 joined [00:26:18]Waiting for new connection... [00:26:18] Sock 5.Parse request [00:26:18]Sock 5.Check first char [00:26:18]Sock 5.First char is OK [00:26:18]request: POST /json_proto HTTP/1.0 [00:26:18]Method: POST [00:26:18]URL: /json_proto [00:26:18]Method is POST - this is cgi request [00:26:18]url: /json_proto [00:26:18]query_string will be loaded in cgi processing [00:26:18]execute_cgi json_proto POST (null) [00:26:18]execute_cgi path=json_proto method=POST [00:26:18]POST find Content-Length [00:26:18]Host: 172.17.53.195:8080 [00:26:18]Content-Length: 251 [00:26:18]Content-Type: application/json [00:26:18] [00:26:18]POST finish read [00:26:18]Found Content-Length = 251 [00:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0443\u0440\u0437\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:18]execute_script... [00:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0443\u0440\u0437\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:18]POST & json_proto [00:26:18]process_json_proto [00:26:18]json parsed OK: [00:26:18]protocol is kg_v1.0 [00:26:18]action value=x_report [00:26:18]process_action x_report [00:26:18]cmd_x_report [00:26:18]MH_GetDate [00:26:18]Write to MH i2c: F0 00 00 3C 28 53 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: F0 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: F0 09 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: F0 09 00 3C 28 00 B9 9F 15 67 21 48 4A 65 48 [00:26:18]GetLastDocTimeStamp 1729470177 [00:26:18]current date 1729470393 [00:26:18]FM_GetShiftState [00:26:18]SAM_PROTO_GetShiftState [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 13 01 00 [00:26:18]Write to MH i2c: E2 08 00 3D 28 80 13 01 00 00 00 00 00 E2 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 0E 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 0E 00 3D 28 00 09 00 01 71 50 14 67 00 00 00 00 90 00 2A [00:26:18]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:26:18]wFMCommunicate OK [00:26:18]SAM_PROTO_GetShiftState done [00:26:18]FM_GetShiftState done [00:26:18]KKMCreateXReportDocument [00:26:18]Load OK [00:26:18]Malloc new data [00:26:18]MH_GetDate [00:26:18]Write to MH i2c: F0 00 00 3E 28 55 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: F0 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: F0 09 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: F0 09 00 3E 28 00 B9 9F 15 67 21 48 4A 65 4A [00:26:18]Malloc new data [00:26:18]Malloc new data [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 11 00 00 [00:26:18]Write to MH i2c: E2 08 00 3F 28 80 11 00 00 00 00 00 00 E1 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 17 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 17 00 3F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 39 [00:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:26:18]wFMCommunicate OK [00:26:18]SAM_PROTO_GetFieldsCounters [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 13 00 00 [00:26:18]Write to MH i2c: E2 08 00 40 28 80 13 00 00 00 00 00 00 E4 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 62 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 62 00 40 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [00:26:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:18]wFMCommunicate OK [00:26:18]SAM_PROTO_GetFieldsCounters done [00:26:18]Malloc new data [00:26:18]Malloc new data [00:26:18]Malloc new data [00:26:18]KKMCreateXReportDocument OK [00:26:18]KKMSetXReportData OK [00:26:18]KKMPrepareXReportFMData [00:26:18]SAM_PROTO_GetShiftData [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 13 02 00 [00:26:18]Write to MH i2c: E2 08 00 41 28 80 13 02 00 00 00 00 00 E7 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:19]Read from MH i2c: E2 FD 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 41 28 00 B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 8A [00:26:19]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 [00:26:19]wFMCommunicate OK [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 17 00 00 [00:26:19]Write to MH i2c: E2 08 00 42 28 80 17 00 00 00 00 00 00 EA [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 42 28 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 03 [00:26:19]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:26:19]wFMCommunicate OK [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 17 00 00 [00:26:19]Write to MH i2c: E2 08 00 43 28 80 17 00 00 00 00 00 00 EB [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 43 28 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 A4 [00:26: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:26:20]wFMCommunicate OK [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 17 00 00 [00:26:20]Write to MH i2c: E2 08 00 44 28 80 17 00 00 00 00 00 00 EC [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 44 28 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 64 [00:26: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:26:20]wFMCommunicate OK [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 17 00 00 [00:26:20]Write to MH i2c: E2 08 00 45 28 80 17 00 00 00 00 00 00 ED [00:26:20]OFD Sender: No OFD packet to send [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 CE 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 CE 00 45 28 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 D2 [00:26: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:26:21]wFMCommunicate OK [00:26:21]SAM_PROTO_GetShiftData done [00:26:21]1194 (1197) - счетчики итогов смены [00:26:21] 1134 (4) - 369 - количество чеков со всеми признаками расчетов [00:26:21] 1129 (158) - счетчики операций «приход» [00:26:21] 1135 (4) - 369 - количество чеков по признаку расчетов [00:26:21] 1201 (4) - 399374.41 - общая итоговая сумма в чеках [00:26:21] 1136 (4) - 306952.00 - итоговая сумма в чеках наличными [00:26:21] 1138 (3) - 92422.41 - итоговая сумма в чеках безналичными [00:26:21] 1024 (123) - суммы налогов [00:26:21] 1006 (9) - суммы НДС [00:26:21] 1010 (1) - 0% - код ставки НДС [00:26:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:21] 1006 (12) - суммы НДС [00:26:21] 1010 (1) - 12% - код ставки НДС [00:26:21] 1011 (3) - 42423.71 - сумма НДС по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 0% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (12) - суммы НСП [00:26:21] 1014 (1) - 1% - код ставки НСП [00:26:21] 1015 (3) - 3535.20 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 2% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 3% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 5% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 0,50% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 1,50% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1130 (141) - счетчики операций «возврат прихода» [00:26:21] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:21] 1024 (117) - суммы налогов [00:26:21] 1006 (9) - суммы НДС [00:26:21] 1010 (1) - 0% - код ставки НДС [00:26:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:21] 1006 (9) - суммы НДС [00:26:21] 1010 (1) - 12% - код ставки НДС [00:26:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 0% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 1% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 2% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 3% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 5% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 0,50% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 1,50% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1131 (141) - счетчики операций «расход» [00:26:21] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:21] 1024 (117) - суммы налогов [00:26:21] 1006 (9) - суммы НДС [00:26:21] 1010 (1) - 0% - код ставки НДС [00:26:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:21] 1006 (9) - суммы НДС [00:26:21] 1010 (1) - 12% - код ставки НДС [00:26:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 0% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 1% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 2% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 3% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 5% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 0,50% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 1,50% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1132 (141) - счетчики операций «возврат расхода» [00:26:21] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:21] 1024 (117) - суммы налогов [00:26:21] 1006 (9) - суммы НДС [00:26:21] 1010 (1) - 0% - код ставки НДС [00:26:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:21] 1006 (9) - суммы НДС [00:26:21] 1010 (1) - 12% - код ставки НДС [00:26:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 0% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 1% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 2% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 3% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 5% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 0,50% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1007 (9) - суммы НСП [00:26:21] 1014 (1) - 1,50% - код ставки НСП [00:26:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:21] 1133 (588) - - счетчики коррекции - не используются [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1194 (04AA) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1134 (046E) [00:26:21]Malloc new data [00:26:21]Processing tag 1129 (0469) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1135 (046F) [00:26:21]Malloc new data [00:26:21]Processing tag 1201 (04B1) [00:26:21]Malloc new data [00:26:21]Processing tag 1136 (0470) [00:26:21]Malloc new data [00:26:21]Processing tag 1138 (0472) [00:26:21]Malloc new data [00:26:21]Processing tag 1024 (0400) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1006 (03EE) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1010 (03F2) [00:26:21]Malloc new data [00:26:21]Processing tag 1011 (03F3) [00:26:21]Malloc new data [00:26:21]SetTLVBufToDocument err=0 [00:26:21]Processing tag 1006 (03EE) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1010 (03F2) [00:26:21]Malloc new data [00:26:21]Processing tag 1011 (03F3) [00:26:21]Malloc new data [00:26:21]SetTLVBufToDocument err=0 [00:26:21]Processing tag 1007 (03EF) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1014 (03F6) [00:26:21]Malloc new data [00:26:21]Processing tag 1015 (03F7) [00:26:21]Malloc new data [00:26:21]SetTLVBufToDocument err=0 [00:26:21]Processing tag 1007 (03EF) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1014 (03F6) [00:26:21]Malloc new data [00:26:21]Processing tag 1015 (03F7) [00:26:21]Malloc new data [00:26:21]SetTLVBufToDocument err=0 [00:26:21]Processing tag 1007 (03EF) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1014 (03F6) [00:26:21]Malloc new data [00:26:21]Processing tag 1015 (03F7) [00:26:21]Malloc new data [00:26:21]SetTLVBufToDocument err=0 [00:26:21]Processing tag 1007 (03EF) [00:26:21]Load OK [00:26:21]SetTLVBufToDocument [00:26:21]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1130 (046A) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1135 (046F) [00:26:22]Malloc new data [00:26:22]Processing tag 1201 (04B1) [00:26:22]Malloc new data [00:26:22]Processing tag 1136 (0470) [00:26:22]Malloc new data [00:26:22]Processing tag 1138 (0472) [00:26:22]Malloc new data [00:26:22]Processing tag 1024 (0400) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1006 (03EE) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1010 (03F2) [00:26:22]Malloc new data [00:26:22]Processing tag 1011 (03F3) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1006 (03EE) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1010 (03F2) [00:26:22]Malloc new data [00:26:22]Processing tag 1011 (03F3) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1131 (046B) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1135 (046F) [00:26:22]Malloc new data [00:26:22]Processing tag 1201 (04B1) [00:26:22]Malloc new data [00:26:22]Processing tag 1136 (0470) [00:26:22]Malloc new data [00:26:22]Processing tag 1138 (0472) [00:26:22]Malloc new data [00:26:22]Processing tag 1024 (0400) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1006 (03EE) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1010 (03F2) [00:26:22]Malloc new data [00:26:22]Processing tag 1011 (03F3) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1006 (03EE) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1010 (03F2) [00:26:22]Malloc new data [00:26:22]Processing tag 1011 (03F3) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1132 (046C) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1135 (046F) [00:26:22]Malloc new data [00:26:22]Processing tag 1201 (04B1) [00:26:22]Malloc new data [00:26:22]Processing tag 1136 (0470) [00:26:22]Malloc new data [00:26:22]Processing tag 1138 (0472) [00:26:22]Malloc new data [00:26:22]Processing tag 1024 (0400) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1006 (03EE) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1010 (03F2) [00:26:22]Malloc new data [00:26:22]Processing tag 1011 (03F3) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1006 (03EE) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1010 (03F2) [00:26:22]Malloc new data [00:26:22]Processing tag 1011 (03F3) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1007 (03EF) [00:26:22]Load OK [00:26:22]SetTLVBufToDocument [00:26:22]Processing tag 1014 (03F6) [00:26:22]Malloc new data [00:26:22]Processing tag 1015 (03F7) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Processing tag 1133 (046D) [00:26:22]Malloc new data [00:26:22]SetTLVBufToDocument err=0 [00:26:22]SetTLVBufToDocument err=0 [00:26:22]Malloc new data [00:26:22]SAM_PROTO_GetFMData [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 13 03 00 [00:26:22]Write to MH i2c: E2 08 00 46 28 80 13 03 00 00 00 00 00 ED [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 46 28 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 BB [00:26:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [00:26:23]wFMCommunicate OK [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 47 28 80 17 00 00 00 00 00 00 EF [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:23]Read from MH i2c: E2 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 47 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [00:26:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:23]wFMCommunicate OK [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 48 28 80 17 00 00 00 00 00 00 F0 [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 48 28 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 90 00 02 [00:26:24]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:24]wFMCommunicate OK [00:26:24]wFMCommunicate request_size=4 [00:26:24]MH_SAM_APDU [00:26:24]CAPDU: 80 17 00 00 [00:26:24]Write to MH i2c: E2 08 00 49 28 80 17 00 00 00 00 00 00 F1 [00:26:24]Write i2c OK [00:26:24]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 49 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7D [00:26:24]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:25]wFMCommunicate OK [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 17 00 00 [00:26:25]Write to MH i2c: E2 08 00 4A 28 80 17 00 00 00 00 00 00 F2 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 E2 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 E2 00 4A 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [00:26:25]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:25]wFMCommunicate OK [00:26:25]SAM_PROTO_GetFMData done [00:26:25]FM_GetFMData:85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 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 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:26:25]EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:26]oper:6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:26]total:54 DC 9B B0 03 [00:26:26]Malloc new data [00:26:26]oper:6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 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 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:26]total:A0 FF AF 0A [00:26:26]Malloc new data [00:26:26]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:26:26]total: [00:26:26]Malloc new data [00:26:26]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:26:26]total: [00:26:26]Malloc new data [00:26:26]KKMPrepareXReportFMData err=0 [00:26:26]Х отчет ИНН: 02508201610067 Кассир: Мурзаев Т. 21.10.2024 00:26 Смена: 522 РНМ: 0000000000091764 ЗНМ: 0300000104 СНО: Общий режим Всего чеков: 369 ИТОГИ ПРИХОД Чеков: 369 Общий итог: 399374.41 Итого наличными: 306952.00 Итого безнал.: 92422.41 НДС 0% : 0.00 НДС 12% : 42423.71 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3535.20 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 306952.00 НС Приход: 158479063.88 НС Возвр.Прихода: 1793064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871759 [00:26:26]StoreToDocumentArchive [00:26:26]MH_GetDate [00:26:26]Write to MH i2c: F0 00 00 4B 28 62 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 09 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 09 00 4B 28 00 C1 9F 15 67 21 48 4A 65 5F [00:26:26]shift 522 fd 1729470401 [00:26:26]Create dir for shift 0522 [00:26:26]save to /storage/0522/doc_1729470401 [00:26:26]save last doc name /storage/0522/doc_1729470401 to /storage/kkm_last_doc_name [00:26:26]save OK [00:26:26]Clear old archive folders... [00:26:26]NVStorageSaveData kkm_last_timestamp [00:26:26]File name is /storage/kkm_last_timestamp [00:26:26]Write 4 bytes [00:26:26]NVStorageSaveData done [00:26:26]ExternCall_PrintAddStr [00:26:26]wPrintStart [00:26:26]Write to MH i2c: 01 00 00 4C 28 74 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: 01 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: 01 07 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: 01 07 00 4C 28 00 00 00 00 00 FF 0F 89 [00:26:26]RasterBufferAndPrint [00:26:26]line Х отчет [00:26:26]line ИНН: 02508201610067 [00:26:26]line Кассир: Мурзаев Т. [00:26:26]line 21.10.2024 00:26 [00:26:26]line Смена: 522 [00:26:26]line РНМ: 0000000000091764 [00:26:26]line ЗНМ: 0300000104 [00:26:26]line СНО: Общий режим [00:26:26]line Всего чеков: 369 [00:26:26]line ИТОГИ ПРИХОД [00:26:26]line Чеков: 369 [00:26:26]line Общий итог: 399374.41 [00:26:26]line Итого наличными: 306952.00 [00:26:26]line Итого безнал.: 92422.41 [00:26:26]line НДС 0% : 0.00 [00:26:26]line НДС 12% : 42423.71 [00:26:26]line НСП 0% : 0.00 [00:26:26]line НСП 1,50% : 0.00 [00:26:26]line НСП 0,50% : 0.00 [00:26:26]line НСП 5% : 0.00 [00:26:26]line НСП 3% : 0.00 [00:26:26]line НСП 2% : 0.00 [00:26:26]line НСП 1% : 3535.20 [00:26:26]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:26:26]line Чеков: 0 [00:26:26]line Общий итог: 0.00 [00:26:26]line Итого наличными: 0.00 [00:26:26]line Итого безнал.: 0.00 [00:26:26]line НДС 0% : 0.00 [00:26:26]line НДС 12% : 0.00 [00:26:26]line НСП 0% : 0.00 [00:26:26]line НСП 1,50% : 0.00 [00:26:26]line НСП 0,50% : 0.00 [00:26:26]line НСП 5% : 0.00 [00:26:26]line НСП 3% : 0.00 [00:26:26]line НСП 2% : 0.00 [00:26:26]line НСП 1% : 0.00 [00:26:26]line ИТОГИ РАСХОД [00:26:26]line Чеков: 0 [00:26:26]line Общий итог: 0.00 [00:26:26]line Итого наличными: 0.00 [00:26:26]line Итого безнал.: 0.00 [00:26:26]line НДС 0% : 0.00 [00:26:26]line НДС 12% : 0.00 [00:26:26]line НСП 0% : 0.00 [00:26:26]line НСП 1,50% : 0.00 [00:26:26]line НСП 0,50% : 0.00 [00:26:26]line НСП 5% : 0.00 [00:26:26]line НСП 3% : 0.00 [00:26:26]line НСП 2% : 0.00 [00:26:26]line НСП 1% : 0.00 [00:26:26]line ИТОГИ ВОЗВРАТ РАСХОДА [00:26:26]line Чеков: 0 [00:26:26]line Общий итог: 0.00 [00:26:26]line Итого наличными: 0.00 [00:26:26]line Итого безнал.: 0.00 [00:26:26]line НДС 0% : 0.00 [00:26:26]line НДС 12% : 0.00 [00:26:26]line НСП 0% : 0.00 [00:26:26]line НСП 1,50% : 0.00 [00:26:26]line НСП 0,50% : 0.00 [00:26:26]line НСП 5% : 0.00 [00:26:26]line НСП 3% : 0.00 [00:26:26]line НСП 2% : 0.00 [00:26:26]line НСП 1% : 0.00 [00:26:26]line Сумма внесений: 0.00 [00:26:26]line Сумма выплат: 0.00 [00:26:26]line Нал. в кассе: 306952.00 [00:26:26]line НС Приход: 158479063.88 [00:26:26]line НС Возвр.Прихода: 1793064.00 [00:26:26]line НС Расход: 0.00 [00:26:26]line НС Возвр.Расхода: 0.00 [00:26:26]line ФМ: 0000000000871759 [00:26:26]written 0, free lines is 4095 [00:26:27]Write to MH i2c: 01 00 00 97 28 BF [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: 01 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: 01 07 00 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: 01 07 00 97 28 00 00 00 00 00 7A 0A 4A [00:26:27]RasterBufferAndPrint [00:26:27]line [00:26:27]line [00:26:27]line [00:26:27]line [00:26:27]line [00:26:27]written 0, free lines is 2716 [00:26:27]MH_Cut [00:26:27]Write to MH i2c: D1 01 00 9E 28 01 98 [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: D1 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: D1 01 00 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: D1 01 00 9E 28 00 97 [00:26:27]Write to MH i2c: 01 00 00 9F 28 C7 [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:28]*** Cut start [00:26:28]*** Partial cut [00:26:28]*** CUTSNS_PIN = 1 [00:26:28]*** CUTSNS_PIN = 0 [00:26:29]*** Brake cut motor [00:26:29]Read from MH i2c: 01 [00:26:29]MH_I2C_Read... [00:26:29]*** Stop cut motor [00:26:29]*** Cut end [00:26:29]Read from MH i2c: 01 07 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: 01 07 00 9F 28 00 00 00 00 00 FF 0F DC [00:26:29]process_action x_report done [00:26:29]requested_data is exist [00:26:29]produce_requested_data [00:26:29]requested_item fd.num is exist - process it [00:26:29]SAM_PROTO_GetFieldsCounters [00:26:29]wFMCommunicate request_size=4 [00:26:29]MH_SAM_APDU [00:26:29]CAPDU: 80 13 00 00 [00:26:29]Write to MH i2c: E2 08 00 A0 28 80 13 00 00 00 00 00 00 44 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:29]Read from MH i2c: E2 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 62 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 62 00 A0 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [00:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:29]wFMCommunicate OK [00:26:29]SAM_PROTO_GetFieldsCounters done [00:26:29]requested_item shift.num is exist - process it [00:26:29]requested_item shift.opened is exist - process it [00:26:29]req_shift_opened [00:26:29]FM_GetShiftState [00:26:29]SAM_PROTO_GetShiftState [00:26:29]wFMCommunicate request_size=4 [00:26:29]MH_SAM_APDU [00:26:29]CAPDU: 80 13 01 00 [00:26:29]Write to MH i2c: E2 08 00 A1 28 80 13 01 00 00 00 00 00 46 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:29]Read from MH i2c: E2 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 0E 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 0E 00 A1 28 00 09 00 01 71 50 14 67 00 00 00 00 90 00 8E [00:26:29]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:26:29]wFMCommunicate OK [00:26:29]SAM_PROTO_GetShiftState done [00:26:29]FM_GetShiftState done [00:26:29]req_shift_opened done [00:26:29]requested_item shift.open_date is exist - process it [00:26:29]req_shift_open_date [00:26:29]req_shift_open_date done [00:26:29]produce_requested_data done [00:26:29]produce_requested_data return {"fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:26:29]process_action_free x_report [00:26:29]json_value_free [00:26:29]json_value_free done [00:26:29]process_json_proto returns [00:26:29]Send response to host [00:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:26:29]free response buf [00:26:29]execute_script done [00:26:29]execute_script returns [00:26:29]free content buf [00:26:29]Sock 5.Close socket [00:26:29]Sock 5.Thread stoped [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:07]accept exits with 6 [00:27:07]New connection [00:27:07]New thread 3066920292 created [00:27:07]Thread 3066776932 joined [00:27:07]Waiting for new connection... [00:27:07] Sock 6.Parse request [00:27:07]Sock 6.Check first char [00:27:07]Sock 6.First char is OK [00:27:07]request: POST /json_proto HTTP/1.0 [00:27:07]Method: POST [00:27:07]URL: /json_proto [00:27:07]Method is POST - this is cgi request [00:27:07]url: /json_proto [00:27:07]query_string will be loaded in cgi processing [00:27:07]execute_cgi json_proto POST (null) [00:27:07]execute_cgi path=json_proto method=POST [00:27:07]POST find Content-Length [00:27:07]Host: 172.17.53.195:8080 [00:27:07]Content-Length: 215 [00:27:07]Content-Type: application/json [00:27:07] [00:27:07]POST finish read [00:27:07]Found Content-Length = 215 [00:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:07]execute_script... [00:27:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:07]POST & json_proto [00:27:07]process_json_proto [00:27:07]json parsed OK: [00:27:07]protocol is kg_v1.0 [00:27:07]action value=get_value [00:27:07]process_action get_value [00:27:07]cmd_get_value [00:27:07]process_action get_value done [00:27:07]requested_data is exist [00:27:07]produce_requested_data [00:27:07]requested_item kkm.sn is exist - process it [00:27:07]requested_item kkm.ver is exist - process it [00:27:07]requested_item fm.sn is exist - process it [00:27:07]wFMCommunicate request_size=4 [00:27:07]MH_SAM_APDU [00:27:07]CAPDU: 80 11 00 00 [00:27:07]Write to MH i2c: E2 08 00 A2 28 80 11 00 00 00 00 00 00 44 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 17 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 17 00 A2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [00:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:27:07]wFMCommunicate OK [00:27:07]requested_item fd.num is exist - process it [00:27:07]SAM_PROTO_GetFieldsCounters [00:27:07]wFMCommunicate request_size=4 [00:27:07]MH_SAM_APDU [00:27:07]CAPDU: 80 13 00 00 [00:27:07]Write to MH i2c: E2 08 00 A3 28 80 13 00 00 00 00 00 00 47 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 62 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 62 00 A3 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [00:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 87 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:07]wFMCommunicate OK [00:27:07]SAM_PROTO_GetFieldsCounters done [00:27:07]requested_item shift.num is exist - process it [00:27:07]requested_item shift.opened is exist - process it [00:27:07]req_shift_opened [00:27:07]FM_GetShiftState [00:27:07]SAM_PROTO_GetShiftState [00:27:07]wFMCommunicate request_size=4 [00:27:07]MH_SAM_APDU [00:27:07]CAPDU: 80 13 01 00 [00:27:07]Write to MH i2c: E2 08 00 A4 28 80 13 01 00 00 00 00 00 49 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 0E 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 0E 00 A4 28 00 09 00 01 71 50 14 67 00 00 00 00 90 00 91 [00:27:07]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:27:07]wFMCommunicate OK [00:27:07]SAM_PROTO_GetShiftState done [00:27:07]FM_GetShiftState done [00:27:07]req_shift_opened done [00:27:07]requested_item shift.open_date is exist - process it [00:27:07]req_shift_open_date [00:27:07]req_shift_open_date done [00:27:07]produce_requested_data done [00:27:07]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561} [00:27:07]process_action_free get_value [00:27:07]json_value_free [00:27:07]json_value_free done [00:27:07]process_json_proto returns [00:27:07]Send response to host [00:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165887,"shift.num":534,"shift.opened":1,"shift.open_date":1729384561}}} [00:27:07]free response buf [00:27:07]execute_script done [00:27:07]execute_script returns [00:27:07]free content buf [00:27:07]Sock 6.Close socket [00:27:07]Sock 6.Thread stoped [00:27:07]accept exits with 5 [00:27:07]New connection [00:27:07]New thread 3066776932 created [00:27:07]Thread 3066920292 joined [00:27:07]Waiting for new connection... [00:27:07] Sock 5.Parse request [00:27:07]Sock 5.Check first char [00:27:07]Sock 5.First char is OK [00:27:07]request: POST /json_proto HTTP/1.0 [00:27:07]Method: POST [00:27:07]URL: /json_proto [00:27:07]Method is POST - this is cgi request [00:27:07]url: /json_proto [00:27:07]query_string will be loaded in cgi processing [00:27:07]execute_cgi json_proto POST (null) [00:27:07]execute_cgi path=json_proto method=POST [00:27:07]POST find Content-Length [00:27:07]Host: 172.17.53.195:8080 [00:27:07]Content-Length: 331 [00:27:07]Content-Type: application/json [00:27:07] [00:27:07]POST finish read [00:27:07]Found Content-Length = 331 [00:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:07]execute_script... [00:27:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:08]POST & json_proto [00:27:08]process_json_proto [00:27:08]json parsed OK: [00:27:08]protocol is kg_v1.0 [00:27:08]action value=get_value [00:27:08]process_action get_value [00:27:08]cmd_get_value [00:27:08]process_action get_value done [00:27:08]requested_data is exist [00:27:08]produce_requested_data [00:27:08]requested_item fm.sale.total is exist - process it [00:27:08]SAM_PROTO_GetFMData [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 13 03 00 [00:27:08]Write to MH i2c: E2 08 00 A5 28 80 13 03 00 00 00 00 00 4C [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:08]Read from MH i2c: E2 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 FD 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 FD 00 A5 28 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 1A [00:27:08]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [00:27:08]wFMCommunicate OK [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 17 00 00 [00:27:08]Write to MH i2c: E2 08 00 A6 28 80 17 00 00 00 00 00 00 4E [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:08]Read from MH i2c: E2 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 FD 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 FD 00 A6 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [00:27:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:08]wFMCommunicate OK [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 17 00 00 [00:27:08]Write to MH i2c: E2 08 00 A7 28 80 17 00 00 00 00 00 00 4F [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:09]Read from MH i2c: E2 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 A7 28 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 90 00 61 [00:27:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:09]wFMCommunicate OK [00:27:09]wFMCommunicate request_size=4 [00:27:09]MH_SAM_APDU [00:27:09]CAPDU: 80 17 00 00 [00:27:09]Write to MH i2c: E2 08 00 A8 28 80 17 00 00 00 00 00 00 50 [00:27:09]Write i2c OK [00:27:09]MH_I2C_Read... [00:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:09]Read from MH i2c: E2 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 A8 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DC [00:27:09]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:09]wFMCommunicate OK [00:27:09]wFMCommunicate request_size=4 [00:27:09]MH_SAM_APDU [00:27:09]CAPDU: 80 17 00 00 [00:27:09]Write to MH i2c: E2 08 00 A9 28 80 17 00 00 00 00 00 00 51 [00:27:09]Write i2c OK [00:27:09]MH_I2C_Read... [00:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:09]Read from MH i2c: E2 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 E2 00 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 E2 00 A9 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [00:27:09]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27:09]wFMCommunicate OK [00:27:09]SAM_PROTO_GetFMData done [00:27:09]requested_item fm.sale_refund.total is exist - process it [00:27:09]requested_item fm.buy.total is exist - process it [00:27:09]requested_item shift.sale.total is exist - process it [00:27:09]SAM_PROTO_GetShiftData [00:27:09]wFMCommunicate request_size=4 [00:27:09]MH_SAM_APDU [00:27:09]CAPDU: 80 13 02 00 [00:27:09]Write to MH i2c: E2 08 00 AA 28 80 13 02 00 00 00 00 00 50 [00:27:09]Write i2c OK [00:27:09]MH_I2C_Read... [00:27:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:10]Read from MH i2c: E2 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 AA 28 00 B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 F3 [00:27:10]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 [00:27:10]wFMCommunicate OK [00:27:10]wFMCommunicate request_size=4 [00:27:10]MH_SAM_APDU [00:27:10]CAPDU: 80 17 00 00 [00:27:10]Write to MH i2c: E2 08 00 AB 28 80 17 00 00 00 00 00 00 53 [00:27:10]Write i2c OK [00:27:10]MH_I2C_Read... [00:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:10]Read from MH i2c: E2 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 AB 28 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 6C [00:27: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:27:10]wFMCommunicate OK [00:27:10]wFMCommunicate request_size=4 [00:27:10]MH_SAM_APDU [00:27:10]CAPDU: 80 17 00 00 [00:27:10]Write to MH i2c: E2 08 00 AC 28 80 17 00 00 00 00 00 00 54 [00:27:10]Write i2c OK [00:27:10]MH_I2C_Read... [00:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:10]Read from MH i2c: E2 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 AC 28 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 0D [00:27: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:27:10]wFMCommunicate OK [00:27:10]wFMCommunicate request_size=4 [00:27:10]MH_SAM_APDU [00:27:10]CAPDU: 80 17 00 00 [00:27:10]Write to MH i2c: E2 08 00 AD 28 80 17 00 00 00 00 00 00 55 [00:27:10]Write i2c OK [00:27:10]MH_I2C_Read... [00:27:11]OFD Sender: No OFD packet to send [00:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:11]Read from MH i2c: E2 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 FD 00 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 FD 00 AD 28 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 CD [00:27: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:27:11]wFMCommunicate OK [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 17 00 00 [00:27:11]Write to MH i2c: E2 08 00 AE 28 80 17 00 00 00 00 00 00 56 [00:27:11]Write i2c OK [00:27:11]MH_I2C_Read... [00:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:27:11]Read from MH i2c: E2 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 CE 00 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 CE 00 AE 28 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 3B [00:27: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:27:11]wFMCommunicate OK [00:27:11]SAM_PROTO_GetShiftData done [00:27:11]requested_item shift.sale.total_cash is exist - process it [00:27:11]requested_item shift.sale_refund.total is exist - process it [00:27:11]requested_item shift.sale_refund.total_cash is exist - process it [00:27:11]requested_item shift.buy.total is exist - process it [00:27:11]requested_item shift.buy.total_cash is exist - process it [00:27:11]produce_requested_data done [00:27:11]produce_requested_data return {"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:27:11]process_action_free get_value [00:27:11]json_value_free [00:27:11]json_value_free done [00:27:11]process_json_proto returns [00:27:11]Send response to host [00:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:27:11]free response buf [00:27:11]execute_script done [00:27:11]execute_script returns [00:27:11]free content buf [00:27:11]Sock 5.Close socket [00:27:11]Sock 5.Thread stoped [00:27:11]accept exits with 6 [00:27:11]New connection [00:27:11]New thread 3066920292 created [00:27:11]Thread 3066776932 joined [00:27:11]Waiting for new connection... [00:27:11] Sock 6.Parse request [00:27:11]Sock 6.Check first char [00:27:11]Sock 6.First char is OK [00:27:11]request: POST /json_proto HTTP/1.0 [00:27:11]Method: POST [00:27:11]URL: /json_proto [00:27:11]Method is POST - this is cgi request [00:27:11]url: /json_proto [00:27:11]query_string will be loaded in cgi processing [00:27:11]execute_cgi json_proto POST (null) [00:27:11]execute_cgi path=json_proto method=POST [00:27:11]POST find Content-Length [00:27:11]Host: 172.17.53.195:8080 [00:27:11]Content-Length: 331 [00:27:11]Content-Type: application/json [00:27:11] [00:27:11]POST finish read [00:27:11]Found Content-Length = 331 [00:27:11]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:27:11]execute_script... [00:27:11]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:27:11]POST & json_proto [00:27:11]process_json_proto [00:27:11]json parsed OK: [00:27:11]protocol is kg_v1.0 [00:27:11]action value=get_value [00:27:11]process_action get_value [00:27:11]cmd_get_value [00:27:11]process_action get_value done [00:27:11]requested_data is exist [00:27:11]produce_requested_data [00:27:11]requested_item fm.sale.total is exist - process it [00:27:11]SAM_PROTO_GetFMData [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 13 03 00 [00:27:11]Write to MH i2c: E2 08 00 AF 28 80 13 03 00 00 00 00 00 56 [00:27:11]Write i2c OK [00:27:11]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 AF 28 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 24 [00:27:12]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [00:27:12]wFMCommunicate OK [00:27:12]wFMCommunicate request_size=4 [00:27:12]MH_SAM_APDU [00:27:12]CAPDU: 80 17 00 00 [00:27:12]Write to MH i2c: E2 08 00 B0 28 80 17 00 00 00 00 00 00 58 [00:27:12]Write i2c OK [00:27:12]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 B0 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [00:27:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:12]wFMCommunicate OK [00:27:12]wFMCommunicate request_size=4 [00:27:12]MH_SAM_APDU [00:27:12]CAPDU: 80 17 00 00 [00:27:12]Write to MH i2c: E2 08 00 B1 28 80 17 00 00 00 00 00 00 59 [00:27:12]Write i2c OK [00:27:12]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 B1 28 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 90 00 6B [00:27:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:13]wFMCommunicate OK [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 17 00 00 [00:27:13]Write to MH i2c: E2 08 00 B2 28 80 17 00 00 00 00 00 00 5A [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 B2 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [00:27:13]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:13]wFMCommunicate OK [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 17 00 00 [00:27:13]Write to MH i2c: E2 08 00 B3 28 80 17 00 00 00 00 00 00 5B [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 E2 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 E2 00 B3 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 39 [00:27:13]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27:13]wFMCommunicate OK [00:27:13]SAM_PROTO_GetFMData done [00:27:13]requested_item fm.sale_refund.total is exist - process it [00:27:13]requested_item fm.buy.total is exist - process it [00:27:13]requested_item shift.sale.total is exist - process it [00:27:13]SAM_PROTO_GetShiftData [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 13 02 00 [00:27:13]Write to MH i2c: E2 08 00 B4 28 80 13 02 00 00 00 00 00 5A [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 B4 28 00 B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 FD [00:27:14]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 [00:27:14]wFMCommunicate OK [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 17 00 00 [00:27:14]Write to MH i2c: E2 08 00 B5 28 80 17 00 00 00 00 00 00 5D [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 B5 28 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 76 [00:27:14]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:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 17 00 00 [00:27:15]Write to MH i2c: E2 08 00 B6 28 80 17 00 00 00 00 00 00 5E [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 B6 28 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 17 [00:27:15]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:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 17 00 00 [00:27:15]Write to MH i2c: E2 08 00 B7 28 80 17 00 00 00 00 00 00 5F [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 B7 28 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 D7 [00:27:15]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:27:16]wFMCommunicate OK [00:27:16]wFMCommunicate request_size=4 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 17 00 00 [00:27:16]Write to MH i2c: E2 08 00 B8 28 80 17 00 00 00 00 00 00 60 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]OFD Sender: No OFD packet to send [00:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 CE 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 CE 00 B8 28 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 45 [00:27:16]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:27:16]wFMCommunicate OK [00:27:16]SAM_PROTO_GetShiftData done [00:27:16]requested_item shift.sale.total_cash is exist - process it [00:27:16]requested_item shift.sale_refund.total is exist - process it [00:27:16]requested_item shift.sale_refund.total_cash is exist - process it [00:27:16]requested_item shift.buy.total is exist - process it [00:27:16]requested_item shift.buy.total_cash is exist - process it [00:27:16]produce_requested_data done [00:27:16]produce_requested_data return {"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:27:16]process_action_free get_value [00:27:16]json_value_free [00:27:16]json_value_free done [00:27:16]process_json_proto returns [00:27:16]Send response to host [00:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:27:16]free response buf [00:27:16]execute_script done [00:27:16]execute_script returns [00:27:16]free content buf [00:27:16]Sock 6.Close socket [00:27:16]Sock 6.Thread stoped [00:27:16]accept exits with 5 [00:27:16]New connection [00:27:16]New thread 3066776932 created [00:27:16]Thread 3066920292 joined [00:27:16]Waiting for new connection... [00:27:16] Sock 5.Parse request [00:27:16]Sock 5.Check first char [00:27:16]Sock 5.First char is OK [00:27:16]request: POST /json_proto HTTP/1.0 [00:27:16]Method: POST [00:27:16]URL: /json_proto [00:27:16]Method is POST - this is cgi request [00:27:16]url: /json_proto [00:27:16]query_string will be loaded in cgi processing [00:27:16]execute_cgi json_proto POST (null) [00:27:16]execute_cgi path=json_proto method=POST [00:27:16]POST find Content-Length [00:27:16]Host: 172.17.53.195:8080 [00:27:16]Content-Length: 254 [00:27:16]Content-Type: application/json [00:27:16] [00:27:16]POST finish read [00:27:16]Found Content-Length = 254 [00:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0443\u0440\u0437\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:16]execute_script... [00:27:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0443\u0440\u0437\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:16]POST & json_proto [00:27:16]process_json_proto [00:27:16]json parsed OK: [00:27:16]protocol is kg_v1.0 [00:27:16]action value=close_shift [00:27:16]process_action close_shift [00:27:16]cmd_close_shift [00:27:16]MH_GetDate [00:27:16]Write to MH i2c: F0 00 00 B9 28 D0 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: F0 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: F0 09 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: F0 09 00 B9 28 00 F3 9F 15 67 21 48 4A 65 FF [00:27:16]GetLastDocTimeStamp 1729470393 [00:27:16]current date 1729470451 [00:27:16]FM_GetShiftState [00:27:16]SAM_PROTO_GetShiftState [00:27:16]wFMCommunicate request_size=4 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 13 01 00 [00:27:16]Write to MH i2c: E2 08 00 BA 28 80 13 01 00 00 00 00 00 5F [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 0E 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 0E 00 BA 28 00 09 00 01 71 50 14 67 00 00 00 00 90 00 A7 [00:27:16]RAPDU: 09 00 01 71 50 14 67 00 00 00 00 90 00 [00:27:16]wFMCommunicate OK [00:27:16]SAM_PROTO_GetShiftState done [00:27:16]FM_GetShiftState done [00:27:16]KKMCreateCloseShiftDocument [00:27:16]Load OK [00:27:16]Malloc new data [00:27:16]MH_GetDate [00:27:16]Write to MH i2c: F0 00 00 BB 28 D2 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: F0 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: F0 09 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: F0 09 00 BB 28 00 F3 9F 15 67 21 48 4A 65 01 [00:27:16]Malloc new data [00:27:16]Malloc new data [00:27:16]Malloc new data [00:27:16]Malloc new data [00:27:16]KKMCreateCloseShiftDocument OK [00:27:16]KKMSetCloseShiftData OK [00:27:16]ProcessDocumentItem done err = 0, tmpTLVsize=69 [00:27:16]tlvbuf is 016FB3F0 [00:27:16]KKMLoadAndSignCloseShiftData [00:27:16]SAM_PROTO_ProcessDocument [00:27:16]wFMCommunicate request_size=9 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 15 01 00 04 05 00 45 00 [00:27:16]Write to MH i2c: E2 0C 00 BC 28 80 15 01 00 04 00 05 00 45 00 00 00 B5 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 BC 28 00 90 00 58 [00:27:16]RAPDU: 90 00 [00:27:16]wFMCommunicate OK [00:27:16]wFMCommunicate request_size=23 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:27:16]Write to MH i2c: E2 1A 00 BD 28 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 5A [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 BD 28 00 90 00 59 [00:27:16]RAPDU: 90 00 [00:27:16]wFMCommunicate OK [00:27:16]wFMCommunicate request_size=28 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9C D1 83 D1 80 D0 B7 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 [00:27:16]Write to MH i2c: E2 1F 00 BE 28 80 15 02 00 17 00 FD 03 13 00 D0 9C D1 83 D1 80 D0 B7 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 00 00 A6 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 03 00 BE 28 00 90 00 5A [00:27:16]RAPDU: 90 00 [00:27:16]wFMCommunicate OK [00:27:16]wFMCommunicate request_size=13 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 15 02 00 08 F4 03 04 00 F3 9F 15 67 [00:27:16]Write to MH i2c: E2 10 00 BF 28 80 15 02 00 08 00 F4 03 04 00 F3 9F 15 67 00 00 80 [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 03 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 03 00 BF 28 00 90 00 5B [00:27:17]RAPDU: 90 00 [00:27:17]wFMCommunicate OK [00:27:17]wFMCommunicate request_size=25 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 [00:27:17]Write to MH i2c: E2 1C 00 C0 28 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 00 00 CC [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 03 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 03 00 C0 28 00 90 00 5C [00:27:17]RAPDU: 90 00 [00:27:17]wFMCommunicate OK [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 15 03 00 [00:27:17]Write to MH i2c: E2 08 00 C1 28 80 15 03 00 00 00 00 00 6A [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 C1 28 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 88 02 00 0E 04 04 00 16 02 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 2D [00:27:17]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 88 02 00 0E 04 04 00 16 02 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 [00:27:17]wFMCommunicate OK [00:27:17]SAM_PROTO_ProcessDocument answer len = 1268 [00:27:17]SAM_PROTO_ProcessDocument remain to read = 1020 [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 17 00 00 [00:27:17]Write to MH i2c: E2 08 00 C2 28 80 17 00 00 00 00 00 00 6A [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 C2 28 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BE [00:27:18]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:27:18]wFMCommunicate OK [00:27:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:18]SAM_PROTO_ProcessDocument remain to read = 770 [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 C3 28 80 17 00 00 00 00 00 00 6B [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 C3 28 00 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 90 00 CD [00:27:18]RAPDU: 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 90 00 [00:27:18]wFMCommunicate OK [00:27:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:18]SAM_PROTO_ProcessDocument remain to read = 520 [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 C4 28 80 17 00 00 00 00 00 00 6C [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 C4 28 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F4 [00:27:19]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:27:19]wFMCommunicate OK [00:27:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:19]SAM_PROTO_ProcessDocument remain to read = 270 [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 17 00 00 [00:27:19]Write to MH i2c: E2 08 00 C5 28 80 17 00 00 00 00 00 00 6D [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 C5 28 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [00:27:19]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:19]wFMCommunicate OK [00:27:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:19]SAM_PROTO_ProcessDocument remain to read = 20 [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 17 00 00 [00:27:19]Write to MH i2c: E2 08 00 C6 28 80 17 00 00 00 00 00 00 6E [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 17 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 17 00 C6 28 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 82 82 39 54 E6 57 90 00 7D [00:27:20]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 82 82 39 54 E6 57 90 00 [00:27:20]wFMCommunicate OK [00:27:20]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:27:20]SAM_PROTO_ProcessDocument done [00:27:20]1209 (1) - 1.0 - номер версии ФФД [00:27:20]1041 (16) - 0000000000871759 - номер ФМ [00:27:20]1040 (4) - 165888 - номер ФД [00:27:20]1038 (4) - 534 - номер смены [00:27:20]1118 (4) - 369 - количество кассовых чеков за смену [00:27:20]1111 (4) - 371 - общее количество ФД за смену [00:27:20]1194 (1197) - счетчики итогов смены [00:27:20] 1134 (4) - 369 - количество чеков со всеми признаками расчетов [00:27:20] 1129 (158) - счетчики операций «приход» [00:27:20] 1135 (4) - 369 - количество чеков по признаку расчетов [00:27:20] 1201 (4) - 399374.41 - общая итоговая сумма в чеках [00:27:20] 1136 (4) - 306952.00 - итоговая сумма в чеках наличными [00:27:20] 1138 (3) - 92422.41 - итоговая сумма в чеках безналичными [00:27:20] 1024 (123) - суммы налогов [00:27:20] 1006 (9) - суммы НДС [00:27:20] 1010 (1) - 0% - код ставки НДС [00:27:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:20] 1006 (12) - суммы НДС [00:27:20] 1010 (1) - 12% - код ставки НДС [00:27:20] 1011 (3) - 42423.71 - сумма НДС по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 0% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (12) - суммы НСП [00:27:20] 1014 (1) - 1% - код ставки НСП [00:27:20] 1015 (3) - 3535.20 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 2% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 3% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 5% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 0,50% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 1,50% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1130 (141) - счетчики операций «возврат прихода» [00:27:20] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:20] 1024 (117) - суммы налогов [00:27:20] 1006 (9) - суммы НДС [00:27:20] 1010 (1) - 0% - код ставки НДС [00:27:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:20] 1006 (9) - суммы НДС [00:27:20] 1010 (1) - 12% - код ставки НДС [00:27:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 0% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 1% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 2% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 3% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 5% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 0,50% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 1,50% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1131 (141) - счетчики операций «расход» [00:27:20] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:20] 1024 (117) - суммы налогов [00:27:20] 1006 (9) - суммы НДС [00:27:20] 1010 (1) - 0% - код ставки НДС [00:27:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:20] 1006 (9) - суммы НДС [00:27:20] 1010 (1) - 12% - код ставки НДС [00:27:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 0% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 1% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 2% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 3% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 5% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 0,50% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 1,50% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1132 (141) - счетчики операций «возврат расхода» [00:27:20] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:20] 1024 (117) - суммы налогов [00:27:20] 1006 (9) - суммы НДС [00:27:20] 1010 (1) - 0% - код ставки НДС [00:27:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:20] 1006 (9) - суммы НДС [00:27:20] 1010 (1) - 12% - код ставки НДС [00:27:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 0% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 1% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 2% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 3% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 5% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 0,50% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1007 (9) - суммы НСП [00:27:20] 1014 (1) - 1,50% - код ставки НСП [00:27:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:20] 1133 (588) - - счетчики коррекции - не используются [00:27:20]1077 (6) - 143495819224663 - ФПД [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1209 (04B9) [00:27:20]Malloc new data [00:27:20]Processing tag 1041 (0411) [00:27:20]Processing tag 1040 (0410) [00:27:20]Malloc new data [00:27:20]Processing tag 1038 (040E) [00:27:20]Malloc new data [00:27:20]Processing tag 1118 (045E) [00:27:20]Malloc new data [00:27:20]Processing tag 1111 (0457) [00:27:20]Malloc new data [00:27:20]Processing tag 1194 (04AA) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1134 (046E) [00:27:20]Malloc new data [00:27:20]Processing tag 1129 (0469) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1135 (046F) [00:27:20]Malloc new data [00:27:20]Processing tag 1201 (04B1) [00:27:20]Malloc new data [00:27:20]Processing tag 1136 (0470) [00:27:20]Malloc new data [00:27:20]Processing tag 1138 (0472) [00:27:20]Malloc new data [00:27:20]Processing tag 1024 (0400) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1006 (03EE) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1010 (03F2) [00:27:20]Malloc new data [00:27:20]Processing tag 1011 (03F3) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1006 (03EE) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1010 (03F2) [00:27:20]Malloc new data [00:27:20]Processing tag 1011 (03F3) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]SetTLVBufToDocument err=0 [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1130 (046A) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1135 (046F) [00:27:20]Malloc new data [00:27:20]Processing tag 1201 (04B1) [00:27:20]Malloc new data [00:27:20]Processing tag 1136 (0470) [00:27:20]Malloc new data [00:27:20]Processing tag 1138 (0472) [00:27:20]Malloc new data [00:27:20]Processing tag 1024 (0400) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1006 (03EE) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1010 (03F2) [00:27:20]Malloc new data [00:27:20]Processing tag 1011 (03F3) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1006 (03EE) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1010 (03F2) [00:27:20]Malloc new data [00:27:20]Processing tag 1011 (03F3) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]SetTLVBufToDocument err=0 [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1131 (046B) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1135 (046F) [00:27:20]Malloc new data [00:27:20]Processing tag 1201 (04B1) [00:27:20]Malloc new data [00:27:20]Processing tag 1136 (0470) [00:27:20]Malloc new data [00:27:20]Processing tag 1138 (0472) [00:27:20]Malloc new data [00:27:20]Processing tag 1024 (0400) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1006 (03EE) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1010 (03F2) [00:27:20]Malloc new data [00:27:20]Processing tag 1011 (03F3) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1006 (03EE) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1010 (03F2) [00:27:20]Malloc new data [00:27:20]Processing tag 1011 (03F3) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1007 (03EF) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1014 (03F6) [00:27:20]Malloc new data [00:27:20]Processing tag 1015 (03F7) [00:27:20]Malloc new data [00:27:20]SetTLVBufToDocument err=0 [00:27:20]SetTLVBufToDocument err=0 [00:27:20]SetTLVBufToDocument err=0 [00:27:20]Processing tag 1132 (046C) [00:27:20]Load OK [00:27:20]SetTLVBufToDocument [00:27:20]Processing tag 1135 (046F) [00:27:20]Malloc new data [00:27:20]Processing tag 1201 (04B1) [00:27:20]Malloc new data [00:27:20]Processing tag 1136 (0470) [00:27:20]Malloc new data [00:27:20]Processing tag 1138 (0472) [00:27:21]Malloc new data [00:27:21]Processing tag 1024 (0400) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1006 (03EE) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1010 (03F2) [00:27:21]Malloc new data [00:27:21]Processing tag 1011 (03F3) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1006 (03EE) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1010 (03F2) [00:27:21]Malloc new data [00:27:21]Processing tag 1011 (03F3) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1007 (03EF) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1014 (03F6) [00:27:21]Malloc new data [00:27:21]Processing tag 1015 (03F7) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1007 (03EF) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1014 (03F6) [00:27:21]Malloc new data [00:27:21]Processing tag 1015 (03F7) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1007 (03EF) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1014 (03F6) [00:27:21]Malloc new data [00:27:21]Processing tag 1015 (03F7) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1007 (03EF) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1014 (03F6) [00:27:21]Malloc new data [00:27:21]Processing tag 1015 (03F7) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1007 (03EF) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1014 (03F6) [00:27:21]Malloc new data [00:27:21]Processing tag 1015 (03F7) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1007 (03EF) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1014 (03F6) [00:27:21]Malloc new data [00:27:21]Processing tag 1015 (03F7) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1007 (03EF) [00:27:21]Load OK [00:27:21]SetTLVBufToDocument [00:27:21]Processing tag 1014 (03F6) [00:27:21]Malloc new data [00:27:21]Processing tag 1015 (03F7) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]SetTLVBufToDocument err=0 [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1133 (046D) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Processing tag 1077 (0435) [00:27:21]Malloc new data [00:27:21]SetTLVBufToDocument err=0 [00:27:21]Malloc new data [00:27:21]SAM_PROTO_GetFMData [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 13 03 00 [00:27:21]Write to MH i2c: E2 08 00 C7 28 80 13 03 00 00 00 00 00 6E [00:27:21]OFD Sender: No OFD packet to send [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 C7 28 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 3C [00:27:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [00:27:22]wFMCommunicate OK [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 17 00 00 [00:27:22]Write to MH i2c: E2 08 00 C8 28 80 17 00 00 00 00 00 00 70 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 C8 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [00:27:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:22]wFMCommunicate OK [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 17 00 00 [00:27:22]Write to MH i2c: E2 08 00 C9 28 80 17 00 00 00 00 00 00 71 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 FD 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 FD 00 C9 28 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 90 00 83 [00:27:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:23]wFMCommunicate OK [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 17 00 00 [00:27:23]Write to MH i2c: E2 08 00 CA 28 80 17 00 00 00 00 00 00 72 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 FD 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 FD 00 CA 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [00:27:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:23]wFMCommunicate OK [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 17 00 00 [00:27:23]Write to MH i2c: E2 08 00 CB 28 80 17 00 00 00 00 00 00 73 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 E2 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 E2 00 CB 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [00:27:24]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27:24]wFMCommunicate OK [00:27:24]SAM_PROTO_GetFMData done [00:27:24]Malloc new data [00:27:24]Malloc new data [00:27:24]Malloc new data [00:27:24]Malloc new data [00:27:24]KKMLoadAndSignCloseShiftData err=0 [00:27:24]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мурзаев Т. 21.10.2024 00:27 Смена: 534 РНМ: 0000000000091764 ЗНМ: 0300000104 СНО: Общий режим Чеков за смену: 369 ФД за смену: 371 Всего чеков: 369 ИТОГИ ПРИХОД Чеков: 369 Общий итог: 399374.41 Итого наличными: 306952.00 Итого безнал.: 92422.41 НДС 0% : 0.00 НДС 12% : 42423.71 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3535.20 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 306952.00 НС Приход: 158479063.88 НС Возвр.Прихода: 1793064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 165888 ФМ: 0000000000871759 ФПД: 143495819224663 [00:27:24]StoreToDocumentArchive [00:27:24]shift 534 fd 165888 [00:27:24]save to /storage/0534/doc_00165888 [00:27:24]save last doc name /storage/0534/doc_00165888 to /storage/kkm_last_doc_name [00:27:24]save OK [00:27:24]Clear old archive folders... [00:27:24]Remove dir /storage/0522 [00:27:24]opendir ok [00:27:24]file . [00:27:24]file .. [00:27:24]file doc_1729470401 [00:27:24]remove file /storage/0522/doc_1729470401 [00:27:24]remove dir /storage/0522 [00:27:24]NVStorageSaveData kkm_registers [00:27:24]File name is /storage/kkm_registers [00:27:24]Write 24 bytes [00:27:24]NVStorageSaveData done [00:27:24]NVStorageSaveData kkm_registers [00:27:24]File name is /storage/kkm_registers [00:27:24]Write 24 bytes [00:27:24]NVStorageSaveData done [00:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=1380 [00:27:24]tlvbuf is B6DA0010 [00:27:24]SAM_PROTO_ClearQueue [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 09 00 00 [00:27:24]Write to MH i2c: E2 08 00 CC 28 80 09 00 00 00 00 00 00 66 [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 03 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 03 00 CC 28 00 90 00 68 [00:27:24]RAPDU: 90 00 [00:27:24]wFMCommunicate OK [00:27:24]SAM_PROTO_ClearQueue done [00:27:24]KKMCreateOFDPacket [00:27:24]OFDProtocolAddRootSTLVToBuf [00:27:24]FM_MakeSignedData [00:27:24]FM_MakeSignedData [00:27:24]SAM_PROTO_SignData [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 0D 01 02 [00:27:24]Write to MH i2c: E2 08 00 CD 28 80 0D 01 02 00 00 00 00 6E [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 03 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 03 00 CD 28 00 90 00 69 [00:27:24]RAPDU: 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=255 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 0D 02 02 FA 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D1 83 D1 80 D0 B7 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F4 03 04 00 F3 9F 15 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 AA 04 D8 04 6E 04 04 00 71 01 00 00 69 04 A5 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C3 BB 40 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 [00:27:24]Write to MH i2c: E2 02 01 CE 28 80 0D 02 02 FA 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D1 83 D1 80 D0 B7 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F4 03 04 00 F3 9F 15 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 AA 04 D8 04 6E 04 04 00 71 01 00 00 69 04 A5 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C3 BB 40 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 5A [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 03 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 03 00 CE 28 00 90 00 6A [00:27:25]RAPDU: 90 00 [00:27:25]wFMCommunicate OK [00:27:25]wFMCommunicate request_size=255 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 64 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF [00:27:25]Write to MH i2c: E2 02 01 CF 28 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 64 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 00 00 2B [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 03 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 03 00 CF 28 00 90 00 6B [00:27:25]RAPDU: 90 00 [00:27:25]wFMCommunicate OK [00:27:25]wFMCommunicate request_size=255 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 [00:27:26]Write to MH i2c: E2 02 01 D0 28 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 00 00 41 [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]OFD Sender: No OFD packet to send [00:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 03 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 03 00 D0 28 00 90 00 6C [00:27:26]RAPDU: 90 00 [00:27:26]wFMCommunicate OK [00:27:26]wFMCommunicate request_size=255 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 0D 02 02 FA 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 [00:27:26]Write to MH i2c: E2 02 01 D1 28 80 0D 02 02 FA 00 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 00 00 42 [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 D1 28 00 90 00 6D [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=255 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:27:27]Write to MH i2c: E2 02 01 D2 28 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 FD [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 D2 28 00 90 00 6E [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=139 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 02 02 86 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 82 82 39 54 E6 57 [00:27:27]Write to MH i2c: E2 8E 00 D3 28 80 0D 02 02 86 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 82 82 39 54 E6 57 00 00 0F [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:28]Read from MH i2c: E2 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 03 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 03 00 D3 28 00 90 00 6F [00:27:28]RAPDU: 90 00 [00:27:28]wFMCommunicate OK [00:27:28]wFMCommunicate request_size=4 [00:27:28]MH_SAM_APDU [00:27:28]CAPDU: 80 0D 03 02 [00:27:28]Write to MH i2c: E2 08 00 D4 28 80 0D 03 02 00 00 00 00 77 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:28]Read from MH i2c: E2 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 0B 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 0B 00 D4 28 00 80 57 9B D6 1E 38 A8 17 90 00 D5 [00:27:28]RAPDU: 80 57 9B D6 1E 38 A8 17 90 00 [00:27:28]wFMCommunicate OK [00:27:28]SAM_PROTO_SignData done [00:27:28]FM_MakeSignedData done [00:27:28]CreateOFDProtocolMessage [00:27:28]wFMCommunicate request_size=4 [00:27:28]MH_SAM_APDU [00:27:28]CAPDU: 80 11 00 00 [00:27:28]Write to MH i2c: E2 08 00 D5 28 80 11 00 00 00 00 00 00 77 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:28]Read from MH i2c: E2 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 17 00 [00:27:28]MH_I2C_Read... [00:27:28]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 31 37 35 39 90 00 CF [00:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:27:28]wFMCommunicate OK [00:27:28]CreateOFDProtocolMessage done [00:27:28]OFDSenderStorePacket 165888 [00:27:28]StoreOFDPacket docnum=165888 [00:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 78 05 00 00 34 9F 70 05 51 E6 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D1 83 D1 80 D0 B7 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F4 03 04 00 F3 9F 15 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 AA 04 D8 04 6E 04 04 00 71 01 00 00 69 04 A5 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C3 BB 40 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 64 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 82 82 39 54 E6 57 80 57 9B D6 1E 38 A8 17 [00:27:28]CheckFolder [00:27:28]dirname=/storage/ofd_packets [00:27:28]CheckFolder done [00:27:28]ProducePacketName [00:27:28]name=ofd_packets/00165888 [00:27:28]NVStorageSaveData ofd_packets/00165888 [00:27:28]File name is /storage/ofd_packets/00165888 [00:27:28]Write 1430 bytes [00:27:28]NVStorageSaveData done [00:27:28]OFDSenderStorePacket done [00:27:28]KKMCreateOFDPacket done [00:27:28]NVStorageSaveData kkm_last_timestamp [00:27:28]File name is /storage/kkm_last_timestamp [00:27:28]Write 4 bytes [00:27:28]NVStorageSaveData done [00:27:28]ExternCall_PrintAddStr [00:27:28]wPrintStart [00:27:28]Write to MH i2c: 01 00 00 D6 28 FE [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 07 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 07 00 D6 28 00 00 00 00 00 FF 0F 13 [00:27:28]RasterBufferAndPrint [00:27:28]line Отчет о закрытии смены [00:27:28]line ФФД: 1.0 [00:27:28]line ИНН: 02508201610067 [00:27:28]line Кассир: Мурзаев Т. [00:27:28]line 21.10.2024 00:27 [00:27:28]line Смена: 534 [00:27:28]line РНМ: 0000000000091764 [00:27:28]line ЗНМ: 0300000104 [00:27:28]line СНО: Общий режим [00:27:28]line Чеков за смену: 369 [00:27:28]line ФД за смену: 371 [00:27:28]line Всего чеков: 369 [00:27:28]line ИТОГИ ПРИХОД [00:27:28]line Чеков: 369 [00:27:28]line Общий итог: 399374.41 [00:27:28]line Итого наличными: 306952.00 [00:27:28]line Итого безнал.: 92422.41 [00:27:28]line НДС 0% : 0.00 [00:27:28]line НДС 12% : 42423.71 [00:27:28]line НСП 0% : 0.00 [00:27:28]line НСП 1,50% : 0.00 [00:27:28]line НСП 0,50% : 0.00 [00:27:28]line НСП 5% : 0.00 [00:27:28]line НСП 3% : 0.00 [00:27:28]line НСП 2% : 0.00 [00:27:28]line НСП 1% : 3535.20 [00:27:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:27:28]line Чеков: 0 [00:27:28]line Общий итог: 0.00 [00:27:28]line Итого наличными: 0.00 [00:27:28]line Итого безнал.: 0.00 [00:27:28]line НДС 0% : 0.00 [00:27:28]line НДС 12% : 0.00 [00:27:28]line НСП 0% : 0.00 [00:27:28]line НСП 1,50% : 0.00 [00:27:28]line НСП 0,50% : 0.00 [00:27:28]line НСП 5% : 0.00 [00:27:28]line НСП 3% : 0.00 [00:27:28]line НСП 2% : 0.00 [00:27:28]line НСП 1% : 0.00 [00:27:28]line ИТОГИ РАСХОД [00:27:28]line Чеков: 0 [00:27:28]line Общий итог: 0.00 [00:27:28]line Итого наличными: 0.00 [00:27:28]line Итого безнал.: 0.00 [00:27:28]line НДС 0% : 0.00 [00:27:28]line НДС 12% : 0.00 [00:27:28]line НСП 0% : 0.00 [00:27:28]line НСП 1,50% : 0.00 [00:27:28]line НСП 0,50% : 0.00 [00:27:28]line НСП 5% : 0.00 [00:27:28]line НСП 3% : 0.00 [00:27:28]line НСП 2% : 0.00 [00:27:28]line НСП 1% : 0.00 [00:27:28]line ИТОГИ ВОЗВРАТ РАСХОДА [00:27:28]line Чеков: 0 [00:27:28]line Общий итог: 0.00 [00:27:28]line Итого наличными: 0.00 [00:27:28]line Итого безнал.: 0.00 [00:27:28]line НДС 0% : 0.00 [00:27:28]line НДС 12% : 0.00 [00:27:28]line НСП 0% : 0.00 [00:27:28]line НСП 1,50% : 0.00 [00:27:28]line НСП 0,50% : 0.00 [00:27:28]line НСП 5% : 0.00 [00:27:28]line НСП 3% : 0.00 [00:27:28]line НСП 2% : 0.00 [00:27:28]OFD Sender: Processing packet 165888 [packets to send 48, broken 47] [00:27:28]ProducePacketName [00:27:28]name=ofd_packets/00165888 [00:27:28]OFD Sender: To server: pG, [00:27:28]CommunicateWithHost lk.salyk.kg:30040 [00:27:28]ConnectInit lk.salyk.kg [00:27:28]line НСП 1% : 0.00 [00:27:28]line Сумма внесений: 0.00 [00:27:28]line Сумма выплат: 0.00 [00:27:28]line Нал. в кассе: 306952.00 [00:27:28]line НС Приход: 158479063.88 [00:27:28]line НС Возвр.Прихода: 1793064.00 [00:27:28]line НС Расход: 0.00 [00:27:28]line НС Возвр.Расхода: 0.00 [00:27:28]line ФД: 165888 [00:27:28]line ФМ: 0000000000871759 [00:27:28]line ФПД: 143495819224663 [00:27:28]written 0, free lines is 4095 [00:27:29]Connected sock=7 [00:27:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 78 05 00 00 34 9F 70 05 51 E6 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D1 83 D1 80 D0 B7 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F4 03 04 00 F3 9F 15 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 AA 04 D8 04 6E 04 04 00 71 01 00 00 69 04 A5 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C3 BB 40 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F0 64 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 Write to MH i2c: 00 01 02 00 F7 00 03 26 00 29 00 4F EF [00:27:29]03 09 Write i2c OK [00:27:29]00 MH_I2C_Read... [00:27:29]F6 Read from MH i2c: 03 01 01 [00:27:29]00 MH_I2C_Read... [00:27:29]03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 Read from MH i2c: F7 01 03 07 00 00 00 [00:27:29]EF MH_I2C_Read... [00:27:29]03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 01 01 07 00 00 26 06 29 F7 00 03 00 00 00 00 00 D0 00 04 FD 8D 0A 00 5D 6F [00:27:29]04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 RasterBufferAndPrint [00:27:29]72 line [00:27:29]04 line [00:27:29]00 line [00:27:29]00 line [00:27:29]00 line [00:27:29]04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE written 0, free lines is 2941 [00:27:29]03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 MH_Cut [00:27:29]F6 Write to MH i2c: 03 D1 01 00 2D 29 01 28 [00:27:29]01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write i2c OK [00:27:30]00 MH_I2C_Read... [00:27:30]F6 03 01 00 05 F7 03 00 00 EF Read from MH i2c: 03 D1 09 [00:27:30]00 MH_I2C_Read... [00:27:30]F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 Read from MH i2c: D1 00 01 B1 00 04 [00:27:30]00 MH_I2C_Read... [00:27:30]00 Read from MH i2c: 70 D1 04 01 00 00 00 2D 72 29 04 00 00 27 00 [00:27:30]00 Write to MH i2c: 04 01 75 00 00 00 2E EE 29 03 57 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 [00:27:30]F2 Write i2c OK [00:27:30]03 MH_I2C_Read... [00:27:30]01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 82 82 39 54 E6 57 80 57 9B D6 1E 38 A8 17 [00:27:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A6 A3 47 00 20 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 31 37 35 39 10 04 04 00 00 88 02 00 F4 03 04 00 6F 46 15 67 B6 04 01 00 00 59 80 32 3C 11 32 BF 31 [00:27:30]CommunicateWithHost err = 0 [00:27:30]CheckOFDResponse [00:27:30]1017 (14) - 77093643461234 [00:27:30]1041 (16) - 0000000000871759 [00:27:30]1040 (4) - 165888 [00:27:30]1012 (4) - 20.10.2024 18:05 [00:27:30]1206 (1) - 0 [00:27:30]OFD Sender: Remove packet 165888 [00:27:30]ProducePacketName [00:27:30]name=ofd_packets/00165888 [00:27:30]NVStorageDeleteData [00:27:30]*** Cut start [00:27:30]*** Partial cut [00:27:30]*** CUTSNS_PIN = 1 [00:27:30]*** CUTSNS_PIN = 0 [00:27:31]*** Brake cut motor [00:27:31]OFD Sender: No OFD packet to send [00:27:31]Read from MH i2c: 01 [00:27:31]MH_I2C_Read... [00:27:31]*** Stop cut motor [00:27:31]*** Cut end [00:27:31]Read from MH i2c: 01 07 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 2E 29 00 00 00 00 00 FF 0F 6C [00:27:31]process_action close_shift done [00:27:31]requested_data is exist [00:27:31]produce_requested_data [00:27:31]requested_item fd.num is exist - process it [00:27:31]SAM_PROTO_GetFieldsCounters [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 13 00 00 [00:27:31]Write to MH i2c: E2 08 00 2F 29 80 13 00 00 00 00 00 00 D4 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 62 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 62 00 2F 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 88 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [00:27:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 88 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:31]wFMCommunicate OK [00:27:31]SAM_PROTO_GetFieldsCounters done [00:27:31]requested_item shift.num is exist - process it [00:27:31]requested_item shift.opened is exist - process it [00:27:31]req_shift_opened [00:27:31]FM_GetShiftState [00:27:31]SAM_PROTO_GetShiftState [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 13 01 00 [00:27:31]Write to MH i2c: E2 08 00 30 29 80 13 01 00 00 00 00 00 D6 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 0E 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 0E 00 30 29 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E1 [00:27:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:32]wFMCommunicate OK [00:27:32]SAM_PROTO_GetShiftState done [00:27:32]FM_GetShiftState done [00:27:32]req_shift_opened done [00:27:32]requested_item shift.open_date is exist - process it [00:27:32]req_shift_open_date [00:27:32]FM_GetShiftState [00:27:32]SAM_PROTO_GetShiftState [00:27:32]wFMCommunicate request_size=4 [00:27:32]MH_SAM_APDU [00:27:32]CAPDU: 80 13 01 00 [00:27:32]Write to MH i2c: E2 08 00 31 29 80 13 01 00 00 00 00 00 D7 [00:27:32]Write i2c OK [00:27:32]MH_I2C_Read... [00:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:32]Read from MH i2c: E2 [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: E2 0E 00 [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: E2 0E 00 31 29 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E2 [00:27:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:32]wFMCommunicate OK [00:27:32]SAM_PROTO_GetShiftState done [00:27:32]FM_GetShiftState done [00:27:32]req_shift_open_date done [00:27:32]produce_requested_data done [00:27:32]produce_requested_data return {"fd.num":165888,"shift.num":534,"shift.opened":0,"shift.open_date":0} [00:27:32]process_action_free close_shift [00:27:32]json_value_free [00:27:32]json_value_free done [00:27:32]process_json_proto returns [00:27:32]Send response to host [00:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":165888,"shift.num":534,"shift.opened":0,"shift.open_date":0}}} [00:27:32]free response buf [00:27:32]execute_script done [00:27:32]execute_script returns [00:27:32]free content buf [00:27:32]Sock 5.Close socket [00:27:32]Sock 5.Thread stoped [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:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:25]accept exits with 6 [00:35:25]New connection [00:35:25]New thread 3066920292 created [00:35:25]Thread 3066776932 joined [00:35:25]Waiting for new connection... [00:35:25] Sock 6.Parse request [00:35:25]Sock 6.Check first char [00:35:25]Sock 6.First char is OK [00:35:25]request: POST /json_proto HTTP/1.0 [00:35:25]Method: POST [00:35:25]URL: /json_proto [00:35:25]Method is POST - this is cgi request [00:35:25]url: /json_proto [00:35:25]query_string will be loaded in cgi processing [00:35:25]execute_cgi json_proto POST (null) [00:35:25]execute_cgi path=json_proto method=POST [00:35:25]POST find Content-Length [00:35:25]Host: 172.17.53.195:8080 [00:35:25]Content-Length: 215 [00:35:25]Content-Type: application/json [00:35:25] [00:35:25]POST finish read [00:35:25]Found Content-Length = 215 [00:35:25]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:25]execute_script... [00:35:25]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:25]POST & json_proto [00:35:25]process_json_proto [00:35:25]json parsed OK: [00:35:25]protocol is kg_v1.0 [00:35:25]action value=get_value [00:35:25]process_action get_value [00:35:25]cmd_get_value [00:35:25]process_action get_value done [00:35:25]requested_data is exist [00:35:25]produce_requested_data [00:35:25]requested_item kkm.sn is exist - process it [00:35:25]requested_item kkm.ver is exist - process it [00:35:25]requested_item fm.sn is exist - process it [00:35:25]wFMCommunicate request_size=4 [00:35:25]MH_SAM_APDU [00:35:25]CAPDU: 80 11 00 00 [00:35:25]Write to MH i2c: E2 08 00 32 29 80 11 00 00 00 00 00 00 D5 [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:25]Read from MH i2c: E2 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 17 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 17 00 32 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [00:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:35:25]wFMCommunicate OK [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 33 29 80 13 00 00 00 00 00 00 D8 [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:25]Read from MH i2c: E2 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 62 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 62 00 33 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 88 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [00:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 88 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:25]wFMCommunicate OK [00:35:25]SAM_PROTO_GetFieldsCounters done [00:35:25]requested_item shift.num is exist - process it [00:35:25]requested_item shift.opened is exist - process it [00:35:25]req_shift_opened [00:35:25]FM_GetShiftState [00:35:25]SAM_PROTO_GetShiftState [00:35:25]wFMCommunicate request_size=4 [00:35:25]MH_SAM_APDU [00:35:25]CAPDU: 80 13 01 00 [00:35:25]Write to MH i2c: E2 08 00 34 29 80 13 01 00 00 00 00 00 DA [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:25]Read from MH i2c: E2 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 0E 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 0E 00 34 29 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E5 [00:35:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:25]wFMCommunicate OK [00:35:25]SAM_PROTO_GetShiftState done [00:35:25]FM_GetShiftState done [00:35:25]req_shift_opened done [00:35:25]requested_item shift.open_date is exist - process it [00:35:25]req_shift_open_date [00:35:25]FM_GetShiftState [00:35:25]SAM_PROTO_GetShiftState [00:35:25]wFMCommunicate request_size=4 [00:35:25]MH_SAM_APDU [00:35:25]CAPDU: 80 13 01 00 [00:35:25]Write to MH i2c: E2 08 00 35 29 80 13 01 00 00 00 00 00 DB [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:25]Read from MH i2c: E2 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 0E 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 0E 00 35 29 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E6 [00:35:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:25]wFMCommunicate OK [00:35:25]SAM_PROTO_GetShiftState done [00:35:25]FM_GetShiftState done [00:35:25]req_shift_open_date done [00:35:25]produce_requested_data done [00:35:25]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165888,"shift.num":534,"shift.opened":0,"shift.open_date":0} [00:35:25]process_action_free get_value [00:35:25]json_value_free [00:35:25]json_value_free done [00:35:25]process_json_proto returns [00:35:25]Send response to host [00:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":165888,"shift.num":534,"shift.opened":0,"shift.open_date":0}}} [00:35:25]free response buf [00:35:25]execute_script done [00:35:25]execute_script returns [00:35:25]free content buf [00:35:25]Sock 6.Close socket [00:35:25]Sock 6.Thread stoped [00:35:25]accept exits with 5 [00:35:25]New connection [00:35:25]New thread 3066776932 created [00:35:25]Thread 3066920292 joined [00:35:25]Waiting for new connection... [00:35:25] Sock 5.Parse request [00:35:25]Sock 5.Check first char [00:35:25]Sock 5.First char is OK [00:35:25]request: POST /json_proto HTTP/1.0 [00:35:25]Method: POST [00:35:25]URL: /json_proto [00:35:25]Method is POST - this is cgi request [00:35:25]url: /json_proto [00:35:25]query_string will be loaded in cgi processing [00:35:25]execute_cgi json_proto POST (null) [00:35:25]execute_cgi path=json_proto method=POST [00:35:25]POST find Content-Length [00:35:25]Host: 172.17.53.195:8080 [00:35:25]Content-Length: 331 [00:35:25]Content-Type: application/json [00:35:25] [00:35:25]POST finish read [00:35:25]Found Content-Length = 331 [00:35:25]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:25]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 36 29 80 13 03 00 00 00 00 00 DE [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 36 29 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 AC [00:35:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 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 37 29 80 17 00 00 00 00 00 00 E0 [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 17 00 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 37 29 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [00:35:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 38 29 80 17 00 00 00 00 00 00 E1 [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]OFD Sender: No OFD packet to send [00:35:26]*** iso7816_exchange 80 17 00 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 38 29 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 90 00 F3 [00:35:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 39 29 80 17 00 00 00 00 00 00 E2 [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 39 29 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [00:35:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 3A 29 80 17 00 00 00 00 00 00 E3 [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 = 223! [00:35:27]Read from MH i2c: E2 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 E2 00 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 E2 00 3A 29 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C1 [00:35:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27]wFMCommunicate OK [00:35:27]SAM_PROTO_GetFMData done [00:35:27]requested_item fm.sale_refund.total is exist - process it [00:35:27]requested_item fm.buy.total is exist - process it [00:35:27]requested_item shift.sale.total is exist - process it [00:35:27]SAM_PROTO_GetShiftData [00:35:27]wFMCommunicate request_size=4 [00:35:27]MH_SAM_APDU [00:35:27]CAPDU: 80 13 02 00 [00:35:27]Write to MH i2c: E2 08 00 3B 29 80 13 02 00 00 00 00 00 E2 [00:35:27]Write i2c OK [00:35:27]MH_I2C_Read... [00:35:27]*** iso7816_exchange 80 13 02 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 3B 29 00 B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 90 00 85 [00:35:27]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 71 01 00 00 69 04 9E 00 6F 04 04 00 71 01 00 00 B1 04 04 00 A1 65 61 02 70 04 04 00 20 5F D4 01 72 04 03 00 81 06 8D 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 BB 40 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 F0 64 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 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 3C 29 80 17 00 00 00 00 00 00 E5 [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 = 250! [00:35:28]Read from MH i2c: E2 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 FD 00 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 FD 00 3C 29 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 FE [00:35:28]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: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 3D 29 80 17 00 00 00 00 00 00 E6 [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 = 250! [00:35:28]Read from MH i2c: E2 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 FD 00 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 FD 00 3D 29 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 9F [00:35:28]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: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 3E 29 80 17 00 00 00 00 00 00 E7 [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 = 250! [00:35:28]Read from MH i2c: E2 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 FD 00 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 FD 00 3E 29 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 5F [00:35:28]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: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 3F 29 80 17 00 00 00 00 00 00 E8 [00:35:28]Write i2c OK [00:35:28]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 CE 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 CE 00 3F 29 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 CD [00:35:29]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:29]wFMCommunicate OK [00:35:29]SAM_PROTO_GetShiftData done [00:35:29]requested_item shift.sale.total_cash is exist - process it [00:35:29]requested_item shift.sale_refund.total is exist - process it [00:35:29]requested_item shift.sale_refund.total_cash is exist - process it [00:35:29]requested_item shift.buy.total is exist - process it [00:35:29]requested_item shift.buy.total_cash is exist - process it [00:35:29]produce_requested_data done [00:35:29]produce_requested_data return {"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:29]process_action_free get_value [00:35:29]json_value_free [00:35:29]json_value_free done [00:35:29]process_json_proto returns [00:35:29]Send response to host [00:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":399374.41,"shift.sale.total_cash":306952.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:29]free response buf [00:35:29]execute_script done [00:35:29]execute_script returns [00:35:29]free content buf [00:35:29]Sock 5.Close socket [00:35:29]Sock 5.Thread stoped [00:35:29]accept exits with 6 [00:35:29]New connection [00:35:29]New thread 3066920292 created [00:35:29]Thread 3066776932 joined [00:35:29]Waiting for new connection... [00:35:29] Sock 6.Parse request [00:35:29]Sock 6.Check first char [00:35:29]Sock 6.First char is OK [00:35:29]request: POST /json_proto HTTP/1.0 [00:35:29]Method: POST [00:35:29]URL: /json_proto [00:35:29]Method is POST - this is cgi request [00:35:29]url: /json_proto [00:35:29]query_string will be loaded in cgi processing [00:35:29]execute_cgi json_proto POST (null) [00:35:29]execute_cgi path=json_proto method=POST [00:35:29]POST find Content-Length [00:35:29]Host: 172.17.53.195:8080 [00:35:29]Content-Length: 265 [00:35:29]Content-Type: application/json [00:35:29] [00:35:29]POST finish read [00:35:29]Found Content-Length = 265 [00:35:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:29]execute_script... [00:35:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:29]POST & json_proto [00:35:29]process_json_proto [00:35:29]json parsed OK: [00:35:29]protocol is kg_v1.0 [00:35:29]action value=open_shift [00:35:29]process_action open_shift [00:35:29]cmd_open_shift [00:35:29]MH_GetDate [00:35:29]Write to MH i2c: F0 00 00 40 29 58 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: F0 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: F0 09 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: F0 09 00 40 29 00 E0 A1 15 67 21 48 4A 65 76 [00:35:29]GetLastDocTimeStamp 1729470451 [00:35:29]current date 1729470944 [00:35:29]FM_GetShiftState [00:35:29]SAM_PROTO_GetShiftState [00:35:29]wFMCommunicate request_size=4 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 13 01 00 [00:35:29]Write to MH i2c: E2 08 00 41 29 80 13 01 00 00 00 00 00 E7 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 0E 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 0E 00 41 29 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [00:35:29]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:29]wFMCommunicate OK [00:35:29]SAM_PROTO_GetShiftState done [00:35:29]FM_GetShiftState done [00:35:29]KKMCreateOpenShiftDocument [00:35:29]Load OK [00:35:29]Malloc new data [00:35:29]MH_GetDate [00:35:29]Write to MH i2c: F0 00 00 42 29 5A [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: F0 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: F0 09 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: F0 09 00 42 29 00 E0 A1 15 67 21 48 4A 65 78 [00:35:29]Malloc new data [00:35:29]KKMCreateOpenShiftDocument OK [00:35:29]KKMSetOpenShiftData OK [00:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=206 [00:35:29]tlvbuf is 019DB150 [00:35:29]KKMLoadAndSignOpenShiftData [00:35:29]SAM_PROTO_ProcessDocument [00:35:29]wFMCommunicate request_size=9 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 15 01 00 04 02 00 CE 00 [00:35:29]Write to MH i2c: E2 0C 00 43 29 80 15 01 00 04 00 02 00 CE 00 00 00 C3 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 43 29 00 90 00 E0 [00:35:29]RAPDU: 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=23 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:35:29]Write to MH i2c: E2 1A 00 44 29 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 E2 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 44 29 00 90 00 E1 [00:35:29]RAPDU: 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=32 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 [00:35:29]Write to MH i2c: E2 23 00 45 29 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 00 00 53 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 45 29 00 90 00 E2 [00:35:29]RAPDU: 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=92 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 [00:35:29]Write to MH i2c: E2 5F 00 46 29 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 00 00 55 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 46 29 00 90 00 E3 [00:35:29]RAPDU: 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=51 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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:29]Write to MH i2c: E2 36 00 47 29 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 9A [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 47 29 00 90 00 E4 [00:35:29]RAPDU: 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=13 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 15 02 00 08 F4 03 04 00 E0 A1 15 67 [00:35:29]Write to MH i2c: E2 10 00 48 29 80 15 02 00 08 00 F4 03 04 00 E0 A1 15 67 00 00 F9 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 03 00 48 29 00 90 00 E5 [00:35:29]RAPDU: 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=25 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 [00:35:29]Write to MH i2c: E2 1C 00 49 29 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 00 00 56 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:30]Read from MH i2c: E2 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 03 00 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 03 00 49 29 00 90 00 E6 [00:35:30]RAPDU: 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 15 03 00 [00:35:30]Write to MH i2c: E2 08 00 4A 29 80 15 03 00 00 00 00 00 F4 [00:35:30]Write i2c OK [00:35:30]MH_I2C_Read... [00:35:30]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:35:30]Read from MH i2c: E2 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 38 00 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 38 00 4A 29 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 88 02 00 0E 04 04 00 17 02 00 00 35 04 06 00 6D 63 04 01 F0 00 90 00 2E [00:35:30]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 88 02 00 0E 04 04 00 17 02 00 00 35 04 06 00 6D 63 04 01 F0 00 90 00 [00:35:30]wFMCommunicate OK [00:35:30]SAM_PROTO_ProcessDocument answer len = 51 [00:35:30]SAM_PROTO_ProcessDocument done [00:35:30]SetTLVBufToDocument [00:35:30]Processing tag 1209 (04B9) [00:35:30]Malloc new data [00:35:30]Processing tag 1041 (0411) [00:35:30]Processing tag 1040 (0410) [00:35:30]Malloc new data [00:35:30]Processing tag 1038 (040E) [00:35:30]Malloc new data [00:35:30]Processing tag 1077 (0435) [00:35:30]Malloc new data [00:35:30]SetTLVBufToDocument err=0 [00:35:30]KKMLoadAndSignOpenShiftData store KKM data [00:35:30]KKMLoadAndSignOpenShiftData err=0 [00:35:30]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Алыкулова К. Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 Место: АЗС № 161 "Партнер Нефть" 21.10.2024 00:35 Смена: 535 РНМ: 0000000000091764 ЗНМ: 0300000104 ФД: 165889 ФМ: 0000000000871759 ФПД: 120272036425728 [00:35:30]StoreToDocumentArchive [00:35:30]shift 535 fd 165889 [00:35:30]Create dir for shift 0535 [00:35:30]save to /storage/0535/doc_00165889 [00:35:30]save last doc name /storage/0535/doc_00165889 to /storage/kkm_last_doc_name [00:35:30]save OK [00:35:30]Clear old archive folders... [00:35:30]Remove dir /storage/0534 [00:35:30]opendir ok [00:35:30]file . [00:35:30]file .. [00:35:30]file doc_00165518 [00:35:30]remove file /storage/0534/doc_00165518 [00:35:30]file doc_00165519 [00:35:30]remove file /storage/0534/doc_00165519 [00:35:30]file doc_00165520 [00:35:30]remove file /storage/0534/doc_00165520 [00:35:30]file doc_00165521 [00:35:30]remove file /storage/0534/doc_00165521 [00:35:30]file doc_00165522 [00:35:30]remove file /storage/0534/doc_00165522 [00:35:30]file doc_00165523 [00:35:30]remove file /storage/0534/doc_00165523 [00:35:30]file doc_00165524 [00:35:30]remove file /storage/0534/doc_00165524 [00:35:30]file doc_00165525 [00:35:30]remove file /storage/0534/doc_00165525 [00:35:30]file doc_00165526 [00:35:30]remove file /storage/0534/doc_00165526 [00:35:30]file doc_00165527 [00:35:30]remove file /storage/0534/doc_00165527 [00:35:30]file doc_00165528 [00:35:30]remove file /storage/0534/doc_00165528 [00:35:30]file doc_00165529 [00:35:30]remove file /storage/0534/doc_00165529 [00:35:30]file doc_00165530 [00:35:30]remove file /storage/0534/doc_00165530 [00:35:30]file doc_00165531 [00:35:30]remove file /storage/0534/doc_00165531 [00:35:30]file doc_00165532 [00:35:30]remove file /storage/0534/doc_00165532 [00:35:30]file doc_00165533 [00:35:30]remove file /storage/0534/doc_00165533 [00:35:30]file doc_00165534 [00:35:30]remove file /storage/0534/doc_00165534 [00:35:30]file doc_00165535 [00:35:30]remove file /storage/0534/doc_00165535 [00:35:30]file doc_00165536 [00:35:30]remove file /storage/0534/doc_00165536 [00:35:30]file doc_00165537 [00:35:30]remove file /storage/0534/doc_00165537 [00:35:30]file doc_00165538 [00:35:30]remove file /storage/0534/doc_00165538 [00:35:30]file doc_00165539 [00:35:30]remove file /storage/0534/doc_00165539 [00:35:30]file doc_00165540 [00:35:30]remove file /storage/0534/doc_00165540 [00:35:30]file doc_00165541 [00:35:30]remove file /storage/0534/doc_00165541 [00:35:30]file doc_00165542 [00:35:30]remove file /storage/0534/doc_00165542 [00:35:30]file doc_00165543 [00:35:30]remove file /storage/0534/doc_00165543 [00:35:30]file doc_00165544 [00:35:30]remove file /storage/0534/doc_00165544 [00:35:30]file doc_00165545 [00:35:30]remove file /storage/0534/doc_00165545 [00:35:30]file doc_00165546 [00:35:30]remove file /storage/0534/doc_00165546 [00:35:30]file doc_00165547 [00:35:30]remove file /storage/0534/doc_00165547 [00:35:30]file doc_00165548 [00:35:30]remove file /storage/0534/doc_00165548 [00:35:30]file doc_00165549 [00:35:30]remove file /storage/0534/doc_00165549 [00:35:30]file doc_00165550 [00:35:30]remove file /storage/0534/doc_00165550 [00:35:30]file doc_00165551 [00:35:30]remove file /storage/0534/doc_00165551 [00:35:30]file doc_00165552 [00:35:30]remove file /storage/0534/doc_00165552 [00:35:30]file doc_00165553 [00:35:30]remove file /storage/0534/doc_00165553 [00:35:30]file doc_00165554 [00:35:30]remove file /storage/0534/doc_00165554 [00:35:30]file doc_00165555 [00:35:30]remove file /storage/0534/doc_00165555 [00:35:30]file doc_00165556 [00:35:30]remove file /storage/0534/doc_00165556 [00:35:30]file doc_00165557 [00:35:30]remove file /storage/0534/doc_00165557 [00:35:30]file doc_00165558 [00:35:30]remove file /storage/0534/doc_00165558 [00:35:30]file doc_00165559 [00:35:30]remove file /storage/0534/doc_00165559 [00:35:30]file doc_00165560 [00:35:30]remove file /storage/0534/doc_00165560 [00:35:30]file doc_00165561 [00:35:30]remove file /storage/0534/doc_00165561 [00:35:30]file doc_00165562 [00:35:30]remove file /storage/0534/doc_00165562 [00:35:30]file doc_00165563 [00:35:30]remove file /storage/0534/doc_00165563 [00:35:30]file doc_00165564 [00:35:30]remove file /storage/0534/doc_00165564 [00:35:30]file doc_00165565 [00:35:30]remove file /storage/0534/doc_00165565 [00:35:30]file doc_00165566 [00:35:30]remove file /storage/0534/doc_00165566 [00:35:30]file doc_00165567 [00:35:30]remove file /storage/0534/doc_00165567 [00:35:30]file doc_00165568 [00:35:30]remove file /storage/0534/doc_00165568 [00:35:30]file doc_00165569 [00:35:30]remove file /storage/0534/doc_00165569 [00:35:30]file doc_00165570 [00:35:30]remove file /storage/0534/doc_00165570 [00:35:30]file doc_00165571 [00:35:30]remove file /storage/0534/doc_00165571 [00:35:30]file doc_00165572 [00:35:30]remove file /storage/0534/doc_00165572 [00:35:30]file doc_00165573 [00:35:30]remove file /storage/0534/doc_00165573 [00:35:30]file doc_00165574 [00:35:30]remove file /storage/0534/doc_00165574 [00:35:30]file doc_00165575 [00:35:30]remove file /storage/0534/doc_00165575 [00:35:30]file doc_00165576 [00:35:30]remove file /storage/0534/doc_00165576 [00:35:30]file doc_00165577 [00:35:30]remove file /storage/0534/doc_00165577 [00:35:30]file doc_00165578 [00:35:30]remove file /storage/0534/doc_00165578 [00:35:30]file doc_00165579 [00:35:30]remove file /storage/0534/doc_00165579 [00:35:30]file doc_00165580 [00:35:30]remove file /storage/0534/doc_00165580 [00:35:30]file doc_00165581 [00:35:30]remove file /storage/0534/doc_00165581 [00:35:30]file doc_00165582 [00:35:30]remove file /storage/0534/doc_00165582 [00:35:30]file doc_00165583 [00:35:30]remove file /storage/0534/doc_00165583 [00:35:30]file doc_00165584 [00:35:30]remove file /storage/0534/doc_00165584 [00:35:30]file doc_00165585 [00:35:30]remove file /storage/0534/doc_00165585 [00:35:30]file doc_00165586 [00:35:30]remove file /storage/0534/doc_00165586 [00:35:30]file doc_00165587 [00:35:30]remove file /storage/0534/doc_00165587 [00:35:30]file doc_00165588 [00:35:30]remove file /storage/0534/doc_00165588 [00:35:30]file doc_00165589 [00:35:30]remove file /storage/0534/doc_00165589 [00:35:30]file doc_00165590 [00:35:30]remove file /storage/0534/doc_00165590 [00:35:30]file doc_00165591 [00:35:30]remove file /storage/0534/doc_00165591 [00:35:30]file doc_00165592 [00:35:30]remove file /storage/0534/doc_00165592 [00:35:30]file doc_00165593 [00:35:30]remove file /storage/0534/doc_00165593 [00:35:30]file doc_00165594 [00:35:30]remove file /storage/0534/doc_00165594 [00:35:30]file doc_00165595 [00:35:30]remove file /storage/0534/doc_00165595 [00:35:30]file doc_00165596 [00:35:30]remove file /storage/0534/doc_00165596 [00:35:30]file doc_00165597 [00:35:30]remove file /storage/0534/doc_00165597 [00:35:30]file doc_00165598 [00:35:30]remove file /storage/0534/doc_00165598 [00:35:30]file doc_00165599 [00:35:30]remove file /storage/0534/doc_00165599 [00:35:30]file doc_00165600 [00:35:30]remove file /storage/0534/doc_00165600 [00:35:30]file doc_00165601 [00:35:30]remove file /storage/0534/doc_00165601 [00:35:30]file doc_00165602 [00:35:30]remove file /storage/0534/doc_00165602 [00:35:30]file doc_00165603 [00:35:30]remove file /storage/0534/doc_00165603 [00:35:30]file doc_00165604 [00:35:30]remove file /storage/0534/doc_00165604 [00:35:30]file doc_00165605 [00:35:30]remove file /storage/0534/doc_00165605 [00:35:30]file doc_00165606 [00:35:30]remove file /storage/0534/doc_00165606 [00:35:30]file doc_00165607 [00:35:30]remove file /storage/0534/doc_00165607 [00:35:30]file doc_00165608 [00:35:30]remove file /storage/0534/doc_00165608 [00:35:30]file doc_00165609 [00:35:30]remove file /storage/0534/doc_00165609 [00:35:30]file doc_00165610 [00:35:30]remove file /storage/0534/doc_00165610 [00:35:30]file doc_00165611 [00:35:30]remove file /storage/0534/doc_00165611 [00:35:30]file doc_00165612 [00:35:30]remove file /storage/0534/doc_00165612 [00:35:30]file doc_00165613 [00:35:30]remove file /storage/0534/doc_00165613 [00:35:30]file doc_00165614 [00:35:30]remove file /storage/0534/doc_00165614 [00:35:30]file doc_00165615 [00:35:30]remove file /storage/0534/doc_00165615 [00:35:30]file doc_00165616 [00:35:30]remove file /storage/0534/doc_00165616 [00:35:30]file doc_00165617 [00:35:30]remove file /storage/0534/doc_00165617 [00:35:30]file doc_00165618 [00:35:30]remove file /storage/0534/doc_00165618 [00:35:30]file doc_00165619 [00:35:30]remove file /storage/0534/doc_00165619 [00:35:30]file doc_00165620 [00:35:30]remove file /storage/0534/doc_00165620 [00:35:30]file doc_00165621 [00:35:30]remove file /storage/0534/doc_00165621 [00:35:30]file doc_00165622 [00:35:30]remove file /storage/0534/doc_00165622 [00:35:30]file doc_00165623 [00:35:30]remove file /storage/0534/doc_00165623 [00:35:30]file doc_00165624 [00:35:30]remove file /storage/0534/doc_00165624 [00:35:30]file doc_00165625 [00:35:30]remove file /storage/0534/doc_00165625 [00:35:30]file doc_00165626 [00:35:30]remove file /storage/0534/doc_00165626 [00:35:30]file doc_00165627 [00:35:30]remove file /storage/0534/doc_00165627 [00:35:30]file doc_00165628 [00:35:30]remove file /storage/0534/doc_00165628 [00:35:30]file doc_00165629 [00:35:30]remove file /storage/0534/doc_00165629 [00:35:30]file doc_00165630 [00:35:30]remove file /storage/0534/doc_00165630 [00:35:30]file doc_00165631 [00:35:30]remove file /storage/0534/doc_00165631 [00:35:30]file doc_00165632 [00:35:30]remove file /storage/0534/doc_00165632 [00:35:30]file doc_00165633 [00:35:30]remove file /storage/0534/doc_00165633 [00:35:30]file doc_00165634 [00:35:30]remove file /storage/0534/doc_00165634 [00:35:30]file doc_00165635 [00:35:30]remove file /storage/0534/doc_00165635 [00:35:30]file doc_00165636 [00:35:30]remove file /storage/0534/doc_00165636 [00:35:30]file doc_00165637 [00:35:30]remove file /storage/0534/doc_00165637 [00:35:30]file doc_00165638 [00:35:30]remove file /storage/0534/doc_00165638 [00:35:30]file doc_00165639 [00:35:30]remove file /storage/0534/doc_00165639 [00:35:30]file doc_00165640 [00:35:30]remove file /storage/0534/doc_00165640 [00:35:30]file doc_00165641 [00:35:30]remove file /storage/0534/doc_00165641 [00:35:30]file doc_00165642 [00:35:30]remove file /storage/0534/doc_00165642 [00:35:30]file doc_00165643 [00:35:30]remove file /storage/0534/doc_00165643 [00:35:30]file doc_00165644 [00:35:30]remove file /storage/0534/doc_00165644 [00:35:30]file doc_00165645 [00:35:30]remove file /storage/0534/doc_00165645 [00:35:30]file doc_00165646 [00:35:30]remove file /storage/0534/doc_00165646 [00:35:30]file doc_00165647 [00:35:30]remove file /storage/0534/doc_00165647 [00:35:30]file doc_00165648 [00:35:30]remove file /storage/0534/doc_00165648 [00:35:30]file doc_00165649 [00:35:30]remove file /storage/0534/doc_00165649 [00:35:30]file doc_00165650 [00:35:30]remove file /storage/0534/doc_00165650 [00:35:30]file doc_00165651 [00:35:30]remove file /storage/0534/doc_00165651 [00:35:30]file doc_00165652 [00:35:30]remove file /storage/0534/doc_00165652 [00:35:30]file doc_00165653 [00:35:30]remove file /storage/0534/doc_00165653 [00:35:30]file doc_00165654 [00:35:30]remove file /storage/0534/doc_00165654 [00:35:30]file doc_00165655 [00:35:30]remove file /storage/0534/doc_00165655 [00:35:30]file doc_00165656 [00:35:30]remove file /storage/0534/doc_00165656 [00:35:30]file doc_00165657 [00:35:30]remove file /storage/0534/doc_00165657 [00:35:30]file doc_00165658 [00:35:30]remove file /storage/0534/doc_00165658 [00:35:30]file doc_00165659 [00:35:30]remove file /storage/0534/doc_00165659 [00:35:30]file doc_00165660 [00:35:30]remove file /storage/0534/doc_00165660 [00:35:30]file doc_00165661 [00:35:30]remove file /storage/0534/doc_00165661 [00:35:30]file doc_00165662 [00:35:30]remove file /storage/0534/doc_00165662 [00:35:30]file doc_00165663 [00:35:30]remove file /storage/0534/doc_00165663 [00:35:30]file doc_00165664 [00:35:30]remove file /storage/0534/doc_00165664 [00:35:30]file doc_00165665 [00:35:30]remove file /storage/0534/doc_00165665 [00:35:30]file doc_00165666 [00:35:30]remove file /storage/0534/doc_00165666 [00:35:30]file doc_00165667 [00:35:30]remove file /storage/0534/doc_00165667 [00:35:30]file doc_00165668 [00:35:30]remove file /storage/0534/doc_00165668 [00:35:30]file doc_00165669 [00:35:30]remove file /storage/0534/doc_00165669 [00:35:30]file doc_00165670 [00:35:30]remove file /storage/0534/doc_00165670 [00:35:30]file doc_00165671 [00:35:30]remove file /storage/0534/doc_00165671 [00:35:30]file doc_00165672 [00:35:30]remove file /storage/0534/doc_00165672 [00:35:30]file doc_00165673 [00:35:30]remove file /storage/0534/doc_00165673 [00:35:30]file doc_00165674 [00:35:30]remove file /storage/0534/doc_00165674 [00:35:30]file doc_00165675 [00:35:30]remove file /storage/0534/doc_00165675 [00:35:30]file doc_00165676 [00:35:30]remove file /storage/0534/doc_00165676 [00:35:30]file doc_00165677 [00:35:30]remove file /storage/0534/doc_00165677 [00:35:30]file doc_00165678 [00:35:30]remove file /storage/0534/doc_00165678 [00:35:30]file doc_00165679 [00:35:30]remove file /storage/0534/doc_00165679 [00:35:30]file doc_00165680 [00:35:30]remove file /storage/0534/doc_00165680 [00:35:30]file doc_00165681 [00:35:30]remove file /storage/0534/doc_00165681 [00:35:30]file doc_00165682 [00:35:30]remove file /storage/0534/doc_00165682 [00:35:30]file doc_00165683 [00:35:30]remove file /storage/0534/doc_00165683 [00:35:30]file doc_00165684 [00:35:30]remove file /storage/0534/doc_00165684 [00:35:30]file doc_00165685 [00:35:30]remove file /storage/0534/doc_00165685 [00:35:30]file doc_00165686 [00:35:30]remove file /storage/0534/doc_00165686 [00:35:30]file doc_00165687 [00:35:30]remove file /storage/0534/doc_00165687 [00:35:30]file doc_00165688 [00:35:30]remove file /storage/0534/doc_00165688 [00:35:31]file doc_00165689 [00:35:31]remove file /storage/0534/doc_00165689 [00:35:31]file doc_00165690 [00:35:31]remove file /storage/0534/doc_00165690 [00:35:31]file doc_00165691 [00:35:31]remove file /storage/0534/doc_00165691 [00:35:31]file doc_00165692 [00:35:31]remove file /storage/0534/doc_00165692 [00:35:31]file doc_00165693 [00:35:31]remove file /storage/0534/doc_00165693 [00:35:31]file doc_00165694 [00:35:31]remove file /storage/0534/doc_00165694 [00:35:31]file doc_00165695 [00:35:31]remove file /storage/0534/doc_00165695 [00:35:31]file doc_00165696 [00:35:31]remove file /storage/0534/doc_00165696 [00:35:31]file doc_00165697 [00:35:31]remove file /storage/0534/doc_00165697 [00:35:31]file doc_00165698 [00:35:31]remove file /storage/0534/doc_00165698 [00:35:31]file doc_00165699 [00:35:31]remove file /storage/0534/doc_00165699 [00:35:31]file doc_00165700 [00:35:31]remove file /storage/0534/doc_00165700 [00:35:31]file doc_00165701 [00:35:31]remove file /storage/0534/doc_00165701 [00:35:31]file doc_00165702 [00:35:31]remove file /storage/0534/doc_00165702 [00:35:31]file doc_00165703 [00:35:31]remove file /storage/0534/doc_00165703 [00:35:31]file doc_00165704 [00:35:31]remove file /storage/0534/doc_00165704 [00:35:31]file doc_00165705 [00:35:31]remove file /storage/0534/doc_00165705 [00:35:31]file doc_00165706 [00:35:31]remove file /storage/0534/doc_00165706 [00:35:31]file doc_00165707 [00:35:31]remove file /storage/0534/doc_00165707 [00:35:31]file doc_00165708 [00:35:31]remove file /storage/0534/doc_00165708 [00:35:31]file doc_00165709 [00:35:31]remove file /storage/0534/doc_00165709 [00:35:31]file doc_00165710 [00:35:31]remove file /storage/0534/doc_00165710 [00:35:31]file doc_00165711 [00:35:31]remove file /storage/0534/doc_00165711 [00:35:31]file doc_00165712 [00:35:31]remove file /storage/0534/doc_00165712 [00:35:31]file doc_00165713 [00:35:31]remove file /storage/0534/doc_00165713 [00:35:31]file doc_00165714 [00:35:31]remove file /storage/0534/doc_00165714 [00:35:31]file doc_00165715 [00:35:31]remove file /storage/0534/doc_00165715 [00:35:31]file doc_00165716 [00:35:31]remove file /storage/0534/doc_00165716 [00:35:31]file doc_00165717 [00:35:31]remove file /storage/0534/doc_00165717 [00:35:31]file doc_00165718 [00:35:31]remove file /storage/0534/doc_00165718 [00:35:31]file doc_00165719 [00:35:31]remove file /storage/0534/doc_00165719 [00:35:31]file doc_00165720 [00:35:31]remove file /storage/0534/doc_00165720 [00:35:31]file doc_00165721 [00:35:31]remove file /storage/0534/doc_00165721 [00:35:31]file doc_00165722 [00:35:31]remove file /storage/0534/doc_00165722 [00:35:31]file doc_00165723 [00:35:31]remove file /storage/0534/doc_00165723 [00:35:31]file doc_00165724 [00:35:31]remove file /storage/0534/doc_00165724 [00:35:31]file doc_00165725 [00:35:31]remove file /storage/0534/doc_00165725 [00:35:31]file doc_00165726 [00:35:31]remove file /storage/0534/doc_00165726 [00:35:31]file doc_00165727 [00:35:31]remove file /storage/0534/doc_00165727 [00:35:31]file doc_00165728 [00:35:31]remove file /storage/0534/doc_00165728 [00:35:31]file doc_00165729 [00:35:31]remove file /storage/0534/doc_00165729 [00:35:31]file doc_00165730 [00:35:31]remove file /storage/0534/doc_00165730 [00:35:31]file doc_00165731 [00:35:31]remove file /storage/0534/doc_00165731 [00:35:31]file doc_00165732 [00:35:31]remove file /storage/0534/doc_00165732 [00:35:31]file doc_00165733 [00:35:31]remove file /storage/0534/doc_00165733 [00:35:31]file doc_00165734 [00:35:31]remove file /storage/0534/doc_00165734 [00:35:31]file doc_00165735 [00:35:31]remove file /storage/0534/doc_00165735 [00:35:31]file doc_00165736 [00:35:31]remove file /storage/0534/doc_00165736 [00:35:31]file doc_00165737 [00:35:31]remove file /storage/0534/doc_00165737 [00:35:31]file doc_00165738 [00:35:31]remove file /storage/0534/doc_00165738 [00:35:31]file doc_00165739 [00:35:31]remove file /storage/0534/doc_00165739 [00:35:31]file doc_00165740 [00:35:31]remove file /storage/0534/doc_00165740 [00:35:31]file doc_00165741 [00:35:31]remove file /storage/0534/doc_00165741 [00:35:31]file doc_00165742 [00:35:31]remove file /storage/0534/doc_00165742 [00:35:31]file doc_00165743 [00:35:31]remove file /storage/0534/doc_00165743 [00:35:31]file doc_00165744 [00:35:31]remove file /storage/0534/doc_00165744 [00:35:31]file doc_00165745 [00:35:31]remove file /storage/0534/doc_00165745 [00:35:31]file doc_00165746 [00:35:31]remove file /storage/0534/doc_00165746 [00:35:31]file doc_00165747 [00:35:31]remove file /storage/0534/doc_00165747 [00:35:31]file doc_00165748 [00:35:31]remove file /storage/0534/doc_00165748 [00:35:31]file doc_00165749 [00:35:31]remove file /storage/0534/doc_00165749 [00:35:31]file doc_00165750 [00:35:31]remove file /storage/0534/doc_00165750 [00:35:31]file doc_00165751 [00:35:31]remove file /storage/0534/doc_00165751 [00:35:31]file doc_00165752 [00:35:31]remove file /storage/0534/doc_00165752 [00:35:31]file doc_00165753 [00:35:31]remove file /storage/0534/doc_00165753 [00:35:31]file doc_00165754 [00:35:31]remove file /storage/0534/doc_00165754 [00:35:31]file doc_00165755 [00:35:31]remove file /storage/0534/doc_00165755 [00:35:31]file doc_00165756 [00:35:31]remove file /storage/0534/doc_00165756 [00:35:31]file doc_00165757 [00:35:31]remove file /storage/0534/doc_00165757 [00:35:31]file doc_00165758 [00:35:31]remove file /storage/0534/doc_00165758 [00:35:31]file doc_00165759 [00:35:31]remove file /storage/0534/doc_00165759 [00:35:31]file doc_00165760 [00:35:31]remove file /storage/0534/doc_00165760 [00:35:31]file doc_00165761 [00:35:31]remove file /storage/0534/doc_00165761 [00:35:31]file doc_00165762 [00:35:31]remove file /storage/0534/doc_00165762 [00:35:31]file doc_00165763 [00:35:31]remove file /storage/0534/doc_00165763 [00:35:31]file doc_00165764 [00:35:31]remove file /storage/0534/doc_00165764 [00:35:31]file doc_00165765 [00:35:31]remove file /storage/0534/doc_00165765 [00:35:31]file doc_00165766 [00:35:31]remove file /storage/0534/doc_00165766 [00:35:31]file doc_00165767 [00:35:31]remove file /storage/0534/doc_00165767 [00:35:31]file doc_00165768 [00:35:31]remove file /storage/0534/doc_00165768 [00:35:31]file doc_00165769 [00:35:31]remove file /storage/0534/doc_00165769 [00:35:31]file doc_00165770 [00:35:31]remove file /storage/0534/doc_00165770 [00:35:31]file doc_00165771 [00:35:31]remove file /storage/0534/doc_00165771 [00:35:31]file doc_00165772 [00:35:31]remove file /storage/0534/doc_00165772 [00:35:31]file doc_00165773 [00:35:31]remove file /storage/0534/doc_00165773 [00:35:31]file doc_00165774 [00:35:31]remove file /storage/0534/doc_00165774 [00:35:31]file doc_00165775 [00:35:31]remove file /storage/0534/doc_00165775 [00:35:31]file doc_00165776 [00:35:31]remove file /storage/0534/doc_00165776 [00:35:31]file doc_00165777 [00:35:31]remove file /storage/0534/doc_00165777 [00:35:31]file doc_00165778 [00:35:31]remove file /storage/0534/doc_00165778 [00:35:31]file doc_00165779 [00:35:31]remove file /storage/0534/doc_00165779 [00:35:31]file doc_00165780 [00:35:31]remove file /storage/0534/doc_00165780 [00:35:31]file doc_00165781 [00:35:31]remove file /storage/0534/doc_00165781 [00:35:31]file doc_00165782 [00:35:31]remove file /storage/0534/doc_00165782 [00:35:31]file doc_00165783 [00:35:31]remove file /storage/0534/doc_00165783 [00:35:31]file doc_00165784 [00:35:31]remove file /storage/0534/doc_00165784 [00:35:31]file doc_00165785 [00:35:31]remove file /storage/0534/doc_00165785 [00:35:31]file doc_00165786 [00:35:31]remove file /storage/0534/doc_00165786 [00:35:31]file doc_00165787 [00:35:31]remove file /storage/0534/doc_00165787 [00:35:31]file doc_00165788 [00:35:31]remove file /storage/0534/doc_00165788 [00:35:31]file doc_00165789 [00:35:31]remove file /storage/0534/doc_00165789 [00:35:31]file doc_00165790 [00:35:31]remove file /storage/0534/doc_00165790 [00:35:31]file doc_00165791 [00:35:31]remove file /storage/0534/doc_00165791 [00:35:31]file doc_00165792 [00:35:31]remove file /storage/0534/doc_00165792 [00:35:31]file doc_00165793 [00:35:31]remove file /storage/0534/doc_00165793 [00:35:31]file doc_00165794 [00:35:31]remove file /storage/0534/doc_00165794 [00:35:31]file doc_00165795 [00:35:31]remove file /storage/0534/doc_00165795 [00:35:31]file doc_00165796 [00:35:31]remove file /storage/0534/doc_00165796 [00:35:31]file doc_00165797 [00:35:31]remove file /storage/0534/doc_00165797 [00:35:31]file doc_00165798 [00:35:31]remove file /storage/0534/doc_00165798 [00:35:31]file doc_00165799 [00:35:31]remove file /storage/0534/doc_00165799 [00:35:31]file doc_00165800 [00:35:31]remove file /storage/0534/doc_00165800 [00:35:31]file doc_00165801 [00:35:31]remove file /storage/0534/doc_00165801 [00:35:31]file doc_00165802 [00:35:31]remove file /storage/0534/doc_00165802 [00:35:31]file doc_00165803 [00:35:31]remove file /storage/0534/doc_00165803 [00:35:31]file doc_00165804 [00:35:31]remove file /storage/0534/doc_00165804 [00:35:31]file doc_00165805 [00:35:31]remove file /storage/0534/doc_00165805 [00:35:31]file doc_00165806 [00:35:31]remove file /storage/0534/doc_00165806 [00:35:31]file doc_00165807 [00:35:31]remove file /storage/0534/doc_00165807 [00:35:31]file doc_00165808 [00:35:31]remove file /storage/0534/doc_00165808 [00:35:31]file doc_00165809 [00:35:31]remove file /storage/0534/doc_00165809 [00:35:31]file doc_00165810 [00:35:31]remove file /storage/0534/doc_00165810 [00:35:31]file doc_00165811 [00:35:31]remove file /storage/0534/doc_00165811 [00:35:31]file doc_00165812 [00:35:31]remove file /storage/0534/doc_00165812 [00:35:31]file doc_00165813 [00:35:31]remove file /storage/0534/doc_00165813 [00:35:31]file doc_00165814 [00:35:31]remove file /storage/0534/doc_00165814 [00:35:31]file doc_00165815 [00:35:31]remove file /storage/0534/doc_00165815 [00:35:31]file doc_00165816 [00:35:31]remove file /storage/0534/doc_00165816 [00:35:31]file doc_00165817 [00:35:31]remove file /storage/0534/doc_00165817 [00:35:31]file doc_00165818 [00:35:31]remove file /storage/0534/doc_00165818 [00:35:31]file doc_00165819 [00:35:31]remove file /storage/0534/doc_00165819 [00:35:31]file doc_00165820 [00:35:31]remove file /storage/0534/doc_00165820 [00:35:31]file doc_00165821 [00:35:31]remove file /storage/0534/doc_00165821 [00:35:31]file doc_00165822 [00:35:31]remove file /storage/0534/doc_00165822 [00:35:31]file doc_00165823 [00:35:31]remove file /storage/0534/doc_00165823 [00:35:31]file doc_00165824 [00:35:31]remove file /storage/0534/doc_00165824 [00:35:31]file doc_00165825 [00:35:31]remove file /storage/0534/doc_00165825 [00:35:31]file doc_00165826 [00:35:31]remove file /storage/0534/doc_00165826 [00:35:31]file doc_00165827 [00:35:31]remove file /storage/0534/doc_00165827 [00:35:31]file doc_00165828 [00:35:31]remove file /storage/0534/doc_00165828 [00:35:31]file doc_00165829 [00:35:31]remove file /storage/0534/doc_00165829 [00:35:31]file doc_00165830 [00:35:31]remove file /storage/0534/doc_00165830 [00:35:31]file doc_00165831 [00:35:31]remove file /storage/0534/doc_00165831 [00:35:31]file doc_00165832 [00:35:31]remove file /storage/0534/doc_00165832 [00:35:31]file doc_00165833 [00:35:31]remove file /storage/0534/doc_00165833 [00:35:31]file doc_00165834 [00:35:31]remove file /storage/0534/doc_00165834 [00:35:31]file doc_00165835 [00:35:32]remove file /storage/0534/doc_00165835 [00:35:32]OFD Sender: No OFD packet to send [00:35:32]file doc_00165836 [00:35:32]remove file /storage/0534/doc_00165836 [00:35:32]file doc_00165837 [00:35:32]remove file /storage/0534/doc_00165837 [00:35:32]file doc_00165838 [00:35:32]remove file /storage/0534/doc_00165838 [00:35:32]file doc_00165839 [00:35:32]remove file /storage/0534/doc_00165839 [00:35:32]file doc_00165840 [00:35:32]remove file /storage/0534/doc_00165840 [00:35:32]file doc_00165841 [00:35:32]remove file /storage/0534/doc_00165841 [00:35:32]file doc_00165842 [00:35:32]remove file /storage/0534/doc_00165842 [00:35:32]file doc_00165843 [00:35:32]remove file /storage/0534/doc_00165843 [00:35:32]file doc_00165844 [00:35:32]remove file /storage/0534/doc_00165844 [00:35:32]file doc_00165845 [00:35:32]remove file /storage/0534/doc_00165845 [00:35:32]file doc_00165846 [00:35:32]remove file /storage/0534/doc_00165846 [00:35:32]file doc_00165847 [00:35:32]remove file /storage/0534/doc_00165847 [00:35:32]file doc_00165848 [00:35:32]remove file /storage/0534/doc_00165848 [00:35:32]file doc_00165849 [00:35:32]remove file /storage/0534/doc_00165849 [00:35:32]file doc_00165850 [00:35:32]remove file /storage/0534/doc_00165850 [00:35:32]file doc_00165851 [00:35:32]remove file /storage/0534/doc_00165851 [00:35:32]file doc_00165852 [00:35:32]remove file /storage/0534/doc_00165852 [00:35:32]file doc_00165853 [00:35:32]remove file /storage/0534/doc_00165853 [00:35:32]file doc_00165854 [00:35:32]remove file /storage/0534/doc_00165854 [00:35:32]file doc_00165855 [00:35:32]remove file /storage/0534/doc_00165855 [00:35:32]file doc_00165856 [00:35:32]remove file /storage/0534/doc_00165856 [00:35:32]file doc_00165857 [00:35:32]remove file /storage/0534/doc_00165857 [00:35:32]file doc_00165858 [00:35:32]remove file /storage/0534/doc_00165858 [00:35:32]file doc_00165859 [00:35:32]remove file /storage/0534/doc_00165859 [00:35:32]file doc_00165860 [00:35:32]remove file /storage/0534/doc_00165860 [00:35:32]file doc_00165861 [00:35:32]remove file /storage/0534/doc_00165861 [00:35:32]file doc_00165862 [00:35:32]remove file /storage/0534/doc_00165862 [00:35:32]file doc_00165863 [00:35:32]remove file /storage/0534/doc_00165863 [00:35:32]file doc_00165864 [00:35:32]remove file /storage/0534/doc_00165864 [00:35:32]file doc_00165865 [00:35:32]remove file /storage/0534/doc_00165865 [00:35:32]file doc_00165866 [00:35:32]remove file /storage/0534/doc_00165866 [00:35:32]file doc_00165867 [00:35:32]remove file /storage/0534/doc_00165867 [00:35:32]file doc_00165868 [00:35:32]remove file /storage/0534/doc_00165868 [00:35:32]file doc_00165869 [00:35:32]remove file /storage/0534/doc_00165869 [00:35:32]file doc_00165870 [00:35:32]remove file /storage/0534/doc_00165870 [00:35:32]file doc_00165871 [00:35:32]remove file /storage/0534/doc_00165871 [00:35:32]file doc_00165872 [00:35:32]remove file /storage/0534/doc_00165872 [00:35:32]file doc_00165873 [00:35:32]remove file /storage/0534/doc_00165873 [00:35:32]file doc_00165874 [00:35:32]remove file /storage/0534/doc_00165874 [00:35:32]file doc_00165875 [00:35:32]remove file /storage/0534/doc_00165875 [00:35:32]file doc_00165876 [00:35:32]remove file /storage/0534/doc_00165876 [00:35:32]file doc_00165877 [00:35:32]remove file /storage/0534/doc_00165877 [00:35:32]file doc_00165878 [00:35:32]remove file /storage/0534/doc_00165878 [00:35:32]file doc_00165879 [00:35:32]remove file /storage/0534/doc_00165879 [00:35:32]file doc_00165880 [00:35:32]remove file /storage/0534/doc_00165880 [00:35:32]file doc_00165881 [00:35:32]remove file /storage/0534/doc_00165881 [00:35:32]file doc_00165882 [00:35:32]remove file /storage/0534/doc_00165882 [00:35:32]file doc_00165883 [00:35:32]remove file /storage/0534/doc_00165883 [00:35:32]file doc_00165884 [00:35:32]remove file /storage/0534/doc_00165884 [00:35:32]file doc_00165885 [00:35:32]remove file /storage/0534/doc_00165885 [00:35:32]file doc_00165886 [00:35:32]remove file /storage/0534/doc_00165886 [00:35:32]file doc_00165887 [00:35:32]remove file /storage/0534/doc_00165887 [00:35:32]file doc_00165888 [00:35:32]remove file /storage/0534/doc_00165888 [00:35:32]remove dir /storage/0534 [00:35:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:35:32]tlvbuf is 015F6EC0 [00:35:32]SAM_PROTO_ClearQueue [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 09 00 00 [00:35:32]Write to MH i2c: E2 08 00 4B 29 80 09 00 00 00 00 00 00 E6 [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 03 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 03 00 4B 29 00 90 00 E8 [00:35:32]RAPDU: 90 00 [00:35:32]wFMCommunicate OK [00:35:32]SAM_PROTO_ClearQueue done [00:35:32]KKMCreateOFDPacket [00:35:32]OFDProtocolAddRootSTLVToBuf [00:35:32]FM_MakeSignedData [00:35:32]FM_MakeSignedData [00:35:32]SAM_PROTO_SignData [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 0D 01 02 [00:35:32]Write to MH i2c: E2 08 00 4C 29 80 0D 01 02 00 00 00 00 EE [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 03 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 03 00 4C 29 00 90 00 E9 [00:35:32]RAPDU: 90 00 [00:35:32]wFMCommunicate OK [00:35:32]wFMCommunicate request_size=255 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 0D 02 02 FA 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 E0 A1 15 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 [00:35:32]Write to MH i2c: E2 02 01 4D 29 80 0D 02 02 FA 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 E0 A1 15 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 00 00 C5 [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 03 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 03 00 4D 29 00 90 00 EA [00:35:32]RAPDU: 90 00 [00:35:32]wFMCommunicate OK [00:35:32]wFMCommunicate request_size=16 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 0D 02 02 0B 39 35 04 06 00 6D 63 04 01 F0 00 [00:35:32]Write to MH i2c: E2 13 00 4E 29 80 0D 02 02 0B 00 39 35 04 06 00 6D 63 04 01 F0 00 00 00 44 [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 03 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 03 00 4E 29 00 90 00 EB [00:35:32]RAPDU: 90 00 [00:35:32]wFMCommunicate OK [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 0D 03 02 [00:35:32]Write to MH i2c: E2 08 00 4F 29 80 0D 03 02 00 00 00 00 F3 [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 0B 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 0B 00 4F 29 00 8A A3 DA DE DB 6D 9E BF 90 00 7E [00:35:32]RAPDU: 8A A3 DA DE DB 6D 9E BF 90 00 [00:35:32]wFMCommunicate OK [00:35:32]SAM_PROTO_SignData done [00:35:32]FM_MakeSignedData done [00:35:32]CreateOFDProtocolMessage [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 11 00 00 [00:35:32]Write to MH i2c: E2 08 00 50 29 80 11 00 00 00 00 00 00 F3 [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:33]Read from MH i2c: E2 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 17 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 17 00 50 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [00:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:35:33]wFMCommunicate OK [00:35:33]CreateOFDProtocolMessage done [00:35:33]OFDSenderStorePacket 165889 [00:35:33]StoreOFDPacket docnum=165889 [00:35:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 15 01 00 00 3A 73 0D 01 0F 0F 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 E0 A1 15 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 6D 63 04 01 F0 00 8A A3 DA DE DB 6D 9E BF [00:35:33]CheckFolder [00:35:33]dirname=/storage/ofd_packets [00:35:33]CheckFolder done [00:35:33]ProducePacketName [00:35:33]name=ofd_packets/00165889 [00:35:33]NVStorageSaveData ofd_packets/00165889 [00:35:33]File name is /storage/ofd_packets/00165889 [00:35:33]Write 307 bytes [00:35:33]NVStorageSaveData done [00:35:33]OFDSenderStorePacket done [00:35:33]KKMCreateOFDPacket done [00:35:33]NVStorageSaveData kkm_last_timestamp [00:35:33]File name is /storage/kkm_last_timestamp [00:35:33]Write 4 bytes [00:35:33]NVStorageSaveData done [00:35:33]ExternCall_PrintAddStr [00:35:33]wPrintStart [00:35:33]Write to MH i2c: 01 00 00 51 29 7A [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]OFD Sender: Processing packet 165889 [packets to send 48, broken 47] [00:35:33]ProducePacketName [00:35:33]name=ofd_packets/00165889 [00:35:33]OFD Sender: To server: pG, [00:35:33]CommunicateWithHost lk.salyk.kg:30040 [00:35:33]ConnectInit lk.salyk.kg [00:35:33]Read from MH i2c: 01 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: 01 07 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: 01 07 00 51 29 00 00 00 00 00 FF 0F 8F [00:35:33]RasterBufferAndPrint [00:35:33]line Отчет об открытии смены [00:35:33]line ФФД: 1.0 [00:35:33]line ИНН: 02508201610067 [00:35:33]line Кассир: Алыкулова К. [00:35:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:35:33]line Место: АЗС № 161 "Партнер Нефть" [00:35:33]line 21.10.2024 00:35 [00:35:33]line Смена: 535 [00:35:33]line РНМ: 0000000000091764 [00:35:33]line ЗНМ: 0300000104 [00:35:33]line ФД: 165889 [00:35:33]line ФМ: 0000000000871759 [00:35:33]line ФПД: 120272036425728 [00:35:33]written 0, free lines is 4095 [00:35:33]Connected sock=7 [00:35:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 15 01 00 00 3A 73 0D 01 0F 0F 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 E0 A1 15 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 6D 63 04 01 F0 00 8A A3 DA DE DB 6D 9E BF [00:35:33]Write to MH i2c: 01 00 00 63 29 8C [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: 01 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: 01 07 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: 01 07 00 63 29 00 00 00 00 00 75 0E 16 [00:35:33]RasterBufferAndPrint [00:35:33]line [00:35:33]line [00:35:33]line [00:35:33]line [00:35:33]line [00:35:33]written 0, free lines is 3723 [00:35:33]MH_Cut [00:35:33]Write to MH i2c: D1 01 00 6A 29 01 65 [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: D1 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: D1 01 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: D1 01 00 6A 29 00 64 [00:35:33]Write to MH i2c: 01 00 00 6B 29 94 [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DC 7A 47 00 20 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 88 02 00 F4 03 04 00 52 48 15 67 B6 04 01 00 00 66 73 B1 F4 AB 7E 84 2B [00:35:33]CommunicateWithHost err = 0 [00:35:33]CheckOFDResponse [00:35:33]1017 (14) - 77093643461234 [00:35:33]1041 (16) - 0000000000871759 [00:35:33]1040 (4) - 165889 [00:35:33]1012 (4) - 20.10.2024 18:13 [00:35:33]1206 (1) - 0 [00:35:33]OFD Sender: Remove packet 165889 [00:35:33]ProducePacketName [00:35:33]name=ofd_packets/00165889 [00:35:33]NVStorageDeleteData [00:35:33]*** Cut start [00:35:33]*** Partial cut [00:35:33]*** CUTSNS_PIN = 1 [00:35:33]*** CUTSNS_PIN = 0 [00:35:34]OFD Sender: No OFD packet to send [00:35:34]*** Brake cut motor [00:35:34]Read from MH i2c: 01 [00:35:34]MH_I2C_Read... [00:35:34]*** Stop cut motor [00:35:34]*** Cut end [00:35:34]Read from MH i2c: 01 07 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 FF 0F A9 [00:35:34]process_action open_shift done [00:35:34]requested_data is exist [00:35:34]produce_requested_data [00:35:34]requested_item fd.num is exist - process it [00:35:34]SAM_PROTO_GetFieldsCounters [00:35:34]wFMCommunicate request_size=4 [00:35:34]MH_SAM_APDU [00:35:34]CAPDU: 80 13 00 00 [00:35:34]Write to MH i2c: E2 08 00 6C 29 80 13 00 00 00 00 00 00 11 [00:35:34]Write i2c OK [00:35:34]MH_I2C_Read... [00:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 62 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 62 00 6C 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:35: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:34]wFMCommunicate OK [00:35:34]SAM_PROTO_GetFieldsCounters done [00:35:34]requested_item shift.num is exist - process it [00:35:34]requested_item shift.opened is exist - process it [00:35:34]req_shift_opened [00:35:34]FM_GetShiftState [00:35:34]SAM_PROTO_GetShiftState [00:35:34]wFMCommunicate request_size=4 [00:35:34]MH_SAM_APDU [00:35:34]CAPDU: 80 13 01 00 [00:35:34]Write to MH i2c: E2 08 00 6D 29 80 13 01 00 00 00 00 00 13 [00:35:34]Write i2c OK [00:35:34]MH_I2C_Read... [00:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 0E 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 0E 00 6D 29 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1C [00:35:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:35:34]wFMCommunicate OK [00:35:34]SAM_PROTO_GetShiftState done [00:35:34]FM_GetShiftState done [00:35:34]req_shift_opened done [00:35:34]requested_item shift.open_date is exist - process it [00:35:34]req_shift_open_date [00:35:34]req_shift_open_date done [00:35:34]produce_requested_data done [00:35:34]produce_requested_data return {"fd.num":165889,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:35:34]process_action_free open_shift [00:35:34]json_value_free [00:35:34]json_value_free done [00:35:34]process_json_proto returns [00:35:34]Send response to host [00:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":165889,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:35:34]free response buf [00:35:34]execute_script done [00:35:34]execute_script returns [00:35:34]free content buf [00:35:34]Sock 6.Close socket [00:35:34]Sock 6.Thread stoped [00:35:34]accept exits with 5 [00:35:34]New connection [00:35:34]New thread 3066776932 created [00:35:34]Thread 3066920292 joined [00:35:34]Waiting for new connection... [00:35:34] Sock 5.Parse request [00:35:34]Sock 5.Check first char [00:35:34]Sock 5.First char is OK [00:35:34]request: POST /json_proto HTTP/1.0 [00:35:34]Method: POST [00:35:34]URL: /json_proto [00:35:34]Method is POST - this is cgi request [00:35:34]url: /json_proto [00:35:34]query_string will be loaded in cgi processing [00:35:34]execute_cgi json_proto POST (null) [00:35:34]execute_cgi path=json_proto method=POST [00:35:34]POST find Content-Length [00:35:34]Host: 172.17.53.195:8080 [00:35:34]Content-Length: 331 [00:35:34]Content-Type: application/json [00:35:34] [00:35:34]POST finish read [00:35:34]Found Content-Length = 331 [00:35:34]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:34]execute_script... [00:35:34]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:34]POST & json_proto [00:35:34]process_json_proto [00:35:34]json parsed OK: [00:35:34]protocol is kg_v1.0 [00:35:34]action value=get_value [00:35:34]process_action get_value [00:35:34]cmd_get_value [00:35:34]process_action get_value done [00:35:34]requested_data is exist [00:35:34]produce_requested_data [00:35:34]requested_item fm.sale.total is exist - process it [00:35:34]SAM_PROTO_GetFMData [00:35:34]wFMCommunicate request_size=4 [00:35:34]MH_SAM_APDU [00:35:34]CAPDU: 80 13 03 00 [00:35:34]Write to MH i2c: E2 08 00 6E 29 80 13 03 00 00 00 00 00 16 [00:35:34]Write i2c OK [00:35:34]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 FD 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 FD 00 6E 29 00 C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 E4 [00:35:35]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D3 83 02 00 69 04 A3 00 6F 04 04 00 D4 82 02 00 B1 04 05 00 54 DC 9B B0 03 70 04 05 00 3C 8E 74 27 03 72 04 04 00 18 4E 27 89 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 B4 DA 5A 64 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 05 CF 5C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 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 17 91 22 01 EF 03 09 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=4 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 17 00 00 [00:35:35]Write to MH i2c: E2 08 00 6F 29 80 17 00 00 00 00 00 00 18 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 FD 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 FD 00 6F 29 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E4 [00:35:35]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=4 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 17 00 00 [00:35:35]Write to MH i2c: E2 08 00 70 29 80 17 00 00 00 00 00 00 19 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 FD 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 FD 00 70 29 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 90 00 2B [00:35:36]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:36]wFMCommunicate OK [00:35:36]wFMCommunicate request_size=4 [00:35:36]MH_SAM_APDU [00:35:36]CAPDU: 80 17 00 00 [00:35:36]Write to MH i2c: E2 08 00 71 29 80 17 00 00 00 00 00 00 1A [00:35:36]Write i2c OK [00:35:36]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 FD 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 FD 00 71 29 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [00:35:36]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:36]wFMCommunicate OK [00:35:36]wFMCommunicate request_size=4 [00:35:36]MH_SAM_APDU [00:35:36]CAPDU: 80 17 00 00 [00:35:36]Write to MH i2c: E2 08 00 72 29 80 17 00 00 00 00 00 00 1B [00:35:36]Write i2c OK [00:35:36]MH_I2C_Read... [00:35:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:35:37]Read from MH i2c: E2 [00:35:37]MH_I2C_Read... [00:35:37]Read from MH i2c: E2 E2 00 [00:35:37]MH_I2C_Read... [00:35:37]Read from MH i2c: E2 E2 00 72 29 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [00:35:37]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:37]wFMCommunicate OK [00:35:37]SAM_PROTO_GetFMData done [00:35:37]requested_item fm.sale_refund.total is exist - process it [00:35:37]requested_item fm.buy.total is exist - process it [00:35:37]requested_item shift.sale.total is exist - process it [00:35:37]SAM_PROTO_GetShiftData [00:35:37]wFMCommunicate request_size=4 [00:35:37]MH_SAM_APDU [00:35:37]CAPDU: 80 13 02 00 [00:35:37]Write to MH i2c: E2 08 00 73 29 80 13 02 00 00 00 00 00 1A [00:35:37]Write i2c OK [00:35:37]MH_I2C_Read... [00:35:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:37]Read from MH i2c: E2 [00:35:37]MH_I2C_Read... [00:35:37]Read from MH i2c: E2 FD 00 [00:35:37]MH_I2C_Read... [00:35:37]Read from MH i2c: E2 FD 00 73 29 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 8D [00:35:37]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:37]wFMCommunicate OK [00:35:37]wFMCommunicate request_size=4 [00:35:37]MH_SAM_APDU [00:35:37]CAPDU: 80 17 00 00 [00:35:37]Write to MH i2c: E2 08 00 74 29 80 17 00 00 00 00 00 00 1D [00:35:37]Write i2c OK [00:35:37]MH_I2C_Read... [00:35:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:38]Read from MH i2c: E2 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 FD 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 FD 00 74 29 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 25 [00:35:38]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:38]wFMCommunicate OK [00:35:38]wFMCommunicate request_size=4 [00:35:38]MH_SAM_APDU [00:35:38]CAPDU: 80 17 00 00 [00:35:38]Write to MH i2c: E2 08 00 75 29 80 17 00 00 00 00 00 00 1E [00:35:38]Write i2c OK [00:35:38]MH_I2C_Read... [00:35:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:38]Read from MH i2c: E2 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 FD 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 FD 00 75 29 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 F0 [00:35:38]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:38]wFMCommunicate OK [00:35:38]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 17 00 00 [00:35:39]Write to MH i2c: E2 08 00 76 29 80 17 00 00 00 00 00 00 1F [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]OFD Sender: No OFD packet to send [00:35:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 FD 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 FD 00 76 29 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 91 [00:35:39]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:39]wFMCommunicate OK [00:35:39]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 17 00 00 [00:35:39]Write to MH i2c: E2 08 00 77 29 80 17 00 00 00 00 00 00 20 [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 BD 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 BD 00 77 29 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 06 [00:35:39]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:39]wFMCommunicate OK [00:35:39]SAM_PROTO_GetShiftData done [00:35:39]requested_item shift.sale.total_cash is exist - process it [00:35:39]requested_item shift.sale_refund.total is exist - process it [00:35:39]requested_item shift.sale_refund.total_cash is exist - process it [00:35:39]requested_item shift.buy.total is exist - process it [00:35:39]requested_item shift.buy.total_cash is exist - process it [00:35:39]produce_requested_data done [00:35:39]produce_requested_data return {"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.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:39]process_action_free get_value [00:35:39]json_value_free [00:35:39]json_value_free done [00:35:39]process_json_proto returns [00:35:39]Send response to host [00:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158479063.88,"fm.sale_refund.total":1793064.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:39]free response buf [00:35:39]execute_script done [00:35:39]execute_script returns [00:35:39]free content buf [00:35:39]Sock 5.Close socket [00:35:39]Sock 5.Thread stoped [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:32]accept exits with 6 [00:47:32]New connection [00:47:32]New thread 3066920292 created [00:47:32]Thread 3066776932 joined [00:47:32]Waiting for new connection... [00:47:32] Sock 6.Parse request [00:47:32]Sock 6.Check first char [00:47:32]Sock 6.First char is OK [00:47:32]request: POST /json_proto HTTP/1.0 [00:47:32]Method: POST [00:47:32]URL: /json_proto [00:47:32]Method is POST - this is cgi request [00:47:32]url: /json_proto [00:47:32]query_string will be loaded in cgi processing [00:47:32]execute_cgi json_proto POST (null) [00:47:32]execute_cgi path=json_proto method=POST [00:47:32]POST find Content-Length [00:47:32]Host: 172.17.53.195:8080 [00:47:32]Content-Length: 682 [00:47:32]Content-Type: application/json [00:47:32] [00:47:32]POST finish read [00:47:32]Found Content-Length = 682 [00:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 28.250, "sum" : 1889.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1889.00, "payments": [ { "type": 0, "sum" : 1889.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:32]execute_script... [00:47: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)220456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 28.250, "sum" : 1889.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1889.00, "payments": [ { "type": 0, "sum" : 1889.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:32]POST & json_proto [00:47:32]process_json_proto [00:47:32]json parsed OK: [00:47:32]protocol is kg_v1.0 [00:47:32]action value=close_receipt [00:47:32]process_action close_receipt [00:47:32]cmd_close_receipt [00:47:32]MH_GetDate [00:47:32]Write to MH i2c: F0 00 00 78 29 90 [00:47:32]Write i2c OK [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: F0 [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: F0 09 00 [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: F0 09 00 78 29 00 B3 A4 15 67 21 48 4A 65 84 [00:47:32]GetLastDocTimeStamp 1729470944 [00:47:32]current date 1729471667 [00:47:32]FM_GetShiftState [00:47:32]SAM_PROTO_GetShiftState [00:47:32]wFMCommunicate request_size=4 [00:47:32]MH_SAM_APDU [00:47:32]CAPDU: 80 13 01 00 [00:47:32]Write to MH i2c: E2 08 00 79 29 80 13 01 00 00 00 00 00 1F [00:47:32]Write i2c OK [00:47:32]MH_I2C_Read... [00:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:32]Read from MH i2c: E2 [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: E2 0E 00 [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: E2 0E 00 79 29 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 28 [00:47:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:47:32]wFMCommunicate OK [00:47:32]SAM_PROTO_GetShiftState done [00:47:32]FM_GetShiftState done [00:47:32]opened in 1729470944 [00:47:32]opened+sec_in_day 1729557344 [00:47:32]quantity*price = 188992 [00:47:32]sum+1 = 188994 [00:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 1889.00 Внесено: 2000.00 СДАЧА: 111.00 НСП 1% : 16.72 НДС 12% : 200.70 Наличными: 1889.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 1 21.10.2024 00:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165890 ФПД: 139135452954366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004748&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165890&fm=139135452954366&tin=02508201610067®Number=0000000000091764&sum=188900 [00:47:33]StoreToDocumentArchive [00:47:33]shift 535 fd 165890 [00:47:33]save to /storage/0535/doc_00165890 [00:47:33]save last doc name /storage/0535/doc_00165890 to /storage/kkm_last_doc_name [00:47:33]save OK [00:47:33]Clear old archive folders... [00:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:47:33]tlvbuf is 01A92090 [00:47:33]SAM_PROTO_ClearQueue [00:47:33]wFMCommunicate request_size=4 [00:47:33]MH_SAM_APDU [00:47:33]CAPDU: 80 09 00 00 [00:47:33]Write to MH i2c: E2 08 00 86 29 80 09 00 00 00 00 00 00 21 [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:47:33]Read from MH i2c: E2 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 03 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [00:47:33]RAPDU: 90 00 [00:47:33]wFMCommunicate OK [00:47:33]SAM_PROTO_ClearQueue done [00:47:33]KKMCreateOFDPacket [00:47:33]OFDProtocolAddRootSTLVToBuf [00:47:33]FM_MakeSignedData [00:47:33]FM_MakeSignedData [00:47:33]SAM_PROTO_SignData [00:47:33]wFMCommunicate request_size=4 [00:47:33]MH_SAM_APDU [00:47:33]CAPDU: 80 0D 01 02 [00:47:33]Write to MH i2c: E2 08 00 87 29 80 0D 01 02 00 00 00 00 29 [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:47:33]Read from MH i2c: E2 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 03 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [00:47:33]RAPDU: 90 00 [00:47:33]wFMCommunicate OK [00:47:33]wFMCommunicate request_size=255 [00:47:33]MH_SAM_APDU [00:47: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 5A 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 41 E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 E1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 4E 00 00 00 00 07 04 06 00 E4 E1 02 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 B4 A4 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 88 02 00 35 04 06 00 7E [00:47:33]Write to MH i2c: E2 02 01 88 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 5A 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 41 E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 E1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 4E 00 00 00 00 07 04 06 00 E4 E1 02 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 B4 A4 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 88 02 00 35 04 06 00 7E 00 00 2B [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [00:47:34]RAPDU: 90 00 [00:47:34]wFMCommunicate OK [00:47:34]wFMCommunicate request_size=10 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 0D 02 02 05 8A FF 3F BE FE [00:47:34]Write to MH i2c: E2 0D 00 89 29 80 0D 02 02 05 00 8A FF 3F BE FE 00 00 BA [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 89 29 00 90 00 26 [00:47:34]RAPDU: 90 00 [00:47:34]wFMCommunicate OK [00:47:34]wFMCommunicate request_size=4 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 0D 03 02 [00:47:34]Write to MH i2c: E2 08 00 8A 29 80 0D 03 02 00 00 00 00 2E [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 0B 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 0B 00 8A 29 00 B6 EF 50 98 6E 50 5A 05 90 00 D9 [00:47:34]RAPDU: B6 EF 50 98 6E 50 5A 05 90 00 [00:47:34]wFMCommunicate OK [00:47:34]SAM_PROTO_SignData done [00:47:34]FM_MakeSignedData done [00:47:34]CreateOFDProtocolMessage [00:47:34]wFMCommunicate request_size=4 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 11 00 00 [00:47:34]Write to MH i2c: E2 08 00 8B 29 80 11 00 00 00 00 00 00 2E [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 17 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 17 00 8B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [00:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:47:34]wFMCommunicate OK [00:47:34]CreateOFDProtocolMessage done [00:47:34]OFDSenderStorePacket 165890 [00:47:34]StoreOFDPacket docnum=165890 [00:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 21 07 01 46 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 5A 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 41 E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 E1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 4E 00 00 00 00 07 04 06 00 E4 E1 02 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 B4 A4 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 88 02 00 35 04 06 00 7E 8A FF 3F BE FE B6 EF 50 98 6E 50 5A 05 [00:47:34]CheckFolder [00:47:34]dirname=/storage/ofd_packets [00:47:34]CheckFolder done [00:47:34]ProducePacketName [00:47:34]name=ofd_packets/00165890 [00:47:34]NVStorageSaveData ofd_packets/00165890 [00:47:34]File name is /storage/ofd_packets/00165890 [00:47:34]Write 301 bytes [00:47:34]NVStorageSaveData done [00:47:34]OFDSenderStorePacket done [00:47:34]KKMCreateOFDPacket done [00:47:34]NVStorageSaveData kkm_last_timestamp [00:47:34]File name is /storage/kkm_last_timestamp [00:47:34]Write 4 bytes [00:47:34]NVStorageSaveData done [00:47:34]ExternCall_PrintAddStr [00:47:34]wPrintStart [00:47:34]Write to MH i2c: 01 00 00 8C 29 B5 [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: 01 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: 01 07 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: 01 07 00 8C 29 00 00 00 00 00 FF 0F CA [00:47:34]RasterBufferAndPrint [00:47:34]line Счет N : (1)220456 [00:47:34]line ИНН: 02508201610067 [00:47:34]line Контрольно-Кассовый Чек [00:47:34]line ПРОДАЖА [00:47:34]line ТРК (МРК, ГНК) : 23 [00:47:34]line Товар: 2710124130 [00:47:34]line Аи-92-К-5 [00:47:34]line 28.250 * 66.90 [00:47:34]line = 1889.93 [00:47:34]line НДС 12% НСП 1% [00:47:34]line > о реализуемом товаре [00:47:34]line ОКРУГЛЕНИЕ: -0.93 [00:47:34]line ИТОГО: 1889.00 [00:47:34]line Внесено: 2000.00 [00:47:34]line СДАЧА: 111.00 [00:47:34]line НСП 1% : 16.72 [00:47:34]line НДС 12% : 200.70 [00:47:34]line Наличными: 1889.00 [00:47:34]line Безнал.: 0.00 [00:47:34]line Место: АЗС № 161 "Партнер Нефть" [00:47:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:47:34]line СНО: Общий режим [00:47:34]line Чек 1 21.10.2024 00:47 [00:47:34]line Смена: 535 ФФД: 1.0 [00:47:34]line ЗНМ: 0300000104 [00:47:34]line РНМ: 0000000000091764 [00:47:34]line Версия ККМ: 001 [00:47:34]line ФМ: 0000000000871759 [00:47:34]line ФД: 165890 [00:47:34]line ФПД: 139135452954366 [00:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004748&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165890&fm=139135452954366&tin=02508201610067®Number=0000000000091764&sum=188900 [00:47:34]OFD Sender: Processing packet 165890 [packets to send 48, broken 47] [00:47:34]ProducePacketName [00:47:34]name=ofd_packets/00165890 [00:47:34]OFD Sender: To server: pG, [00:47:34]CommunicateWithHost lk.salyk.kg:30040 [00:47:34]ConnectInit lk.salyk.kg [00:47:34]written 0, free lines is 4095 [00:47:34]Connected sock=7 [00:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 21 07 01 46 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 5A 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 41 E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 E1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 4E 00 00 00 00 07 04 06 00 E4 E1 02 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 B4 A4 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 88 02 00 35 04 06 00 7E 8A FF 3F BE FE B6 EF 50 98 6E 50 5A 05 [00:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 10 BA 47 00 7A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 88 02 00 F4 03 04 00 24 4B 15 67 B6 04 01 00 00 EF D6 C8 50 8E 5F 64 B1 [00:47:35]CommunicateWithHost err = 0 [00:47:35]CheckOFDResponse [00:47:35]1017 (14) - 77093643461234 [00:47:35]1041 (16) - 0000000000871759 [00:47:35]1040 (4) - 165890 [00:47:35]1012 (4) - 20.10.2024 18:25 [00:47:35]1206 (1) - 0 [00:47:35]OFD Sender: Remove packet 165890 [00:47:35]ProducePacketName [00:47:35]name=ofd_packets/00165890 [00:47:35]NVStorageDeleteData [00:47:35]Write to MH i2c: 01 00 00 B7 29 E0 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 07 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 07 00 B7 29 00 00 00 00 00 CA 0C BD [00:47:35]RasterBufferAndPrint [00:47:35]line [00:47:35]line [00:47:35]line [00:47:35]line [00:47:35]line [00:47:35]written 0, free lines is 3280 [00:47:35]MH_Cut [00:47:35]Write to MH i2c: D1 01 00 BE 29 01 B9 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: D1 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: D1 01 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: D1 01 00 BE 29 00 B8 [00:47:35]Write to MH i2c: 01 00 00 BF 29 E8 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]OFD Sender: No OFD packet to send [00:47:36]*** Cut start [00:47:36]*** Partial cut [00:47:36]*** CUTSNS_PIN = 1 [00:47:36]*** CUTSNS_PIN = 0 [00:47:36]*** Brake cut motor [00:47:36]Read from MH i2c: 01 [00:47:36]MH_I2C_Read... [00:47:36]*** Stop cut motor [00:47:36]*** Cut end [00:47:36]Read from MH i2c: 01 07 00 [00:47:36]MH_I2C_Read... [00:47:36]Read from MH i2c: 01 07 00 BF 29 00 00 00 00 00 FF 0F FD [00:47:36]process_action close_receipt done [00:47:36]requested_data is exist [00:47:36]produce_requested_data [00:47:36]requested_item fm.sn is exist - process it [00:47:36]wFMCommunicate request_size=4 [00:47:36]MH_SAM_APDU [00:47:36]CAPDU: 80 11 00 00 [00:47:36]Write to MH i2c: E2 08 00 C0 29 80 11 00 00 00 00 00 00 63 [00:47:36]Write i2c OK [00:47:36]MH_I2C_Read... [00:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:36]Read from MH i2c: E2 [00:47:36]MH_I2C_Read... [00:47:36]Read from MH i2c: E2 17 00 [00:47:36]MH_I2C_Read... [00:47:36]Read from MH i2c: E2 17 00 C0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [00:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:47:36]wFMCommunicate OK [00:47:36]requested_item fd.num is exist - process it [00:47:36]SAM_PROTO_GetFieldsCounters [00:47:36]wFMCommunicate request_size=4 [00:47:36]MH_SAM_APDU [00:47:36]CAPDU: 80 13 00 00 [00:47:36]Write to MH i2c: E2 08 00 C1 29 80 13 00 00 00 00 00 00 66 [00:47:36]Write i2c OK [00:47:36]MH_I2C_Read... [00:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:47:36]Read from MH i2c: E2 [00:47:36]MH_I2C_Read... [00:47:36]Read from MH i2c: E2 62 00 [00:47:36]MH_I2C_Read... [00:47:36]Read from MH i2c: E2 62 00 C1 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [00:47: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:47:36]wFMCommunicate OK [00:47:36]SAM_PROTO_GetFieldsCounters done [00:47:36]requested_item shift.num is exist - process it [00:47:36]requested_item shift.opened is exist - process it [00:47:36]req_shift_opened [00:47:36]FM_GetShiftState [00:47:36]SAM_PROTO_GetShiftState [00:47:36]wFMCommunicate request_size=4 [00:47:36]MH_SAM_APDU [00:47:36]CAPDU: 80 13 01 00 [00:47:36]Write to MH i2c: E2 08 00 C2 29 80 13 01 00 00 00 00 00 68 [00:47:36]Write i2c OK [00:47:36]MH_I2C_Read... [00:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:36]Read from MH i2c: E2 [00:47:36]MH_I2C_Read... [00:47:36]Read from MH i2c: E2 0E 00 [00:47:36]MH_I2C_Read... [00:47:36]Read from MH i2c: E2 0E 00 C2 29 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 71 [00:47:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:47:36]wFMCommunicate OK [00:47:36]SAM_PROTO_GetShiftState done [00:47:36]FM_GetShiftState done [00:47:36]req_shift_opened done [00:47:36]requested_item shift.open_date is exist - process it [00:47:36]req_shift_open_date [00:47:36]req_shift_open_date done [00:47:36]produce_requested_data done [00:47:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165890,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:47:36]process_action_free close_receipt [00:47:36]json_value_free [00:47:36]json_value_free done [00:47:36]process_json_proto returns [00:47:36]Send response to host [00:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165890,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:47:36]free response buf [00:47:36]execute_script done [00:47:36]execute_script returns [00:47:36]free content buf [00:47:36]Sock 6.Close socket [00:47:36]Sock 6.Thread stoped [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:48]accept exits with 5 [00:57:48]New connection [00:57:48]New thread 3066776932 created [00:57:48]Thread 3066920292 joined [00:57:48]Waiting for new connection... [00:57:48] Sock 5.Parse request [00:57:48]Sock 5.Check first char [00:57:48]Sock 5.First char is OK [00:57:48]request: POST /json_proto HTTP/1.0 [00:57:48]Method: POST [00:57:48]URL: /json_proto [00:57:48]Method is POST - this is cgi request [00:57:48]url: /json_proto [00:57:48]query_string will be loaded in cgi processing [00:57:48]execute_cgi json_proto POST (null) [00:57:48]execute_cgi path=json_proto method=POST [00:57:48]POST find Content-Length [00:57:48]Host: 172.17.53.195:8080 [00:57:48]Content-Length: 677 [00:57:48]Content-Type: application/json [00:57:48] [00:57:48]POST finish read [00:57:48]Found Content-Length = 677 [00:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.230, "sum" : 349.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 349.00, "payments": [ { "type": 0, "sum" : 349.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:48]execute_script... [00: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)220457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.230, "sum" : 349.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 349.00, "payments": [ { "type": 0, "sum" : 349.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:48]POST & json_proto [00:57:48]process_json_proto [00:57:48]json parsed OK: [00:57:48]protocol is kg_v1.0 [00:57:48]action value=close_receipt [00:57:48]process_action close_receipt [00:57:48]cmd_close_receipt [00:57:48]MH_GetDate [00:57:48]Write to MH i2c: F0 00 00 C3 29 DB [00:57:48]Write i2c OK [00:57:48]MH_I2C_Read... [00:57:48]Read from MH i2c: F0 [00:57:48]MH_I2C_Read... [00:57:48]Read from MH i2c: F0 09 00 [00:57:48]MH_I2C_Read... [00:57:48]Read from MH i2c: F0 09 00 C3 29 00 1B A7 15 67 21 48 4A 65 3A [00:57:48]GetLastDocTimeStamp 1729471668 [00:57:48]current date 1729472283 [00:57:48]FM_GetShiftState [00:57:48]SAM_PROTO_GetShiftState [00:57:48]wFMCommunicate request_size=4 [00:57:48]MH_SAM_APDU [00:57:48]CAPDU: 80 13 01 00 [00:57:48]Write to MH i2c: E2 08 00 C4 29 80 13 01 00 00 00 00 00 6A [00:57:48]Write i2c OK [00:57:48]MH_I2C_Read... [00:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:48]Read from MH i2c: E2 [00:57:48]MH_I2C_Read... [00:57:48]Read from MH i2c: E2 0E 00 [00:57:48]MH_I2C_Read... [00:57:48]Read from MH i2c: E2 0E 00 C4 29 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 73 [00:57:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:57:48]wFMCommunicate OK [00:57:48]SAM_PROTO_GetShiftState done [00:57:48]FM_GetShiftState done [00:57:48]opened in 1729470944 [00:57:48]opened+sec_in_day 1729557344 [00:57:48]quantity*price = 34988 [00:57:48]sum+1 = 34990 [00:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 349.00 Внесено: 350.00 СДАЧА: 1.00 НСП 1% : 3.10 НДС 12% : 37.16 Наличными: 349.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 2 21.10.2024 00:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165891 ФПД: 110863377343318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005803&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165891&fm=110863377343318&tin=02508201610067®Number=0000000000091764&sum=34900 [00:57:49]StoreToDocumentArchive [00:57:49]shift 535 fd 165891 [00:57:49]save to /storage/0535/doc_00165891 [00:57:49]save last doc name /storage/0535/doc_00165891 to /storage/kkm_last_doc_name [00:57:49]save OK [00:57:49]Clear old archive folders... [00:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:57:49]tlvbuf is 015FC850 [00:57:49]SAM_PROTO_ClearQueue [00:57:49]wFMCommunicate request_size=4 [00:57:49]MH_SAM_APDU [00:57:49]CAPDU: 80 09 00 00 [00:57:49]Write to MH i2c: E2 08 00 D1 29 80 09 00 00 00 00 00 00 6C [00:57:49]Write i2c OK [00:57:49]MH_I2C_Read... [00:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:57:49]Read from MH i2c: E2 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 03 00 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 03 00 D1 29 00 90 00 6E [00:57:49]RAPDU: 90 00 [00:57:49]wFMCommunicate OK [00:57:49]SAM_PROTO_ClearQueue done [00:57:49]KKMCreateOFDPacket [00:57:49]OFDProtocolAddRootSTLVToBuf [00:57:49]FM_MakeSignedData [00:57:49]FM_MakeSignedData [00:57:49]SAM_PROTO_SignData [00:57:49]wFMCommunicate request_size=4 [00:57:49]MH_SAM_APDU [00:57:49]CAPDU: 80 0D 01 02 [00:57:49]Write to MH i2c: E2 08 00 D2 29 80 0D 01 02 00 00 00 00 74 [00:57:49]Write i2c OK [00:57:49]MH_I2C_Read... [00:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:57:49]Read from MH i2c: E2 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 03 00 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 03 00 D2 29 00 90 00 6F [00:57:49]RAPDU: 90 00 [00:57:49]wFMCommunicate OK [00:57:49]wFMCommunicate request_size=255 [00:57:49]MH_SAM_APDU [00: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 6E 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 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 84 0E 00 00 00 00 07 04 06 00 54 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 02 00 00 00 F4 03 04 00 1B A7 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 88 02 00 35 04 06 00 64 [00:57:49]Write to MH i2c: E2 02 01 D3 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 6E 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 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 84 0E 00 00 00 00 07 04 06 00 54 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 02 00 00 00 F4 03 04 00 1B A7 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 88 02 00 35 04 06 00 64 00 00 43 [00:57:49]Write i2c OK [00:57:49]MH_I2C_Read... [00:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:49]Read from MH i2c: E2 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 03 00 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 03 00 D3 29 00 90 00 70 [00:57:49]RAPDU: 90 00 [00:57:49]wFMCommunicate OK [00:57:49]wFMCommunicate request_size=10 [00:57:49]MH_SAM_APDU [00:57:49]CAPDU: 80 0D 02 02 05 D4 64 39 A3 56 [00:57:49]Write to MH i2c: E2 0D 00 D4 29 80 0D 02 02 05 00 D4 64 39 A3 56 00 00 EB [00:57:49]Write i2c OK [00:57:49]MH_I2C_Read... [00:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:49]Read from MH i2c: E2 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 03 00 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 03 00 D4 29 00 90 00 71 [00:57:49]RAPDU: 90 00 [00:57:49]wFMCommunicate OK [00:57:49]wFMCommunicate request_size=4 [00:57:49]MH_SAM_APDU [00:57:49]CAPDU: 80 0D 03 02 [00:57:49]Write to MH i2c: E2 08 00 D5 29 80 0D 03 02 00 00 00 00 79 [00:57:49]Write i2c OK [00:57:49]MH_I2C_Read... [00:57:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:57:49]Read from MH i2c: E2 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 0B 00 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 0B 00 D5 29 00 1A 17 8E 42 24 B4 67 F0 90 00 AA [00:57:49]RAPDU: 1A 17 8E 42 24 B4 67 F0 90 00 [00:57:49]wFMCommunicate OK [00:57:49]SAM_PROTO_SignData done [00:57:49]FM_MakeSignedData done [00:57:49]CreateOFDProtocolMessage [00:57:49]wFMCommunicate request_size=4 [00:57:49]MH_SAM_APDU [00:57:49]CAPDU: 80 11 00 00 [00:57:49]Write to MH i2c: E2 08 00 D6 29 80 11 00 00 00 00 00 00 79 [00:57:49]Write i2c OK [00:57:49]MH_I2C_Read... [00:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:49]Read from MH i2c: E2 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 17 00 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: E2 17 00 D6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [00:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:57:49]wFMCommunicate OK [00:57:49]CreateOFDProtocolMessage done [00:57:49]OFDSenderStorePacket 165891 [00:57:49]StoreOFDPacket docnum=165891 [00:57:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A2 F7 07 01 DE 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 6E 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 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 84 0E 00 00 00 00 07 04 06 00 54 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 02 00 00 00 F4 03 04 00 1B A7 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 88 02 00 35 04 06 00 64 D4 64 39 A3 56 1A 17 8E 42 24 B4 67 F0 [00:57:49]CheckFolder [00:57:49]dirname=/storage/ofd_packets [00:57:49]CheckFolder done [00:57:49]ProducePacketName [00:57:49]name=ofd_packets/00165891 [00:57:49]NVStorageSaveData ofd_packets/00165891 [00:57:49]File name is /storage/ofd_packets/00165891 [00:57:49]Write 301 bytes [00:57:49]NVStorageSaveData done [00:57:49]OFDSenderStorePacket done [00:57:49]KKMCreateOFDPacket done [00:57:49]NVStorageSaveData kkm_last_timestamp [00:57:49]File name is /storage/kkm_last_timestamp [00:57:49]Write 4 bytes [00:57:49]NVStorageSaveData done [00:57:49]ExternCall_PrintAddStr [00:57:49]wPrintStart [00:57:49]Write to MH i2c: 01 00 00 D7 29 00 [00:57:49]Write i2c OK [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: 01 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: 01 07 00 [00:57:49]MH_I2C_Read... [00:57:49]Read from MH i2c: 01 07 00 D7 29 00 00 00 00 00 FF 0F 15 [00:57:49]RasterBufferAndPrint [00:57:49]line Счет N : (1)220457 [00:57:49]line ИНН: 02508201610067 [00:57:49]line Контрольно-Кассовый Чек [00:57:49]line ПРОДАЖА [00:57:49]line ТРК (МРК, ГНК) : 13 [00:57:49]line Товар: 2710124130 [00:57:49]line Аи-92-К-5 [00:57:49]line 5.230 * 66.90 [00:57:49]line = 349.89 [00:57:49]line НДС 12% НСП 1% [00:57:49]line > о реализуемом товаре [00:57:49]line ОКРУГЛЕНИЕ: -0.89 [00:57:49]line ИТОГО: 349.00 [00:57:49]line Внесено: 350.00 [00:57:49]line СДАЧА: 1.00 [00:57:49]line НСП 1% : 3.10 [00:57:49]line НДС 12% : 37.16 [00:57:49]line Наличными: 349.00 [00:57:49]line Безнал.: 0.00 [00:57:49]line Место: АЗС № 161 "Партнер Нефть" [00:57:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:57:49]line СНО: Общий режим [00:57:49]line Чек 2 21.10.2024 00:58 [00:57:49]line Смена: 535 ФФД: 1.0 [00:57:49]line ЗНМ: 0300000104 [00:57:49]line РНМ: 0000000000091764 [00:57:49]line Версия ККМ: 001 [00:57:49]line ФМ: 0000000000871759 [00:57:49]line ФД: 165891 [00:57:49]line ФПД: 110863377343318 [00:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005803&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165891&fm=110863377343318&tin=02508201610067®Number=0000000000091764&sum=34900 [00:57:50]OFD Sender: Processing packet 165891 [packets to send 48, broken 47] [00:57:50]ProducePacketName [00:57:50]name=ofd_packets/00165891 [00:57:50]OFD Sender: To server: pG, [00:57:50]CommunicateWithHost lk.salyk.kg:30040 [00:57:50]ConnectInit lk.salyk.kg [00:57:50]written 0, free lines is 4095 [00:57:50]Connected sock=9 [00: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 31 37 35 39 0F 01 00 00 A2 F7 07 01 DE 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 6E 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 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 84 0E 00 00 00 00 07 04 06 00 54 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 02 00 00 00 F4 03 04 00 1B A7 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 88 02 00 35 04 06 00 64 D4 64 39 A3 56 1A 17 8E 42 24 B4 67 F0 [00:57:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 28 3F 47 00 40 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 31 37 35 39 10 04 04 00 03 88 02 00 F4 03 04 00 8B 4D 15 67 B6 04 01 00 00 CB 87 C8 B3 94 1D 3D BB [00:57:50]CommunicateWithHost err = 0 [00:57:50]CheckOFDResponse [00:57:50]1017 (14) - 77093643461234 [00:57:50]1041 (16) - 0000000000871759 [00:57:50]1040 (4) - 165891 [00:57:50]1012 (4) - 20.10.2024 18:35 [00:57:50]1206 (1) - 0 [00:57:50]OFD Sender: Remove packet 165891 [00:57:50]ProducePacketName [00:57:50]name=ofd_packets/00165891 [00:57:50]NVStorageDeleteData [00:57:50]Write to MH i2c: 01 00 00 02 2A 2C [00:57:50]Write i2c OK [00:57:50]MH_I2C_Read... [00:57:50]Read from MH i2c: 01 [00:57:50]MH_I2C_Read... [00:57:50]Read from MH i2c: 01 07 00 [00:57:50]MH_I2C_Read... [00:57:50]Read from MH i2c: 01 07 00 02 2A 00 00 00 00 00 B7 0C F6 [00:57:50]RasterBufferAndPrint [00:57:50]line [00:57:50]line [00:57:50]line [00:57:50]line [00:57:50]line [00:57:50]written 0, free lines is 3263 [00:57:50]MH_Cut [00:57:50]Write to MH i2c: D1 01 00 09 2A 01 05 [00:57:50]Write i2c OK [00:57:50]MH_I2C_Read... [00:57:50]Read from MH i2c: D1 [00:57:50]MH_I2C_Read... [00:57:50]Read from MH i2c: D1 01 00 [00:57:50]MH_I2C_Read... [00:57:50]Read from MH i2c: D1 01 00 09 2A 00 04 [00:57:50]Write to MH i2c: 01 00 00 0A 2A 34 [00:57:50]Write i2c OK [00:57:50]MH_I2C_Read... [00:57:51]OFD Sender: No OFD packet to send [00:57:51]*** Cut start [00:57:51]*** Partial cut [00:57:51]*** CUTSNS_PIN = 1 [00:57:51]*** CUTSNS_PIN = 0 [00:57:51]*** Brake cut motor [00:57:52]Read from MH i2c: 01 [00:57:52]MH_I2C_Read... [00:57:52]*** Stop cut motor [00:57:52]*** Cut end [00:57:52]Read from MH i2c: 01 07 00 [00:57:52]MH_I2C_Read... [00:57:52]Read from MH i2c: 01 07 00 0A 2A 00 00 00 00 00 FF 0F 49 [00:57:52]process_action close_receipt done [00:57:52]requested_data is exist [00:57:52]produce_requested_data [00:57:52]requested_item fm.sn is exist - process it [00:57:52]wFMCommunicate request_size=4 [00:57:52]MH_SAM_APDU [00:57:52]CAPDU: 80 11 00 00 [00:57:52]Write to MH i2c: E2 08 00 0B 2A 80 11 00 00 00 00 00 00 AF [00:57:52]Write i2c OK [00:57:52]MH_I2C_Read... [00:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:52]Read from MH i2c: E2 [00:57:52]MH_I2C_Read... [00:57:52]Read from MH i2c: E2 17 00 [00:57:52]MH_I2C_Read... [00:57:52]Read from MH i2c: E2 17 00 0B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [00:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:57:52]wFMCommunicate OK [00:57:52]requested_item fd.num is exist - process it [00:57:52]SAM_PROTO_GetFieldsCounters [00:57:52]wFMCommunicate request_size=4 [00:57:52]MH_SAM_APDU [00:57:52]CAPDU: 80 13 00 00 [00:57:52]Write to MH i2c: E2 08 00 0C 2A 80 13 00 00 00 00 00 00 B2 [00:57:52]Write i2c OK [00:57:52]MH_I2C_Read... [00:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:57:52]Read from MH i2c: E2 [00:57:52]MH_I2C_Read... [00:57:52]Read from MH i2c: E2 62 00 [00:57:52]MH_I2C_Read... [00:57:52]Read from MH i2c: E2 62 00 0C 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [00: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:57:52]wFMCommunicate OK [00:57:52]SAM_PROTO_GetFieldsCounters done [00:57:52]requested_item shift.num is exist - process it [00:57:52]requested_item shift.opened is exist - process it [00:57:52]req_shift_opened [00:57:52]FM_GetShiftState [00:57:52]SAM_PROTO_GetShiftState [00:57:52]wFMCommunicate request_size=4 [00:57:52]MH_SAM_APDU [00:57:52]CAPDU: 80 13 01 00 [00:57:52]Write to MH i2c: E2 08 00 0D 2A 80 13 01 00 00 00 00 00 B4 [00:57:52]Write i2c OK [00:57:52]MH_I2C_Read... [00:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:52]Read from MH i2c: E2 [00:57:52]MH_I2C_Read... [00:57:52]Read from MH i2c: E2 0E 00 [00:57:52]MH_I2C_Read... [00:57:52]Read from MH i2c: E2 0E 00 0D 2A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BD [00:57:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:57:52]wFMCommunicate OK [00:57:52]SAM_PROTO_GetShiftState done [00:57:52]FM_GetShiftState done [00:57:52]req_shift_opened done [00:57:52]requested_item shift.open_date is exist - process it [00:57:52]req_shift_open_date [00:57:52]req_shift_open_date done [00:57:52]produce_requested_data done [00:57:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165891,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:57:52]process_action_free close_receipt [00:57:52]json_value_free [00:57:52]json_value_free done [00:57:52]process_json_proto returns [00:57:52]Send response to host [00:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165891,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:57:52]free response buf [00:57:52]execute_script done [00:57:52]execute_script returns [00:57:52]free content buf [00:57:52]Sock 5.Close socket [00:57:52]Sock 5.Thread stoped [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:57]accept exits with 6 [01:47:57]New connection [01:47:57]New thread 3066920292 created [01:47:57]Thread 3066776932 joined [01:47:57]Waiting for new connection... [01:47:57] Sock 6.Parse request [01:47:57]Sock 6.Check first char [01:47:57]Sock 6.First char is OK [01:47:57]request: POST /json_proto HTTP/1.0 [01:47:57]Method: POST [01:47:57]URL: /json_proto [01:47:57]Method is POST - this is cgi request [01:47:57]url: /json_proto [01:47:57]query_string will be loaded in cgi processing [01:47:57]execute_cgi json_proto POST (null) [01:47:57]execute_cgi path=json_proto method=POST [01:47:57]POST find Content-Length [01:47:57]Host: 172.17.53.195:8080 [01:47:57]Content-Length: 803 [01:47:57]Content-Type: application/json [01:47:57] [01:47:57]POST finish read [01:47:57]Found Content-Length = 803 [01:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:57]execute_script... [01:47: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)220458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:57]POST & json_proto [01:47:57]process_json_proto [01:47:57]json parsed OK: [01:47:57]protocol is kg_v1.0 [01:47:57]action value=close_receipt [01:47:57]process_action close_receipt [01:47:57]cmd_close_receipt [01:47:57]MH_GetDate [01:47:57]Write to MH i2c: F0 00 00 0E 2A 27 [01:47:57]Write i2c OK [01:47:57]MH_I2C_Read... [01:47:57]Read from MH i2c: F0 [01:47:57]MH_I2C_Read... [01:47:57]Read from MH i2c: F0 09 00 [01:47:57]MH_I2C_Read... [01:47:57]Read from MH i2c: F0 09 00 0E 2A 00 DD B2 15 67 21 48 4A 65 53 [01:47:57]GetLastDocTimeStamp 1729472283 [01:47:57]current date 1729475293 [01:47:57]FM_GetShiftState [01:47:57]SAM_PROTO_GetShiftState [01:47:57]wFMCommunicate request_size=4 [01:47:57]MH_SAM_APDU [01:47:57]CAPDU: 80 13 01 00 [01:47:57]Write to MH i2c: E2 08 00 0F 2A 80 13 01 00 00 00 00 00 B6 [01:47:57]Write i2c OK [01:47:57]MH_I2C_Read... [01:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:57]Read from MH i2c: E2 [01:47:57]MH_I2C_Read... [01:47:57]Read from MH i2c: E2 0E 00 [01:47:57]MH_I2C_Read... [01:47:57]Read from MH i2c: E2 0E 00 0F 2A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BF [01:47:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [01:47:57]wFMCommunicate OK [01:47:57]SAM_PROTO_GetShiftState done [01:47:57]FM_GetShiftState done [01:47:57]opened in 1729470944 [01:47:57]opened+sec_in_day 1729557344 [01:47:57]quantity*price = 100021 [01:47:57]sum+1 = 100023 [01:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 3 21.10.2024 01:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871759 ФД: 165892 ФПД: 198448625274657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T014813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165892&fm=198448625274657&tin=02508201610067®Number=0000000000091764&sum=100022 [01:47:58]StoreToDocumentArchive [01:47:58]shift 535 fd 165892 [01:47:58]save to /storage/0535/doc_00165892 [01:47:58]save last doc name /storage/0535/doc_00165892 to /storage/kkm_last_doc_name [01:47:59]save OK [01:47:59]Clear old archive folders... [01:47:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:47:59]tlvbuf is 0162CDC0 [01:47:59]SAM_PROTO_ClearQueue [01:47:59]wFMCommunicate request_size=4 [01:47:59]MH_SAM_APDU [01:47:59]CAPDU: 80 09 00 00 [01:47:59]Write to MH i2c: E2 08 00 1C 2A 80 09 00 00 00 00 00 00 B8 [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:47:59]Read from MH i2c: E2 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 03 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 03 00 1C 2A 00 90 00 BA [01:47:59]RAPDU: 90 00 [01:47:59]wFMCommunicate OK [01:47:59]SAM_PROTO_ClearQueue done [01:47:59]KKMCreateOFDPacket [01:47:59]OFDProtocolAddRootSTLVToBuf [01:47:59]FM_MakeSignedData [01:47:59]FM_MakeSignedData [01:47:59]SAM_PROTO_SignData [01:47:59]wFMCommunicate request_size=4 [01:47:59]MH_SAM_APDU [01:47:59]CAPDU: 80 0D 01 02 [01:47:59]Write to MH i2c: E2 08 00 1D 2A 80 0D 01 02 00 00 00 00 C0 [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:47:59]Read from MH i2c: E2 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 03 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 03 00 1D 2A 00 90 00 BB [01:47:59]RAPDU: 90 00 [01:47:59]wFMCommunicate OK [01:47:59]wFMCommunicate request_size=255 [01:47:59]MH_SAM_APDU [01:47:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DD B2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 88 02 00 35 04 06 00 B4 [01:47:59]Write to MH i2c: E2 02 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DD B2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 88 02 00 35 04 06 00 B4 00 00 08 [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:59]Read from MH i2c: E2 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 03 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 03 00 1E 2A 00 90 00 BC [01:47:59]RAPDU: 90 00 [01:47:59]wFMCommunicate OK [01:47:59]wFMCommunicate request_size=10 [01:47:59]MH_SAM_APDU [01:47:59]CAPDU: 80 0D 02 02 05 7C EB D0 CF 21 [01:47:59]Write to MH i2c: E2 0D 00 1F 2A 80 0D 02 02 05 00 7C EB D0 CF 21 00 00 F4 [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:59]Read from MH i2c: E2 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 03 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 03 00 1F 2A 00 90 00 BD [01:47:59]RAPDU: 90 00 [01:47:59]wFMCommunicate OK [01:47:59]wFMCommunicate request_size=4 [01:47:59]MH_SAM_APDU [01:47:59]CAPDU: 80 0D 03 02 [01:47:59]Write to MH i2c: E2 08 00 20 2A 80 0D 03 02 00 00 00 00 C5 [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:47:59]Read from MH i2c: E2 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 0B 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 0B 00 20 2A 00 1E 0F 97 0A 1A 9F E2 3B 90 00 6A [01:47:59]RAPDU: 1E 0F 97 0A 1A 9F E2 3B 90 00 [01:47:59]wFMCommunicate OK [01:47:59]SAM_PROTO_SignData done [01:47:59]FM_MakeSignedData done [01:47:59]CreateOFDProtocolMessage [01:47:59]wFMCommunicate request_size=4 [01:47:59]MH_SAM_APDU [01:47:59]CAPDU: 80 11 00 00 [01:47:59]Write to MH i2c: E2 08 00 21 2A 80 11 00 00 00 00 00 00 C5 [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:59]Read from MH i2c: E2 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 17 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: E2 17 00 21 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [01:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:47:59]wFMCommunicate OK [01:47:59]CreateOFDProtocolMessage done [01:47:59]OFDSenderStorePacket 165892 [01:47:59]StoreOFDPacket docnum=165892 [01:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 75 E6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DD B2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 88 02 00 35 04 06 00 B4 7C EB D0 CF 21 1E 0F 97 0A 1A 9F E2 3B [01:47:59]CheckFolder [01:47:59]dirname=/storage/ofd_packets [01:47:59]CheckFolder done [01:47:59]ProducePacketName [01:47:59]name=ofd_packets/00165892 [01:47:59]NVStorageSaveData ofd_packets/00165892 [01:47:59]File name is /storage/ofd_packets/00165892 [01:47:59]Write 301 bytes [01:47:59]NVStorageSaveData done [01:47:59]OFDSenderStorePacket done [01:47:59]KKMCreateOFDPacket done [01:47:59]NVStorageSaveData kkm_last_timestamp [01:47:59]File name is /storage/kkm_last_timestamp [01:47:59]Write 4 bytes [01:47:59]NVStorageSaveData done [01:47:59]ExternCall_PrintAddStr [01:47:59]wPrintStart [01:47:59]Write to MH i2c: 01 00 00 22 2A 4C [01:47:59]Write i2c OK [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: 01 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: 01 07 00 [01:47:59]MH_I2C_Read... [01:47:59]Read from MH i2c: 01 07 00 22 2A 00 00 00 00 00 FF 0F 61 [01:47:59]RasterBufferAndPrint [01:47:59]line Счет N : (1)220458 [01:47:59]line ИНН: 02508201610067 [01:47:59]line Контрольно-Кассовый Чек [01:47:59]line ПРОДАЖА [01:47:59]line ТРК (МРК, ГНК) : 24 [01:47:59]line Товар: 2710124500 [01:47:59]line Аи-95-К-5 [01:47:59]line 13.480 * 74.20 [01:47:59]line = 1000.22 [01:47:59]line НДС 12% НСП 1% [01:47:59]line > о реализуемом товаре [01:47:59]line ИТОГО: 1000.22 [01:47:59]line НСП 1% : 8.85 [01:47:59]line НДС 12% : 106.22 [01:47:59]line Наличными: 0.00 [01:47:59]line Безнал.: 1000.22 [01:47:59]line Место: АЗС № 161 "Партнер Нефть" [01:47:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:47:59]line СНО: Общий режим [01:47:59]line Чек 3 21.10.2024 01:48 [01:47:59]line Смена: 535 ФФД: 1.0 [01:47:59]line ЗНМ: 0300000104 [01:47:59]line РНМ: 0000000000091764 [01:47:59]line Версия ККМ: 001 [01:47:59]line Платежная система: O! деньги [01:47:59]line ФМ: 0000000000871759 [01:47:59]line ФД: 165892 [01:47:59]line ФПД: 198448625274657 [01:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T014813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165892&fm=198448625274657&tin=02508201610067®Number=0000000000091764&sum=100022 [01:47:59]written 0, free lines is 4095 [01:47:59]OFD Sender: Processing packet 165892 [packets to send 48, broken 47] [01:47:59]ProducePacketName [01:47:59]name=ofd_packets/00165892 [01:47:59]OFD Sender: To server: pG, [01:47:59]CommunicateWithHost lk.salyk.kg:30040 [01:47:59]ConnectInit lk.salyk.kg [01:47:59]Connected sock=7 [01:47:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 75 E6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DD B2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 88 02 00 35 04 06 00 B4 7C EB D0 CF 21 1E 0F 97 0A 1A 9F E2 3B [01:48:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 02 E5 47 00 74 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 31 37 35 39 10 04 04 00 04 88 02 00 F4 03 04 00 4D 59 15 67 B6 04 01 00 00 6D C6 9E 8F 1D 1D F4 0D [01:48:00]CommunicateWithHost err = 0 [01:48:00]CheckOFDResponse [01:48:00]1017 (14) - 77093643461234 [01:48:00]1041 (16) - 0000000000871759 [01:48:00]1040 (4) - 165892 [01:48:00]1012 (4) - 20.10.2024 19:26 [01:48:00]1206 (1) - 0 [01:48:00]OFD Sender: Remove packet 165892 [01:48:00]ProducePacketName [01:48:00]name=ofd_packets/00165892 [01:48:00]NVStorageDeleteData [01:48:00]Write to MH i2c: 01 00 00 4C 2A 76 [01:48:00]Write i2c OK [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: 01 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: 01 07 00 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: 01 07 00 4C 2A 00 00 00 00 00 C4 0C 4D [01:48:00]RasterBufferAndPrint [01:48:00]line [01:48:00]line [01:48:00]line [01:48:00]line [01:48:00]line [01:48:00]written 0, free lines is 3277 [01:48:00]MH_Cut [01:48:00]Write to MH i2c: D1 01 00 53 2A 01 4F [01:48:00]Write i2c OK [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: D1 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: D1 01 00 [01:48:00]MH_I2C_Read... [01:48:00]Read from MH i2c: D1 01 00 53 2A 00 4E [01:48:00]Write to MH i2c: 01 00 00 54 2A 7E [01:48:00]Write i2c OK [01:48:00]MH_I2C_Read... [01:48:00]OFD Sender: No OFD packet to send [01:48:01]*** Cut start [01:48:01]*** Partial cut [01:48:01]*** CUTSNS_PIN = 1 [01:48:01]*** CUTSNS_PIN = 0 [01:48:01]*** Brake cut motor [01:48:01]Read from MH i2c: 01 [01:48:01]MH_I2C_Read... [01:48:01]*** Stop cut motor [01:48:01]*** Cut end [01:48:01]Read from MH i2c: 01 07 00 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: 01 07 00 54 2A 00 00 00 00 00 FF 0F 93 [01:48:01]process_action close_receipt done [01:48:01]requested_data is exist [01:48:01]produce_requested_data [01:48:01]requested_item fm.sn is exist - process it [01:48:01]wFMCommunicate request_size=4 [01:48:01]MH_SAM_APDU [01:48:01]CAPDU: 80 11 00 00 [01:48:01]Write to MH i2c: E2 08 00 55 2A 80 11 00 00 00 00 00 00 F9 [01:48:01]Write i2c OK [01:48:01]MH_I2C_Read... [01:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:01]Read from MH i2c: E2 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 17 00 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 17 00 55 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [01:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:48:01]wFMCommunicate OK [01:48:01]requested_item fd.num is exist - process it [01:48:01]SAM_PROTO_GetFieldsCounters [01:48:01]wFMCommunicate request_size=4 [01:48:01]MH_SAM_APDU [01:48:01]CAPDU: 80 13 00 00 [01:48:01]Write to MH i2c: E2 08 00 56 2A 80 13 00 00 00 00 00 00 FC [01:48:01]Write i2c OK [01:48:01]MH_I2C_Read... [01:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:48:01]Read from MH i2c: E2 [01:48:01]MH_I2C_Read... [01:48:01]Read from MH i2c: E2 62 00 [01:48:01]MH_I2C_Read... [01:48:02]Read from MH i2c: E2 62 00 56 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [01:48:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:48:02]wFMCommunicate OK [01:48:02]SAM_PROTO_GetFieldsCounters done [01:48:02]requested_item shift.num is exist - process it [01:48:02]requested_item shift.opened is exist - process it [01:48:02]req_shift_opened [01:48:02]FM_GetShiftState [01:48:02]SAM_PROTO_GetShiftState [01:48:02]wFMCommunicate request_size=4 [01:48:02]MH_SAM_APDU [01:48:02]CAPDU: 80 13 01 00 [01:48:02]Write to MH i2c: E2 08 00 57 2A 80 13 01 00 00 00 00 00 FE [01:48:02]Write i2c OK [01:48:02]MH_I2C_Read... [01:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:02]Read from MH i2c: E2 [01:48:02]MH_I2C_Read... [01:48:02]Read from MH i2c: E2 0E 00 [01:48:02]MH_I2C_Read... [01:48:02]Read from MH i2c: E2 0E 00 57 2A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 07 [01:48:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [01:48:02]wFMCommunicate OK [01:48:02]SAM_PROTO_GetShiftState done [01:48:02]FM_GetShiftState done [01:48:02]req_shift_opened done [01:48:02]requested_item shift.open_date is exist - process it [01:48:02]req_shift_open_date [01:48:02]req_shift_open_date done [01:48:02]produce_requested_data done [01:48:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165892,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [01:48:02]process_action_free close_receipt [01:48:02]json_value_free [01:48:02]json_value_free done [01:48:02]process_json_proto returns [01:48:02]Send response to host [01:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165892,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [01:48:02]free response buf [01:48:02]execute_script done [01:48:02]execute_script returns [01:48:02]free content buf [01:48:02]Sock 6.Close socket [01:48:02]Sock 6.Thread stoped [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:23:59]accept exits with 5 [02:23:59]New connection [02:23:59]New thread 3066776932 created [02:23:59]Thread 3066920292 joined [02:23:59]Waiting for new connection... [02:23:59] Sock 5.Parse request [02:23:59]Sock 5.Check first char [02:23:59]Sock 5.First char is OK [02:23:59]request: POST /json_proto HTTP/1.0 [02:23:59]Method: POST [02:23:59]URL: /json_proto [02:23:59]Method is POST - this is cgi request [02:23:59]url: /json_proto [02:23:59]query_string will be loaded in cgi processing [02:23:59]execute_cgi json_proto POST (null) [02:23:59]execute_cgi path=json_proto method=POST [02:23:59]POST find Content-Length [02:23:59]Host: 172.17.53.195:8080 [02:23:59]Content-Length: 682 [02:23:59]Content-Type: application/json [02:23:59] [02:23:59]POST finish read [02:23:59]Found Content-Length = 682 [02:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:59]execute_script... [02:23: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)220459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:59]POST & json_proto [02:23:59]process_json_proto [02:23:59]json parsed OK: [02:23:59]protocol is kg_v1.0 [02:23:59]action value=close_receipt [02:23:59]process_action close_receipt [02:23:59]cmd_close_receipt [02:23:59]MH_GetDate [02:23:59]Write to MH i2c: F0 00 00 58 2A 71 [02:23:59]Write i2c OK [02:23:59]MH_I2C_Read... [02:23:59]Read from MH i2c: F0 [02:23:59]MH_I2C_Read... [02:23:59]Read from MH i2c: F0 09 00 [02:23:59]MH_I2C_Read... [02:23:59]Read from MH i2c: F0 09 00 58 2A 00 4F BB 15 67 21 48 4A 65 18 [02:23:59]GetLastDocTimeStamp 1729475293 [02:23:59]current date 1729477455 [02:23:59]FM_GetShiftState [02:23:59]SAM_PROTO_GetShiftState [02:23:59]wFMCommunicate request_size=4 [02:23:59]MH_SAM_APDU [02:23:59]CAPDU: 80 13 01 00 [02:23:59]Write to MH i2c: E2 08 00 59 2A 80 13 01 00 00 00 00 00 00 [02:23:59]Write i2c OK [02:23:59]MH_I2C_Read... [02:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:59]Read from MH i2c: E2 [02:23:59]MH_I2C_Read... [02:23:59]Read from MH i2c: E2 0E 00 [02:23:59]MH_I2C_Read... [02:23:59]Read from MH i2c: E2 0E 00 59 2A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 09 [02:23:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [02:23:59]wFMCommunicate OK [02:23:59]SAM_PROTO_GetShiftState done [02:23:59]FM_GetShiftState done [02:23:59]opened in 1729470944 [02:23:59]opened+sec_in_day 1729557344 [02:23:59]quantity*price = 100021 [02:23:59]sum+1 = 100023 [02:23:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 4 21.10.2024 02:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165893 ФПД: 87315726905040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T022415&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165893&fm=87315726905040&tin=02508201610067®Number=0000000000091764&sum=100000 [02:24:00]StoreToDocumentArchive [02:24:00]shift 535 fd 165893 [02:24:00]save to /storage/0535/doc_00165893 [02:24:00]save last doc name /storage/0535/doc_00165893 to /storage/kkm_last_doc_name [02:24:00]save OK [02:24:00]Clear old archive folders... [02:24:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:24:00]tlvbuf is 016AB850 [02:24:00]SAM_PROTO_ClearQueue [02:24:00]wFMCommunicate request_size=4 [02:24:00]MH_SAM_APDU [02:24:00]CAPDU: 80 09 00 00 [02:24:00]Write to MH i2c: E2 08 00 66 2A 80 09 00 00 00 00 00 00 02 [02:24:00]Write i2c OK [02:24:00]MH_I2C_Read... [02:24:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:24:00]Read from MH i2c: E2 [02:24:00]MH_I2C_Read... [02:24:00]Read from MH i2c: E2 03 00 [02:24:00]MH_I2C_Read... [02:24:00]Read from MH i2c: E2 03 00 66 2A 00 90 00 04 [02:24:00]RAPDU: 90 00 [02:24:00]wFMCommunicate OK [02:24:00]SAM_PROTO_ClearQueue done [02:24:00]KKMCreateOFDPacket [02:24:00]OFDProtocolAddRootSTLVToBuf [02:24:00]FM_MakeSignedData [02:24:00]FM_MakeSignedData [02:24:00]SAM_PROTO_SignData [02:24:00]wFMCommunicate request_size=4 [02:24:00]MH_SAM_APDU [02:24:00]CAPDU: 80 0D 01 02 [02:24:00]Write to MH i2c: E2 08 00 67 2A 80 0D 01 02 00 00 00 00 0A [02:24:00]Write i2c OK [02:24:00]MH_I2C_Read... [02:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:24:00]Read from MH i2c: E2 [02:24:00]MH_I2C_Read... [02:24:00]Read from MH i2c: E2 03 00 [02:24:00]MH_I2C_Read... [02:24:00]Read from MH i2c: E2 03 00 67 2A 00 90 00 05 [02:24:00]RAPDU: 90 00 [02:24:00]wFMCommunicate OK [02:24:00]wFMCommunicate request_size=255 [02:24:00]MH_SAM_APDU [02:24: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 4F BB 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 88 02 00 35 04 06 00 4F [02:24:00]Write to MH i2c: E2 02 01 68 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 4F BB 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 88 02 00 35 04 06 00 4F 00 00 3E [02:24:00]Write i2c OK [02:24:00]MH_I2C_Read... [02:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:01]Read from MH i2c: E2 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: E2 03 00 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: E2 03 00 68 2A 00 90 00 06 [02:24:01]RAPDU: 90 00 [02:24:01]wFMCommunicate OK [02:24:01]wFMCommunicate request_size=10 [02:24:01]MH_SAM_APDU [02:24:01]CAPDU: 80 0D 02 02 05 69 C6 E2 AE D0 [02:24:01]Write to MH i2c: E2 0D 00 69 2A 80 0D 02 02 05 00 69 C6 E2 AE D0 00 00 A6 [02:24:01]Write i2c OK [02:24:01]MH_I2C_Read... [02:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:01]Read from MH i2c: E2 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: E2 03 00 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: E2 03 00 69 2A 00 90 00 07 [02:24:01]RAPDU: 90 00 [02:24:01]wFMCommunicate OK [02:24:01]wFMCommunicate request_size=4 [02:24:01]MH_SAM_APDU [02:24:01]CAPDU: 80 0D 03 02 [02:24:01]Write to MH i2c: E2 08 00 6A 2A 80 0D 03 02 00 00 00 00 0F [02:24:01]Write i2c OK [02:24:01]MH_I2C_Read... [02:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:24:01]Read from MH i2c: E2 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: E2 0B 00 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: E2 0B 00 6A 2A 00 BD 64 29 36 65 4A 4C E5 90 00 70 [02:24:01]RAPDU: BD 64 29 36 65 4A 4C E5 90 00 [02:24:01]wFMCommunicate OK [02:24:01]SAM_PROTO_SignData done [02:24:01]FM_MakeSignedData done [02:24:01]CreateOFDProtocolMessage [02:24:01]wFMCommunicate request_size=4 [02:24:01]MH_SAM_APDU [02:24:01]CAPDU: 80 11 00 00 [02:24:01]Write to MH i2c: E2 08 00 6B 2A 80 11 00 00 00 00 00 00 0F [02:24:01]Write i2c OK [02:24:01]MH_I2C_Read... [02:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:01]Read from MH i2c: E2 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: E2 17 00 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: E2 17 00 6B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [02:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:24:01]wFMCommunicate OK [02:24:01]CreateOFDProtocolMessage done [02:24:01]OFDSenderStorePacket 165893 [02:24:01]StoreOFDPacket docnum=165893 [02:24:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 83 07 01 FD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 4F BB 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 88 02 00 35 04 06 00 4F 69 C6 E2 AE D0 BD 64 29 36 65 4A 4C E5 [02:24:01]CheckFolder [02:24:01]dirname=/storage/ofd_packets [02:24:01]CheckFolder done [02:24:01]ProducePacketName [02:24:01]name=ofd_packets/00165893 [02:24:01]NVStorageSaveData ofd_packets/00165893 [02:24:01]File name is /storage/ofd_packets/00165893 [02:24:01]Write 301 bytes [02:24:01]NVStorageSaveData done [02:24:01]OFDSenderStorePacket done [02:24:01]KKMCreateOFDPacket done [02:24:01]NVStorageSaveData kkm_last_timestamp [02:24:01]File name is /storage/kkm_last_timestamp [02:24:01]Write 4 bytes [02:24:01]NVStorageSaveData done [02:24:01]ExternCall_PrintAddStr [02:24:01]wPrintStart [02:24:01]Write to MH i2c: 01 00 00 6C 2A 96 [02:24:01]Write i2c OK [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: 01 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: 01 07 00 [02:24:01]MH_I2C_Read... [02:24:01]Read from MH i2c: 01 07 00 6C 2A 00 00 00 00 00 FF 0F AB [02:24:01]RasterBufferAndPrint [02:24:01]line Счет N : (1)220459 [02:24:01]line ИНН: 02508201610067 [02:24:01]line Контрольно-Кассовый Чек [02:24:01]line ПРОДАЖА [02:24:01]line ТРК (МРК, ГНК) : 14 [02:24:01]line Товар: 2710124500 [02:24:01]line Аи-95-К-5 [02:24:01]line 13.480 * 74.20 [02:24:01]line = 1000.22 [02:24:01]line НДС 12% НСП 1% [02:24:01]line > о реализуемом товаре [02:24:01]line ОКРУГЛЕНИЕ: -0.22 [02:24:01]line ИТОГО: 1000.00 [02:24:01]line Внесено: 1000.00 [02:24:01]line СДАЧА: 0.00 [02:24:01]line НСП 1% : 8.85 [02:24:01]line НДС 12% : 106.22 [02:24:01]line Наличными: 1000.00 [02:24:01]line Безнал.: 0.00 [02:24:01]line Место: АЗС № 161 "Партнер Нефть" [02:24:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:24:01]line СНО: Общий режим [02:24:01]line Чек 4 21.10.2024 02:24 [02:24:01]line Смена: 535 ФФД: 1.0 [02:24:01]line ЗНМ: 0300000104 [02:24:01]line РНМ: 0000000000091764 [02:24:01]line Версия ККМ: 001 [02:24:01]line ФМ: 0000000000871759 [02:24:01]line ФД: 165893 [02:24:01]line ФПД: 87315726905040 [02:24:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T022415&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165893&fm=87315726905040&tin=02508201610067®Number=0000000000091764&sum=100000 [02:24:01]OFD Sender: Processing packet 165893 [packets to send 48, broken 47] [02:24:01]ProducePacketName [02:24:01]name=ofd_packets/00165893 [02:24:01]OFD Sender: To server: pG, [02:24:01]CommunicateWithHost lk.salyk.kg:30040 [02:24:01]ConnectInit lk.salyk.kg [02:24:01]written 0, free lines is 4095 [02:24:01]Connected sock=7 [02:24:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 83 07 01 FD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 4F BB 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 88 02 00 35 04 06 00 4F 69 C6 E2 AE D0 BD 64 29 36 65 4A 4C E5 [02:24:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6D 20 47 00 35 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 88 02 00 F4 03 04 00 BF 61 15 67 B6 04 01 00 00 90 68 42 15 F5 16 16 B6 [02:24:01]CommunicateWithHost err = 0 [02:24:01]CheckOFDResponse [02:24:01]1017 (14) - 77093643461234 [02:24:01]1041 (16) - 0000000000871759 [02:24:01]1040 (4) - 165893 [02:24:01]1012 (4) - 20.10.2024 20:02 [02:24:01]1206 (1) - 0 [02:24:01]OFD Sender: Remove packet 165893 [02:24:01]ProducePacketName [02:24:01]name=ofd_packets/00165893 [02:24:01]NVStorageDeleteData [02:24:02]Write to MH i2c: 01 00 00 97 2A C1 [02:24:02]Write i2c OK [02:24:02]MH_I2C_Read... [02:24:02]Read from MH i2c: 01 [02:24:02]MH_I2C_Read... [02:24:02]Read from MH i2c: 01 07 00 [02:24:02]MH_I2C_Read... [02:24:02]Read from MH i2c: 01 07 00 97 2A 00 00 00 00 00 B3 0C 87 [02:24:02]RasterBufferAndPrint [02:24:02]line [02:24:02]line [02:24:02]line [02:24:02]line [02:24:02]line [02:24:02]written 0, free lines is 3258 [02:24:02]MH_Cut [02:24:02]Write to MH i2c: D1 01 00 9E 2A 01 9A [02:24:02]Write i2c OK [02:24:02]MH_I2C_Read... [02:24:02]Read from MH i2c: D1 [02:24:02]MH_I2C_Read... [02:24:02]Read from MH i2c: D1 01 00 [02:24:02]MH_I2C_Read... [02:24:02]Read from MH i2c: D1 01 00 9E 2A 00 99 [02:24:02]Write to MH i2c: 01 00 00 9F 2A C9 [02:24:02]Write i2c OK [02:24:02]MH_I2C_Read... [02:24:02]OFD Sender: No OFD packet to send [02:24:02]*** Cut start [02:24:02]*** Partial cut [02:24:02]*** CUTSNS_PIN = 1 [02:24:02]*** CUTSNS_PIN = 0 [02:24:03]*** Brake cut motor [02:24:03]Read from MH i2c: 01 [02:24:03]MH_I2C_Read... [02:24:03]*** Stop cut motor [02:24:03]*** Cut end [02:24:03]Read from MH i2c: 01 07 00 [02:24:03]MH_I2C_Read... [02:24:03]Read from MH i2c: 01 07 00 9F 2A 00 00 00 00 00 FF 0F DE [02:24:03]process_action close_receipt done [02:24:03]requested_data is exist [02:24:03]produce_requested_data [02:24:03]requested_item fm.sn is exist - process it [02:24:03]wFMCommunicate request_size=4 [02:24:03]MH_SAM_APDU [02:24:03]CAPDU: 80 11 00 00 [02:24:03]Write to MH i2c: E2 08 00 A0 2A 80 11 00 00 00 00 00 00 44 [02:24:03]Write i2c OK [02:24:03]MH_I2C_Read... [02:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:03]Read from MH i2c: E2 [02:24:03]MH_I2C_Read... [02:24:03]Read from MH i2c: E2 17 00 [02:24:03]MH_I2C_Read... [02:24:03]Read from MH i2c: E2 17 00 A0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [02:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:24:03]wFMCommunicate OK [02:24:03]requested_item fd.num is exist - process it [02:24:03]SAM_PROTO_GetFieldsCounters [02:24:03]wFMCommunicate request_size=4 [02:24:03]MH_SAM_APDU [02:24:03]CAPDU: 80 13 00 00 [02:24:03]Write to MH i2c: E2 08 00 A1 2A 80 13 00 00 00 00 00 00 47 [02:24:03]Write i2c OK [02:24:03]MH_I2C_Read... [02:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:24:03]Read from MH i2c: E2 [02:24:03]MH_I2C_Read... [02:24:03]Read from MH i2c: E2 62 00 [02:24:03]MH_I2C_Read... [02:24:03]Read from MH i2c: E2 62 00 A1 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [02:24: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:24:03]wFMCommunicate OK [02:24:03]SAM_PROTO_GetFieldsCounters done [02:24:03]requested_item shift.num is exist - process it [02:24:03]requested_item shift.opened is exist - process it [02:24:03]req_shift_opened [02:24:03]FM_GetShiftState [02:24:03]SAM_PROTO_GetShiftState [02:24:03]wFMCommunicate request_size=4 [02:24:03]MH_SAM_APDU [02:24:03]CAPDU: 80 13 01 00 [02:24:03]Write to MH i2c: E2 08 00 A2 2A 80 13 01 00 00 00 00 00 49 [02:24:03]Write i2c OK [02:24:03]MH_I2C_Read... [02:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:03]Read from MH i2c: E2 [02:24:03]MH_I2C_Read... [02:24:03]Read from MH i2c: E2 0E 00 [02:24:03]MH_I2C_Read... [02:24:03]Read from MH i2c: E2 0E 00 A2 2A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 52 [02:24:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [02:24:03]wFMCommunicate OK [02:24:03]SAM_PROTO_GetShiftState done [02:24:03]FM_GetShiftState done [02:24:03]req_shift_opened done [02:24:03]requested_item shift.open_date is exist - process it [02:24:03]req_shift_open_date [02:24:03]req_shift_open_date done [02:24:03]produce_requested_data done [02:24:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165893,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [02:24:03]process_action_free close_receipt [02:24:03]json_value_free [02:24:03]json_value_free done [02:24:03]process_json_proto returns [02:24:03]Send response to host [02:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165893,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [02:24:03]free response buf [02:24:03]execute_script done [02:24:03]execute_script returns [02:24:03]free content buf [02:24:03]Sock 5.Close socket [02:24:03]Sock 5.Thread stoped [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:40]accept exits with 6 [02:54:40]New connection [02:54:40]New thread 3066920292 created [02:54:40]Thread 3066776932 joined [02:54:40]Waiting for new connection... [02:54:40] Sock 6.Parse request [02:54:40]Sock 6.Check first char [02:54:40]Sock 6.First char is OK [02:54:40]request: POST /json_proto HTTP/1.0 [02:54:40]Method: POST [02:54:40]URL: /json_proto [02:54:40]Method is POST - this is cgi request [02:54:40]url: /json_proto [02:54:40]query_string will be loaded in cgi processing [02:54:40]execute_cgi json_proto POST (null) [02:54:40]execute_cgi path=json_proto method=POST [02:54:40]POST find Content-Length [02:54:40]Host: 172.17.53.195:8080 [02:54:40]Content-Length: 677 [02:54:40]Content-Type: application/json [02:54:40] [02:54:40]POST finish read [02:54:40]Found Content-Length = 677 [02:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:40]execute_script... [02:54: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)220462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:40]POST & json_proto [02:54:40]process_json_proto [02:54:40]json parsed OK: [02:54:40]protocol is kg_v1.0 [02:54:40]action value=close_receipt [02:54:40]process_action close_receipt [02:54:40]cmd_close_receipt [02:54:40]MH_GetDate [02:54:40]Write to MH i2c: F0 00 00 A3 2A BC [02:54:40]Write i2c OK [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: F0 [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: F0 09 00 [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: F0 09 00 A3 2A 00 80 C2 15 67 21 48 4A 65 9B [02:54:40]GetLastDocTimeStamp 1729477455 [02:54:40]current date 1729479296 [02:54:40]FM_GetShiftState [02:54:40]SAM_PROTO_GetShiftState [02:54:40]wFMCommunicate request_size=4 [02:54:40]MH_SAM_APDU [02:54:40]CAPDU: 80 13 01 00 [02:54:40]Write to MH i2c: E2 08 00 A4 2A 80 13 01 00 00 00 00 00 4B [02:54:40]Write i2c OK [02:54:40]MH_I2C_Read... [02:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:40]Read from MH i2c: E2 [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: E2 0E 00 [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: E2 0E 00 A4 2A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 54 [02:54:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [02:54:40]wFMCommunicate OK [02:54:40]SAM_PROTO_GetShiftState done [02:54:40]FM_GetShiftState done [02:54:40]opened in 1729470944 [02:54:40]opened+sec_in_day 1729557344 [02:54:40]quantity*price = 20003 [02:54:40]sum+1 = 20004 [02:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 5 21.10.2024 02:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165894 ФПД: 249374671288911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025456&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165894&fm=249374671288911&tin=02508201610067®Number=0000000000091764&sum=20000 [02:54:41]StoreToDocumentArchive [02:54:41]shift 535 fd 165894 [02:54:41]save to /storage/0535/doc_00165894 [02:54:41]save last doc name /storage/0535/doc_00165894 to /storage/kkm_last_doc_name [02:54:41]save OK [02:54:41]Clear old archive folders... [02:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:54:41]tlvbuf is 01A729D0 [02:54:41]SAM_PROTO_ClearQueue [02:54:41]wFMCommunicate request_size=4 [02:54:41]MH_SAM_APDU [02:54:41]CAPDU: 80 09 00 00 [02:54:41]Write to MH i2c: E2 08 00 B1 2A 80 09 00 00 00 00 00 00 4D [02:54:41]Write i2c OK [02:54:41]MH_I2C_Read... [02:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:41]Read from MH i2c: E2 [02:54:41]MH_I2C_Read... [02:54:41]Read from MH i2c: E2 03 00 [02:54:41]MH_I2C_Read... [02:54:41]Read from MH i2c: E2 03 00 B1 2A 00 90 00 4F [02:54:41]RAPDU: 90 00 [02:54:41]wFMCommunicate OK [02:54:41]SAM_PROTO_ClearQueue done [02:54:41]KKMCreateOFDPacket [02:54:41]OFDProtocolAddRootSTLVToBuf [02:54:41]FM_MakeSignedData [02:54:41]FM_MakeSignedData [02:54:41]SAM_PROTO_SignData [02:54:41]wFMCommunicate request_size=4 [02:54:41]MH_SAM_APDU [02:54:41]CAPDU: 80 0D 01 02 [02:54:41]Write to MH i2c: E2 08 00 B2 2A 80 0D 01 02 00 00 00 00 55 [02:54:41]Write i2c OK [02:54:41]MH_I2C_Read... [02:54:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:41]Read from MH i2c: E2 [02:54:41]MH_I2C_Read... [02:54:41]Read from MH i2c: E2 03 00 [02:54:41]MH_I2C_Read... [02:54:41]Read from MH i2c: E2 03 00 B2 2A 00 90 00 50 [02:54:41]RAPDU: 90 00 [02:54:41]wFMCommunicate OK [02:54:41]wFMCommunicate request_size=255 [02:54:41]MH_SAM_APDU [02:54: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 80 C2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 88 02 00 35 04 06 00 E2 [02:54:41]Write to MH i2c: E2 02 01 B3 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 80 C2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 88 02 00 35 04 06 00 E2 00 00 FB [02:54:41]Write i2c OK [02:54:41]MH_I2C_Read... [02:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:42]Read from MH i2c: E2 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: E2 03 00 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: E2 03 00 B3 2A 00 90 00 51 [02:54:42]RAPDU: 90 00 [02:54:42]wFMCommunicate OK [02:54:42]wFMCommunicate request_size=10 [02:54:42]MH_SAM_APDU [02:54:42]CAPDU: 80 0D 02 02 05 CE 10 B2 BA 4F [02:54:42]Write to MH i2c: E2 0D 00 B4 2A 80 0D 02 02 05 00 CE 10 B2 BA 4F 00 00 FB [02:54:42]Write i2c OK [02:54:42]MH_I2C_Read... [02:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:42]Read from MH i2c: E2 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: E2 03 00 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: E2 03 00 B4 2A 00 90 00 52 [02:54:42]RAPDU: 90 00 [02:54:42]wFMCommunicate OK [02:54:42]wFMCommunicate request_size=4 [02:54:42]MH_SAM_APDU [02:54:42]CAPDU: 80 0D 03 02 [02:54:42]Write to MH i2c: E2 08 00 B5 2A 80 0D 03 02 00 00 00 00 5A [02:54:42]Write i2c OK [02:54:42]MH_I2C_Read... [02:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:42]Read from MH i2c: E2 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: E2 0B 00 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: E2 0B 00 B5 2A 00 8B 7D 65 D7 C4 44 C1 7C 90 00 E4 [02:54:42]RAPDU: 8B 7D 65 D7 C4 44 C1 7C 90 00 [02:54:42]wFMCommunicate OK [02:54:42]SAM_PROTO_SignData done [02:54:42]FM_MakeSignedData done [02:54:42]CreateOFDProtocolMessage [02:54:42]wFMCommunicate request_size=4 [02:54:42]MH_SAM_APDU [02:54:42]CAPDU: 80 11 00 00 [02:54:42]Write to MH i2c: E2 08 00 B6 2A 80 11 00 00 00 00 00 00 5A [02:54:42]Write i2c OK [02:54:42]MH_I2C_Read... [02:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:42]Read from MH i2c: E2 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: E2 17 00 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: E2 17 00 B6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [02:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:54:42]wFMCommunicate OK [02:54:42]CreateOFDProtocolMessage done [02:54:42]OFDSenderStorePacket 165894 [02:54:42]StoreOFDPacket docnum=165894 [02:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 75 86 07 01 EA 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 80 C2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 88 02 00 35 04 06 00 E2 CE 10 B2 BA 4F 8B 7D 65 D7 C4 44 C1 7C [02:54:42]CheckFolder [02:54:42]dirname=/storage/ofd_packets [02:54:42]CheckFolder done [02:54:42]ProducePacketName [02:54:42]name=ofd_packets/00165894 [02:54:42]NVStorageSaveData ofd_packets/00165894 [02:54:42]File name is /storage/ofd_packets/00165894 [02:54:42]Write 301 bytes [02:54:42]NVStorageSaveData done [02:54:42]OFDSenderStorePacket done [02:54:42]KKMCreateOFDPacket done [02:54:42]NVStorageSaveData kkm_last_timestamp [02:54:42]File name is /storage/kkm_last_timestamp [02:54:42]Write 4 bytes [02:54:42]NVStorageSaveData done [02:54:42]ExternCall_PrintAddStr [02:54:42]wPrintStart [02:54:42]Write to MH i2c: 01 00 00 B7 2A E1 [02:54:42]Write i2c OK [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: 01 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: 01 07 00 [02:54:42]MH_I2C_Read... [02:54:42]Read from MH i2c: 01 07 00 B7 2A 00 00 00 00 00 FF 0F F6 [02:54:42]RasterBufferAndPrint [02:54:42]line Счет N : (1)220462 [02:54:42]line ИНН: 02508201610067 [02:54:42]line Контрольно-Кассовый Чек [02:54:42]line ПРОДАЖА [02:54:42]line ТРК (МРК, ГНК) : 23 [02:54:42]line Товар: 2710124130 [02:54:42]line Аи-92-К-5 [02:54:42]line 2.990 * 66.90 [02:54:42]line = 200.03 [02:54:42]line НДС 12% НСП 1% [02:54:42]line > о реализуемом товаре [02:54:42]line ОКРУГЛЕНИЕ: -0.03 [02:54:42]line ИТОГО: 200.00 [02:54:42]line Внесено: 200.00 [02:54:42]line СДАЧА: 0.00 [02:54:42]line НСП 1% : 1.77 [02:54:42]line НДС 12% : 21.24 [02:54:42]line Наличными: 200.00 [02:54:42]line Безнал.: 0.00 [02:54:42]line Место: АЗС № 161 "Партнер Нефть" [02:54:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:54:42]line СНО: Общий режим [02:54:42]line Чек 5 21.10.2024 02:54 [02:54:42]line Смена: 535 ФФД: 1.0 [02:54:42]line ЗНМ: 0300000104 [02:54:42]line РНМ: 0000000000091764 [02:54:42]line Версия ККМ: 001 [02:54:42]line ФМ: 0000000000871759 [02:54:42]line ФД: 165894 [02:54:42]line ФПД: 249374671288911 [02:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025456&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165894&fm=249374671288911&tin=02508201610067®Number=0000000000091764&sum=20000 [02:54:42]OFD Sender: Processing packet 165894 [packets to send 48, broken 47] [02:54:42]ProducePacketName [02:54:42]name=ofd_packets/00165894 [02:54:42]OFD Sender: To server: pG, [02:54:42]CommunicateWithHost lk.salyk.kg:30040 [02:54:42]ConnectInit lk.salyk.kg [02:54:42]written 0, free lines is 4095 [02:54:42]Connected sock=7 [02:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 75 86 07 01 EA 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 80 C2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 88 02 00 35 04 06 00 E2 CE 10 B2 BA 4F 8B 7D 65 D7 C4 44 C1 7C [02:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 36 47 00 81 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 31 37 35 39 10 04 04 00 06 88 02 00 F4 03 04 00 F0 68 15 67 B6 04 01 00 00 70 A6 C2 BF A4 C1 F2 7A [02:54:43]CommunicateWithHost err = 0 [02:54:43]CheckOFDResponse [02:54:43]1017 (14) - 77093643461234 [02:54:43]1041 (16) - 0000000000871759 [02:54:43]1040 (4) - 165894 [02:54:43]1012 (4) - 20.10.2024 20:32 [02:54:43]1206 (1) - 0 [02:54:43]OFD Sender: Remove packet 165894 [02:54:43]ProducePacketName [02:54:43]name=ofd_packets/00165894 [02:54:43]NVStorageDeleteData [02:54:43]Write to MH i2c: 01 00 00 E2 2A 0C [02:54:43]Write i2c OK [02:54:43]MH_I2C_Read... [02:54:43]Read from MH i2c: 01 [02:54:43]MH_I2C_Read... [02:54:43]Read from MH i2c: 01 07 00 [02:54:43]MH_I2C_Read... [02:54:43]Read from MH i2c: 01 07 00 E2 2A 00 00 00 00 00 B3 0C D2 [02:54:43]RasterBufferAndPrint [02:54:43]line [02:54:43]line [02:54:43]line [02:54:43]line [02:54:43]line [02:54:43]written 0, free lines is 3258 [02:54:43]MH_Cut [02:54:43]Write to MH i2c: D1 01 00 E9 2A 01 E5 [02:54:43]Write i2c OK [02:54:43]MH_I2C_Read... [02:54:43]Read from MH i2c: D1 [02:54:43]MH_I2C_Read... [02:54:43]Read from MH i2c: D1 01 00 [02:54:43]MH_I2C_Read... [02:54:43]Read from MH i2c: D1 01 00 E9 2A 00 E4 [02:54:43]Write to MH i2c: 01 00 00 EA 2A 14 [02:54:43]Write i2c OK [02:54:43]MH_I2C_Read... [02:54:43]OFD Sender: No OFD packet to send [02:54:43]*** Cut start [02:54:43]*** Partial cut [02:54:43]*** CUTSNS_PIN = 1 [02:54:44]*** CUTSNS_PIN = 0 [02:54:44]*** Brake cut motor [02:54:44]Read from MH i2c: 01 [02:54:44]MH_I2C_Read... [02:54:44]*** Stop cut motor [02:54:44]*** Cut end [02:54:44]Read from MH i2c: 01 07 00 [02:54:44]MH_I2C_Read... [02:54:44]Read from MH i2c: 01 07 00 EA 2A 00 00 00 00 00 FF 0F 29 [02:54:44]process_action close_receipt done [02:54:44]requested_data is exist [02:54:44]produce_requested_data [02:54:44]requested_item fm.sn is exist - process it [02:54:44]wFMCommunicate request_size=4 [02:54:44]MH_SAM_APDU [02:54:44]CAPDU: 80 11 00 00 [02:54:44]Write to MH i2c: E2 08 00 EB 2A 80 11 00 00 00 00 00 00 8F [02:54:44]Write i2c OK [02:54:44]MH_I2C_Read... [02:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:44]Read from MH i2c: E2 [02:54:44]MH_I2C_Read... [02:54:44]Read from MH i2c: E2 17 00 [02:54:44]MH_I2C_Read... [02:54:44]Read from MH i2c: E2 17 00 EB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E7 [02:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:54:44]wFMCommunicate OK [02:54:44]requested_item fd.num is exist - process it [02:54:44]SAM_PROTO_GetFieldsCounters [02:54:44]wFMCommunicate request_size=4 [02:54:44]MH_SAM_APDU [02:54:44]CAPDU: 80 13 00 00 [02:54:44]Write to MH i2c: E2 08 00 EC 2A 80 13 00 00 00 00 00 00 92 [02:54:44]Write i2c OK [02:54:44]MH_I2C_Read... [02:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:54:44]Read from MH i2c: E2 [02:54:44]MH_I2C_Read... [02:54:44]Read from MH i2c: E2 62 00 [02:54:44]MH_I2C_Read... [02:54:44]Read from MH i2c: E2 62 00 EC 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [02:54: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:54:44]wFMCommunicate OK [02:54:44]SAM_PROTO_GetFieldsCounters done [02:54:44]requested_item shift.num is exist - process it [02:54:44]requested_item shift.opened is exist - process it [02:54:44]req_shift_opened [02:54:44]FM_GetShiftState [02:54:44]SAM_PROTO_GetShiftState [02:54:44]wFMCommunicate request_size=4 [02:54:44]MH_SAM_APDU [02:54:44]CAPDU: 80 13 01 00 [02:54:44]Write to MH i2c: E2 08 00 ED 2A 80 13 01 00 00 00 00 00 94 [02:54:44]Write i2c OK [02:54:44]MH_I2C_Read... [02:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:44]Read from MH i2c: E2 [02:54:44]MH_I2C_Read... [02:54:44]Read from MH i2c: E2 0E 00 [02:54:44]MH_I2C_Read... [02:54:44]Read from MH i2c: E2 0E 00 ED 2A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9D [02:54:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [02:54:44]wFMCommunicate OK [02:54:44]SAM_PROTO_GetShiftState done [02:54:44]FM_GetShiftState done [02:54:44]req_shift_opened done [02:54:44]requested_item shift.open_date is exist - process it [02:54:44]req_shift_open_date [02:54:44]req_shift_open_date done [02:54:44]produce_requested_data done [02:54:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165894,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [02:54:44]process_action_free close_receipt [02:54:44]json_value_free [02:54:44]json_value_free done [02:54:44]process_json_proto returns [02:54:44]Send response to host [02:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165894,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [02:54:44]free response buf [02:54:44]execute_script done [02:54:44]execute_script returns [02:54:44]free content buf [02:54:44]Sock 6.Close socket [02:54:44]Sock 6.Thread stoped [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:56]accept exits with 5 [02:54:56]New connection [02:54:56]New thread 3066776932 created [02:54:56]Thread 3066920292 joined [02:54:56]Waiting for new connection... [02:54:56] Sock 5.Parse request [02:54:56]Sock 5.Check first char [02:54:56]Sock 5.First char is OK [02:54:56]request: POST /json_proto HTTP/1.0 [02:54:56]Method: POST [02:54:56]URL: /json_proto [02:54:56]Method is POST - this is cgi request [02:54:56]url: /json_proto [02:54:56]query_string will be loaded in cgi processing [02:54:56]execute_cgi json_proto POST (null) [02:54:56]execute_cgi path=json_proto method=POST [02:54:56]POST find Content-Length [02:54:56]Host: 172.17.53.195:8080 [02:54:56]Content-Length: 679 [02:54:56]Content-Type: application/json [02:54:56] [02:54:56]POST finish read [02:54:56]Found Content-Length = 679 [02:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220461", "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" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:56]execute_script... [02:54: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)220461", "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" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:56]POST & json_proto [02:54:56]process_json_proto [02:54:56]json parsed OK: [02:54:56]protocol is kg_v1.0 [02:54:56]action value=close_receipt [02:54:56]process_action close_receipt [02:54:56]cmd_close_receipt [02:54:56]MH_GetDate [02:54:56]Write to MH i2c: F0 00 00 EE 2A 07 [02:54:56]Write i2c OK [02:54:56]MH_I2C_Read... [02:54:56]Read from MH i2c: F0 [02:54:56]MH_I2C_Read... [02:54:56]Read from MH i2c: F0 09 00 [02:54:56]MH_I2C_Read... [02:54:56]Read from MH i2c: F0 09 00 EE 2A 00 90 C2 15 67 21 48 4A 65 F6 [02:54:56]GetLastDocTimeStamp 1729479296 [02:54:56]current date 1729479312 [02:54:56]FM_GetShiftState [02:54:56]SAM_PROTO_GetShiftState [02:54:56]wFMCommunicate request_size=4 [02:54:56]MH_SAM_APDU [02:54:56]CAPDU: 80 13 01 00 [02:54:56]Write to MH i2c: E2 08 00 EF 2A 80 13 01 00 00 00 00 00 96 [02:54:56]Write i2c OK [02:54:56]MH_I2C_Read... [02:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:56]Read from MH i2c: E2 [02:54:56]MH_I2C_Read... [02:54:56]Read from MH i2c: E2 0E 00 [02:54:56]MH_I2C_Read... [02:54:56]Read from MH i2c: E2 0E 00 EF 2A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9F [02:54:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [02:54:56]wFMCommunicate OK [02:54:56]SAM_PROTO_GetShiftState done [02:54:56]FM_GetShiftState done [02:54:56]opened in 1729470944 [02:54:56]opened+sec_in_day 1729557344 [02:54:56]quantity*price = 149961 [02:54:56]sum+1 = 149963 [02:54:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.25 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 6 21.10.2024 02:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165895 ФПД: 255391577685741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025512&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165895&fm=255391577685741&tin=02508201610067®Number=0000000000091764&sum=149900 [02:54:57]StoreToDocumentArchive [02:54:57]shift 535 fd 165895 [02:54:57]save to /storage/0535/doc_00165895 [02:54:57]save last doc name /storage/0535/doc_00165895 to /storage/kkm_last_doc_name [02:54:57]save OK [02:54:57]Clear old archive folders... [02:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:54:57]tlvbuf is 019710B0 [02:54:57]SAM_PROTO_ClearQueue [02:54:57]wFMCommunicate request_size=4 [02:54:57]MH_SAM_APDU [02:54:57]CAPDU: 80 09 00 00 [02:54:57]Write to MH i2c: E2 08 00 FC 2A 80 09 00 00 00 00 00 00 98 [02:54:57]Write i2c OK [02:54:57]MH_I2C_Read... [02:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:57]Read from MH i2c: E2 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 03 00 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 03 00 FC 2A 00 90 00 9A [02:54:57]RAPDU: 90 00 [02:54:57]wFMCommunicate OK [02:54:57]SAM_PROTO_ClearQueue done [02:54:57]KKMCreateOFDPacket [02:54:57]OFDProtocolAddRootSTLVToBuf [02:54:57]FM_MakeSignedData [02:54:57]FM_MakeSignedData [02:54:57]SAM_PROTO_SignData [02:54:57]wFMCommunicate request_size=4 [02:54:57]MH_SAM_APDU [02:54:57]CAPDU: 80 0D 01 02 [02:54:57]Write to MH i2c: E2 08 00 FD 2A 80 0D 01 02 00 00 00 00 A0 [02:54:57]Write i2c OK [02:54:57]MH_I2C_Read... [02:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:57]Read from MH i2c: E2 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 03 00 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 03 00 FD 2A 00 90 00 9B [02:54:57]RAPDU: 90 00 [02:54:57]wFMCommunicate OK [02:54:57]wFMCommunicate request_size=255 [02:54:57]MH_SAM_APDU [02:54:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 35 3E 00 00 00 00 07 04 06 00 8C 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 06 00 00 00 F4 03 04 00 90 C2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 88 02 00 35 04 06 00 E8 46 FC 44 [02:54:57]Write to MH i2c: E2 02 01 FE 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 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 35 3E 00 00 00 00 07 04 06 00 8C 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 06 00 00 00 F4 03 04 00 90 C2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 88 02 00 35 04 06 00 E8 46 FC 44 00 00 67 [02:54:57]Write i2c OK [02:54:57]MH_I2C_Read... [02:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:57]Read from MH i2c: E2 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 03 00 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 03 00 FE 2A 00 90 00 9C [02:54:57]RAPDU: 90 00 [02:54:57]wFMCommunicate OK [02:54:57]wFMCommunicate request_size=7 [02:54:57]MH_SAM_APDU [02:54:57]CAPDU: 80 0D 02 02 02 3E ED [02:54:57]Write to MH i2c: E2 0A 00 FF 2A 80 0D 02 02 02 00 3E ED 00 00 D2 [02:54:57]Write i2c OK [02:54:57]MH_I2C_Read... [02:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:57]Read from MH i2c: E2 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 03 00 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 03 00 FF 2A 00 90 00 9D [02:54:57]RAPDU: 90 00 [02:54:57]wFMCommunicate OK [02:54:57]wFMCommunicate request_size=4 [02:54:57]MH_SAM_APDU [02:54:57]CAPDU: 80 0D 03 02 [02:54:57]Write to MH i2c: E2 08 00 00 2B 80 0D 03 02 00 00 00 00 A6 [02:54:57]Write i2c OK [02:54:57]MH_I2C_Read... [02:54:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:57]Read from MH i2c: E2 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 0B 00 [02:54:57]MH_I2C_Read... [02:54:57]Read from MH i2c: E2 0B 00 00 2B 00 8D 74 CA 0D 54 B2 74 34 90 00 2D [02:54:57]RAPDU: 8D 74 CA 0D 54 B2 74 34 90 00 [02:54:57]wFMCommunicate OK [02:54:57]SAM_PROTO_SignData done [02:54:57]FM_MakeSignedData done [02:54:57]CreateOFDProtocolMessage [02:54:57]wFMCommunicate request_size=4 [02:54:57]MH_SAM_APDU [02:54:57]CAPDU: 80 11 00 00 [02:54:57]Write to MH i2c: E2 08 00 01 2B 80 11 00 00 00 00 00 00 A6 [02:54:57]Write i2c OK [02:54:57]MH_I2C_Read... [02:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:58]Read from MH i2c: E2 [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: E2 17 00 [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: E2 17 00 01 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [02:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:54:58]wFMCommunicate OK [02:54:58]CreateOFDProtocolMessage done [02:54:58]OFDSenderStorePacket 165895 [02:54:58]StoreOFDPacket docnum=165895 [02:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E1 A9 04 01 BF 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 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 35 3E 00 00 00 00 07 04 06 00 8C 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 06 00 00 00 F4 03 04 00 90 C2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 88 02 00 35 04 06 00 E8 46 FC 44 3E ED 8D 74 CA 0D 54 B2 74 34 [02:54:58]CheckFolder [02:54:58]dirname=/storage/ofd_packets [02:54:58]CheckFolder done [02:54:58]ProducePacketName [02:54:58]name=ofd_packets/00165895 [02:54:58]NVStorageSaveData ofd_packets/00165895 [02:54:58]File name is /storage/ofd_packets/00165895 [02:54:58]Write 298 bytes [02:54:58]NVStorageSaveData done [02:54:58]OFDSenderStorePacket done [02:54:58]KKMCreateOFDPacket done [02:54:58]NVStorageSaveData kkm_last_timestamp [02:54:58]File name is /storage/kkm_last_timestamp [02:54:58]Write 4 bytes [02:54:58]NVStorageSaveData done [02:54:58]ExternCall_PrintAddStr [02:54:58]wPrintStart [02:54:58]Write to MH i2c: 01 00 00 02 2B 2D [02:54:58]Write i2c OK [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: 01 [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: 01 07 00 [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: 01 07 00 02 2B 00 00 00 00 00 FF 0F 42 [02:54:58]RasterBufferAndPrint [02:54:58]line Счет N : (1)220461 [02:54:58]line ИНН: 02508201610067 [02:54:58]line Контрольно-Кассовый Чек [02:54:58]line ПРОДАЖА [02:54:58]line ТРК (МРК, ГНК) : 11 [02:54:58]line Товар: 2710194210 [02:54:58]line ДТ-К-5 [02:54:58]line 19.680 * 76.20 [02:54:58]line = 1499.62 [02:54:58]line НДС 12% НСП 1% [02:54:58]line > о реализуемом товаре [02:54:58]line ОКРУГЛЕНИЕ: -0.62 [02:54:58]line ИТОГО: 1499.00 [02:54:58]line Внесено: 1500.00 [02:54:58]line СДАЧА: 1.00 [02:54:58]line НСП 1% : 13.27 [02:54:58]line НДС 12% : 159.25 [02:54:58]line Наличными: 1499.00 [02:54:58]line Безнал.: 0.00 [02:54:58]line Место: АЗС № 161 "Партнер Нефть" [02:54:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:54:58]line СНО: Общий режим [02:54:58]line Чек 6 21.10.2024 02:55 [02:54:58]line Смена: 535 ФФД: 1.0 [02:54:58]line ЗНМ: 0300000104 [02:54:58]line РНМ: 0000000000091764 [02:54:58]line Версия ККМ: 001 [02:54:58]line ФМ: 0000000000871759 [02:54:58]line ФД: 165895 [02:54:58]line ФПД: 255391577685741 [02:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025512&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165895&fm=255391577685741&tin=02508201610067®Number=0000000000091764&sum=149900 [02:54:58]OFD Sender: Processing packet 165895 [packets to send 48, broken 47] [02:54:58]ProducePacketName [02:54:58]name=ofd_packets/00165895 [02:54:58]OFD Sender: To server: pG, [02:54:58]CommunicateWithHost lk.salyk.kg:30040 [02:54:58]ConnectInit lk.salyk.kg [02:54:58]written 0, free lines is 4095 [02:54:58]Connected sock=7 [02:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E1 A9 04 01 BF 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 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 35 3E 00 00 00 00 07 04 06 00 8C 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 06 00 00 00 F4 03 04 00 90 C2 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 88 02 00 35 04 06 00 E8 46 FC 44 3E ED 8D 74 CA 0D 54 B2 74 34 [02:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9A 1D 47 00 7A 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 31 37 35 39 10 04 04 00 07 88 02 00 F4 03 04 00 00 69 15 67 B6 04 01 00 00 D1 A0 2A 55 A8 99 C5 01 [02:54:58]CommunicateWithHost err = 0 [02:54:58]CheckOFDResponse [02:54:58]1017 (14) - 77093643461234 [02:54:58]1041 (16) - 0000000000871759 [02:54:58]1040 (4) - 165895 [02:54:58]1012 (4) - 20.10.2024 20:33 [02:54:58]1206 (1) - 0 [02:54:58]OFD Sender: Remove packet 165895 [02:54:58]ProducePacketName [02:54:58]name=ofd_packets/00165895 [02:54:58]NVStorageDeleteData [02:54:58]Write to MH i2c: 01 00 00 2D 2B 58 [02:54:58]Write i2c OK [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: 01 [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: 01 07 00 [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: 01 07 00 2D 2B 00 00 00 00 00 AA 0C 15 [02:54:58]RasterBufferAndPrint [02:54:58]line [02:54:58]line [02:54:58]line [02:54:58]line [02:54:58]line [02:54:58]written 0, free lines is 3248 [02:54:58]MH_Cut [02:54:58]Write to MH i2c: D1 01 00 34 2B 01 31 [02:54:58]Write i2c OK [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: D1 [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: D1 01 00 [02:54:58]MH_I2C_Read... [02:54:58]Read from MH i2c: D1 01 00 34 2B 00 30 [02:54:58]Write to MH i2c: 01 00 00 35 2B 60 [02:54:58]Write i2c OK [02:54:58]MH_I2C_Read... [02:54:59]OFD Sender: No OFD packet to send [02:54:59]*** Cut start [02:54:59]*** Partial cut [02:54:59]*** CUTSNS_PIN = 1 [02:54:59]*** CUTSNS_PIN = 0 [02:54:59]*** Brake cut motor [02:55:00]Read from MH i2c: 01 [02:55:00]MH_I2C_Read... [02:55:00]*** Stop cut motor [02:55:00]*** Cut end [02:55:00]Read from MH i2c: 01 07 00 [02:55:00]MH_I2C_Read... [02:55:00]Read from MH i2c: 01 07 00 35 2B 00 00 00 00 00 FF 0F 75 [02:55:00]process_action close_receipt done [02:55:00]requested_data is exist [02:55:00]produce_requested_data [02:55:00]requested_item fm.sn is exist - process it [02:55:00]wFMCommunicate request_size=4 [02:55:00]MH_SAM_APDU [02:55:00]CAPDU: 80 11 00 00 [02:55:00]Write to MH i2c: E2 08 00 36 2B 80 11 00 00 00 00 00 00 DB [02:55:00]Write i2c OK [02:55:00]MH_I2C_Read... [02:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:55:00]Read from MH i2c: E2 [02:55:00]MH_I2C_Read... [02:55:00]Read from MH i2c: E2 17 00 [02:55:00]MH_I2C_Read... [02:55:00]Read from MH i2c: E2 17 00 36 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [02:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:55:00]wFMCommunicate OK [02:55:00]requested_item fd.num is exist - process it [02:55:00]SAM_PROTO_GetFieldsCounters [02:55:00]wFMCommunicate request_size=4 [02:55:00]MH_SAM_APDU [02:55:00]CAPDU: 80 13 00 00 [02:55:00]Write to MH i2c: E2 08 00 37 2B 80 13 00 00 00 00 00 00 DE [02:55:00]Write i2c OK [02:55:00]MH_I2C_Read... [02:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:55:00]Read from MH i2c: E2 [02:55:00]MH_I2C_Read... [02:55:00]Read from MH i2c: E2 62 00 [02:55:00]MH_I2C_Read... [02:55:00]Read from MH i2c: E2 62 00 37 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [02:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:55:00]wFMCommunicate OK [02:55:00]SAM_PROTO_GetFieldsCounters done [02:55:00]requested_item shift.num is exist - process it [02:55:00]requested_item shift.opened is exist - process it [02:55:00]req_shift_opened [02:55:00]FM_GetShiftState [02:55:00]SAM_PROTO_GetShiftState [02:55:00]wFMCommunicate request_size=4 [02:55:00]MH_SAM_APDU [02:55:00]CAPDU: 80 13 01 00 [02:55:00]Write to MH i2c: E2 08 00 38 2B 80 13 01 00 00 00 00 00 E0 [02:55:00]Write i2c OK [02:55:00]MH_I2C_Read... [02:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:55:00]Read from MH i2c: E2 [02:55:00]MH_I2C_Read... [02:55:00]Read from MH i2c: E2 0E 00 [02:55:00]MH_I2C_Read... [02:55:00]Read from MH i2c: E2 0E 00 38 2B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E9 [02:55:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [02:55:00]wFMCommunicate OK [02:55:00]SAM_PROTO_GetShiftState done [02:55:00]FM_GetShiftState done [02:55:00]req_shift_opened done [02:55:00]requested_item shift.open_date is exist - process it [02:55:00]req_shift_open_date [02:55:00]req_shift_open_date done [02:55:00]produce_requested_data done [02:55:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165895,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [02:55:00]process_action_free close_receipt [02:55:00]json_value_free [02:55:00]json_value_free done [02:55:00]process_json_proto returns [02:55:00]Send response to host [02:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165895,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [02:55:00]free response buf [02:55:00]execute_script done [02:55:00]execute_script returns [02:55:00]free content buf [02:55:00]Sock 5.Close socket [02:55:00]Sock 5.Thread stoped [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:04]accept exits with 6 [03:02:04]New connection [03:02:04]New thread 3066920292 created [03:02:04]Thread 3066776932 joined [03:02:04]Waiting for new connection... [03:02:04] Sock 6.Parse request [03:02:04]Sock 6.Check first char [03:02:04]Sock 6.First char is OK [03:02:04]request: POST /json_proto HTTP/1.0 [03:02:04]Method: POST [03:02:04]URL: /json_proto [03:02:04]Method is POST - this is cgi request [03:02:04]url: /json_proto [03:02:04]query_string will be loaded in cgi processing [03:02:04]execute_cgi json_proto POST (null) [03:02:04]execute_cgi path=json_proto method=POST [03:02:04]POST find Content-Length [03:02:04]Host: 172.17.53.195:8080 [03:02:04]Content-Length: 679 [03:02:04]Content-Type: application/json [03:02:04] [03:02:04]POST finish read [03:02:04]Found Content-Length = 679 [03:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220463", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:02:04]execute_script... [03:02: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)220463", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:02:04]POST & json_proto [03:02:04]process_json_proto [03:02:04]json parsed OK: [03:02:04]protocol is kg_v1.0 [03:02:04]action value=close_receipt [03:02:04]process_action close_receipt [03:02:04]cmd_close_receipt [03:02:04]MH_GetDate [03:02:04]Write to MH i2c: F0 00 00 39 2B 53 [03:02:04]Write i2c OK [03:02:04]MH_I2C_Read... [03:02:04]Read from MH i2c: F0 [03:02:04]MH_I2C_Read... [03:02:04]Read from MH i2c: F0 09 00 [03:02:04]MH_I2C_Read... [03:02:04]Read from MH i2c: F0 09 00 39 2B 00 3C C4 15 67 21 48 4A 65 F0 [03:02:04]GetLastDocTimeStamp 1729479312 [03:02:04]current date 1729479740 [03:02:04]FM_GetShiftState [03:02:04]SAM_PROTO_GetShiftState [03:02:04]wFMCommunicate request_size=4 [03:02:04]MH_SAM_APDU [03:02:04]CAPDU: 80 13 01 00 [03:02:04]Write to MH i2c: E2 08 00 3A 2B 80 13 01 00 00 00 00 00 E2 [03:02:04]Write i2c OK [03:02:04]MH_I2C_Read... [03:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:02:04]Read from MH i2c: E2 [03:02:04]MH_I2C_Read... [03:02:04]Read from MH i2c: E2 0E 00 [03:02:04]MH_I2C_Read... [03:02:04]Read from MH i2c: E2 0E 00 3A 2B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EB [03:02:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [03:02:04]wFMCommunicate OK [03:02:04]SAM_PROTO_GetShiftState done [03:02:04]FM_GetShiftState done [03:02:04]opened in 1729470944 [03:02:04]opened+sec_in_day 1729557344 [03:02:04]quantity*price = 100050 [03:02:04]sum+1 = 100052 [03:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 7 21.10.2024 03:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165896 ФПД: 99775235237467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T030220&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165896&fm=99775235237467&tin=02508201610067®Number=0000000000091764&sum=100000 [03:02:06]StoreToDocumentArchive [03:02:06]shift 535 fd 165896 [03:02:06]save to /storage/0535/doc_00165896 [03:02:06]save last doc name /storage/0535/doc_00165896 to /storage/kkm_last_doc_name [03:02:06]save OK [03:02:06]Clear old archive folders... [03:02:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:02:06]tlvbuf is 014B2FF0 [03:02:06]SAM_PROTO_ClearQueue [03:02:06]wFMCommunicate request_size=4 [03:02:06]MH_SAM_APDU [03:02:06]CAPDU: 80 09 00 00 [03:02:06]Write to MH i2c: E2 08 00 47 2B 80 09 00 00 00 00 00 00 E4 [03:02:06]Write i2c OK [03:02:06]MH_I2C_Read... [03:02:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:02:06]Read from MH i2c: E2 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 03 00 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 03 00 47 2B 00 90 00 E6 [03:02:06]RAPDU: 90 00 [03:02:06]wFMCommunicate OK [03:02:06]SAM_PROTO_ClearQueue done [03:02:06]KKMCreateOFDPacket [03:02:06]OFDProtocolAddRootSTLVToBuf [03:02:06]FM_MakeSignedData [03:02:06]FM_MakeSignedData [03:02:06]SAM_PROTO_SignData [03:02:06]wFMCommunicate request_size=4 [03:02:06]MH_SAM_APDU [03:02:06]CAPDU: 80 0D 01 02 [03:02:06]Write to MH i2c: E2 08 00 48 2B 80 0D 01 02 00 00 00 00 EC [03:02:06]Write i2c OK [03:02:06]MH_I2C_Read... [03:02:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:02:06]Read from MH i2c: E2 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 03 00 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 03 00 48 2B 00 90 00 E7 [03:02:06]RAPDU: 90 00 [03:02:06]wFMCommunicate OK [03:02:06]wFMCommunicate request_size=255 [03:02:06]MH_SAM_APDU [03:02: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 07 00 00 00 F4 03 04 00 3C C4 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 88 02 00 35 04 06 00 5A BE BB 74 [03:02:06]Write to MH i2c: E2 02 01 49 2B 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 07 00 00 00 F4 03 04 00 3C C4 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 88 02 00 35 04 06 00 5A BE BB 74 00 00 ED [03:02:06]Write i2c OK [03:02:06]MH_I2C_Read... [03:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:02:06]Read from MH i2c: E2 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 03 00 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 03 00 49 2B 00 90 00 E8 [03:02:06]RAPDU: 90 00 [03:02:06]wFMCommunicate OK [03:02:06]wFMCommunicate request_size=7 [03:02:06]MH_SAM_APDU [03:02:06]CAPDU: 80 0D 02 02 02 26 5B [03:02:06]Write to MH i2c: E2 0A 00 4A 2B 80 0D 02 02 02 00 26 5B 00 00 74 [03:02:06]Write i2c OK [03:02:06]MH_I2C_Read... [03:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:02:06]Read from MH i2c: E2 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 03 00 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 03 00 4A 2B 00 90 00 E9 [03:02:06]RAPDU: 90 00 [03:02:06]wFMCommunicate OK [03:02:06]wFMCommunicate request_size=4 [03:02:06]MH_SAM_APDU [03:02:06]CAPDU: 80 0D 03 02 [03:02:06]Write to MH i2c: E2 08 00 4B 2B 80 0D 03 02 00 00 00 00 F1 [03:02:06]Write i2c OK [03:02:06]MH_I2C_Read... [03:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:02:06]Read from MH i2c: E2 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 0B 00 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 0B 00 4B 2B 00 3B EC 3C 30 32 9E B8 6E 90 00 7B [03:02:06]RAPDU: 3B EC 3C 30 32 9E B8 6E 90 00 [03:02:06]wFMCommunicate OK [03:02:06]SAM_PROTO_SignData done [03:02:06]FM_MakeSignedData done [03:02:06]CreateOFDProtocolMessage [03:02:06]wFMCommunicate request_size=4 [03:02:06]MH_SAM_APDU [03:02:06]CAPDU: 80 11 00 00 [03:02:06]Write to MH i2c: E2 08 00 4C 2B 80 11 00 00 00 00 00 00 F1 [03:02:06]Write i2c OK [03:02:06]MH_I2C_Read... [03:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:02:06]Read from MH i2c: E2 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 17 00 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: E2 17 00 4C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 49 [03:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [03:02:06]wFMCommunicate OK [03:02:06]CreateOFDProtocolMessage done [03:02:06]OFDSenderStorePacket 165896 [03:02:06]StoreOFDPacket docnum=165896 [03:02:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 30 EE 04 01 4B 5A 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 07 00 00 00 F4 03 04 00 3C C4 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 88 02 00 35 04 06 00 5A BE BB 74 26 5B 3B EC 3C 30 32 9E B8 6E [03:02:06]CheckFolder [03:02:06]dirname=/storage/ofd_packets [03:02:06]CheckFolder done [03:02:06]ProducePacketName [03:02:06]name=ofd_packets/00165896 [03:02:06]NVStorageSaveData ofd_packets/00165896 [03:02:06]File name is /storage/ofd_packets/00165896 [03:02:06]Write 298 bytes [03:02:06]NVStorageSaveData done [03:02:06]OFDSenderStorePacket done [03:02:06]KKMCreateOFDPacket done [03:02:06]NVStorageSaveData kkm_last_timestamp [03:02:06]File name is /storage/kkm_last_timestamp [03:02:06]Write 4 bytes [03:02:06]NVStorageSaveData done [03:02:06]ExternCall_PrintAddStr [03:02:06]wPrintStart [03:02:06]Write to MH i2c: 01 00 00 4D 2B 78 [03:02:06]Write i2c OK [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: 01 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: 01 07 00 [03:02:06]MH_I2C_Read... [03:02:06]Read from MH i2c: 01 07 00 4D 2B 00 00 00 00 00 FF 0F 8D [03:02:06]RasterBufferAndPrint [03:02:06]line Счет N : (1)220463 [03:02:06]line ИНН: 02508201610067 [03:02:06]line Контрольно-Кассовый Чек [03:02:06]line ПРОДАЖА [03:02:06]line ТРК (МРК, ГНК) : 11 [03:02:06]line Товар: 2710194210 [03:02:06]line ДТ-К-5 [03:02:06]line 13.130 * 76.20 [03:02:06]line = 1000.51 [03:02:06]line НДС 12% НСП 1% [03:02:06]line > о реализуемом товаре [03:02:06]line ОКРУГЛЕНИЕ: -0.51 [03:02:06]line ИТОГО: 1000.00 [03:02:06]line Внесено: 1000.00 [03:02:06]line СДАЧА: 0.00 [03:02:06]line НСП 1% : 8.85 [03:02:06]line НДС 12% : 106.25 [03:02:06]line Наличными: 1000.00 [03:02:06]line Безнал.: 0.00 [03:02:06]line Место: АЗС № 161 "Партнер Нефть" [03:02:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [03:02:06]line СНО: Общий режим [03:02:06]line Чек 7 21.10.2024 03:02 [03:02:06]line Смена: 535 ФФД: 1.0 [03:02:06]line ЗНМ: 0300000104 [03:02:06]line РНМ: 0000000000091764 [03:02:06]line Версия ККМ: 001 [03:02:06]line ФМ: 0000000000871759 [03:02:06]line ФД: 165896 [03:02:06]line ФПД: 99775235237467 [03:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T030220&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165896&fm=99775235237467&tin=02508201610067®Number=0000000000091764&sum=100000 [03:02:06]OFD Sender: Processing packet 165896 [packets to send 48, broken 47] [03:02:06]ProducePacketName [03:02:06]name=ofd_packets/00165896 [03:02:06]OFD Sender: To server: pG, [03:02:06]CommunicateWithHost lk.salyk.kg:30040 [03:02:06]ConnectInit lk.salyk.kg [03:02:06]written 0, free lines is 4095 [03:02:07]Connected sock=7 [03:02:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 30 EE 04 01 4B 5A 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 07 00 00 00 F4 03 04 00 3C C4 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 88 02 00 35 04 06 00 5A BE BB 74 26 5B 3B EC 3C 30 32 9E B8 6E [03:02:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B9 5E 47 00 30 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 31 37 35 39 10 04 04 00 08 88 02 00 F4 03 04 00 AC 6A 15 67 B6 04 01 00 00 4B B3 2F 74 55 BC 2A 97 [03:02:07]CommunicateWithHost err = 0 [03:02:07]CheckOFDResponse [03:02:07]1017 (14) - 77093643461234 [03:02:07]1041 (16) - 0000000000871759 [03:02:07]1040 (4) - 165896 [03:02:07]1012 (4) - 20.10.2024 20:40 [03:02:07]1206 (1) - 0 [03:02:07]OFD Sender: Remove packet 165896 [03:02:07]ProducePacketName [03:02:07]name=ofd_packets/00165896 [03:02:07]NVStorageDeleteData [03:02:07]Write to MH i2c: 01 00 00 78 2B A3 [03:02:07]Write i2c OK [03:02:07]MH_I2C_Read... [03:02:07]Read from MH i2c: 01 [03:02:07]MH_I2C_Read... [03:02:07]Read from MH i2c: 01 07 00 [03:02:07]MH_I2C_Read... [03:02:07]Read from MH i2c: 01 07 00 78 2B 00 00 00 00 00 B5 0C 6B [03:02:07]RasterBufferAndPrint [03:02:07]line [03:02:07]line [03:02:07]line [03:02:07]line [03:02:07]line [03:02:07]written 0, free lines is 3260 [03:02:07]MH_Cut [03:02:07]Write to MH i2c: D1 01 00 7F 2B 01 7C [03:02:07]Write i2c OK [03:02:07]MH_I2C_Read... [03:02:07]Read from MH i2c: D1 [03:02:07]MH_I2C_Read... [03:02:07]Read from MH i2c: D1 01 00 [03:02:07]MH_I2C_Read... [03:02:07]Read from MH i2c: D1 01 00 7F 2B 00 7B [03:02:07]Write to MH i2c: 01 00 00 80 2B AB [03:02:07]Write i2c OK [03:02:07]MH_I2C_Read... [03:02:07]OFD Sender: No OFD packet to send [03:02:08]*** Cut start [03:02:08]*** Partial cut [03:02:08]*** CUTSNS_PIN = 1 [03:02:08]*** CUTSNS_PIN = 0 [03:02:08]*** Brake cut motor [03:02:08]Read from MH i2c: 01 [03:02:08]MH_I2C_Read... [03:02:08]*** Stop cut motor [03:02:08]*** Cut end [03:02:08]Read from MH i2c: 01 07 00 [03:02:08]MH_I2C_Read... [03:02:08]Read from MH i2c: 01 07 00 80 2B 00 00 00 00 00 FF 0F C0 [03:02:08]process_action close_receipt done [03:02:08]requested_data is exist [03:02:08]produce_requested_data [03:02:08]requested_item fm.sn is exist - process it [03:02:08]wFMCommunicate request_size=4 [03:02:08]MH_SAM_APDU [03:02:08]CAPDU: 80 11 00 00 [03:02:08]Write to MH i2c: E2 08 00 81 2B 80 11 00 00 00 00 00 00 26 [03:02:08]Write i2c OK [03:02:08]MH_I2C_Read... [03:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:02:08]Read from MH i2c: E2 [03:02:08]MH_I2C_Read... [03:02:08]Read from MH i2c: E2 17 00 [03:02:08]MH_I2C_Read... [03:02:08]Read from MH i2c: E2 17 00 81 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [03:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [03:02:08]wFMCommunicate OK [03:02:08]requested_item fd.num is exist - process it [03:02:08]SAM_PROTO_GetFieldsCounters [03:02:08]wFMCommunicate request_size=4 [03:02:08]MH_SAM_APDU [03:02:08]CAPDU: 80 13 00 00 [03:02:08]Write to MH i2c: E2 08 00 82 2B 80 13 00 00 00 00 00 00 29 [03:02:08]Write i2c OK [03:02:08]MH_I2C_Read... [03:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:02:09]Read from MH i2c: E2 [03:02:09]MH_I2C_Read... [03:02:09]Read from MH i2c: E2 62 00 [03:02:09]MH_I2C_Read... [03:02:09]Read from MH i2c: E2 62 00 82 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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [03:02:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:02:09]wFMCommunicate OK [03:02:09]SAM_PROTO_GetFieldsCounters done [03:02:09]requested_item shift.num is exist - process it [03:02:09]requested_item shift.opened is exist - process it [03:02:09]req_shift_opened [03:02:09]FM_GetShiftState [03:02:09]SAM_PROTO_GetShiftState [03:02:09]wFMCommunicate request_size=4 [03:02:09]MH_SAM_APDU [03:02:09]CAPDU: 80 13 01 00 [03:02:09]Write to MH i2c: E2 08 00 83 2B 80 13 01 00 00 00 00 00 2B [03:02:09]Write i2c OK [03:02:09]MH_I2C_Read... [03:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:02:09]Read from MH i2c: E2 [03:02:09]MH_I2C_Read... [03:02:09]Read from MH i2c: E2 0E 00 [03:02:09]MH_I2C_Read... [03:02:09]Read from MH i2c: E2 0E 00 83 2B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 34 [03:02:09]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [03:02:09]wFMCommunicate OK [03:02:09]SAM_PROTO_GetShiftState done [03:02:09]FM_GetShiftState done [03:02:09]req_shift_opened done [03:02:09]requested_item shift.open_date is exist - process it [03:02:09]req_shift_open_date [03:02:09]req_shift_open_date done [03:02:09]produce_requested_data done [03:02:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165896,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [03:02:09]process_action_free close_receipt [03:02:09]json_value_free [03:02:09]json_value_free done [03:02:09]process_json_proto returns [03:02:09]Send response to host [03:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165896,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [03:02:09]free response buf [03:02:09]execute_script done [03:02:09]execute_script returns [03:02:09]free content buf [03:02:09]Sock 6.Close socket [03:02:09]Sock 6.Thread stoped [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]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:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send